/* StudyTravelPlus site shell (website rebuild step 3, Option C direction).
   Header, mobile menu, footer, breadcrumbs, system pages.
   Uses tokens from tokens.css. Selectors are scoped (stp-*) so legacy
   style.css rules and tool pages (tools-base.css) are not changed. */

body.stp-site {
  background-color: var(--stp-paper);
  color: var(--stp-ink);
}

.skip-link {
  background: var(--stp-paper);
  color: var(--stp-deep);
  border-color: var(--stp-deep);
}

/* Buttons */
.stp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--stp-target);
  padding: 0 1.25rem;
  border-radius: var(--stp-radius-sm);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.stp-btn:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.stp-btn--on-dark { background: var(--stp-btn-dark-bg); color: var(--stp-btn-dark-text) !important; }
.stp-btn--on-light { background: var(--stp-btn-light-bg); color: var(--stp-btn-light-text) !important; }

/* Header */
header.stp-header {
  position: relative;
  top: auto;
  z-index: 100;
  background: var(--stp-deep);
  color: var(--stp-on-dark);
  border-bottom: 0;
  backdrop-filter: none;
}
@media (min-width: 1024px) and (min-height: 560px) {
  :root { --stp-header-offset: 4.5rem; }
  header.stp-header { position: sticky; top: 0; }
}
.stp-header__inner {
  box-sizing: border-box;
  max-width: var(--stp-container);
  min-height: 4.5rem;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
}
/* The SVG carries clear space (cap height on every side), so the box is
   taller than the letters: 2.75rem gives letters close to nav text size. */
.stp-wordmark img { height: 2.75rem; width: auto; }
.stp-footer .stp-wordmark img { height: 3.25rem; }

header.stp-header .stp-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
header.stp-header .stp-nav a,
header.stp-header .stp-nav button {
  display: inline-flex;
  align-items: center;
  min-height: var(--stp-target);
  padding: 0 0.25rem;
  color: var(--stp-on-dark);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
header.stp-header .stp-nav a:hover { color: var(--stp-white); border-bottom-color: var(--stp-on-dark-muted); }
header.stp-header .stp-nav a.is-active,
header.stp-header .stp-nav a[aria-current="page"] { border-bottom-color: var(--stp-coral); }
header.stp-header .stp-nav--desktop,
header.stp-header .stp-nav--admin { margin-left: auto; }
.stp-inline-form { display: inline; margin: 0; padding: 0; }

header.stp-header :focus-visible,
footer.stp-footer :focus-visible {
  outline: 3px solid var(--stp-focus-on-dark);
  outline-offset: 3px;
}

/* Mobile menu: native details, works without JavaScript */
.stp-menu { display: none; margin-left: auto; }
.stp-menu__toggle {
  display: inline-flex;
  align-items: center;
  min-height: var(--stp-target);
  padding: 0 1.125rem;
  border: 1px solid var(--stp-on-dark-muted);
  border-radius: var(--stp-radius-sm);
  color: var(--stp-on-dark);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.stp-menu__toggle::-webkit-details-marker { display: none; }
.stp-menu[open] .stp-menu__toggle { background: var(--stp-juniper); }
header.stp-header .stp-nav--mobile {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 100;
  background: var(--stp-deep);
  border-top: 1px solid rgba(220, 233, 223, 0.2);
  padding: 0.5rem 1.5rem 1.5rem;
  box-shadow: var(--stp-shadow-lift);
}
header.stp-header .stp-nav--mobile ul { flex-direction: column; align-items: stretch; gap: 0; }
header.stp-header .stp-nav--mobile li + li { border-top: 1px solid rgba(220, 233, 223, 0.2); }
header.stp-header .stp-nav--mobile a { display: flex; min-height: 3rem; }
header.stp-header .stp-nav--mobile .stp-btn { margin-top: 1rem; justify-content: center; border-bottom: 0; }

@media (max-width: 1023.98px) {
  header.stp-header .stp-nav--desktop,
  .stp-header__cta { display: none; }
  .stp-menu { display: block; }
}

@media (max-width: 479.98px) {
  .stp-header__inner { padding: 0.75rem 1rem; gap: 0.75rem 1rem; }
}

/* Main */
.stp-main { min-height: 60vh; padding-top: 1.25rem; padding-bottom: 2.5rem; }
.stp-main--bleed { padding-top: 0; padding-bottom: 0; }

/* Breadcrumbs */
.stp-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.5rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: var(--stp-text-small);
}
.stp-breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--stp-muted); }
.stp-breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: var(--stp-target);
  color: var(--stp-rust);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.stp-breadcrumbs [aria-current="page"] { color: var(--stp-muted); }

/* Footer */
footer.stp-footer {
  margin-top: 0;
  padding: 4rem 0 2rem;
  background: var(--stp-deep);
  color: var(--stp-on-dark);
}
.stp-footer__inner,
.stp-footer__bottom {
  box-sizing: border-box;
  max-width: var(--stp-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.stp-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 2.5rem;
}
.stp-footer__brand p { margin: 0.75rem 0 0; color: var(--stp-on-dark-muted); font-size: var(--stp-text-small); line-height: 1.55; max-width: 20rem; }
.stp-footer__brand .stp-footer__tagline { color: var(--stp-on-dark); font-size: 1rem; }
.stp-footer__heading {
  margin: 0 0 0.5rem;
  font-size: var(--stp-text-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--stp-on-dark-muted);
}
footer.stp-footer ul { list-style: none; margin: 0; padding: 0; }
/* Overrides legacy `nav ul` (style.css), which lays lists out in a row */
footer.stp-footer nav ul { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
footer.stp-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--stp-target);
  color: var(--stp-on-dark);
  font-size: var(--stp-text-small);
  text-decoration: none;
}
footer.stp-footer nav a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.stp-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(220, 233, 223, 0.2);
  font-size: var(--stp-text-small);
  color: var(--stp-on-dark-muted);
}
.stp-footer__bottom p { margin: 0; }

/* System pages (404, 500) */
.stp-system { max-width: 40rem; padding: 3rem 0 4rem; }
.stp-system__code { margin: 0 0 0.75rem; color: var(--stp-muted); font-size: var(--stp-text-small); letter-spacing: 0.08em; text-transform: uppercase; }
.stp-system h1 { margin: 0; font-size: var(--stp-h2); line-height: 1.15; color: var(--stp-ink); }
.stp-system p { margin: 1rem 0 0; font-size: var(--stp-text-base); line-height: var(--stp-leading); color: var(--stp-muted); }
.stp-system__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
.stp-system__links a:not(.stp-btn) {
  display: inline-flex;
  align-items: center;
  min-height: var(--stp-target);
  color: var(--stp-rust);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------- Homepage (step 4, Option C) ---------- */
.stp-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;
}
.stp-btn--lg { min-height: 3.25rem; padding: 0 1.625rem; }
.stp-btn--ghost-dark { background: transparent; color: var(--stp-on-dark) !important; border: 1px solid var(--stp-on-dark-muted); }
.stp-link { color: var(--stp-rust); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; display: inline-flex; align-items: center; min-height: var(--stp-target); }

.stp-hero { position: relative; overflow: hidden; background: var(--stp-deep); color: var(--stp-on-dark); }
.stp-hero__floor {
  position: absolute; left: -10%; right: -10%; bottom: -2.5rem; height: 22rem;
  background-image: linear-gradient(rgba(220, 233, 223, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 233, 223, 0.12) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem; transform: perspective(600px) rotateX(62deg); transform-origin: bottom;
}
.stp-hero__inner {
  position: relative; box-sizing: border-box; max-width: var(--stp-container); margin: 0 auto;
  padding: 3.5rem 1.5rem 7rem; display: flex; flex-wrap: wrap; gap: 3.5rem; align-items: center;
}
.stp-hero__copy { flex: 999 1 28rem; min-width: 0; }
.stp-eyebrow { margin: 0 0 1.25rem; font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stp-on-dark-muted); }
.stp-hero h1 { margin: 0; font-size: var(--stp-h1); font-weight: 600; line-height: 1.04; letter-spacing: -0.03em; color: var(--stp-on-dark); }
.stp-hero__lead { margin: 1.5rem 0 0; max-width: 33rem; font-size: 1.125rem; line-height: var(--stp-leading); color: var(--stp-on-dark-muted); }
.stp-hero__actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.875rem; }

.stp-journey { margin-top: 2rem; }
.stp-journey__label { margin: 0 0 0.75rem; font-size: 0.875rem; color: var(--stp-on-dark-muted); }
.stp-journey__options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stp-chip {
  min-height: var(--stp-target); padding: 0 1.125rem; border-radius: var(--stp-radius-pill);
  border: 1px solid var(--stp-on-dark-muted); background: transparent; color: var(--stp-on-dark);
  font: inherit; font-size: 0.9375rem; cursor: pointer;
}
.stp-chip[aria-pressed="true"] { background: var(--stp-coral); border-color: var(--stp-coral); color: var(--stp-deep); font-weight: 700; }
.stp-chip:focus-visible { outline: 3px solid var(--stp-focus-on-dark); outline-offset: 3px; }
.stp-journey__text { margin: 1rem 0 0; min-height: 3.25rem; max-width: 33rem; line-height: var(--stp-leading); color: var(--stp-on-dark); }

.stp-hero__visual { flex: 1 1 22rem; min-width: 0; max-width: 28rem; height: 26rem; perspective: 1100px; }
.stp-float { width: 100%; height: 100%; }
.stp-stack {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transform: rotateX(var(--stp-rx, 8deg)) rotateY(var(--stp-ry, -14deg));
}
.stp-stack__card {
  position: absolute; box-sizing: border-box; width: min(18.75rem, 85%); padding: 1.375rem 1.5rem;
  border-radius: var(--stp-radius); background: var(--stp-juniper); color: var(--stp-on-dark-muted);
  border: 1px solid rgba(220, 233, 223, 0.2); box-shadow: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.2);
  transform: translateZ(0);
}
.stp-stack__card--1 { left: 0; top: 1.25rem; }
.stp-stack__card--2 { left: 2.875rem; top: 8.625rem; }
.stp-stack__card--3 { left: 5.75rem; top: 16rem; }
.stp-stack__card.is-active { background: var(--stp-paper); color: var(--stp-deep); border-color: var(--stp-paper); box-shadow: var(--stp-shadow-lift); transform: translateZ(90px); }
.stp-stack__bar { display: block; width: 2.25rem; height: 0.375rem; border-radius: 999px; background: rgba(220, 233, 223, 0.35); }
.stp-stack__card.is-active .stp-stack__bar { background: var(--stp-rust); }
.stp-stack__name { display: block; margin-top: 0.875rem; font-family: var(--stp-font-display); font-weight: 600; font-size: 1.125rem; }
.stp-stack__tag { display: block; margin-top: 0.625rem; font-size: 0.8125rem; }

.stp-trust { position: relative; max-width: var(--stp-container); margin: -2.75rem auto 0; padding: 0 1rem; box-sizing: border-box; }
.stp-trust ul {
  margin: 0; padding: 1.375rem 1.75rem; list-style: none; background: var(--stp-paper); border-radius: 1.125rem;
  box-shadow: var(--stp-shadow); display: grid; grid-template-columns: repeat(auto-fit, minmax(13.75rem, 1fr));
  gap: 0.875rem 1.75rem; font-size: 0.9375rem; font-weight: 600; color: var(--stp-ink);
}

.stp-section { box-sizing: border-box; max-width: var(--stp-container); margin: 0 auto; padding: 5rem 1.5rem 1rem; }
.stp-section h2 { margin: 0; font-size: var(--stp-h2); font-weight: 600; letter-spacing: -0.02em; color: var(--stp-ink); }
.stp-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 0.5rem 1rem; margin-bottom: 1.75rem; }
.stp-section__intro { margin: -0.75rem 0 1.75rem; max-width: 40rem; color: var(--stp-muted); line-height: var(--stp-leading); }

.stp-tool-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(18.75rem, 100%), 1fr)); gap: 1.25rem; }
.stp-tool-card {
  background: var(--stp-white); border: 1px solid var(--stp-hairline); border-radius: 1.375rem; padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.875rem; box-shadow: 0 1.125rem 2.25rem rgba(15, 41, 38, 0.09);
}
.stp-tool-card__num { margin: 0; font-family: var(--stp-font-display); font-size: 0.875rem; font-weight: 600; color: var(--stp-rust); }
.stp-tool-card h3 { margin: 0; font-size: 1.375rem; line-height: 1.3; color: var(--stp-ink); }
.stp-tool-card__summary { margin: 0; color: var(--stp-muted); line-height: var(--stp-leading); flex-grow: 1; }
.stp-tool-card .stp-btn { align-self: flex-start; }
.stp-limit { border-top: 1px solid var(--stp-hairline); padding-top: 0.5rem; }
.stp-limit > summary {
  cursor: pointer; min-height: var(--stp-target); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 600; color: var(--stp-ink); list-style: none;
}
/* WS-04: visible open/close marker; the summary reads as a control, not an empty heading */
.stp-limit > summary::-webkit-details-marker { display: none; }
.stp-limit > summary::after {
  content: "+"; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; border-radius: 999px; border: 1px solid var(--stp-control-border);
  font-size: 1.125rem; line-height: 1; color: var(--stp-rust);
}
.stp-limit[open] > summary::after { content: "\2212"; }
.stp-limit > summary:focus-visible { outline: 3px solid var(--stp-focus); outline-offset: 2px; border-radius: 0.375rem; }
.stp-limit p { margin: 0.25rem 0 0.5rem; padding: 1rem 1.125rem; border-radius: var(--stp-radius-sm); background: var(--stp-juniper); color: var(--stp-paper); line-height: var(--stp-leading); }

.stp-route { margin-top: 1.75rem; background: var(--stp-deep); color: var(--stp-on-dark); border-radius: 1.625rem; padding: 2rem; }
.stp-route__line { display: block; width: 100%; height: 6.875rem; }
.stp-route__steps { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(12.5rem, 100%), 1fr)); gap: 0.75rem; }
.stp-route__steps li { display: flex; flex-direction: column; gap: 0.375rem; padding: 1rem 1.125rem; border-radius: 0.875rem; border: 1px solid rgba(220, 233, 223, 0.35); }
.stp-route__steps strong { font-size: 1rem; color: var(--stp-on-dark); }
.stp-route__steps span { font-size: 0.9375rem; line-height: 1.5; color: var(--stp-on-dark-muted); }
.stp-route__steps .stp-route__n { font-family: var(--stp-font-display); font-size: 0.8125rem; font-weight: 600; color: var(--stp-coral); }

.stp-sources p { margin: 1rem 0 0.5rem; max-width: 44rem; font-size: 1.0625rem; line-height: var(--stp-leading); color: var(--stp-ink); }

.stp-story-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17.5rem, 100%), 1fr)); gap: 1.25rem; }
.stp-story-card { border-radius: 1.375rem; padding: 1.75rem; min-height: 12.5rem; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 1rem 2rem rgba(15, 41, 38, 0.09); }
.stp-story-card--light { background: var(--stp-aloe); color: var(--stp-ink); }
.stp-story-card--dark { background: var(--stp-juniper); color: var(--stp-paper); }
.stp-story-card__meta { margin: 0; font-size: 0.8125rem; font-weight: 600; }
.stp-story-card h3 { margin: 1rem 0 0; font-size: 1.375rem; line-height: 1.3; }
.stp-story-card h3 a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

.stp-coming { margin-top: 5rem; background: var(--stp-juniper); color: var(--stp-paper); }
.stp-coming__inner { box-sizing: border-box; max-width: var(--stp-container); margin: 0 auto; padding: 4rem 1.5rem; }
.stp-coming h2 { margin: 0 0 1.25rem; font-size: 2rem; font-weight: 600; color: var(--stp-paper); }
.stp-coming ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; font-size: 1.0625rem; }
.stp-coming li { display: flex; align-items: center; gap: 0.75rem; }
.stp-pulse { width: 0.5625rem; height: 0.5625rem; border-radius: 999px; background: var(--stp-coral); display: inline-block; flex: none; }

@media (prefers-reduced-motion: no-preference) {
  .stp-tool-card:hover { transform: translateY(-6px); box-shadow: 0 1.5rem 2.75rem rgba(15, 41, 38, 0.14); }
}

/* Phones: the card stack is decorative; drop it to keep the promise and actions first */
@media (max-width: 639.98px) {
  .stp-hero__visual { display: none; }
  .stp-hero__inner { padding: 2.5rem 1rem 5rem; }
  .stp-section { padding: 4rem 1rem 1rem; }
  .stp-route { padding: 1.25rem; }
}

/* ---------- Forms: story submission (website rebuild) ---------- */
.stp-form-page { max-width: 46rem; padding: 1rem 0 4rem; }
.stp-form-page h1 { margin: 0; font-size: var(--stp-h2); line-height: 1.15; color: var(--stp-ink); }
.stp-form-page__lead { margin: 1rem 0 2rem; font-size: 1.0625rem; line-height: var(--stp-leading); color: var(--stp-muted); }
.stp-form-page p { line-height: var(--stp-leading); }
.stp-form-page a:not(.stp-btn) { color: var(--stp-rust); text-decoration: underline; text-underline-offset: 0.2em; }
.stp-form fieldset { margin: 0 0 2rem; padding: 0; border: 0; min-width: 0; }
.stp-form > fieldset > legend { margin-bottom: 1rem; font-family: var(--stp-font-display); font-size: 1.375rem; font-weight: 600; color: var(--stp-ink); }
.stp-field { margin: 0 0 1.25rem; }
.stp-field > label, .stp-field__row label, fieldset.stp-field > legend { display: block; margin-bottom: 0.375rem; font-weight: 600; color: var(--stp-ink); }
.stp-field__row { display: flex; flex-wrap: wrap; gap: 1rem; }
.stp-field__row > div { flex: 1 1 10rem; }
.stp-field__hint { margin: 0 0 0.5rem; font-size: var(--stp-text-small); color: var(--stp-muted); }
.stp-field__error { margin: 0 0 0.5rem; font-weight: 700; color: var(--stp-rust); }
.stp-form input[type="text"], .stp-form input[type="email"], .stp-form select, .stp-form textarea {
  box-sizing: border-box; width: 100%; min-height: var(--stp-target); padding: 0.625rem 0.75rem;
  font: inherit; font-size: 1rem; color: var(--stp-ink); background: var(--stp-white);
  border: 1px solid var(--stp-control-border); border-radius: var(--stp-radius-sm);
}
.stp-form textarea { resize: vertical; line-height: 1.5; }
.stp-form [aria-invalid="true"] { border: 2px solid var(--stp-rust); }
.stp-form :focus-visible { outline: 3px solid var(--stp-focus); outline-offset: 2px; }
.stp-qa { padding: 1rem 1.25rem 0.25rem; margin-bottom: 1rem; border: 1px solid var(--stp-hairline); border-radius: var(--stp-radius-sm); background: var(--stp-white); }
.stp-choice { display: flex; align-items: flex-start; gap: 0.75rem; margin: 0.25rem 0; min-height: var(--stp-target); }
.stp-choice input { flex: none; width: 1.5rem; height: 1.5rem; margin: 0.1rem 0 0; accent-color: var(--stp-rust); }
.stp-choice label { line-height: 1.5; padding-top: 0.05rem; }
.stp-form__note { font-size: var(--stp-text-small); color: var(--stp-muted); }
.stp-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.stp-error-summary { margin: 0 0 2rem; padding: 1.25rem 1.5rem; border: 3px solid var(--stp-rust); border-radius: var(--stp-radius-sm); background: var(--stp-white); }
.stp-error-summary:focus { outline: 3px solid var(--stp-deep); outline-offset: 3px; }
.stp-error-summary h2 { margin: 0 0 0.75rem; font-size: 1.25rem; color: var(--stp-ink); }
.stp-error-summary ul { margin: 0; padding-left: 1.25rem; }
.stp-error-summary a { color: var(--stp-rust); font-weight: 600; }

/* Admin screens for submissions */
.stp-admin { padding: 1rem 0 3rem; max-width: 60rem; }
.stp-admin h1 { font-size: 2rem; margin: 0 0 1rem; }
.stp-admin h2 { font-size: 1.375rem; margin: 2rem 0 0.75rem; }
.stp-admin a:not(.stp-btn) { color: var(--stp-rust); text-decoration: underline; }
.stp-admin__ok { padding: 0.75rem 1rem; background: var(--stp-aloe); border-radius: var(--stp-radius-sm); }
.stp-admin__err { padding: 0.75rem 1rem; border: 2px solid var(--stp-rust); border-radius: var(--stp-radius-sm); }
.stp-admin__table-wrap { overflow-x: auto; }
.stp-admin__dl { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 0.5rem 1rem; }
.stp-admin__dl dt { font-weight: 600; }
.stp-admin__dl dd { margin: 0; }
.stp-pre { white-space: pre-wrap; }
.stp-admin__form { display: flex; flex-direction: column; gap: 0.375rem; max-width: 40rem; }
.stp-admin__form label { font-weight: 600; margin-top: 0.625rem; }
.stp-admin__form input, .stp-admin__form select, .stp-admin__form textarea { box-sizing: border-box; width: 100%; min-height: var(--stp-target); padding: 0.5rem 0.625rem; font: inherit; border: 1px solid var(--stp-control-border); border-radius: var(--stp-radius-sm); }
.stp-admin__form .stp-btn { align-self: flex-start; margin-top: 1.25rem; }

/* ---------- Content pages: guides, about, contact, trust, policies (step 4b) ---------- */
.stp-page, .info-page-container { box-sizing: border-box; max-width: 46rem; padding: 1rem 0 4rem; color: var(--stp-ink); }
.stp-page h1, .info-page-container h1 { margin: 0; font-size: var(--stp-h2); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; color: var(--stp-ink); }
.stp-page h2, .info-page-container h2 { margin: 2.5rem 0 0.75rem; font-size: 1.375rem; font-weight: 600; color: var(--stp-ink); }
.info-page-container h3 { margin: 1.5rem 0 0.5rem; font-size: 1.125rem; color: var(--stp-ink); }
.stp-page p, .stp-page li, .info-page-container p, .info-page-container li { font-size: 1.0625rem; line-height: var(--stp-leading); color: var(--stp-ink); }
.stp-page ul, .info-page-container ul, .info-page-container ol { padding-left: 1.25rem; }
.stp-page li + li, .info-page-container li + li { margin-top: 0.5rem; }
.stp-page a:not(.stp-btn), .info-page-container a:not(.stp-btn):not(.btn) { color: var(--stp-rust); text-decoration: underline; text-underline-offset: 0.2em; }
.stp-page__lead { margin: 1rem 0 1.5rem; font-size: 1.1875rem !important; color: var(--stp-muted) !important; }
.stp-boundary { margin: 1.5rem 0; padding: 1rem 1.25rem; border-radius: var(--stp-radius-sm); background: var(--stp-aloe); font-size: 1rem !important; }

.stp-accordion { display: flex; flex-direction: column; gap: 0.75rem; margin: 2rem 0; }
.stp-disclosure { background: var(--stp-white); border: 1px solid var(--stp-hairline); border-radius: var(--stp-radius-sm); }
.stp-disclosure > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem;
  padding: 0.5rem 1.25rem; cursor: pointer; list-style: none; font-family: var(--stp-font-display); font-size: 1.125rem; font-weight: 600; color: var(--stp-ink);
}
.stp-disclosure > summary::-webkit-details-marker { display: none; }
.stp-disclosure > summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--stp-rust); }
.stp-disclosure[open] > summary::after { content: "\2212"; }
.stp-disclosure > summary:focus-visible { outline: 3px solid var(--stp-focus); outline-offset: 2px; border-radius: var(--stp-radius-sm); }
.stp-disclosure > ul { margin: 0; padding: 0 1.25rem 1.25rem 2.5rem; }
.stp-page__aside { margin-top: 3rem; padding: 1.75rem; border-radius: var(--stp-radius); background: var(--stp-juniper); color: var(--stp-paper); }
.stp-page__aside h2 { margin-top: 0; color: var(--stp-paper); }
.stp-page__aside p { color: var(--stp-on-dark-muted); }
.stp-page__aside .stp-btn { background: var(--stp-btn-dark-bg); color: var(--stp-btn-dark-text) !important; }

.stp-founder { padding: 1.5rem; border-radius: var(--stp-radius-sm); background: var(--stp-white); border: 1px solid var(--stp-hairline); }
.stp-founder__name { margin: 0; font-family: var(--stp-font-display); font-size: 1.25rem !important; font-weight: 600; }
.stp-founder__role { margin: 0.25rem 0 0.75rem; color: var(--stp-muted) !important; font-size: 0.9375rem !important; }

.stp-policy-list { list-style: none; padding: 0 !important; margin: 2rem 0; display: flex; flex-direction: column; gap: 1rem; }
.stp-policy-list li { margin: 0 !important; padding: 1.25rem 1.5rem; border-radius: var(--stp-radius-sm); background: var(--stp-white); border: 1px solid var(--stp-hairline); }
.stp-policy-list h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.stp-policy-list p { margin: 0; }
.stp-policy-list .stp-policy-list__date { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--stp-muted); }
.stp-topics li strong { color: var(--stp-ink); }

/* ---------- Stories listing and story page (WS-02, step 4b) ---------- */
.stp-page--wide { max-width: 60rem; }
.stp-share-cta { margin: 0 0 1.5rem; }
.stp-tabs ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0 !important; margin: 1.5rem 0 1rem; }
.stp-tabs li { margin: 0 !important; }
.stp-tabs a { display: inline-flex; align-items: center; min-height: var(--stp-target); padding: 0 1.125rem; border-radius: var(--stp-radius-pill); border: 1px solid var(--stp-control-border); color: var(--stp-ink) !important; text-decoration: none !important; font-weight: 600; font-size: 0.9375rem; }
.stp-tabs a[aria-current="page"] { background: var(--stp-deep); border-color: var(--stp-deep); color: var(--stp-paper) !important; }
.stp-count { font-size: 0.9375rem !important; color: var(--stp-muted) !important; }
.stp-story-list { list-style: none; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17.5rem, 100%), 1fr)); gap: 1rem; }
.stp-story-row { margin: 0 !important; padding: 1.375rem 1.5rem; border-radius: var(--stp-radius); background: var(--stp-white); border: 1px solid var(--stp-hairline); display: flex; flex-direction: column; gap: 0.5rem; }
.stp-story-row__meta { margin: 0; font-size: 0.875rem !important; color: var(--stp-muted) !important; }
.stp-story-row h2 { margin: 0; font-size: 1.1875rem; line-height: 1.35; }
.stp-story-row h2 a { color: var(--stp-ink) !important; }
.stp-empty { padding: 2rem; border: 1px dashed var(--stp-control-border); border-radius: var(--stp-radius-sm); }

.stp-story__eyebrow { margin: 0 0 0.75rem; font-size: 0.875rem !important; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stp-muted) !important; }
.stp-story__demo { display: inline-block; margin: 0.75rem 0 0; padding: 0.25rem 0.75rem; border-radius: var(--stp-radius-pill); background: var(--stp-aloe); font-size: 0.875rem !important; }
.stp-story__date { margin: 0.75rem 0 0; font-size: 0.9375rem !important; color: var(--stp-muted) !important; }
.stp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr)); gap: 0.75rem; margin: 2rem 0 0; }
.stp-facts > div { padding: 0.875rem 1rem; border-radius: var(--stp-radius-sm); background: var(--stp-white); border: 1px solid var(--stp-hairline); }
.stp-facts dt { font-size: 0.8125rem; font-weight: 600; color: var(--stp-muted); }
.stp-facts dd { margin: 0.25rem 0 0; font-size: 1rem; color: var(--stp-ink); }
.stp-facts--stack { grid-template-columns: 1fr; }
.stp-qa-list { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; counter-reset: none; }
.stp-qa-list li { margin: 0 !important; padding: 1rem 1.25rem; border-radius: var(--stp-radius-sm); background: var(--stp-white); border: 1px solid var(--stp-hairline); }
.stp-qa-list p { margin: 0; }
.stp-qa-list__q { font-weight: 600; }
.stp-qa-list__a { margin-top: 0.5rem !important; }
.stp-qa-list span { font-weight: 700; color: var(--stp-rust); }
.stp-story__script { margin-top: 2rem; }
.stp-story__script > p { margin: 0; padding: 0 1.25rem 1.25rem; }
.stp-story__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--stp-hairline); }
.stp-story__links a:not(.stp-btn) { display: inline-flex; align-items: center; min-height: var(--stp-target); }

/* Policy pages keep their own markup (the privacy page is frozen for legal
   review); these remap the legacy colour variables their inline styles use
   to brand colours that pass contrast on Paper. */
.info-page-container {
  --accent-teal-dark: var(--stp-rust);
  --accent-teal: var(--stp-rust);
  --text-muted: var(--stp-muted);
  --text-charcoal: var(--stp-ink);
  --primary-navy: var(--stp-ink);
  --primary-navy-light: var(--stp-juniper);
  --color-refused: var(--stp-rust);
}

/* ---------- Contact form and admin messages (WS-06, WS-08) ---------- */
.stp-form-page .stp-boundary { margin: 0 0 2rem; }
.stp-choice__hint { display: block; margin-top: 0.125rem; font-size: var(--stp-text-small); color: var(--stp-muted); }
.stp-message-list { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 1rem; }
.stp-message { padding: 1.25rem 1.5rem; border: 1px solid var(--stp-hairline); border-left: 4px solid var(--stp-rust); border-radius: var(--stp-radius-sm); background: var(--stp-white); }
.stp-message.is-handled { border-left-color: var(--stp-hairline); }
.stp-message h2 { margin: 0 0 0.75rem; font-size: 1.125rem; }
.stp-message__text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 1rem 0; line-height: 1.6; }
.stp-error-summary li a, .stp-admin a:not(.stp-btn) { display: inline-block; padding: 0.125rem 0; line-height: 1.5; }
.stp-message .stp-admin__dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .stp-message .stp-admin__dl { grid-template-columns: 1fr; gap: 0.125rem; } .stp-message .stp-admin__dl dd { margin-bottom: 0.5rem; } }

/* ---------- Story pages, policy dates (step 5, 0012) ---------- */
.stp-pager ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0 !important; margin: 2rem 0 0; }
.stp-pager a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--stp-target); min-height: var(--stp-target); padding: 0 0.875rem; border-radius: var(--stp-radius-pill); border: 1px solid var(--stp-control-border); color: var(--stp-ink) !important; text-decoration: none !important; font-weight: 600; }
.stp-pager a[aria-current="page"] { background: var(--stp-deep); border-color: var(--stp-deep); color: var(--stp-paper) !important; }
.stp-page__updated { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--stp-hairline); font-size: 0.9375rem; color: var(--stp-muted); }
