/* AccessMate Tools — design tokens and components, matched to accessmate.ai.
   Colour pairs are checked for WCAG 2.2 AA contrast by test/contrast.test.ts. */

@font-face {
  font-family: "Inclusive Sans";
  src: url("../fonts/InclusiveSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inclusive Sans";
  src: url("../fonts/InclusiveSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inclusive Sans";
  src: url("../fonts/InclusiveSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "Inclusive Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* AccessMate brand palette */
  --color-bg: #ffffff;
  --color-offwhite: #f9f9f9;
  --color-surface: #f3f5fc;
  --color-surface-raised: #ffffff;
  --color-heading: #010411;
  --color-text: #4d4f59;
  --color-muted: #5c5e68;
  --color-border: #e6e6e7;
  --color-input-border: #7a7c85;
  --color-brand: #1841c0;
  --color-brand-logo: #3858e9;
  --color-tagline: #0d2d87;
  --color-brand-50: #eff0fe;
  --color-brand-100: #e3e4fe;
  --color-brand-900: #031753;
  --color-surface-hover: #f2f2f3;
  --color-band: #0d2d87;
  --color-navy: #020b37;
  --color-white: #ffffff;
  --color-on-dark-muted: #b8bccc;
  --color-link: #1841c0;
  --color-focus: #1841c0;
  --color-code-bg: #f1f2f6;

  --color-success: #13803d;
  --color-success-text: #0e6630;
  --color-success-bg: #e9f7ee;
  --color-error: #cb0b0b;
  --color-error-bg: #fdecec;

  --impact-critical: #b4083a;
  --impact-serious: #a43c06;
  --impact-moderate: #765c00;
  --impact-minor: #4d4f59;

  --radius: 8px;
  --radius-small: 4px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 5rem;
}

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

/* The hidden attribute always wins over component display rules. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Same font rendering as accessmate.ai, so weights look identical on macOS. */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* Keep in-page targets clear of the sticky report tabs. */
#issues,
#manual,
#passed,
#page-details { scroll-margin-top: 5.5rem; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--color-text);
  background: var(--color-bg);
  /* Long URLs and code never force horizontal scrolling (1.4.10). */
  overflow-wrap: break-word;
}
main {
  flex: 1;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-3);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-heading);
}
h1 { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem); letter-spacing: -0.005em; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p,
ul,
ol,
dl {
  margin: 0 0 var(--space-4);
}

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}

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

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}
code {
  background: var(--color-code-bg);
  padding: 0.1em 0.3em;
  border-radius: 4px;
}

.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;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 10;
  padding: var(--space-3) var(--space-4);
  background: var(--color-brand);
  color: var(--color-white);
  font-weight: 500;
  border-radius: var(--radius-small);
}
.skip-link:focus {
  top: var(--space-4);
}

main:focus {
  outline: none;
}

/* Container as on accessmate.ai (Bootstrap): 77.5rem wide including a 2.5rem gutter, split
   as 1.25rem on each side at every screen size. */
.container {
  --gutter-x: 2.5rem;
  width: 100%;
  max-width: 77.5rem;
  margin: 0 auto;
  padding: 0 calc(var(--gutter-x) * 0.5);
}
/* Narrow container for text-heavy sections: 52rem of content, with the same gutter. */
.container--narrow {
  max-width: calc(52rem + var(--gutter-x));
}

.muted { color: var(--color-muted); }
/* Keeps a short link or phrase on one line. */
.nowrap { white-space: nowrap; }
.small { font-size: 0.9375rem; }
.center { text-align: center; }
.break { overflow-wrap: anywhere; }
.tag-line {
  margin-bottom: var(--space-3);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-tagline);
}
.lead { font-size: 1.1875rem; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* Header, as on accessmate.ai (design board "Site header"). The header, pre-footer banner and
   footer use the main site's type (16px/24px, normal spacing) rather than the tools' body text. */
.site-header,
.mobile-nav,
.cta-banner,
.site-footer { font-size: 1rem; line-height: 1.5rem; letter-spacing: normal; }
.site-header {
  position: relative;
  z-index: 20;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) 2rem;
}
/* Sized exactly as on accessmate.ai (.site-branding a / .site-logo), so the logo lands on the
   same pixels when switching between the main site and the tools. */
.brand { display: block; flex: none; width: 11.3585rem; }
.brand__logo { display: block; width: 100%; height: 2.5rem; object-fit: contain; object-position: left center; }
.site-nav { flex: 1 1 auto; }
.site-nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
/* Inline, as on accessmate.ai, so the hover fill is the same height (35px). */
.site-nav__link {
  display: inline;
  padding: 0.5rem 0.875rem;
  border-radius: 2px;
  color: var(--color-heading);
  font-weight: 500;
  line-height: 1.5rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
/* Hover and focus as on accessmate.ai: brand text on a light grey fill. */
.site-nav__link:hover,
.site-nav__link:focus-visible { background: var(--color-surface-hover); color: var(--color-brand); }
.nav-menu__details[open] > .site-nav__link { color: var(--color-brand); text-decoration: underline; text-underline-offset: 4px; }
.site-header__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* Focus ring from the design system: 2px white, then 2px brand. */
.site-header a:focus-visible,
.site-header summary:focus-visible,
.site-header button:focus-visible,
.mobile-nav a:focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--color-brand); }

/* Design-system buttons used in the header and pre-footer */
.am-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.8125rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-weight: 500;
  line-height: 1.5rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.5s ease;
}
/* 24px, as the arrow on accessmate.ai buttons. */
.am-button .icon--newtab { width: 1.5rem; height: 1.5rem; margin: 0; vertical-align: 0; }
.am-button--primary { background: var(--color-brand); color: var(--color-white); }
/* Hover and focus as on accessmate.ai: the filled and outlined buttons swap. */
.am-button--primary { border-color: var(--color-brand); }
.am-button--primary:hover,
.am-button--primary:focus-visible { background: var(--color-white); color: var(--color-brand); }
.am-button--secondary { border-color: var(--color-brand); background: var(--color-white); color: var(--color-brand); }
.am-button--secondary:hover,
.am-button--secondary:focus-visible { background: var(--color-brand); color: var(--color-white); }
.am-button--white { border-color: var(--color-brand); background: var(--color-white); color: var(--color-brand); }
.am-button--white:hover,
.am-button--white:focus-visible { background: var(--color-brand); color: var(--color-white); }
.am-button--white:focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--color-heading), 0 0 0 4px var(--color-white); }

/* Mobile navigation: a menu button and a full-screen navy panel, as on accessmate.ai.
   Only used when app.js has shown the button; otherwise the full menu stays in place. */
.nav-toggle { display: none; position: relative; z-index: 100; width: 2.5rem; height: 1.5625rem; margin-left: auto; padding: 0; border: 0; background: none; cursor: pointer; }
.nav-toggle__bar { position: absolute; left: 0; width: 100%; height: 0.1875rem; border-radius: 0.125rem; background: var(--color-heading); transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease; }
.nav-toggle__bar:nth-of-type(2) { top: 0; }
.nav-toggle__bar:nth-of-type(3) { top: 0.6875rem; }
.nav-toggle__bar:nth-of-type(4) { top: 1.375rem; }
.nav-open .nav-toggle__bar { background: var(--color-white); }
.nav-open .nav-toggle__bar:nth-of-type(2) { top: 0.6875rem; transform: rotate(-45deg); }
.nav-open .nav-toggle__bar:nth-of-type(3) { opacity: 0; }
.nav-open .nav-toggle__bar:nth-of-type(4) { top: 0.6875rem; transform: rotate(45deg); }
.nav-open .site-header .nav-toggle:focus-visible { box-shadow: 0 0 0 2px var(--color-navy), 0 0 0 4px var(--color-white); }
.mobile-nav { position: fixed; inset: 0; z-index: 99; overflow: auto; padding: 5rem 1.5rem; background: var(--color-navy); text-align: center; --color-focus: var(--color-white); }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.mobile-nav li { padding: 0.75rem 0; }
.mobile-nav nav a { display: inline-block; padding: 0.375rem 0; color: var(--color-white); text-decoration: none; }
.mobile-nav nav a:hover { text-decoration: underline; }
.mobile-nav nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.mobile-nav a:focus-visible { box-shadow: 0 0 0 2px var(--color-navy), 0 0 0 4px var(--color-white); }
/* Tools sub-menu, as on the staging site's mobile navigation. */
.mobile-nav__toggle { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.375rem 0; border: 0; background: none; color: var(--color-white); font: inherit; cursor: pointer; }
.mobile-nav__toggle:focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--color-navy), 0 0 0 4px var(--color-white); }
.mobile-nav__chevron { width: 1rem; height: 1rem; transition: transform 0.2s ease; }
.mobile-nav__toggle[aria-expanded="true"] .mobile-nav__chevron { transform: rotate(180deg); }
.mobile-nav ul.mobile-nav__sub { margin-top: 0.75rem; padding: 0.5rem 0; border-top: 1px solid rgba(255, 255, 255, 0.2); border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.mobile-nav ul.mobile-nav__sub[hidden] { display: none; }
.mobile-nav .mobile-nav__sub li { padding: 0.5rem 0; }
.mobile-nav .mobile-nav__sub a { display: inline-flex; align-items: center; gap: 0.75rem; }
.mobile-nav__icon { width: 1.25rem; height: 1.25rem; color: var(--color-brand-100); }
.mobile-nav .mobile-nav__all { margin-top: 0.5rem; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.mobile-nav__buttons { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 1.5rem; }
html.nav-open { overflow: hidden; }
/* The menu button takes over once the full header (with the Tools menu) no longer fits on one row. */
@media (max-width: 77.49rem) {
  .site-header:has(.nav-toggle:not([hidden])) .site-nav,
  .site-header:has(.nav-toggle:not([hidden])) .site-header__actions { display: none; }
  .nav-toggle:not([hidden]) { display: block; }
}
@media (min-width: 77.5rem) { .mobile-nav { display: none !important; } }

/* Buttons — outlined by default, filled variants as on accessmate.ai */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-brand);
  border-radius: var(--radius-small);
  background: var(--color-white);
  color: var(--color-brand);
  font: inherit;
  font-weight: 500;
  line-height: 1.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.button:hover {
  background: var(--color-brand);
  color: var(--color-white);
}
.button--fill {
  background: var(--color-brand);
  color: var(--color-white);
}
.button--fill:hover {
  background: var(--color-white);
  color: var(--color-brand);
}
.button--white {
  border-color: var(--color-white);
  background: var(--color-white);
  color: var(--color-brand);
}
.button--white:hover {
  background: transparent;
  color: var(--color-white);
}
.button--outline-white {
  border-color: var(--color-white);
  background: transparent;
  color: var(--color-white);
}
.button--outline-white:hover {
  background: var(--color-white);
  color: var(--color-brand);
}
.button .icon { width: 1.125rem; height: 1.125rem; }
.button-group,
.actions,
.state__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.button-group--center { justify-content: center; }

/* Hero and sections */
.hero {
  padding: var(--space-8) 0 var(--space-7);
  background: var(--color-bg);
}
.hero__inner { text-align: center; }
.hero__inner .lead { max-width: 46rem; margin-left: auto; margin-right: auto; }
.hero .button-group { margin: var(--space-6) 0; }

.section { padding: var(--space-8) 0; }
.section:focus { outline: none; }
.section--offwhite { background: var(--color-offwhite); }
.section__title { text-align: center; margin-bottom: var(--space-6); }
.section__lead { text-align: center; margin-top: calc(-1 * var(--space-4)); margin-bottom: var(--space-6); }
.prose > * + h2 { margin-top: var(--space-6); }
.prose li { margin-bottom: var(--space-2); }

.section--navy {
  --color-focus: var(--color-white);
  --color-link: var(--color-white);
  background: var(--color-navy);
  color: var(--color-on-dark-muted);
}
.section--navy h2,
.section--navy h3 { color: var(--color-white); }
.section--navy .tag-line { color: var(--color-white); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}
@media (max-width: 56rem) {
  .split { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* Check lists (hero highlights) and benefit grids */
.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  padding: 0;
  list-style: none;
}
.check-list--center { justify-content: center; }
.check-list li { display: inline-flex; align-items: center; gap: var(--space-2); }
.check-list__icon { color: var(--color-success); width: 1.5rem; height: 1.5rem; }

.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6) var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 30rem) {
  .benefits { grid-template-columns: 1fr; }
}
.benefits__title {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--color-white);
}
.benefits__icon {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: var(--space-3);
  color: #3ec46d;
}

/* Tool cards */
.tool-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}
.tool-grid > * {
  flex: 0 1 23rem;
}
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-raised);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tool-card--available:hover { border-color: var(--color-brand); box-shadow: 0 2px 12px rgba(1, 4, 17, 0.06); }
.tool-card--available:focus-within { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.tool-card__header { display: flex; align-items: center; justify-content: space-between; }
.tool-card__icon { display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: var(--radius); background: var(--color-brand-50); color: var(--color-brand); }
.tool-card__icon .icon { width: 1.75rem; height: 1.75rem; }
.tool-card--upcoming .tool-card__icon { background: var(--color-offwhite); color: var(--color-muted); }
.tool-card__title { margin: 0; font-size: 1.25rem; }
.tool-card__link { color: var(--color-heading); text-decoration: none; }
.tool-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.tool-card__link:hover { color: var(--color-brand); }
.tool-card__link:focus-visible { outline: none; }
.tool-card__description { margin: 0; }
.tool-card__tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: auto 0 0; padding: var(--space-1) 0 0; list-style: none; }
.tool-card__tags li { padding: 0.0625rem 0.5rem; border: 1px solid var(--color-brand-100); border-radius: var(--radius-small); background: var(--color-surface); color: var(--color-tagline); font-size: 0.8125rem; font-weight: 500; }
.tool-card__go { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--color-brand); font-weight: 500; }
.tool-card__go .icon { width: 1.125rem; height: 1.125rem; }

.badge {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid currentColor;
}
.badge--available { color: var(--color-success-text); background: var(--color-success-bg); }
.badge--upcoming { color: var(--color-muted); background: var(--color-offwhite); }

/* Forms */
.scan-form {
  max-width: 44rem;
  margin: var(--space-6) auto var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  text-align: left;
}
.scan-form__note { margin: 0; font-size: 0.9375rem; color: var(--color-muted); }
.field { margin-bottom: var(--space-3); }
.field__label { display: block; font-weight: 600; color: var(--color-heading); margin-bottom: var(--space-1); }
.field__hint { color: var(--color-muted); margin-bottom: var(--space-2); overflow-wrap: anywhere; }
.field__error { color: var(--color-error); font-weight: 600; margin-bottom: var(--space-2); }
.field__input {
  width: 100%;
  min-height: 3rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-small);
  background: var(--color-white);
  color: var(--color-heading);
  font: inherit;
}
.field--error .field__input { border: 2px solid var(--color-error); }
.scan-form__row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.scan-form__row .field__input { flex: 1 1 18rem; width: auto; }

.error-summary {
  max-width: 44rem;
  margin: var(--space-5) auto;
  padding: var(--space-4) var(--space-5);
  border: 2px solid var(--color-error);
  border-radius: var(--radius);
  background: var(--color-white);
  text-align: left;
}
.error-summary__title { font-size: 1.25rem; }
.error-summary__list { margin: 0; padding-left: var(--space-5); }
.error-summary__list a { color: var(--color-error); font-weight: 600; }

/* State blocks: loading, empty, error, success, info */
.state {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--color-white);
}
.state--success { border-left-color: var(--color-success); background: var(--color-success-bg); }
.state--error { border-left-color: var(--color-error); }
.state--loading,
.state--info,
.state--empty { border-left-color: var(--color-brand); }
.state__icon { width: 1.75rem; height: 1.75rem; margin-top: 0.2rem; }
.state--success .state__icon { color: var(--color-success); }
.state--error .state__icon { color: var(--color-error); }
.state__content { flex: 1; min-width: 0; }
.state__body > :last-child { margin-bottom: 0; }
.state__actions { margin-top: var(--space-5); }
.state h1.state__title { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); }

.spinner {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.4rem;
  border: 3px solid var(--color-brand-50);
  border-top-color: var(--color-brand);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }



/* FAQ: the faq-list block from accessmate.ai (faq-list.css), with its spacing, colours and icon. */
.faq-list { padding: 3rem 0; }
@media (min-width: 62rem) { .faq-list { padding: 6rem 0 11.25rem; } }
.faq-list__header { max-width: 50rem; margin: 0 auto 2.125rem; text-align: center; }
.faq-list__heading { margin: 0 0 1rem; }
.faq-list__header > .faq-list__heading:last-child { margin-bottom: 0; }
.faq-list__description { margin: 0 auto; max-width: 36.375rem; color: var(--color-heading); font-size: 1.125rem; line-height: 1.55; }
.faq-list__items { display: flex; flex-direction: column; gap: 0.75rem; max-width: 56.25rem; margin: 0 auto; padding: 0; list-style: none; }
.faq-list__item { border-radius: 0.75rem; background-color: #f9f9f9; transition: background-color 0.3s ease-out; }
.faq-list__item:hover,
.faq-list__item[open] { background-color: var(--color-brand-50); }
.faq-list__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.5rem;
  list-style: none;
  cursor: pointer;
  text-align: left;
  color: var(--color-heading);
}
.faq-list__trigger::-webkit-details-marker { display: none; }
.faq-list__trigger::marker { content: ""; }
.faq-list__trigger:focus-visible { outline: 0.125rem solid var(--color-brand); outline-offset: -0.125rem; border-radius: 0.75rem; }
.faq-list__question { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.faq-list__icon { position: relative; flex-shrink: 0; width: 1.4375rem; height: 1.4375rem; border-radius: 50%; background-color: var(--color-brand); }
.faq-list__icon::before,
.faq-list__icon::after { content: ""; position: absolute; top: 50%; left: 50%; background-color: var(--color-white); transform: translate(-50%, -50%); transition: transform 0.3s ease-out; }
.faq-list__icon::before { width: 0.75rem; height: 0.125rem; }
.faq-list__icon::after { width: 0.125rem; height: 0.75rem; }
/* Plus becomes minus when open. */
.faq-list__item[open] .faq-list__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-list__answer { padding: 0 1.5rem 1.5rem; color: var(--color-heading); font-size: 1.125rem; line-height: 1.55; }
.faq-list__answer > *:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .faq-list__item,
  .faq-list__icon::before,
  .faq-list__icon::after { transition: none; }
}

/* Cards and shared card parts */
.card {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-white);
}
.card__title { font-size: 1.375rem; margin-bottom: var(--space-1); }
.card__lead { margin: 0; color: var(--color-text); }
.count-pill {
  display: inline-block;
  margin-left: var(--space-2);
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--color-offwhite);
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted);
  vertical-align: middle;
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-brand-50);
  color: var(--color-brand);
}
.feature-icon .icon { width: 1.5rem; height: 1.5rem; }
.feature-icon--purple { background: #f1ebfe; color: #6b2fd6; }
.feature-icon--green { background: var(--color-success-bg); color: var(--color-success); }
.feature-icon--amber { background: #fff3dc; color: #a35a00; }
.feature-icon--grey { background: var(--color-offwhite); color: var(--color-muted); }
.icon--inline { width: 1em; height: 1em; vertical-align: -0.125em; }
.icon--newtab { width: 0.875em; height: 0.875em; margin-left: 0.25em; vertical-align: -0.1em; }
.button--small { min-height: 2.5rem; padding: 0.4rem 1rem; font-size: 0.9375rem; }
.promo-stack { display: grid; gap: var(--space-5); }

/* Disclosures */
.disclosure > summary,
.passed-more > summary,
.score-card__help > summary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  color: var(--color-link);
  font-weight: 500;
  list-style: none;
}
.disclosure > summary::-webkit-details-marker,
.passed-more > summary::-webkit-details-marker,
.score-card__help > summary::-webkit-details-marker,
.check-row > summary::-webkit-details-marker { display: none; }
.disclosure__chevron { width: 1.125rem; height: 1.125rem; transition: transform 0.2s ease; }
.disclosure[open] > summary .disclosure__chevron { transform: rotate(90deg); }
.passed-more[open] > summary .disclosure__chevron { transform: rotate(180deg); }

/* Header Tools dropdown (design board "Site header") */
.nav-menu { position: relative; }
/* An inline-flex box (40px tall), as the Tools toggle on accessmate.ai, so the panel opens at the same offset. */
.nav-menu__toggle { display: inline-flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-menu__toggle::-webkit-details-marker { display: none; }
.nav-menu__chevron { flex-shrink: 0; width: 1rem; height: 1rem; transition: transform 0.2s ease; }
.nav-menu__details[open] .nav-menu__chevron { transform: rotate(180deg); }
.nav-menu__panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.5rem);
  left: 0;
  width: 21.25rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 12px 32px rgb(1 4 17 / 12%);
}
.nav-menu__item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-small);
  color: var(--color-heading);
  font-weight: 500;
  text-decoration: none;
}
.nav-menu__item:hover,
.nav-menu__item[aria-current="page"] { background: var(--color-surface-hover); color: var(--color-brand); }
.nav-menu__icon { width: 1.25rem; height: 1.25rem; color: var(--color-brand); }
.nav-menu__all { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--color-border); }
.nav-menu__all a { display: block; padding: 0.625rem 0.75rem; border-radius: var(--radius-small); color: var(--color-brand); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 40rem) {
  .nav-menu { position: static; }
  .nav-menu__panel { left: 1.25rem; right: 1.25rem; width: auto; }
}

/* Pre-footer call to action and footer, as on accessmate.ai (design board "Site footer") */
/* As .accessibility-cta on accessmate.ai: grid decorations on both sides, content above them. */
.cta-banner { position: relative; overflow: hidden; padding: 3.5rem 0; background: var(--color-band); color: rgba(255, 255, 255, 0.7); text-align: center; }
@media (min-width: 62rem) { .cta-banner { padding: 7.125rem 0; } }
.cta-banner__decoration { position: absolute; top: 50%; z-index: 0; width: auto; height: auto; transform: translateY(-50%); pointer-events: none; user-select: none; }
.cta-banner__decoration--left { left: 0; }
.cta-banner__decoration--right { right: 0; transform: translateY(-50%) rotate(180deg); }
.cta-banner__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; margin: 0 auto; }
.cta-banner__title { margin: 0 0 1rem; color: var(--color-white); }
.cta-banner__text { margin: 0 0 2rem; font-size: 1.125rem; line-height: 1.55; }
.site-footer { padding: 4.25rem 0 1.125rem; background: var(--color-navy); color: var(--color-white); }
.site-footer a:focus-visible { outline: 2px solid var(--color-white); outline-offset: 2px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; }
.site-footer__brand { flex: 1 1 22.5rem; max-width: 27.5rem; }
.site-footer__logo { display: block; width: auto; height: 2.5rem; margin-bottom: 1rem; }
.site-footer__desc { max-width: 22.75rem; margin: 0 0 1rem; color: rgba(255, 255, 255, 0.7); }
.site-footer__social { display: flex; gap: 0.8125rem; margin: 0; padding: 0 0 2rem; list-style: none; }
.site-footer__social a { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-small); }
.site-footer__social a { transition: all 0.5s ease; }
.site-footer__social a:hover { border-color: var(--color-band); background: var(--color-band); }
.site-footer__ai-title { margin: 0 0 1rem; color: var(--color-white); }
.site-footer__ai { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0 0 2.25rem; list-style: none; }
.site-footer__ai a { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-small); background: var(--color-white); }
.site-footer__ai a { transition: all 0.5s ease; }
.site-footer__ai a:hover { background: var(--color-brand-50); }
.site-footer__ai svg { width: 2.5rem; height: 2.5rem; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 0 4.5rem; padding-bottom: 0.25rem; }
.site-footer__nav { flex: 0 1 11.4375rem; padding-bottom: 2rem; }
.site-footer__nav--tools { flex-basis: 18.75rem; }
.site-footer__nav:nth-child(2) { flex-basis: 13.75rem; }
/* Wide screens: brand on the left, the three columns side by side on the right. */
@media (min-width: 75rem) {
  .site-footer__top { flex-wrap: nowrap; }
  .site-footer__cols { flex: 0 1 auto; flex-wrap: nowrap; gap: 0 3.5rem; }
}
.site-footer__heading { margin: 0 0 1rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; color: var(--color-white); }
.site-footer__nav ul { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.site-footer__nav a { color: var(--color-white); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
/* Footer links fade on hover, as on accessmate.ai. */
.site-footer__nav a,
.site-footer__bottom a { transition: opacity 0.5s ease; }
.site-footer__nav a:hover,
.site-footer__bottom a:hover { opacity: 0.5; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: var(--color-white); text-decoration: none; }

/* WordPress band (light) */
.wp-band {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: var(--space-6);
  align-items: end;
  overflow: hidden;
  padding: var(--space-6) var(--space-6) 0;
  border: 1px solid #dde3f6;
  border-radius: 12px;
  background: var(--color-surface);
}
.wp-band__content { display: flex; gap: var(--space-4); padding-bottom: var(--space-6); }
.wp-band__content .tag-line { margin-bottom: var(--space-2); font-size: 0.8125rem; }
.wp-band__logo {
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.45rem;
  border-radius: 50%;
  background: #21759b;
  color: var(--color-white);
}
.wp-band__title { font-size: 1.5rem; }
.wp-band__link { font-weight: 500; }
.wp-band .button-group { margin: var(--space-5) 0 0; }
.plugin-art { display: flex; gap: var(--space-2); align-items: flex-end; font-size: 0.75rem; color: var(--color-heading); }
.plugin-art__window {
  flex: 1;
  min-width: 0;
  border-radius: 10px 10px 0 0;
  background: var(--color-white);
  box-shadow: 0 -4px 24px rgb(1 4 17 / 12%);
}
.plugin-art__bar { display: flex; gap: 0.3rem; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--color-border); }
.plugin-art__bar span { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #cccdcf; }
.plugin-art__body { display: grid; grid-template-columns: 6.5rem 1fr; min-height: 9.5rem; }
.plugin-art__nav { padding: 0.6rem; border-right: 1px solid var(--color-border); }
.plugin-art__nav p { margin: 0 0 0.35rem; padding: 0.15rem 0.35rem; border-radius: 4px; color: var(--color-muted); }
.plugin-art__nav .plugin-art__brand { display: flex; gap: 0.3rem; align-items: center; color: var(--color-heading); font-weight: 600; }
.plugin-art__nav .is-active { background: var(--color-brand-50); color: var(--color-brand); }
.plugin-art__main { padding: 0.7rem; }
.plugin-art__label { margin: 0 0 0.6rem; font-weight: 600; }
.plugin-art__row { display: flex; gap: 0.75rem; align-items: center; }
.plugin-art__ring { flex-shrink: 0; width: 3.75rem; height: 3.75rem; border: 6px solid var(--color-success); border-right-color: #e8a23a; border-bottom-color: var(--color-error); border-radius: 50%; }
.plugin-art__legend { display: grid; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.plugin-art__legend li { display: flex; align-items: center; gap: 0.35rem; }
.plugin-art__legend i { width: 0.45rem; height: 0.45rem; border-radius: 50%; }
.plugin-art__legend .is-critical { background: var(--color-error); }
.plugin-art__legend .is-serious { background: #e8a23a; }
.plugin-art__legend .is-moderate { background: var(--color-brand-logo); }
.plugin-art__legend .is-passed { background: var(--color-success); }
.plugin-art__ai {
  flex: 0 0 9rem;
  margin-bottom: var(--space-5);
  padding: 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-white);
  box-shadow: 0 8px 24px rgb(1 4 17 / 14%);
}
.plugin-art__ai p { margin: 0 0 0.4rem; color: var(--color-text); }
.plugin-art__ai .plugin-art__ai-title { display: flex; gap: 0.25rem; align-items: center; font-weight: 600; color: var(--color-heading); }
.plugin-art__ai .icon { width: 0.85rem; height: 0.85rem; color: var(--color-brand); }
.plugin-art__ai-button { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 4px; background: var(--color-brand); color: var(--color-white); font-weight: 600; }
@media (max-width: 52rem) {
  .wp-band { grid-template-columns: 1fr; padding-bottom: var(--space-6); }
  .wp-band__content { padding-bottom: 0; }
  .plugin-art { display: none; }
}

/* Pro and expert cards */
.pro-card__head { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; margin-bottom: var(--space-5); }
.pro-card__head > div { flex: 1 1 18rem; }
.pro-card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.pro-card__grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-left: 1px solid var(--color-border);
  text-align: center;
}
.pro-card__grid li:first-child { border-left: 0; }
.pro-card__grid .feature-icon { background: #f1ebfe; color: #6b2fd6; }
.pro-card__feature { font-weight: 600; color: var(--color-heading); }
.pro-card__text { font-size: 0.9375rem; }
.expert-card {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  border-color: #cbeed8;
  background: #f1fbf4;
}
.expert-card__text { flex: 1 1 18rem; }

/* Report layout */
.report { padding-top: var(--space-5); padding-bottom: var(--space-4); }
.report--state { padding-bottom: var(--space-7); }
.report > * + * { margin-top: var(--space-5); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--color-muted); }
.breadcrumb [aria-current] { color: var(--color-muted); }
/* Page-level trail, directly under the header on every page. */
.page-crumbs { padding-top: 1.25rem; }
.report-head { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: flex-start; }
.report-head h1 { font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.5rem); margin-bottom: var(--space-2); }
.report-head h1:focus { outline: none; }
.report-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 0; font-size: 0.9375rem; color: var(--color-muted); }
.report-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.overview {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(15rem, 1.15fr) minmax(18rem, 1.6fr);
  gap: var(--space-4);
}
@media (max-width: 64rem) {
  .overview { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .shot { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .overview { grid-template-columns: minmax(0, 1fr); }
}

.score-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.gauge { position: relative; width: 11rem; height: 11rem; }
.gauge__ring { width: 100%; height: 100%; }
.gauge__track { fill: none; stroke: #f1ede6; stroke-width: 12; }
.gauge__value-ring { fill: none; stroke-width: 12; stroke-linecap: round; }
.gauge--good .gauge__value-ring { stroke: var(--color-success); }
.gauge--needs-improvement .gauge__value-ring { stroke: #c26b00; }
.gauge--poor .gauge__value-ring { stroke: var(--color-error); }
/* Solid inner disc so the text has a known background (and never overlaps the ring). */
.gauge__text {
  position: absolute;
  inset: 1.25rem;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.gauge__number { font-size: 2.25rem; font-weight: 600; line-height: 1; color: var(--color-heading); }
.gauge__label { margin-top: 0.25rem; font-size: 0.8125rem; color: var(--color-muted); }
.band-pill {
  margin: var(--space-3) 0 0;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  background: var(--color-offwhite);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-heading);
}
.band-pill--good { background: var(--color-success-bg); color: var(--color-success-text); }
.band-pill--needs-improvement { background: #fff3dc; color: #8a4b00; }
.band-pill--poor { background: var(--color-error-bg); color: #a30909; }
/* Explanation opens as a floating popover so the card never changes height. */
.score-card__help { position: relative; margin-top: var(--space-2); font-size: 0.875rem; }
.score-card__help > summary { font-size: 0.875rem; }
.popover {
  position: absolute;
  z-index: 15;
  top: calc(100% + 0.5rem);
  left: 50%;
  width: min(20rem, 80vw);
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-white);
  box-shadow: 0 12px 32px rgb(1 4 17 / 14%);
  color: var(--color-text);
  text-align: left;
  transform: translateX(-50%);
}
.popover::before {
  content: "";
  position: absolute;
  top: -0.4rem;
  left: 50%;
  width: 0.75rem;
  height: 0.75rem;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  background: var(--color-white);
  transform: translateX(-50%) rotate(45deg);
}

.stats-card { display: grid; gap: var(--space-3); margin: 0; list-style: none; }
.stat-row { display: flex; gap: var(--space-3); align-items: flex-start; }
.stat-row__icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
}
.stat-row__icon .icon { width: 1.25rem; height: 1.25rem; }
.stat-row__icon--critical { background: var(--color-error-bg); color: var(--impact-critical); }
.stat-row__icon--serious { background: #fff3dc; color: #a35a00; }
.stat-row__icon--moderate { background: var(--color-brand-50); color: var(--color-brand); }
.stat-row__icon--minor { background: var(--color-offwhite); color: var(--impact-minor); }
.stat-row__icon--passed { background: var(--color-success-bg); color: var(--color-success); }
.stat-row__value { display: block; font-size: 1.5rem; font-weight: 600; line-height: 1.2; color: var(--color-heading); }
.stat-row__value--critical { color: var(--impact-critical); }
.stat-row__value--serious { color: var(--impact-serious); }
.stat-row__label { display: block; color: var(--color-heading); }
.stat-row__sub { display: block; font-size: 0.8125rem; color: var(--color-muted); }
.stat-row__sub--critical { color: var(--impact-critical); font-weight: 500; }

.shot { margin: 0; padding: var(--space-3); }
.shot__frame { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-offwhite); }
.shot__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 0.5rem 0.4rem 0.7rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
}
.shot__dots { display: flex; gap: 0.3rem; }
.shot__dots span { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #cccdcf; }
.shot__caption a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--color-heading);
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}
.shot__caption a:hover { text-decoration: underline; }
.shot__image { display: block; flex: 1; width: 100%; min-height: 0; height: auto; object-fit: cover; object-position: top; }
.shot__empty { margin: 0; padding: var(--space-6) var(--space-4); text-align: center; color: var(--color-muted); }

.scope-banner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border: 1px solid #f3d98b;
  border-radius: 12px;
  background: #fffaeb;
  color: var(--color-heading);
}
.scope-banner > div { flex: 1 1 20rem; }
.scope-banner p { margin: 0; }
.scope-banner__title { font-weight: 600; }
.scope-banner__icon { width: 2rem; height: 2rem; color: #a35a00; }

.details-card { background: var(--color-surface); border-color: #dde3f6; }
.details-card:focus { outline: none; }
.details-card__head { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; align-items: center; }
.details-card__head .card__title { margin: 0; }
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--space-4) var(--space-5);
  margin: var(--space-4) 0 0;
}
/* align-content keeps label and value at the top when a neighbouring cell is taller. */
.details-grid > div { display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-3); align-items: start; align-content: start; }
.details-grid__icon { grid-row: span 2; width: 1.5rem; height: 1.5rem; color: var(--color-heading); }
.details-grid dt { font-size: 0.875rem; color: var(--color-muted); }
.details-grid dd { margin: 0; color: var(--color-heading); overflow-wrap: anywhere; }
/* Dense layout: 6 columns on desktop, long values span several. */
.details-grid--dense { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-4); }
.details-grid--dense .details-grid__item--span-2 { grid-column: span 2; }
.details-grid--dense .details-grid__item--span-3 { grid-column: span 3; }
/* Tablet: two columns; the widest values (span 3) get a full row. */
@media (max-width: 64rem) {
  .details-grid--dense { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details-grid--dense .details-grid__item--span-2 { grid-column: span 1; }
  .details-grid--dense .details-grid__item--span-3 { grid-column: 1 / -1; }
}
@media (max-width: 26rem) {
  .details-grid--dense { grid-template-columns: minmax(0, 1fr); }
}
/* Long values clamp to three lines until expanded; the full text is always in the DOM. */
.clamp-text.is-clamped, .is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.clamp-text.is-clamped[data-clamp-lines="1"] { -webkit-line-clamp: 1; line-clamp: 1; }
.clamp-text.is-clamped[data-clamp-lines="2"] { -webkit-line-clamp: 2; line-clamp: 2; }
.clamp-text { display: block; }
.clamp-toggle { margin-top: var(--space-1); }

.report-tabs {
  z-index: 5;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
}
/* Sticky only on larger, taller viewports so it never covers much content when zoomed (1.4.10). */
@media (min-width: 48rem) and (min-height: 36rem) {
  .report-tabs { position: sticky; top: 0; }
  /* Keyboard focus and in-page jumps stay clear of the sticky bar (2.4.11). */
  html:has(.report-tabs) { scroll-padding-top: 5.5rem; }
}
.report-tabs ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); margin: 0; padding: 0; list-style: none; }
.report-tabs a {
  display: inline-block;
  padding: var(--space-3) var(--space-1);
  border-bottom: 3px solid transparent;
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
}
.report-tabs a:hover { color: var(--color-brand); }
.report-tabs a.is-active { border-bottom-color: var(--color-brand); color: var(--color-brand); }

.report-section:focus,
.report-card:focus { outline: none; }
.report-section__head { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; align-items: flex-end; margin-bottom: var(--space-4); }
.report-section h2 { font-size: 1.75rem; margin-bottom: var(--space-1); }
.section-sub { margin: 0; color: var(--color-text); }
.report-filters { display: flex; flex-wrap: wrap; gap: var(--space-3); max-width: 100%; }
.severity-filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); max-width: 100%; }
.severity-filter label { font-weight: 500; color: var(--color-heading); }
.severity-filter select {
  min-width: 0;
  max-width: 100%;
  min-height: 2.5rem;
  padding: 0.3rem 2rem 0.3rem 0.75rem;
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-small);
  background: var(--color-white);
  color: var(--color-heading);
  font: inherit;
}

/* Issues: accordion */
.issue-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.issue[hidden] { display: none; }
.issue__details {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-white);
}
.issue__details[open] { border-left: 4px solid var(--impact-minor); }
/* The open border is 3px wider, so pull the content back to keep the text in place. */
.issue__details[open] > * { margin-left: -3px; }
.issue--critical .issue__details[open] { border-color: #f3c7d3; border-left-color: var(--impact-critical); background: #fffafb; }
.issue--serious .issue__details[open] { border-color: #f5d6c3; border-left-color: var(--impact-serious); background: #fffcf9; }
.issue--moderate .issue__details[open] { border-color: #dde3f6; border-left-color: var(--color-brand); background: #fbfcff; }
.issue__summary {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-radius: 12px;
  cursor: pointer;
  list-style: none;
}
.issue__summary::-webkit-details-marker { display: none; }
.issue__summary:hover .issue__title { color: var(--color-brand); }
.issue__heading { display: flex; flex: 1; flex-wrap: wrap; gap: 0 var(--space-4); align-items: baseline; min-width: 0; }
.issue__title { margin: 0; font-size: 1.0625rem; }
.issue__details[open] .issue__heading { flex-direction: column; gap: var(--space-1); }
.issue__details[open] .issue__title { font-size: 1.1875rem; }
.issue__meta { font-size: 0.875rem; color: var(--color-muted); }
.issue__chevron { width: 1.25rem; height: 1.25rem; color: var(--color-heading); transition: transform 0.2s ease; }
.issue__details[open] .issue__chevron { transform: rotate(180deg); }
/* Phones: the severity and chevron drop below the title, and the title keeps the
   same size and layout open or closed so the text doesn't move. After the base rules,
   so flex: 1 doesn't override the basis. */
@media (max-width: 30rem) {
  .issue__summary { flex-wrap: wrap; }
  .issue__heading,
  .issue__details[open] .issue__heading { flex-basis: calc(100% - 3.5rem); flex-direction: column; gap: var(--space-1); }
  .issue__details[open] .issue__title { font-size: 1.0625rem; }
  .issue__summary .impact { margin-left: calc(2.5rem + var(--space-3)); }
  .issue__chevron { margin-left: auto; }
}
.issue__body { padding: 0 var(--space-4) var(--space-4) calc(var(--space-4) + 2.5rem + var(--space-3)); }
.issue__description { margin: 0 0 var(--space-4); }
.issue__columns {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--space-4);
  align-items: start;
}
.issue__columns--two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
@media (max-width: 64rem) {
  .issue__columns,
  .issue__columns--two { grid-template-columns: 1fr; }
  .issue__body { padding-left: var(--space-4); }
}
.issue__icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-offwhite);
  color: var(--impact-minor);
}
.issue__icon .icon { width: 1.375rem; height: 1.375rem; }
.issue__icon--critical { background: #fde8ee; color: var(--impact-critical); }
.issue__icon--serious { background: #fff3dc; color: #a35a00; }
.issue__icon--moderate { background: var(--color-brand-50); color: var(--color-brand); }

.elements__title { margin: 0 0 var(--space-2); font-weight: 600; color: var(--color-heading); }
.elements__list { margin: 0; padding: 0; list-style: none; }
.element > summary {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  list-style: none;
}
.element > summary::-webkit-details-marker { display: none; }
.element > summary:hover,
.element[open] > summary { background: var(--color-brand-50); }
.element__dot { flex-shrink: 0; margin-top: 0.3rem; width: 0.75rem; height: 0.75rem; border: 2px solid var(--color-muted); border-radius: 50%; }
.element[open] .element__dot { border-color: var(--color-brand); background: var(--color-brand); }
.element__target { background: none; padding: 0; color: var(--color-heading); font-size: 0.8125rem; overflow-wrap: anywhere; }
.element__body { padding: var(--space-1) 0 var(--space-2) 1.25rem; }
.elements__more { margin: var(--space-2) 0 0; font-size: 0.8125rem; color: var(--color-muted); }

.fix-box {
  margin-top: var(--space-3);
  padding: var(--space-4);
  border-radius: 8px;
  background: var(--color-surface);
}
.fix-box__title { display: flex; gap: var(--space-2); align-items: center; margin-bottom: var(--space-2); font-weight: 600; color: var(--color-brand); }
.fix-box ul,
.fix-box ol { margin: 0; padding-left: var(--space-5); }
.fix-box li + li { margin-top: var(--space-1); }
.fix-box__more { margin: var(--space-3) 0 0; font-size: 0.9375rem; }

.code-example {
  align-self: start;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.code-example__head { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: space-between; align-items: center; margin-bottom: var(--space-3); }
.code-example__title { margin: 0; font-weight: 600; color: var(--color-heading); }
.tabs__list { display: inline-flex; padding: 0.2rem; border: 1px solid var(--color-border); border-radius: 6px; }
.tabs__list [role="tab"] {
  min-height: 2rem;
  padding: 0.2rem 0.85rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}
.tabs__list [role="tab"][aria-selected="true"] { background: var(--color-brand); color: var(--color-white); }
.tabs__fallback { margin: var(--space-3) 0 var(--space-2); font-size: 0.9375rem; }
.tabs__panel:first-of-type .tabs__fallback { margin-top: 0; }
[data-tabs-ready] .tabs__fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.code-label { margin: var(--space-2) 0 var(--space-1); font-size: 0.8125rem; font-weight: 600; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.code--before { border-left: 3px solid var(--color-error); }
.code--after { border-left: 3px solid var(--color-success); }
.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-brand);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}
.copy-button .icon { width: 1rem; height: 1rem; }
.code-example__wp { margin: 0; padding-left: var(--space-5); }
.code-example__wp li + li { margin-top: var(--space-2); }

.empty-issues { display: flex; gap: var(--space-4); align-items: flex-start; background: var(--color-success-bg); border-color: #cbeed8; }
.empty-issues h3 { font-size: 1.1875rem; }
.empty-issues p { margin: 0; }

/* Manual and passed checks */
.report-card__head { display: flex; gap: var(--space-4); align-items: flex-start; margin-bottom: var(--space-4); }
.report-card__heading { flex: 1; min-width: 0; }
/* "Show more" toggle under a long list (button added by app.js). */
.more-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  margin-top: var(--space-3);
  padding: var(--space-2);
  border: 0;
  background: none;
  color: var(--color-link);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.more-toggle:hover [data-more-text] { text-decoration: underline; text-underline-offset: 0.18em; }
.more-toggle[aria-expanded="true"] .disclosure__chevron { transform: rotate(180deg); }
.more-toggle--left { justify-content: flex-start; width: auto; padding-left: 0; }
.report-card__subhead { margin: var(--space-5) 0 var(--space-2); font-size: 1rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.check-rows { margin: 0; padding: 0; list-style: none; border: 1px solid var(--color-border); border-radius: 8px; }
.check-rows > li + li { border-top: 1px solid var(--color-border); }
.check-row > summary {
  display: grid;
  grid-template-columns: auto minmax(10rem, 1fr) minmax(0, 2fr) auto auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  list-style: none;
}
.check-row > summary:hover { background: var(--color-offwhite); }
.check-row__icon { width: 1.375rem; height: 1.375rem; color: var(--color-heading); }
.check-row__title { font-weight: 500; color: var(--color-heading); }
.check-row__text { font-size: 0.9375rem; color: var(--color-muted); }
.check-row__chevron { width: 1.125rem; height: 1.125rem; color: var(--color-heading); transition: transform 0.2s ease; }
.check-row[open] .check-row__chevron { transform: rotate(90deg); }
.check-row__body { padding: 0 var(--space-4) var(--space-4) calc(var(--space-4) + 1.375rem + var(--space-3)); }
.check-row__body ul { margin: 0; padding-left: var(--space-5); }
.check-row__body li + li { margin-top: var(--space-1); }
@media (max-width: 48rem) {
  .check-row > summary { grid-template-columns: auto 1fr auto; }
  .check-row__text { grid-column: 2 / -1; grid-row: 2; }
  .review-pill--muted { border-color: var(--color-muted) !important; background: var(--color-offwhite) !important; color: var(--color-muted) !important; }
.review-pill { grid-column: 2; justify-self: start; }
  .check-row__chevron { grid-column: 3; grid-row: 1; }
  .check-row__body { padding-left: var(--space-4); }
}
.review-pill--muted { border-color: var(--color-muted) !important; background: var(--color-offwhite) !important; color: var(--color-muted) !important; }
.review-pill {
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--color-brand);
  border-radius: 4px;
  background: var(--color-brand-50);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-brand);
  white-space: nowrap;
}

.passed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: var(--space-3) var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.passed-grid li { display: flex; gap: var(--space-2); align-items: flex-start; color: var(--color-heading); font-size: 0.9375rem; }
.passed-grid__icon { width: 1.25rem; height: 1.25rem; margin-top: 0.1rem; color: var(--color-success); }
.passed-more { margin-top: var(--space-3); }
.passed-more[open] .passed-grid { margin-top: var(--space-3); }

.next-steps { padding-top: var(--space-3); }
.next-steps__head { display: flex; gap: var(--space-3); align-items: center; margin-bottom: var(--space-4); }
.next-steps__head h2 { margin: 0; }
.next-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.next-tile {
  position: relative;
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}
.next-tile:hover { border-color: var(--color-brand); }
.next-tile:focus-within { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.next-tile--blue { background: var(--color-surface); }
.next-tile--purple { background: #f7f3ff; }
.next-tile--purple .feature-icon { background: #ece3fd; color: #6b2fd6; }
.next-tile--green { background: #f1fbf4; }
.next-tile--green .feature-icon { background: var(--color-success-bg); color: var(--color-success); }
.next-tile--amber { background: #fffaeb; }
.next-tile--amber .feature-icon { background: #fff3dc; color: #a35a00; }
.next-tile__text { display: flex; flex: 1; flex-direction: column; gap: var(--space-1); }
.next-tile__link { font-weight: 600; color: var(--color-heading); text-decoration: none; }
.next-tile__link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.next-tile__link:hover { text-decoration: underline; }
.next-tile__link:focus-visible { outline: none; }
.next-tile__desc { font-size: 0.875rem; }
.next-tile__arrow { align-self: flex-end; width: 1.125rem; height: 1.125rem; color: var(--color-brand); }


/* Pending and failed states */
.state-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); padding: var(--space-6); }
.state-card__title { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); margin: var(--space-2) 0 0; }
.state-card__title:focus { outline: none; }
.state-card__status { margin: 0; font-size: 1.125rem; color: var(--color-heading); }
.state-card p { margin-bottom: 0; }
.state-card .fix-box { align-self: stretch; }
.state-card .button-group { margin-top: var(--space-3); }
.progress-steps { display: grid; gap: var(--space-2); margin: var(--space-3) 0; padding: 0; list-style: none; }
.progress-steps li { display: flex; gap: var(--space-3); align-items: center; color: var(--color-muted); }
.progress-steps__dot {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
}
.progress-steps__dot .icon { width: 1rem; height: 1rem; }
.progress-steps .is-current { color: var(--color-heading); font-weight: 600; }
.progress-steps .is-current .progress-steps__dot { border-color: var(--color-brand); color: var(--color-brand); }
.progress-steps .is-done { color: var(--color-heading); }
.progress-steps .is-done .progress-steps__dot { border-color: var(--color-success); background: var(--color-success); color: var(--color-white); }

/* Shared report pieces */
.impact {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.impact--critical { color: var(--impact-critical); }
.impact--serious { color: var(--impact-serious); }
.impact--moderate { color: var(--impact-moderate); }
.impact--minor { color: var(--impact-minor); }

details > summary { cursor: pointer; }
.node-list { padding-left: var(--space-5); }
.node { padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.node__label { font-size: 0.8125rem; font-weight: 600; color: var(--color-muted); margin: var(--space-2) 0 var(--space-1); }
.code,
.node__summary {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-small);
  background: var(--color-code-bg);
  color: var(--color-heading);
  font-size: 0.8125rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.code code { background: none; padding: 0; }
.node__summary { font-family: var(--font-sans); font-size: 0.875rem; }

@media print {
  .site-header__actions,
  .site-nav,
  .report-actions,
  .report-tabs,
  .severity-filter,
  .wp-band,
  .pro-card,
  .pdf-preview__controls,
  .generator__form,
  .link-button,
  .expert-card,
  .next-steps,
  .more-toggle,
  .scope-banner .button,
  .copy-button,
  .tabs__list,
  .site-footer,
  .skip-link { display: none !important; }
  .card, .issue { break-inside: avoid; }
  .clamp-text.is-clamped, .is-clamped { display: block; -webkit-line-clamp: none; line-clamp: none; overflow: visible; }
  .clamp-toggle { display: none !important; }
  .popover { position: static; width: auto; margin-top: var(--space-2); box-shadow: none; transform: none; }
  .popover::before { display: none; }
  .tabs__panel[hidden] { display: block !important; }
  [data-tabs-ready] .tabs__fallback { position: static; width: auto; height: auto; clip: auto; }
  body { font-size: 11pt; }
}

/* PDF checker: only the parts the shared components don't cover, built from the same tokens */
.hero__note { max-width: 40rem; margin: var(--space-3) auto 0; font-size: 0.9375rem; color: var(--color-muted); }
.pdf-form .field { margin-bottom: var(--space-4); }
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  border: 2px dashed var(--color-input-border);
  border-radius: var(--radius);
  background: var(--color-white);
  text-align: center;
}
.dropzone.is-dragging { border-color: var(--color-brand); background: var(--color-brand-50); }
.dropzone__icon { width: 2.5rem; height: 2.5rem; color: var(--color-brand); }
.dropzone__title { margin: 0; font-weight: 600; color: var(--color-heading); }
.dropzone__or { margin: 0; color: var(--color-muted); }
/* Visually hidden but focusable; focus is shown on its label button. */
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-input:focus-visible + label { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.file-chip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
}
.file-chip__text { display: flex; flex: 1 1 12rem; flex-direction: column; min-width: 0; }
.file-chip__name { font-weight: 600; color: var(--color-heading); overflow-wrap: anywhere; }
.file-chip__size { font-size: 0.9375rem; color: var(--color-muted); }
.file-chip__actions { display: flex; gap: var(--space-2); }
.link-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-link);
  font: inherit;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.link-button:hover { text-decoration-thickness: 2px; }
.element__body > p { margin: 0 0 var(--space-2); font-size: 0.9375rem; }
.fix-box__why { margin: var(--space-3) 0 0; font-size: 0.9375rem; }
.standards-box {
  align-self: start;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-white);
}
.standards-box__title { margin: 0 0 var(--space-2); font-weight: 600; color: var(--color-heading); }
.standards-box__list { margin: 0 0 var(--space-3); padding-left: var(--space-5); font-size: 0.9375rem; }
.standards-box__rule { margin: 0 0 var(--space-3); font-size: 0.875rem; color: var(--color-muted); }
.shot__caption--pill {
  margin: 0;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--color-heading);
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 500;
}
.pdf-preview { display: flex; flex-direction: column; gap: var(--space-3); }
.pdf-preview:focus { outline: none; }
.pdf-preview:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.pdf-preview__viewport { overflow: auto; max-height: 20rem; background: var(--color-offwhite); }
.pdf-preview__canvas { display: block; margin: 0 auto; background: var(--color-white); }
.pdf-preview__controls { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.icon--flip { transform: rotate(180deg); }
/* Unavailable buttons: grey, with a dashed border so they don't read as a normal outline button. */
.button:disabled,
.button[aria-disabled="true"] { border-color: var(--color-input-border); border-style: dashed; background: var(--color-offwhite); color: var(--color-muted); cursor: not-allowed; }

/* Statement generator and shared form fields (built from existing tokens) */
.hero--compact { padding: var(--space-7) 0 var(--space-5); }
.section--tight { padding-top: var(--space-4); }
.field__optional { font-weight: 400; color: var(--color-muted); }
.field__input--short { max-width: 12rem; }
.field__input--medium { max-width: 20rem; }
.field__input--textarea { min-height: 5rem; resize: vertical; line-height: 1.5; }
.field__input--select { max-width: 24rem; }
.fieldset { min-width: 0; margin: 0 0 var(--space-4); padding: 0; border: 0; }
.fieldset > legend { padding: 0; margin-bottom: var(--space-2); }
.choice { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-3); align-items: start; margin-bottom: var(--space-3); }
.choice__input { width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; accent-color: var(--color-brand); }
.choice__label { color: var(--color-heading); }
.choice__hint { grid-column: 2; margin: var(--space-1) 0 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
.choice-row .choice { margin-bottom: var(--space-2); }
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--space-3); }
.choice-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius);
  background: var(--color-white);
}
.choice-card:has(.choice__input:checked) { border: 2px solid var(--color-brand); background: var(--color-brand-50); padding: calc(var(--space-3) - 1px) calc(var(--space-4) - 1px); }
.choice-card__label { display: flex; flex-direction: column; gap: var(--space-1); cursor: pointer; }
.choice-card__title { font-weight: 600; color: var(--color-heading); }
.choice-card__desc { font-size: 0.9375rem; color: var(--color-text); }
.field--error .choice-card { border-color: var(--color-error); }
.choice-cards--stack { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
.more-fields { margin: var(--space-2) 0 var(--space-4); }
.more-fields > summary { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 2.75rem; color: var(--color-link); font-weight: 500; list-style: none; cursor: pointer; }
.more-fields > summary::-webkit-details-marker { display: none; }
.more-fields > summary:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.more-fields__chevron { width: 1.25rem; height: 1.25rem; transition: transform 0.2s ease; }
.more-fields[open] > summary .more-fields__chevron { transform: rotate(180deg); }
.more-fields__body { padding-top: var(--space-3); }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--space-3); }
.field-row--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-row .field__input { max-width: none; }
@media (max-width: 40rem) { .field-row { grid-template-columns: minmax(0, 1fr); } }

/* Statement generator: a three-step form beside a live preview */
.generator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: var(--space-6); align-items: start; }
.generator__form { padding: 0; }
.generator__body { padding: var(--space-6); }
/* The preview grows with the statement rather than scrolling inside a fixed box, so all of it
   can be read and checked at once. */
.generator__preview { padding: 0; }
@media (max-width: 64rem) { .generator { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 40rem) { .generator__body { padding: var(--space-5) var(--space-4); } }

.stepper { padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--color-border); }
@media (max-width: 40rem) { .stepper { padding: var(--space-3) var(--space-4); } }
.stepper__list { display: flex; align-items: center; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.stepper__item { display: contents; }
.stepper__line { flex: 1 1 1.5rem; min-width: 0.5rem; height: 2px; background: var(--color-border); }
.stepper__step { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 2.75rem; padding: 0 var(--space-1); border: 0; border-radius: var(--radius-small); background: none; color: var(--color-text); font: inherit; font-weight: 500; white-space: nowrap; cursor: pointer; }
.stepper__step:disabled { cursor: default; }
.stepper__step:not(:disabled):hover .stepper__label { text-decoration: underline; text-underline-offset: 0.18em; }
.stepper__num { display: inline-grid; flex: none; place-items: center; width: 1.75rem; height: 1.75rem; border: 2px solid var(--color-input-border); border-radius: 50%; font-size: 0.875rem; font-weight: 600; }
.stepper__check { display: none; width: 0.875rem; height: 0.875rem; stroke-width: 3; }
.stepper__step.is-current { color: var(--color-heading); font-weight: 600; }
.stepper__step.is-current .stepper__num { border-color: var(--color-brand); background: var(--color-brand-50); color: var(--color-brand); }
.stepper__step.is-done { color: var(--color-heading); }
.stepper__step.is-done .stepper__num { border-color: var(--color-brand); background: var(--color-brand); color: var(--color-white); }
.stepper__step.is-done [data-step-num] { display: none; }
.stepper__step.is-done .stepper__check { display: block; }
@media (max-width: 40rem) {
  .stepper__step { min-width: 0; white-space: normal; text-align: left; }
  /* Hidden visually only, so every step button keeps its name for screen readers. */
  .stepper__step:not(.is-current) .stepper__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.wizard-step__head { margin-bottom: var(--space-5); }
.wizard-step__head .tag-line { margin-bottom: var(--space-1); }
.wizard-step__title { margin-bottom: var(--space-1); font-size: 1.5rem; }
.wizard-step__title:focus { outline: none; }
.wizard-step__title:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.wizard-step__intro { margin: 0; }
.wizard-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--color-border); }
.draft-switch { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--space-1) var(--space-3); max-width: 100%; margin-left: auto; }
.draft-switch .switch { flex: none; }
.draft-switch label { color: var(--color-heading); font-weight: 500; cursor: pointer; }
.draft-switch__hint { flex-basis: 100%; margin: 0; font-size: 0.875rem; color: var(--color-muted); text-align: right; }
@media (max-width: 40rem) { .draft-switch { justify-content: flex-start; margin-left: 0; } .draft-switch__hint { text-align: left; } }
.switch { appearance: none; position: relative; width: 2.75rem; height: 1.5rem; margin: 0; border: 2px solid var(--color-input-border); border-radius: 999px; background: var(--color-white); cursor: pointer; transition: background-color 0.2s ease; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 1rem; height: 1rem; border-radius: 50%; background: var(--color-input-border); transition: transform 0.2s ease; }
.switch:checked { border-color: var(--color-brand); background: var(--color-brand); }
.switch:checked::after { background: var(--color-white); transform: translateX(1.25rem); }
.switch:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

.segmented { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.segmented__option { position: relative; }
.segmented__option .choice__input { position: absolute; top: 50%; left: var(--space-4); margin: 0; transform: translateY(-50%); }
.segmented__option label { display: inline-flex; align-items: center; min-height: 2.75rem; padding: var(--space-2) var(--space-4) var(--space-2) calc(var(--space-4) + 1.25rem + var(--space-3)); border: 1px solid var(--color-input-border); border-radius: var(--radius); background: var(--color-white); color: var(--color-heading); font-weight: 600; cursor: pointer; }
.segmented__option:has(.choice__input:checked) label { border: 2px solid var(--color-brand); padding: calc(var(--space-2) - 1px) calc(var(--space-4) - 1px) calc(var(--space-2) - 1px) calc(var(--space-4) + 1.25rem + var(--space-3) - 1px); background: var(--color-brand-50); }

.known-issues { margin: var(--space-5) 0 var(--space-4); }
.known-issues__title { margin: 0 0 var(--space-1); font-size: 1.0625rem; }
.repeat-list { display: grid; gap: var(--space-3); margin-bottom: var(--space-3); }
.repeat-list__empty { margin: 0; padding: var(--space-4); border: 1px dashed var(--color-input-border); border-radius: var(--radius); color: var(--color-text); }
.repeat-item { min-width: 0; margin: 0; padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-offwhite); }
.repeat-item__legend { padding: 0 var(--space-2); font-weight: 600; color: var(--color-heading); }
.repeat-item .more-fields { margin: 0 0 var(--space-2); }
.scope-banner--compact { margin-bottom: var(--space-3); padding: var(--space-3) var(--space-4); }
.statement-note { margin: 0 0 var(--space-5); padding: var(--space-3) var(--space-4); border-radius: var(--radius-small); background: var(--color-brand-50); color: var(--color-heading); }

.export-panel { margin-top: var(--space-5); padding: var(--space-5); border-radius: var(--radius); background: var(--color-brand-50); }
.export-panel__title { margin: 0 0 var(--space-2); font-size: 1.25rem; }
.export-panel > p { margin: 0; font-size: 0.9375rem; }
.export-panel > p + p { margin-top: var(--space-2); }
.export-actions { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; margin: var(--space-4) 0; }
.export-actions .link-button { font-size: 1rem; font-weight: 500; }
.export-actions .link-button .icon { width: 1.125rem; height: 1.125rem; }
.export-panel__note { display: flex; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius); background: var(--color-white); font-size: 0.9375rem; }
.export-panel__note p { margin: 0; }
.export-panel__icon { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.1rem; color: var(--color-brand); }

.generator__preview-head { padding: var(--space-5) var(--space-5) var(--space-4); border-bottom: 1px solid var(--color-border); }
.generator__preview-head .card__title { font-size: 1.25rem; }
.generator__preview-head p { margin: 0; font-size: 0.9375rem; }
.statement-preview { padding: var(--space-5); color: var(--color-heading); font-size: 0.9375rem; }
.statement-preview h3 { margin: 0 0 var(--space-1); font-size: 1.25rem; }
.statement-preview h4 { margin: var(--space-5) 0 var(--space-2); font-size: 1rem; }
.statement-preview h5 { margin-top: var(--space-3); font-size: 0.9375rem; }
.statement-preview p { margin: 0 0 var(--space-2); }
.statement-preview dt { font-weight: 600; }
.statement-preview dd { margin: 0 0 var(--space-2); }
.statement-preview ul { margin: 0 0 var(--space-2); padding-left: var(--space-5); }
.statement-missing { padding: 0 0.25rem; border-radius: 2px; background: #dbe2fb; color: var(--color-tagline); font-weight: 500; }

/* Color contrast checker (built from existing tokens) */
.contrast-checker { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
.contrast-panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
@media (max-width: 64rem) { .contrast-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .contrast-panel > :last-child { grid-column: 1 / -1; } }
@media (max-width: 44rem) { .contrast-panel { grid-template-columns: minmax(0, 1fr); } }
.contrast-pane { min-width: 0; }
.contrast-pane .card__title { margin-bottom: var(--space-3); }
.contrast-pane__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); margin-bottom: var(--space-3); }
.contrast-pane__head .card__title { margin: 0; }
.contrast-pane__select { width: auto; min-height: 2.5rem; padding-top: 0.35rem; padding-bottom: 0.35rem; font-size: 0.9375rem; }
.color-field { margin-bottom: var(--space-4); }
.color-field__row { display: flex; align-items: center; gap: var(--space-2); }
.color-field__picker {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  padding: 0.2rem;
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-small);
  background: var(--color-white);
  cursor: pointer;
}
.color-field__picker--small { width: 2.25rem; height: 2.25rem; padding: 0.15rem; }
.color-field__hex { flex: 1 1 6rem; width: auto; min-width: 0; font-family: var(--font-mono); text-transform: uppercase; }
.icon-button { flex-shrink: 0; width: 3rem; min-width: 3rem; padding: 0; }
.icon-button--plain { width: 2.25rem; min-width: 2.25rem; min-height: 2.25rem; border-color: transparent; background: transparent; color: var(--color-muted); }
.icon-button--plain:hover { border-color: var(--color-brand); background: var(--color-brand-50); color: var(--color-brand); }
.icon-button .icon { width: 1.25rem; height: 1.25rem; }
.icon-button:not(.icon-button--plain) .icon { width: 1.5rem; height: 1.5rem; }
/* Icon-only copy buttons: a tick and a "Copied" tip for two seconds after copying. */
.copy-button-icon { position: relative; }
.copy-button-icon__done { display: none; }
.copy-button-icon.is-copied { border-color: var(--color-success); color: var(--color-success); }
.copy-button-icon.is-copied .copy-button-icon__copy { display: none; }
.copy-button-icon.is-copied .copy-button-icon__done { display: block; }
.copy-feedback {
  position: absolute;
  bottom: calc(100% + 0.375rem);
  left: 50%;
  z-index: 5;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-small);
  background: var(--color-heading);
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25rem;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

.contrast-sample { margin-bottom: var(--space-2); padding: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius); }
.contrast-sample p { margin: 0 0 var(--space-3); }
.contrast-sample__large { font-size: 1.5rem; font-weight: 600; line-height: 1.25; }
.contrast-sample__controls { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: 0 !important; }
.contrast-sample__button { display: inline-block; padding: 0.6rem 1.25rem; border-radius: var(--radius-small); font-weight: 600; }
.contrast-sample__input { display: inline-block; flex: 1 1 8rem; padding: 0.55rem 0.9rem; border: 1px solid; border-radius: var(--radius-small); }

.contrast-status { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border: 1px solid #cbeed8; border-radius: var(--radius); background: var(--color-success-bg); }
.contrast-status--warn { border-color: #f3d98b; background: #fff3dc; }
.contrast-status--fail { border-color: #f5c2c2; background: var(--color-error-bg); }
.contrast-status__icon { display: inline-grid; flex-shrink: 0; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--color-success); color: var(--color-white); }
.contrast-status--warn .contrast-status__icon { background: #8a4b00; }
.contrast-status--fail .contrast-status__icon { background: var(--color-error); }
.contrast-status__icon .icon { width: 1.75rem; height: 1.75rem; }
.contrast-status__text { min-width: 0; }
.contrast-status__line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0; }
.contrast-status__ratio { font-size: 2.25rem; font-weight: 600; line-height: 1.1; color: var(--color-heading); }
.contrast-status__summary { margin: var(--space-1) 0 0; font-size: 0.9375rem; color: var(--color-heading); }
.contrast-checks { display: grid; margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.contrast-checks__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--color-border); }
.contrast-checks__label { color: var(--color-heading); font-size: 0.9375rem; }
.contrast-checks__icon { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; color: var(--color-white); }
.contrast-checks__icon.is-pass { background: var(--color-success); }
.contrast-checks__icon.is-fail { background: var(--color-error); }
.contrast-checks__icon .icon { width: 1rem; height: 1rem; }
.result-pill { display: inline-flex; align-items: center; gap: 0.3rem; justify-self: start; padding: 0.15rem 0.6rem; border: 1px solid currentColor; border-radius: 999px; font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.result-pill .icon { width: 1rem; height: 1rem; }
.result-pill--pass { background: var(--color-success-bg); color: var(--color-success-text); }
.result-pill--warn { background: #fff3dc; color: #8a4b00; }
.result-pill--fail { background: var(--color-error-bg); color: #a30909; }
.contrast-checks .result-pill { justify-self: end; }

.contrast-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-3) var(--space-4); margin-bottom: var(--space-4); }
.contrast-card__intro { flex: 1 1 18rem; min-width: 0; }
.contrast-card__head > .field { flex: 0 1 16rem; margin: 0; }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: var(--space-3); margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.swatch-grid__empty { grid-column: 1 / -1; padding: var(--space-3) var(--space-4); border: 1px dashed var(--color-input-border); border-radius: var(--radius); }
.swatch-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-2) var(--space-3);
  align-items: center;
  width: 100%;
  height: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.swatch-tile:hover { border-color: var(--color-brand); background: var(--color-brand-50); }
.swatch-tile__swatch { width: 2.75rem; height: 2.75rem; border: 1px solid var(--color-input-border); border-radius: var(--radius-small); }
.swatch-tile__text { display: flex; flex-direction: column; min-width: 0; }
.swatch-tile__hex { font-family: var(--font-mono); font-weight: 600; color: var(--color-heading); }
.swatch-tile__ratio { font-size: 0.9375rem; }
.swatch-tile .result-pill { grid-column: 2; }

.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); }
.contrast-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.contrast-table th, .contrast-table td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: middle; white-space: nowrap; }
.contrast-table thead th { background: var(--color-offwhite); color: var(--color-heading); font-weight: 600; }
.contrast-table tbody tr:last-child > * { border-bottom: 0; }
.contrast-table__hex { width: 8.5rem; min-height: 2.5rem; padding-top: 0.35rem; padding-bottom: 0.35rem; font-family: var(--font-mono); text-transform: uppercase; }
.contrast-table__error { max-width: 14rem; margin: var(--space-1) 0 0; white-space: normal; }
.contrast-table__ratio { font-weight: 600; color: var(--color-heading); }
.contrast-table__actions { display: flex; gap: var(--space-1); }
.contrast-table__actions-cell { width: 1%; }

.section--surface { background: var(--color-surface); }
.icon-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); margin: 0; padding: 0; list-style: none; }
@media (max-width: 30rem) { .icon-points { grid-template-columns: minmax(0, 1fr); } }
.icon-points li { display: flex; gap: var(--space-3); align-items: flex-start; }
.icon-points__icon { display: inline-grid; flex-shrink: 0; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--color-white); font-size: 1.375rem; font-weight: 600; }
.icon-points__icon .icon { width: 1.5rem; height: 1.5rem; }
.icon-points__title { display: block; margin-bottom: var(--space-1); font-weight: 500; color: var(--color-white); }
.limits-callout { display: flex; gap: var(--space-6); align-items: flex-start; }
@media (max-width: 40rem) { .limits-callout { flex-direction: column; gap: var(--space-4); } }
.limits-callout__icon { display: inline-grid; flex-shrink: 0; place-items: center; width: 6rem; height: 6rem; border-radius: 50%; background: var(--color-white); color: var(--color-brand); }
.limits-callout__icon .icon { width: 2.75rem; height: 2.75rem; }
.limits-callout p:last-child { margin-bottom: 0; }

/* Alt text generator: one card that moves from upload, to options, to the result */
.alt-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
.alt-tool { padding: var(--space-6); }
@media (max-width: 40rem) { .alt-tool { padding: var(--space-4); } }
.alt-upload { margin: var(--space-4) 0 0; }
.alt-dropzone { gap: var(--space-3); padding: var(--space-6) var(--space-4); border: 1.5px dashed var(--color-input-border); background: var(--color-white); }
.alt-dropzone__icon { width: 5rem; height: 5rem; }
.alt-dropzone__icon .icon { width: 2.5rem; height: 2.5rem; }
.alt-preview { position: relative; overflow: hidden; border-radius: 12px; background: var(--color-surface); }
.alt-preview__img { display: block; width: 100%; max-height: 26rem; object-fit: contain; }
.alt-preview__replace { position: absolute; top: var(--space-3); right: var(--space-3); border-color: var(--color-white); box-shadow: 0 2px 8px rgba(2, 11, 55, 0.18); }
.alt-preview__replace:hover { border-color: var(--color-brand); background: var(--color-brand-50); color: var(--color-brand); }
/* Phones: the button sits under the image, so the box mustn't clip it; the image keeps the rounded corners. */
@media (max-width: 30rem) {
  .alt-preview { overflow: visible; background: none; }
  .alt-preview__img { border-radius: 12px; background: var(--color-surface); }
  .alt-preview__replace { position: static; width: 100%; margin-top: var(--space-2); box-shadow: none; }
}
.alt-notice { display: flex; gap: var(--space-2); align-items: flex-start; margin: var(--space-3) 0 0; font-size: 0.9375rem; color: var(--color-text); }
.alt-notice__icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; color: var(--color-muted); }
.alt-notice .link-button { display: inline; margin-left: var(--space-1); }
.alt-tool [data-error] { margin: var(--space-4) 0 0; }

.alt-toggle { display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.alt-toggle__chevron { flex-shrink: 0; width: 1.5rem; height: 1.5rem; margin-left: auto; color: var(--color-muted); transition: transform 0.2s ease; }
.alt-toggle[aria-expanded="true"] .alt-toggle__chevron { transform: rotate(180deg); color: var(--color-brand); }
.alt-context { margin-top: var(--space-5); border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-offwhite); }
.alt-context:has(.alt-context__toggle[aria-expanded="true"]) { border-color: #c9d3f5; background: var(--color-surface); }
.alt-context__heading { margin: 0; font-size: 1.0625rem; font-weight: 600; color: var(--color-heading); }
.alt-context__toggle { flex-wrap: wrap; min-height: 3rem; padding: var(--space-4) var(--space-5); border-radius: 12px; }
.alt-context__icon { width: 1.5rem; height: 1.5rem; color: var(--color-muted); }
.alt-pill { display: inline-block; padding: 0.125rem 0.5rem; border-radius: var(--radius-small); background: var(--color-brand-50); color: var(--color-brand); font-size: 0.8125rem; font-weight: 500; }
.alt-context__panel { padding: 0 var(--space-5) var(--space-5); }
.alt-context__lead { margin: 0 0 var(--space-4); color: var(--color-text); }
.alt-context .choice-card { background: var(--color-white); }
/* Six purposes: three columns, then two, then one, so rows are always full. */
.alt-context .choice-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 52rem) { .alt-context .choice-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .alt-context .choice-cards { grid-template-columns: minmax(0, 1fr); } }
.alt-context .field:last-child { margin-bottom: 0; }
.alt-context .field__input::placeholder { color: var(--color-muted); opacity: 1; }
.alt-counter-row { display: flex; justify-content: space-between; gap: var(--space-3); align-items: flex-start; }
.alt-counter-row .field__hint { margin: var(--space-1) 0 0; }
.alt-counter { margin: var(--space-1) 0 0; font-size: 0.9375rem; color: var(--color-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.alt-counter--end { text-align: right; }
.alt-generate { width: 100%; margin-top: var(--space-5); font-size: 1.125rem; }
.alt-generate .icon { width: 1.375rem; height: 1.375rem; }
.alt-status { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin: var(--space-3) 0 0; font-weight: 500; color: var(--color-heading); }
.alt-status .spinner { margin-top: 0; }
.alt-quota { margin: var(--space-3) 0 0; text-align: center; color: var(--color-text); }

.alt-result { margin-top: var(--space-5); padding: var(--space-5); border-radius: 12px; background: var(--color-success-bg); }
.alt-result__title { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); font-size: 1.125rem; }
.alt-result__title:focus { outline: none; }
.alt-result__title:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.alt-result__icon { width: 1.5rem; height: 1.5rem; color: var(--color-success); }
.alt-result .field__input { background: var(--color-white); }
.alt-result__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-3); }
@media (max-width: 30rem) { .alt-result__actions { grid-template-columns: minmax(0, 1fr); } }
.alt-result__count { margin: var(--space-3) 0 0; text-align: center; }
/* After clicking an unavailable Regenerate, the reason stands out. */
.alt-result__count.is-emphasised { color: var(--color-heading); font-weight: 600; }
.alt-result .scope-banner { margin: var(--space-4) 0 0; }
.alt-review { display: flex; gap: var(--space-3); align-items: flex-start; margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--radius); background: var(--color-brand-50); font-size: 0.9375rem; }
.alt-review p { margin: 0; }
.alt-review__icon { flex-shrink: 0; width: 1.5rem; height: 1.5rem; color: var(--color-brand); }
.alt-review__title { font-weight: 600; color: var(--color-heading); }

.alt-tips { padding: var(--space-6); }
@media (max-width: 40rem) { .alt-tips { padding: var(--space-4); } }
.alt-tips__head { display: flex; gap: var(--space-4); align-items: flex-start; }
.alt-tips__icon { width: 3.5rem; height: 3.5rem; border-radius: 12px; }
.alt-tips__icon .icon { width: 1.75rem; height: 1.75rem; }
.alt-tips__heading { flex: 1; min-width: 0; }
.alt-tips__heading .card__title { margin: 0 0 var(--space-1); }
.alt-tips__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin: var(--space-5) 0 0; padding: 0; list-style: none; }
@media (max-width: 52rem) { .alt-tips__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .alt-tips__list { grid-template-columns: minmax(0, 1fr); } }
.alt-tips__item { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius); }
.alt-tips__item p { margin: 0; font-size: 0.9375rem; }
.alt-tips__num { display: inline-grid; flex-shrink: 0; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--color-brand-50); color: var(--color-brand); font-size: 1.25rem; font-weight: 600; }
.alt-tips__item .alt-tips__title { margin-bottom: var(--space-1); font-weight: 600; color: var(--color-heading); }
.alt-tips__more { margin: var(--space-4) 0 0; }

.alt-dialog { width: min(40rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: var(--space-6); border: 0; border-radius: 12px; background: var(--color-white); color: var(--color-text); box-shadow: 0 16px 48px rgba(2, 11, 55, 0.25); }
@media (max-width: 40rem) { .alt-dialog { padding: var(--space-5) var(--space-4); } }
.alt-dialog::backdrop { background: rgba(2, 11, 55, 0.55); }
.alt-dialog__close { position: absolute; top: var(--space-3); right: var(--space-3); color: var(--color-heading); }
.alt-dialog__title { margin: 0 var(--space-6) var(--space-2) 0; font-size: 1.5rem; }
.alt-dialog__lead { margin: 0 0 var(--space-5); }
.alt-points { display: grid; gap: var(--space-5); margin: 0 0 var(--space-5); padding: 0 0 var(--space-5); border-bottom: 1px solid var(--color-border); list-style: none; }
.alt-points li, .alt-dialog__more { display: flex; gap: var(--space-4); align-items: flex-start; }
.alt-points p, .alt-dialog__more p { margin: 0; }
.alt-points p + p, .alt-dialog__more p + p { margin-top: var(--space-1); }
.alt-points__title { font-weight: 600; color: var(--color-heading); }
.alt-dialog__more { padding: var(--space-4); border-radius: var(--radius); background: var(--color-surface); }
.palette-item__pills { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .switch { forced-color-adjust: none; border-color: CanvasText; background: Canvas; }
  .switch::after { background: CanvasText; }
  .switch:checked { border-color: Highlight; background: Highlight; }
  .switch:checked::after { background: HighlightText; }
  .button,
  .badge,
  .impact,
  .state,
  .tool-card,
  .faq-list__item { border: 1px solid CanvasText; }
  .faq-list__icon { forced-color-adjust: none; }
  .spinner { border-color: CanvasText; border-top-color: Highlight; }
  .brand__logo,
  .site-footer__logo img { forced-color-adjust: none; }
}

/* Landing page (AccessMate Tools home) */

.home-hero { padding-top: 3.5rem; }
.home-hero h1 { max-width: 56rem; margin-left: auto; margin-right: auto; }
.home-hero .lead { max-width: 45rem; }
.home-check { display: flex; flex-wrap: wrap; gap: var(--space-3); max-width: 40rem; margin: var(--space-6) auto var(--space-2); text-align: left; }
.home-check .field__input { flex: 1 1 18rem; min-height: 3.25rem; max-width: none; }
.home-check .button { min-height: 3.25rem; }
.home-check__hint { margin: 0 0 var(--space-5); font-size: 0.875rem; }
.home-head { max-width: 45rem; margin-bottom: 2.5rem; }
.home-head h2 { margin-bottom: var(--space-3); }
.home-head > h2:last-child { margin-bottom: 0; }
.home-head p { margin: 0; }
.home-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr)); gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.plugin-tile { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); height: 100%; padding: 1.75rem; border-radius: var(--radius); background: var(--color-brand-900); color: var(--color-on-dark-muted); --color-focus: var(--color-white); }
.plugin-tile p { margin: 0; }
.plugin-tile__eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-white); }
.plugin-tile__title { margin: 0; font-size: 1.25rem; color: var(--color-white); }
.plugin-tile .button { margin-top: auto; }
.which-table { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); }
.which-table table { width: 100%; border-collapse: collapse; background: var(--color-white); }
.which-table th, .which-table td { padding: var(--space-4) 1.25rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.which-table thead th { background: var(--color-offwhite); color: var(--color-heading); font-size: 0.875rem; font-weight: 600; }
.which-table tbody th { font-weight: 500; color: var(--color-heading); }
.which-table tr:last-child > * { border-bottom: 0; }
.which-table__label { display: none; }
@media (max-width: 47.9375rem) {
  .which-table thead { display: none; }
  .which-table tr { display: block; border-bottom: 1px solid var(--color-border); }
  .which-table tr:last-child { border-bottom: 0; }
  .which-table th, .which-table td { display: block; padding: var(--space-1) var(--space-4); border: 0; }
  .which-table tbody th { padding-top: var(--space-4); }
  .which-table td:last-child { padding-bottom: var(--space-4); }
  .which-table__label { display: inline; font-weight: 600; color: var(--color-heading); }
}
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: var(--space-6); }
.principles h3 { margin: 0 0 var(--space-2); font-size: 1.25rem; }
.principles p { margin: 0; }
