/* The shared visuals of the quality-bar pages (site/engine/DRAFT.md §3 "The quality bar"), first built for the
   non-Wi-Fi pillar page (guide-nowifi) and used by the comparison pages: a sourced bar chart (figure.chart with
   .bars; .doors is the pillar page's name for the same grid), dated case cards (ul.cases), the fit picker (.pick,
   with web/js/fit-picker.js) and the number tiles (.stats). Tokens come from page.css. Nothing here needs
   JavaScript except the picker's answer, and the plain-text list under a picker says the same without it. */

/* ---------- the bar chart: one row per item, a label, a bar, a number ---------- */
figure.chart{margin:28px 0 8px;padding:20px 22px 16px;border-radius:var(--r);background:var(--paper);box-shadow:0 0 0 1px var(--line),0 24px 50px -40px rgba(60,30,10,.5)}
figure.chart .ch-h{margin:0 0 14px;font:600 16px/1.3 var(--sans);color:var(--ink)}
figure.chart .ch-h small{display:block;margin-top:3px;font:400 13.5px/1.4 var(--sans);color:var(--muted)}
.bars,.doors{display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;gap:10px 12px;align-items:center}
.bars .d-l,.doors .d-l{display:flex;align-items:center;gap:9px;font:500 15px/1.25 var(--sans);color:var(--ink)}
.bars .d-l svg,.doors .d-l svg{width:22px;height:22px;fill:none;stroke:var(--caramel);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.bars .d-l small,.doors .d-l small{display:block;font:400 12.5px/1.3 var(--sans);color:var(--muted)}
.bars .d-b,.doors .d-b{height:18px;border-radius:0 4px 4px 0;background:var(--caramel);min-width:2px;transform-origin:left center;animation:pv-grow .9s cubic-bezier(.2,.7,.2,1) both}
.bars .d-b.zero,.doors .d-b.zero{width:2px;background:var(--line);animation:none}
.bars .d-b.us{background:#3C7547}
.bars .d-b.alt{background:#C9A26B}
.bars .d-n,.doors .d-n{font:650 17px/1 var(--sans);color:var(--ink);min-width:1.6em;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.bars .d-n .yes,.doors .d-n .yes{font-size:14px}
.bars .home .d-l svg,.doors .home .d-l svg{stroke:#3C7547}
.bars hr,.doors hr{grid-column:1/-1;margin:4px 0;border:0;border-top:1px dashed var(--line)}
figure.chart figcaption{margin-top:14px;font-size:13.5px;line-height:1.45;color:var(--muted)}
@keyframes pv-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media (max-width:560px){
  figure.chart{padding:16px 16px 14px}
  .bars,.doors{grid-template-columns:minmax(0,1fr) max-content;gap:6px 10px}
  .bars .d-l,.doors .d-l{grid-column:1/-1;margin-top:6px}
  .bars .d-b,.doors .d-b{grid-column:1}
}

/* ---------- dated cases, one line each ---------- */
ul.cases{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:10px}
ul.cases li{display:grid;grid-template-columns:5.2em minmax(0,1fr);gap:12px;padding:12px 16px;border-radius:16px;background:var(--cream);font-size:15.5px;line-height:1.5}
ul.cases b{font:650 13px/1.6 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--caramel)}
@media (max-width:560px){ul.cases li{grid-template-columns:minmax(0,1fr);gap:2px}}

/* ---------- the fit picker ---------- */
.pick{margin:24px 0 8px;padding:20px 22px 18px;border-radius:var(--r);background:var(--paper);box-shadow:0 0 0 1px var(--line),0 24px 50px -40px rgba(60,30,10,.5)}
.pick .pk-k{padding:0;margin:0 0 4px;font:650 16px/1.3 var(--sans);color:var(--ink)}
.pick .pk-hint{margin:0 0 12px;font-size:14px;color:var(--muted)}
.pick .pk-opts{display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr));list-style:none;margin:0;padding:0}
.pick .pk-opts li{margin:0}
.pick label{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:14px;background:var(--cream);font:500 15px/1.4 var(--sans);color:var(--ink);cursor:pointer;transition:box-shadow .15s}
.pick label:has(input:checked){box-shadow:inset 0 0 0 2px var(--honey);background:rgba(231,168,87,.18)}
.pick input{width:18px;height:18px;margin:3px 0 0;accent-color:var(--caramel);flex:none}
.pick .pk-out{margin:14px 0 0;padding:14px 16px;border-radius:16px;background:rgba(231,168,87,.13);font-size:15.5px;line-height:1.5}
.pick .pk-out b{font-family:var(--sans)}
.pick .pk-out .pk-but{display:block;margin-top:6px;color:var(--ink2);font-size:14.5px}
@media (max-width:560px){.pick{padding:16px 16px 14px}.pick .pk-opts{grid-template-columns:minmax(0,1fr)}}

/* ---------- the scale, in sourced numbers ---------- */
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0 8px}
.stats.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.stat{display:flex;flex-direction:column;gap:4px;padding:16px 16px 14px;border-radius:18px;background:var(--paper);box-shadow:0 0 0 1px var(--line)}
.stat b{font:650 clamp(24px,3vw,30px)/1.1 var(--sans);color:var(--ink);letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.stat span{font-size:14.5px;line-height:1.45;color:var(--ink2)}
.stat small{margin-top:auto;padding-top:6px;font:400 12.5px/1.4 var(--sans);color:var(--muted)}
.stat small a{color:inherit;text-decoration:underline;text-decoration-color:var(--line)}
@media (max-width:760px){.stats,.stats.three{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:400px){.stats,.stats.three{grid-template-columns:minmax(0,1fr)}}
@media (prefers-reduced-motion:reduce){.bars .d-b,.doors .d-b{animation:none}}

/* a step list with the expected result under each step */
.steps .see{display:block;margin-top:4px;font-size:14.5px;color:var(--ink2)}

/* ---------- at a glance: one short row per item, one word per cell; stays a grid on phones (page.css turns every
   other table into cards there). The words carry the meaning; the pill colours only repeat it. ---------- */
figure.glance{margin:24px 0 8px;padding:16px 14px 12px;border-radius:var(--r);background:var(--paper);box-shadow:0 0 0 1px var(--line),0 24px 50px -40px rgba(60,30,10,.5)}
figure.glance .ch-h{margin:0 0 10px;font:600 16px/1.3 var(--sans);color:var(--ink)}
figure.glance .ch-h small{display:block;margin-top:3px;font:400 13px/1.4 var(--sans);color:var(--muted)}
figure.glance table{min-width:0;width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px;line-height:1.25}
figure.glance thead{display:table-header-group}figure.glance tbody{display:table-row-group}
figure.glance tr{display:table-row;background:none;box-shadow:none;margin:0;padding:0;border-radius:0}
figure.glance th,figure.glance td{display:table-cell;width:auto;padding:7px 2px;border:0;border-top:1px solid var(--line);text-align:center;vertical-align:middle;overflow-wrap:normal}
figure.glance td::before{content:none}
figure.glance thead th{border-top:0;padding-bottom:8px;font:600 10.5px/1.2 var(--sans);letter-spacing:.03em;text-transform:uppercase;color:var(--muted);vertical-align:bottom}
figure.glance thead th:first-child,figure.glance tbody th{width:31%;text-align:left}
figure.glance tbody th{font:600 14px/1.25 var(--sans);color:var(--ink)}
figure.glance td .yes,figure.glance td .no,figure.glance td .part,figure.glance td .na{display:inline-block;padding:1px 7px 2px;border-radius:99px;font-size:13px}
figure.glance td .yes{background:rgba(63,122,74,.11)}figure.glance td .no{background:rgba(179,58,72,.09)}figure.glance td .part{background:rgba(169,103,42,.11)}
figure.glance td .na{color:var(--muted)}
figure.glance tr.us th{color:var(--caramel)}
figure.glance figcaption{margin-top:10px;font-size:13px;line-height:1.45;color:var(--muted)}
@media (max-width:420px){figure.glance{padding:12px 8px 10px}figure.glance tbody th{font-size:12.5px}figure.glance thead th{font-size:9px;letter-spacing:0}
  figure.glance td .yes,figure.glance td .no,figure.glance td .part,figure.glance td .na{padding:1px 4px 2px;font-size:11.5px}}

/* evidence screenshots: a phone-width capture stays at phone width on a wide screen */
figure.shot.ev{grid-template-columns:minmax(0,430px);justify-content:center}
figure.shot.ev.wide{grid-template-columns:minmax(0,1fr)}

/* ---------- the at-a-glance table's column help (guide-privacy): a visible legend (dl.legend) under the table is the
   content; web/js/glance-tips.js repeats the legend's sentence in a small box under the column header on hover, tap or
   keyboard focus (the header is a button with aria-describedby → the legend's <dd>). Without the script nothing is
   missing. A name cell may carry the product's icon and link to its store page. ---------- */
figure.glance{position:relative}
figure.glance thead th .tip{all:unset;cursor:help;display:inline;padding-bottom:1px;border-bottom:1px dotted currentColor;font:inherit;color:inherit;letter-spacing:inherit;text-transform:inherit}
figure.glance thead th .tip:focus-visible{outline:2px solid var(--honey);outline-offset:3px;border-radius:3px}
figure.glance thead th .tip[aria-expanded="true"]{color:var(--ink)}
.tipbox{position:absolute;z-index:5;max-width:min(300px,calc(100% - 16px));padding:10px 13px;border-radius:12px;background:var(--ink);color:var(--paper);font:400 13.5px/1.45 var(--sans);text-align:left;box-shadow:0 14px 30px -10px rgba(42,31,26,.55);pointer-events:none}
.tipbox::before{content:"";position:absolute;top:-5px;left:var(--ax,50%);width:11px;height:11px;background:var(--ink);transform:translateX(-50%) rotate(45deg)}
.tipbox[hidden]{display:none}
dl.legend{margin:12px 0 0;display:grid;grid-template-columns:max-content minmax(0,1fr);gap:5px 12px;font-size:13px;line-height:1.45;color:var(--muted)}
dl.legend dt{font:600 10.5px/1.6 var(--sans);letter-spacing:.04em;text-transform:uppercase;color:var(--ink2)}
dl.legend dd{margin:0}
figure.glance tbody th a{color:inherit;text-decoration:none;display:inline-flex;align-items:center;gap:7px}
figure.glance tbody th a:hover{text-decoration:underline;text-decoration-color:var(--line)}
figure.glance tbody th img.ico{margin-right:6px;vertical-align:middle}
figure.glance tbody th img{width:22px;height:22px;border-radius:6px;box-shadow:0 0 0 1px var(--line);flex:none}
@media (max-width:420px){figure.glance tbody th img{width:18px;height:18px;border-radius:5px}figure.glance tbody th a{gap:5px}
  dl.legend{grid-template-columns:minmax(0,1fr);gap:1px 0}dl.legend dt{margin-top:6px}}

/* a table of the makers' words (<div class="tbl" data-words>): a narrow name column with the product's icon, short
   column names (≤ 16 characters, so phones show the label beside the value instead of stacking), the quotes take the
   room. The wrapper keeps class "tbl" alone, which site/gate.py counts as the page's table. */
.tbl[data-words] tbody th{width:15%}
.tbl tbody th a{color:inherit;text-decoration:none;display:inline-flex;align-items:center;gap:8px}
.tbl tbody th a:hover{text-decoration:underline;text-decoration-color:var(--line)}
.tbl tbody th img{width:24px;height:24px;border-radius:7px;box-shadow:0 0 0 1px var(--line);flex:none;vertical-align:middle;margin-right:6px}
.tbl tbody th a img{margin-right:0}
.tbl[data-words] td{font-size:15px}
.tbl[data-words] thead th:nth-child(2){width:27%}.tbl[data-words] thead th:nth-child(3){width:10%}
.tbl[data-words] thead th:nth-child(4){width:24%}.tbl[data-words] thead th:nth-child(6){width:8%}
@media (max-width:640px){.tbl[data-words] tbody th{padding:14px 0 6px;width:auto}.tbl[data-words] td{font-size:14.5px;padding:8px 0 8px calc(38% + 10px)}}

/* ---------- evidence figures: whose page this is, at a glance (the product's icon and name over the screenshot);
   and the store-labels table: a badge on a row whose two stores disagree ---------- */
figure .ev-h{display:flex;align-items:center;gap:9px;margin:0 0 10px;font:600 15px/1.3 var(--sans);color:var(--ink)}
figure .ev-h img{width:28px;height:28px;border-radius:8px;box-shadow:0 0 0 1px var(--line);flex:none}
figure .ev-h small{font:400 13px/1.3 var(--sans);color:var(--muted)}
figure.photos .ph b img{display:inline-block;width:24px;height:24px;margin-right:7px;border-radius:7px;box-shadow:0 0 0 1px var(--line);vertical-align:-7px}
figure.photos .ph b em{font-style:normal;font-weight:400;color:var(--muted)}
.badge{display:inline-block;padding:2px 9px 3px;border-radius:99px;background:rgba(179,58,72,.1);color:var(--rose);font:650 11.5px/1.3 var(--sans);letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;vertical-align:middle}
.badge.ok{background:rgba(63,122,74,.1);color:#3C7547}
.takeaway{margin:18px 0 4px;font:600 17px/1.35 var(--sans);color:var(--ink)}

/* ---------- a maker's own words: <q> inside the literal quotation marks reads as a quote (italic) and stays a
   quote for assistive technology; the marks are in the text, so the element adds none ---------- */
q{font-style:italic;quotes:none}q::before,q::after{content:none}
figure.photos .ph .yes q,figure.photos .ph .no q{font-style:italic}

/* ---------- our verdict: one row per monitor, the grade visible at a glance ---------- */
ul.verdicts{list-style:none;margin:16px 0 14px;padding:0;display:grid;gap:8px}
ul.verdicts li{display:grid;grid-template-columns:11.5em 5.2em minmax(0,1fr);gap:6px 14px;align-items:start;padding:12px 16px;border-radius:16px;background:var(--paper);box-shadow:0 0 0 1px var(--line);font-size:14.5px;line-height:1.45}
ul.verdicts .who{display:inline-flex;align-items:center;gap:8px;font:600 15px/1.3 var(--sans);color:var(--ink);text-decoration:none;padding-top:1px}
ul.verdicts .who:hover{text-decoration:underline;text-decoration-color:var(--line)}
ul.verdicts .who img{width:26px;height:26px;border-radius:8px;box-shadow:0 0 0 1px var(--line);flex:none}
ul.verdicts .grade{justify-self:start;padding:3px 10px 4px;border-radius:99px;font:650 12px/1.3 var(--sans);letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;margin-top:3px}
ul.verdicts .grade.best{background:rgba(63,122,74,.14);color:#2F6A3A}
ul.verdicts .grade.good{background:rgba(63,122,74,.08);color:#3C7547}
ul.verdicts .grade.mixed{background:rgba(169,103,42,.12);color:var(--caramel)}
ul.verdicts .grade.poor{background:rgba(179,58,72,.1);color:var(--rose)}
ul.verdicts .why{color:var(--ink2)}
ul.verdicts .why a{color:var(--ink2);text-decoration:underline;text-decoration-color:var(--line)}
@media (max-width:640px){ul.verdicts li{grid-template-columns:minmax(0,1fr) max-content;padding:12px 14px}ul.verdicts .why{grid-column:1/-1}ul.verdicts .grade{justify-self:end;margin-top:0}}
ul.verdicts li.ours{box-shadow:0 0 0 2px rgba(169,103,42,.35)}
ul.verdicts .grade.ours{background:var(--cream);color:var(--caramel)}
/* {{ICON:<name>}} (site/pages.py icon()): an app icon or logo beside the product it names, in a row, a heading or a list */
img.ico{display:inline-block;width:1.45em;height:1.45em;border-radius:.32em;box-shadow:0 0 0 1px var(--line);vertical-align:-.36em;margin-right:.4em;object-fit:contain;background:#fff}
h2 img.ico,h3 img.ico{width:1.2em;height:1.2em;vertical-align:-.2em}
.tbl tbody th img.ico{width:24px;height:24px;border-radius:7px;vertical-align:middle;margin-right:6px}
/* {{PHONE:<capture>}} (site/pages.py phone()): a real app screen in an iPhone-like frame: thin black bezel, a slim
   metal rim, side buttons. The captures already carry the status bar and the Dynamic Island. The bezel is the screen's
   margin (a % of the phone's own width), so it stays thin at every size. Owner 2026-11-07: the thick brown slab looked bad. */
.phone{position:relative;display:inline-block;vertical-align:middle;width:min(40%,230px);border-radius:16.5%/7.6%;background:#0c0c0e;
  box-shadow:0 0 0 1.5px #8d8984,0 0 0 2.5px #3b3936,0 26px 40px -22px rgba(42,28,18,.5),0 8px 16px -10px rgba(42,28,18,.35)}
.phone::before,.phone::after{content:"";position:absolute;width:2.5px;border-radius:2px;background:#77736e}
.phone::before{right:-4.5px;top:23%;height:12%}
.phone::after{left:-4.5px;top:19%;height:17%;background:linear-gradient(#77736e 0 42%,transparent 42% 58%,#77736e 58%)}
.phone .scr{display:block;margin:2.6%;border-radius:14%/6.4%;overflow:hidden;aspect-ratio:1320/2868;background:#F3E7D7}
.phone .scr img{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:auto;max-width:none;border-radius:0;box-shadow:none}
figure.shot:has(.phone){display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8%;padding-top:6px}
figure.shot:has(.phone) figcaption{flex-basis:100%;margin-top:14px;text-align:left}
figure.photos .ph .phone{display:block;width:42%;margin:4px auto}
figure.photos .ph .phone .scr img{aspect-ratio:auto;height:100%}
@media (max-width:560px){figure.photos .ph .phone{grid-row:1/span 4;align-self:center;justify-self:center;width:46px;margin:4px 0}
  .phone::before,.phone::after{width:2px}.phone::before{right:-3.5px}.phone::after{left:-3.5px}}
