/* Sage (Update 06): a calm, light working tool. Colour follows severity,
   never the issue type, and every state is also written out as text. */

/* --- Tokens ------------------------------------------------------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable.2bf3d951bf9d.woff2") format("woff2");
}

:root {
  --page: #F7F8F4;
  --surface: #FFFFFF;
  --section: #EAF1EB;
  --text: #1E302B;
  --muted: #51645C;
  --border: #D5E0D8;
  --border-strong: #9BAFA3;
  --accent: #276451;
  --accent-hover: #174A3B;
  --accent-soft: #E6F2EC;
  --error-text: #A23D44;
  --error-bg: #FBEEEE;
  --warning-text: #95621F;
  --warning-bg: #FBF3E4;
  --info-text: #366F65;
  --info-bg: #E9F2ED;

  --radius-card: 12px;
  --radius-control: 8px;
  --gutter: 16px;
  --shell: 1140px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Names from before Update 06, kept so older selectors keep working. */
  --ink: var(--text);
  --ink-muted: var(--muted);
  --rule: var(--border);
  --canvas: var(--page);
  --error: var(--error-text);
  --warning: var(--warning-text);
  --info: var(--info-text);
  --ok: var(--accent);
}

@media (min-width: 40rem) { :root { --gutter: 24px; } }
@media (min-width: 64rem) { :root { --gutter: 48px; } }

/* --- Base --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--text);
  font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  overflow-wrap: break-word;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem); font-weight: 750; margin: 0 0 .5rem; }
h2 { font-size: clamp(1.3rem, 1.2rem + .4vw, 1.5rem); font-weight: 700; margin: 2.5rem 0 .75rem; }
h3 { font-size: 1.125rem; font-weight: 650; margin: 1.75rem 0 .5rem; }

code { font-family: var(--mono); font-size: .875em; overflow-wrap: anywhere; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.lede { color: var(--muted); margin-top: 0; font-size: 1.0625rem; }

/* A field for bots (Update 11): out of sight and out of reach for people. */
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--surface);
  color: var(--accent);
  font-weight: 650;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* --- Shell: header, main, footer ---------------------------------------- */

.page-shell,
.site-header .bar,
.site-footer .bar {
  width: 100%;
  max-width: calc(var(--shell) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .bar {
  min-height: 4.5rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  color: var(--text);
  font-weight: 750;
  font-size: 1.0625rem;
  letter-spacing: -.03em;
  text-decoration: none;
}
.wordmark:hover { color: var(--text); }

.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
}
.brand-mark svg { width: 22px; height: 22px; }

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1.25rem;
  font-size: .9375rem;
  font-weight: 600;
}

.site-header nav a,
.site-header nav .link-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}
.site-header nav a:hover,
.site-header nav .link-button:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-header nav a[aria-current="page"] { color: var(--text); }

.link-button {
  background: none;
  border: 0;
  padding: 0;
  min-height: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
}
.link-button:hover { color: var(--accent-hover); text-decoration: underline; }

.inline-form { display: inline; }

.language-form { display: flex; align-items: center; gap: .4rem; }
.language-form select {
  min-height: 44px;
  padding: .4rem .6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
}

main {
  flex: 1 0 auto;
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 4rem;
}
/* A page that draws its own full-width bands (the home page) leaves the
   container to its sections. */
main.page-bleed { padding-top: 0; }
main.page-bleed > .messages { max-width: calc(var(--shell) + 2 * var(--gutter)); margin: 1.5rem auto 0; padding: 0 var(--gutter); }

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: .875rem;
}
.site-footer .bar {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer nav a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer nav a:hover { color: var(--accent); }

/* --- Page structure ----------------------------------------------------- */

.page-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.page-header > div:first-child { min-width: 0; flex: 1 1 24rem; }
.page-header .lede { margin-bottom: 0; }
/* Several lead paragraphs (Help Center articles) stay visibly apart. */
.page-header .lede + .lede { margin-top: .75rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .5rem;
  margin: 0 0 .75rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .875rem;
}
.breadcrumb li + li::before { content: "/"; color: var(--border-strong); margin-right: .5rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

.eyebrow {
  margin: 0 0 .5rem;
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.narrow { max-width: 32rem; }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }

.hero { margin-bottom: 2.5rem; }
.hero h1 { font-size: clamp(2.125rem, 1.6rem + 2.2vw, 3.25rem); letter-spacing: -.04em; max-width: 24ch; }

/* --- Buttons ------------------------------------------------------------ */

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .55rem 1.15rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-control);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
button:hover, .button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
button:disabled, .button[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }

.button-primary { /* same as the default; named for clarity in templates */ }

.button-quiet,
.button-secondary {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--border-strong);
}
.button-quiet:hover,
.button-secondary:hover { background: var(--accent-soft); color: var(--accent-hover); border-color: var(--accent); }

.button-danger { background: var(--error-text); border-color: var(--error-text); color: #fff; }
.button-danger:hover { background: #7f2d33; border-color: #7f2d33; }

/* `button { display: inline-flex }` would otherwise defeat `hidden`. */
button[hidden], .button[hidden] { display: none; }

/* --- Forms -------------------------------------------------------------- */

.stacked-form,
.scan-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.scan-form { gap: .6rem; margin: 1.5rem 0 2.5rem; box-shadow: 0 14px 35px rgba(22, 51, 41, .035); }
.scan-form label { font-weight: 700; font-size: .9375rem; }
.scan-form button { justify-self: start; }

.field { display: grid; gap: .35rem; }
.field label { font-weight: 650; font-size: .9375rem; }

.field input,
.field select,
.field textarea,
.scan-form input[type="url"] {
  width: 100%;
  min-height: 44px;
  padding: .6rem .75rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.scan-form input[aria-invalid="true"] { border-color: var(--error-text); }

.hint { color: var(--muted); font-size: .875rem; margin: 0; }
.field-error { color: var(--error-text); font-weight: 650; font-size: .9375rem; margin: 0; }
.field-error p { margin: 0; }

/* Radio groups: a legend for the group, plain labels beside each option.
   Without this, `.field input` stretched every radio to its own full line
   above its text, so each button seemed to belong to the line before. */
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { font-weight: 650; font-size: .9375rem; padding: 0; margin-bottom: .35rem; }
fieldset.field label { display: flex; align-items: center; gap: .6rem; font-weight: 400; min-height: 44px; padding: 0; }
.field input[type="radio"],
.field input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  padding: 0;
  margin: 0;
  flex: none;
  accent-color: var(--accent);
}
fieldset.field > div > div,
fieldset.field ul { margin: 0; padding: 0; list-style: none; }

/* Password field with its "show" button. */
.password-field { display: flex; gap: .5rem; align-items: stretch; }
.password-field input { flex: 1; min-width: 0; }
.password-toggle { white-space: nowrap; }

/* --- Cards, metrics, facts ---------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.35rem;
  min-width: 0;
}
.card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

.metric-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1rem 1.15rem;
  min-width: 0;
}
.metric-card .metric-label { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--muted); font-size: .875rem; font-weight: 600; }
.metric-card .metric-value { display: block; margin-top: .4rem; font-size: 1.875rem; line-height: 1.2; font-weight: 750; letter-spacing: -.04em; }
.metric-card .metric-note { display: block; margin-top: .15rem; color: var(--muted); font-size: .8125rem; }

.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.dot-error { background: var(--error-text); }
.dot-warning { background: var(--warning-text); }
.dot-info { background: var(--info-text); }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem 1.5rem;
  margin: 0;
}
.facts-grid dt { color: var(--muted); font-size: .875rem; font-weight: 600; }
.facts-grid dd { margin: .15rem 0 0; min-width: 0; overflow-wrap: anywhere; }

.empty-state {
  background: var(--section);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}
.empty-state > :first-child { margin-top: 0; }
.empty-state > :last-child { margin-bottom: 0; }

.danger-zone {
  border: 1px solid var(--error-text);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 1.25rem 1.35rem;
}
.danger-zone h2 { margin-top: 0; color: var(--error-text); }

.muted { color: var(--muted); display: block; font-size: .875rem; overflow-wrap: anywhere; }

/* --- Status banners and messages ---------------------------------------- */

.status,
.status-banner,
.message {
  margin: 0 0 1rem;
  padding: .85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
  border-radius: var(--radius-control);
}
.status-ok, .message-success { border-left-color: var(--accent); background: var(--accent-soft); }
.status-info, .message-info { border-left-color: var(--info-text); background: var(--info-bg); }
.status-warning, .message-warning { border-left-color: var(--warning-text); background: var(--warning-bg); }
.status-error, .message-error { border-left-color: var(--error-text); background: var(--error-bg); }

.messages { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; }
.messages .message { margin: 0; }
.notices .status { margin-bottom: .75rem; }

progress { width: 100%; height: .75rem; margin: .5rem 0; accent-color: var(--accent); }

/* Help Center contact (Update 10) */
.help-contact { max-width: 18rem; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); font-size: .9rem; color: var(--muted); }
.help-contact p { margin: 0; }
.help-contact a, .email-address { overflow-wrap: anywhere; }

/* Keeping a free report (Korrekturen nach Update 09) */
.save-cta { margin: 1.5rem 0; border-left: 4px solid var(--accent); background: var(--accent-soft); }
.save-cta-title { margin: 0 0 .4rem; font-size: 1.15rem; }
.save-cta p:last-child { margin-bottom: 0; }

/* Running scan (Korrekturen nach Update 09): what happens now, a bar that
   moves even before the page count is known, and the four steps. */
.scan-progress { padding: 1.1rem 1.25rem; }
.scan-progress-now { display: flex; align-items: center; gap: .65rem; margin: 0; font-size: 1.05rem; }
.spinner {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
.progress-indeterminate {
  position: relative;
  height: .75rem;
  margin: .75rem 0 .5rem;
  overflow: hidden;
  background: var(--accent-soft);
  border-radius: 999px;
}
.progress-indeterminate span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 35%;
  background: var(--accent);
  border-radius: 999px;
  animation: sweep 1.4s ease-in-out infinite;
}
.scan-phases {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
  margin: .6rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: phase;
  color: var(--muted);
  font-size: .875rem;
}
.scan-phases li { counter-increment: phase; }
.scan-phases li::before { content: counter(phase) ". "; }
.scan-phases li.is-done::before { content: "✓ "; color: var(--accent); }
.scan-phases li.is-current { color: var(--text); font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(290%); } }

/* --- Severity, badges, issues ------------------------------------------- */

.badge,
.severity-pill {
  display: inline-block;
  margin-right: .5rem;
  padding: .1rem .55rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.5;
  vertical-align: .1em;
  color: var(--muted);
  background: var(--surface);
}

/* Severity is carried by the badge text as well as the colour (§31). */
.severity-error .badge, .severity-pill.severity-error { color: var(--error-text); background: var(--error-bg); }
.severity-warning .badge, .severity-pill.severity-warning { color: var(--warning-text); background: var(--warning-bg); }
.severity-info .badge, .severity-pill.severity-info { color: var(--info-text); background: var(--info-bg); }

.issues { list-style: none; padding: 0; display: grid; gap: .75rem; }

.issue {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius-control);
  padding: 1rem 1.15rem .5rem;
  min-width: 0;
}
.issue.severity-error { border-left-color: var(--error-text); }
.issue.severity-warning { border-left-color: var(--warning-text); }
.issue.severity-info { border-left-color: var(--info-text); }

.issue-head { margin: 0 0 .35rem; }
.issue-body { margin: 0 0 .6rem; color: var(--muted); }

.issue details { margin-top: .4rem; }
.issue summary { cursor: pointer; color: var(--accent); font-size: .9375rem; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.issue details[open] summary { margin-bottom: .25rem; }

.evidence { display: grid; grid-template-columns: 10rem 1fr; gap: .2rem .75rem; margin: 0; font-size: .9375rem; }
.evidence dt { color: var(--muted); }
.evidence dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.change-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.change-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: .4rem .8rem;
}

/* --- Tables ------------------------------------------------------------- */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}
thead th { background: var(--section); color: var(--muted); font-size: .875rem; font-weight: 650; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

.facts th { width: 13rem; color: var(--muted); font-weight: 600; }

/* --- Choices, snippets -------------------------------------------------- */

/* Choices on the save and scan-start pages (Update 01). */
.choices { list-style: none; padding: 0; display: grid; gap: 1rem; margin: 1rem 0 1.5rem; }
.choices .card h3 { margin-top: 0; }
.choices .card form,
.choices .card .button { margin: .25rem .5rem .25rem 0; }

/* Copyable snippet, such as the robots.txt suggestion (Update 02). */
.snippet {
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: .75rem .9rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: .875rem;
}

/* --- Home page bands (06-B) --------------------------------------------- */

.band { padding: 3rem 0; }
.band h2 { margin-top: 0; }
.band-section { background: var(--section); padding: 4.5rem 0 4.75rem; }

.hero-centered { text-align: center; margin-bottom: 0; }
/* 25ch: the German and Spanish headings fit on two lines, like the English one. */
.hero-centered h1 { max-width: 25ch; margin: 0 auto 1rem; }
.hero-centered .lede { max-width: 40rem; margin: 0 auto 2rem; }
.hero-centered .scan-panel { text-align: left; max-width: 54rem; margin: 0 auto; }

.scan-panel { padding: 1.5rem; }
.input-line { display: flex; gap: .65rem; align-items: stretch; }
.input-line input { flex: 1; min-width: 0; min-height: 52px; font-size: 1rem; }
.input-line button { min-height: 52px; padding: 0 1.5rem; white-space: nowrap; }

.feature-cards { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 .4rem; }
.feature p { color: var(--muted); margin: 0; }

.accent-card { border-left: 5px solid var(--accent); padding: 1.5rem 1.75rem; }
.accent-card > p { max-width: 46rem; }

/* Pricing (Update 17): one card per offer, the facts as a short list. */
.plan-cards { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); align-items: stretch; }
.plan-card { display: flex; flex-direction: column; }
.plan-card h2 { margin-top: 0; font-size: 1.25rem; }
.plan-card .actions { margin-top: auto; padding-top: .5rem; }
.plan-price { font-size: 1.5rem; font-weight: 600; color: var(--accent); margin: 0 0 .75rem; }
.plan-price .badge { font-size: .875rem; font-weight: 600; }
.plan-facts { margin-bottom: .75rem; }
.plan-facts li { padding: .35rem 0; border-bottom: 1px solid var(--border); }
.plan-facts li:last-child { border-bottom: 0; }
.plan-included, .plan-rules { max-width: 46rem; padding-left: 1.25rem; }
.plan-included li + li, .plan-rules li + li { margin-top: .35rem; }
.project-limit p:last-child { margin-bottom: 0; }

/* --- Project pages (06-B) ----------------------------------------------- */

.status > p { margin: 0; }
.status > p + form, .status > p + p { margin-top: .6rem; }

.dt-note { font-weight: 400; }

.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .2rem 0 0; padding: 0; list-style: none; }
.chips li {
  padding: .05rem .5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--page);
}

.row-title { font-weight: 650; }

.count-label { display: inline-flex; align-items: center; gap: .4rem; margin-right: .75rem; white-space: nowrap; }

.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 0 0 1.5rem; }
.pagination [aria-current] { color: var(--muted); }

.button-danger-outline { background: var(--surface); color: var(--error-text); border-color: var(--error-text); }
.button-danger-outline:hover { background: var(--error-bg); color: var(--error-text); border-color: var(--error-text); }

/* Forms and confirmations that should not run the full page width. */
.narrow-wide { max-width: 44rem; }
.narrow-wide .danger-zone { margin-top: 2.5rem; }
.danger-zone .status { margin-bottom: 1.25rem; }

/* --- Scan report (06-C) -------------------------------------------------- */

.report-facts { margin-bottom: 1rem; }
.report-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; margin: .75rem 0 0; color: var(--muted); font-size: .9375rem; }

.status-pill {
  display: inline-block;
  padding: .1rem .6rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
}
.status-pill-completed { color: var(--accent); background: var(--accent-soft); }
.status-pill-failed { color: var(--error-text); background: var(--error-bg); }
.status-pill-cancelled { color: var(--warning-text); background: var(--warning-bg); }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .5rem; }
.filter-bar a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .4rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}
.filter-bar a:hover { border-color: var(--accent); color: var(--accent); }
.filter-bar a[aria-current] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.filter-count { font-size: .8125rem; font-weight: 700; padding: 0 .4rem; border-radius: 999px; background: var(--page); }
.filter-bar + .hint { margin-bottom: 1.25rem; }

.issue-groups { display: grid; gap: .75rem; }

.issue-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
  border-radius: var(--radius-card);
  min-width: 0;
}
.issue-group.severity-error { border-left-color: var(--error-text); }
.issue-group.severity-warning { border-left-color: var(--warning-text); }
.issue-group.severity-info { border-left-color: var(--info-text); }

.issue-group__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1.25rem;
  align-items: center;
  gap: .5rem 1rem;
  min-height: 44px;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-card);
}
.issue-group__summary::-webkit-details-marker { display: none; }
.issue-group__summary:hover { background: var(--accent-soft); }
.issue-group__head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; min-width: 0; }
.issue-group__head .severity-pill { margin-right: 0; }
.issue-group__title { font-size: 1.0625rem; }
.issue-code { flex-basis: 100%; color: var(--muted); font-size: .75rem; letter-spacing: .02em; }
.issue-group__stats { color: var(--muted); font-size: .875rem; text-align: right; white-space: nowrap; }

.chevron { width: .6rem; height: .6rem; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); justify-self: center; transition: transform .15s ease; }
details[open] > summary .chevron { transform: rotate(-135deg); }

.issue-group__body { border-top: 1px solid var(--border); background: var(--page); padding: 1.15rem 1.15rem 1.25rem; border-radius: 0 0 var(--radius-card) 0; }
.issue-explanation { margin: 0 0 1rem; color: var(--muted); max-width: 52rem; }

.fix-hint { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-control); padding: .85rem 1rem; margin-bottom: 1rem; }
.fix-hint h3 { margin: 0 0 .35rem; font-size: 1rem; }
.fix-hint p { margin: 0; }
.fix-hint p + p { margin-top: .4rem; }

.group-facts { display: grid; gap: .5rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 0 0 1rem; font-size: .9375rem; }
.group-facts dt { color: var(--muted); font-weight: 600; font-size: .875rem; }
.group-facts dd { margin: .1rem 0 0; min-width: 0; overflow-wrap: anywhere; }
.tally { display: inline-block; margin-right: .75rem; }
.muted-inline { color: var(--muted); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li + li { margin-top: .15rem; }

.affected-heading { font-size: .9375rem; margin: 0 0 .5rem; color: var(--muted); }
.affected-pages { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .4rem; }
.affected-page details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-control); }
.affected-page summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .25rem 1rem;
  min-height: 44px;
  padding: .55rem .85rem;
  cursor: pointer;
}
.affected-page summary:hover { background: var(--accent-soft); }
.affected-page__url { font-family: var(--mono); font-size: .875rem; overflow-wrap: anywhere; min-width: 0; flex: 1 1 18rem; }
.affected-page__count { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.affected-page__body { border-top: 1px solid var(--border); padding: .75rem .85rem; }
.external-link { margin: 0 0 .5rem; font-size: .9375rem; font-weight: 600; }

.evidence-panel { padding: .65rem 0; }
.evidence-panel + .evidence-panel { border-top: 1px dashed var(--border); }

/* --- Report by page (Update 14) ----------------------------------------- */

.view-switch { display: inline-flex; flex-wrap: wrap; margin: 0 0 1rem; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); overflow: hidden; }
.view-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; color: var(--muted); font-weight: 650; text-decoration: none; }
.view-switch a + a { border-left: 1px solid var(--border); }
.view-switch a:hover { color: var(--accent); }
.view-switch a[aria-current] { background: var(--accent-soft); color: var(--accent); }

a.metric-note { display: inline-block; margin-top: .25rem; color: var(--accent); }

.report-downloads { margin: 0 0 1.25rem; }
.report-downloads__links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .4rem; }
.report-downloads .hint { margin: 0; max-width: 52rem; }

.page-groups { display: grid; gap: .75rem; }
.page-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
  border-radius: var(--radius-card);
  padding: .85rem 1rem 1rem;
  min-width: 0;
}
.page-group.severity-error { border-left-color: var(--error-text); }
.page-group.severity-warning { border-left-color: var(--warning-text); }
.page-group.severity-info { border-left-color: var(--info-text); }
.page-group__label { margin: 0 0 .5rem; color: var(--muted); font-size: .8125rem; font-weight: 650; }

/* The language versions of one page, joined by a line on the left. */
.page-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.page-rows.is-connected { position: relative; padding-left: 1rem; }
.page-rows.is-connected::before { content: ""; position: absolute; left: .3rem; top: 1.1rem; bottom: 1.1rem; border-left: 2px solid var(--border-strong); }
.page-rows.is-connected > .page-row { position: relative; }
.page-rows.is-connected > .page-row::before { content: ""; position: absolute; left: -.7rem; top: 1.35rem; width: .7rem; border-top: 2px solid var(--border-strong); }

.page-row > details, .page-row > .page-row__summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-control); }
.page-row.is-clean > .page-row__summary { background: var(--page); }
.page-row__summary {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto 1.25rem;
  align-items: center;
  gap: .25rem .75rem;
  min-height: 44px;
  padding: .55rem .85rem;
  list-style: none;
}
div.page-row__summary { grid-template-columns: 5.5rem minmax(0, 1fr) auto; }
summary.page-row__summary { cursor: pointer; }
summary.page-row__summary::-webkit-details-marker { display: none; }
summary.page-row__summary:hover { background: var(--accent-soft); }
.page-row__locale { display: inline-flex; align-items: center; gap: .3rem; }
.source-mark { color: var(--accent); }
.page-row__url { font-family: var(--mono); font-size: .875rem; overflow-wrap: anywhere; min-width: 0; }
.page-row__counts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .2rem .75rem; font-size: .875rem; }
.page-row__counts .count { display: inline-flex; align-items: center; white-space: nowrap; font-weight: 650; }
.page-row__counts .dot { margin-right: .35rem; }
.count-error { color: var(--error-text); }
.count-warning { color: var(--warning-text); }
.count-info { color: var(--info-text); }
.page-row__state { color: var(--muted); font-style: italic; }
.page-row__fix-here { color: var(--accent); font-weight: 650; }
.page-row__body { border-top: 1px solid var(--border); background: var(--page); padding: .75rem .85rem; border-radius: 0 0 var(--radius-control) var(--radius-control); }

.page-finding { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--border-strong); border-radius: var(--radius-control); padding: .7rem .85rem; }
.page-finding + .page-finding { margin-top: .5rem; }
.page-finding.severity-error { border-left-color: var(--error-text); }
.page-finding.severity-warning { border-left-color: var(--warning-text); }
.page-finding.severity-info { border-left-color: var(--info-text); }
.page-finding__head { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; margin: 0 0 .4rem; }
.page-finding__fix { margin: 0 0 .4rem; max-width: 52rem; }
.page-finding__more > summary { cursor: pointer; color: var(--accent); font-size: .9375rem; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.page-finding__more .issue-explanation { margin: .25rem 0 .5rem; }
.fix-here { margin: .6rem 0 0; padding: .55rem .85rem; background: var(--accent-soft); border-radius: var(--radius-control); overflow-wrap: anywhere; }

@media (max-width: 40rem) {
  .page-row__summary, div.page-row__summary { grid-template-columns: minmax(0, 1fr) 1.25rem; }
  div.page-row__summary { grid-template-columns: minmax(0, 1fr); }
  .page-row__locale, .page-row__url, .page-row__counts { grid-column: 1; }
  .page-row__counts { justify-content: flex-start; }
  summary.page-row__summary .chevron { grid-column: 2; grid-row: 1; }
}

/* --- Account and support (06-D) ----------------------------------------- */

.two-columns { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.two-columns .card h2, .section-gap h2 { margin-top: 0; font-size: 1.25rem; }
.section-gap { margin-top: 1rem; }

.facts-list { margin: 0; display: grid; gap: .1rem; }
.facts-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .55rem 0; border-bottom: 1px solid var(--border); }
.facts-list > div:last-child { border-bottom: 0; }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }

.support-requests { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .75rem; }
.support-request__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1rem; margin: 0 0 .25rem; }
.pills { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.pills .badge { margin-right: 0; }
.support-request__message { overflow-wrap: anywhere; }
.support-answer { background: var(--accent-soft); border-radius: var(--radius-control); padding: .75rem 1rem; margin-top: .75rem; overflow-wrap: anywhere; }
.support-answer p { margin: 0; }
.support-answer p + p { margin-top: .35rem; }

/* "New" marks an answer not seen yet: emphasis, not a severity. */
.badge-new { color: #fff; background: var(--accent); border-color: var(--accent); }

.field-check .check-line { display: flex; align-items: flex-start; gap: .6rem; }
.field-check .check-line input { margin-top: .2rem; }
.field-check .check-line label { font-weight: 400; }

/* --- Small screens ------------------------------------------------------ */

/* --- Help Center (Update 08) ------------------------------------------- */

.help-pointer { margin-top: 1.5rem; }
.help-index-section { margin-bottom: 2.5rem; }
.help-index-section .card h3 { font-size: 1.0625rem; }
.help-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1rem 1.25rem; margin: 1.5rem 0 2rem; }
.help-toc h2 { margin: 0 0 .5rem; font-size: 1rem; }
.help-toc ul { margin: 0; }
.help-issue, .help-platform, #platforms { scroll-margin-top: 1rem; }
.help-issue { margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.help-issue h2 { margin-top: 0; }
.help-issue h3, .help-platform h3 { font-size: 1.0625rem; margin: 1.5rem 0 .4rem; }
.help-issue__code { color: var(--muted); font-size: .875rem; }
.help-issue ol { padding-left: 1.4rem; }
.help-example { margin: 1.25rem 0; }
.help-example figcaption { color: var(--muted); font-size: .875rem; margin-bottom: .35rem; }
/* Code may be wider than a phone: it scrolls inside its box, never the page. */
.help-example pre { margin: 0; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-control); padding: .85rem 1rem; }
.help-example pre code { overflow-wrap: normal; white-space: pre; font-size: .8125rem; }
/* Tables in articles (marketing, 30.11.2026): long texts in every cell. */
.help-table { font-size: .9375rem; }
.help-cta { margin-top: 3rem; }
.help-cta h2 { margin-top: 0; }

@media (max-width: 40rem) {
  .site-header .bar { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .site-header nav { gap: 0 1rem; }
  .site-footer .bar { flex-direction: column; align-items: flex-start; }

  .stacked-form, .scan-form { padding: 1.15rem; }
  .scan-form button { justify-self: stretch; }

  .facts th { width: auto; }
  .evidence { grid-template-columns: 1fr; }
  .evidence dd + dt { margin-top: .4rem; }

  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tbody tr { border-bottom: 1px solid var(--border); padding: .5rem 0; }
  tbody tr:last-child { border-bottom: 0; }
  th, td { border: 0; padding: .25rem .9rem; }

  /* Tables that name their cells show the column name in front of each value. */
  td[data-label] { display: grid; grid-template-columns: minmax(6.5rem, 40%) 1fr; gap: .75rem; }
  td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .875rem; font-weight: 600; }

  /* History cards: label above value, two per row, date and link across. */
  .scan-history tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 0; padding: .75rem 0; }
  .scan-history td[data-label] { display: block; }
  .scan-history td[data-label]::before { display: block; }
  .scan-history td:first-child, .scan-history td:last-child { grid-column: 1 / -1; }

  /* Article tables: every row becomes a box of its own. The first cell is
     its title; the others show their column name above the text, which is
     too long to sit beside it. */
  .help-table { background: none; border: 0; border-radius: 0; overflow: visible; }
  .help-table tbody tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: .85rem 0 .6rem;
    margin-bottom: .75rem;
  }
  .help-table tbody tr:last-child { border-bottom: 1px solid var(--border); margin-bottom: 0; }
  .help-table td[data-label] { display: block; padding: .3rem 1rem; }
  .help-table td[data-label]::before { display: block; margin-bottom: .1rem; }
  .help-table td:first-child { font-weight: 650; padding-bottom: .5rem; }
  .help-table td:first-child::before { display: none; }

  .issue-group__summary { grid-template-columns: minmax(0, 1fr) 1.25rem; padding: .9rem; }
  .issue-group__stats { grid-column: 1; grid-row: 2; text-align: left; white-space: normal; }
  .chevron { grid-column: 2; grid-row: 1; }
  .issue-group__body { padding: .9rem; }

  .band { padding: 2rem 0; }
  .band-section { padding: 2.5rem 0 3rem; }
  .hero-centered, .hero-centered h1, .hero-centered .lede { text-align: left; margin-left: 0; }
  .input-line { flex-direction: column; }
  .input-line button { width: 100%; }
  .page-header .actions { width: 100%; }
}

@media (max-width: 22rem) {
  .metric-grid { grid-template-columns: 1fr; }
}

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