/* Domain Assay: "Modern Hallmark" design. Fonts are self-hosted (no third-party requests). */
@font-face { font-family: "Inter"; src: url("/static/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/static/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #ffffff; --soft: #f3f5fa; --text: #0e1525; --muted: #556070; --border: #e1e6ef; --track: #eef1f6;
  --accent: #2747f5; --accent-hover: #1a33c4; --on-accent: #ffffff; --highlight: #ffd36e; --code-bg: #f3f5fa;
  --shadow: 0 18px 48px rgba(14, 21, 37, 0.12);
  /* Grade scale: dark green (A) to deep red (F). White text passes 4.5:1 on all of them. */
  --gA: #146c3a; --gB: #4d7a17; --gC: #9a6200; --gD: #b8460b; --gF: #8e1b1b;
  /* Severity: text colour + soft background */
  --crit: #8e1b1b; --crit-bg: #fbe3e3; --high: #b8460b; --high-bg: #fde7dc;
  --med: #8a5800; --med-bg: #fff3d1; --low: #44546a; --low-bg: #e8edf4;
  --info: #556070; --info-bg: #eef1f6; --pass: #146c3a; --pass-bg: #e3f5ec;
  --radius: 18px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d121c; --soft: #151c2a; --text: #e8ecf3; --muted: #9aa6b8; --border: #263044; --track: #222b3c;
    --accent: #7d95ff; --accent-hover: #a5b5ff; --on-accent: #0b1020; --highlight: #ffd36e; --code-bg: #1a2232;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    --crit: #ff8f8f; --crit-bg: #3a1a1d; --high: #ffa36b; --high-bg: #3a2216; --med: #f2c35b; --med-bg: #332914;
    --low: #a9b8cc; --low-bg: #222c3d; --info: #9aa6b8; --info-bg: #1d2535; --pass: #6fd69b; --pass-bg: #15301f;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; }
code { font-family: var(--mono); background: var(--code-bg); padding: 2px 6px; border-radius: 6px; font-size: 0.88em; word-break: break-all; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header / footer ---------- */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none;
  font-family: var(--display); font-size: 27px; font-weight: 800; letter-spacing: -0.03em; }
.brand:hover { color: var(--text); }
.brand, .site-nav a { white-space: nowrap; }
.brand svg { flex: none; }
.site-nav { display: flex; align-items: center; gap: 24px; font-weight: 500; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.site-nav .pill-link { color: var(--bg); background: var(--text); padding: 10px 16px; border-radius: 999px; }
.site-nav .pill-link:hover { color: var(--bg); opacity: 0.88; }
.site-footer { margin-top: 80px; padding: 32px 0 48px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.875rem; }
.site-footer a { color: var(--muted); }
.site-footer .footer-brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-family: var(--display); font-weight: 700; margin-bottom: 8px; }

/* ---------- search ---------- */
.search { display: flex; gap: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 6px; max-width: 600px; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 18px; padding: 10px 16px; border: 0; background: transparent; color: var(--text); outline: none; }
.search button { font: inherit; font-weight: 600; font-size: 16px; padding: 12px 24px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); cursor: pointer; white-space: nowrap; }
.search button:hover { background: var(--accent-hover); }
.form-error { color: var(--crit); margin: 10px 0 0; font-weight: 500; }

/* ---------- homepage ---------- */
.hero { background: var(--soft); border-radius: 28px; padding: 56px 48px; margin-top: 8px;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { margin: 0; font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.lede { margin: 0; font-size: 1.15rem; color: var(--muted); max-width: 620px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.ticks li::before { content: "✓ "; color: var(--pass); font-weight: 700; }
.sample { display: flex; justify-content: center; }
.sample-card { width: 100%; max-width: 360px; background: var(--bg); border-radius: 20px; padding: 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 18px; color: var(--text); text-decoration: none; }
.sample-card:hover { color: var(--text); transform: translateY(-2px); transition: transform 0.15s; }
.sample-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sample-top { display: flex; align-items: center; gap: 14px; }
.sample-top strong { font-family: var(--display); font-size: 18px; display: block; word-break: break-word; }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 40px 0; }
.feature { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 14px; }
.feature h2 { margin: 0 0 6px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.section-title { font-size: 1.4rem; margin: 0 0 14px; }
.recent { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.recent a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px;
  color: var(--text); text-decoration: none; overflow: hidden; }
.recent a:hover { border-color: var(--accent); color: var(--text); }
.recent span.name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- grades ---------- */
.grade-tile { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-family: var(--display); font-weight: 700; flex: none; }
.grade-tile.lg { width: 56px; height: 56px; border-radius: 14px; font-size: 32px; }
.grade-tile.sm { width: 30px; height: 30px; border-radius: 8px; font-size: 16px; }
.g-A { background: var(--gA); } .g-B { background: var(--gB); } .g-C { background: var(--gC); } .g-D { background: var(--gD); } .g-F { background: var(--gF); }
.s-A { stroke: var(--gA); } .s-B { stroke: var(--gB); } .s-C { stroke: var(--gC); } .s-D { stroke: var(--gD); } .s-F { stroke: var(--gF); }

.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: flex; flex-direction: column; gap: 6px; }
.bar-label { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 500; }
.bar-label a { color: var(--text); text-decoration: none; }
.bar-label a:hover { color: var(--accent); }
.bar { height: 8px; background: var(--track); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; }
.bars.compact { gap: 10px; }
.bars.compact .bar { height: 6px; }
.bars.compact .bar-label { font-size: 14px; font-weight: 400; }

/* ---------- report ---------- */
.report-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; margin-top: 16px; }
.panel { border: 1px solid var(--border); border-radius: 24px; padding: 28px 32px; }
.summary-panel { display: flex; gap: 28px; align-items: center; }
.dial { flex: none; }
.dial-track { stroke: var(--track); }
.dial-grade { font-family: var(--display); font-weight: 700; fill: var(--text); }
.dial-score { font-family: var(--body); fill: var(--muted); }
.summary-panel h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 3.5vw, 2.5rem); word-break: break-word; }
.summary-panel .lede { font-size: 1.05rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.pill { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.pill.critical { color: #fff; background: var(--gF); } .pill.high { color: #fff; background: var(--gD); }
.pill.medium { color: #0e1525; background: var(--highlight); } .pill.low { color: var(--low); background: var(--low-bg); }
.link-button { background: none; border: 0; padding: 4px 0; color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.link-button:hover { color: var(--accent-hover); text-decoration: underline; }
.meta { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.notice { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--med-bg); color: var(--text); font-size: 0.92rem; }
.bars-panel { display: flex; flex-direction: column; justify-content: center; }
.not-checked { font-size: 13px; color: var(--muted); }

.report-section { margin-top: 44px; scroll-margin-top: 16px; }
.report-section > h2 { font-size: 1.6rem; margin: 0 0 6px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.report-section > h2 .grade-tile { font-size: 15px; }
.section-note { margin: 0 0 14px; color: var(--muted); }
.report-section > h2 + .passes { margin-top: 14px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 16px; padding: 18px 20px; background: var(--soft); border-radius: 16px; font-size: 0.95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; }

.finding { border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 12px; background: var(--bg); }
.finding summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 22px; }
.finding summary::-webkit-details-marker { display: none; }
.finding summary:hover .finding-title { color: var(--accent); }
.finding[open] summary { padding-bottom: 6px; }
.finding-title { flex: 1; font-size: 1.05rem; font-weight: 600; }
.finding-sev { font-size: 13px; font-weight: 600; text-transform: capitalize; white-space: nowrap; }
.finding-body { padding: 0 22px 20px 78px; }
.finding-body p { margin: 0 0 12px; color: var(--muted); }
.fix { background: var(--soft); border-radius: 12px; padding: 14px 16px; }
.fix strong { display: block; font-size: 13px; color: var(--accent); margin-bottom: 4px; }
.fix p { margin: 0; color: var(--text); white-space: pre-line; font-family: var(--mono); font-size: 0.85rem; overflow-x: auto; word-break: break-word; }
.sev-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.critical .sev-icon { background: var(--crit-bg); color: var(--crit); } .critical .finding-sev { color: var(--crit); }
.high .sev-icon { background: var(--high-bg); color: var(--high); } .high .finding-sev { color: var(--high); }
.medium .sev-icon { background: var(--med-bg); color: var(--med); } .medium .finding-sev { color: var(--med); }
.low .sev-icon { background: var(--low-bg); color: var(--low); } .low .finding-sev { color: var(--low); }
.info .sev-icon { background: var(--info-bg); color: var(--info); } .info .finding-sev { color: var(--info); }

.passes { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.passes li { font-size: 14px; color: var(--pass); background: var(--pass-bg); padding: 7px 14px; border-radius: 999px; }
.passes li::before { content: "✓ "; font-weight: 700; }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { font-weight: 600; color: var(--muted); }
.table-box { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; margin-top: 12px; }
.table-box table tr:last-child td { border-bottom: 0; }
.history { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.history li { display: flex; align-items: center; gap: 12px; }
.cta { margin-top: 56px; background: var(--soft); border-radius: 24px; padding: 32px; }
.cta h2 { margin: 0 0 14px; }

/* ---------- severity badges (methodology) ---------- */
.sev { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; }
.sev-critical { color: #fff; background: var(--gF); } .sev-high { color: #fff; background: var(--gD); }
.sev-medium { color: #0e1525; background: var(--highlight); } .sev-low { color: var(--low); background: var(--low-bg); }
.sev-info { color: var(--info); background: var(--info-bg); }

/* ---------- text pages & messages ---------- */
.prose { max-width: 740px; padding-top: 40px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 16px; }
.prose h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.prose h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.prose table { margin: 12px 0 20px; }
.message { max-width: 680px; padding: 64px 0 24px; display: flex; flex-direction: column; gap: 18px; }
.message h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 3rem); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero, .report-top { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hero { padding: 32px 20px; border-radius: 22px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .site-nav { gap: 14px; font-size: 14px; }
  .site-nav .hide-sm { display: none; }
  .brand { font-size: 22px; gap: 10px; }
  .brand .logo { width: 34px; height: 34px; }
  .site-header .wrap { min-height: 64px; }
  .summary-panel { flex-direction: column; align-items: flex-start; gap: 16px; }
  .panel { padding: 22px 20px; }
  .search { flex-wrap: wrap; border-radius: 22px; }
  .search button { width: 100%; }
  .finding summary { gap: 12px; padding: 16px; }
  .finding-body { padding: 0 16px 16px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}

/* Bar widths as classes: the CSP blocks inline style attributes. */
.bar-0{width:0%} .bar-1{width:1%} .bar-2{width:2%} .bar-3{width:3%} .bar-4{width:4%} .bar-5{width:5%} .bar-6{width:6%} .bar-7{width:7%} .bar-8{width:8%} .bar-9{width:9%} .bar-10{width:10%} .bar-11{width:11%} .bar-12{width:12%} .bar-13{width:13%} .bar-14{width:14%} .bar-15{width:15%} .bar-16{width:16%} .bar-17{width:17%} .bar-18{width:18%} .bar-19{width:19%} .bar-20{width:20%} .bar-21{width:21%} .bar-22{width:22%} .bar-23{width:23%} .bar-24{width:24%} .bar-25{width:25%} .bar-26{width:26%} .bar-27{width:27%} .bar-28{width:28%} .bar-29{width:29%} .bar-30{width:30%} .bar-31{width:31%} .bar-32{width:32%} .bar-33{width:33%} .bar-34{width:34%} .bar-35{width:35%} .bar-36{width:36%} .bar-37{width:37%} .bar-38{width:38%} .bar-39{width:39%} .bar-40{width:40%} .bar-41{width:41%} .bar-42{width:42%} .bar-43{width:43%} .bar-44{width:44%} .bar-45{width:45%} .bar-46{width:46%} .bar-47{width:47%} .bar-48{width:48%} .bar-49{width:49%} .bar-50{width:50%} .bar-51{width:51%} .bar-52{width:52%} .bar-53{width:53%} .bar-54{width:54%} .bar-55{width:55%} .bar-56{width:56%} .bar-57{width:57%} .bar-58{width:58%} .bar-59{width:59%} .bar-60{width:60%} .bar-61{width:61%} .bar-62{width:62%} .bar-63{width:63%} .bar-64{width:64%} .bar-65{width:65%} .bar-66{width:66%} .bar-67{width:67%} .bar-68{width:68%} .bar-69{width:69%} .bar-70{width:70%} .bar-71{width:71%} .bar-72{width:72%} .bar-73{width:73%} .bar-74{width:74%} .bar-75{width:75%} .bar-76{width:76%} .bar-77{width:77%} .bar-78{width:78%} .bar-79{width:79%} .bar-80{width:80%} .bar-81{width:81%} .bar-82{width:82%} .bar-83{width:83%} .bar-84{width:84%} .bar-85{width:85%} .bar-86{width:86%} .bar-87{width:87%} .bar-88{width:88%} .bar-89{width:89%} .bar-90{width:90%} .bar-91{width:91%} .bar-92{width:92%} .bar-93{width:93%} .bar-94{width:94%} .bar-95{width:95%} .bar-96{width:96%} .bar-97{width:97%} .bar-98{width:98%} .bar-99{width:99%} .bar-100{width:100%}
.logo .logo-bg { fill: var(--accent); }
.logo .logo-line { fill: none; stroke: var(--on-accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- quick answers ---------- */
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; }
.qa-item { border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; }
.qa-item dt { font-weight: 600; margin-bottom: 6px; }
.qa-item dd { margin: 0; display: flex; gap: 10px; color: var(--muted); word-break: break-word; }
.qa-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.qa-item.good .qa-mark { background: var(--pass-bg); color: var(--pass); }
.qa-item.bad .qa-mark { background: var(--high-bg); color: var(--high); }
.qa-item.neutral .qa-mark { background: var(--info-bg); color: var(--info); }
@media (max-width: 700px) { .qa { grid-template-columns: minmax(0, 1fr); } }

/* ---------- research page ---------- */
:root { --seg1: #17663a; --seg2: #5fae7a; --seg3: #e3a63b; --seg4: #b8302a; --seg-text: #ffffff; --seg-text-light: #0e1525; }
@media (prefers-color-scheme: dark) { :root { --seg1: #21784a; --seg2: #64b081; --seg3: #cc8f2a; --seg4: #e2557d; } }
.research { max-width: 900px; }
.research-head { padding-top: 40px; }
.kicker { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--accent); }
.research-head h1 { margin: 0 0 14px; font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.03em; }
.stat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 32px 0 8px; }
.stat-tile { background: var(--soft); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: var(--display); font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat-label { color: var(--muted); font-size: 0.92rem; }
.research-section { margin-top: 48px; }
.research-section h2 { font-size: 1.6rem; margin: 0 0 6px; }
.research-section h3 { font-size: 1.15rem; margin: 28px 0 6px; }
.hbars { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 120px; gap: 14px; align-items: center; }
.hbar-label { font-size: 0.95rem; overflow-wrap: anywhere; }
.hbar-track { height: 14px; background: var(--track); border-radius: 4px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.hbar-value { font-size: 0.92rem; text-align: right; white-space: nowrap; }
.stack { display: flex; gap: 2px; height: 34px; margin-top: 14px; border-radius: 6px; overflow: hidden; background: var(--bg); }
.seg { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; min-width: 2px; color: var(--seg-text); }
.seg-1 { background: var(--seg1); } .seg-2 { background: var(--seg2); color: var(--seg-text-light); }
.seg-3 { background: var(--seg3); color: var(--seg-text-light); } .seg-4 { background: var(--seg4); }
.legend { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.92rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.prose-note p { color: var(--muted); max-width: 740px; }
.teaser { margin: 40px 0; border: 1px solid var(--border); border-radius: 24px; padding: 28px 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; color: var(--text); text-decoration: none; }
.teaser:hover { border-color: var(--accent); color: var(--text); }
.teaser h2 { margin: 0 0 6px; font-size: 1.35rem; }
.teaser p { margin: 0; color: var(--muted); }
.teaser .stat-num { color: var(--accent); }
@media (max-width: 800px) { .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .hbar { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .hbar-track { grid-column: 1 / -1; grid-row: 2; }
  .teaser { grid-template-columns: minmax(0, 1fr); }
}
.hbar-fill.g-A { background: var(--gA); } .hbar-fill.g-B { background: var(--gB); } .hbar-fill.g-C { background: var(--gC); }
.hbar-fill.g-D { background: var(--gD); } .hbar-fill.g-F { background: var(--gF); }
.hbars-grades .hbar { grid-template-columns: 40px minmax(0, 1fr) 120px; }
@media (max-width: 600px) { .hbars-grades .hbar { grid-template-columns: 40px minmax(0, 1fr) auto; } .hbars-grades .hbar-track { grid-column: auto; grid-row: auto; } }

/* ---------- comparison with the top websites ---------- */
.compare-lede { font-size: 1.15rem; margin: 6px 0 18px; }
.gstrip { position: relative; display: flex; height: 34px; margin-top: 44px; }
.gstrip .seg { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-family: var(--display); font-size: 0.95rem; }
.gstrip .seg:first-child { border-radius: 10px 0 0 10px; }
.gstrip .seg:nth-last-child(2) { border-radius: 0 10px 10px 0; }
.gstrip .seg + .seg { border-left: 2px solid var(--bg); }
.seg.g-A { background: var(--gA); } .seg.g-B { background: var(--gB); } .seg.g-C { background: var(--gC); }
.seg.g-D { background: var(--gD); } .seg.g-F { background: var(--gF); }
.gmarker { position: absolute; top: -10px; bottom: -10px; width: 4px; margin-left: -2px; background: var(--text); border-radius: 2px; }
.gmarker-label { position: absolute; bottom: calc(100% + 6px); white-space: nowrap; font-size: 0.85rem; font-weight: 600;
  background: var(--text); color: var(--bg); padding: 3px 9px; border-radius: 999px;
  max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
.gmarker-label.to-right { left: -10px; }
.gmarker-label.to-left { right: -10px; }
.gstrip-scale { display: flex; justify-content: space-between; margin-top: 14px; }
.sub-h { font-size: 1.1rem; margin: 30px 0 4px; }
.hbar-fill.c-issue { background: var(--high); }
.tag-rare { display: inline-block; margin-left: 6px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--crit); background: var(--crit-bg); padding: 1px 7px; border-radius: 999px; vertical-align: 2px; }

/* ---------- website header tables ---------- */
.check-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.check-table th, .check-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.check-table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--soft); }
.check-table code { word-break: break-word; }
.mk { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; margin-right: 4px; vertical-align: -4px; }
.mk.good { color: var(--pass); background: var(--pass-bg); }
.mk.bad { color: var(--high); background: var(--high-bg); }
.mk.neutral { color: var(--info); background: var(--info-bg); }
details.raw { margin-top: 26px; border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px; }
details.raw summary { cursor: pointer; font-weight: 600; overflow-wrap: anywhere; }
details.raw pre { font-family: var(--mono); font-size: 0.82rem; background: var(--code-bg); padding: 14px; border-radius: 10px;
  overflow-x: auto; margin: 12px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.at-0{left:0%} .at-1{left:1%} .at-2{left:2%} .at-3{left:3%} .at-4{left:4%} .at-5{left:5%} .at-6{left:6%} .at-7{left:7%} .at-8{left:8%} .at-9{left:9%} .at-10{left:10%} .at-11{left:11%} .at-12{left:12%} .at-13{left:13%} .at-14{left:14%} .at-15{left:15%} .at-16{left:16%} .at-17{left:17%} .at-18{left:18%} .at-19{left:19%} .at-20{left:20%} .at-21{left:21%} .at-22{left:22%} .at-23{left:23%} .at-24{left:24%} .at-25{left:25%} .at-26{left:26%} .at-27{left:27%} .at-28{left:28%} .at-29{left:29%} .at-30{left:30%} .at-31{left:31%} .at-32{left:32%} .at-33{left:33%} .at-34{left:34%} .at-35{left:35%} .at-36{left:36%} .at-37{left:37%} .at-38{left:38%} .at-39{left:39%} .at-40{left:40%} .at-41{left:41%} .at-42{left:42%} .at-43{left:43%} .at-44{left:44%} .at-45{left:45%} .at-46{left:46%} .at-47{left:47%} .at-48{left:48%} .at-49{left:49%} .at-50{left:50%} .at-51{left:51%} .at-52{left:52%} .at-53{left:53%} .at-54{left:54%} .at-55{left:55%} .at-56{left:56%} .at-57{left:57%} .at-58{left:58%} .at-59{left:59%} .at-60{left:60%} .at-61{left:61%} .at-62{left:62%} .at-63{left:63%} .at-64{left:64%} .at-65{left:65%} .at-66{left:66%} .at-67{left:67%} .at-68{left:68%} .at-69{left:69%} .at-70{left:70%} .at-71{left:71%} .at-72{left:72%} .at-73{left:73%} .at-74{left:74%} .at-75{left:75%} .at-76{left:76%} .at-77{left:77%} .at-78{left:78%} .at-79{left:79%} .at-80{left:80%} .at-81{left:81%} .at-82{left:82%} .at-83{left:83%} .at-84{left:84%} .at-85{left:85%} .at-86{left:86%} .at-87{left:87%} .at-88{left:88%} .at-89{left:89%} .at-90{left:90%} .at-91{left:91%} .at-92{left:92%} .at-93{left:93%} .at-94{left:94%} .at-95{left:95%} .at-96{left:96%} .at-97{left:97%} .at-98{left:98%} .at-99{left:99%} .at-100{left:100%}
.check-table td:first-child, .check-table td:first-child code { white-space: nowrap; word-break: normal; }
/* Phones: each row becomes a small card (name, then labelled values) instead of a cramped table. */
@media (max-width: 600px) {
  .check-table thead { display: none; }
  .check-table tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .check-table tr:last-child { border-bottom: 0; }
  .check-table td { display: block; padding: 2px 0; border: 0; }
  .check-table td:first-child { font-weight: 600; margin-bottom: 4px; white-space: normal; }
  .check-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 0.85rem; }
}
