/* AI Visibility Checker: one reading column, manuscript-pigment palette, no JavaScript. */
:root {
  /* Marahel's purple for ink and action; its magenta only as the marker on the owner's own site */
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --band: #F5F3F9;
  --ink: #20123F;
  --muted: #5F5872;
  --rule: #DED9E8;
  --lapis: #482683;
  --lapis-deep: #35196A;
  --wash: #F1EEF8;
  --marker: #F7C4D9;
  --marker-ink: #B0004C;
  --code-bg: #20123F;
  --code-ink: #F3EFFA;
  --high: #A8322B;      /* carnelian */
  --medium: #8F620F;    /* saffron, darkened for contrast */
  --low: #46617D;
  --pass: #2B6E51;      /* malachite */
  --radius: 6px;
  --page: 72rem;        /* the page */
  --measure: 44rem;     /* a comfortable line for reading */
  --display: "Markazi Text", "Readex Pro", serif;  /* a Naskh-like serif for headings and the questions people ask */
  font-size: 106.25%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}


.wrap { max-width: var(--page); margin: 0 auto; padding: 0 1.25rem; }
main p, main ol { max-width: var(--measure); }

a { color: var(--lapis); text-underline-offset: 0.15em; }
a:hover { color: var(--lapis-deep); }
:focus-visible { outline: 3px solid var(--lapis); outline-offset: 2px; }

/* Addresses can be one long word (or a long Arabic slug): let them wrap anywhere. */
main { overflow-wrap: break-word; }
/* Addresses keep their own left-to-right order inside Arabic text, and line up with it on the right */
.url { overflow-wrap: anywhere; direction: ltr; unicode-bidi: isolate; }
.nav-links a { white-space: nowrap; }
[dir="rtl"] .url { text-align: end; }

/* Header */
.masthead { border-bottom: 1px solid var(--rule); }
.nav { display: flex; justify-content: space-between; align-items: center; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
/* Marahel, who runs the tool, then the tool's own name; on phones the logo's squares only */
.brand picture { display: block; flex: none; }
.publisher-logo { display: block; height: 30px; width: auto; }
.brand-divider { flex: none; width: 1px; height: 1.6rem; background: var(--rule); }
.brand { min-width: 0; }
.brand-name { min-width: 0; }  /* the tool's name wraps before the header outgrows a phone */
@media (max-width: 36rem) { .brand { gap: 0.5rem; } .publisher-logo { height: 26px; } .nav { gap: 0.75rem; } }

main.wrap { padding-bottom: 3rem; }

h1 { font-family: var(--display); font-size: 2.6rem; line-height: 1.15; font-weight: 600; margin: 2.25rem 0 0.75rem; }
h2 { font-family: var(--display); font-size: 1.85rem; line-height: 1.25; font-weight: 600; margin: 2.75rem 0 0.5rem; }
code, pre { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
h3 { font-size: 1.12rem; line-height: 1.35; font-weight: 600; margin: 0.25rem 0 0.5rem; }
p { margin: 0 0 1rem; }

.lede { font-size: 1.15rem; color: var(--muted); }
.lede .hint { display: block; line-height: 1.5; margin-top: 0.3rem; }
.tick { color: var(--pass); font-weight: 700; }
.hint { font-size: 0.9rem; color: var(--muted); }

/* The check form */
.check {
  margin: 1.75rem 0 0; padding: 1.25rem; background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius);
}
.check label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.check-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.check input[type="text"] {
  flex: 1 1 16rem; min-width: 0; font: inherit; padding: 0.7rem 0.8rem;
  border: 2px solid var(--muted); border-radius: 6px; background: #fff; color: var(--ink);
}
.check input[type="text"]:focus { border-color: var(--lapis); }
.check .hint { margin: 0.6rem 0 0; }
.check .tick-box { display: flex; align-items: center; gap: 0.5rem; margin: 0.85rem 0 0; font-weight: 400; cursor: pointer; }
.check .tick-box input { width: 1.1rem; height: 1.1rem; accent-color: var(--lapis); }
.check .tick-box + .hint { margin-top: 0.2rem; }
button {
  font: inherit; font-weight: 600; padding: 0.7rem 1.3rem; border: 2px solid var(--lapis);
  border-radius: 6px; background: var(--lapis); color: #fff; cursor: pointer;
}
button:hover { background: var(--lapis-deep); border-color: var(--lapis-deep); }
button.link {
  background: none; border: 0; padding: 0; color: var(--lapis); font-weight: 400;
  text-decoration: underline; text-underline-offset: 0.15em; text-align: start;
}

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3.5rem; margin-top: 1rem; }
/* The evaluation form: numbered steps, choices as chips */
/* A line above each step, drawn inside the box so it never crosses the step's heading */
.evaluate .step { border: 0; margin: 0; padding: 1.2rem 0 0.3rem; min-width: 0; box-shadow: inset 0 1px var(--rule); }
.evaluate .step:first-of-type { padding-top: 0; box-shadow: none; }
.evaluate .step + .step { margin-top: 0.6rem; }
/* Floated, a legend sits inside its step (below the line) instead of across the step's top edge */
.evaluate legend { float: left; width: 100%; display: flex; align-items: center; gap: 0.6rem; padding: 0; margin-bottom: 0.5rem; font-weight: 700; font-size: 1.05rem; }
.evaluate legend + * { clear: both; }
.evaluate legend .n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--lapis); color: #fff; font-size: 0.85rem; }
.evaluate .optional { font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.evaluate .field-label, .check.evaluate label[for] { display: block; margin: 0.7rem 0 0.35rem; font-weight: 600; }
.check.evaluate input[type="text"] { width: 100%; }
.evaluate .choices { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; }
.check .choice { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; padding: 0.3rem 0.75rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); font-weight: 400; cursor: pointer; }
.check .choice:has(input:checked) { border-color: var(--lapis); background: var(--wash); color: var(--lapis-deep); font-weight: 600; }
.check .choice input { accent-color: var(--lapis); }
/* "All languages": the server takes every language, so the single ones step back while it's ticked (no script). */
.languages .all-note { display: none; flex-basis: 100%; margin: 0.1rem 0 0; }
.languages:has(.all input:checked) .all-note { display: block; }
.languages:has(.all input:checked) .choice:not(.all) { opacity: 0.45; }
.check.evaluate label.sub-label { margin-top: 0.6rem; font-weight: 400; }
.evaluate .countries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.evaluate .countries select { min-width: 0; font: inherit; padding: 0.5rem; border: 2px solid var(--muted); border-radius: 6px; background: #fff; color: var(--ink); }
.evaluate .list-inputs { display: grid; gap: 0.45rem; }
.evaluate .submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; margin-top: 1.2rem; }
.evaluate .submit-row .hint { margin: 0; }
.nav-links { display: inline-flex; gap: 1.1rem; align-items: center; }
@media (max-width: 36rem) { .evaluate .countries { grid-template-columns: minmax(0, 1fr); } }
.faq h2 { font-size: 1.5rem; margin-top: 2rem; }

/* Recent checks: the score in its verdict colour */
.history .score { margin-inline-start: 0.2rem; }
.recent li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.6rem; }
.recent li > a { min-width: 0; }
.score {
  display: inline-block; min-width: 2.4rem; padding: 0 0.4rem; border-radius: 6px; text-align: center;
  font-weight: 700; font-variant-numeric: tabular-nums; background: var(--wash); color: var(--v, var(--muted));
}

/* Verdict colours, set on a parent and read by its parts */
.v-good { --v: var(--pass); }
.v-fair { --v: var(--medium); }
.v-poor { --v: var(--high); }

/* Reports: the scores and who can read the page, side by side */
.summary { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.25rem; margin: 1.5rem 0 2rem; }
.summary > :only-child { grid-column: 1 / -1; }
.summary > .scores { margin: 0; }

.access { padding: 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.access h2 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.readers { list-style: none; margin: 0 0 0.75rem; padding: 0; }
.reader { display: grid; grid-template-columns: 2rem 5.6rem minmax(0, 1fr); align-items: center; padding: 0.45rem 0; border-bottom: 1px solid var(--rule); }
.reader:last-child { border-bottom: 0; }
.reader .icon {  /* a filled circle in the verdict colour, the mark in white */
  display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  font-size: 0.75rem; font-weight: 700; line-height: 1; color: #fff; background: var(--muted);
}
.reader .name { font-weight: 600; }
.reader .state { font-size: 0.95rem; color: var(--muted); }
.tone-good .icon { background: var(--pass); }
.tone-bad .icon { background: var(--high); }
.tone-warn .icon { background: var(--medium); }
.tone-unknown .icon { background: var(--muted); }
.tone-bad .state { color: var(--high); }
.tone-warn .state { color: var(--medium); }
.tone-bad .state, .tone-warn .state { font-weight: 600; }
.access .hint { margin: 0; font-size: 0.85rem; line-height: 1.45; }

/* Scores */
.scores {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem 2rem; align-items: start;
  margin: 1.5rem 0 2rem; padding: 1.4rem 1.5rem; background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius);
}
.overall { display: flex; flex-direction: column; }
.overall .num { font-size: 4.2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.overall .verdict { font-weight: 700; font-size: 1.1rem; color: var(--v, var(--ink)); margin-top: 0.4rem; }
.overall .of { font-size: 0.85rem; color: var(--muted); }
.overall .mode { margin-top: 0.6rem; padding: 0.25rem 0.55rem; border-radius: 6px; background: var(--wash); color: var(--lapis-deep); font-size: 0.8rem; font-weight: 600; line-height: 1.35; align-self: flex-start; }
.groups { margin: 0; display: grid; gap: 0.85rem; }
.group { display: grid; grid-template-columns: 2.9rem 2.9rem 1fr; align-items: center; column-gap: 0.75rem; }
.group dt { font-weight: 600; }
.group dd { margin: 0; }
.group .num { font-size: 1.35rem; font-weight: 700; text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--v, var(--muted)); }
.group .unscored { font-size: 0.85rem; color: var(--muted); font-style: italic; line-height: 1.35; }
.group .bar svg { display: block; width: 100%; height: 8px; border-radius: 4px; overflow: hidden; }
.bar .track { fill: var(--wash); }
.bar .fill { fill: var(--v, var(--muted)); }
[dir="rtl"] .bar svg { transform: scaleX(-1); }  /* the bar fills from where the text starts */
.group .meaning { grid-column: 1 / -1; font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.scores .missing, .scores .how { grid-column: 1 / -1; margin: 0; }
.scores .how summary { font-size: 0.9rem; }
.scores .how p { margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--muted); }

.form-error { margin: 0 0 1.1rem; padding: 0.7rem 1rem; background: var(--surface); border: 1px solid var(--rule);
  border-inline-start: 4px solid var(--high); border-radius: 6px; }
.form-error p { margin: 0; }
.notice { background: var(--wash); border-inline-start: 4px solid var(--lapis); padding: 0.75rem 1rem; border-radius: 6px;
  border-start-start-radius: 0; border-end-start-radius: 0; }
.banner { border: 2px solid var(--high); border-radius: var(--radius); padding: 0.9rem 1.1rem; margin: 1.25rem 0; background: var(--surface); }
.banner h2 { color: var(--high); margin-top: 0; font-size: 1.15rem; }
.banner p:last-child { margin-bottom: 0; }
@media (min-width: 60rem) {  /* heading beside the text, so the box's width isn't left empty */
  .banner { display: grid; grid-template-columns: 17rem minmax(0, 1fr); column-gap: 2rem; }
  .banner h2 { grid-row: 1 / span 2; margin: 0; font-size: 1.3rem; line-height: 1.3; }
}

/* Problems: one row each, opened for the detail. Priority shows as an edge colour, an icon and a word. */
.finding { border-top: 1px solid var(--rule); border-inline-start: 4px solid var(--low); }
.finding:last-of-type { border-bottom: 1px solid var(--rule); }
.finding.sev-high { border-inline-start-color: var(--high); }
.finding.sev-medium { border-inline-start-color: var(--medium); }
.finding.sev-info { border-inline-start-color: var(--rule); }
.finding > summary {
  display: block; list-style: none; position: relative; cursor: pointer; color: var(--ink);
  padding-block: 0.75rem 0.8rem; padding-inline: 2.1rem 0.75rem;
}
.finding > summary::-webkit-details-marker { display: none; }
.finding > summary::before {  /* a chevron that turns when the row opens */
  content: ""; position: absolute; inset-inline-start: 0.8rem; top: 1.2rem; width: 0.45rem; height: 0.45rem;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg);
  transition: transform 0.15s ease;
}
.finding[open] > summary::before { transform: rotate(45deg); }
[dir="rtl"] .finding:not([open]) > summary::before { transform: rotate(135deg); }  /* points the way the text reads */
.finding > summary:hover { background: var(--wash); }
.finding .title { display: block; font-weight: 600; font-size: 1.05rem; line-height: 1.4; margin-top: 0.1rem; }
.finding .meta { font-size: 0.85rem; color: var(--muted); margin-inline-start: 0.4rem; }
.finding .body { padding-block: 0.1rem 1.1rem; padding-inline: 2.1rem 0.75rem; }
.sev { margin: 0; font-size: 0.85rem; font-weight: 600; }
@media (min-width: 60rem) {  /* narrower, the title column gets too tight: rows stack */
  .finding > summary { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; column-gap: 1.25rem; align-items: baseline; }
  .finding .sev { grid-column: 1; grid-row: 1; }
  .finding .title { grid-column: 2; grid-row: 1; margin: 0; }
  .finding .meta { grid-column: 3; grid-row: 1; margin: 0; text-align: end; }
  .finding .body { padding-inline-start: 12.85rem; }
}
.sev-high .sev { color: var(--high); }
.sev-medium .sev { color: var(--medium); }
.sev-low .sev { color: var(--low); }
.sev-info .sev { color: var(--muted); }
.steps { padding-inline-start: 1.4rem; }
.steps li { margin-bottom: 0.35rem; }
.fix-first { margin-top: 2.75rem; padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--rule); border-inline-start: 4px solid var(--lapis); border-radius: var(--radius); }
.fix-first h2 { margin-top: 0; }
.steps-first { margin: 0; padding-inline-start: 1.4rem; }
.steps-first li { margin-bottom: 0.7rem; }
.steps-first li:last-child { margin-bottom: 0; }
.steps-first a { font-weight: 600; }
.steps-first .gain { display: inline-block; margin-inline-start: 0.4rem; padding: 0 0.45rem; border-radius: 6px; background: var(--wash); color: var(--pass); font-size: 0.85rem; font-weight: 700; }
.steps-first .first-step { display: block; color: var(--muted); font-size: 0.9rem; max-width: var(--measure); }
/* Live check */
.check .live-box { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--rule); }
.check .country { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.5rem 0 0; font-weight: 400; }
.check .country select { font: inherit; padding: 0.35rem 0.5rem; border: 2px solid var(--muted); border-radius: 6px; background: #fff; color: var(--ink); max-width: 100%; }
.scores .live-group { grid-column: 2; margin-top: 0; padding-top: 0.85rem; border-top: 1px dashed var(--rule); }
q:lang(ar), q:lang(ur), q:lang(fa) { quotes: "«" "»"; }
.live { margin: 0 0 2rem; }
.live-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.live-row { padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.live-row h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.live-row p { margin: 0 0 0.35rem; }
.live-row .result { font-weight: 700; font-size: 1.05rem; }
.live-row .result.good { color: var(--pass); }
.live-row .result.bad { color: var(--high); }
@media (max-width: 48rem) { .live-rows { grid-template-columns: minmax(0, 1fr); } }
/* How this evaluation was set up */
.setup { margin: 0 0 1.75rem; }
.setup details { padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.setup summary { color: var(--ink); font-weight: 600; }
.setup .setup-short { color: var(--muted); font-weight: 400; }
.setup-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.4rem 1.25rem; margin: 0.9rem 0 0.6rem; }
.setup-list dt { color: var(--muted); font-weight: 600; }
.setup-list dd { margin: 0; }
.setup-list ul { margin: 0; }
.live-question + .live-question { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--rule); }
@media (max-width: 36rem) { .setup-list { grid-template-columns: minmax(0, 1fr); } .setup-list dd { margin-bottom: 0.5rem; } }
.pages-label { font-weight: 600; margin: 1rem 0 0.25rem; }

pre {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 0.75rem;
  overflow-x: auto; font-size: 0.85rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere;
}

.crawlers { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 0.5rem 0 0; }
.crawlers th, .crawlers td { text-align: start; vertical-align: top; padding-block: 0.4rem; padding-inline: 0 0.5rem; border-bottom: 1px solid var(--rule); }
.crawlers .ok { color: var(--pass); font-weight: 600; }
.crawlers .blocked { color: var(--high); font-weight: 600; }

ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: 0.2rem 0; }
@media (min-width: 48rem) {
  ul.checks { columns: 2; column-gap: 3rem; }
  ul.checks li { break-inside: avoid; }
}
@media (min-width: 60rem) {
  .limits ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; list-style: none; padding: 0; }
  .limits li { border-top: 3px solid var(--rule); padding-top: 0.75rem; }
  .limits li strong { display: block; margin-bottom: 0.25rem; }
}
details summary { cursor: pointer; color: var(--lapis); }
.candidates ul { padding-inline-start: 1.2rem; }
.rerun { margin-top: 2.5rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

/* Progress */
.progress {
  display: flex; gap: 1rem; align-items: flex-start; margin: 1.5rem 0 1rem; padding: 1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
}
.progress p { margin: 0; }
.step { font-weight: 600; }
.spinner {
  flex: none; width: 1.35rem; height: 1.35rem; margin-top: 0.15rem; border-radius: 50%;
  border: 3px solid var(--wash); border-top-color: var(--lapis); animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.footer { border-top: 1px solid var(--rule); padding: 1rem 0 2rem; color: var(--muted); font-size: 0.9rem; }

@media (min-width: 60rem) { h1 { font-size: 3.1rem; } }
@media (max-width: 60rem) {
  .summary { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 48rem) { .faq { grid-template-columns: minmax(0, 1fr); gap: 0; } }
@media (max-width: 36rem) {
  h1 { font-size: 2.2rem; }
  .scores { grid-template-columns: 1fr; padding: 1.1rem; }
  .scores .live-group { grid-column: auto; }
  .overall { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 0.75rem; }
  .overall .num { font-size: 3.4rem; }
  .overall .of { flex-basis: 100%; }
  .finding > summary { padding-inline-end: 0.5rem; }
  .finding .body { padding-inline: 1rem 0.5rem; }
  .crawlers thead { display: none; }
  .crawlers tr { display: block; border-bottom: 1px solid var(--rule); padding: 0.4rem 0; }
  .crawlers td { display: block; border: 0; padding: 0.1rem 0; }
}

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

/* Shared */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a.button { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.4rem; border-radius: var(--radius);
  background: var(--lapis); color: #fff; font-weight: 600; text-decoration: none; }
a.button:hover { background: var(--lapis-deep); color: #fff; }
button.secondary { background: var(--surface); color: var(--ink); border-color: var(--rule); font-weight: 500; }
button.secondary:hover { background: var(--wash); border-color: var(--rule); }
/* A full-width band behind a section, without widening the page */
.band { background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); }

/* Home: the question, the address, the evidence */
.hero { padding: 2.5rem 0 3rem; max-width: 54rem; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); line-height: 1.08; margin: 0 0 1.1rem; }
.hero .lede { font-size: 1.2rem; line-height: 1.7; max-width: 38rem; margin-bottom: 2rem; }
.start { max-width: 40rem; }
.start label { display: block; font-weight: 600; margin-bottom: 0.45rem; }
/* One outline round the address and its button. The address reads left to right even on an Arabic page, so the
   frame sits on the row (which follows the page) rather than on the field (which doesn't). */
.start-row { display: flex; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; overflow: hidden; }
.start-row:focus-within { border-color: var(--lapis); box-shadow: 0 0 0 3px var(--wash); }
.start-row input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 1.1rem; padding: 0.8rem 1rem; border: 0; border-radius: 0;
  background: transparent; color: var(--ink); }
.start-row input:focus-visible { outline: none; }  /* the row shows the focus */
.start-row button { flex: none; border: 0; border-radius: 0; background: var(--ink); padding-inline: 1.5rem; }
.start-row button:hover { background: var(--lapis); }
.start-row button:focus-visible { outline: 3px solid var(--marker-ink); outline-offset: -5px; }
.start .hint { margin: 0.7rem 0 0; }

.specimen { background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); padding: 3rem 0 2.5rem; }
.specimen p { max-width: none; }
.specimen-intro { color: var(--muted); margin: 0 0 0.5rem; }
.specimen-q { font-family: var(--display); font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.3; font-weight: 500; margin: 0 0 2rem; max-width: 56rem !important; }
.specimen-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 4rem; max-width: 56rem; }
.specimen h2 { font-family: inherit; font-size: 1rem; font-weight: 600; margin: 0 0 0.4rem; }
.sources { list-style: none; margin: 0; padding: 0; }
.sources li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--rule); }
.ranks li { justify-content: flex-start; }
.sources .site { font-size: 1.05rem; }
.sources .rank { flex: none; width: 1.6rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sources .own .site { color: var(--marker-ink); font-weight: 600; background: linear-gradient(to top, var(--marker) 0 46%, transparent 46%); }
.specimen-more { margin: 1.5rem 0 0; }

.answers { padding: 1rem 0 1rem; }
.answers h2 { max-width: 40rem; }
.answer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 3rem; margin-top: 1.5rem; }
.answer-cols h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
.answer-cols p { color: var(--muted); }

.fix-example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.5rem 3rem; align-items: center; padding: 1rem 0 2rem; }
.fix-example h2 { margin-top: 0; }
.fix-example figure { margin: 0; }
.fix-example figcaption { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.5rem; }
.fix-example pre, .agent-prompt textarea { background: var(--code-bg); color: var(--code-ink); border: 0; padding: 1.1rem 1.2rem; font-size: 0.9rem; }

.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 3rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.promises p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.closing h2 { margin: 0 0 0.3rem; }
.closing p { margin: 0; color: var(--muted); }
@media (max-width: 48rem) {
  .specimen-lists, .answer-cols, .fix-example, .promises { grid-template-columns: minmax(0, 1fr); }
  .start-row { flex-direction: column; }
  .start-row button { min-height: 3rem; }
}

/* The setup: one question at a time */
.setup-steps { list-style: none; margin: 2rem 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.9rem; }
.setup-steps li { padding: 0.3rem 0.85rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--muted); }
.setup-steps .done { color: var(--ink); border-color: var(--ink); }
.setup-steps .done::before { content: "✓ "; color: var(--pass); font-weight: 700; }
.setup-steps .now { background: var(--lapis); border-color: var(--lapis); color: #fff; font-weight: 600; }
.setup-steps .now .optional { color: #E9E2F6; }
.setup-steps .optional-step:not(.now) { border-style: dashed; }
.setup-steps .optional { font-size: 0.8rem; }
.setup-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.setup-layout > :only-child { grid-column: 1 / -1; max-width: 52rem; }
.setup-form { margin-top: 0; padding: 2rem; }
.setup-form h1 { margin-top: 0; }
.step-count { margin: 0 0 0.3rem; color: var(--muted); font-size: 0.9rem; }
.evaluate .one-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.evaluate .one-step legend { float: none; display: block; width: 100%; padding: 0; margin: 0 0 1rem; }
.one-step legend h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); }
.one-step legend .optional { font-family: "Readex Pro", sans-serif; font-size: 1rem; }
.step-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.step-nav .back { order: -1; margin-inline-end: auto; }
.all-link { margin: 1rem 0 0; }
.answers-so-far { padding-inline-start: 1.5rem; border-inline-start: 1px solid var(--rule); }
.answers-so-far h2 { font-size: 1.4rem; margin: 0.5rem 0 0.75rem; }
.answers-so-far dl { margin: 0 0 1rem; }
.answers-so-far dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.answers-so-far dt { grid-column: 1 / -1; font-size: 0.85rem; color: var(--muted); }
.answers-so-far dd { margin: 0; min-width: 0; }
.answers-so-far .edit { align-self: end; font-size: 0.9rem; }
@media (max-width: 60rem) {
  .setup-layout { grid-template-columns: minmax(0, 1fr); }
  .answers-so-far { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--rule); padding-top: 1rem; }
}
@media (max-width: 36rem) { .setup-form { padding: 1.25rem; } }

/* Progress */
.progress-title { margin-bottom: 1rem; }
.progress-title .url { font-family: "Readex Pro", sans-serif; font-weight: 500; font-size: 0.8em; }
.progress-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.5rem 3rem; margin: 2rem 0 1.5rem; }
.progress-layout h2 { font-size: 1.4rem; margin: 0 0 0.6rem; }
.does { margin: 0; padding-inline-start: 1.4rem; }
.does li { padding: 0.35rem 0; color: var(--muted); }
.progress-settings { padding-inline-start: 1.5rem; border-inline-start: 1px solid var(--rule); }
@media (max-width: 48rem) {
  .progress-layout { grid-template-columns: minmax(0, 1fr); }
  .progress-settings { padding-inline-start: 0; border-inline-start: 0; }
}

/* Reports: the head with its actions, the score as a ring, the reference parts quieter */
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 0.5rem 2rem; }
.report-head .lede { margin-bottom: 0; }
.report-actions { margin: 0; max-width: 26rem; }
.report-actions .hint { flex-basis: 100%; margin: 0; }
.overall .ring { position: relative; display: grid; place-items: center; width: 8.5rem; height: 8.5rem; }
.overall .ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
[dir="rtl"] .overall .ring svg { transform: rotate(-90deg) scaleY(-1); }  /* fills the way the text reads */
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: var(--wash); }
.ring .fill { stroke: var(--v, var(--lapis)); stroke-linecap: round; }
.overall .ring .num { font-family: var(--display); font-size: 3.4rem; }
.overall .verdict { margin-top: 0.6rem; }
.fix-first { border-inline-start-width: 0; border-top: 3px solid var(--lapis); border-radius: 0 0 var(--radius) var(--radius); margin-top: 0; margin-bottom: 2.5rem; }
.steps-first { list-style: none; padding: 0; counter-reset: first; }
.steps-first li { counter-increment: first; position: relative; padding-inline-start: 2.6rem; padding-block: 0.4rem; }
.steps-first li::before { content: counter(first); position: absolute; inset-inline-start: 0; top: 0; font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--lapis); }
.steps-first a { font-size: 1.08rem; }
.all-prompt { margin: 1rem 0 0; font-size: 0.95rem; }
.live { background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); padding: 0.5rem 0 1.75rem; }
.live h2 { margin-top: 1.25rem; }
.reference { margin-top: 3rem; padding-top: 0.5rem; border-top: 2px solid var(--ink); }
.reference h2 { font-size: 1.45rem; margin-top: 1.75rem; }
.fix-link { margin: 0.9rem 0 0; font-weight: 600; }

/* One fix on its own page */
.back-link { margin: 1.75rem 0 0; font-size: 0.95rem; color: var(--muted); }
.fix-head { max-width: 50rem; }
.fix-head h1 { margin-top: 0.4rem; }
.fix-head .meta { color: var(--muted); font-weight: 400; }
.gain-line { color: var(--pass); font-weight: 600; }
.fix-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: start; margin-top: 1rem; }
.fix-main h2, .agent-prompt h2 { font-size: 1.5rem; margin: 1.25rem 0 0.4rem; }
.agent-prompt { position: sticky; top: 1rem; }
.agent-prompt textarea { display: block; width: 100%; min-height: 22rem; resize: vertical; border-radius: var(--radius);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; line-height: 1.5; white-space: pre-wrap; }
.agent-prompt textarea:focus-visible { outline: 3px solid var(--marker-ink); outline-offset: 2px; }
.agent-prompt p { margin: 0.6rem 0 0; }
@media (max-width: 60rem) { .fix-layout { grid-template-columns: minmax(0, 1fr); } .agent-prompt { position: static; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } .finding > summary::before { transition: none; } }
