/* One quiet visual system for the informational pages. */
body.secondary-page.editorial-page {
  --ed-canvas: #f3f5f2;
  --ed-surface: #ffffff;
  --ed-subtle: #f7faf8;
  --ed-ink: #152326;
  --ed-muted: #4e5f63;
  --ed-line: #d5dfd9;
  --ed-accent: #0b6b62;
  --ed-accent-hover: #07584f;
  --ed-accent-soft: #e3f2ed;
  --ed-accent-ink: #07584f;
  --ed-on-accent: #ffffff;
  --ed-shadow: 0 12px 36px rgba(21, 42, 39, .055);
  --page-paper: var(--ed-canvas);
  --page-sheet: var(--ed-surface);
  --page-ink: var(--ed-ink);
  --page-muted: var(--ed-muted);
  --page-line: var(--ed-line);
  --page-accent: var(--ed-accent);
  --page-accent-soft: var(--ed-accent-soft);
  --page-accent-contrast: var(--ed-accent-ink);
  --faq-canvas: var(--ed-canvas);
  --faq-surface: var(--ed-surface);
  --faq-surface-soft: var(--ed-subtle);
  --faq-ink: var(--ed-ink);
  --faq-muted: var(--ed-muted);
  --faq-line: var(--ed-line);
  --faq-accent: var(--ed-accent);
  --faq-accent-soft: var(--ed-accent-soft);
  --shell-primary: #8bdbca;
  background: var(--ed-canvas);
  color: var(--ed-ink);
}

:root[data-theme="dark"] body.secondary-page.editorial-page {
  --ed-canvas: #0d171a;
  --ed-surface: #142327;
  --ed-subtle: #192c30;
  --ed-ink: #eef6f2;
  --ed-muted: #b4c8c4;
  --ed-line: #30454a;
  --ed-accent: #86d7c4;
  --ed-accent-hover: #a4ead9;
  --ed-accent-soft: #1e3b38;
  --ed-accent-ink: #a4ead9;
  --ed-on-accent: #09211d;
  --ed-shadow: 0 12px 34px rgba(0, 0, 0, .12);
  --shell-primary: #86d7c4;
}

body.editorial-page ::selection {
  background: var(--ed-accent-soft);
  color: var(--ed-ink);
}

body.editorial-page .landing-shell-header--static,
body.editorial-page .landing-shell-header--static.is-scrolled {
  background: #12272a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-theme="dark"] body.editorial-page .landing-shell-header--static,
:root[data-theme="dark"] body.editorial-page .landing-shell-header--static.is-scrolled {
  background: #091315;
}

body.editorial-page .landing-shell-theme--header {
  display: grid;
  place-items: center;
  gap: 0;
}

body.editorial-page .landing-shell-theme--header .landing-shell-theme__icon {
  display: grid;
  place-items: center;
  margin: 0;
}

body.secondary-page.editorial-page .sp-main {
  min-height: 58vh;
  padding: calc(var(--landing-shell-offset, 78px) + clamp(30px, 4vw, 56px)) 0 clamp(44px, 5vw, 70px);
  background: var(--ed-canvas);
}
body.editorial-page .sp-main::before { display: none; }
body.editorial-page .sp-wrap,
body.editorial-page .footer-container {
  width: min(calc(100% - clamp(32px, 6vw, 96px)), 1240px);
}

body.secondary-page.editorial-page .sp-hero {
  display: block;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--ed-line);
  border-radius: 28px;
  background: var(--ed-surface);
  box-shadow: var(--ed-shadow);
}
:root[data-theme="dark"] body.secondary-page.editorial-page .sp-hero {
  border-color: var(--ed-line);
  background: var(--ed-surface);
  box-shadow: var(--ed-shadow);
}
body.editorial-page .sp-hero::before,
body.editorial-page .sp-hero::after { display: none; }
body.editorial-page .sp-hero__content {
  width: min(100%, 900px);
  max-width: none;
  padding: clamp(42px, 6vw, 78px);
}
body.editorial-page .sp-kicker {
  margin-bottom: 24px;
  border: 1px solid transparent;
  background: var(--ed-accent-soft);
  color: var(--ed-accent-ink);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
}
body.editorial-page .sp-kicker::before {
  background: var(--ed-accent);
  box-shadow: none;
}
body.editorial-page .sp-hero h1 {
  max-width: 18ch;
  color: var(--ed-ink);
  font-size: clamp(2.75rem, 5.2vw, 4.9rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -.059em;
  text-wrap: balance;
}
body.editorial-page .sp-hero p {
  max-width: 62ch;
  margin-top: 23px;
  color: var(--ed-muted);
  font-size: clamp(1rem, 1.3vw, 1.13rem);
  line-height: 1.72;
}
body.editorial-page .sp-meta { gap: 9px; margin-top: 28px; }
body.editorial-page .sp-meta span,
:root[data-theme="dark"] body.editorial-page .sp-meta span {
  min-height: 34px;
  border-color: var(--ed-line);
  background: var(--ed-subtle);
  color: var(--ed-muted);
}

body.editorial-page .sp-hero__actions,
body.editorial-page .sp-actions,
body.editorial-page .editorial-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}
body.secondary-page.editorial-page .sp-button,
body.editorial-page .editorial-tool,
body.editorial-page .editorial-anchor {
  display: inline-flex;
  min-width: 160px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--ed-line);
  border-radius: 12px;
  background: var(--ed-surface);
  color: var(--ed-ink);
  box-shadow: none;
  font: 650 .88rem/1.25 'Space Grotesk', system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}
body.editorial-page .sp-button:hover,
body.editorial-page .editorial-tool:hover,
body.editorial-page .editorial-anchor:hover {
  border-color: var(--ed-accent);
  background: var(--ed-accent-soft);
  color: var(--ed-accent-ink);
  transform: translateY(-2px);
  box-shadow: var(--ed-shadow);
}
body.editorial-page .sp-button--primary,
:root[data-theme="dark"] body.editorial-page .sp-button--primary {
  border-color: var(--ed-accent);
  background: var(--ed-accent);
  color: var(--ed-on-accent);
}
body.editorial-page .sp-button--primary:hover,
:root[data-theme="dark"] body.editorial-page .sp-button--primary:hover {
  border-color: var(--ed-accent-hover);
  background: var(--ed-accent-hover);
  color: var(--ed-on-accent);
}
body.editorial-page .sp-button:focus-visible,
body.editorial-page .editorial-tool:focus-visible,
body.editorial-page .editorial-anchor:focus-visible,
body.editorial-page .editorial-section-link:focus-visible {
  outline: 3px solid var(--ed-accent);
  outline-offset: 3px;
}

body.editorial-page .sp-layout {
  grid-template-columns: minmax(240px, 276px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
  margin: clamp(40px, 5vw, 64px) 0 0;
}
body.editorial-page .sp-layout--single {
  width: 100%;
  max-width: 1100px;
  grid-template-columns: minmax(0, 1fr);
  margin-inline: auto;
}
body.editorial-page .sp-content {
  display: grid;
  min-width: 0;
  gap: clamp(24px, 3vw, 36px);
}
body.secondary-page.editorial-page .sp-toc {
  display: block;
  position: sticky;
  top: calc(var(--landing-shell-offset, 78px) + 20px);
  max-height: calc(100svh - var(--landing-shell-offset, 78px) - 38px);
  align-self: start;
  overflow-y: auto;
  padding: 25px 18px 18px;
  border: 1px solid var(--ed-line);
  border-radius: 20px;
  background: var(--ed-surface);
  color: var(--ed-ink);
  box-shadow: var(--ed-shadow);
  scrollbar-width: thin;
}
body.editorial-page .sp-toc::before { display: none; }
body.editorial-page .sp-toc__label {
  margin: 0 10px 6px;
  color: var(--ed-accent-ink);
  font-size: .72rem;
  letter-spacing: .12em;
}
body.editorial-page .faq-nav__intro,
body.editorial-page .editorial-toc-intro {
  margin: 0 10px 17px;
  color: var(--ed-muted);
  font-size: .83rem;
  line-height: 1.45;
}
body.editorial-page .sp-toc ol {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  width: 100%;
}
body.editorial-page .sp-toc li { min-width: 0; }
body.editorial-page .sp-toc a {
  display: grid;
  width: 100%;
  min-height: 49px;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 8px 10px !important;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--ed-ink) !important;
  font-size: .84rem !important;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  opacity: 1 !important;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
body.editorial-page .sp-toc a::after { display: none !important; }
body.editorial-page .sp-toc a span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 8px;
  background: var(--ed-subtle);
  color: var(--ed-muted) !important;
  font-size: .7rem;
  font-variant-numeric: tabular-nums;
}
body.editorial-page .sp-toc a:hover,
body.editorial-page .sp-toc a:focus-visible,
body.editorial-page .sp-toc a.is-current {
  border-color: var(--ed-line);
  background: var(--ed-accent-soft);
  color: var(--ed-ink) !important;
  transform: translateX(2px);
}
body.editorial-page .sp-toc a:hover span,
body.editorial-page .sp-toc a:focus-visible span,
body.editorial-page .sp-toc a.is-current span {
  background: var(--ed-accent);
  color: var(--ed-on-accent) !important;
}
:root[data-theme="dark"] body.editorial-page .sp-toc a:hover,
:root[data-theme="dark"] body.editorial-page .sp-toc a:focus-visible,
:root[data-theme="dark"] body.editorial-page .sp-toc a.is-current {
  border-color: var(--ed-line);
  background: var(--ed-accent-soft);
  color: var(--ed-ink) !important;
}
:root[data-theme="dark"] body.editorial-page .sp-toc a:hover span,
:root[data-theme="dark"] body.editorial-page .sp-toc a:focus-visible span,
:root[data-theme="dark"] body.editorial-page .sp-toc a.is-current span {
  background: var(--ed-accent);
  color: var(--ed-on-accent) !important;
}
body.editorial-page .sp-toc a:focus-visible,
body.editorial-page details.faq-item summary:focus-visible {
  outline: 3px solid var(--ed-accent);
  outline-offset: 2px;
}

body.editorial-page .sp-section,
body.editorial-page .sp-section + .sp-section,
:root[data-theme="dark"] body.editorial-page .sp-section,
:root[data-theme="dark"] body.editorial-page .sp-section + .sp-section,
body.editorial-page .sp-section--accent,
:root[data-theme="dark"] body.editorial-page .sp-section--accent,
body.editorial-page .sp-section--danger {
  margin: 0;
  padding: clamp(30px, 4.2vw, 52px);
  border: 1px solid var(--ed-line);
  border-radius: 24px;
  background: var(--ed-surface);
  box-shadow: var(--ed-shadow);
}
body.editorial-page .sp-section[hidden],
body.editorial-page .faq-empty[hidden] { display: none; }
body.secondary-page.editorial-page .sp-section:nth-child(n):not(.sp-section--accent):not(.sp-section--danger),
:root[data-theme="dark"] body.secondary-page.editorial-page .sp-section:nth-child(n):not(.sp-section--accent):not(.sp-section--danger) {
  background: var(--ed-surface);
}
body.editorial-page .sp-section::before { display: none; }
body.editorial-page .sp-section__eyebrow,
:root[data-theme="dark"] body.editorial-page .sp-section__eyebrow {
  display: inline-block;
  min-height: 0;
  margin: 0 0 18px;
  padding: 0;
  background: transparent;
  color: var(--ed-accent-ink);
  font-size: .72rem;
  letter-spacing: .13em;
}
body.editorial-page .sp-section h2,
body.editorial-page .sp-section--accent h2 {
  max-width: 27ch;
  margin: 0 0 26px;
  color: var(--ed-ink);
  font-size: clamp(2rem, 3.1vw, 3rem);
  line-height: 1.11;
  letter-spacing: -.049em;
  text-wrap: balance;
}
body.editorial-page .sp-section h3,
body.editorial-page .sp-section--accent h3,
body.editorial-page .sp-section--accent strong,
body.editorial-page .sp-section strong { color: var(--ed-ink); }
body.editorial-page .sp-section p,
body.editorial-page .sp-section li,
body.editorial-page .sp-section--accent p,
body.editorial-page .sp-section--accent li {
  max-width: 75ch;
  color: var(--ed-muted);
  font-size: 1rem;
  line-height: 1.75;
}
body.editorial-page .sp-section ul,
body.editorial-page .sp-section ol:not(.sp-steps) { padding-left: 1.35rem; }
body.editorial-page .sp-section li + li { margin-top: 10px; }
body.editorial-page .sp-section a:not(.sp-button):not(.sp-card),
body.editorial-page .faq-empty a {
  color: var(--ed-accent-ink);
  text-decoration-color: var(--ed-accent);
  text-underline-offset: 4px;
}
body.editorial-page .editorial-section-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: -12px 0 22px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--ed-accent-ink);
  font: 650 .77rem/1.35 'Space Grotesk', system-ui, sans-serif;
  cursor: pointer;
}
body.editorial-page .editorial-section-link:hover { text-decoration: underline; text-underline-offset: 3px; }

body.editorial-page .sp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 27px;
}
body.editorial-page .sp-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.editorial-page .sp-grid > .sp-card:nth-child(n),
body.editorial-page .sp-section--accent .sp-grid > .sp-card:nth-child(n),
:root[data-theme="dark"] body.editorial-page .sp-grid > .sp-card:nth-child(n) {
  display: flex;
  min-width: 0;
  min-height: 196px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--ed-line);
  border-radius: 17px;
  background: var(--ed-subtle);
  color: var(--ed-ink);
  box-shadow: none;
}
body.editorial-page .sp-grid > .sp-card:nth-child(n) h3,
body.editorial-page .sp-section--accent .sp-grid > .sp-card:nth-child(n) h3 {
  margin: 0 0 10px;
  color: var(--ed-ink);
  font-size: 1.08rem;
  line-height: 1.35;
}
body.editorial-page .sp-grid > .sp-card:nth-child(n) p,
body.editorial-page .sp-section--accent .sp-grid > .sp-card:nth-child(n) p {
  margin: 0;
  color: var(--ed-muted);
  font-size: .92rem;
  line-height: 1.63;
}
body.editorial-page .sp-grid > .sp-card:nth-child(n) .sp-card__link,
body.editorial-page .sp-section--accent .sp-grid > .sp-card:nth-child(n) .sp-card__link {
  margin-top: auto;
  padding-top: 20px;
  color: var(--ed-accent-ink);
}
body.editorial-page .sp-card__index {
  margin-bottom: 24px;
  border-radius: 9px;
  background: var(--ed-accent-soft);
  color: var(--ed-accent-ink);
}
body.editorial-page .sp-grid > a.sp-card:nth-child(n) {
  transition: transform .23s ease, border-color .23s ease, box-shadow .23s ease;
}
body.editorial-page .sp-grid > a.sp-card:nth-child(n):hover,
body.editorial-page .sp-grid > a.sp-card:nth-child(n):focus-visible {
  transform: translateY(-3px);
  border-color: var(--ed-accent);
  box-shadow: var(--ed-shadow);
}
body.editorial-page .sp-grid > a.sp-card:focus-visible { outline: 3px solid var(--ed-accent); outline-offset: 3px; }

body.editorial-page .sp-steps { gap: 12px; }
body.editorial-page .sp-steps li,
:root[data-theme="dark"] body.editorial-page .sp-steps li {
  border-color: var(--ed-line);
  border-radius: 13px;
  background: var(--ed-subtle);
  color: var(--ed-muted);
}
body.editorial-page .sp-steps li::before {
  background: var(--ed-accent-soft);
  color: var(--ed-accent-ink);
}
body.editorial-page .sp-callout,
:root[data-theme="dark"] body.editorial-page .sp-callout {
  margin: 26px 0 0;
  border-left: 3px solid var(--ed-accent);
  border-radius: 4px 13px 13px 4px;
  background: var(--ed-accent-soft);
}
body.editorial-page .sp-callout p,
:root[data-theme="dark"] body.editorial-page .sp-callout p { color: var(--ed-ink); }
body.editorial-page .sp-callout--warning {
  border-left-color: #a77228;
  background: #f7f0df;
}
:root[data-theme="dark"] body.editorial-page .sp-callout--warning { background: #352d1e; }
body.editorial-page .sp-callout--danger { border-left-color: #ad534c; background: #f8eae7; }
:root[data-theme="dark"] body.editorial-page .sp-callout--danger { background: #3d292a; }
body.editorial-page .sp-table-wrap,
:root[data-theme="dark"] body.editorial-page .sp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ed-line);
  border-radius: 14px;
  background: var(--ed-subtle);
  box-shadow: none;
}
body.editorial-page .sp-table th,
:root[data-theme="dark"] body.editorial-page .sp-table th {
  background: var(--ed-accent-soft);
  color: var(--ed-accent-ink);
}
body.editorial-page .sp-table td { color: var(--ed-muted); }

body.editorial-page .faq-search {
  display: grid;
  max-width: 660px;
  min-height: 60px;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 31px;
  padding: 6px 10px;
  border: 1px solid var(--ed-line);
  border-radius: 14px;
  background: var(--ed-subtle);
  box-shadow: none;
}
body.editorial-page .faq-search:focus-within,
body.editorial-page .editorial-search__row:focus-within {
  border-color: var(--ed-accent);
  box-shadow: 0 0 0 4px var(--ed-accent-soft);
}
body.editorial-page .faq-search input,
:root[data-theme="dark"] body.editorial-page .faq-search input {
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ed-ink);
}
body.editorial-page .faq-search input::placeholder,
body.editorial-page .editorial-search input::placeholder { color: var(--ed-muted); opacity: .85; }
body.editorial-page .faq-search__status {
  padding-right: 8px;
  color: var(--ed-muted);
  font-size: .78rem;
}
body.editorial-page .faq-stack { gap: 11px; margin-top: 0; }
body.editorial-page details.faq-item,
:root[data-theme="dark"] body.editorial-page details.faq-item,
body.editorial-page details.faq-item[open],
:root[data-theme="dark"] body.editorial-page details.faq-item[open] {
  overflow: clip;
  border: 1px solid var(--ed-line);
  border-radius: 14px;
  background: var(--ed-subtle);
  box-shadow: none;
  transition: border-color .24s ease, background-color .24s ease, transform .24s ease;
}
body.editorial-page details.faq-item:hover,
body.editorial-page details.faq-item[open] { border-color: var(--ed-accent); }
body.editorial-page details.faq-item summary,
:root[data-theme="dark"] body.editorial-page details.faq-item summary {
  min-height: 64px;
  padding: 18px 61px 18px 20px;
  color: var(--ed-ink);
  font-size: .98rem;
  font-weight: 650;
  line-height: 1.45;
}
body.editorial-page details.faq-item summary:hover { color: var(--ed-accent-ink); }
body.editorial-page details.faq-item summary::after {
  right: 18px;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--ed-line);
  border-radius: 50%;
  background: var(--ed-surface);
  color: var(--ed-accent-ink);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform .3s ease, background-color .2s ease;
}
body.editorial-page details.faq-item[open] summary::after {
  transform: rotate(45deg);
  border-color: var(--ed-accent);
  background: var(--ed-accent);
  color: var(--ed-on-accent);
}
body.editorial-page details.faq-item .faq-answer { padding: 0 58px 20px 20px; }
body.editorial-page details.faq-item .faq-answer::before {
  content: '';
  display: block;
  height: 1px;
  margin-bottom: 16px;
  background: var(--ed-line);
}
body.editorial-page details.faq-item p,
body.editorial-page details.faq-item li { color: var(--ed-muted); }
body.editorial-page .faq-empty {
  padding: 34px;
  border: 1px dashed var(--ed-line);
  border-radius: 16px;
  background: var(--ed-surface);
  color: var(--ed-muted);
  text-align: center;
}

body.editorial-page .editorial-search { max-width: 670px; margin-top: 30px; }
body.editorial-page .editorial-search label {
  display: block;
  margin-bottom: 9px;
  color: var(--ed-ink);
  font-size: .83rem;
  font-weight: 700;
}
body.editorial-page .editorial-search__row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--ed-line);
  border-radius: 14px;
  background: var(--ed-subtle);
  transition: border-color .2s ease, box-shadow .2s ease;
}
body.editorial-page .editorial-search input {
  min-width: 0;
  min-height: 44px;
  flex: 1;
  padding: 10px 13px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ed-ink);
  font: inherit;
}
body.editorial-page .editorial-search button { min-width: 165px; white-space: nowrap; }

body.editorial-page .sp-form { gap: 19px; margin-top: 26px; }
body.editorial-page .sp-form .sp-grid { margin-top: 0; }
body.editorial-page .sp-form .sp-field { gap: 8px; }
body.editorial-page .sp-form .sp-field label { color: var(--ed-ink); font-weight: 700; }
body.editorial-page .sp-form .sp-field__hint { color: var(--ed-muted); }
body.editorial-page .sp-form input:not([type="checkbox"]),
body.editorial-page .sp-form textarea,
:root[data-theme="dark"] body.editorial-page .sp-form input:not([type="checkbox"]),
:root[data-theme="dark"] body.editorial-page .sp-form textarea {
  width: 100%;
  min-height: 49px;
  border: 1px solid var(--ed-line);
  border-radius: 11px;
  background: var(--ed-subtle);
  color: var(--ed-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
body.editorial-page .sp-form input:not([type="checkbox"]):focus-visible,
body.editorial-page .sp-form textarea:focus-visible {
  outline: 0;
  border-color: var(--ed-accent);
  box-shadow: 0 0 0 4px var(--ed-accent-soft);
}
body.editorial-page .sp-form input[aria-invalid="true"] { border-color: #b4544a; }
body.editorial-page .sp-form .sp-check {
  padding: 18px;
  border: 1px solid var(--ed-line);
  border-radius: 13px;
  background: var(--ed-subtle);
  color: var(--ed-muted);
}
body.editorial-page .sp-form .sp-check:focus-within {
  border-color: var(--ed-accent);
  box-shadow: 0 0 0 4px var(--ed-accent-soft);
}
body.editorial-page .sp-form .sp-check input { accent-color: var(--ed-accent); }
body.editorial-page .editorial-field-error { color: #aa4339; font-size: .82rem; font-weight: 650; }
:root[data-theme="dark"] body.editorial-page .editorial-field-error { color: #f5aaa0; }
body.editorial-page .editorial-field-error:empty { display: none; }
body.editorial-page .sp-form .sp-button--danger {
  width: fit-content;
  min-width: 190px;
  border-color: #a3453f;
  background: #a3453f;
  color: #fff;
}
body.editorial-page .sp-form .sp-button--danger:hover { background: #85342f; color: #fff; }
body.editorial-page .sp-form .sp-button--danger:disabled { cursor: wait; opacity: .62; transform: none; }
body.editorial-page .sp-form .sp-status {
  padding: 22px 24px;
  border: 1px solid var(--ed-line);
  border-radius: 14px;
  background: var(--ed-accent-soft);
  color: var(--ed-ink);
}
body.editorial-page .sp-form .sp-status[hidden],
body.editorial-page .sp-form .sp-status a[hidden] { display: none; }
body.editorial-page .sp-form .sp-status:focus { outline: 2px solid var(--ed-accent); outline-offset: 3px; }
body.editorial-page .sp-form .sp-status.error { background: #f9e9e6; border-color: #e9c2bb; }
:root[data-theme="dark"] body.editorial-page .sp-form .sp-status.error { background: #412a2a; border-color: #7d4b46; }
body.editorial-page .sp-form .sp-status strong { display: block; color: var(--ed-ink); font-size: 1.04rem; }
body.editorial-page .sp-form .sp-status p { margin: 8px 0 0; color: var(--ed-muted); }
body.editorial-page .sp-form .sp-status a { display: inline-block; margin-top: 13px; font-weight: 700; }

/* The footer shares the canvas instead of fading into an unrelated dark strip. */
body.secondary-page.editorial-page .footer {
  position: relative;
  isolation: auto;
  overflow: hidden;
  margin: 0;
  padding: 32px 0 26px;
  border-top: 1px solid var(--ed-line) !important;
  background: var(--ed-canvas);
  box-shadow: none;
}
body.secondary-page.editorial-page .footer::before { display: none !important; }
body.editorial-page .footer-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 42px;
  margin-inline: auto;
}
body.editorial-page .footer-logo { color: var(--ed-ink); font-size: 1.3rem; }
body.editorial-page .footer-brand p {
  max-width: 44ch;
  margin: 8px 0 0;
  color: var(--ed-muted);
  font-size: .86rem;
  line-height: 1.55;
}
body.editorial-page .footer-links { justify-content: flex-end; gap: 6px 24px; }
body.editorial-page .footer-links a {
  min-height: 42px;
  color: var(--ed-muted);
  font-size: .86rem;
  transition: color .2s ease;
}
body.editorial-page .footer-links a:hover,
body.editorial-page .footer-links a.active { color: var(--ed-accent-ink); transform: none; }
body.editorial-page .footer-links a:focus-visible { outline: 2px solid var(--ed-accent); outline-offset: 3px; }
body.editorial-page .footer-bottom {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--ed-line);
}
body.editorial-page .footer-bottom p { color: var(--ed-muted); font-size: .78rem; }

.editorial-toast {
  position: fixed;
  z-index: 2147483000;
  right: clamp(16px, 3vw, 38px);
  bottom: clamp(18px, 3vw, 34px);
  display: flex;
  max-width: min(390px, calc(100vw - 32px));
  align-items: center;
  gap: 11px;
  padding: 14px 17px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 13px;
  background: #183531;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.2);
  font: 600 .9rem/1.4 'Space Grotesk', system-ui, sans-serif;
  opacity: 0;
  transform: translateY(14px) scale(.98);
  pointer-events: none;
  transition: opacity .24s ease, transform .3s cubic-bezier(.2,.8,.2,1);
}
.editorial-toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.editorial-toast.is-error { background: #863c37; }
.editorial-toast__icon { display: grid; width: 27px; height: 27px; flex: none; place-items: center; border-radius: 50%; background: rgba(255,255,255,.15); }

/* A missing route should offer a clear way out, without another content page. */
body.editorial-page.page-not-found .sp-main {
  display: grid;
  min-height: calc(100svh - var(--landing-shell-offset, 78px) - 130px);
  align-items: center;
  padding-bottom: 56px;
}
body.editorial-page.page-not-found .sp-wrap { max-width: 850px; }
body.editorial-page.page-not-found .sp-hero__content {
  width: 100%;
  max-width: none;
  padding: clamp(48px, 8vw, 94px);
  text-align: center;
}
body.editorial-page.page-not-found .sp-hero h1,
body.editorial-page.page-not-found .sp-hero p {
  margin-inline: auto;
}
body.editorial-page.page-not-found .sp-hero h1 { max-width: 18ch; font-size: clamp(2.7rem, 5.3vw, 4.6rem); }
body.editorial-page.page-not-found .sp-hero__actions { justify-content: center; }
body.editorial-page .not-found-code {
  display: block;
  margin-bottom: 18px;
  color: var(--ed-accent-ink);
  font: 700 .77rem/1.2 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: .2em;
}
body.editorial-page .not-found-links {
  margin-top: 28px;
  font-size: .9rem;
}
body.editorial-page .not-found-links a { color: var(--ed-accent-ink); font-weight: 700; text-underline-offset: 4px; }
body.editorial-page .not-found-links span { margin-inline: 10px; color: var(--ed-line); }

@media (max-width: 1120px) {
  body.editorial-page .sp-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  body.editorial-page .sp-toc { position: static; max-height: none; overflow: visible; }
  body.editorial-page .sp-toc ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.editorial-page .sp-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  body.editorial-page .sp-main { padding-top: calc(var(--landing-shell-offset, 68px) + 22px); padding-bottom: 64px; }
  body.editorial-page .sp-wrap,
  body.editorial-page .footer-container { width: min(calc(100% - 28px), 1240px); }
  body.editorial-page .sp-hero,
  body.editorial-page .sp-section { border-radius: 20px; }
  body.editorial-page .sp-hero__content { padding: 38px 26px 42px; }
  body.editorial-page .sp-hero h1 { font-size: clamp(2.6rem, 10vw, 3.7rem); }
  body.editorial-page .sp-section,
  body.editorial-page .sp-section + .sp-section,
  body.editorial-page .sp-section--accent { padding: 30px 24px; }
  body.editorial-page .sp-section h2 { font-size: clamp(1.85rem, 8vw, 2.5rem); }
  body.editorial-page .sp-toc { padding: 22px 16px; }
  body.editorial-page .sp-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.editorial-page .sp-grid,
  body.editorial-page .sp-grid--three { grid-template-columns: minmax(0, 1fr); }
  body.editorial-page .sp-grid > .sp-card:nth-child(n) { min-height: 0; }
  body.editorial-page .sp-hero__actions > *,
  body.editorial-page .sp-actions > *,
  body.editorial-page .editorial-tools > * { width: 100%; }
  body.editorial-page .editorial-search__row { flex-wrap: wrap; }
  body.editorial-page .editorial-search input { flex-basis: 100%; }
  body.editorial-page .editorial-search button { width: 100%; }
  body.editorial-page .footer-container { grid-template-columns: 1fr; gap: 15px; }
  body.editorial-page .footer-links { justify-content: flex-start; }
  body.editorial-page .sp-form .sp-button--danger { width: 100%; }
  .editorial-toast { right: 16px; bottom: 16px; left: 16px; max-width: none; }
}

@media (max-width: 430px) {
  body.editorial-page .sp-toc ol { grid-template-columns: 1fr; }
  body.editorial-page .faq-search { grid-template-columns: 1fr; }
  body.editorial-page .faq-search__status { padding: 0 10px 5px; }
}

@media (prefers-reduced-motion: reduce) {
  body.editorial-page [data-reveal],
  body.editorial-page .sp-button,
  body.editorial-page .editorial-tool,
  body.editorial-page .editorial-anchor,
  body.editorial-page .sp-grid > a.sp-card:nth-child(n),
  body.editorial-page details.faq-item,
  body.editorial-page .sp-toc a,
  .editorial-toast { transition: none; }
  body.editorial-page .sp-button:hover,
  body.editorial-page .editorial-tool:hover,
  body.editorial-page .editorial-anchor:hover,
  body.editorial-page .sp-grid > a.sp-card:nth-child(n):hover,
  body.editorial-page .sp-toc a:hover { transform: none; }
}
