/* ==========================================================================
   Blok „Tonery: porównanie” (.t-cmp > .cmp): trzy opcje obok siebie, na telefonie jedna
   (przełącznik .seg + :has, bez JS). Źródło (prototyp): assets/css/podstrona.css (Compare table)
   + podstrony/tonery.css (karta, kafelki w nagłówkach, mierniki, wyróżnienia, dopisek).
   ========================================================================== */

.t-cmp { --section-y: clamp(3.5rem, 6.5vw, 6rem); border-top: 0; }
.t-cmp .shead { align-items: start; margin-bottom: clamp(2rem, 4vw, 3rem); }
.t-cmp.t-sep { padding-top: 0; }
.t-cmp.t-sep > .container::before {
  content: ""; display: block; grid-column: 1 / -1; height: 26px; margin-bottom: clamp(2.75rem, 5.5vw, 4.5rem);
  background:
    radial-gradient(circle, var(--orange) 0 4px, var(--orange-50) 4.5px 7px, #fff 7.5px 12px, transparent 12.5px) center / 26px 26px no-repeat,
    linear-gradient(90deg, rgba(203, 213, 224, 0), var(--line-strong) 28%, var(--line-strong) 72%, rgba(203, 213, 224, 0)) center / 100% 1px no-repeat;
}

.t-cmp .t-tile {
  flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy-50); color: var(--navy);
}
.t-cmp .t-tile .icon { width: 1.15rem; height: 1.15rem; }
.t-cmp .t-tile--on { background: var(--orange); color: #fff; }
.t-cmp .t-cmp__card { background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -32px rgba(22, 42, 67, .4); }
.t-cmp .t-callout {
  display: flex; align-items: center; gap: .9rem; margin: 1.5rem 0 0; padding: .9rem 1.25rem .9rem .9rem;
  border-radius: var(--radius-lg); background: var(--orange-50); box-shadow: inset 0 0 0 1px var(--orange-100);
  color: var(--navy-900); font-size: 1rem; line-height: 1.5; max-width: none;
}
.t-cmp .t-callout__icon {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
.t-cmp .t-callout__icon .icon { width: 1.05rem; height: 1.05rem; stroke-width: 2.2; }

/* --- podstrona.css: Compare table --- */
.t-cmp .cmp__pick { display: none; margin-bottom: 1rem; }
.t-cmp .cmp__table { width: 100%; border-collapse: collapse; }
.t-cmp .cmp__table th, .t-cmp .cmp__table td { padding: 1.05rem 1.25rem 1.05rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.t-cmp .cmp__table thead th {
  font-family: var(--font-ui); font-weight: 500; font-size: .75rem; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-2); border-bottom: 1px solid var(--line-strong); vertical-align: bottom;
}
.t-cmp .cmp__table tbody th { width: 19%; font-weight: 500; color: var(--navy); }
.t-cmp .cmp__table td { width: 27%; color: var(--text); }
.t-cmp .cmp__table .c-dts { background: var(--navy-50); padding-left: 1.25rem; color: var(--navy-900); }
.t-cmp .cmp__table thead .c-dts { color: var(--navy-900); border-radius: var(--radius) var(--radius) 0 0; }
.t-cmp .cmp__table tbody tr:last-child .c-dts { border-radius: 0 0 var(--radius) var(--radius); }
.t-cmp .cmp__table tbody tr:hover th, .t-cmp .cmp__table tbody tr:hover td:not(.c-dts) { background: var(--paper-2); }
/* .cmp__note (podstrona.css) przykryty przez .t-callout i .t-cmp .cmp__note z tonery.css */

/* --- tonery.css: the table in a card, headers with tiles, yield meters --- */
.t-cmp .t-cmp__card { border-radius: var(--radius-xl); padding: clamp(.75rem, 2vw, 1.25rem) clamp(1rem, 2.6vw, 2rem) clamp(.25rem, 1vw, .5rem); }
.t-cmp .cmp__table thead th { padding-top: .5rem; padding-bottom: .9rem; text-transform: none; letter-spacing: 0; }
.t-cmp .t-col { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--navy-900); }
.t-cmp .cmp__table thead .c-dts { padding-top: .9rem; }
.t-cmp .cmp__table tbody th, .t-cmp .cmp__table tbody td { padding-top: .8rem; padding-bottom: .8rem; }
.t-cmp .cmp__table .c-zam { padding-left: 1.25rem; padding-right: 0; }
.t-cmp .cmp__table tbody tr:last-child th, .t-cmp .cmp__table tbody tr:last-child td { border-bottom: 0; }
.t-cmp .cmp__table tbody th { width: 21%; }
.t-cmp .t-rh { display: flex; align-items: center; gap: .6rem; color: var(--navy-900); }
.t-cmp .t-rh .icon { flex: none; width: 1.1rem; height: 1.1rem; color: var(--navy); }
.t-cmp .t-meter { position: relative; display: block; width: min(100%, 9.5rem); height: 8px; margin: .3rem 0 .6rem; border-radius: 2px; background: var(--navy-50); overflow: hidden; }
.t-cmp .t-meter i { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 2px; background: var(--navy); }
.t-cmp .c-dts .t-meter { background: #fff; }
.t-cmp .c-dts .t-meter i { background: var(--navy-900); }
/* the pages a cheap toner promised but never printed: the Hatch Rule (--v from the block's field) */
.t-cmp .t-meter--low i { width: var(--v, 62.5%); border-radius: 2px 0 0 2px; }
.t-cmp .t-meter--low::after {
  content: ""; position: absolute; left: var(--v, 62.5%); right: 0; top: 0; bottom: 0;
  background: repeating-linear-gradient(135deg, var(--line-strong) 0 2px, transparent 2px 5px);
}
.t-cmp .t-warn { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; color: var(--navy-900); }
.t-cmp .t-warn .icon, .t-cmp .t-re .icon { width: 1rem; height: 1rem; }
.t-cmp .t-warn .icon { color: var(--orange-600); }
.t-cmp .t-re { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; }
.t-cmp .t-re .icon { color: var(--navy); }
.t-cmp .cmp__note { margin-top: 1.25rem; }

@media (max-width: 767px) {
  .t-cmp .cmp__pick { display: grid; width: 100%; }
  .t-cmp .cmp__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .t-cmp .cmp__table th, .t-cmp .cmp__table td { padding: .9rem .9rem .9rem 0; }
  .t-cmp .cmp__table tbody th { width: 34%; }
  .t-cmp .cmp__table td { display: none; }
  .t-cmp .cmp__table .c-dts { padding-left: .9rem; }
  .t-cmp .cmp:has(input[value="org"]:checked) td.c-org,
  .t-cmp .cmp:has(input[value="dts"]:checked) td.c-dts,
  .t-cmp .cmp:has(input[value="zam"]:checked) td.c-zam { display: table-cell; }
  /* tonery.css */
  .t-cmp .t-cmp__card { padding: 1rem 1rem .25rem; }
  .t-cmp .cmp__table tbody th { width: 40%; }
  .t-cmp .cmp__table .c-zam { padding-right: .9rem; }
}
