/* Brandlo AI Visibility check.
   Tokens follow brandlo.ai (v2): warm paper, ink, Merriweather headings, Inter text,
   pill buttons, the blue family plus one orange. */

/* ---- Fonts (self-hosted, SIL Open Font License) ---- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/merriweather-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/merriweather-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Merriweather"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/merriweather-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/merriweather-latin-ext-300-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/merriweather-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---- Tokens ---- */
:root {
  --bg: #f7f7f3;
  --card: #fff;
  --ink: #2a1013;
  --ink-2: #21282d;
  --muted: #6f6a66;
  --line: #e2e3dc;
  --line-2: #d2d5cc;
  --beige: #e6ded2;
  --blue: #a8ccfa;
  --blue-tint: #dceafd;
  --blue-deep: #4c96eb;
  --blue-ink: #325889;
  --orange: #ed9230;
  --orange-tint: #fce8cf;
  --orange-ink: #8a4b0f;
  --green: #ddf3df;
  --green-ink: #29793c;

  /* One colour per score, from the core of the mark outward. */
  --c-recognition: #21282d;
  --c-association: #325889;
  --c-authority: #4c96eb;
  --c-discovery: #ed9230;

  --serif: "Merriweather", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --frame: 1180px;
  --pad: 40px;
  --r-card: 20px;
  --shadow-card: 0 30px 60px -32px #21282d6b, 0 0 0 1px #21282d0f;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.12;
  margin: 0;
}
h1 { font-size: clamp(34px, 4.4vw, 56px); max-width: 15em; text-wrap: balance; }
h2 { font-size: clamp(26px, 2.8vw, 36px); }
h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.25; }
p { margin: 0; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; border-radius: 4px; }
h1:focus { outline: none; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink-2); color: #fcf3e6; padding: 10px 16px; border-radius: 999px; z-index: 20; }
.skip:focus { top: 12px; }

/* ---- Header and footer ---- */
.site-head {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 22px var(--pad);
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { width: 30px; height: 30px; }
.brand-word { width: 101px; height: 22px; }
.product { color: var(--ink-2); font-weight: 500; padding-left: 16px; border-left: 1px solid var(--line-2); }
.head-link { margin-left: auto; }

.site-foot {
  max-width: var(--frame);
  margin: 96px auto 0;
  padding: 28px var(--pad) 40px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  font-size: 13.5px;
}
.site-foot p { flex: 1 1 320px; }
.site-foot a { font-weight: 500; }

.banner {
  background: var(--orange-tint);
  color: var(--orange-ink);
  text-align: center;
  padding: 10px var(--pad);
  font-size: 14px;
  font-weight: 500;
}

/* ---- Buttons and links ---- */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .2s, background .2s;
}
.btn:active { transform: scale(.98); }
.btn-dark, .btn-dark:hover { background: var(--ink-2); color: #fcf3e6; }
.btn-dark:hover { background: #3a444c; }
.btn-light, .btn-light:hover { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-light:hover { background: #efe9df; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn .spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fcf3e655; border-top-color: #fcf3e6; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.linklike {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 500;
  color: var(--blue-ink);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-underline-offset: 4px;
}
.linklike:hover { color: var(--ink-2); text-decoration-color: currentColor; }

/* ---- Stage: steps 1 to 3 ---- */
.shell { max-width: var(--frame); margin: 0 auto; padding: 0 var(--pad); }
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .85fr);
  gap: 64px;
  align-items: start;
  padding-top: 40px;
}
.step { color: var(--blue-ink); font-size: 13.5px; font-weight: 500; margin-bottom: 14px; }
.lead { font-size: 17px; line-height: 1.6; max-width: 56ch; margin-top: 22px; }
.note {
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--blue-tint);
  color: var(--blue-ink);
  font-size: 14px;
  max-width: 62ch;
}
.note:empty { display: none; }
.view > .card { margin-top: 32px; }

.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.form { padding: 28px; display: grid; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: grid; gap: 6px; align-content: start; }
.label { color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
.label-gap { margin-top: 10px; }
.optional { color: var(--muted); font-weight: 400; }
.hint { font-size: 13.5px; max-width: 64ch; }
.input {
  width: 100%;
  font: inherit;
  color: var(--ink-2);
  background: #fff;
  border: 1.5px solid var(--line-2);
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { resize: vertical; min-height: 44px; line-height: 1.5; }
.input::placeholder { color: #a9a199; }
.input:hover { border-color: #b9bdb2; }
.input:focus { outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 3px var(--blue-tint); }
.input[aria-invalid="true"] { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-tint); }

.seg { display: inline-grid; grid-auto-flow: column; background: #efefe9; border-radius: 999px; padding: 4px; justify-self: start; }
.seg-btn {
  appearance: none; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 500;
  color: var(--muted); height: 36px; padding: 0 18px; border-radius: 999px; transition: background .2s, color .2s;
}
.seg-btn[aria-selected="true"] { background: #fff; color: var(--ink-2); box-shadow: 0 1px 2px #21282d1f; }

#panel-cv, #panel-li { display: grid; gap: 10px; justify-items: start; }
#panel-cv > *, #panel-li > * { max-width: 100%; }
#panel-cv .drop, #panel-li .input, #paste-wrap, #paste-wrap .input { width: 100%; }
#paste-wrap { display: grid; gap: 6px; }
.drop {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
  padding: 30px 20px;
  border: 1.5px dashed var(--line-2);
  border-radius: 14px;
  background: #fcfcfa;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop.is-over { border-color: var(--blue-deep); background: var(--blue-tint); }
.drop:focus-within { outline: 2px solid var(--blue-deep); outline-offset: 3px; }
.drop.has-file { border-style: solid; border-color: var(--green-ink); background: var(--green); }
.drop-title { font-family: var(--serif); font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.drop-choose { color: var(--blue-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 4px; }

.check-row { display: flex; align-items: center; gap: 10px; color: var(--ink-2); cursor: pointer; }
.check-row input {
  appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 5px;
  border: 1.5px solid var(--line-2); background: #fff; display: inline-grid; place-items: center; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.check-row input::after {
  content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg) scale(0); transition: transform .15s;
}
.check-row input:checked { background: var(--ink-2); border-color: var(--ink-2); }
.check-row input:checked::after { transform: translateY(-1px) rotate(45deg) scale(1); }

.form-error { color: var(--orange-ink); background: var(--orange-tint); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* Anchor strength */
.strength { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 10px; }
.strength-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.strength-title { color: var(--ink-2); font-weight: 600; }
.strength-count { color: var(--ink-2); font-size: 13.5px; }
.strength-bar { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.strength-bar i { height: 6px; border-radius: 3px; background: var(--line); transition: background .3s; }
.strength-bar i.on { background: var(--ink-2); }
.strength-missing { margin: 0; padding: 0 0 0 18px; font-size: 13.5px; display: grid; gap: 2px; }
.strength-missing:empty { display: none; }

.questions { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 18px 0 0; display: grid; gap: 14px; min-width: 0; }
.questions legend { float: left; width: 100%; padding: 0; color: var(--ink); font-family: var(--serif); font-size: 19px; letter-spacing: -.02em; }
.questions legend + * { clear: both; }
.questions .linklike { justify-self: start; }

/* ---- The rings ---- */
.figure { position: sticky; top: 28px; display: grid; gap: 26px; justify-items: center; padding-top: 30px; }
.rings { width: min(100%, 340px); aspect-ratio: 1; }
.rings svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ring-track { fill: none; stroke: #e6e7e0; }
.ring-arc { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease), stroke .4s; }
.ring-core { fill: var(--line-2); transition: fill .5s, r .5s var(--ease); transform-origin: center; transform-box: fill-box; }
.rings[data-state="locked"] .ring-core,
.rings[data-state="listening"] .ring-core { fill: var(--ink-2); }
.rings[data-state="thinking"] .ring-core { fill: var(--ink-2); animation: pulse 1.1s ease-in-out infinite; }
.rings[data-state="scored"] .ring-core { fill: var(--ink-2); }
.rings[data-state="listening"] .ring-arc { stroke: var(--ink-2); transition-duration: .5s; }
@keyframes pulse { 50% { transform: scale(.7); opacity: .55; } }

.legend { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 360px; display: grid; gap: 14px; }
.legend li { display: grid; grid-template-columns: 14px 1fr auto; gap: 2px 12px; align-items: baseline; align-content: start; }
.legend .swatch { width: 10px; height: 10px; border-radius: 50%; align-self: center; }
.legend .name { color: var(--ink-2); font-weight: 600; }
.legend .q { grid-column: 2 / -1; font-size: 13.5px; }
.legend .val { font-family: var(--serif); color: var(--ink); font-size: 18px; letter-spacing: -.02em; }
.legend a { color: inherit; text-decoration: none; }
.legend a:hover .name { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Run board ---- */
.runboard { padding: 22px 28px 20px; display: grid; gap: 14px; }
.runs { width: 100%; border-collapse: collapse; }
.runs th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13.5px; padding: 0 12px 10px 0; }
.runs td { padding: 13px 12px 13px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.runs td:first-child { color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.pips { display: inline-flex; gap: 6px; }
.pips i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); transition: background .35s, transform .35s var(--ease); }
.pips i.ok { background: var(--ink-2); transform: scale(1.08); }
.pips i.fail { background: none; box-shadow: inset 0 0 0 2px var(--orange); }
.pips.graded i.ok { background: var(--green-ink); }
.runs .na { font-size: 13.5px; }
.run-status { margin-top: 18px; min-height: 1.6em; color: var(--ink-2); }

/* ---- Report ---- */
.report { padding-top: 40px; }
.report-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.report-head .meta { margin-top: 14px; }
.report-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.report-top {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.overall-label { color: var(--ink-2); font-weight: 600; }
.overall-score { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.overall-score .num { font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 8vw, 96px); letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.overall-score .of { font-size: 17px; }
.summary { font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); line-height: 1.45; letter-spacing: -.015em; color: var(--ink); max-width: 30em; margin-top: 18px; }
.report-top .legend { max-width: none; margin-top: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.report-top .legend li { grid-template-columns: 14px 1fr auto; }

.level { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--beige); color: var(--ink-2); white-space: nowrap; }
.level[data-level="invisible"] { background: #ecebe6; color: var(--muted); }
.level[data-level="faint"] { background: var(--orange-tint); color: var(--orange-ink); }
.level[data-level="emerging"] { background: var(--blue-tint); color: var(--blue-ink); }
.level[data-level="established"], .level[data-level="prominent"] { background: var(--green); color: var(--green-ink); }

.cats { margin-top: 72px; }
.cat {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 20px 56px;
  padding: 44px 0;
  border-top: 1px solid var(--line-2);
  scroll-margin-top: 16px;
}
.cat-side { display: grid; gap: 8px; align-content: start; }
.cat-side h2 { display: flex; align-items: center; gap: 12px; }
.cat-side h2 .swatch { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.cat-score { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.cat-score .num { font-family: var(--serif); font-weight: 300; font-size: 60px; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.cat-main { display: grid; gap: 22px; min-width: 0; }
.verdict { font-family: var(--serif); font-size: 21px; line-height: 1.4; letter-spacing: -.015em; color: var(--ink); max-width: 30em; }
.counts { color: var(--ink-2); max-width: 64ch; }
.counts .agree { color: var(--muted); }

.bars { display: grid; gap: 10px; max-width: 560px; }
.bar { display: grid; grid-template-columns: 132px 1fr 34px; gap: 12px; align-items: center; font-size: 13.5px; }
.bar .track { height: 8px; border-radius: 4px; background: #e6e7e0; overflow: hidden; }
.bar .fill { display: block; height: 100%; border-radius: 4px; width: 0; transition: width 1s var(--ease); }
.bar .n { color: var(--ink-2); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.bar.na .n { color: var(--muted); font-weight: 400; }

.models { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 13.5px; }
.models caption { text-align: left; color: var(--ink-2); font-weight: 600; font-size: 15px; padding-bottom: 6px; }
.models th { text-align: right; font-weight: 500; color: var(--muted); padding: 6px 0 6px 12px; }
.models th:first-child, .models td:first-child { text-align: left; padding-left: 0; color: var(--ink-2); }
.models td { text-align: right; padding: 8px 0 8px 12px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.models td.na { color: var(--muted); }

.finding h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); margin-bottom: 8px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13.5px; padding: 5px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); max-width: 100%; overflow-wrap: anywhere; }
.chips li.hit { background: var(--green); box-shadow: none; color: var(--green-ink); }
.chips li.miss { background: none; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); }
.chips li small { font-size: 12.5px; opacity: .85; margin-left: 4px; }

.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 64ch; }
.tiers li { display: grid; gap: 3px; padding-left: 14px; border-left: 3px solid var(--line-2); }
.tiers li.hit { border-left-color: var(--green-ink); }
.tiers .t-label { color: var(--ink-2); font-weight: 600; font-size: 13.5px; }
.tiers .t-q { color: var(--ink); font-family: var(--serif); font-size: 15.5px; line-height: 1.45; }
.tiers .t-r { font-size: 13.5px; }

details.said { border-top: 1px solid var(--line); padding-top: 14px; }
details.said > summary { cursor: pointer; color: var(--blue-ink); font-weight: 500; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
details.said > summary::-webkit-details-marker { display: none; }
details.said > summary::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .2s; }
details.said[open] > summary::before { transform: rotate(45deg); }
.said-list { display: grid; gap: 22px; margin-top: 18px; }
.said-item { display: grid; gap: 6px; max-width: 72ch; }
.said-who { color: var(--ink-2); font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.said-who .mode { color: var(--muted); font-weight: 400; font-size: 13.5px; }
.said-q { font-size: 13.5px; }
.said-a { color: var(--ink-2); background: #fff; border-radius: 12px 12px 12px 3px; box-shadow: inset 0 0 0 1px var(--line); padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.said-a.err { color: var(--orange-ink); background: var(--orange-tint); box-shadow: none; }
.said-src { font-size: 13px; overflow-wrap: anywhere; }

/* Path */
.path { margin-top: 28px; padding-top: 56px; border-top: 1px solid var(--line-2); }
.path > p { margin-top: 16px; max-width: 60ch; font-size: 17px; }
.phases { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; }
.phase { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 20px 56px; padding: 32px 0; border-top: 1px solid var(--line); }
.phase-when { color: var(--blue-ink); font-weight: 500; font-size: 13.5px; }
.phase-title { font-family: var(--serif); color: var(--ink); font-size: 22px; letter-spacing: -.02em; line-height: 1.25; margin-top: 6px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.steps li { display: grid; gap: 6px; max-width: 68ch; }
.steps h3 { font-size: 19px; }
.steps p { color: var(--ink-2); }
.lifts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.lifts span { display: inline-flex; align-items: center; gap: 6px; }
.lifts i { width: 8px; height: 8px; border-radius: 50%; }
.path-note { margin-top: 28px; font-size: 13.5px; max-width: 68ch; }

.closing { margin-top: 56px; padding: 36px; display: grid; gap: 14px; justify-items: start; }
.closing p { max-width: 60ch; color: var(--ink-2); }

.method-inline { margin-top: 48px; }
.method-text { display: grid; gap: 12px; max-width: 72ch; margin-top: 16px; }
.method-text h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); margin-top: 8px; }
.method-text ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

.method-dialog { border: 0; padding: 0; border-radius: var(--r-card); box-shadow: var(--shadow-card); max-width: min(720px, calc(100vw - 32px)); color: var(--muted); background: var(--card); }
.method-dialog::backdrop { background: #21282d66; }
.method-body { padding: 32px; display: grid; gap: 8px; }
.method-body form { margin-top: 20px; }

/* ---- Small screens ---- */
@media (max-width: 920px) {
  :root { --pad: 20px; }
  .stage { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; }
  .figure { position: static; order: -1; padding-top: 0; grid-template-columns: 132px 1fr; align-items: center; gap: 20px; justify-items: start; }
  .figure .rings { width: 132px; }
  .figure .legend { gap: 6px; }
  .figure .legend .q { display: none; }
  .figure .legend li { grid-template-columns: 14px 1fr; }
  .report-top { grid-template-columns: 1fr; gap: 28px; }
  .report-top .rings { width: min(100%, 280px); margin: 0 auto; }
  .cat, .phase { grid-template-columns: 1fr; gap: 18px; padding: 34px 0; }
  .cats { margin-top: 48px; }
  .site-foot { margin-top: 64px; }
}
@media (max-width: 560px) {
  .site-head { padding: 16px var(--pad); gap: 12px; }
  .product { display: none; }
  .form { padding: 20px; }
  .grid-2 { grid-template-columns: 1fr; }
  .report-top .legend { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 108px 1fr 30px; }
  .runboard { padding: 18px 18px 16px; }
  .pips { gap: 4px; }
  .pips i { width: 10px; height: 10px; }
  .closing { padding: 24px; }
  .method-body { padding: 22px; }
  .btn { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Print: the report as a clean document ---- */
@media print {
  body { background: #fff; font-size: 11pt; }
  .site-head .head-link, .report-actions, .skip, .site-foot a, details.said > summary::before { display: none !important; }
  .shell, .site-head, .site-foot { max-width: none; padding-left: 0; padding-right: 0; }
  .card { box-shadow: 0 0 0 1px var(--line-2); }
  .said-item, .steps li, .finding, .bars, .models, .closing { break-inside: avoid; }
  /* Prints what is on screen: answers you expanded are included, the rest are left out. */
  details.said:not([open]) { display: none; }
  .cat, .phase { padding: 24px 0; }
  .cats { margin-top: 32px; }
  .path { padding-top: 32px; }
  .closing { margin-top: 28px; }
  .report-top { grid-template-columns: 220px 1fr; gap: 32px; }
  .ring-arc, .bar .fill { transition: none !important; }
  a { color: inherit; }
}
