:root {
  --nhs-blue: #005eb8;
  --fnd-navy: #002b5f;
  --fnd-deep-navy: #001a3b;
  --fnd-blue: #104778;
  --fnd-magenta: #c9005a;
  --fnd-rose: #ed2b7b;
  --fnd-teal: var(--fnd-magenta);
  --fnd-aqua: var(--fnd-rose);
  --ink: #061b3d;
  --text: #26364d;
  --muted: #637086;
  --border: #dfe6ef;
  --panel: #f7f9fc;
  --pale: #fff1f7;
  --pale-blue: #edf5fc;
  --warning: #ffdd00;
  --white: #ffffff;
  --shadow: 0 14px 34px rgba(0, 43, 95, 0.1), 0 4px 14px rgba(201, 0, 90, 0.05);
  --radius: 8px;
  /* Site content rail — heroes may full-bleed; .wrap keeps body content readable */
  --max: 1120px;
  --gutter: clamp(1rem, 3.5vw, 1.5rem);
  --anchor-offset: 148px;
  /* Shared spatial scale. Route CSS may compose these values, but public
     sections and rails should not invent one-off gutters or vertical rhythm. */
  --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: 4rem;
  --section-space: clamp(3rem, 7vw, 5.5rem);
}

@font-face {
  font-family: "Paint Brush Script";
  src: url("/assets/fonts/PaintBrushScript-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Self-hosted Inter (latin) — no Google Fonts round-trip */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

/* Keep hash targets clear of the sticky public header. */
:where(main[id], section[id], article[id], aside[id], div[id], h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]) {
  scroll-margin-top: var(--anchor-offset);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.58;
  letter-spacing: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--fnd-magenta);
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--fnd-navy);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--warning);
  outline-offset: 3px;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 0.35rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  color: var(--ink);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.1rem, 4vw, 3.55rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.7rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

h4 {
  font-size: 1.05rem;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-160%);
  padding: 0.65rem 0.9rem;
  color: var(--ink);
  background: var(--warning);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  z-index: 10020;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0, 43, 95, 0.04);
}

.topbar {
  background: linear-gradient(90deg, var(--fnd-deep-navy), var(--fnd-navy));
  color: var(--white);
  font-size: 0.88rem;
  line-height: 1.35;
  box-shadow: inset 0 -3px 0 rgba(201, 0, 90, 0.34);
}

.topbar .wrap {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.topbar a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--white);
  font-weight: 700;
}

/* Content rail: never edge-to-edge on wide screens.
   Use max-width + padding (not min(100%-2rem)) so gutters stay reliable. */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

.nav-row {
  position: relative;
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: min(210px, 36vw);
  color: var(--ink);
  text-decoration: none;
}

.brand picture {
  display: block;
  width: 100%;
  max-width: 210px;
  line-height: 0;
}

.brand img {
  display: block;
  width: 100%;
  max-width: 210px;
  height: auto;
  max-height: 76px;
  object-fit: contain;
}

/* Search + hamburger sit outside the mobile drawer so they stay in the bar */
.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.15rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 5.75rem;
  min-height: 48px;
  padding: 0.4rem 0.75rem;
  border: 2px solid var(--fnd-navy);
  border-radius: var(--radius);
  color: var(--fnd-navy);
  background: var(--white);
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.nav-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28rem;
  margin-left: auto;
  min-width: 0;
  flex: 1 1 auto;
}

.site-nav > a:not(.header-cta),
.mega-menu-trigger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.5rem 0.42rem;
  border-bottom: 4px solid transparent;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .header-inner > nav:not(.site-nav):not(.legacy-primary-nav) {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem 0.65rem;
  margin-left: auto;
}

.site-header .header-inner > nav:not(.site-nav):not(.legacy-primary-nav) a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

/* Accessible fallback for older static articles that pre-date the dynamic
   mega-menu. It wraps cleanly without JavaScript and retains 44px targets. */
.legacy-primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem 0.65rem;
  margin-left: auto;
}

.legacy-primary-nav a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 720px) {
  .legacy-primary-nav {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
  }
}

.mega-menu-trigger {
  gap: 0.2rem;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.mega-menu-trigger__label {
  display: inline;
}

/* Dropdown affordance: chevron only */
.mega-menu-trigger__chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 160ms ease, opacity 160ms ease;
}

.mega-menu-trigger:hover .mega-menu-trigger__chevron,
.mega-menu.is-open .mega-menu-trigger__chevron,
.mega-menu-trigger[data-current-section="true"] .mega-menu-trigger__chevron {
  opacity: 1;
}

/* Active / hover: keep label colour stable — only the underline changes */
.site-nav > a:not(.header-cta)[aria-current="page"],
.site-nav > a:not(.header-cta):hover,
.mega-menu-trigger:hover,
.mega-menu-trigger[data-current-section="true"],
.mega-menu.is-open .mega-menu-trigger {
  border-bottom-color: var(--pathway-accent, var(--fnd-magenta));
  color: var(--ink);
}

.mega-menu {
  display: flex;
}

.mega-menu.is-open .mega-menu-trigger__chevron {
  transform: rotate(180deg);
}

/* Desktop: soft fade; panel is full-width of .nav-row (see header inline CSS) */
@media (min-width: 1121px) {
  .mega-menu.is-open .mega-menu-panel {
    animation: fnd-mega-fade 120ms ease-out;
  }
}

@keyframes fnd-mega-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mega-menu-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% - 0.15rem);
  left: 0;
  right: 0;
  display: none;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  border: 1px solid var(--border);
  border-top: 3px solid var(--pathway-accent, var(--fnd-navy));
  border-radius: 0 0 12px 12px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(0, 43, 95, 0.14);
}

.mega-menu.is-open .mega-menu-panel {
  display: block;
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: minmax(16.5rem, 19rem) minmax(0, 1fr);
  gap: 1.2rem 1.6rem;
  padding: 1.15rem 1.25rem 1.3rem;
  align-items: start;
}

.mega-menu-start {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid rgba(0, 43, 95, 0.12);
  border-radius: 12px;
  background: #f4f7fb;
}

.mega-menu-start__kicker {
  margin: 0;
  color: var(--fnd-navy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mega-menu-start__intro {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
}

.mega-menu-start__cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-height: 48px;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  color: #fff;
  background: var(--fnd-navy);
  text-decoration: none;
}

.mega-menu-start__cta strong {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.mega-menu-start__cta span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
}

.mega-menu-start__cta:hover,
.mega-menu-start__cta:focus-visible {
  color: #fff;
  background: var(--fnd-deep-navy);
}

.mega-menu-start__note {
  margin: 0;
  color: #2c3d52;
  font-size: 0.84rem;
  line-height: 1.45;
}

.mega-menu-head,
.mega-menu-feature,
.mega-menu-note {
  display: none;
}

.mega-shop-doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 1rem 1.1rem 0.35rem;
}

.mega-shop-door {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.mega-shop-door__main {
  display: grid;
  gap: 0.35rem;
  flex: 1 1 auto;
  padding: 0.95rem 1rem 0.85rem;
  color: inherit;
  text-decoration: none;
}

.mega-shop-door__eyebrow {
  margin: 0;
  color: var(--fnd-magenta);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mega-shop-door__main strong {
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.mega-shop-door__main p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.mega-shop-door__cta {
  margin-top: 0.35rem;
  color: var(--fnd-magenta);
  font-size: 0.88rem;
  font-weight: 800;
}

.mega-shop-door__main:hover {
  background: #fff8fb;
}

.mega-shop-door__main:hover .mega-shop-door__cta,
.mega-shop-door__main:hover strong {
  color: var(--fnd-navy);
}

.mega-shop-door__extra {
  padding: 0.55rem 1rem 0.7rem;
  border-top: 1px solid var(--border);
  color: var(--fnd-navy);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.mega-shop-door__extra:hover {
  color: var(--fnd-magenta);
}

.mega-menu-groups--shop-extras {
  grid-template-columns: minmax(0, 1fr);
  padding-top: 0.35rem;
}

.mega-menu-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 1.25rem;
  min-width: 0;
  padding: 0.15rem 0 0;
}

.mega-menu-group {
  min-width: 0;
  padding: 0;
  border-right: 0;
}

.mega-menu-group h2,
.mega-menu-group__label {
  display: block;
  margin: 0 0 0.4rem;
  padding: 0.45rem 0.6rem;
  border: 0;
  border-bottom: 2px solid var(--fnd-navy);
  border-radius: 8px 8px 0 0;
  background: #e8eef6;
  color: var(--fnd-navy);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mega-menu-group a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.45rem;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.mega-menu-group a:hover,
.mega-menu-group a[aria-current="page"] {
  color: var(--fnd-navy);
  background: #eef3f9;
}

.header-actions .header-cta {
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  border-bottom: 0;
  color: var(--white);
  font-size: 0.82rem;
  white-space: nowrap;
}

.header-actions .header-cta:hover {
  color: var(--white);
}

.home-challenge-hero {
  --hc-navy: #06143f;
  --hc-deep: #02081f;
  --hc-pink: #e8007a;
  --hc-pink-2: #ff2d8a;
  --hc-muted: rgba(255, 255, 255, 0.76);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 56% 58% at 72% 16%, rgba(232, 0, 122, 0.18) 0%, transparent 62%),
    radial-gradient(ellipse 70% 88% at 10% 54%, rgba(20, 74, 145, 0.32) 0%, transparent 64%),
    linear-gradient(155deg, #071946 0%, #06133d 46%, var(--hc-deep) 100%);
  color: var(--white);
  isolation: isolate;
}

.home-challenge-hero::before,
.home-challenge-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-challenge-hero::before {
  background:
    radial-gradient(circle at 92% 16%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1.8px),
    radial-gradient(circle at 18% 88%, rgba(255, 45, 138, 0.28) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 74%, rgba(255, 45, 138, 0.34) 0 1.4px, transparent 2.8px);
  background-size: 22px 22px, 34px 34px, 18px 18px;
  opacity: 0.38;
}

.home-challenge-hero::after {
  background:
    linear-gradient(104deg, transparent 0 10%, rgba(255, 255, 255, 0.035) 10.4% 11.1%, transparent 11.4% 100%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.4px);
  background-size: 100% 100%, 28px 28px;
  opacity: 0.62;
}

.home-challenge-track {
  position: relative;
  z-index: 1;
}

.home-challenge-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.home-challenge-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.home-challenge-slide__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.78fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: center;
  min-height: 620px;
  padding-top: 3rem;
  padding-bottom: 5.2rem;
}

.home-challenge-copy {
  max-width: 660px;
}

.home-challenge-eyebrow {
  margin: 0 0 1rem;
  color: var(--hc-pink-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-challenge-display {
  margin: 0;
  color: var(--white);
  font-family: "Paint Brush Script", "Caveat Brush", "Caveat", cursive;
  font-size: 6.4rem;
  font-weight: 400;
  line-height: 0.78;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.home-challenge-display span {
  display: block;
  white-space: nowrap;
}

.home-challenge-display span:first-child {
  transform: rotate(-3deg);
  transform-origin: left center;
}

.home-challenge-brush {
  width: min(520px, 94%);
  height: auto;
  margin: -0.1rem 0 0.6rem;
  transform: rotate(-1.5deg);
}

.home-challenge-title {
  display: inline-block;
  margin: 0.35rem 0 1.15rem;
  color: var(--hc-pink-2);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.15;
  text-transform: uppercase;
}

.home-challenge-body {
  max-width: 560px;
  margin: 0 0 0.8rem;
  color: var(--hc-muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.home-challenge-strong {
  max-width: 520px;
  margin: 0;
  color: var(--white);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.5;
}

.home-challenge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.55rem;
}

.home-challenge-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 7px;
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.home-challenge-btn:hover {
  transform: translateY(-2px);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(232, 0, 122, 0.35);
}

.home-challenge-btn--primary {
  background: var(--hc-pink);
  border-color: var(--hc-pink);
}

.home-challenge-btn--primary:hover {
  background: var(--hc-pink-2);
  border-color: var(--hc-pink-2);
}

.home-challenge-btn--outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.5);
}

.home-challenge-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.home-challenge-visual {
  position: relative;
  min-height: 430px;
}

.home-challenge-orbit,
.home-challenge-splatter,
.home-challenge-heart {
  position: absolute;
  pointer-events: none;
}

.home-challenge-orbit {
  width: 86%;
  aspect-ratio: 1;
  top: 2rem;
  right: 2%;
  border: 3px solid rgba(232, 0, 122, 0.46);
  border-left-color: transparent;
  border-bottom-color: rgba(255, 45, 138, 0.18);
  border-radius: 48% 52% 51% 49%;
  box-shadow:
    -8px 20px 0 -18px rgba(255, 45, 138, 0.8),
    18px -10px 0 -17px rgba(255, 45, 138, 0.55);
  transform: rotate(-20deg);
}

.home-challenge-splatter {
  width: 48%;
  aspect-ratio: 1;
  right: -2%;
  bottom: 1.5rem;
  background:
    radial-gradient(circle at 22% 68%, rgba(255, 45, 138, 0.8) 0 2px, transparent 2.8px),
    radial-gradient(circle at 76% 24%, rgba(255, 45, 138, 0.58) 0 1.5px, transparent 2.4px),
    radial-gradient(circle at 58% 82%, rgba(232, 0, 122, 0.6) 0 2px, transparent 3px),
    radial-gradient(ellipse at center, rgba(232, 0, 122, 0.16) 0%, transparent 62%);
  background-size: 17px 17px, 23px 23px, 31px 31px, 100% 100%;
  opacity: 0.9;
  transform: rotate(14deg);
}

.home-challenge-polaroid {
  position: absolute;
  top: 2.2rem;
  left: 7%;
  width: min(330px, 78%);
  margin: 0;
  padding: 0.72rem 0.72rem 1.9rem;
  border-radius: 3px;
  background: linear-gradient(#fff, #fafafa);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.48), 0 4px 12px rgba(0, 0, 0, 0.34);
  transform: rotate(4deg);
}

.home-challenge-polaroid::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 82px;
  height: 28px;
  background: repeating-linear-gradient(45deg, rgba(232, 0, 122, 0.58) 0 7px, rgba(255, 45, 138, 0.46) 7px 14px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%) rotate(-5deg);
}

.home-challenge-polaroid img {
  width: 100%;
  aspect-ratio: 1.04;
  object-fit: cover;
  background: #dfe6ef;
}

.home-challenge-polaroid figcaption {
  padding-top: 0.55rem;
  color: #1a1f50;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.home-challenge-heart {
  right: 2%;
  top: 28%;
  width: 64px;
  height: 64px;
  color: var(--hc-pink-2);
  transform: rotate(8deg);
}

.home-challenge-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(2, 8, 31, 0.62);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
  transform: translateX(-50%);
}

.home-challenge-arrow,
.home-challenge-dots button {
  border: 0;
  color: var(--white);
  cursor: pointer;
}

.home-challenge-arrow {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: transparent;
}

.home-challenge-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
}

.home-challenge-arrow svg {
  width: 20px;
  height: 20px;
}

.home-challenge-dots {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.home-challenge-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.home-challenge-dots button.is-active {
  width: 28px;
  background: var(--hc-pink-2);
}

@media (max-width: 980px) {
  .home-challenge-slide__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    min-height: 0;
    padding-top: 2.5rem;
    padding-bottom: 5.5rem;
  }

  .home-challenge-display {
    font-size: 5rem;
  }

  .home-challenge-visual {
    min-height: 360px;
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
  }

  .home-challenge-polaroid {
    top: 1rem;
    left: 9%;
    width: min(310px, 76%);
  }
}

@media (max-width: 620px) {
  .home-challenge-slide__inner {
    padding-top: 2rem;
    padding-bottom: 5.2rem;
  }

  .home-challenge-display {
    font-size: 3.9rem;
  }

  .home-challenge-title {
    font-size: 1.18rem;
  }

  .home-challenge-body {
    font-size: 1rem;
  }

  .home-challenge-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-challenge-btn {
    width: 100%;
  }

  .home-challenge-visual {
    min-height: 330px;
  }

  .home-challenge-polaroid {
    left: 4%;
    width: min(300px, 82%);
  }

  .home-challenge-heart {
    display: none;
  }

  .home-challenge-controls {
    bottom: 0.85rem;
  }
}

.hero {
  background: linear-gradient(112deg, #f8fbff 0%, #ffffff 54%, #fff1f7 100%);
  border-bottom: 1px solid var(--border);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 540px;
  padding-top: clamp(2.4rem, 6vw, 4.8rem);
  padding-bottom: clamp(2.4rem, 6vw, 4.8rem);
}

.hero p {
  max-width: 720px;
  font-size: clamp(1.12rem, 2vw, 1.36rem);
  line-height: 1.55;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1rem;
  border: 2px solid var(--fnd-magenta);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--fnd-magenta), #a8004d);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
}

.button:hover {
  background: var(--fnd-navy);
  border-color: var(--fnd-navy);
  color: var(--white);
}

.button.secondary {
  color: #a7004b;
  background: var(--white);
}

.button.secondary:hover {
  color: var(--fnd-navy);
  border-color: var(--fnd-navy);
}

.button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.hero-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, var(--fnd-navy), var(--fnd-magenta));
  color: var(--white);
  font-weight: 800;
}

/*
 * Body text under the coloured header — never flush to the box edges.
 * Homepage CMS body_html often uses a bare <div> after .hero-panel-header
 * (no class, no inline padding), so target that structure directly.
 */
.hero-panel-body,
.hero-panel > div:not(.hero-panel-header) {
  padding: 1.35rem 1.5rem 1.5rem !important;
  box-sizing: border-box;
}

.hero-panel-body > p:first-child,
.hero-panel > div:not(.hero-panel-header) > p:first-child {
  margin-top: 0;
}

.hero-panel-body > p:last-child,
.hero-panel > div:not(.hero-panel-header) > p:last-child {
  margin-bottom: 0.85rem;
}

.hero-panel-body > .card-link,
.hero-panel > div:not(.hero-panel-header) > .card-link {
  display: inline-block;
}

.hero-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  margin: 0;
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--border);
}

.icon-dot {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--fnd-magenta);
  background: var(--pale);
}

.icon-dot svg {
  width: 20px;
  height: 20px;
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.home-page .hero + .section {
  padding-top: clamp(2.25rem, 4vw, 3.5rem) !important;
}

.section[id] {
  scroll-margin-top: var(--anchor-offset);
}

.section.alt {
  background: var(--panel);
}

.section.teal {
  background: var(--pale);
}

.section.navy {
  background: linear-gradient(135deg, var(--fnd-deep-navy), var(--fnd-navy));
  color: var(--white);
}

.section.navy h2,
.section.navy h3,
.section.navy p,
.section.navy li {
  color: var(--white);
}

.section.navy a {
  color: var(--white);
}

.section-head {
  max-width: 820px;
  margin-bottom: 2rem;
}

.section-head p,
.lead {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.14rem;
}

.section.navy .section-head p,
.section.navy .lead {
  color: #e6f0fb;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.support-card,
.fact-row,
.info-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 43, 95, 0.04);
}

.card,
.support-card,
.info-box {
  padding: 1.25rem;
}

.card h3,
.support-card h3 {
  margin-bottom: 0.55rem;
}

.card p:last-child,
.support-card p:last-child,
.info-box p:last-child {
  margin-bottom: 0;
}

.card-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  font-weight: 800;
}

.card-link svg {
  width: 18px;
  height: 18px;
}

.blog-jump {
  margin: 2rem 0;
  padding: 1.15rem;
  border: 1px solid rgba(201, 0, 90, 0.22);
  border-left: 8px solid var(--fnd-magenta);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(135deg, var(--pale), #ffffff);
  box-shadow: 0 8px 24px rgba(0, 43, 95, 0.04);
}

.blog-jump-kicker,
.share-kicker {
  margin-bottom: 0.35rem;
  color: var(--fnd-magenta);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-jump h2,
.blog-jump h3,
.blog-jump-card h3,
.share-panel h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.blog-jump p:last-child,
.blog-jump-card p:last-child {
  margin-bottom: 0;
}

.blog-jump-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.blog-jump-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 43, 95, 0.04);
}

.blog-jump-card-image {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--pale-blue);
}

.blog-jump-card-image img {
  width: 100%;
  height: clamp(130px, 13vw, 168px);
  object-fit: cover;
  transition: transform 220ms ease;
}

.blog-jump-card-image:hover img {
  transform: scale(1.025);
}

.blog-jump-card-body {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  padding: 1.2rem;
}

.blog-jump-card .blog-meta {
  margin-bottom: 0;
}

.fact-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
}

.fact-row strong {
  padding: 1rem;
  color: var(--ink);
  background: var(--pale-blue);
}

.fact-row span {
  padding: 1rem;
}

.alert {
  padding: 1rem 1.2rem;
  border-left: 8px solid var(--warning);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fff8cf;
}

.alert.blue {
  border-left-color: var(--nhs-blue);
  background: var(--pale-blue);
  margin-bottom:20px;
}

.alert.teal {
  border-left-color: var(--fnd-magenta);
  background: var(--pale);
}

.alert p:last-child {
  margin-bottom: 0;
}

.page-hero {
  background: linear-gradient(105deg, #f8fbff 0%, #ffffff 58%, #fff1f7 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero .wrap {
  padding-top: clamp(2.5rem, 6vw, 4.6rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.6rem);
}

/* Legacy article-hero shell still used by older static posts */
.article-hero {
  background: linear-gradient(105deg, #f8fbff 0%, #ffffff 58%, #fff1f7 100%);
  border-bottom: 1px solid var(--border);
}

.article-hero .wrap {
  padding-top: clamp(2.5rem, 6vw, 4.6rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.6rem);
}

.breadcrumbs {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  display: inline-flex;
  min-width: 44px;
  min-height: 48px;
  align-items: center;
  padding-inline: 0.15rem;
  color: var(--muted);
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.content-main {
  min-width: 0;
}

.content-main > * + h2 {
  margin-top: 2.4rem;
}

.content-main > * + h3 {
  margin-top: 1.7rem;
}

.toc {
  position: sticky;
  top: 118px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.toc h2 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.toc a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0.38rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

/* Blog sidebar + bottom promo: share / read FND stories */
.toc--with-stories-promo {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stories-promo-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fnd-magenta, #c9005a);
}

.stories-promo--card {
  margin-top: 0.35rem;
  padding: 1rem 0.95rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 0, 90, 0.16);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(237, 43, 123, 0.12), transparent 55%),
    linear-gradient(165deg, #fff7fb 0%, #ffffff 70%);
  box-shadow: 0 8px 22px rgba(0, 43, 95, 0.05);
}

.stories-promo--card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--fnd-navy, #002b5f);
  line-height: 1.25;
}

.stories-promo--card p {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text, #26364d);
  font-weight: 500;
}

.stories-promo-card-cta {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  padding: 0.65rem 0.85rem;
}

.stories-promo-card-link {
  display: block;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fnd-navy, #002b5f);
  text-decoration: none;
}

.stories-promo-card-link:hover {
  color: var(--fnd-magenta, #c9005a);
}

.stories-promo--banner {
  margin: 2rem 0 0;
  padding: 0 0 0.25rem;
}

.stories-promo-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 1.25rem 1.75rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.2rem, 3vw, 1.75rem);
  border-radius: 18px;
  border: 1px solid rgba(0, 43, 95, 0.1);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(237, 43, 123, 0.1), transparent 50%),
    linear-gradient(135deg, #f4f7fb 0%, #ffffff 55%, #fff5f9 100%);
  box-shadow: 0 12px 30px rgba(0, 43, 95, 0.05);
}

.stories-promo-banner-copy h2 {
  margin: 0 0 0.45rem;
  color: var(--fnd-navy, #002b5f);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.25;
}

.stories-promo-banner-copy p {
  margin: 0;
  max-width: 52ch;
  color: var(--text, #26364d);
  line-height: 1.55;
}

.stories-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .stories-promo-banner-inner {
    grid-template-columns: 1fr;
  }

  .stories-promo-actions {
    justify-content: flex-start;
  }
}

.symptom-list,
.treatment-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.symptom-list li,
.treatment-list li {
  margin: 0;
  padding: 1rem;
  border-left: 6px solid var(--fnd-magenta);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--panel);
}

.check-list {
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-top: 0.65rem;
  padding-left: 2rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 0;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--fnd-magenta);
}

.check-list li::after {
  content: "";
  position: absolute;
  top: 0.59rem;
  left: 0.32rem;
  width: 0.42rem;
  height: 0.22rem;
  border-bottom: 2px solid var(--white);
  border-left: 2px solid var(--white);
  transform: rotate(-45deg);
}

.support-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.support-meta {
  display: grid;
  gap: 0.35rem;
  margin: 0.8rem 0 1rem;
  padding: 0.85rem;
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 0.95rem;
}

.support-meta span {
  overflow-wrap: anywhere;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--fnd-navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

summary {
  cursor: pointer;
  padding: 1rem 3rem 1rem 1rem;
  color: var(--ink);
  font-weight: 800;
  list-style: none;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: var(--fnd-magenta);
  font-size: 1.45rem;
}

details[open] summary::after {
  content: "-";
}

details > div {
  padding: 0 1rem 1rem;
}

.source-list {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  margin: 0;
  padding: 0.85rem;
  border-left: 5px solid var(--fnd-magenta);
  background: var(--white);
}

.blog-list {
  display: grid;
  gap: 1rem;
}

.blog-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.58fr);
  gap: 1.25rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 43, 95, 0.04);
}

.blog-card img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
}

.blog-card img.blog-card-contain {
  object-fit: contain;
  background: var(--panel);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0.5rem 0.25rem;
}

.blog-card h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
}

.blog-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.blog-hero-image {
  margin: 0 0 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-height: min(420px, 52vh);
}

.blog-hero-image img {
  display: block;
  width: 100%;
  max-height: min(420px, 52vh);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

/* Designed graphics / share cards: never force a crop box that stretches or clips text */
.blog-hero-image.contain {
  max-height: none;
  background: var(--white);
}

.blog-hero-image.contain img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(720px, 75vh);
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

/* Wide designed banners: keep natural aspect ratio, no forced 16:9 cover crop */
.blog-hero-image.wide {
  max-height: none;
  background: var(--white);
}

.blog-hero-image.wide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

/* Inline article graphics (maps, share cards): natural size, never stretched */
.blog-inline-image {
  margin: 1.25rem 0;
  text-align: center;
}

.blog-inline-image img {
  display: block;
  width: auto;
  max-width: min(100%, 640px);
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  object-fit: contain;
}

.blog-inline-image figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Live pathway map embed inside blog posts (native Leaflet — not iframe) */
.blog-pathway-map {
  --pt-teal: #0d9488;
  --pt-teal-dark: #0f766e;
  --pt-amber: #f59e0b;
  --pt-amber-dark: #b45309;
  --pt-red: #ef4444;
  --pt-red-dark: #b91c1c;
  margin: 1.35rem 0 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.blog-pathway-map__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  padding: 0.75rem 1rem 0.55rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.blog-pathway-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink);
}

.blog-pathway-map__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-pathway-map__swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  flex: 0 0 auto;
}

.blog-pathway-map__swatch.is-green { background: #14b8a6; }
.blog-pathway-map__swatch.is-amber { background: #fbbf24; }
.blog-pathway-map__swatch.is-red { background: #f87171; }

.blog-pathway-map__status {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.blog-pathway-map__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.blog-pathway-map__card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.84rem;
}

.blog-pathway-map__card strong {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.blog-pathway-map__card.is-green {
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.22);
  color: var(--pt-teal-dark);
}

.blog-pathway-map__card.is-amber {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
  color: var(--pt-amber-dark);
}

.blog-pathway-map__card.is-red {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.22);
  color: var(--pt-red-dark);
}

.blog-pathway-map__canvas,
.blog-pathway-map__canvas.leaflet-container {
  display: block;
  width: 100%;
  height: 480px;
  min-height: 480px;
  max-height: none;
  border: 0;
  background: #e8eef5;
  z-index: 1;
  position: relative;
}

/* Leaflet tiles/SVG must not inherit site-wide img/svg max-width rules */
.blog-pathway-map .leaflet-container img,
.blog-pathway-map .leaflet-tile,
.blog-pathway-map .leaflet-overlay-pane svg {
  max-width: none !important;
  max-height: none !important;
}

.blog-pathway-map .leaflet-popup-content {
  margin: 0.75rem 0.9rem;
  min-width: 180px;
  font-size: 0.9rem;
}

.blog-pathway-map .popup-status {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.blog-pathway-map .popup-status.green { background: rgba(13, 148, 136, 0.14); color: var(--pt-teal-dark); }
.blog-pathway-map .popup-status.amber { background: rgba(245, 158, 11, 0.16); color: var(--pt-amber-dark); }
.blog-pathway-map .popup-status.red { background: rgba(239, 68, 68, 0.14); color: var(--pt-red-dark); }
.blog-pathway-map .popup-status.unknown { background: #e2e8f0; color: #475569; }

.blog-pathway-map figcaption {
  margin: 0;
  padding: 0.75rem 1rem 0.9rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

.blog-pathway-map figcaption a {
  font-weight: 700;
}

@media (max-width: 640px) {
  .blog-pathway-map__summary {
    grid-template-columns: 1fr;
  }
  .blog-pathway-map__canvas,
  .blog-pathway-map__canvas.leaflet-container {
    min-height: 360px;
    height: 360px;
  }
}

/* Email-your-MP toolkit (blog embeds) */
.mp-email-toolkit {
  margin: 1.6rem 0 1.85rem;
  padding: 1.15rem 1.15rem 1.25rem;
  border: 1px solid rgba(201, 0, 90, 0.2);
  border-left: 8px solid var(--fnd-magenta);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(160deg, #fff7fb 0%, #ffffff 42%, #f4f8ff 100%);
  box-shadow: 0 10px 28px rgba(0, 43, 95, 0.06);
}

.mp-email-toolkit__kicker {
  margin: 0 0 0.35rem;
  color: var(--fnd-magenta);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mp-email-toolkit h2,
.mp-email-toolkit h3 {
  margin: 0 0 0.55rem;
}

.mp-email-toolkit__intro {
  margin: 0 0 1rem;
  color: var(--ink);
  max-width: 48rem;
}

.mp-email-toolkit__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto;
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 0.75rem;
}

.mp-email-toolkit label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.mp-email-toolkit input[type="text"],
.mp-email-toolkit input[type="search"],
.mp-email-toolkit textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.mp-email-toolkit textarea {
  min-height: 12rem;
  resize: vertical;
  line-height: 1.5;
  font-size: 0.95rem;
}

.mp-email-toolkit__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--fnd-magenta);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.mp-email-toolkit__btn:hover {
  filter: brightness(0.96);
}

.mp-email-toolkit__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.mp-email-toolkit__btn.is-secondary {
  background: var(--fnd-navy);
}

.mp-email-toolkit__btn.is-ghost {
  background: #fff;
  color: var(--fnd-navy);
  border: 1px solid rgba(0, 43, 95, 0.18);
}

.mp-email-toolkit__btn.is-copied {
  background: #0f766e;
  color: #fff;
  border-color: transparent;
}

.mp-email-toolkit__status {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
}

.mp-email-toolkit__status[data-kind="err"] { color: #b91c1c; font-weight: 700; }
.mp-email-toolkit__status[data-kind="ok"] { color: #0f766e; font-weight: 700; }
.mp-email-toolkit__status[data-kind="loading"] { color: var(--muted); }

.mp-email-toolkit__result {
  display: grid;
  gap: 0.85rem;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(0, 43, 95, 0.14);
}

.mp-email-toolkit__meta {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.mp-email-toolkit__field {
  display: grid;
  gap: 0.4rem;
}

.mp-email-toolkit__field-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.mp-email-toolkit__field-head strong {
  font-size: 0.9rem;
}

.mp-email-toolkit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.mp-email-toolkit__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 760px) {
  .mp-email-toolkit__form {
    grid-template-columns: 1fr;
  }
}

.blog-article {
  font-size: 1.06rem;
}

.blog-article blockquote {
  margin: 0 0 1.5rem;
  padding: 1rem 1.2rem;
  border-left: 8px solid var(--fnd-magenta);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--pale);
  color: var(--ink);
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.4;
}

.blog-article blockquote p {
  margin: 0;
}

.blog-article :where(p, li, a, code) {
  overflow-wrap: anywhere;
}

.blog-article pre {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
}

.pacing-graphic {
  margin: 2rem 0;
  padding: 1.15rem;
  border: 1px solid rgba(0, 43, 95, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, var(--panel));
  box-shadow: 0 8px 24px rgba(0, 43, 95, 0.04);
}

.pacing-graphic figcaption {
  margin-bottom: 1rem;
}

.pacing-graphic h2 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.pacing-zone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.pacing-zone,
.pacing-step {
  padding: 1rem;
  border: 1px solid var(--border);
  border-left: 7px solid var(--muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--white);
}

.pacing-zone.good {
  border-left-color: var(--fnd-magenta);
  background: var(--pale);
}

.pacing-zone.warning {
  border-left-color: var(--warning);
}

.pacing-zone-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--fnd-navy);
  font-weight: 900;
}

.pacing-zone p,
.pacing-step p {
  margin-bottom: 0;
}

.pacing-meter {
  position: relative;
  height: 14px;
  margin-top: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #d8e8f8 0%, #c9005a 45%, #c9005a 58%, #ffd66b 100%);
  overflow: hidden;
}

.pacing-meter span {
  position: absolute;
  top: -4px;
  left: calc(50% - 11px);
  width: 22px;
  height: 22px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--fnd-navy);
  box-shadow: 0 4px 12px rgba(0, 43, 95, 0.2);
}

.pacing-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.pacing-step {
  display: grid;
  gap: 0.45rem;
  border-left-color: var(--fnd-magenta);
}

.pacing-step > span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--fnd-magenta);
  color: var(--white);
  font-weight: 900;
}

.pacing-step h3 {
  margin: 0;
}

.share-panel {
  display: grid;
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 1.15rem;
  border: 1px solid rgba(0, 43, 95, 0.14);
  border-radius: var(--radius);
  background: var(--panel);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: break-word;
}

.share-panel p:last-child {
  margin-bottom: 0;
}

.share-panel[id] {
  scroll-margin-top: var(--anchor-offset);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
}

.share-button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.72rem;
  border: 2px solid var(--fnd-magenta);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--fnd-magenta);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
  text-align: center;
}

.share-button:hover {
  border-color: var(--fnd-navy);
  color: var(--fnd-navy);
}

.share-button.primary {
  background: linear-gradient(135deg, var(--fnd-magenta), #a8004d);
  color: var(--white);
}

.share-button.primary:hover {
  background: var(--fnd-navy);
  color: var(--white);
}

.share-status {
  min-height: 1.4em;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.share-url-fallback {
  width: 100%;
  min-height: 42px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.65rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
}

.cabin-letter-tool.community-panel {
  grid-template-columns: minmax(0, 1fr);
  margin: 2rem 0;
  scroll-margin-top: var(--anchor-offset);
}

.cabin-letter-inner {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.cabin-letter-form {
  display: grid;
  gap: 1rem;
}

.cabin-letter-grid {
  display: grid;
  gap: 1rem;
}

.cabin-letter-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cabin-letter-field {
  display: grid;
  gap: 0.35rem;
}

.cabin-letter-field label {
  font-weight: 800;
  color: var(--fnd-navy);
}

.cabin-letter-field input,
.cabin-letter-field textarea {
  width: 100%;
  min-height: 42px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.cabin-letter-field textarea {
  min-height: 120px;
  resize: vertical;
}

.cabin-letter-checks {
  display: grid;
  gap: 0.55rem;
}

.cabin-letter-checks label {
  display: flex;
  min-height: 44px;
  gap: 0.55rem;
  align-items: center;
  font-weight: 700;
}

.cabin-letter-carer {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(248, 251, 255, 0.9);
}

.cabin-letter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.cabin-letter-preview {
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.cabin-letter-preview[hidden] {
  display: none !important;
}

.cabin-letter-document {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}

.cabin-letter-document h3 {
  margin: 0 0 0.6rem;
  color: var(--fnd-navy);
  font-size: 1.25rem;
  font-weight: 800;
}

.cabin-letter-document p strong {
  color: var(--fnd-navy);
}

.cabin-letter-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--fnd-navy);
}

.cabin-letter-brand img {
  width: min(160px, 42vw);
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.cabin-letter-brand .cabin-letter-kicker {
  margin: 0;
  text-align: right;
  color: var(--fnd-navy);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
}

.cabin-letter-flight {
  margin: 0 0 0.65rem;
}

.cabin-letter-flight-sep {
  color: var(--muted);
  font-weight: 400;
}

.cabin-letter-meta {
  margin: 0 0 0.65rem;
}

.cabin-letter-alert {
  margin: 0.85rem 0 0.95rem;
  border: 1px solid #e8c4d4;
  border-left: 5px solid var(--fnd-magenta);
  border-radius: var(--radius);
  background: #fff9fb;
  overflow: hidden;
}

.cabin-letter-alert-label {
  margin: 0;
  padding: 0.6rem 1rem 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fnd-magenta);
}

.cabin-letter-alert-title {
  margin: 0.2rem 0 0;
  padding: 0 1rem;
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--fnd-navy);
}

.cabin-letter-alert-points {
  margin: 0.65rem 0 0.9rem;
  padding: 0 1rem 0.15rem 1rem;
  list-style: none;
}

.cabin-letter-alert-points li {
  position: relative;
  margin: 0 0 0.45rem;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}

.cabin-letter-alert-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--fnd-magenta);
}

.cabin-letter-alert-points li:last-child {
  margin-bottom: 0;
}

.cabin-letter-alert-points strong {
  color: var(--fnd-navy);
  font-weight: 800;
}

.cabin-letter-footnote {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 720px) {
  .cabin-letter-grid.two {
    grid-template-columns: 1fr;
  }
}

.article-divider {
  height: 1px;
  margin: 2.3rem 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.community-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(126px, 0.26fr);
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.community-icon {
  display: grid;
  width: clamp(96px, 11vw, 140px);
  aspect-ratio: 1;
  justify-self: center;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fnd-navy), var(--fnd-magenta) 68%, var(--fnd-rose));
  color: var(--white);
}

.community-icon svg {
  width: 45%;
  height: 45%;
}

.product-hero {
  background: linear-gradient(115deg, #f8fbff 0%, #ffffff 54%, #fff1f7 100%);
  border-bottom: 1px solid var(--border);
}

.product-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.product-logo {
  width: min(100%, 430px);
  margin-bottom: 1.25rem;
}

.product-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(201, 0, 90, 0.22);
  border-radius: 999px;
  color: var(--fnd-navy);
  background: rgba(255, 241, 247, 0.95);
  font-size: 0.9rem;
  font-weight: 800;
}

.product-board {
  border-radius: var(--radius);
  border: 1px solid rgba(0, 43, 95, 0.18);
  background: linear-gradient(150deg, var(--fnd-deep-navy), var(--fnd-navy) 58%, #3a124c);
  color: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.product-board-head img {
  width: 238px;
  max-height: 104px;
  padding: 0.35rem;
  border-radius: 6px;
  background: var(--white);
  object-fit: contain;
}

.product-status {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: #ffe6f1;
  background: rgba(237, 43, 123, 0.18);
  font-size: 0.82rem;
  font-weight: 800;
}

.product-board-body {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.product-chart {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 241, 247, 0.08);
}

.product-chart h2,
.product-mini h3 {
  color: var(--white);
  font-size: 1.1rem;
}

.product-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.product-mini {
  padding: 0.85rem;
  border-radius: var(--radius);
  background: rgba(255, 241, 247, 0.08);
}

.product-mini p {
  margin: 0;
  color: #e6f0fb;
  font-size: 0.95rem;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.metric {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.metric strong {
  display: block;
  color: var(--fnd-navy);
  font-size: 1.5rem;
  line-height: 1.1;
}

.metric span {
  color: var(--muted);
  font-size: 0.95rem;
}

.ecosystem-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.ecosystem-map article {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid rgba(0, 43, 95, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.ecosystem-map span {
  color: var(--fnd-magenta);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ecosystem-map strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.ecosystem-map p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.product-feature {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.product-feature .icon-dot {
  width: 48px;
  height: 48px;
}

.product-link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.product-link-card h3,
.product-link-card p {
  color: var(--white);
}

.ecosystem-journey-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 247, 0.68)),
    var(--white);
}

.ecosystem-journey,
.handoff-panel,
.clinical-readiness,
.clinical-trust {
  display: grid;
  gap: 1.5rem;
  border: 1px solid rgba(0, 43, 95, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.ecosystem-journey {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.88fr);
  align-items: center;
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

.ecosystem-journey-copy h2,
.clinical-readiness-copy h2 {
  max-width: 16ch;
}

.ecosystem-journey-copy p,
.clinical-readiness-copy p {
  max-width: 64ch;
}

.journey-steps,
.clinical-readiness-list,
.clinical-trust-grid {
  display: grid;
  gap: 0.85rem;
}

.journey-steps article,
.clinical-readiness-list article,
.clinical-trust-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 0.8rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.journey-steps span {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: var(--white);
  background: var(--fnd-magenta);
  font-weight: 900;
}

.journey-steps strong,
.clinical-readiness-list strong,
.clinical-trust-grid strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.journey-steps p,
.clinical-readiness-list p,
.clinical-trust-grid p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.handoff-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin: 1.4rem 0;
  padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 247, 0.8)),
    var(--white);
}

.handoff-panel h2,
.handoff-panel h3 {
  margin-bottom: 0.65rem;
}

.handoff-panel p:last-child {
  margin-bottom: 0;
}

.handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.handoff-panel-wide {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.clinical-readiness-section {
  background: var(--panel);
}

.clinical-readiness {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
  align-items: start;
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

.clinical-readiness-list span {
  grid-column: 1 / -1;
  color: var(--fnd-magenta);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.clinical-readiness-list strong,
.clinical-readiness-list p {
  grid-column: 1 / -1;
}

.clinical-trust {
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

.clinical-trust-copy {
  max-width: 760px;
}

.clinical-trust-copy h2 {
  max-width: 17ch;
}

.clinical-trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clinical-trust-grid article {
  grid-template-columns: 1fr;
}

.clinical-trust-grid span {
  color: var(--fnd-magenta);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.clinical-trust-grid p {
  grid-column: auto;
}

.clinical-boundary-note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid rgba(201, 0, 90, 0.22);
  border-radius: var(--radius);
  background: var(--pale);
  color: var(--text);
}

.clinical-boundary-note strong {
  flex: 0 0 auto;
  color: var(--fnd-navy);
}

.pathway-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(112deg, rgba(248, 251, 255, 0.96) 0%, rgba(255, 255, 255, 0.96) 54%, rgba(255, 241, 247, 0.96) 100%),
    url("/assets/img/fnd-connect-logo.jpg") center / cover no-repeat;
}

.pathway-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.74fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  min-height: 650px;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.pathway-hero-copy {
  animation: pathway-rise 600ms ease both;
}

.pathway-hero-board {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.45rem);
  border: 1px solid rgba(0, 43, 95, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  animation: pathway-rise 720ms 90ms ease both;
}

.pathway-board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.pathway-board-top strong {
  padding: 0.24rem 0.58rem;
  border-radius: 999px;
  color: var(--fnd-magenta);
  background: var(--pale);
}

.pathway-board-line {
  position: relative;
  height: 11px;
  border-radius: 999px;
  background: var(--pale-blue);
  overflow: hidden;
}

.pathway-board-line span {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fnd-navy), var(--fnd-magenta));
}

.pathway-board-line b {
  position: absolute;
  top: -5px;
  left: calc(78% - 10px);
  width: 21px;
  height: 21px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--fnd-navy);
  box-shadow: 0 6px 18px rgba(0, 43, 95, 0.18);
}

.pathway-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.pathway-board-grid span,
.pathway-board-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.pathway-board-grid span {
  min-height: 74px;
  padding: 0.75rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
}

.pathway-board-panel {
  padding: 1rem;
  border-left: 7px solid var(--fnd-magenta);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pathway-board-panel strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink);
  font-size: 1.1rem;
}

.pathway-board-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.pathway-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.68fr);
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: start;
}

.pathway-workspace,
.pathway-result {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.pathway-workspace {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1rem, 3vw, 1.45rem);
}

.pathway-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem 1rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.pathway-progress strong {
  color: var(--fnd-navy);
}

.pathway-progress div {
  grid-column: 1 / -1;
  height: 9px;
  border-radius: 999px;
  background: var(--pale-blue);
  overflow: hidden;
}

.pathway-progress div span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fnd-navy), var(--fnd-magenta));
  transform-origin: left center;
  transition: width 220ms ease;
}

.pathway-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.pathway-step legend {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin-bottom: 0.8rem;
  color: var(--ink);
  font-size: clamp(1.18rem, 2vw, 1.42rem);
  font-weight: 900;
  line-height: 1.2;
}

.pathway-step legend span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--fnd-navy);
  font-size: 0.94rem;
}

.pathway-hint {
  margin-top: -0.3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.pathway-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.pathway-choice-grid.compact,
.pathway-choice-grid.regions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pathway-choice {
  position: relative;
  display: grid;
  min-height: 62px;
  align-content: start;
  gap: 0.25rem;
  padding: 0.85rem 0.9rem 0.85rem 1rem;
  border: 1px solid var(--border);
  border-left: 5px solid transparent;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 0.96rem;
  line-height: 1.32;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.pathway-choice:hover {
  border-color: rgba(201, 0, 90, 0.35);
  border-left-color: rgba(201, 0, 90, 0.55);
  box-shadow: 0 10px 24px rgba(0, 43, 95, 0.07);
  transform: translateY(-1px);
}

.pathway-choice[aria-pressed="true"] {
  border-color: rgba(201, 0, 90, 0.38);
  border-left-color: var(--fnd-magenta);
  background: linear-gradient(135deg, var(--pale), #ffffff);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(201, 0, 90, 0.08);
}

.pathway-choice strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.pathway-choice span {
  color: var(--muted);
  font-size: 0.9rem;
}

.pathway-choice-grid.compact .pathway-choice,
.pathway-choice-grid.regions .pathway-choice {
  min-height: 48px;
  align-content: center;
  font-weight: 900;
  text-align: center;
}

.pathway-actions {
  display: flex;
  justify-content: flex-start;
}

.pathway-result {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.4rem);
}

.pathway-print-brand {
  display: none;
}

.pathway-print-brand img {
  width: 160px;
  max-height: 72px;
  object-fit: contain;
}

.pathway-print-brand strong,
.pathway-print-brand span {
  display: block;
}

.pathway-print-brand strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.2;
}

.pathway-print-brand span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.pathway-result-head h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.pathway-result-head p:last-child {
  margin-bottom: 0;
}

.pathway-route {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pathway-route span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--fnd-navy);
  font-size: 0.82rem;
  font-weight: 900;
}

.pathway-output {
  padding-top: 0.95rem;
  border-top: 1px solid var(--border);
}

.pathway-output h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.pathway-output-list,
.pathway-link-list {
  display: grid;
  gap: 0.52rem;
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.pathway-output-list li,
.pathway-link-list li {
  margin: 0;
}

.pathway-link-list a {
  font-weight: 800;
}

.pathway-plan-section {
  margin-top: 0;
}

.pathway-plan-section .pathway-link-list {
  margin-top: 0.65rem;
}

.pathway-link-list.compact {
  gap: 0.35rem;
  font-size: 0.94rem;
}

.pathway-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 0.2rem;
}

.pathway-copy-fallback {
  width: 100%;
  min-height: 190px;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  resize: vertical;
}

.pathway-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
  gap: clamp(1.25rem, 4vw, 2rem);
  align-items: center;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, var(--panel));
  box-shadow: var(--shadow);
}

.pathway-teaser h2 {
  margin-bottom: 0.55rem;
}

.pathway-teaser-steps {
  display: grid;
  gap: 0.7rem;
}

.pathway-teaser-steps span {
  position: relative;
  min-height: 54px;
  padding: 0.8rem 0.9rem 0.8rem 2.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
}

.pathway-teaser-steps span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.9rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--fnd-magenta);
  transform: translateY(-50%);
}

.pathway-teaser-steps span::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.04rem);
  left: 1.23rem;
  width: 0.44rem;
  height: 0.24rem;
  border-bottom: 2px solid var(--white);
  border-left: 2px solid var(--white);
  transform: rotate(-45deg) translateY(-50%);
}

@keyframes pathway-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.day-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 92% 12%, rgba(237, 43, 123, 0.13), transparent 31%),
    radial-gradient(circle at 6% 88%, rgba(0, 94, 184, 0.1), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f7f9fc 58%, #fff1f7 100%);
}

.day-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  min-height: min(760px, calc(100svh - 120px));
  padding-top: clamp(3rem, 7vw, 5.25rem);
  padding-bottom: clamp(3rem, 7vw, 5.25rem);
}

.day-hero-copy {
  position: relative;
  z-index: 1;
}

.day-hero-copy .lead {
  color: var(--text);
}

.day-hero-art {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 43, 95, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 60px rgba(0, 43, 95, 0.16);
}

.day-hero-art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.day-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.day-principles article {
  display: grid;
  gap: 0.55rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #f9fbfe);
  box-shadow: 0 8px 24px rgba(0, 43, 95, 0.05);
}

.day-principles span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid rgba(201, 0, 90, 0.22);
  border-radius: 50%;
  color: var(--fnd-magenta);
  background: var(--pale);
  font-weight: 900;
}

.day-principles h3,
.day-principles p {
  margin: 0;
}

.day-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 1.8rem);
  border: 1px solid rgba(0, 43, 95, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.day-shell button,
.day-shell a {
  touch-action: manipulation;
}

.day-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--fnd-navy), var(--fnd-magenta));
}

.day-start {
  display: grid;
  gap: 1.15rem;
}

.day-start[hidden],
.day-game[hidden],
.day-results[hidden],
.day-choice-grid[hidden],
.day-outcome[hidden] {
  display: none !important;
}

.day-start-copy {
  max-width: 850px;
}

.day-mode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.day-mode {
  display: grid;
  gap: 0.45rem;
  min-height: 146px;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.day-mode strong {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.2;
}

.day-mode span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.38;
}

.day-mode:hover,
.day-mode.is-selected {
  border-color: var(--fnd-magenta);
  box-shadow: 0 10px 24px rgba(201, 0, 90, 0.09);
}

.day-mode.is-selected {
  background: linear-gradient(135deg, #fff1f7, #ffffff);
}

.day-access-panel {
  padding: 1rem;
  border: 1px solid rgba(0, 43, 95, 0.13);
  border-radius: var(--radius);
  background: var(--panel);
}

.day-access-panel h3 {
  margin-bottom: 0.75rem;
}

.day-access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.day-access-grid label {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
}

.day-access-grid input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--fnd-magenta);
}

.day-start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.day-game {
  display: grid;
  gap: 1rem;
}

.day-game-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.day-game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.day-progress {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 900;
}

.day-progress > div {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: #e7edf5;
}

.day-progress > div span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fnd-magenta), var(--fnd-navy));
  transition: width 360ms ease;
}

.day-stage {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.day-dashboard,
.day-scene-card,
.day-result-card {
  border: 1px solid rgba(0, 43, 95, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(0, 43, 95, 0.06);
}

.day-dashboard {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.day-dashboard h3 {
  margin-bottom: 0.1rem;
}

.day-metrics {
  display: grid;
  gap: 0.75rem;
}

.day-meter {
  display: grid;
  gap: 0.35rem;
}

.day-meter-head,
.day-stat-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 900;
}

.day-meter-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e7edf5;
}

.day-meter-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fnd-navy), var(--fnd-magenta));
  transition: width 280ms ease;
}

.day-meter.is-alert .day-meter-head strong {
  color: var(--fnd-magenta);
}

.day-stat-row {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.day-scene-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
}

.day-scene-image {
  margin: 0;
  background: var(--panel);
}

.day-scene-image img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.day-scene-body {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: clamp(1rem, 3vw, 1.6rem);
  min-width: 0;
}

.day-time {
  width: fit-content;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  background: var(--pale);
  color: var(--fnd-magenta);
  font-size: 0.85rem;
  font-weight: 900;
}

.day-scene-text {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
}

.day-quote {
  margin: 0;
  padding: 0.8rem 0.9rem;
  border-left: 5px solid var(--fnd-magenta);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fff7fb;
  color: var(--ink);
  font-weight: 800;
}

.day-quote p {
  margin: 0;
}

.day-quote p::before,
.day-quote p::after {
  color: var(--fnd-magenta);
}

.day-quote p::before {
  content: "\"";
}

.day-quote p::after {
  content: "\"";
}

.day-choice-grid {
  display: grid;
  gap: 0.65rem;
}

.day-choice {
  display: grid;
  gap: 0.28rem;
  width: 100%;
  min-height: 76px;
  padding: 0.9rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.day-choice strong {
  color: var(--ink);
  line-height: 1.2;
}

.day-choice span,
.day-choice em {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.35;
}

.day-choice:hover {
  border-color: var(--fnd-magenta);
  background: #fff9fc;
}

.day-choice:disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.day-outcome {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(201, 0, 90, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff1f7, #ffffff);
}

.day-outcome h3,
.day-outcome p {
  margin: 0;
}

.day-outcome .button {
  justify-self: start;
}

.day-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.44fr);
  gap: 1rem;
  align-items: start;
}

.day-killer-line {
  max-width: 820px;
  padding: 1rem;
  border-left: 8px solid var(--fnd-magenta);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--pale);
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.3;
}

.day-result-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 247, 0.96)),
    var(--white);
}

.day-result-card img {
  width: 168px;
}

.day-result-card h3,
.day-result-card p {
  margin: 0;
}

.day-result-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}

.day-result-card dl div {
  padding: 0.75rem;
  border: 1px solid rgba(0, 43, 95, 0.12);
  border-radius: var(--radius);
  background: var(--white);
}

.day-result-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.day-result-card dd {
  margin: 0.15rem 0 0;
  color: var(--fnd-magenta);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.day-card-tagline {
  padding-top: 0.7rem;
  border-top: 1px solid rgba(0, 43, 95, 0.12);
  color: var(--fnd-navy);
  font-weight: 900;
}

.day-share-panel {
  margin: 1.5rem 0 0;
}

.day-pause-screen {
  position: absolute;
  z-index: 2;
  inset: 6px 0 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.day-pause-screen[hidden] {
  display: none;
}

.day-pause-screen > div {
  width: min(100%, 520px);
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.day-illustration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.day-illustration-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 43, 95, 0.05);
}

.day-illustration-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.day-illustration-grid figcaption {
  padding: 0.85rem;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}

.day-home-teaser {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: center;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #fff7fb);
  box-shadow: var(--shadow);
}

.day-home-image {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
}

.day-home-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.day-high-contrast {
  background: #ffffff;
}

.day-high-contrast .day-scene-card,
.day-high-contrast .day-dashboard,
.day-high-contrast .day-result-card,
.day-high-contrast .day-mode,
.day-high-contrast .day-access-panel,
.day-high-contrast .day-choice {
  border-color: var(--ink);
}

.day-high-contrast .day-mode.is-selected,
.day-high-contrast .day-choice:hover {
  background: #ffffff;
  outline: 3px solid var(--warning);
  outline-offset: 0;
}

.day-high-contrast .day-quote,
.day-high-contrast .day-outcome,
.day-high-contrast .day-killer-line {
  background: #ffffff;
  border-color: var(--ink);
}

.day-scene-card.day-fx-fog .day-scene-text,
.day-scene-card.day-fx-fog .day-quote {
  filter: blur(1.5px);
}

.day-scene-card.day-fx-delay .day-scene-body {
  animation: day-delay 900ms ease;
}

.day-scene-card.day-fx-dim,
.day-scene-card.day-fx-crash {
  animation: day-dim 900ms ease;
}

.day-scene-card.day-fx-crash {
  animation-name: day-crash;
}

.day-reduced-motion .day-progress > div span,
.day-reduced-motion .day-meter-track span,
.day-simplified .day-progress > div span,
.day-simplified .day-meter-track span {
  transition: none;
}

@keyframes day-delay {
  0%, 100% {
    transform: translateX(0);
  }

  35% {
    transform: translateX(5px);
  }

  65% {
    transform: translateX(-4px);
  }
}

@keyframes day-dim {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.78;
  }
}

@keyframes day-crash {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }

  48% {
    transform: translateY(6px);
    opacity: 0.76;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mega-menu-trigger svg,
  .blog-jump-card-image img,
  .day-progress > div span,
  .day-meter-track span {
    transition: none;
  }

  .day-scene-card.day-fx-fog .day-scene-text,
  .day-scene-card.day-fx-fog .day-quote {
    filter: none;
  }

  .day-scene-card.day-fx-delay .day-scene-body,
  .day-scene-card.day-fx-dim,
  .day-scene-card.day-fx-crash {
    animation: none;
  }
}

@media (max-width: 1050px) {
  .day-hero-grid,
  .day-stage,
  .day-scene-card,
  .day-result-grid,
  .day-home-teaser {
    grid-template-columns: 1fr;
  }

  .day-dashboard {
    position: static;
  }

  .day-mode-grid,
  .day-access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-scene-image img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 700px) {
  body.day-experience-active {
    background: var(--white);
  }

  body.day-experience-active .site-header {
    display: none;
  }

  body.day-experience-active main > section:not(#experience),
  body.day-experience-active .site-footer {
    display: none;
  }

  body.day-experience-active #experience {
    padding: 0;
  }

  body.day-experience-active #experience > .wrap {
    width: 100%;
  }

  .day-hero-grid {
    min-height: auto;
  }

  .day-shell {
    width: 100%;
    min-height: 100svh;
    padding: 0.75rem;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .day-mode-grid,
  .day-access-grid,
  .day-principles,
  .day-illustration-grid,
  .day-result-card dl {
    grid-template-columns: 1fr;
  }

  .day-mode {
    min-height: 0;
  }

  .day-game {
    gap: 0.65rem;
  }

  .day-game-top {
    position: sticky;
    z-index: 3;
    top: 0;
    align-items: center;
    padding: 0.4rem 0 0.55rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
  }

  .day-game-top h2 {
    margin: 0;
    font-size: clamp(1.25rem, 7vw, 1.6rem);
  }

  .day-game-top .blog-jump-kicker {
    margin: 0 0 0.15rem;
    font-size: 0.72rem;
  }

  .day-game-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: stretch;
  }

  .day-game-actions .share-button {
    min-height: 44px;
    padding: 0.42rem 0.55rem;
    font-size: 0.82rem;
  }

  .day-progress {
    gap: 0.3rem;
    font-size: 0.82rem;
  }

  .day-progress > div {
    height: 9px;
  }

  .day-dashboard {
    gap: 0.55rem;
    padding: 0.75rem;
  }

  .day-dashboard h3 {
    margin: 0;
    font-size: 1rem;
  }

  .day-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .day-meter-head,
  .day-stat-row {
    font-size: 0.82rem;
  }

  .day-meter-track {
    height: 7px;
  }

  .day-stat-row {
    padding-top: 0.5rem;
  }

  .day-game .day-scene-image {
    display: none;
  }

  .day-scene-card {
    border: 0;
    box-shadow: none;
  }

  .day-scene-body {
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  .day-time {
    padding: 0.28rem 0.5rem;
    font-size: 0.8rem;
  }

  .day-scene-text {
    font-size: 1rem;
    line-height: 1.45;
  }

  .day-quote {
    padding: 0.72rem 0.78rem;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .day-choice {
    min-height: 66px;
    padding: 0.78rem;
  }

  .day-choice span,
  .day-choice em {
    font-size: 0.9rem;
  }

  .day-outcome {
    gap: 0.6rem;
    padding: 0.85rem;
  }

  .day-outcome .button {
    position: sticky;
    bottom: 0.65rem;
    justify-self: stretch;
    width: 100%;
  }

  .day-result-card {
    padding: 1rem;
  }

  .day-result-card img {
    width: 148px;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  body {
    color: #111827;
    background: #ffffff;
    font-size: 11pt;
    line-height: 1.42;
  }

  .site-header,
  .pathway-hero,
  .pathway-workspace,
  .pathway-result-actions,
  .pathway-copy-fallback,
  .section.alt,
  main > .section:not(#pathway),
  .site-footer {
    display: none !important;
  }

  .section {
    padding: 0;
  }

  .wrap {
    width: 100%;
  }

  .pathway-shell {
    display: block;
  }

  .pathway-result {
    position: static;
    display: block;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .pathway-print-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.85rem;
    border-bottom: 2px solid #dbe4f0;
  }

  .pathway-result-head {
    padding-bottom: 0.75rem;
    margin-bottom: 0.7rem;
    border-bottom: 1px solid #dbe4f0;
  }

  .blog-jump-kicker {
    color: #8a0040;
    font-size: 0.75rem;
  }

  .pathway-result-head h2 {
    font-size: 19pt;
  }

  .pathway-route {
    gap: 0.25rem;
    margin-bottom: 0.7rem;
  }

  .pathway-route span {
    min-height: 0;
    padding: 0.08rem 0.32rem;
    border-color: #dbe4f0;
    background: #f5f7fb;
    color: #0f2f5f;
    font-size: 8.5pt;
  }

  .pathway-output {
    break-inside: avoid;
    padding: 0.65rem 0 0;
    margin-top: 0.55rem;
    border-top: 1px solid #dbe4f0;
  }

  .pathway-output h3 {
    font-size: 12.5pt;
  }

  .pathway-output-list,
  .pathway-link-list {
    gap: 0.18rem;
    padding-left: 1.05rem;
  }

  .pathway-link-list a::after {
    content: " (" attr(href) ")";
    color: #4b5563;
    font-weight: 400;
  }
}

.site-footer {
  --footer-ink: #f2f7fc;
  --footer-muted: #b7c9de;
  --footer-soft: #8fa8c4;
  --footer-line: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(201, 0, 90, 0.16), transparent 55%),
    radial-gradient(50% 70% at 0% 100%, rgba(61, 140, 220, 0.1), transparent 50%),
    linear-gradient(165deg, #041a36 0%, var(--fnd-navy, #002b5f) 52%, #021226 100%);
  color: var(--footer-ink);
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer .wrap {
  /* Keep legacy selector harmless for static pages */
  max-width: var(--wrap, 1120px);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(15rem, 0.95fr) minmax(0, 2.05fr);
  gap: 2.75rem 3.25rem;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
  align-items: start;
}

.footer-brand {
  max-width: 22rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1.15rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 12px 28px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.footer-logo:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 16px 34px rgba(0, 0, 0, 0.22);
}

.footer-logo picture,
.footer-logo img {
  display: block;
}

.footer-logo img {
  width: min(200px, 58vw);
  height: auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.footer-intro {
  margin: 0 0 1rem;
  color: var(--footer-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.footer-company {
  display: grid;
  gap: 0.2rem;
  margin: 0 0 1.25rem;
  color: var(--footer-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.footer-company strong {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.footer-brand-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
}

.footer-donate {
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.92rem;
  box-shadow: 0 8px 18px rgba(201, 0, 90, 0.28);
}

.footer-text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: #ffc4dc !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-text-link:hover {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.35rem;
}

.footer-col h3 {
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--footer-line);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.footer-link-list a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  padding: 0.2rem 0;
  color: var(--footer-muted);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.footer-link-list a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

/* Legacy flat link dump (static HTML pages) */
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1rem;
}

.footer-links a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  color: var(--footer-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.site-footer p {
  color: var(--footer-muted);
}

.site-footer a {
  color: var(--footer-muted);
}

.small {
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer .small {
  color: var(--footer-soft);
}

.footer-bottom {
  border-top: 1px solid var(--footer-line);
  background: rgba(0, 0, 0, 0.22);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1.15rem;
}

.footer-disclaimer {
  margin: 0;
  max-width: 46rem;
  color: var(--footer-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

.footer-disclaimer a {
  color: #d7e6f7;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.footer-disclaimer a:hover {
  color: #fff;
}

.footer-disclaimer-sep {
  margin: 0 0.35rem;
  opacity: 0.7;
}

.footer-credit {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none !important;
  color: #dbe9f8 !important;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
}

.footer-credit:hover {
  color: #fff !important;
}

.footer-credit-label {
  opacity: 0.88;
}

.footer-credit-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.footer-credit:hover .footer-credit-logo {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.footer-credit-logo img {
  display: block;
  height: 26px;
  width: auto;
  max-width: 132px;
}

/* Legacy “built by” line (static HTML) */
.site-footer > .built-by,
.site-footer p.built-by {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0.85rem 1rem 1.1rem;
  border-top: 1px solid var(--footer-line);
  background: rgba(0, 0, 0, 0.22);
}

.site-footer .built-by a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.65rem;
  color: #dbe9f8;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.84rem;
}

.site-footer .built-by a::after {
  content: "";
  display: inline-block;
  width: 120px;
  height: 28px;
  background: #fff url("/assets/img/partners/hull-digital-logo.png") center / contain no-repeat;
  border-radius: 10px;
  padding: 0.2rem 0.4rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

@media (max-width: 960px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2.1rem;
    padding-top: 2.25rem;
    padding-bottom: 1.75rem;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem 1.35rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-credit {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem 1rem;
  }

  .footer-logo {
    padding: 0.55rem 0.7rem;
  }

  .footer-logo img {
    width: min(168px, 70vw);
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-brand-actions {
    width: 100%;
  }

  .footer-donate {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }
}

/* FND Connect Community */
.community-body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fbff 0%, #fff7fb 100%);
  color: var(--text);
}

.community-site-header {
  box-shadow: 0 8px 24px rgba(0, 43, 95, 0.07);
}

.community-site-nav {
  gap: 0;
}

.community-site-nav a,
.community-site-nav .nav-logout {
  font-size: 0.86rem;
}

.site-nav form {
  display: inline-flex;
  margin: 0;
}

.nav-logout {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.55rem 0.52rem;
  border: 0;
  border-bottom: 4px solid transparent;
  background: transparent;
  color: var(--fnd-magenta);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.nav-logout:hover {
  border-bottom-color: var(--fnd-magenta);
  color: var(--fnd-navy);
}

.community-top {
  position: sticky;
  z-index: 12;
  top: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 24px rgba(0, 43, 95, 0.08);
}

.community-brand {
  display: inline-flex;
  align-items: center;
}

.community-brand img {
  width: 206px;
  max-height: 64px;
  object-fit: contain;
}

.community-top-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.link-button {
  border: 0;
  padding: 0;
  color: var(--fnd-magenta);
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.community-app {
  display: grid;
  grid-template-columns: 230px minmax(0, 720px) 300px;
  gap: 1.15rem;
  width: min(100% - 1.5rem, 1320px);
  margin: 0 auto;
  padding: 1.1rem 0 2rem;
  align-items: start;
}

.community-app.simple {
  grid-template-columns: 230px minmax(0, 890px);
}

.community-sidebar,
.community-rail {
  position: sticky;
  top: 126px;
}

.community-sidebar nav {
  display: grid;
  gap: 0.25rem;
}

.community-sidebar a {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.75rem;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
}

.community-sidebar a span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--pale);
  color: var(--fnd-magenta);
  font-size: 0.78rem;
}

.community-sidebar a:hover,
.community-sidebar a.is-active {
  background: var(--white);
  box-shadow: 0 5px 18px rgba(0, 43, 95, 0.08);
}

.community-sidebar a.is-active {
  color: var(--fnd-magenta);
}

.community-sidebar a.is-active span {
  background: var(--fnd-magenta);
  color: var(--white);
}

.community-main {
  display: grid;
  gap: 1rem;
}

.community-app .community-panel,
.community-rail .community-panel {
  display: block;
  padding: 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: none;
}

.community-rail {
  display: grid;
  gap: 1rem;
}

.community-rail h2,
.community-app .community-panel h2 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.urgent-panel {
  border-left: 8px solid var(--warning) !important;
  background: #fff8cf !important;
}

.community-page-title,
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 43, 95, 0.04);
}

.community-page-title h1,
.profile-header h1 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
}

.community-page-title p,
.profile-header p {
  margin-bottom: 0;
  color: var(--muted);
}

.community-flash {
  padding: 0.85rem 1rem;
  border-left: 6px solid var(--fnd-magenta);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--pale);
  color: var(--ink);
  font-weight: 700;
}

.community-flash-error {
  border-left-color: #d5281b;
  background: #fde9e7;
}

.composer,
.post-card,
.auth-card,
.settings-form,
.resource-row,
.community-empty,
.admin-review {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 43, 95, 0.04);
}

.composer,
.post-card,
.settings-form,
.community-empty,
.admin-review {
  padding: 1.05rem;
}

.composer {
  display: grid;
  gap: 0.85rem;
}

.composer-head,
.post-card-head,
.profile-header-main,
.comment,
.panel-title-row,
.profile-editor {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.profile-editor {
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.composer-head p,
.post-card-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.avatar {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fnd-navy), var(--fnd-magenta) 68%, var(--fnd-rose));
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
}

.avatar.small {
  width: 34px;
  height: 34px;
  font-size: 0.78rem;
}

.avatar.large {
  width: 80px;
  height: 80px;
  font-size: 1.35rem;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.champion-profile-medallion {
  position: relative;
  width: 8.8rem;
  height: 8.8rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.champion-profile-medallion .avatar.large {
  position: relative;
  width: 5.4rem;
  height: 5.4rem;
  margin-top: -0.45rem;
  border: 0;
  z-index: 0;
}

.champion-profile-medallion__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.champion-profile-generated {
  width: 8.8rem;
  height: 8.8rem;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 43, 95, 0.14));
}

.champion-profile-title {
  min-height: 38px;
  margin: 0.2rem 0 0.45rem;
  display: inline-flex;
  align-items: center;
  color: #c9005a;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.champion-profile-title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.composer textarea,
.comment-form textarea,
.settings-form textarea,
.auth-card textarea,
.auth-card input,
.auth-card select,
.settings-form input,
.settings-form select,
.composer input,
.composer select,
.report-box input,
.report-box select,
.report-box textarea,
.feed-controls select,
.admin-review input,
.admin-review select,
.admin-review textarea {
  width: 100%;
  min-height: 44px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
}

input[type="file"] {
  padding: 0.45rem;
  background: var(--panel);
}

input[type="file"]::file-selector-button {
  min-height: 36px;
  margin-right: 0.75rem;
  border: 2px solid var(--fnd-magenta);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--fnd-magenta);
  font-weight: 800;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
  border-color: var(--fnd-navy);
  color: var(--fnd-navy);
}

input[type="checkbox"] {
  appearance: none;
  display: inline-grid;
  width: 22px !important;
  height: 22px;
  min-height: 22px !important;
  flex: 0 0 22px;
  place-content: center;
  border: 2px solid var(--fnd-magenta);
  border-radius: 4px;
  padding: 0;
  background: var(--white);
  cursor: pointer;
}

input[type="checkbox"]::before {
  content: "";
  width: 12px;
  height: 12px;
  transform: scale(0);
  transition: transform 0.12s ease-in-out;
  background: var(--fnd-magenta);
  clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 18%, 84% 5%, 38% 68%);
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.composer textarea,
.comment-form textarea,
.settings-form textarea,
.report-box textarea,
.admin-review textarea {
  resize: vertical;
}

.composer-grid,
.form-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.composer-alert {
  padding: 0.75rem;
  border-left: 6px solid var(--warning);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fff8cf;
  font-weight: 700;
}

.composer-details summary,
.report-box summary {
  padding: 0.55rem 2.4rem 0.55rem 0;
  font-size: 0.95rem;
}

.media-upload-row {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.media-upload-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.composer-details > div {
  padding: 0.5rem 0 0;
}

.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.composer-foot p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.feed-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.feed-controls label {
  min-width: 190px;
}

.feed-stack,
.resource-list,
.admin-list,
.admin-actions-stack {
  display: grid;
  gap: 1rem;
}

.post-card {
  display: grid;
  gap: 0.8rem;
}

.post-card-head h2 {
  margin: 0 0 0.1rem;
  font-size: 1.08rem;
}

.post-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.post-meta-line span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: capitalize;
}

.post-body {
  color: var(--ink);
  font-size: 1.03rem;
}

.link-preview {
  display: block;
  padding: 0.75rem;
  border-left: 5px solid var(--fnd-magenta);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--pale);
  word-break: break-word;
  font-weight: 800;
}

.post-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
}

.post-media {
  width: 100%;
  max-height: 520px;
  border-radius: var(--radius);
  background: var(--fnd-deep-navy);
}

.post-stats,
.reaction-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.post-stats {
  color: var(--muted);
  font-size: 0.9rem;
}

.reaction-row {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 0;
}

.reaction-row form {
  margin: 0;
}

.reaction-row button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  border-radius: var(--radius);
  padding: 0.42rem 0.6rem;
  background: transparent;
  color: var(--fnd-magenta);
  font-weight: 800;
  cursor: pointer;
}

.reaction-row button:hover {
  background: var(--pale);
}

.reaction-row button span {
  color: var(--muted);
}

.comment-list {
  display: grid;
  gap: 0.7rem;
}

.comment {
  align-items: flex-start;
  padding: 0.7rem;
  border-radius: var(--radius);
  background: var(--panel);
}

.comment p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: end;
}

.report-box {
  font-size: 0.94rem;
}

.report-box form {
  display: grid;
  gap: 0.6rem;
  padding-top: 0.5rem;
}

.report-box.inline {
  min-width: 240px;
}

.compact-list {
  display: grid;
  gap: 0.55rem;
}

.compact-list a {
  font-weight: 800;
}

.community-landing-hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(110deg, #f8fbff 0%, #ffffff 56%, #fff1f7 100%);
}

.community-landing-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: 580px;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.community-landing-hero p {
  max-width: 760px;
  color: var(--text);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

.community-preview-panel {
  display: grid;
  gap: 1rem;
}

.preview-post {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.preview-post div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.preview-post span {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--pale);
  color: var(--fnd-navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.community-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.community-page-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.community-page-card h2,
.community-page-card h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.profile-bio {
  font-size: 1.02rem;
}

.resource-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.resource-row h2 {
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-stats article {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.admin-stats strong {
  display: block;
  color: var(--fnd-navy);
  font-size: 1.8rem;
  line-height: 1;
}

.admin-stats span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.panel-title-row {
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.admin-item {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}

.admin-item p,
.admin-review p,
.community-empty p {
  margin-bottom: 0.35rem;
}

.admin-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 1rem;
}

.admin-review.compact {
  grid-template-columns: minmax(0, 1fr) 240px;
}

.admin-review form {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.cms-preview-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.65rem 1rem;
  background: var(--warning);
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

.admin-cms-body {
  background: var(--panel);
}

.admin-cms-header .topbar {
  background: linear-gradient(90deg, var(--fnd-deep-navy), var(--fnd-magenta));
}

.admin-cms-app {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 1.15rem;
  width: min(100% - 1.5rem, 1320px);
  margin: 0 auto;
  padding: 1.1rem 0 2rem;
  align-items: start;
}

.admin-cms-sidebar {
  position: sticky;
  top: 126px;
}

.admin-cms-sidebar nav {
  display: grid;
  gap: 0.7rem;
}

.admin-cms-sidebar-section {
  display: grid;
  gap: 0.25rem;
}

.admin-cms-sidebar-label {
  padding: 0 0.75rem 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-cms-sidebar a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0.62rem 0.75rem;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
}

.admin-cms-sidebar a:hover,
.admin-cms-sidebar a.is-active {
  background: var(--white);
  color: var(--fnd-magenta);
  box-shadow: 0 5px 18px rgba(0, 43, 95, 0.08);
}

.admin-cms-main {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.admin-cms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.admin-cms-panel {
  display: block;
  padding: 1.05rem;
  box-shadow: none;
}

.admin-cms-panel h2 {
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
}

.admin-cms-table {
  display: grid;
  gap: 0.65rem;
}

.admin-cms-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}

.admin-cms-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-cms-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: capitalize;
}

.admin-cms-status.published {
  background: var(--pale-blue);
  color: var(--fnd-navy);
}

.admin-cms-status.draft {
  background: var(--pale);
  color: var(--fnd-magenta);
}

.admin-cms-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 1rem;
  align-items: start;
}

.admin-cms-form-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-cms-form-grid.compact .admin-cms-panel:last-child {
  grid-column: 1 / -1;
}

.admin-cms-side {
  display: grid;
  gap: 1rem;
}

.admin-cms-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-cms-editor {
  min-height: 520px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
  font-size: 0.9rem !important;
  line-height: 1.5;
}

.admin-social-generator {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.admin-social-generator-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-social-generator-head p,
.admin-social-preview p {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-social-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.admin-social-form label {
  min-width: 0;
}

.admin-social-form input,
.admin-social-form textarea {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-social-form .button {
  justify-self: start;
}

.admin-social-preview {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.admin-social-preview img {
  width: 180px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--white);
}

.admin-social-preview code {
  overflow-wrap: anywhere;
  color: var(--fnd-navy);
  font-weight: 800;
}

.admin-cms-archive {
  justify-self: end;
}

.admin-cms-inline-form,
.admin-cms-nav-form {
  display: grid;
  grid-template-columns: 150px minmax(160px, 1fr) minmax(190px, 1.2fr) 100px auto auto;
  gap: 0.75rem;
  align-items: end;
}

.admin-cms-check {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 800;
}

.admin-cms-check input {
  width: 22px;
}

.admin-cms-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.admin-cms-media-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.admin-cms-media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--panel);
}

.admin-cms-media-file {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(0, 43, 95, 0.08), rgba(201, 0, 90, 0.1)),
    var(--panel);
}

.admin-cms-media-file span,
.admin-asset-file-icon {
  display: inline-grid;
  min-width: 58px;
  min-height: 42px;
  place-items: center;
  border: 2px solid rgba(0, 43, 95, 0.18);
  border-radius: 6px;
  background: var(--white);
  color: var(--fnd-navy);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.admin-cms-media-card form {
  padding: 0.9rem;
}

.admin-cms-media-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-asset-picker {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.admin-asset-label {
  margin: 0;
  color: var(--fnd-navy);
  font-weight: 900;
}

.admin-asset-current {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  min-height: 76px;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.admin-asset-current img {
  width: 72px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--panel);
}

.admin-asset-current code {
  overflow-wrap: anywhere;
  color: var(--fnd-navy);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: normal;
}

.admin-asset-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 800;
}

.admin-asset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-asset-actions .button {
  min-height: 38px;
  padding: 0.45rem 0.75rem;
  font-size: 0.84rem;
}

.admin-asset-manual {
  color: var(--muted);
  font-weight: 800;
}

.admin-asset-manual summary {
  cursor: pointer;
}

.admin-asset-manual input {
  margin-top: 0.5rem;
}

.admin-asset-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-asset-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 13, 48, 0.62);
}

.admin-asset-modal[hidden] {
  display: none;
}

.admin-asset-modal-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.85rem;
  width: min(100%, 920px);
  max-height: min(760px, calc(100dvh - 2rem));
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 13, 48, 0.28);
}

.admin-asset-modal-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.admin-asset-modal-head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.18rem;
}

.admin-asset-modal-head p {
  margin: 0;
  color: var(--muted);
}

.admin-asset-modal-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: end;
}

.admin-asset-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.7rem;
  min-height: 0;
  overflow: auto;
  padding-right: 0.15rem;
}

.admin-asset-card {
  display: grid;
  grid-template-rows: 120px minmax(0, 1fr);
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.admin-asset-card:hover,
.admin-asset-card:focus-visible {
  border-color: rgba(201, 0, 90, 0.42);
  box-shadow: 0 10px 24px rgba(0, 43, 95, 0.12);
  outline: none;
}

.admin-asset-card img,
.admin-asset-card-file {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: var(--panel);
}

.admin-asset-card-file {
  display: grid;
  place-items: center;
}

.admin-asset-card-body {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
  padding: 0.65rem;
}

.admin-asset-card strong,
.admin-asset-card code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-asset-card strong {
  color: var(--fnd-navy);
  font-size: 0.9rem;
}

.admin-asset-card code,
.admin-asset-card span {
  color: var(--muted);
  font-size: 0.76rem;
}

.admin-asset-upload-status {
  margin: 0;
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-resource-create {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.admin-resource-bulk-form {
  display: grid;
  gap: 1rem;
}

.admin-resource-toolbar,
.admin-resource-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.admin-resource-toolbar {
  position: sticky;
  top: 116px;
  z-index: 10;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(0, 43, 95, 0.08);
  backdrop-filter: blur(10px);
}

.admin-resource-toolbar p {
  margin: 0;
  color: var(--muted);
}

.admin-resource-list {
  display: grid;
  gap: 0.85rem;
}

.admin-resource-row {
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.admin-resource-row-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 0.75rem;
  align-items: center;
}

.admin-resource-row-head div {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.admin-resource-row-head strong {
  overflow: hidden;
  color: var(--fnd-navy);
  font-size: 1.02rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-resource-row-head span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.admin-resource-grid label:first-child {
  grid-column: span 2;
}

blockquote {
  margin: 0.7rem 0;
  padding: 0.65rem 0.85rem;
  border-left: 5px solid var(--fnd-magenta);
  background: var(--pale);
}

.auth-page {
  background: var(--panel);
}

.auth-card {
  width: min(100% - 2rem, 520px);
  margin: 0 auto;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: clamp(2.15rem, 5vw, 3.15rem);
}

.auth-card.wide {
  width: min(100% - 2rem, 860px);
}

.auth-card form,
.settings-form {
  display: grid;
  gap: 0.85rem;
}

.auth-alt {
  margin-top: 0.85rem;
}

.consent-list {
  display: grid;
  gap: 0.65rem;
  padding: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.consent-list label {
  display: grid;
  min-height: 44px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  line-height: 1.45;
}

.consent-list label > span {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
}

.consent-list input {
  margin-top: 0.15rem;
}

.back-link {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  font-weight: 800;
}

/* Clinician portal and public register */
.clinician-site {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 48%, #ffffff 100%);
}

.clinician-hero-site {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 247, 0.9)),
    radial-gradient(circle at 88% 18%, rgba(201, 0, 90, 0.12), transparent 36%);
}

.clinician-hero-site .wrap,
.clinician-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: stretch;
}

.clinician-hero-site .wrap {
  min-height: 620px;
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.clinician-hero-copy {
  display: grid;
  align-content: center;
}

.eyebrow {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  min-height: 34px;
  margin-bottom: 1rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(201, 0, 90, 0.24);
  border-radius: 999px;
  background: var(--pale);
  color: var(--fnd-navy) !important;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.4rem;
}

.clinician-portal-card,
.clinician-form-card,
.clinician-empty,
.clinician-card,
.clinician-admin-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.clinician-portal-card {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: linear-gradient(150deg, var(--fnd-navy), var(--fnd-deep-navy));
  color: var(--white);
}

.clinician-portal-card span {
  color: #ffc4dd;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clinician-portal-card h2,
.clinician-portal-card p,
.clinician-portal-card li {
  color: var(--white);
}

.clinician-portal-card ul {
  display: grid;
  gap: 0.75rem;
  padding-left: 1.1rem;
}

.clinician-portal-card .card-link {
  color: var(--white);
}

.clinician-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.clinician-value-grid article,
.clinician-checklist article {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 43, 95, 0.04);
}

.clinician-checklist {
  display: grid;
  gap: 0.8rem;
}

.clinician-checklist article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
}

.clinician-checklist strong {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--fnd-navy);
  color: var(--white);
}

.clinician-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.1rem;
}

.clinician-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.25rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.clinician-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 0, 90, 0.25);
  box-shadow: 0 18px 40px rgba(0, 43, 95, 0.14);
}

.clinician-card.is-highlighted {
  border-color: var(--fnd-magenta);
  box-shadow: 0 0 0 3px rgba(201, 0, 90, 0.18), var(--shadow);
}

.clinician-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.clinician-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.clinician-pill.is-clinician {
  background: var(--pale-blue);
  color: var(--fnd-navy);
}

.clinician-pill.is-service {
  background: #eef4ff;
  color: #1f3d80;
}

.clinician-pill.is-claimed {
  background: var(--pale);
  color: var(--fnd-magenta);
}

.clinician-card-id {
  min-width: 0;
}

.clinician-card-id h3 {
  margin-bottom: 0.15rem;
  font-size: 1.18rem;
  line-height: 1.25;
}

.clinician-card-id p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.clinician-card-loc {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.clinician-card-loc svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 0.05rem;
  fill: var(--fnd-magenta);
}

.clinician-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clinician-chips .chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.74rem;
  font-weight: 800;
}

.chip-open {
  background: #e9f8ef;
  border-color: rgba(20, 140, 80, 0.22);
  color: #137a47;
}

.chip-remote {
  background: var(--pale-blue);
  border-color: rgba(0, 43, 95, 0.16);
  color: var(--fnd-navy);
}

.chip-children {
  background: #fff4e6;
  border-color: rgba(196, 120, 10, 0.22);
  color: #8b5205;
}

.clinician-card-more {
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
}

.clinician-card-more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  color: var(--fnd-navy);
  font-weight: 800;
  font-size: 0.92rem;
}

.clinician-card-more > summary::-webkit-details-marker {
  display: none;
}

.clinician-card-more > summary:hover {
  color: var(--fnd-magenta);
}

.clinician-card-more > summary svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.clinician-card-more[open] > summary svg {
  transform: rotate(180deg);
}

.clinician-card-more > summary .more-close {
  display: none;
}

.clinician-card-more[open] > summary .more-open {
  display: none;
}

.clinician-card-more[open] > summary .more-close {
  display: inline;
}

.clinician-card-more-body {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.clinician-note {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.clinician-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.clinician-contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(0, 43, 95, 0.14);
  border-radius: 999px;
  background: var(--white);
  color: var(--fnd-navy);
  font-weight: 800;
  font-size: 0.86rem;
  text-decoration: none;
}

.clinician-contacts a:hover {
  border-color: rgba(201, 0, 90, 0.3);
  color: var(--fnd-magenta);
}

.clinician-listing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.84rem;
}

.clinician-listing-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

.clinician-card-actions {
  margin-top: auto;
  padding-top: 0.2rem;
}

.clinician-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  background: var(--fnd-navy);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  transition: background 0.16s ease;
}

.clinician-cta:hover {
  background: var(--fnd-magenta);
  color: var(--white);
}

.clinician-locate {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(0, 43, 95, 0.16);
  border-radius: 999px;
  background: var(--white);
  color: var(--fnd-navy);
  font: inherit;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
}

.clinician-locate svg {
  width: 16px;
  height: 16px;
  fill: var(--fnd-magenta);
}

.clinician-locate:hover {
  border-color: rgba(201, 0, 90, 0.32);
  color: var(--fnd-magenta);
}

.clinician-map-wrap {
  margin-bottom: 1.4rem;
}

.clinician-map {
  height: clamp(320px, 45vh, 480px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 0;
}

/* Leaflet's stock marker is only 25px wide. Keep the familiar marker artwork
   but give its interactive image and zoom controls a full touch target. */
.clinician-map .leaflet-marker-icon {
  width: 44px !important;
  height: 44px !important;
  margin-top: -44px !important;
  margin-left: -22px !important;
  object-fit: contain;
}

.clinician-map .leaflet-control-zoom a {
  width: 44px;
  height: 44px;
  line-height: 44px;
}

.clinician-map-note {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.clinician-popup {
  display: grid;
  gap: 0.35rem;
  min-width: 160px;
}

.clinician-popup-name {
  font-size: 0.98rem;
  color: var(--ink);
}

.clinician-popup-sub {
  color: var(--muted);
  font-size: 0.82rem;
}

.clinician-popup-btn {
  justify-self: start;
  min-height: 44px;
  margin-top: 0.2rem;
  padding: 0.3rem 0.7rem;
  border: none;
  border-radius: 999px;
  background: var(--fnd-navy);
  color: var(--white);
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
}

.clinician-popup-btn:hover {
  background: var(--fnd-magenta);
}

.clinician-card-head {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.clinician-card-head h2,
.clinician-card-head h3 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}

.clinician-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.clinician-avatar {
  display: inline-grid;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--pale);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--fnd-navy), var(--fnd-magenta));
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 900;
}

.clinician-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clinician-meta {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.clinician-meta div {
  display: grid;
  gap: 0.15rem;
}

.clinician-meta dt {
  color: var(--fnd-magenta);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.clinician-meta dd {
  margin: 0;
  color: var(--text);
}

.clinician-card-base,
.clinician-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.clinician-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.2rem 0.65rem;
  border: 1px solid rgba(0, 43, 95, 0.16);
  border-radius: 999px;
  background: var(--pale-blue);
  color: var(--fnd-navy);
  font-size: 0.76rem;
  font-weight: 900;
}

.clinician-status.open {
  border-color: rgba(201, 0, 90, 0.2);
  background: var(--pale);
  color: var(--fnd-magenta);
}

.clinician-status.service {
  border-color: rgba(6, 31, 74, 0.18);
  background: #eef4ff;
  color: var(--fnd-navy);
}

.clinician-status.source {
  border-color: rgba(201, 0, 90, 0.22);
  background: #fff1f7;
  color: var(--fnd-magenta);
}

.clinician-card-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(0, 43, 95, 0.12);
  border-radius: 999px;
  background: var(--white);
  color: var(--fnd-navy);
  font-weight: 800;
  text-decoration: none;
}

.clinician-card-actions a:hover {
  border-color: rgba(201, 0, 90, 0.28);
  color: var(--fnd-magenta);
}

.clinician-card-details {
  padding: 0.75rem;
  border: 1px solid rgba(0, 43, 95, 0.1);
  border-radius: calc(var(--radius) - 4px);
  background: #fbfcff;
}

.clinician-card-details summary {
  min-height: 44px;
  color: var(--fnd-navy);
  font-weight: 900;
  cursor: pointer;
}

.clinician-card-details p {
  margin: 0.55rem 0 0;
  color: var(--text);
  font-size: 0.94rem;
}

.clinician-source-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.clinician-source-note a {
  color: var(--fnd-navy);
  font-weight: 800;
}

.clinician-source-note span {
  display: block;
  margin-top: 0.15rem;
}

.clinician-empty {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: linear-gradient(135deg, #ffffff, var(--pale));
}

.clinician-form-hero {
  background: linear-gradient(120deg, #ffffff, var(--pale));
}

.clinician-form-card {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.clinician-form-card form,
.clinician-form-section {
  display: grid;
  gap: 1rem;
}

.clinician-form-section {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.clinician-form-section h2 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.clinician-review-note {
  display: grid;
  gap: 0.2rem;
  width: min(100%, 560px);
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid rgba(201, 0, 90, 0.24);
  border-radius: var(--radius);
  background: var(--white);
}

.clinician-directory-hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #ffffff, var(--pale));
}

.clinician-request-hero .clinician-portal-card {
  align-content: start;
}

.clinician-request-summary {
  align-self: start;
}

.clinician-search {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: end;
  margin-top: 1.4rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 43, 95, 0.05);
}

.clinician-search input,
.clinician-search select,
.clinician-form-card input,
.clinician-form-card select,
.clinician-form-card textarea,
.admin-filter-form select {
  width: 100%;
  min-height: 44px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
}

.clinician-search-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 0.75rem;
  align-items: center;
}

.clinician-admin-list,
.clinician-admin-card {
  display: grid;
  gap: 1rem;
}

.clinician-admin-card {
  padding: 1rem;
}

.clinician-request-card {
  border-left: 4px solid var(--fnd-magenta);
}

.clinician-admin-card .clinician-card-head {
  align-items: flex-start;
}

.clinician-admin-card .clinician-card-head > div {
  flex: 1;
}

.clinician-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.clinician-admin-grid > div,
.clinician-admin-details {
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.clinician-admin-grid strong {
  color: var(--ink);
}

.clinician-admin-grid p,
.clinician-admin-details p {
  margin: 0.35rem 0 0;
}

.clinician-admin-details summary {
  color: var(--fnd-navy);
  font-weight: 900;
  cursor: pointer;
}

.admin-filter-form {
  min-width: 220px;
}

.clinician-admin-form {
  box-shadow: none;
}

/* Used on /get-involved and as a callout band on the homepage */
.get-involved-home-band {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border-left: 8px solid var(--fnd-magenta);
  background: var(--white);
}

.get-involved-home-band p {
  max-width: 760px;
}

/* Homepage: section already provides vertical rhythm — avoid double-padding
   and a cramped white box inside .section.alt */
.home-page #get-involved {
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
}

.home-page #get-involved .get-involved-home-band {
  padding: 0 0 0 1.15rem;
  border-left: 5px solid var(--fnd-magenta);
  background: transparent;
}

.home-page #get-involved .blog-jump-kicker {
  margin: 0 0 0.45rem;
}

.home-page #get-involved h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.2;
}

.home-page #get-involved .get-involved-home-band > div > p:not(.blog-jump-kicker) {
  margin: 0 0 1.1rem;
}

.home-page #get-involved .button-row {
  margin: 0;
}

.get-involved-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 43, 95, 0.16);
  background:
    linear-gradient(90deg, rgba(0, 26, 59, 0.88), rgba(0, 43, 95, 0.72) 48%, rgba(201, 0, 90, 0.24)),
    url("/assets/img/fnd-day/day-with-fnd-hero.jpg") center / cover;
  color: var(--white);
}

.get-involved-hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  min-height: min(720px, calc(100svh - 118px));
  padding-top: clamp(4rem, 10vw, 7rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.get-involved-hero-copy {
  max-width: 760px;
}

.get-involved-hero h1,
.get-involved-hero .lead,
.get-involved-hero .eyebrow {
  color: var(--white);
}

.get-involved-hero .lead {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
}

.get-involved-hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.get-involved-hero-list {
  display: grid;
  gap: 0;
  align-self: end;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.get-involved-hero-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
}

.get-involved-hero-list a::after {
  content: "\2192";
  flex: 0 0 auto;
}

.get-involved-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.get-involved-options article {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  min-height: 100%;
  padding: 1rem 0 0;
  border-top: 5px solid var(--fnd-magenta);
}

.get-involved-options strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.get-involved-options p {
  margin: 0;
  color: var(--muted);
}

.get-involved-options a {
  margin-top: 0.35rem;
  color: var(--fnd-navy);
  font-weight: 900;
}

.get-involved-form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(0, 43, 95, 0.08);
}

.section-head.compact {
  margin-bottom: 0.4rem;
}

.get-involved-review-panel {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 1rem;
  align-self: start;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border-left: 6px solid var(--fnd-magenta);
  background: var(--white);
}

.get-involved-review-panel ol {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding-left: 1.25rem;
}

.get-involved-review-panel li {
  padding-left: 0.25rem;
}

.get-involved-donate-box {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.get-involved-donate-box p {
  margin: 0;
  color: var(--muted);
}

.contribution-filter-form {
  display: grid;
  grid-template-columns: minmax(140px, 0.5fr) minmax(220px, 1fr);
  gap: 0.75rem;
}

.contribution-request-card {
  border-left: 4px solid var(--fnd-magenta);
}

/* ==========================================================================
   Admin ERP shell
   ========================================================================== */
.admin-cms-body {
  --erp-bg: #f5f7fb;
  --erp-surface: #ffffff;
  --erp-surface-alt: #f9fbfe;
  --erp-border: #d8e2ee;
  --erp-border-strong: #bdcad9;
  --erp-text: #142238;
  --erp-muted: #607086;
  --erp-accent: var(--fnd-magenta);
  --erp-blue: var(--fnd-navy);
  --erp-green: #157347;
  --erp-amber: #9a6700;
  --erp-red: #b42318;
  background: var(--erp-bg);
  color: var(--erp-text);
}

.admin-erp-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--erp-border);
  background: var(--erp-surface);
  box-shadow: 0 1px 0 rgba(20, 34, 56, 0.04);
}

.admin-erp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--erp-blue);
  font-weight: 900;
  text-decoration: none;
}

.admin-erp-brand img {
  width: 148px;
  max-height: 42px;
  object-fit: contain;
}

.admin-erp-brand span {
  padding-left: 0.8rem;
  border-left: 1px solid var(--erp-border);
  font-size: 0.92rem;
}

.admin-erp-header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.admin-erp-header-tools form {
  margin: 0;
}

.admin-erp-quick-create {
  position: relative;
}

.admin-erp-quick-create summary {
  list-style: none;
}

.admin-erp-quick-create summary::-webkit-details-marker {
  display: none;
}

.admin-erp-quick-create summary {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--erp-blue);
  border-radius: 6px;
  background: var(--erp-blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.admin-erp-quick-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 130;
  display: grid;
  min-width: 180px;
  padding: 0.35rem;
  border: 1px solid var(--erp-border-strong);
  border-radius: 8px;
  background: var(--erp-surface);
  box-shadow: 0 16px 34px rgba(20, 34, 56, 0.18);
}

.admin-erp-quick-menu a {
  justify-content: flex-start;
  min-height: 32px;
  border-color: transparent;
  background: transparent;
}

.admin-erp-header-tools a,
.admin-erp-header-tools button,
.erp-btn {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--erp-border);
  border-radius: 6px;
  background: var(--erp-surface);
  color: var(--erp-text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.admin-erp-header-tools a:hover,
.admin-erp-header-tools button:hover,
.erp-btn:hover {
  border-color: var(--erp-border-strong);
  color: var(--erp-accent);
}

.admin-cms-app {
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.admin-cms-sidebar {
  top: 64px;
  min-height: calc(100dvh - 64px);
  padding: 0.9rem 0.75rem 1.5rem;
  border-right: 1px solid var(--erp-border);
  background: #f8fafc;
}

.admin-cms-sidebar nav {
  gap: 0.9rem;
}

.admin-cms-sidebar-section {
  gap: 0.18rem;
}

.admin-cms-sidebar-label {
  padding: 0.35rem 0.55rem 0.2rem;
  color: var(--erp-muted);
  font-size: 0.67rem;
  letter-spacing: 0.075em;
}

.admin-cms-sidebar a {
  min-height: 34px;
  padding: 0.42rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--erp-text);
  font-size: 0.84rem;
  font-weight: 780;
}

.admin-cms-sidebar a:hover,
.admin-cms-sidebar a.is-active {
  border-color: var(--erp-border);
  background: var(--erp-surface);
  color: var(--erp-blue);
  box-shadow: none;
}

.admin-cms-sidebar a.is-active {
  border-left: 3px solid var(--erp-accent);
}

.admin-cms-main {
  gap: 1rem;
  min-height: calc(100dvh - 64px);
  padding: 1rem;
}

.admin-cms-main .community-page-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--erp-border);
  border-radius: 8px;
  background: var(--erp-surface);
}

.admin-cms-main .community-page-title h1 {
  margin: 0 0 0.2rem;
  color: var(--erp-text);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
}

.admin-cms-main .community-page-title p {
  margin: 0;
  color: var(--erp-muted);
  font-size: 0.92rem;
}

.admin-cms-panel,
.community-panel.admin-cms-panel,
.admin-cms-main .card {
  border: 1px solid var(--erp-border);
  border-radius: 8px;
  background: var(--erp-surface);
  box-shadow: none;
}

.admin-cms-panel {
  padding: 1rem;
}

.admin-stats,
.erp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-stats article,
.erp-kpi {
  display: grid;
  gap: 0.28rem;
  min-height: 92px;
  padding: 0.85rem;
  border: 1px solid var(--erp-border);
  border-radius: 8px;
  background: var(--erp-surface);
}

.admin-stats strong,
.erp-kpi strong {
  color: var(--erp-blue);
  font-size: 1.55rem;
  line-height: 1;
}

.admin-stats span,
.erp-kpi span {
  color: var(--erp-muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.erp-kpi small {
  color: var(--erp-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.erp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.erp-grid.equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.erp-report-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.erp-report-shortcut {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.18rem 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--erp-border);
  border-left: 4px solid var(--erp-accent);
  border-radius: 8px;
  background: var(--erp-surface);
  color: var(--erp-text);
  text-decoration: none;
}

.erp-report-shortcut strong {
  color: var(--erp-blue);
  font-size: 1rem;
}

.erp-report-shortcut span {
  color: var(--erp-muted);
  font-size: 0.84rem;
}

.erp-report-shortcut em {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--erp-accent);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.erp-report-shortcut:hover {
  border-color: var(--erp-border-strong);
  border-left-color: var(--erp-blue);
}

.erp-record-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.45fr);
  gap: 1rem;
  align-items: start;
}

.erp-panel-head,
.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.erp-panel-head h2,
.panel-title-row h2,
.admin-cms-panel h2 {
  margin: 0;
  color: var(--erp-text);
  font-size: 1rem;
  line-height: 1.2;
}

.erp-table-wrap,
.vol-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--erp-border);
  border-radius: 8px;
  background: var(--erp-surface);
}

.erp-table,
.vol-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--erp-surface);
}

.erp-table-compact {
  min-width: 0;
}

.erp-table-compact th,
.erp-table-compact td {
  padding: 0.58rem 0.62rem;
  font-size: 0.82rem;
}

.erp-table th,
.erp-table td,
.vol-table th,
.vol-table td {
  padding: 0.64rem 0.72rem;
  border-bottom: 1px solid var(--erp-border);
  color: var(--erp-text);
  font-size: 0.86rem;
  line-height: 1.35;
  text-align: left;
  vertical-align: top;
}

.erp-table th,
.vol-table th {
  background: var(--erp-surface-alt);
  color: var(--erp-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.erp-table tr:last-child td,
.vol-table tr:last-child td {
  border-bottom: 0;
}

.erp-table tfoot td {
  border-top: 1px solid var(--erp-border-strong);
  border-bottom: 0;
  background: var(--erp-surface-alt);
  font-weight: 850;
}

.erp-table a,
.vol-table a {
  color: var(--erp-blue);
  font-weight: 850;
}

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

.erp-actions form {
  margin: 0;
}

.erp-align-end {
  justify-content: flex-end;
  margin-bottom: 0.65rem;
}

.erp-btn.is-active {
  border-color: var(--erp-blue);
  background: var(--erp-blue);
  color: var(--white);
}

.erp-tab-actions {
  margin-bottom: 0.75rem;
}

.erp-subhead {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--erp-border);
}

.erp-form,
.erp-stack {
  display: grid;
  gap: 0.75rem;
}

.erp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.erp-form-grid .wide,
.erp-form .wide {
  grid-column: 1 / -1;
}

.erp-form label,
.erp-field {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  color: var(--erp-text);
  font-size: 0.82rem;
  font-weight: 850;
}

.erp-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 0.45rem;
}

.erp-check input {
  width: auto !important;
  min-height: 0 !important;
}

.erp-form input,
.erp-form select,
.erp-form textarea,
.erp-filter input,
.erp-filter select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--erp-border-strong);
  border-radius: 6px;
  background: var(--erp-surface);
  color: var(--erp-text);
  font: inherit;
  font-size: 0.9rem;
}

.erp-form select[multiple] {
  min-height: 118px;
  padding: 0.35rem;
}

.erp-form textarea {
  min-height: 110px;
  resize: vertical;
}

.erp-fieldset {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--erp-border);
  border-radius: 8px;
  background: var(--erp-surface-alt);
}

.erp-fieldset legend {
  padding: 0 0.25rem;
  color: var(--erp-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.erp-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.7rem;
}

.erp-btn:disabled,
.erp-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.52;
}

.erp-density-compact .admin-cms-panel,
.erp-density-compact .erp-kpi {
  padding: 0.7rem;
}

.erp-density-compact .erp-table th,
.erp-density-compact .erp-table td {
  padding: 0.42rem 0.5rem;
  font-size: 0.8rem;
}

.erp-density-compact .erp-kpi {
  min-height: 76px;
}

.erp-density-compact .erp-kpi strong {
  font-size: 1.32rem;
}

.erp-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: end;
}

.erp-filter label {
  display: grid;
  gap: 0.25rem;
  min-width: 170px;
  color: var(--erp-muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.erp-chip,
.admin-cms-status,
.vol-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--erp-border);
  border-radius: 999px;
  background: var(--erp-surface-alt);
  color: var(--erp-muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: capitalize;
}

.erp-chip.good,
.vol-badge--approved,
.vol-badge--active,
.admin-cms-status.published {
  border-color: #b7dfca;
  background: #edf9f2;
  color: var(--erp-green);
}

.erp-chip.warn,
.vol-badge--pending,
.admin-cms-status.draft {
  border-color: #f3d48d;
  background: #fff7e6;
  color: var(--erp-amber);
}

.erp-chip.danger,
.vol-badge--rejected,
.vol-badge--closed,
.vol-badge--archived {
  border-color: #f0b6ad;
  background: #fff1ef;
  color: var(--erp-red);
}

.erp-muted {
  color: var(--erp-muted);
}

.erp-money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.erp-danger {
  color: var(--erp-red) !important;
}

.erp-timeline {
  display: grid;
  gap: 0.65rem;
}

.erp-timeline-item {
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem;
  border: 1px solid var(--erp-border);
  border-left: 3px solid var(--erp-blue);
  border-radius: 6px;
  background: var(--erp-surface);
}

.erp-timeline-item[data-type="communication"] {
  border-left-color: var(--erp-accent);
}

.erp-timeline-item[data-type="note"] {
  border-left-color: var(--erp-amber);
}

.erp-timeline-item strong {
  color: var(--erp-text);
  font-size: 0.9rem;
}

.erp-timeline-item p {
  margin: 0;
  color: var(--erp-muted);
  font-size: 0.84rem;
}

.erp-mini-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.erp-mini-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--erp-border);
  color: var(--erp-muted);
  font-size: 0.86rem;
}

.erp-mini-list strong {
  color: var(--erp-text);
}

.erp-alert {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--erp-border);
  border-left: 4px solid var(--erp-accent);
  border-radius: 6px;
  background: var(--erp-surface);
  color: var(--erp-text);
  font-size: 0.9rem;
}

.erp-alert.warn {
  border-left-color: var(--erp-amber);
  background: #fffbeb;
}

.erp-muted.warn {
  color: var(--erp-amber);
  font-weight: 850;
}

.erp-filter-panel {
  display: grid;
  gap: 0.75rem;
}

.erp-role-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.erp-role-chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0.32rem 0.58rem;
  border: 1px solid var(--erp-border);
  border-radius: 999px;
  background: var(--erp-surface-alt);
  color: var(--erp-text);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.erp-role-chip:hover,
.erp-role-chip.is-active {
  border-color: var(--erp-blue);
  background: var(--erp-blue);
  color: #fff;
}

.erp-order-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.erp-order-action-grid section,
.erp-order-address {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--erp-border);
  border-radius: 8px;
  background: var(--erp-surface-alt);
}

.erp-order-action-grid h3,
.erp-order-address h3 {
  margin: 0;
  color: var(--erp-text);
  font-size: 0.92rem;
}

.erp-order-action-grid p,
.erp-order-address p {
  margin: 0;
}

.erp-savebar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding: 0.75rem;
  border: 1px solid var(--erp-border);
  border-radius: 8px;
  background: var(--erp-surface-alt);
}

.erp-record-type-grid,
.erp-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.erp-record-type,
.erp-metric-card {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--erp-border);
  border-radius: 8px;
  background: var(--erp-surface);
  color: var(--erp-text);
  text-decoration: none;
}

.erp-record-type:hover {
  border-color: var(--erp-accent);
}

.erp-record-type strong,
.erp-metric-card strong {
  color: var(--erp-blue);
  font-size: 1.25rem;
  line-height: 1.1;
}

.erp-record-type span,
.erp-record-type em,
.erp-metric-card span,
.erp-metric-card small {
  color: var(--erp-muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.erp-record-type em {
  color: var(--erp-amber);
}

.erp-metric-card i {
  display: block;
  width: var(--spark, 12%);
  min-width: 18px;
  height: 4px;
  border-radius: 999px;
  background: var(--erp-muted);
}

.erp-metric-card.is-up i {
  background: var(--erp-green);
}

.erp-metric-card.is-down i {
  background: var(--erp-red);
}

.erp-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.erp-detail-grid div {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid var(--erp-border);
  border-radius: 6px;
  background: var(--erp-surface-alt);
}

.erp-detail-grid dt {
  margin: 0 0 0.25rem;
  color: var(--erp-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.erp-detail-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--erp-text);
  font-size: 0.9rem;
  font-weight: 760;
}

.erp-record-shell {
  display: grid;
  gap: 1rem;
}

.erp-record-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--erp-border);
}

.erp-record-header h2 {
  margin: 0.15rem 0 0.15rem;
  color: var(--erp-blue);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.1;
}

.erp-record-header p {
  margin: 0;
  color: var(--erp-muted);
  font-size: 0.84rem;
  font-weight: 780;
}

.erp-record-kicker {
  color: var(--erp-muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.erp-record-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.erp-record-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.28fr);
  gap: 1rem;
  align-items: start;
}

.erp-detail-grid-form div {
  border-radius: 2px;
}

.erp-record-summary {
  overflow: hidden;
  border: 1px solid var(--erp-border-strong);
  border-radius: 8px;
  background: #eef4fb;
}

.erp-record-summary h2 {
  margin: 0;
  padding: 0.7rem 0.85rem;
  background: #315f83;
  color: #fff;
  font-size: 0.95rem;
}

.erp-record-summary dl {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0.55rem 0.85rem;
}

.erp-record-summary div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  padding: 0.38rem 0;
  border-bottom: 1px solid rgba(20, 34, 56, 0.1);
}

.erp-record-summary div:last-child {
  border-bottom: 0;
}

.erp-record-summary dt,
.erp-record-summary dd {
  margin: 0;
  font-size: 0.82rem;
}

.erp-record-summary dt {
  color: var(--erp-muted);
  font-weight: 800;
}

.erp-record-summary dd {
  color: var(--erp-text);
  font-weight: 900;
}

.erp-record-tabs {
  display: grid;
  gap: 0;
  border: 1px solid var(--erp-border);
  border-radius: 8px;
  background: var(--erp-surface);
  overflow: hidden;
}

.erp-tabbar {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--erp-border);
  background: var(--erp-surface-alt);
}

.erp-tabbar button {
  min-height: 40px;
  padding: 0 0.85rem;
  border: 0;
  border-right: 1px solid var(--erp-border);
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--erp-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.erp-tabbar button.is-active,
.erp-tabbar button:hover,
.erp-tabbar button:focus-visible {
  border-bottom-color: var(--erp-accent);
  background: var(--erp-surface);
  color: var(--erp-blue);
  outline: 0;
}

.erp-tab-panel {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.erp-tab-panel[hidden] {
  display: none;
}

.erp-sublist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.erp-sublist-head h2 {
  margin: 0;
  font-size: 0.98rem;
}

.erp-bulk-actions select,
.erp-bulk-actions input,
#bulk-cogs-form input {
  width: auto;
  min-height: 34px;
  border: 1px solid var(--erp-border-strong);
  border-radius: 6px;
  background: var(--erp-surface);
  color: var(--erp-text);
  font: inherit;
  font-size: 0.82rem;
}

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

.admin-erp-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: block;
  min-height: auto;
  padding: 0;
}

.admin-erp-topbar {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  min-height: 62px;
  padding: 0.55rem 1rem;
}

.admin-erp-search {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.admin-erp-search input {
  width: 100%;
  min-height: 38px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--erp-border-strong);
  border-radius: 6px;
  background: #fbfdff;
  color: var(--erp-text);
  font: inherit;
  font-size: 0.9rem;
}

.admin-erp-search input:focus {
  outline: 2px solid rgba(201, 0, 90, 0.18);
  border-color: var(--erp-accent);
}

.admin-erp-search-results {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  left: 0;
  z-index: 120;
  max-height: min(420px, calc(100dvh - 140px));
  overflow-y: auto;
  border: 1px solid var(--erp-border-strong);
  border-radius: 8px;
  background: var(--erp-surface);
  box-shadow: 0 18px 44px rgba(20, 34, 56, 0.18);
}

.admin-erp-search-results a,
.admin-erp-search-empty {
  display: grid;
  gap: 0.15rem;
  padding: 0.68rem 0.8rem;
  border-bottom: 1px solid var(--erp-border);
  color: var(--erp-text);
  text-decoration: none;
}

.admin-erp-search-results a:hover {
  background: var(--erp-surface-alt);
}

.admin-erp-search-results a:last-child {
  border-bottom: 0;
}

.admin-erp-search-results span {
  font-size: 0.9rem;
  font-weight: 900;
}

.admin-erp-search-results small,
.admin-erp-search-empty {
  color: var(--erp-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.admin-erp-menu {
  display: flex;
  min-height: 39px;
  align-items: stretch;
  gap: 0.1rem;
  padding: 0 1rem;
  overflow: visible;
  border-top: 1px solid var(--erp-border);
  background: #f8fafc;
}

.admin-erp-menu-item {
  position: relative;
}

.admin-erp-menu-trigger {
  height: 100%;
  min-height: 39px;
  padding: 0 0.82rem;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--erp-text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.admin-erp-menu-item.is-active .admin-erp-menu-trigger,
.admin-erp-menu-item.is-open .admin-erp-menu-trigger,
.admin-erp-menu-trigger:hover,
.admin-erp-menu-trigger:focus-visible {
  border-bottom-color: var(--erp-accent);
  background: var(--erp-surface);
  color: var(--erp-blue);
  outline: 0;
}

.admin-erp-mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  display: none;
  width: min(620px, calc(100vw - 2rem));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--erp-border-strong);
  border-radius: 0 0 8px 8px;
  background: var(--erp-surface);
  box-shadow: 0 18px 44px rgba(20, 34, 56, 0.18);
}

.admin-erp-menu-item.is-align-right .admin-erp-mega-panel {
  right: 0;
  left: auto;
}

.admin-erp-menu-item.is-align-left .admin-erp-mega-panel {
  right: auto;
  left: 0;
}

.admin-erp-menu-item.is-open .admin-erp-mega-panel,
.admin-erp-menu-item:focus-within .admin-erp-mega-panel,
.admin-erp-menu-item:hover .admin-erp-mega-panel {
  display: grid;
}

.admin-erp-mega-panel section {
  display: grid;
  align-content: start;
  gap: 0.15rem;
  padding: 0.9rem;
  border-right: 1px solid var(--erp-border);
}

.admin-erp-mega-panel section:last-child {
  border-right: 0;
}

.admin-erp-mega-panel h2 {
  margin: 0 0 0.35rem;
  color: var(--erp-muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-erp-mega-panel a {
  display: flex;
  min-height: 32px;
  align-items: center;
  padding: 0.38rem 0.45rem;
  border-radius: 5px;
  color: var(--erp-text);
  font-size: 0.84rem;
  font-weight: 780;
  text-decoration: none;
}

.admin-erp-mega-panel a:hover,
.admin-erp-mega-panel a.is-active {
  background: var(--erp-surface-alt);
  color: var(--erp-blue);
}

.admin-cms-app {
  grid-template-columns: minmax(0, 1fr) !important;
}

.admin-erp-sidebar {
  display: none;
}

.admin-cms-body .button,
.admin-cms-body .ra-btn,
.admin-cms-body .admin-review button,
.admin-cms-body .admin-cms-actions a,
.admin-cms-body .admin-cms-actions button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--erp-border);
  border-radius: 6px;
  background: var(--erp-surface);
  color: var(--erp-text);
  box-shadow: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.erp-btn.is-primary,
.admin-cms-body .ra-btn:not(.ghost) {
  border-color: var(--erp-blue);
  background: var(--erp-blue);
  color: #fff;
}

.admin-cms-body .button:hover,
.admin-cms-body .ra-btn:hover,
.admin-cms-body .admin-review button:hover,
.admin-cms-body .admin-cms-actions a:hover,
.admin-cms-body .admin-cms-actions button:hover {
  transform: none;
  border-color: var(--erp-border-strong);
  color: var(--erp-accent);
}

.admin-cms-body .ra-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--erp-border);
  border-radius: 8px;
  background: var(--erp-surface);
  box-shadow: none;
}

.admin-cms-body .ra-header h1 {
  margin: 0 0 0.2rem;
  color: var(--erp-text);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
}

.admin-cms-body .ra-header p,
.admin-cms-body .legend-hint,
.admin-cms-body .ra-hint {
  color: var(--erp-muted);
  font-size: 0.9rem;
}

.admin-cms-body .ra-form,
.admin-cms-body .ra-grid {
  display: grid;
  gap: 0.75rem;
}

.admin-cms-body .ra-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-cms-body .ra-fieldset {
  padding: 1rem;
  border: 1px solid var(--erp-border);
  border-radius: 8px;
  background: var(--erp-surface);
  box-shadow: none;
}

.admin-cms-body .ra-fieldset .legend {
  margin: 0 0 0.25rem;
  color: var(--erp-text);
  font-size: 1rem;
  font-weight: 900;
}

.admin-cms-body .ra-field {
  display: grid;
  gap: 0.3rem;
}

.admin-cms-body .ra-field .label {
  color: var(--erp-text);
  font-size: 0.82rem;
  font-weight: 850;
}

.admin-cms-body .ra-field input,
.admin-cms-body .ra-field textarea,
.admin-cms-body .ra-field select,
.admin-cms-body .ra-input-prefix input,
.admin-cms-body .ra-fieldset input,
.admin-cms-body .ra-fieldset textarea,
.admin-cms-body .ra-fieldset select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--erp-border-strong);
  border-radius: 6px;
  background: var(--erp-surface);
  color: var(--erp-text);
  font: inherit;
  font-size: 0.9rem;
}

.admin-cms-body .ra-savebar {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--erp-border);
  border-radius: 8px;
  background: var(--erp-surface-alt);
}

.erp-snapshot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.7fr) minmax(260px, 0.7fr);
  gap: 1rem;
}

.erp-snapshot {
  padding: 1rem;
  border: 1px solid var(--erp-border);
  border-radius: 8px;
  background: var(--erp-surface);
}

.erp-bar-list {
  display: grid;
  gap: 0.5rem;
}

.erp-bar-list a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.75rem;
  padding-bottom: 0.45rem;
  color: var(--erp-text);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.erp-bar-list i {
  grid-column: 1 / -1;
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--erp-surface-alt);
}

.erp-bar-list i::before {
  content: "";
  display: block;
  width: var(--bar, 0);
  height: 100%;
  background: var(--erp-accent);
}

.erp-mini-list.compact li {
  padding: 0.42rem 0;
}

.erp-placeholder-help {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid var(--erp-border);
  border-radius: 8px;
  background: var(--erp-surface-alt);
  color: var(--erp-muted);
  font-size: 0.78rem;
}

.erp-placeholder-help strong {
  color: var(--erp-text);
}

.erp-placeholder-help code {
  padding: 0.18rem 0.35rem;
  border: 1px solid var(--erp-border);
  border-radius: 4px;
  background: var(--erp-surface);
  color: var(--erp-blue);
  font-size: 0.78rem;
}

.erp-email-preview {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.25rem;
  padding: 0.85rem;
  border: 1px solid var(--erp-border-strong);
  border-radius: 8px;
  background: var(--erp-surface-alt);
}

.erp-email-preview-meta {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--erp-border);
  border-radius: 6px;
  background: var(--erp-surface);
  overflow: hidden;
  color: var(--erp-text);
}

.erp-email-preview-meta div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.48rem 0.65rem;
  border-bottom: 1px solid var(--erp-border);
}

.erp-email-preview-meta div:last-child {
  border-bottom: 0;
}

.erp-email-preview-meta dt,
.erp-email-preview-meta dd {
  margin: 0;
}

.erp-email-preview-meta dt {
  color: var(--erp-muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.erp-email-preview-meta dd {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 850;
}

.erp-email-preview iframe {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--erp-border);
  border-radius: 8px;
  background: #fff;
}

.erp-email-preview pre {
  max-height: 260px;
  overflow: auto;
  margin: 0;
  white-space: pre-wrap;
}

@media (max-width: 1120px) {
  .admin-erp-topbar {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .admin-erp-brand {
    justify-self: start;
  }

  .admin-erp-search {
    max-width: none;
  }

  .admin-erp-header-tools {
    justify-content: flex-start;
  }

  .admin-erp-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    align-items: stretch;
    overflow: visible;
    padding: 0;
  }

  .admin-erp-menu-item {
    position: static;
    min-width: 0;
  }

  .admin-erp-menu-trigger {
    width: 100%;
    padding: 0 0.35rem;
    font-size: 0.76rem;
    text-align: center;
  }

  .admin-erp-mega-panel {
    position: fixed;
    top: var(--admin-erp-panel-top, 8rem);
    right: 0.75rem;
    left: 0.75rem;
    z-index: 220;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: auto;
    max-height: calc(100dvh - var(--admin-erp-panel-top, 8rem) - 0.75rem);
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(20, 34, 56, 0.24);
  }

  .admin-erp-menu-item:hover .admin-erp-mega-panel,
  .admin-erp-menu-item:focus-within .admin-erp-mega-panel {
    display: none;
  }

  .admin-erp-menu-item.is-open .admin-erp-mega-panel {
    display: grid;
  }

  .erp-snapshot-grid,
  .admin-cms-body .ra-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .admin-erp-brand img {
    width: 118px;
  }

  .admin-erp-brand span {
    font-size: 0.78rem;
  }

  .admin-erp-header-tools a,
  .admin-erp-header-tools button,
  .admin-erp-quick-create summary,
  .erp-btn,
  .admin-cms-body .button,
  .admin-cms-body .ra-btn {
    width: auto;
    min-height: 32px;
    padding: 0.32rem 0.5rem;
    font-size: 0.78rem;
  }

  .admin-erp-quick-menu {
    right: auto;
    left: 0;
  }

  .admin-cms-main {
    padding: 0.75rem;
  }

  .admin-cms-main .community-page-title,
  .erp-record-header,
  .admin-cms-body .ra-header {
    display: grid;
  }

  .erp-record-actions,
  .erp-sublist-head {
    justify-content: flex-start;
  }

  .erp-report-shortcut {
    grid-template-columns: 1fr;
  }

  .erp-report-shortcut em {
    grid-row: auto;
    grid-column: auto;
  }

  .admin-erp-mega-panel {
    grid-template-columns: 1fr;
  }

  .admin-erp-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-erp-mega-panel section {
    border-right: 0;
    border-bottom: 1px solid var(--erp-border);
  }

  .admin-erp-mega-panel section:last-child {
    border-bottom: 0;
  }

  .erp-form-grid,
  .erp-check-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  :root {
    --anchor-offset: 138px;
  }

  .nav-row {
    min-height: 76px;
  }

  .brand img {
    width: 212px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-actions {
    margin-left: auto;
    z-index: 45;
  }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    z-index: 40;
    display: none;
    max-height: var(--mobile-nav-max-height, calc(100dvh - 120px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--white);
    box-shadow: 0 20px 30px rgba(0, 43, 95, 0.12);
    -webkit-overflow-scrolling: touch;
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.2rem 0.7rem;
  }

  /* Ticker lives below the nav row in the sticky header and was painting
     over the absolute dropdown; hide it while the drawer is open. */
  body.mobile-nav-open .impact-ticker {
    visibility: hidden;
    pointer-events: none;
  }

  .site-nav > a:not(.header-cta),
  .mega-menu-trigger {
    border-bottom-width: 0;
    border-left: 4px solid transparent;
    padding-left: 0.8rem;
  }

  .mega-menu {
    display: block;
    grid-column: 1 / -1;
  }

  .mega-menu-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .mega-menu-panel {
    position: static;
    width: 100%;
    margin: 0.3rem 0 0.55rem;
    border-top-width: 1px;
    border-radius: var(--radius);
    box-shadow: none;
  }

  /* Mobile drawer: start-here first, then stacked groups */
  .mega-shop-doors {
    grid-template-columns: 1fr;
    padding: 0.75rem 0.85rem 0.2rem;
  }

  .mega-menu-inner {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.75rem 0.7rem 0.9rem;
  }

  .mega-menu-groups {
    grid-template-columns: 1fr;
    gap: 0.85rem 0;
  }

  .mega-menu-group {
    border-right: 0;
    padding-right: 0;
  }

  .mega-menu-group:nth-child(2) {
    border-right: 0;
  }

  .header-actions .header-cta {
    min-height: 44px;
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
  }

  .site-nav form,
  .nav-logout {
    width: 100%;
  }

  .nav-logout {
    justify-content: flex-start;
    border-bottom-width: 0;
    border-left: 4px solid transparent;
    padding-left: 0.8rem;
  }

  .site-nav > a:not(.header-cta)[aria-current="page"],
  .site-nav > a:not(.header-cta):hover,
  .mega-menu-trigger:hover,
  .mega-menu-trigger[data-current-section="true"],
  .mega-menu.is-open .mega-menu-trigger,
  .nav-logout:hover {
    border-left-color: var(--pathway-accent, var(--fnd-magenta));
    color: var(--ink);
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  .community-app,
  .community-app.simple,
  .admin-cms-app {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .community-rail {
    display: none;
  }

  .admin-grid,
  .admin-stats,
  .admin-cms-media-grid,
  .admin-cms-form-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-cms-form-grid,
  .admin-cms-inline-form,
  .admin-cms-nav-form,
  .admin-resource-grid {
    grid-template-columns: 1fr;
  }

  .admin-resource-grid label:first-child {
    grid-column: auto;
  }

  .erp-kpi-grid,
  .erp-grid,
  .erp-grid.equal,
  .erp-record-grid,
  .erp-record-overview,
  .erp-report-shortcuts {
    grid-template-columns: 1fr;
  }

  .clinician-hero-site .wrap,
  .clinician-split,
  .clinician-value-grid,
  .clinician-directory-grid,
  .clinician-admin-grid {
    grid-template-columns: 1fr;
  }

  .clinician-hero-site .wrap {
    min-height: auto;
  }

  .clinician-search {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero .wrap,
  .product-hero .wrap,
  .pathway-hero .wrap,
  .get-involved-hero .wrap,
  .ecosystem-journey,
  .handoff-panel,
  .clinical-readiness,
  .clinical-trust-grid,
  .pathway-shell,
  .pathway-teaser,
  .content,
  .blog-card,
  .community-panel {
    grid-template-columns: 1fr;
  }

  .site-footer .wrap.footer-main {
    grid-template-columns: 1fr;
  }

  /* Legacy static footers: brand + pages stack cleanly */
  .site-footer > .wrap:not(.footer-main):not(.footer-bottom-inner) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 2.25rem;
    padding-bottom: 1.5rem;
  }

  .blog-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    padding: 0;
  }

  .blog-card img {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  }

  .blog-card img.blog-card-contain {
    aspect-ratio: 1 / 1;
    border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  }

  .blog-card-body {
    display: block;
    padding: 1rem;
    background: var(--white);
  }

  .blog-card h2 {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .hero .wrap {
    min-height: auto;
  }

  .pathway-hero .wrap {
    min-height: auto;
  }

  .pathway-result {
    position: static;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .ecosystem-map,
  .journey-steps,
  .clinical-readiness-list,
  .clinical-trust-grid,
  .blog-jump-grid,
  .get-involved-options,
  .pacing-zone-grid,
  .pacing-steps {
    grid-template-columns: 1fr;
  }

  .clinician-value-grid,
  .clinician-directory-grid,
  .contribution-filter-form {
    grid-template-columns: 1fr;
  }

  .get-involved-review-panel {
    position: static;
  }

  .handoff-actions {
    justify-content: flex-start;
  }

  .toc {
    position: static;
  }

  .site-footer .wrap.footer-main {
    gap: 1.5rem;
  }

  .community-landing-hero .wrap,
  .community-page-grid,
  .admin-review,
  .admin-review.compact {
    grid-template-columns: 1fr;
  }

  .community-app,
  .community-app.simple,
  .admin-cms-app {
    width: min(100% - 1rem, 760px);
    grid-template-columns: minmax(0, 1fr);
  }

  .community-sidebar,
  .admin-cms-sidebar {
    position: static;
  }

  .admin-erp-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 0.75rem;
  }

  .admin-erp-header-tools {
    justify-content: flex-start;
  }

  .admin-cms-app {
    width: 100%;
  }

  .admin-cms-sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--erp-border);
  }

  .admin-cms-main {
    min-height: auto;
    min-width: 0;
    width: 100%;
  }

  .community-sidebar nav,
  .admin-cms-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .admin-cms-sidebar-section {
    min-width: 0;
  }

  .community-sidebar a,
  .admin-cms-sidebar a {
    justify-content: center;
  }

  .community-sidebar a span {
    display: none;
  }

  .community-site-header {
    position: static;
  }

  .composer-grid,
  .form-grid.two,
  .admin-cms-form-grid,
  .admin-cms-two,
  .admin-social-preview,
  .clinician-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --anchor-offset: 188px;
  }

  body {
    font-size: 17px;
  }

  .wrap {
    width: 100%;
    max-width: var(--max);
    padding-inline: max(0.85rem, var(--gutter));
  }

  .topbar .wrap {
    display: block;
  }

  .topbar span {
    display: block;
  }

  .brand img {
    width: 176px;
  }

  .site-nav.is-open {
    grid-template-columns: 1fr;
  }

  .mega-menu-inner {
    grid-template-columns: 1fr;
  }

  .mega-menu-groups {
    grid-template-columns: 1fr;
  }

  .mega-menu-group,
  .mega-menu-group:nth-child(2) {
    border-right: 0;
  }

  .mega-menu-group + .mega-menu-group {
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
  }

  .hero-actions,
  .button-row,
  .share-actions {
    display: grid;
  }

  .get-involved-hero .wrap {
    min-height: auto;
  }

  .button,
  .share-button {
    width: 100%;
  }

  .button-row .button {
    margin-left: 0 !important;
  }

  .fact-row {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .product-mini-grid,
  .metric-strip,
  .product-link-card,
  .pathway-choice-grid,
  .pathway-choice-grid.compact,
  .pathway-choice-grid.regions,
  .pathway-board-grid {
    grid-template-columns: 1fr;
  }

  .pathway-result-actions,
  .pathway-actions {
    display: grid;
  }

  .product-board-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-top-actions {
    width: 100%;
    justify-content: space-between;
    font-size: 0.88rem;
  }

  .community-brand img {
    width: 172px;
  }

  .community-sidebar nav,
  .admin-cms-sidebar nav,
  .admin-cms-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-cms-sidebar {
    overflow-x: auto;
    padding: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .admin-cms-sidebar nav {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .admin-cms-sidebar-section {
    display: flex;
    flex: 0 0 auto;
    gap: 0.35rem;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .admin-cms-sidebar-label {
    display: none;
  }

  .admin-cms-sidebar a {
    min-height: 36px;
    white-space: nowrap;
  }

  .community-page-title,
  .profile-header,
  .resource-row,
  .composer-foot,
  .comment-form,
  .admin-cms-row,
  .admin-resource-row-head,
  .admin-asset-modal-search {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .profile-header-main {
    align-items: center;
  }

  .admin-stats,
  .admin-cms-media-grid {
    grid-template-columns: 1fr;
  }

  .admin-cms-main {
    padding: 0.75rem;
    overflow-x: hidden;
  }

  .admin-cms-main > *,
  .admin-cms-main .community-page-title,
  .admin-cms-main .admin-cms-panel {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .admin-cms-main .community-page-title,
  .erp-panel-head,
  .admin-cms-actions,
  .erp-filter,
  .erp-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-cms-actions,
  .erp-filter label,
  .erp-filter .erp-btn,
  .erp-actions .erp-btn {
    width: 100%;
  }

  .erp-form-grid {
    grid-template-columns: 1fr;
  }

  .erp-check-grid {
    grid-template-columns: 1fr;
  }

  .erp-table-wrap {
    margin-inline: -0.25rem;
    border-radius: 6px;
  }

  .erp-table,
  .vol-table {
    min-width: 680px;
  }

  .reaction-row button {
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   Governance & transparency pages
   ========================================================================== */
.gov-intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.6rem 0 0.4rem;
}

.gov-stat {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.gov-stat strong {
  display: block;
  color: var(--fnd-navy);
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}

.gov-stat span {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Document directory cards on the hub page */
.gov-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
  margin-top: 1.2rem;
}

.gov-doc-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.gov-doc-card .gov-doc-code {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.6rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--pale);
  color: var(--fnd-magenta);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gov-doc-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  line-height: 1.3;
}

.gov-doc-card p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text);
}

.gov-doc-card .gov-doc-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  align-items: center;
}

.gov-doc-card .gov-doc-actions a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

/* Document control panel on individual policy pages */
.gov-doc-meta {
  margin: 0 0 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.gov-doc-meta dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0;
  margin: 0;
}

.gov-doc-meta dt,
.gov-doc-meta dd {
  margin: 0;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.gov-doc-meta dt {
  font-weight: 700;
  color: var(--fnd-navy);
  background: var(--panel);
  white-space: nowrap;
}

.gov-doc-meta dd:nth-last-of-type(1),
.gov-doc-meta dt:nth-last-of-type(1) {
  border-bottom: none;
}

/* Download / official-copy callout */
.gov-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin: 1.6rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--fnd-magenta);
  border-radius: var(--radius);
  background: var(--pale);
}

.gov-download p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.gov-download .button {
  margin-left: auto;
}

/* Policy body text: clear numbered clauses */
.policy-body h2 {
  color: var(--fnd-navy);
}

.policy-body > p,
.policy-body ul {
  margin: 0.55rem 0;
}

.policy-body .policy-note {
  margin: 1.6rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 0.95rem;
  color: var(--muted);
}

.policy-body .signoff {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .gov-doc-meta dl {
    grid-template-columns: 1fr;
  }
  .gov-doc-meta dt {
    border-bottom: none;
    padding-bottom: 0;
    background: var(--white);
  }
  .gov-download .button {
    margin-left: 0;
  }
}

/* easyfundraising support banner — shown at the foot of every blog post */
.support-banner {
  background: var(--pale);
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
}

.support-banner-card.card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 1.5rem 1.75rem;
}

.support-banner-text {
  flex: 1 1 360px;
  min-width: 0;
}

.support-banner-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fnd-magenta);
}

.support-banner-text h2 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--fnd-navy);
}

.support-banner-text p {
  margin: 0;
  color: var(--text);
  max-width: 62ch;
}

.support-banner-action {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.support-banner-action .button {
  white-space: nowrap;
}

.support-banner-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .support-banner-card.card {
    flex-direction: column;
    align-items: stretch;
  }
  .support-banner-action {
    align-items: stretch;
  }
  .support-banner-action .button {
    width: 100%;
  }
}

/* Collapsible advanced-config panel on the ERP record browser */
.erp-config-panel > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
}
.erp-config-panel > summary small {
  display: block;
  font-weight: 400;
  margin-top: 0.15rem;
}
.erp-config-panel[open] > summary {
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   FND Connect × SeizeControl ecosystem chrome
   (Do NOT reuse .ecosystem-journey — that class already styles a homepage grid.)
   -------------------------------------------------------------------------- */
.site-nav > .nav-seizecontrol {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.55rem 0.56rem;
  border-bottom: 4px solid transparent;
  color: var(--fnd-navy, #002b5f);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav > .nav-seizecontrol:hover,
.site-nav > .nav-seizecontrol[aria-current="page"] {
  border-bottom-color: var(--fnd-magenta, #ed2b7b);
  color: var(--fnd-magenta, #ed2b7b);
}

/* My Account dropdown (replaces long name chip) */
.account-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.account-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 34px;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(0, 43, 95, 0.14);
  border-radius: 999px;
  background: rgba(0, 43, 95, 0.05);
  color: var(--fnd-navy, #002b5f);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.account-menu-trigger:hover,
.account-menu.is-open .account-menu-trigger {
  border-color: rgba(201, 0, 90, 0.35);
  background: rgba(201, 0, 90, 0.08);
  color: var(--fnd-magenta, #c9005a);
}

.account-menu-trigger__cue svg {
  width: 12px;
  height: 12px;
  transition: transform 160ms ease;
}

.account-menu.is-open .account-menu-trigger__cue svg {
  transform: rotate(180deg);
}

.account-menu-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 40;
  width: min(20rem, calc(100vw - 1.5rem));
  padding: 0.75rem;
  border: 1px solid var(--border, #dde4ec);
  border-top: 3px solid var(--fnd-magenta, #c9005a);
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 43, 95, 0.16);
}

.account-menu.is-open .account-menu-panel {
  display: block;
}

.account-menu-greeting {
  margin: 0 0 0.65rem;
  padding: 0 0.35rem 0.55rem;
  border-bottom: 1px solid rgba(0, 43, 95, 0.08);
  font-size: 0.78rem;
  color: #5f6f84;
  line-height: 1.35;
}

.account-menu-greeting strong {
  display: block;
  margin-top: 0.15rem;
  color: var(--fnd-navy, #002b5f);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-links {
  display: grid;
  gap: 0.15rem;
}

.account-menu-section {
  margin: 0.45rem 0 0.15rem;
  padding: 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a8a9c;
}
.account-menu-section:first-child {
  margin-top: 0;
}

.account-menu-link {
  display: grid;
  gap: 0.06rem;
  padding: 0.48rem 0.55rem;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.account-menu-link:hover,
.account-menu-link:focus-visible {
  background: rgba(0, 43, 95, 0.05);
  outline: none;
}

.account-menu-link--primary {
  background: linear-gradient(100deg, rgba(0, 43, 95, 0.05), rgba(201, 0, 90, 0.06));
}

.account-menu-link--accent {
  background: linear-gradient(100deg, rgba(201, 0, 90, 0.06), rgba(0, 43, 95, 0.04));
  border: 1px solid rgba(201, 0, 90, 0.12);
}

.account-menu-link__title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--fnd-navy, #002b5f);
}

.account-menu-link__hint {
  font-size: 0.72rem;
  color: #6a7b90;
  line-height: 1.3;
}

.account-menu-logout {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(0, 43, 95, 0.08);
}

.account-menu-logout button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8a3a4a;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.account-menu-logout button:hover {
  background: rgba(180, 35, 24, 0.06);
}

.site-nav > .nav-signin {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 43, 95, 0.16);
  color: var(--fnd-navy, #002b5f);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav > .nav-signin:hover {
  border-color: var(--fnd-magenta, #c9005a);
  color: var(--fnd-magenta, #c9005a);
}

/* Legacy floating SC launcher — always hide if cached JS injects it */
.sc-launch-fab,
[data-sc-launch-fab] {
  display: none !important;
}

@media (max-width: 1120px) {
  .site-nav > .account-menu {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
  }
  .account-menu-trigger {
    width: 100%;
    justify-content: space-between;
  }
  .account-menu-panel {
    position: static;
    inset: auto;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    max-width: none;
    margin-top: 0.4rem;
    box-shadow: none;
  }
  .site-nav > .nav-seizecontrol {
    border-bottom-width: 0;
    border-left: 4px solid transparent;
    padding-left: 0.8rem;
  }
  .site-nav > .nav-signin {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

/* Compact ecosystem strip (home/start) — unique BEM, no clash with .ecosystem-journey */
.sc-eco-strip {
  border-bottom: 1px solid rgba(0, 43, 95, 0.08);
  background: linear-gradient(90deg, #f4f7fb 0%, #fff7fb 50%, #f4f7fb 100%);
}

.sc-eco-strip__inner {
  display: grid;
  gap: 1rem;
  padding: 1.1rem 0;
}

@media (min-width: 860px) {
  .sc-eco-strip__inner {
    grid-template-columns: 1.4fr auto;
    align-items: center;
  }
}

.sc-eco-strip__eyebrow {
  margin: 0 0 0.25rem;
  color: var(--fnd-magenta, #ed2b7b);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sc-eco-strip__title {
  margin: 0 0 0.35rem;
  color: var(--fnd-navy, #002b5f);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.sc-eco-strip__text {
  margin: 0;
  color: var(--ink, #102033);
  line-height: 1.5;
  max-width: 46rem;
}

.sc-eco-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Mini widget on pillars / topic hubs */
.sc-mini-widget {
  margin: 1.5rem 0;
  border: 1px solid rgba(0, 43, 95, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(237, 43, 123, 0.08), transparent 55%),
    linear-gradient(180deg, #fff 0%, #f5f8fc 100%);
  box-shadow: 0 12px 30px rgba(0, 43, 95, 0.06);
}

.sc-mini-widget__inner {
  display: grid;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
}

@media (min-width: 720px) {
  .sc-mini-widget__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.sc-mini-widget__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
  color: var(--fnd-magenta, #ed2b7b);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sc-mini-widget__eyebrow img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.sc-mini-widget h3 {
  margin: 0 0 0.35rem;
  color: var(--fnd-navy, #002b5f);
  font-size: 1.15rem;
}

.sc-mini-widget p {
  margin: 0;
  color: var(--ink, #102033);
  line-height: 1.5;
}

.sc-mini-widget__note {
  margin-top: 0.55rem !important;
  color: var(--muted, #5b6b7c) !important;
  font-size: 0.9rem;
}

.sc-mini-widget__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-start;
}

/* Emma AI chat widget */
.emma-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1200;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.emma-widget__privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 0.85rem 0.15rem;
  color: var(--muted, #5b6b7c);
  font-size: 0.78rem;
  line-height: 1.35;
}

.emma-widget__privacy input {
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.emma-widget__privacy-status {
  margin: 0 0.85rem 0.35rem;
  font-size: 0.72rem;
  color: var(--fnd-navy, #002b5f);
  font-weight: 700;
}

.emma-widget__launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.4rem;
  padding: 0.35rem 1.15rem 0.35rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--fnd-deep-navy) 0%, var(--fnd-navy) 45%, var(--fnd-blue) 100%);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 26, 59, 0.32), 0 2px 8px rgba(0, 26, 59, 0.18);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.emma-widget__launcher::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid rgba(237, 43, 123, 0.45);
  opacity: 0;
  pointer-events: none;
  animation: emma-widget-halo 3.2s ease-out infinite;
}

@keyframes emma-widget-halo {
  0% { opacity: 0; transform: scale(0.94); }
  18% { opacity: 0.85; }
  46% { opacity: 0; transform: scale(1.16); }
  100% { opacity: 0; transform: scale(1.16); }
}

.emma-widget.is-open .emma-widget__launcher::before,
.emma-widget__launcher:disabled::before {
  animation: none;
  opacity: 0;
}

.emma-widget__launcher:hover,
.emma-widget__launcher:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(0, 26, 59, 0.4), 0 4px 12px rgba(0, 26, 59, 0.22);
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.emma-widget__launcher:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.emma-widget__launcher-avatar,
.emma-widget__header-avatar,
.emma-widget__message-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.emma-widget__launcher-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(237, 43, 123, 0.35);
}

.emma-widget__header-avatar {
  width: 2.9rem;
  height: 2.9rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(237, 43, 123, 0.3), 0 6px 16px rgba(0, 0, 0, 0.25);
}

.emma-widget__message-avatar {
  width: 2rem;
  height: 2rem;
  margin-top: 0.15rem;
  border: 1px solid #cfdff0;
  background: #f4f8fc;
  box-shadow: 0 2px 6px rgba(0, 43, 95, 0.1);
}

.emma-widget__avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.emma-widget__avatar-fallback {
  display: block;
  width: 100%;
  height: 100%;
}

.emma-widget__launcher-avatar .emma-widget__avatar-img,
.emma-widget__launcher-avatar .emma-widget__avatar-fallback,
.emma-widget__header-avatar .emma-widget__avatar-img,
.emma-widget__header-avatar .emma-widget__avatar-fallback {
  width: 100%;
  height: 100%;
}

.emma-widget__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.85rem);
  display: none;
  flex-direction: column;
  width: min(25.5rem, calc(100vw - 2rem));
  height: min(37rem, calc(100vh - 6rem));
  overflow: hidden;
  border: 1px solid #d0deec;
  border-radius: 1.25rem;
  background: #f8fbfe;
  box-shadow:
    0 32px 70px rgba(0, 26, 59, 0.28),
    0 8px 22px rgba(0, 26, 59, 0.14);
  transform-origin: bottom right;
}

.emma-widget.is-open .emma-widget__panel {
  display: flex;
  animation: emma-widget-panel-in 0.26s cubic-bezier(0.21, 0.9, 0.35, 1.05);
}

@keyframes emma-widget-panel-in {
  0% { opacity: 0; transform: translateY(14px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.emma-widget__header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.05rem 1.1rem 1rem;
  background: linear-gradient(130deg, var(--fnd-deep-navy) 0%, var(--fnd-navy) 52%, var(--fnd-blue) 100%);
  color: #fff;
  overflow: hidden;
  /* Panel is a flex column; without this the header shrinks mid-chat and looks broken. */
  flex: 0 0 auto;
  min-height: 5.25rem;
  box-sizing: border-box;
}

.emma-widget__header::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -18%;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 43, 123, 0.3) 0%, rgba(237, 43, 123, 0) 65%);
  pointer-events: none;
}

.emma-widget__header::after {
  content: "";
  position: absolute;
  bottom: -70%;
  left: -12%;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
}

.emma-widget__header-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  flex: 1 1 auto;
}

.emma-widget__title-wrap {
  min-width: 0;
  flex: 1 1 auto;
}

.emma-widget__header .emma-widget__eyebrow,
.emma-widget__header .emma-widget__title,
.emma-widget__header .emma-widget__subtitle,
.emma-widget__header h2.emma-widget__title {
  color: #fff;
}

.emma-widget__eyebrow {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.emma-widget__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.12rem 0 0;
  font-size: 1.18rem;
  line-height: 1.2;
  font-weight: 700;
}

.emma-widget__status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.14rem 0.55rem 0.14rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.emma-widget__status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55);
  animation: emma-widget-status-pulse 2.4s ease-out infinite;
}

@keyframes emma-widget-status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); }
  60% { box-shadow: 0 0 0 6px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

.emma-widget__subtitle {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0.92;
}

.emma-widget__close {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.emma-widget__close:hover,
.emma-widget__close:focus-visible {
  background: rgba(255, 255, 255, 0.26);
  transform: rotate(90deg);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.emma-widget__messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1.1rem 1rem 0.9rem;
  background:
    radial-gradient(circle at top right, rgba(16, 71, 120, 0.06), transparent 46%),
    radial-gradient(circle at bottom left, rgba(201, 0, 90, 0.035), transparent 40%),
    linear-gradient(180deg, #f2f7fc 0%, #fff 100%);
  scrollbar-width: thin;
  scrollbar-color: #b8cde2 transparent;
}

.emma-widget__messages::-webkit-scrollbar {
  width: 6px;
}

.emma-widget__messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b8cde2;
}

.emma-widget__messages::-webkit-scrollbar-track {
  background: transparent;
}

.emma-widget__message {
  margin: 0 0 1rem;
  animation: emma-widget-message-in 0.24s ease-out;
}

@keyframes emma-widget-message-in {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.emma-widget__message-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.emma-widget__message-stack {
  min-width: 0;
  flex: 1 1 auto;
}

.emma-widget__message-label {
  margin: 0 0 0.3rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #51708f;
}

.emma-widget__message-body {
  padding: 0.8rem 0.95rem;
  border-radius: 1.05rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.emma-widget__message-body p {
  margin: 0 0 0.45rem;
}

.emma-widget__message-body p:last-child {
  margin-bottom: 0;
}

.emma-widget__message-body strong {
  font-weight: 700;
  color: inherit;
}

.emma-widget__message-body em {
  font-style: italic;
  color: inherit;
}

.emma-widget__message--user .emma-widget__message-body strong,
.emma-widget__message--user .emma-widget__message-body em {
  color: inherit;
}

.emma-widget__typing {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.15rem 0;
}

.emma-widget__typing-dot {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: #8fa9c4;
  animation: emma-widget-typing-bounce 1.2s ease-in-out infinite;
}

.emma-widget__typing-dot:nth-child(3) {
  animation-delay: 0.16s;
}

.emma-widget__typing-dot:nth-child(4) {
  animation-delay: 0.32s;
}

@keyframes emma-widget-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.55; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.emma-widget__md-h2 {
  margin: 0.65rem 0 0.3rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--fnd-navy);
}

.emma-widget__md-h2:first-child {
  margin-top: 0;
}

.emma-widget__md-h3 {
  margin: 0.5rem 0 0.2rem;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--fnd-navy);
}

.emma-widget__md-ul {
  margin: 0.2rem 0 0.45rem;
  padding-left: 1.1rem;
}

.emma-widget__md-ul li {
  margin: 0.18rem 0;
}

.emma-widget__link {
  color: var(--fnd-magenta);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2.5px;
  transition: color 0.15s ease;
}

.emma-widget__link:hover,
.emma-widget__link:focus-visible {
  color: var(--fnd-navy);
  outline: none;
}

.emma-widget__message--assistant .emma-widget__message-body {
  color: #22384f;
  background: #fff;
  border: 1px solid #dfe9f3;
  border-top-left-radius: 0.35rem;
  box-shadow: 0 5px 16px rgba(0, 43, 95, 0.07);
}

.emma-widget__message--user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.emma-widget__message--user .emma-widget__message-label {
  text-align: right;
}

.emma-widget__message--user .emma-widget__message-body {
  max-width: 88%;
  color: #fff;
  background: linear-gradient(135deg, var(--fnd-blue) 0%, #0b3866 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-right-radius: 0.35rem;
  box-shadow: 0 6px 16px rgba(11, 56, 102, 0.24);
}

.emma-widget__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.15rem 0 0.4rem 2.55rem;
  animation: emma-widget-message-in 0.3s ease-out;
}

.emma-widget__suggestion {
  padding: 0.42rem 0.85rem;
  border: 1px solid #bed3e8;
  border-radius: 999px;
  background: #fff;
  color: var(--fnd-navy);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 43, 95, 0.06);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.emma-widget__suggestion:hover,
.emma-widget__suggestion:focus-visible {
  background: var(--fnd-navy);
  border-color: var(--fnd-navy);
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.emma-widget__suggestion:focus-visible {
  outline: 2px solid var(--fnd-magenta);
  outline-offset: 2px;
}

/* Interactive account / medication forms inside Emma chat */
.emma-widget__form-card {
  margin: 0.65rem 0 0.2rem;
  padding: 0.85rem 0.9rem 0.95rem;
  border: 1px solid #c9d9ea;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fc 100%);
  box-shadow: 0 4px 14px rgba(0, 43, 95, 0.07);
}

.emma-widget__form-title {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--fnd-navy);
}

.emma-widget__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2a4058;
}

.emma-widget__field input,
.emma-widget__field select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #b7c9dc;
  border-radius: 0.55rem;
  background: #fff;
  color: var(--fnd-navy);
  font: inherit;
  font-weight: 500;
}

.emma-widget__field input:focus,
.emma-widget__field select:focus {
  outline: 2px solid rgba(201, 0, 90, 0.35);
  border-color: var(--fnd-magenta);
}

.emma-widget__form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.emma-widget__form-submit,
.emma-widget__form-chip {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.emma-widget__form-submit {
  background: linear-gradient(135deg, var(--fnd-blue) 0%, #0b3866 100%);
  color: #fff;
}

.emma-widget__form-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.emma-widget__form-chip {
  background: #fff;
  color: var(--fnd-navy);
  border: 1px solid #bed3e8;
}

.emma-widget__form-chip:hover,
.emma-widget__form-chip:focus-visible {
  background: var(--fnd-navy);
  border-color: var(--fnd-navy);
  color: #fff;
  outline: none;
}

.emma-widget__form-status {
  margin: 0.2rem 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.emma-widget__form-status.is-pending {
  color: #5a6f86;
}

.emma-widget__form-status.is-ok {
  color: #0f6b45;
}

.emma-widget__form-status.is-error {
  color: #a11b3a;
}

/* Medication lookup (same catalogue as SeizeControl Meds) */
.emma-widget__field--lookup {
  position: relative;
}

.emma-widget__field em {
  font-style: normal;
  font-weight: 500;
  color: #5a6f86;
  font-size: 0.74rem;
}

.emma-widget__lookup-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 0.15rem);
  z-index: 20;
  max-height: 11rem;
  overflow: auto;
  margin: 0;
  padding: 0.25rem;
  border: 1px solid #b7c9dc;
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 43, 95, 0.14);
}

.emma-widget__lookup-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.55rem;
  border-radius: 0.4rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fnd-navy);
  cursor: pointer;
}

.emma-widget__lookup-item:hover,
.emma-widget__lookup-item:focus-visible {
  background: #e8f1fa;
  outline: none;
}

.emma-widget__dose-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.emma-widget__dose-chip {
  border: 1px solid #bed3e8;
  border-radius: 999px;
  background: #fff;
  color: var(--fnd-navy);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  cursor: pointer;
}

.emma-widget__dose-chip:hover,
.emma-widget__dose-chip:focus-visible {
  background: var(--fnd-navy);
  border-color: var(--fnd-navy);
  color: #fff;
  outline: none;
}

.emma-widget__composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: end;
  padding: 0.85rem 0.95rem 0.95rem;
  border-top: 1px solid #dce7f2;
  background: #fff;
  flex: 0 0 auto;
}

.emma-widget__input {
  width: 100%;
  min-height: 2.8rem;
  max-height: 7.5rem;
  resize: none;
  padding: 0.74rem 0.95rem;
  border: 1px solid #c3d4e5;
  border-radius: 1.4rem;
  background: #f5f9fd;
  color: #1d3350;
  font: inherit;
  line-height: 1.45;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.emma-widget__input::placeholder {
  color: #5e7994;
}

.emma-widget__input:focus-visible {
  outline: none;
  border-color: var(--fnd-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(16, 71, 120, 0.16);
}

.emma-widget__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--fnd-magenta) 0%, var(--fnd-rose) 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(201, 0, 90, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.emma-widget__send:hover:not(:disabled),
.emma-widget__send:focus-visible {
  background: linear-gradient(135deg, #b10052 0%, #d4247f 100%);
  transform: scale(1.06);
  box-shadow: 0 10px 22px rgba(201, 0, 90, 0.36);
  outline: 2px solid var(--fnd-navy);
  outline-offset: 2px;
}

.emma-widget__send:disabled,
.emma-widget__input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.emma-widget.is-open .emma-widget__launcher {
  box-shadow: 0 10px 24px rgba(0, 26, 59, 0.2);
}

.emma-widget.is-busy .emma-widget__send {
  animation: emma-widget-pulse 1.2s ease-in-out infinite;
}

@keyframes emma-widget-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .emma-widget__launcher::before,
  .emma-widget__status-dot,
  .emma-widget.is-open .emma-widget__panel,
  .emma-widget__message,
  .emma-widget__suggestions,
  .emma-widget.is-busy .emma-widget__send {
    animation: none;
  }

  .emma-widget__launcher,
  .emma-widget__close,
  .emma-widget__suggestion,
  .emma-widget__send {
    transition: none;
  }

  .emma-widget__typing-dot {
    animation: emma-widget-pulse 1.4s ease-in-out infinite;
  }
}

@media (max-width: 768px) {
  .emma-widget {
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    left: auto;
    z-index: 9999;
  }

  .emma-widget__launcher {
    position: fixed;
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    width: 3.5rem;
    min-width: 3.5rem;
    height: 3.5rem;
    min-height: 3.5rem;
    justify-content: center;
    padding: 0;
    box-shadow: 0 10px 32px rgba(0, 26, 59, 0.36);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .emma-widget__launcher-text {
    display: none;
  }

  .emma-widget__launcher-avatar {
    width: 2.5rem;
    height: 2.5rem;
  }

  .emma-widget__panel {
    position: fixed;
    top: max(0.75rem, env(safe-area-inset-top, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    width: auto;
    height: auto;
    z-index: 9998;
    border-radius: 1.1rem;
  }

  .emma-widget__suggestions {
    margin-left: 2.55rem;
  }

}

/* ============================================================
   Clinician research portal + SeizeControl live panel
   ============================================================ */

.clinician-portal-page {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 42%, #ffffff 100%);
}

.clinician-portal-hero {
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(120deg, rgba(255,255,255,0.96), rgba(255,241,247,0.88)),
    radial-gradient(circle at 90% 10%, rgba(201,0,90,0.12), transparent 34%);
}

.clinician-portal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-top: clamp(2.2rem, 5vw, 4rem);
  padding-bottom: clamp(2.2rem, 5vw, 4rem);
  align-items: stretch;
}

.clinician-portal-side-card {
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  background: linear-gradient(155deg, var(--fnd-navy), #001a3b);
  color: #fff;
  box-shadow: var(--shadow);
}

.clinician-portal-side-card span {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffc4dd;
  margin-bottom: 0.55rem;
}

.clinician-portal-side-card h2,
.clinician-portal-side-card p,
.clinician-portal-side-card li {
  color: #fff;
}

.clinician-portal-side-card ul {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.clinician-portal-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  margin-top: 1rem;
}

.clinician-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #e8f7ee;
  border: 1px solid #b7dcc4;
  color: #0f5132;
  font-size: 0.82rem;
  font-weight: 800;
}

.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #198754;
  box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.45);
  animation: clinician-live-pulse 1.8s infinite;
}

@keyframes clinician-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(25, 135, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

.clinician-meta-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.clinician-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.clinician-kpi-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.clinician-kpi {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow);
}

.clinician-kpi span {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.clinician-kpi strong {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  color: var(--fnd-navy);
  letter-spacing: -0.02em;
}

.clinician-kpi small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.clinician-research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.clinician-panel-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}

.clinician-panel-card.is-gated {
  background: linear-gradient(180deg, #fffafc 0%, #fff 70%);
  border-color: #f0d0df;
}

.clinician-panel-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  color: var(--fnd-navy);
}

.clinician-panel-head p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.clinician-bar-list {
  display: grid;
  gap: 0.7rem;
}

.clinician-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
}

.clinician-bar-label strong {
  color: var(--fnd-navy);
}

.clinician-bar-label span {
  color: var(--muted);
  white-space: nowrap;
}

.clinician-bar-track {
  height: 8px;
  border-radius: 999px;
  background: #e8eef5;
  overflow: hidden;
}

.clinician-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fnd-navy), var(--fnd-magenta));
}

.clinician-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.clinician-time-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem;
  background: #f8fbff;
}

.clinician-time-card strong {
  display: block;
  color: var(--fnd-navy);
}

.clinician-time-value {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--fnd-magenta);
}

.clinician-time-card small {
  color: var(--muted);
}

.clinician-signal-list {
  display: grid;
  gap: 0.85rem;
}

.clinician-signal-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.clinician-signal-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.clinician-signal-top strong {
  color: var(--fnd-navy);
  font-size: 1.02rem;
}

.clinician-pill.is-status {
  background: #eef4ff;
  color: #0b3d78;
  border: 1px solid #c5d8f5;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.clinician-signal-pattern {
  margin: 0 0 0.45rem;
  color: #24364f;
  line-height: 1.5;
}

.clinician-signal-basis,
.clinician-signal-use {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.clinician-gate-banner,
.clinician-lock-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #f0d0df;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7fa, #fff);
  padding: 1.1rem 1.2rem;
}

.clinician-lock-panel {
  display: grid;
  gap: 0.65rem;
}

.clinician-lock-panel-wide {
  max-width: 52rem;
}

.clinician-lock-panel strong,
.clinician-gate-banner strong {
  color: var(--fnd-navy);
  font-size: 1.05rem;
}

.clinician-lock-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.clinician-highlight-list {
  display: grid;
  gap: 0.75rem;
}

.clinician-highlight {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  background: #f8fbff;
}

.clinician-highlight span {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.clinician-highlight strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--fnd-navy);
  font-size: 1.15rem;
}

.clinician-highlight p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.clinician-sensitive {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  color: #8a5a00;
  background: #fff1d6;
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  margin-left: 0.25rem;
}

.clinician-empty-copy {
  margin: 0;
  color: var(--muted);
}

.clinician-methods {
  max-width: 48rem;
}

.clinician-methods ul {
  margin: 0.6rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 960px) {
  .clinician-portal-hero-grid,
  .clinician-research-grid,
  .clinician-kpi-grid {
    grid-template-columns: 1fr;
  }

  .clinician-kpi-grid-compact {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .clinician-kpi-grid-compact,
  .clinician-time-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Product IA: homepage path hero, /start, /impact, topic hubs ── */
.home-path-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(237, 43, 123, 0.14), transparent 28%),
    linear-gradient(165deg, #001a3b 0%, #002b5f 48%, #0a3d72 100%);
  color: var(--white);
  padding: 2.75rem 0 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-path-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.home-path-kicker {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(237, 43, 123, 0.18);
  border: 1px solid rgba(237, 43, 123, 0.35);
  color: #ffd0e4;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-path-hero h1 {
  margin: 0 0 0.85rem;
  color: var(--white);
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.home-path-lead {
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 38rem;
}

.home-path-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.home-path-hero .button {
  background: var(--fnd-rose);
  border-color: var(--fnd-rose);
  color: var(--white);
}

.home-path-hero .button:hover {
  background: #ff4d93;
  border-color: #ff4d93;
  color: var(--white);
}

.home-path-hero .button.secondary {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.home-path-hero .button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.home-path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (min-width: 1100px) {
  .home-path-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }

  .home-path-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.home-path-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.home-path-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(237, 43, 123, 0.55);
  color: var(--white);
  transform: translateY(-1px);
}

.home-path-card__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffb3d2;
}

.home-path-card strong {
  font-size: 1.02rem;
  line-height: 1.25;
}

.home-path-card span:last-child {
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.home-challenge-hero--secondary {
  border-top: 1px solid rgba(0, 43, 95, 0.08);
}

/* Start / impact / topic hubs */
.start-hero,
.impact-hero,
.topic-hero {
  background:
    radial-gradient(circle at 92% 0%, rgba(237, 43, 123, 0.12), transparent 34%),
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
  padding: 2.6rem 0 2.1rem;
  border-bottom: 1px solid var(--border);
}

.start-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.7fr);
  gap: 1.5rem 2rem;
  align-items: start;
}

.start-hero h1,
.impact-hero h1,
.topic-hero h1 {
  margin: 0.35rem 0 0.85rem;
  color: var(--fnd-navy);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.start-hero .lead,
.impact-hero .lead,
.topic-hero .lead,
.start-share .lead,
.impact-note .lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 42rem;
}

.start-safety {
  padding: 1.15rem 1.2rem;
  border-radius: 12px;
  background: #fff8e6;
  border: 1px solid #f0d48a;
  color: var(--ink);
}

.start-safety strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--fnd-navy);
}

.start-safety p {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.start-safety a {
  font-weight: 700;
  font-size: 0.92rem;
}

.start-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.start-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(0, 43, 95, 0.04);
}

.start-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--fnd-navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.start-steps h3 {
  margin: 0 0 0.3rem;
  font-size: 1.12rem;
  color: var(--fnd-navy);
}

.start-steps h3 a {
  color: inherit;
  text-decoration: none;
}

.start-steps h3 a:hover {
  color: var(--fnd-magenta);
}

.start-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.start-path-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.start-path-card:hover {
  border-color: rgba(201, 0, 90, 0.35);
  box-shadow: 0 10px 24px rgba(0, 43, 95, 0.08);
  transform: translateY(-2px);
  color: inherit;
}

.start-path-kicker {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fnd-magenta);
}

.start-share,
.impact-note {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 1.25rem 2rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: 14px;
  background: var(--pale);
  border: 1px solid #f7cfe0;
}

.impact-note {
  grid-template-columns: 1fr;
}

.topic-hero .eyebrow a {
  color: var(--fnd-magenta);
  text-decoration: none;
  font-weight: 700;
}

.topic-hero .eyebrow a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .home-path-hero__inner,
  .start-hero-grid,
  .start-share {
    grid-template-columns: 1fr;
  }

  .home-path-hero h1 {
    max-width: none;
  }

  .home-path-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .home-path-hero {
    padding: 2rem 0 1.75rem;
  }

  .home-path-grid {
    grid-template-columns: 1fr;
  }

  .home-path-actions .button,
  .start-hero .action-row .button {
    width: 100%;
    justify-content: center;
  }
}

/* ── Homepage v2: clearer hierarchy, less box-in-box ── */
.home-hero-v2__inner {
  max-width: 46rem;
}

.home-hero--v2 {
  padding: 3.25rem 0 2.85rem;
  position: relative;
  overflow: hidden;
}

.home-hero--v2::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(237, 43, 123, 0.22), transparent 62%);
  pointer-events: none;
}

.home-hero--v2 .home-hero-v2__inner {
  position: relative;
  z-index: 1;
}

.home-hero--v2 .home-path-hero h1,
.home-hero--v2 h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 4vw, 2.85rem);
}

.home-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 1.15rem 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.home-hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.home-hero-trust span::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #ffd0e4;
  flex-shrink: 0;
}

.home-cta-primary {
  font-size: 1.06rem;
  padding: 0.9rem 1.4rem;
  box-shadow: 0 10px 28px rgba(237, 43, 123, 0.3);
}

/* Journey chooser — “What do you need today?” */
.home-need {
  padding-top: 2.5rem;
  padding-bottom: 2.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  scroll-margin-top: 88px;
}

.home-need__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.6rem;
}

.home-need__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fnd-magenta, #c9005a);
}

.home-need__head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  color: var(--fnd-navy, #002b5f);
  line-height: 1.2;
}

.home-need__head p {
  margin: 0;
  color: var(--muted, #5a6b80);
  line-height: 1.55;
}

.home-need-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-need-grid > li {
  margin: 0;
  min-width: 0;
  display: flex;
}

.home-need-grid > li > .home-need-card {
  flex: 1 1 auto;
  width: 100%;
}

.home-need-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 100%;
  padding: 1.25rem 1.2rem 1.15rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(0, 43, 95, 0.1);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(0, 43, 95, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  overflow: hidden;
}

.home-need-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--fnd-navy, #002b5f), var(--fnd-magenta, #c9005a));
}

.home-need-card--learn::before {
  background: linear-gradient(90deg, #002b5f, #0c5cab);
}
.home-need-card--support::before {
  background: linear-gradient(90deg, #c9005a, #ed2b7b);
}
.home-need-card--help::before {
  background: linear-gradient(90deg, #0a7a5c, #16a34a);
}
.home-need-card--else::before {
  background: linear-gradient(90deg, #5b4b8a, #7c6bb0);
}

.home-need-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 43, 95, 0.1);
  border-color: rgba(201, 0, 90, 0.22);
}

.home-need-card__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fnd-magenta, #c9005a);
}

.home-need-card--learn .home-need-card__eyebrow { color: #0c5cab; }
.home-need-card--help .home-need-card__eyebrow { color: #0a7a5c; }
.home-need-card--else .home-need-card__eyebrow { color: #5b4b8a; }

.home-need-card__title {
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--fnd-navy, #002b5f);
  font-weight: 800;
}

.home-need-card__text {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted, #5a6b80);
  flex: 1 1 auto;
}

.home-need-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.home-need-card__links span {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: #f3f6fb;
  color: #3d4f66;
}

.home-need-card__cta {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--fnd-magenta, #c9005a);
}

.home-need-card--learn .home-need-card__cta { color: #0c5cab; }
.home-need-card--help .home-need-card__cta { color: #0a7a5c; }
.home-need-card--else .home-need-card__cta { color: #5b4b8a; }

.home-need__footnote {
  margin: 1.35rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted, #5a6b80);
  line-height: 1.55;
}

.home-need__footnote a {
  color: var(--fnd-navy, #002b5f);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 1100px) {
  .home-need-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-need-grid {
    grid-template-columns: 1fr;
  }
  .home-need {
    padding-top: 1.85rem;
    padding-bottom: 1.75rem;
  }
}

/* ============================================================
   Shared journey hubs (Learn / Support / Get involved / Clinicians)
   Same language as the homepage “What do you need?” cards.
   ============================================================ */
.hub-page {
  --hub-radius: 1.1rem;
  --hub-shadow: 0 12px 32px rgba(0, 43, 95, 0.07);
}

.hub-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fnd-magenta, #c9005a);
}

.hub-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(105deg, #f8fbff 0%, #ffffff 55%, #fff5f9 100%);
  border-bottom: 1px solid rgba(0, 43, 95, 0.08);
}

.hub-hero--support {
  background: linear-gradient(105deg, #fff7fb 0%, #ffffff 52%, #eef5ff 100%);
}
.hub-hero--help {
  background: linear-gradient(105deg, #f3fbf7 0%, #ffffff 55%, #eef8f3 100%);
}
.hub-hero--clinicians {
  background: linear-gradient(105deg, #f4f2fa 0%, #ffffff 55%, #eef2ff 100%);
}
.hub-hero--learn {
  background: linear-gradient(105deg, #eef5ff 0%, #ffffff 55%, #f7faff 100%);
}

.hub-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.25rem) var(--gutter, 24px);
}

.hub-hero__copy h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.12;
  color: var(--fnd-navy, #002b5f);
  max-width: 18ch;
}

.hub-lead {
  margin: 0 0 1.15rem;
  max-width: 42rem;
  font-size: clamp(1.02rem, 1.6vw, 1.14rem);
  line-height: 1.6;
  color: rgba(0, 26, 59, 0.78);
}

.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hub-aside {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.25rem 1.3rem;
  border-radius: var(--hub-radius);
  border: 1px solid rgba(201, 0, 90, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--hub-shadow);
}

.hub-aside__kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fnd-magenta, #c9005a);
}

.hub-aside__title {
  font-size: 1.05rem;
  color: var(--fnd-navy, #002b5f);
  line-height: 1.3;
}

.hub-aside__body {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--muted, #5a6b80);
}

.hub-aside__body p { margin: 0 0 0.55rem; }
.hub-aside__body p:last-child { margin-bottom: 0; }

.hub-aside__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 0.35rem;
  font-weight: 800;
  color: var(--fnd-magenta, #c9005a);
  text-decoration: none;
}
.hub-aside__link:hover { text-decoration: underline; }

.hub-section-head {
  max-width: 42rem;
  margin: 0 0 1.4rem;
}
.hub-section-head.is-compact { margin-bottom: 1rem; }
.hub-section-head h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--fnd-navy, #002b5f);
  line-height: 1.2;
}
.hub-section-head p {
  margin: 0;
  color: var(--muted, #5a6b80);
  line-height: 1.55;
}

.hub-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1rem;
}

.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 100%;
  padding: 1.25rem 1.2rem 1.15rem;
  border-radius: var(--hub-radius);
  border: 1px solid rgba(0, 43, 95, 0.1);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(0, 43, 95, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  overflow: hidden;
}
.hub-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--fnd-navy, #002b5f), var(--fnd-magenta, #c9005a));
}
.hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 43, 95, 0.1);
  border-color: rgba(201, 0, 90, 0.22);
}
.hub-card--primary {
  color: #fff;
  border-color: transparent;
  background:
    radial-gradient(120% 140% at 90% -10%, rgba(237, 43, 123, 0.5), transparent 55%),
    linear-gradient(135deg, var(--fnd-deep-navy, #001a3b), var(--fnd-navy, #002b5f) 58%, #4a0f33);
  box-shadow: 0 16px 40px rgba(0, 43, 95, 0.2);
}
.hub-card--primary::before { display: none; }
.hub-card--primary:hover { border-color: transparent; filter: brightness(1.03); }

.hub-card__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fnd-magenta, #c9005a);
}
.hub-card__eyebrow svg {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  letter-spacing: 0;
}
.hub-card--primary .hub-card__eyebrow { color: #ffd0e4; }

.hub-card__title {
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--fnd-navy, #002b5f);
  font-weight: 800;
  margin: 0;
}
.hub-card--primary .hub-card__title { color: #fff; }

.hub-card__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted, #5a6b80);
  flex: 1 1 auto;
}
.hub-card--primary .hub-card__text { color: rgba(255, 255, 255, 0.9); }

.hub-card__cta {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--fnd-magenta, #c9005a);
}
.hub-card--primary .hub-card__cta { color: #ffd9e7; }

/* Ordered steps (start path, etc.) */
.hub-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  counter-reset: hub-step;
}
.hub-steps > li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 43, 95, 0.08);
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 43, 95, 0.04);
}
.hub-steps > li > span:first-child,
.hub-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fnd-navy, #002b5f), var(--fnd-magenta, #c9005a));
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.hub-steps h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--fnd-navy, #002b5f);
}
.hub-steps h3 a {
  color: inherit;
  text-decoration: none;
}
.hub-steps h3 a:hover { color: var(--fnd-magenta, #c9005a); }
.hub-steps p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--muted, #5a6b80);
}

.hub-band {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
  padding: 1.35rem 1.4rem;
  border-radius: var(--hub-radius);
  border: 1px solid rgba(201, 0, 90, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--hub-shadow);
}

.hub-note {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted, #5a6b80);
}
.hub-note a {
  color: var(--fnd-navy, #002b5f);
  font-weight: 700;
}

@media (max-width: 900px) {
  .hub-hero__inner,
  .hub-band {
    grid-template-columns: 1fr;
  }
  .hub-hero__copy h1 { max-width: none; }
}

/* Just diagnosed — open band, numbered steps */
.home-just-diagnosed {
  padding-top: 2.35rem;
  padding-bottom: 2rem;
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 72%);
}

.home-jd-band {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.75rem 2.25rem;
  align-items: center;
  padding: 1.35rem 1.4rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(201, 0, 90, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 36px rgba(0, 43, 95, 0.06);
}

.home-jd-band__copy h2 {
  margin: 0.15rem 0 0.65rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--navy, #002b5f);
}

.home-jd-band__copy p {
  margin: 0 0 1rem;
  color: rgba(0, 26, 59, 0.8);
  line-height: 1.55;
  max-width: 40rem;
}

.home-jd-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.home-jd-steps li {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

.home-jd-steps li > span {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--fnd-rose, #ed2b7b);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.home-jd-steps strong {
  display: block;
  color: var(--navy, #002b5f);
  font-size: 0.98rem;
}

.home-jd-steps em {
  display: block;
  font-style: normal;
  color: rgba(0, 26, 59, 0.68);
  font-size: 0.9rem;
  line-height: 1.35;
}

/* Explore resources — open pills, no nested cards */
.home-explore__head {
  margin-bottom: 1rem;
}

.home-resource-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.home-resource-pill {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(0, 43, 95, 0.1);
  box-shadow: 0 6px 16px rgba(0, 26, 59, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-resource-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(237, 43, 123, 0.35);
  box-shadow: 0 12px 24px rgba(0, 26, 59, 0.08);
}

.home-resource-pill strong {
  color: var(--navy, #002b5f);
  font-size: 1rem;
}

.home-resource-pill span {
  color: rgba(0, 26, 59, 0.65);
  font-size: 0.88rem;
  line-height: 1.35;
}

.home-topic-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.home-topic-chips > li {
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline-flex;
}


.home-topic-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 43, 95, 0.06);
  border: 1px solid rgba(0, 43, 95, 0.1);
  color: var(--navy, #002b5f);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.home-topic-chip:hover {
  background: rgba(237, 43, 123, 0.1);
  border-color: rgba(237, 43, 123, 0.3);
  color: var(--fnd-rose, #ed2b7b);
}

/* Stories + accent live rail */
.home-split {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.home-split__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(16rem, 0.85fr);
  gap: 1.75rem 2rem;
  align-items: start;
}

.home-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.home-story-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(0, 43, 95, 0.09);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 26, 59, 0.05);
}

.home-story-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: rgba(0, 43, 95, 0.05);
  overflow: hidden;
}

.home-story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-story-card__body {
  padding: 0.9rem 1rem 1.05rem;
}

.home-story-card__body h3 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.home-story-card__body h3 a {
  color: inherit;
  text-decoration: none;
}

.home-story-card__body h3 a:hover {
  color: var(--fnd-rose, #ed2b7b);
}

.home-story-card__body p {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  color: rgba(0, 26, 59, 0.72);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Live rail — solid navy contrast, not nested white boxes */
.home-live-rail {
  background: linear-gradient(165deg, #001a3b 0%, #002b5f 55%, #0a3d72 100%);
  color: #fff;
  border-radius: 1.15rem;
  padding: 1.25rem 1.3rem 1.4rem;
  box-shadow: 0 16px 36px rgba(0, 26, 59, 0.18);
}

.home-live-rail__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd0e4;
}

.home-live-rail h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.2;
}

.home-live-block + .home-live-block {
  margin-top: 1.15rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.home-live-block h3 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.home-live-title {
  margin: 0 0 0.35rem;
  font-weight: 800;
  font-size: 1.08rem;
  color: #fff;
}

.home-live-text {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  line-height: 1.45;
}

.home-live-rail .button {
  background: var(--fnd-rose, #ed2b7b);
  border-color: var(--fnd-rose, #ed2b7b);
  color: #fff;
}

.home-live-rail .card-link {
  color: #ffd0e4;
}

.home-live-links {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.home-live-links a {
  color: #fff;
}

.home-live-raffle-list {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
}

.home-live-raffle-list li + li {
  margin-top: 0.45rem;
}

.home-live-raffle-list a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.7rem;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-live-raffle-list a:hover {
  background: rgba(237, 43, 123, 0.22);
  border-color: rgba(255, 208, 228, 0.35);
}

.home-live-raffle-list strong {
  font-size: 0.98rem;
  line-height: 1.25;
}

.home-live-raffle-list em {
  font-style: normal;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Discord — fun band with logo */
.home-discord--fun {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.home-discord-fun {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem 1.75rem;
  align-items: center;
  padding: 1.5rem 1.6rem;
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 12% 20%, rgba(88, 101, 242, 0.18), transparent 42%),
    radial-gradient(circle at 90% 80%, rgba(237, 43, 123, 0.12), transparent 40%),
    linear-gradient(135deg, #f4f6ff 0%, #fff 55%, #fff5fa 100%);
  border: 1px solid rgba(88, 101, 242, 0.18);
  box-shadow: 0 14px 34px rgba(0, 26, 59, 0.07);
}

.home-discord-fun__badge {
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 1.15rem;
  display: grid;
  place-items: center;
  background: #5865f2;
  color: #fff;
  box-shadow: 0 12px 28px rgba(88, 101, 242, 0.35);
  transform: rotate(-4deg);
}

.home-discord-logo {
  width: 2.4rem;
  height: auto;
}

.home-discord-logo--btn {
  width: 1.2rem;
  height: auto;
  margin-right: 0.45rem;
  vertical-align: -0.15em;
}

.home-discord-fun__kicker {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5865f2;
}

.home-discord-fun__copy h2 {
  margin: 0 0 0.5rem;
  color: var(--navy, #002b5f);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
}

.home-discord-fun__copy p {
  margin: 0 0 1rem;
  color: rgba(0, 26, 59, 0.8);
  line-height: 1.55;
  max-width: 38rem;
}

.home-discord-fun__cta {
  display: inline-flex;
  align-items: center;
  background: #5865f2 !important;
  border-color: #5865f2 !important;
  color: #fff !important;
  font-size: 1.05rem;
  padding: 0.85rem 1.35rem;
  box-shadow: 0 10px 24px rgba(88, 101, 242, 0.3);
}

.home-discord-fun__cta:hover {
  background: #4752c4 !important;
  border-color: #4752c4 !important;
}

/* SeizeControl product banner — always high-contrast navy (not pale pink .teal) */
.home-sc-banner.section.navy,
.section.navy.home-sc-banner {
  background: linear-gradient(135deg, var(--fnd-deep-navy, #001a3b), var(--fnd-navy, #002b5f));
  color: #fff;
}

.home-sc-banner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 1.5rem 2rem;
  align-items: center;
}

.home-sc-banner__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffd0e4;
}

.home-sc-banner__copy h2 {
  margin: 0.2rem 0 0.6rem;
  color: #fff;
}

.home-sc-banner__copy p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 40rem;
  line-height: 1.55;
}

.home-sc-banner .button.secondary {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  color: #fff;
}

.home-sc-banner .button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.home-sc-banner__visual .product-logo {
  max-width: 11rem;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.25));
}

/* Raised-funds ticker in live rail */
.home-live-ticker {
  margin: 0 0 1.1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.85rem;
  background: rgba(237, 43, 123, 0.2);
  border: 1px solid rgba(255, 208, 228, 0.28);
}

.home-live-ticker__total {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.home-live-ticker__total span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffd0e4;
}

.home-live-ticker__total strong {
  font-size: 1.55rem;
  line-height: 1.1;
  color: #fff;
}

.home-live-ticker__split {
  margin: 0.55rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
}

.home-live-ticker__split em {
  font-style: normal;
  font-weight: 700;
  color: #fff;
}

.home-live-raised {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.home-live-raised strong {
  color: #fff;
}

/* FND Day empathy strip */
.home-fnd-day {
  padding: 2.25rem 0;
  background:
    linear-gradient(120deg, rgba(0, 43, 95, 0.03), rgba(237, 43, 123, 0.05));
}

.home-fnd-day__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 1.5rem 2rem;
  align-items: center;
}

.home-fnd-day__media {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 26, 59, 0.12);
  aspect-ratio: 16 / 10;
  background: #e8eef6;
}

.home-fnd-day__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-fnd-day__copy h2 {
  margin: 0.2rem 0 0.7rem;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  color: var(--navy, #002b5f);
}

.home-fnd-day__copy p {
  margin: 0 0 1rem;
  color: rgba(0, 26, 59, 0.78);
  line-height: 1.55;
  max-width: 38rem;
}

/* Safety strip — always visible, never competes with H1 */
.home-urgent {
  margin: 0;
  padding: 1.35rem 0;
  background: #fff8e8;
  border-top: 1px solid rgba(180, 120, 0, 0.18);
  border-bottom: 1px solid rgba(180, 120, 0, 0.12);
}

.home-urgent__inner {
  max-width: 48rem;
}

.home-urgent h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: #6b4a00;
}

.home-urgent p {
  margin: 0;
  color: rgba(60, 40, 0, 0.88);
  font-size: 0.95rem;
  line-height: 1.55;
}

.home-sources {
  margin: 0 auto;
  padding: 1.1rem 1.25rem 2rem;
  color: rgba(0, 26, 59, 0.62);
  font-size: 0.88rem;
  line-height: 1.5;
}

.home-sources strong {
  color: rgba(0, 26, 59, 0.78);
}

@media (max-width: 1024px) {
  .home-resource-row {
    grid-template-columns: 1fr 1fr;
  }

  .home-split__grid {
    grid-template-columns: 1fr;
  }

  .home-live-rail {
    order: -1;
  }

  .home-fnd-day__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-jd-band {
    grid-template-columns: 1fr;
    padding: 1.1rem;
  }

  .home-resource-row {
    grid-template-columns: 1fr;
  }

  .home-story-grid {
    grid-template-columns: 1fr;
  }

  .home-discord-fun {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-discord-fun__badge {
    margin: 0 auto;
    transform: none;
  }

  .home-discord-fun__actions {
    justify-content: center;
  }

  .home-sc-banner__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-sc-banner .button-row {
    justify-content: center;
  }

  .home-sc-banner__visual {
    order: -1;
  }

  .home-fnd-day__media {
    max-height: 12rem;
  }
}

/* ── Phase 3: live impact KPIs + appointment pack print ── */
.impact-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}

.impact-kpi-grid--highlight {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

/* Public /impact/ headline row: always four equal boxes */
.impact-kpi-grid--highlight.impact-kpi-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .impact-kpi-grid--highlight.impact-kpi-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .impact-kpi-grid--highlight.impact-kpi-grid--four {
    grid-template-columns: 1fr;
  }
}

.impact-kpi-grid--community {
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
}

.impact-kpi--primary {
  background: linear-gradient(165deg, #c9005a 0%, #002b5f 100%);
}

/* Signposted sits alongside grants issued — same card family, slightly warmer accent */
.impact-kpi--signposted {
  background: linear-gradient(165deg, #0f3d4c 0%, #0d5c63 55%, #002b5f 100%);
}

.impact-kpi--signposted span {
  color: #99f6e4;
}

.impact-kpi--light {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 43, 95, 0.05);
}

.impact-kpi--light span {
  color: var(--fnd-magenta);
}

.impact-kpi--light strong {
  color: var(--fnd-navy);
}

.impact-kpi--light small {
  color: var(--muted);
}

a.impact-kpi {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.impact-kpi:hover,
a.impact-kpi:focus-visible {
  border-color: rgba(0, 43, 95, 0.28);
  box-shadow: 0 8px 22px rgba(0, 43, 95, 0.09);
}

.impact-kpi {
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  background: linear-gradient(165deg, #001a3b 0%, #002b5f 100%);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.impact-kpi span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffb3d2;
  margin-bottom: 0.45rem;
}

.impact-kpi strong {
  display: block;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}

.impact-kpi small {
  display: block;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.4;
}

.impact-live-note {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Grant demand: combined support bar + compact tiles */
.impact-demand-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0 0 1.15rem;
}

.impact-demand-compare {
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 43, 95, 0.05);
}

.impact-demand-compare-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.95rem;
}

.impact-demand-compare-head span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fnd-navy);
}

.impact-demand-compare-head small {
  color: var(--muted);
  font-size: 0.88rem;
}

.impact-demand-bar-row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) auto;
  gap: 0.55rem 0.75rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.impact-demand-bar-row:last-child {
  margin-bottom: 0;
}

.impact-demand-bar-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.impact-demand-bar-track {
  height: 0.85rem;
  border-radius: 999px;
  background: rgba(0, 43, 95, 0.08);
  overflow: hidden;
}

.impact-demand-bar {
  height: 100%;
  border-radius: 999px;
  min-width: 0.35rem;
  transition: width 0.35s ease;
}

.impact-demand-bar--need {
  background: linear-gradient(90deg, #c9005a 0%, #e83a86 100%);
}

.impact-demand-bar--delivered {
  background: linear-gradient(90deg, #002b5f 0%, #1a5fa8 100%);
}

.impact-demand-bar-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fnd-navy);
  white-space: nowrap;
  text-align: right;
  min-width: 4.5rem;
}

.impact-demand-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.15rem;
}

.impact-demand-tile {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--white);
  text-align: center;
}

.impact-demand-tile strong {
  display: block;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fnd-navy);
}

.impact-demand-tile span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

.impact-demand-tile--delivered {
  background: linear-gradient(165deg, #f0f7ff 0%, #ffffff 70%);
  border-color: rgba(0, 43, 95, 0.14);
}

.impact-demand-tile--delivered strong {
  color: var(--fnd-navy);
}

.impact-demand-tile--need {
  background: linear-gradient(165deg, #fff5f9 0%, #ffffff 70%);
  border-color: rgba(201, 0, 90, 0.16);
}

.impact-demand-tile--need strong {
  color: var(--fnd-magenta);
}

.impact-demand-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: linear-gradient(165deg, #001a3b 0%, #002b5f 100%);
  color: var(--white);
}

.impact-demand-cta p {
  margin: 0;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.impact-demand-cta strong {
  color: #fff;
}

.impact-demand-cta .action-row {
  margin: 0;
  flex-shrink: 0;
}

.impact-demand-cta .button.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.impact-demand-cta .button.secondary:hover,
.impact-demand-cta .button.secondary:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 760px) {
  .impact-demand-visual {
    grid-template-columns: 1fr;
  }

  .impact-demand-bar-row {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .impact-demand-bar-value {
    grid-column: 2;
    text-align: left;
    min-width: 0;
    font-size: 0.95rem;
  }

  .impact-demand-cta {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 1100px) {
  .impact-kpi-grid.impact-kpi-grid--community,
  .impact-demand-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .impact-kpi-grid.impact-kpi-grid--community,
  .impact-demand-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.impact-live-updated {
  color: var(--muted);
}

.impact-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.75rem;
}

.impact-source-card {
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
}

.impact-source-card span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fnd-magenta);
  margin-bottom: 0.3rem;
}

.impact-source-card strong {
  display: block;
  color: var(--fnd-navy);
  font-size: 1.15rem;
}

.impact-source-card small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ── Our FND Stories ── */
.fnd-stories-hero .lead {
  max-width: 42rem;
}

.fnd-stories-hero .lead a {
  color: var(--fnd-magenta, #c9005a);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.fnd-stories-hero--compact {
  padding-bottom: 1.5rem;
}

.fnd-stories-breadcrumbs {
  margin: 0 0 0.85rem;
}

.fnd-stories-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.fnd-stories-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--muted);
  opacity: 0.7;
}

.fnd-stories-breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.fnd-stories-breadcrumbs a:hover {
  color: var(--fnd-magenta);
}

.fnd-stories-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 1.5rem 2rem;
  align-items: start;
}

.fnd-stories-intro h2 {
  margin: 0 0 0.65rem;
  color: var(--fnd-navy);
}

.fnd-stories-intro p {
  margin: 0 0 0.85rem;
  line-height: 1.65;
  color: var(--text);
  max-width: 48rem;
}

.fnd-stories-share-card {
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(201, 0, 90, 0.16);
  background: linear-gradient(165deg, #fff5f9 0%, #ffffff 72%);
  box-shadow: 0 10px 28px rgba(0, 43, 95, 0.05);
}

.fnd-stories-share-card h2 {
  margin: 0 0 0.5rem;
  color: var(--fnd-navy);
  font-size: 1.25rem;
}

.fnd-stories-share-card p {
  margin: 0 0 0.75rem;
  color: var(--text);
  line-height: 1.55;
}

.fnd-stories-share-card ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.55;
}

.fnd-stories-section-head .fnd-stories-count {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9em;
}

.fnd-stories-faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
}

.fnd-stories-faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  padding: 0.85rem 1.1rem;
}

.fnd-stories-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--fnd-navy);
  list-style-position: outside;
}

.fnd-stories-faq-item p {
  margin: 0.65rem 0 0;
  color: var(--text);
  line-height: 1.6;
}

.fnd-stories-faq-item a {
  color: var(--fnd-magenta);
  font-weight: 600;
}

.fnd-story-discord {
  margin: 2rem 0 0;
  padding: 0;
}

.fnd-story-discord.home-discord--fun {
  padding-top: 0;
  padding-bottom: 0;
}

.fnd-story-discord .home-discord-fun {
  padding: 1.2rem 1.25rem;
}

.home-discord--compact .home-discord-fun {
  grid-template-columns: auto minmax(0, 1fr);
}

@media (max-width: 820px) {
  .fnd-stories-intro-grid {
    grid-template-columns: 1fr;
  }

  .home-discord--compact .home-discord-fun,
  .fnd-story-discord .home-discord-fun {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .fnd-story-discord .home-discord-fun__badge {
    width: 3.75rem;
    height: 3.75rem;
  }
}

.fnd-story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 1.15rem;
}

.fnd-story-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 22px rgba(0, 43, 95, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fnd-story-card:hover,
.fnd-story-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 43, 95, 0.1);
  outline: none;
}

.fnd-story-card-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: linear-gradient(145deg, #002b5f, #c9005a);
}

.fnd-story-card-photo--empty {
  min-height: 10rem;
}

.fnd-story-card-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.fnd-story-card-body h2,
.fnd-story-card-body h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--fnd-navy);
  line-height: 1.3;
}

.fnd-story-card-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--fnd-magenta);
  font-weight: 600;
}

.fnd-story-card-excerpt {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
  flex: 1;
}

.fnd-story-card-link {
  margin-top: 0.55rem;
  font-weight: 700;
  color: var(--fnd-navy);
  font-size: 0.92rem;
}

.fnd-stories-empty,
.fnd-stories-cta {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.fnd-stories-empty h2,
.fnd-stories-cta h2 {
  color: var(--fnd-navy);
}

.fnd-stories-more {
  text-align: center;
  margin: 1.75rem 0 0;
}

/* ── FND Stories celebrate redesign ─────────────────────── */
.fnd-stories-page--celebrate {
  background: #faf8f6;
}

.fnd-stories-celebrate-hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 2.75rem;
  background:
    radial-gradient(ellipse 70% 80% at 90% 10%, rgba(201, 0, 90, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(0, 43, 95, 0.45), transparent 50%),
    linear-gradient(145deg, #001a3b 0%, #002b5f 45%, #4a0a2e 100%);
  color: #fff;
}

.fnd-stories-celebrate-hero--compact {
  padding: 1.5rem 0 1.65rem;
}

.fnd-stories-celebrate-count {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffd0e2;
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
}

.fnd-stories-shelf--first {
  padding-top: 1.5rem !important;
}

.fnd-stories-celebrate-hero__glow {
  position: absolute;
  inset: auto -10% -40% 40%;
  width: min(32rem, 90vw);
  height: min(32rem, 90vw);
  background: radial-gradient(circle, rgba(237, 43, 123, 0.35), transparent 65%);
  pointer-events: none;
}

.fnd-stories-celebrate-hero__inner {
  position: relative;
  z-index: 1;
}

.fnd-stories-breadcrumbs--on-dark a {
  color: #f9a8d4;
}

.fnd-stories-breadcrumbs--on-dark li {
  color: rgba(255, 255, 255, 0.75);
}

.fnd-stories-celebrate-kicker {
  margin: 0.5rem 0 0.65rem;
  color: #ffb3cd;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fnd-stories-celebrate-hero h1 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.fnd-stories-celebrate-lead {
  margin: 0;
  max-width: 38rem;
  color: #e8eef7;
  font-size: 1.12rem;
  line-height: 1.55;
  font-weight: 500;
}

.fnd-stories-celebrate-lead strong {
  color: #fff;
}

.fnd-stories-celebrate-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 1.35rem;
  max-width: 36rem;
}

.fnd-stories-stat {
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.fnd-stories-stat strong {
  display: block;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.fnd-stories-stat span {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

.fnd-stories-btn-primary {
  background: #c9005a !important;
  border-color: #c9005a !important;
  box-shadow: 0 10px 28px rgba(201, 0, 90, 0.35);
}

.fnd-stories-btn-ghost {
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
}

.fnd-stories-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

.fnd-stories-banner {
  padding: 1.5rem 0 !important;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.fnd-stories-banner__quote {
  margin: 0 auto;
  max-width: 40rem;
  text-align: center;
}

.fnd-stories-banner__quote p {
  margin: 0;
  color: var(--fnd-navy);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.fnd-stories-banner__quote footer {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.fnd-stories-pillars {
  background: #fff;
}

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

.fnd-stories-pillar {
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  background: linear-gradient(165deg, #fff 0%, #f7f9fc 100%);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0, 43, 95, 0.05);
}

.fnd-stories-pillar__icon {
  display: inline-flex;
  color: var(--fnd-magenta);
  font-weight: 900;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}

.fnd-stories-pillar h3 {
  margin: 0 0 0.4rem;
  color: var(--fnd-navy);
  font-size: 1.1rem;
}

.fnd-stories-pillar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.fnd-stories-intro--celebrate {
  background: #faf8f6;
}

.fnd-stories-checklist {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.fnd-stories-checklist li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.5rem;
  color: var(--text);
  font-weight: 600;
}

.fnd-stories-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--fnd-magenta);
  font-weight: 900;
}

.fnd-stories-share-card--celebrate {
  background: linear-gradient(160deg, #002b5f 0%, #4a0a2e 100%);
  color: #fff;
  border: none;
  box-shadow: 0 18px 40px rgba(0, 43, 95, 0.2);
}

.fnd-stories-share-card--celebrate h2,
.fnd-stories-share-card--celebrate p,
.fnd-stories-share-card--celebrate li {
  color: #fff;
}

.fnd-stories-share-card__kicker {
  margin: 0 0 0.4rem;
  color: #ffb3cd;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fnd-stories-share-card--celebrate .button {
  background: #c9005a;
  border-color: #c9005a;
  margin-top: 0.35rem;
}

.fnd-stories-share-card__note {
  margin: 0.85rem 0 0 !important;
  font-size: 0.88rem !important;
  opacity: 0.9;
}

.fnd-stories-share-card__note a {
  color: #ffb3cd !important;
  font-weight: 800;
}

.fnd-stories-shelf {
  background: #fff;
}

.fnd-stories-count {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fff1f7;
  color: var(--fnd-magenta);
  font-size: 0.78rem;
  font-weight: 800;
  vertical-align: middle;
}

.fnd-story-grid--celebrate {
  gap: 1.1rem;
}

.fnd-story-card--celebrate {
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(0, 43, 95, 0.1);
  box-shadow: 0 14px 32px rgba(0, 43, 95, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.fnd-story-card--celebrate:hover,
.fnd-story-card--celebrate:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 43, 95, 0.14);
}

.fnd-story-card-ribbon {
  margin: 0 0 0.35rem;
  color: var(--fnd-magenta);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fnd-story-card-author {
  font-weight: 800;
  color: var(--fnd-navy);
}

.fnd-story-card-photo--celebrate {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #002b5f, #c9005a);
  color: #fff;
  font-size: 2.5rem;
  font-weight: 900;
}

.fnd-stories-empty--celebrate {
  padding: 2rem 1.25rem;
  border-radius: 1.1rem;
  background: linear-gradient(160deg, #fff 0%, #fff5f9 100%);
  border: 1px dashed rgba(201, 0, 90, 0.3);
}

.fnd-stories-together {
  background: linear-gradient(135deg, #002b5f 0%, #001a3b 50%, #4a0a2e 100%);
  color: #fff;
}

.fnd-stories-together__inner {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .fnd-stories-together__inner {
    grid-template-columns: 1.4fr auto;
    align-items: center;
  }
}

.fnd-stories-together h2 {
  margin: 0 0 0.55rem;
  color: #fff;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -0.02em;
}

.fnd-stories-together p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
  max-width: 40rem;
}

.fnd-stories-together strong {
  color: #fff;
}

.fnd-stories-together .button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.fnd-stories-together .button:not(.secondary) {
  background: #c9005a;
  border-color: #c9005a;
}

.fnd-story-wrap {
  max-width: 42rem;
}

/* Legacy preview still uses these class names */
.fnd-story-back {
  margin: 0 0 1rem;
}

.fnd-story-back a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.fnd-story-back a:hover {
  color: var(--fnd-magenta);
}

.fnd-story-header h1 {
  margin: 0.35rem 0 0.5rem;
  color: var(--fnd-navy);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  line-height: 1.2;
}

.fnd-story-byline {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.fnd-story-hero-photo {
  margin: 1.35rem 0 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.fnd-story-hero-photo img {
  display: block;
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
}

.fnd-story-section {
  margin: 0 0 1.5rem;
}

.fnd-story-section h2 {
  margin: 0 0 0.55rem;
  color: var(--fnd-navy);
  font-size: 1.2rem;
}

.fnd-story-section p {
  margin: 0 0 0.85rem;
  line-height: 1.65;
  color: var(--ink);
}

.fnd-story-section--message {
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: linear-gradient(165deg, #fff5f9 0%, #ffffff 70%);
  border: 1px solid rgba(201, 0, 90, 0.16);
}

/* ==========================================================================
   Published story page — editorial layout
   ========================================================================== */

@font-face {
  font-family: "Paint Brush Script";
  src: url("/assets/fonts/PaintBrushScript-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.fnd-story-page {
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(201, 0, 90, 0.05), transparent 55%),
    radial-gradient(80% 40% at 0% 20%, rgba(0, 43, 95, 0.05), transparent 50%),
    #f6f8fc;
}

/* Hero uses the same art language as Connect Links (not the story photo) */
.fnd-story-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: auto;
  color: #fff;
  background-color: #001a3b;
  background-image: url("/assets/img/linkbg.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .fnd-story-hero {
    background-image: url("/assets/img/desklink.png");
    background-position: center center;
  }
}

.fnd-story-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 26, 59, 0.55) 0%, rgba(0, 26, 59, 0.72) 45%, rgba(0, 18, 40, 0.9) 100%),
    radial-gradient(ellipse 70% 55% at 80% 0%, rgba(201, 0, 90, 0.18), transparent 58%);
  pointer-events: none;
}

.fnd-story-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
  padding: 2.1rem 0 2.75rem;
  max-width: 52rem;
}

.fnd-story-breadcrumbs {
  margin: 0;
}

.fnd-story-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 600;
}

.fnd-story-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  opacity: 0.55;
}

.fnd-story-breadcrumbs a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.fnd-story-breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

.fnd-story-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.fnd-story-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--fnd-magenta, #c9005a);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fnd-story-chip--soft {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.fnd-story-hero__title {
  margin: 0;
  max-width: 16ch;
  color: #fff;
  font-size: clamp(2.1rem, 5.4vw, 3.55rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.fnd-story-hero__dek {
  margin: 0;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  font-weight: 500;
  line-height: 1.55;
}

.fnd-story-hero__byline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.fnd-story-avatar {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #ed2b7b, #c9005a);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(201, 0, 90, 0.35);
  flex-shrink: 0;
}

.fnd-story-avatar--lg {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.25rem;
}

.fnd-story-hero__byline-text {
  display: grid;
  gap: 0.1rem;
}

.fnd-story-hero__byline-text strong {
  color: #fff;
  font-size: 1.05rem;
}

.fnd-story-hero__byline-text span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.fnd-story-article-shell {
  position: relative;
  margin-top: -1.75rem;
  padding-bottom: 0.5rem;
}

.fnd-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 18.5rem);
  gap: 1.5rem 1.75rem;
  align-items: start;
}

.fnd-story-main {
  min-width: 0;
  padding: 1.5rem 1.55rem 1.75rem;
  border: 1px solid rgba(0, 43, 95, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 18px 50px rgba(0, 43, 95, 0.08),
    0 2px 0 rgba(255, 255, 255, 0.8) inset;
}

/* Story photos are cropped square on upload — show them as a clean 1:1 frame */
.fnd-story-portrait {
  margin: 0 0 1.35rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 43, 95, 0.1);
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 43, 95, 0.06);
  max-width: min(100%, 28rem);
}

.fnd-story-portrait__frame {
  display: grid;
  place-items: center;
  padding: 0;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 0, 90, 0.06), transparent 55%),
    linear-gradient(180deg, #f4f7fb 0%, #eef2f8 100%);
}

.fnd-story-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.fnd-story-portrait figcaption {
  margin: 0;
  padding: 0.6rem 0.95rem 0.75rem;
  background: #fff;
  border-top: 1px solid rgba(0, 43, 95, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.fnd-story-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin: 0 0 1.4rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafd 0%, #f2f5fa 100%);
  border: 1px solid rgba(0, 43, 95, 0.08);
}

.fnd-story-toolbar__label {
  color: var(--fnd-navy);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fnd-story-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.fnd-story-share-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(0, 43, 95, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--fnd-navy);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fnd-story-share-btn:hover,
.fnd-story-share-btn:focus-visible {
  border-color: rgba(201, 0, 90, 0.35);
  color: var(--fnd-magenta);
  outline: none;
}

.fnd-story-share-btn.is-copied {
  background: #e8f5ee;
  border-color: rgba(22, 163, 74, 0.3);
  color: #17633a;
}

/* Body / prose */
.fnd-story-body {
  min-width: 0;
}

.fnd-story-prose {
  font-size: clamp(1.05rem, 1.5vw, 1.14rem);
  line-height: 1.75;
  color: #1a2433;
}

.fnd-story-prose > :first-child {
  margin-top: 0;
}

.fnd-story-prose > :last-child {
  margin-bottom: 0;
}

.fnd-story-prose p {
  margin: 0 0 1.05rem;
}

.fnd-story-body--freeform .fnd-story-prose > p:first-of-type {
  font-size: 1.18em;
  font-weight: 600;
  color: var(--fnd-navy);
  line-height: 1.55;
}

/* Script section titles — readable decorative break between body paragraphs */
.fnd-story-prose h2,
.fnd-story-chapter__head h2 {
  margin: 2.35rem 0 0.95rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 43, 95, 0.1);
  color: var(--fnd-navy, #002b5f);
  font-family: "Paint Brush Script", "Segoe Script", "Apple Chancery", "Brush Script MT", cursive;
  font-size: clamp(2.15rem, 4.2vw, 2.85rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.fnd-story-prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.fnd-story-prose h3 {
  margin: 1.5rem 0 0.55rem;
  color: var(--fnd-navy);
  font-size: 1.15rem;
  font-weight: 800;
}

.fnd-story-prose ul,
.fnd-story-prose ol {
  margin: 0 0 1.05rem;
  padding-left: 1.25rem;
}

.fnd-story-prose li + li {
  margin-top: 0.35rem;
}

.fnd-story-prose blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.15rem 1rem 1.25rem;
  border-left: 6px solid var(--fnd-magenta);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(135deg, #fff5f9 0%, #ffffff 70%);
  color: var(--fnd-navy);
  font-size: 1.12em;
  font-weight: 750;
  line-height: 1.45;
}

.fnd-story-prose blockquote p {
  margin: 0;
}

.fnd-story-prose a {
  color: var(--fnd-magenta);
  font-weight: 700;
}

.fnd-story-prose strong {
  color: #121a28;
}

/* Guided chapters */
.fnd-story-chapter {
  margin: 0 0 1.75rem;
  padding: 0 0 0.25rem;
}

.fnd-story-chapter + .fnd-story-chapter {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 43, 95, 0.08);
}

.fnd-story-chapter__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 1.1rem 0 0.85rem;
}

.fnd-story-chapter__index {
  color: var(--fnd-magenta);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  min-width: 1.6rem;
}

.fnd-story-chapter__head h2 {
  margin: 0;
  padding-top: 0;
  border-top: 0;
}

.fnd-story-chapter--message {
  margin-top: 1.5rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid rgba(201, 0, 90, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(237, 43, 123, 0.1), transparent 55%),
    linear-gradient(165deg, #fff7fb 0%, #ffffff 70%);
}

.fnd-story-chapter--message .fnd-story-chapter__head {
  margin-top: 0;
}

.fnd-story-signoff {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin: 2rem 0 0;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 43, 95, 0.08);
  background: linear-gradient(180deg, #f8fafd 0%, #eef3f9 100%);
}

.fnd-story-signoff__kicker {
  margin: 0 0 0.15rem;
  color: var(--fnd-magenta);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fnd-story-signoff__name {
  margin: 0;
  color: var(--fnd-navy);
  font-size: 1.12rem;
  font-weight: 850;
}

.fnd-story-signoff__meta {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Sidebar rail */
.fnd-story-rail {
  display: grid;
  gap: 0.9rem;
  position: sticky;
  top: 1rem;
}

.fnd-story-rail-card {
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(0, 43, 95, 0.1);
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 43, 95, 0.06);
}

.fnd-story-rail-card--soft {
  background: linear-gradient(165deg, #fff8fb 0%, #ffffff 70%);
  border-color: rgba(201, 0, 90, 0.14);
}

.fnd-story-rail-card__kicker {
  margin: 0 0 0.35rem;
  color: var(--fnd-magenta);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fnd-story-rail-card h2 {
  margin: 0 0 0.45rem;
  color: var(--fnd-navy);
  font-size: 1.15rem;
  line-height: 1.25;
}

.fnd-story-rail-card p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.fnd-story-rail-card .button {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.45rem;
}

.fnd-story-rail-card .button.secondary {
  margin-bottom: 0;
}

.fnd-story-rail-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fnd-story-rail-links li + li {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(0, 43, 95, 0.08);
}

.fnd-story-rail-links a {
  color: var(--fnd-navy);
  font-weight: 750;
  text-decoration: none;
}

.fnd-story-rail-links a:hover {
  color: var(--fnd-magenta);
}

.fnd-story-related {
  padding-top: 0.5rem;
}

.fnd-story-after {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 2.5rem;
}

.fnd-story-after .fnd-story-discord {
  margin: 0;
}

.fnd-story-footer-cta {
  margin: 0;
  padding: 1.5rem 1.45rem;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(232, 0, 122, 0.28) 0%, transparent 55%),
    linear-gradient(155deg, #001226 0%, #002b5f 55%, #031a3d 100%);
  color: #fff;
  display: grid;
  gap: 1rem;
}

.fnd-story-footer-cta__kicker {
  margin: 0 0 0.35rem;
  color: rgba(255, 180, 210, 0.95);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fnd-story-footer-cta h2 {
  margin: 0 0 0.45rem;
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.2;
}

.fnd-story-footer-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  max-width: 42rem;
}

.fnd-story-footer-cta .button.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.fnd-story-footer-cta .button.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
  .fnd-story-layout {
    grid-template-columns: 1fr;
  }

  .fnd-story-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .fnd-story-hero__inner {
    padding: 1.5rem 0 2.4rem;
  }

  .fnd-story-hero__title {
    max-width: none;
  }

  .fnd-story-main {
    padding: 1.15rem 1.05rem 1.35rem;
    border-radius: 18px;
  }

  .fnd-story-article-shell {
    margin-top: -1.25rem;
  }

  .fnd-story-rail {
    grid-template-columns: 1fr;
  }

  .fnd-story-portrait__frame {
    padding: 0.45rem;
  }

  .fnd-story-prose h2,
  .fnd-story-chapter__head h2 {
    font-size: clamp(1.95rem, 7.5vw, 2.35rem);
  }
}

.fnd-story-form-wrap {
  max-width: 40rem;
}

.fnd-story-guidance {
  margin: 0 0 1.35rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f7f9fc;
}

.fnd-story-guidance strong {
  display: block;
  color: var(--fnd-navy);
  margin-bottom: 0.45rem;
}

.fnd-story-guidance ul {
  margin: 0 0 0.65rem;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.5;
}

.fnd-story-crisis {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.fnd-story-form label {
  display: block;
  margin: 0 0 1.1rem;
}

.fnd-story-form label > span {
  display: block;
  font-weight: 700;
  color: var(--fnd-navy);
  margin-bottom: 0.35rem;
}

.fnd-story-form label > span em {
  color: var(--fnd-magenta);
  font-style: normal;
}

.fnd-story-form input[type="text"],
.fnd-story-form select,
.fnd-story-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.fnd-story-form textarea {
  resize: vertical;
  min-height: 5rem;
}

.fnd-story-form small {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.fnd-story-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.fnd-story-check {
  display: flex !important;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

.fnd-story-check input {
  margin-top: 0.2rem;
}

.fnd-story-check span {
  font-weight: 500 !important;
  color: var(--ink) !important;
  line-height: 1.45;
}

.fnd-story-form-actions {
  margin-top: 0.5rem;
}

/* —— Story photo square cropper —— */
.fnd-story-photo-field {
  margin: 0 0 1.1rem;
}

.fnd-story-photo-field > label > span,
.fnd-story-photo-field label span {
  display: block;
  font-weight: 700;
  color: var(--fnd-navy);
  margin-bottom: 0.35rem;
}

.fnd-story-photo-field input[type="file"] {
  display: block;
  width: 100%;
  padding: 0.55rem 0;
  font: inherit;
}

.fnd-story-photo-field > small {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.fnd-story-photo-crop-preview {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-top: 0.85rem;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 0, 90, 0.18);
  background: linear-gradient(165deg, #fff5f9 0%, #fff 75%);
}

.fnd-story-photo-crop-preview[hidden] {
  display: none !important;
}

.fnd-story-photo-crop-preview img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0, 43, 95, 0.1);
  flex-shrink: 0;
  background: #eef2f8;
}

.fnd-story-photo-crop-preview__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.fnd-story-photo-crop-preview__meta strong {
  color: var(--fnd-navy);
  font-size: 0.95rem;
}

.fnd-story-photo-crop-preview__meta span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.fnd-story-photo-crop-preview__meta .button {
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.88rem;
}

.fnd-story-photo-crop-status {
  margin: 0.5rem 0 0;
  min-height: 1.25em;
  color: var(--fnd-magenta);
  font-size: 0.9rem;
  font-weight: 600;
}

.fnd-story-current-photo {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.fnd-story-current-photo-hint {
  color: var(--muted);
  font-weight: 400;
}

.fnd-story-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  box-sizing: border-box;
}

.fnd-story-crop-modal[hidden] {
  display: none !important;
}

.fnd-story-crop-modal.is-open,
.fnd-story-crop-modal:not([hidden]) {
  display: flex !important;
}

.fnd-story-crop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 18, 40, 0.62);
  backdrop-filter: blur(3px);
}

.fnd-story-crop-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 22.5rem);
  max-height: min(90vh, 36rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 26, 59, 0.32);
  border: 1px solid rgba(0, 43, 95, 0.08);
  box-sizing: border-box;
}

.fnd-story-crop-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.fnd-story-crop-kicker {
  margin: 0 0 0.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fnd-magenta);
}

.fnd-story-crop-header h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--fnd-navy);
  line-height: 1.25;
}

.fnd-story-crop-help {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.fnd-story-crop-stage-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 0.75rem;
}

/* Fixed, compact square — never expand to the full photo resolution */
.fnd-story-crop-stage {
  position: relative;
  width: 280px;
  height: 280px;
  max-width: min(280px, calc(100vw - 3.5rem));
  max-height: min(280px, calc(100vw - 3.5rem));
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(45deg, #1a2a40 25%, transparent 25%),
    linear-gradient(-45deg, #1a2a40 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1a2a40 75%),
    linear-gradient(-45deg, transparent 75%, #1a2a40 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-color: #0b1a2e;
  cursor: grab;
  touch-action: none;
  user-select: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.fnd-story-crop-stage.is-dragging {
  cursor: grabbing;
}

.fnd-story-crop-stage img {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  max-width: none !important;
  max-height: none !important;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  will-change: left, top, width, height;
  /* Prevent browser from flashing full-res intrinsic size */
  object-fit: none;
}

.fnd-story-crop-frame {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.92),
    0 0 0 1px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.fnd-story-crop-zoom {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: center;
  margin: 0 0 0.85rem;
  font-weight: 600;
  color: var(--fnd-navy);
  font-size: 0.88rem;
}

.fnd-story-crop-zoom input[type="range"] {
  width: 100%;
  accent-color: var(--fnd-magenta);
}

.fnd-story-crop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fnd-story-crop-actions .button {
  font-size: 0.92rem;
  padding: 0.55rem 0.9rem;
}

body.fnd-story-crop-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .fnd-story-crop-dialog {
    width: min(100%, 22rem);
    padding: 0.9rem;
    max-height: 92vh;
  }

  .fnd-story-crop-stage {
    width: min(260px, calc(100vw - 3.25rem));
    height: min(260px, calc(100vw - 3.25rem));
    max-width: min(260px, calc(100vw - 3.25rem));
    max-height: min(260px, calc(100vw - 3.25rem));
  }

  .fnd-story-photo-crop-preview {
    flex-direction: column;
    align-items: flex-start;
  }
}

.fnd-story-format-hint {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.fnd-story-mode-picker {
  border: 0;
  margin: 0 0 1.35rem;
  padding: 0;
}

.fnd-story-mode-picker legend {
  font-weight: 700;
  color: var(--fnd-navy);
  margin-bottom: 0.65rem;
}

.fnd-story-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.fnd-story-mode-card {
  text-align: left;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fnd-story-mode-card strong {
  display: block;
  color: var(--fnd-navy);
  margin-bottom: 0.35rem;
}

.fnd-story-mode-card span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.fnd-story-mode-card.is-active {
  border-color: var(--fnd-magenta);
  box-shadow: 0 0 0 2px rgba(201, 0, 90, 0.12);
  background: linear-gradient(165deg, #fff5f9 0%, #fff 70%);
}

.fnd-story-editor-label {
  margin-bottom: 0.45rem;
}

.fnd-story-editor-label span {
  display: block;
  font-weight: 700;
  color: var(--fnd-navy);
  margin-bottom: 0.2rem;
}

.fnd-story-editor-label small {
  color: var(--muted);
}

.fnd-story-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.fnd-story-editor-toolbar button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--fnd-navy);
}

.fnd-story-editor-toolbar button:hover {
  border-color: var(--fnd-magenta);
}

.fnd-story-editor {
  min-height: 16rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  line-height: 1.55;
  outline: none;
}

.fnd-story-editor:empty:before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.fnd-story-editor:focus {
  border-color: rgba(0, 43, 95, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 43, 95, 0.08);
}

.fnd-story-editor h2,
.fnd-story-freeform-body h2 {
  font-size: 1.2rem;
  color: var(--fnd-navy);
  margin: 1rem 0 0.45rem;
}

.fnd-story-freeform-body p,
.fnd-story-editor p {
  margin: 0 0 0.85rem;
}

body.fnd-story-preview-open {
  overflow: hidden;
}

.fnd-story-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.fnd-story-preview-modal[hidden] {
  display: none !important;
}

.fnd-story-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 45, 0.55);
}

.fnd-story-preview-dialog {
  position: relative;
  width: min(44rem, 100%);
  max-height: min(90vh, 52rem);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 20, 45, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fnd-story-preview-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #f7f9fc;
}

.fnd-story-preview-scroll {
  overflow: auto;
  padding: 0.5rem 0 1.25rem;
}

.fnd-story-preview-article {
  padding: 0 1.25rem;
}

.fnd-story-preview-note {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f7f9fc;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .fnd-story-mode-grid {
    grid-template-columns: 1fr;
  }
}

.fnd-story-current-photo {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
}

.fnd-story-mine-list {
  display: grid;
  gap: 0.85rem;
}

.fnd-story-mine-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}

.fnd-story-mine-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--fnd-navy);
}

.fnd-story-mine-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.fnd-story-status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: capitalize;
  background: #eef2f7;
  color: var(--fnd-navy);
}

.fnd-story-status--pending { background: rgba(217, 119, 6, 0.14); color: #92400e; }
.fnd-story-status--approved { background: rgba(22, 163, 74, 0.12); color: #166534; }
.fnd-story-status--rejected { background: rgba(220, 38, 38, 0.12); color: #991b1b; }
.fnd-story-status--archived { background: #eef2f7; color: var(--muted); }

.fnd-story-mod-notes {
  margin-top: 0.45rem !important;
  color: var(--ink) !important;
}

@media (max-width: 640px) {
  .fnd-story-form-row {
    grid-template-columns: 1fr;
  }
}

.home-challenge-hero--secondary {
  opacity: 0.98;
}

.home-challenge-hero--secondary .home-challenge-display {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
}

.home-challenge-hero--secondary .home-challenge-body,
.home-challenge-hero--secondary .home-challenge-strong {
  font-size: 0.98rem;
}

@media (max-width: 960px) {
  .impact-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .impact-kpi-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .topbar,
  .site-header,
  .impact-ticker,
  .journey-crumbs,
  .site-footer,
  .skip-link,
  .no-print,
  .cms-preview-bar {
    display: none !important;
  }

  .appointment-pack-page main,
  .appointment-pack-page .section,
  .appointment-pack-page .start-hero {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
  }

  .appointment-pack-page .card,
  .appointment-pack-page .start-steps li {
    break-inside: avoid;
    box-shadow: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}

/* Impact strip bolted to the bottom of the sticky site header (every public page) */
.site-header .impact-ticker,
.ch-site-header .impact-ticker {
  border-top: 1px solid rgba(0, 43, 95, 0.08);
}

.impact-ticker {
  background: linear-gradient(90deg, #f4f7fb 0%, #fff7fb 50%, #f4f7fb 100%);
  border-bottom: 0;
  color: var(--fnd-navy, #002b5f);
  font-size: 0.92rem;
}

.ch-site-header .impact-ticker {
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(237,43,123,0.14), rgba(255,255,255,0.08));
  color: #fff;
  border-top-color: rgba(255,255,255,0.12);
}

.ch-site-header .impact-ticker__label,
.ch-site-header .impact-ticker__msg,
.ch-site-header .impact-ticker__msg a,
.ch-site-header .impact-ticker__more {
  color: rgba(255,255,255,0.95);
}

.ch-site-header .impact-ticker__msg strong {
  color: #ffd0e4;
}

.ch-site-header .impact-ticker__label {
  color: #ffd0e4;
}

.impact-ticker__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  /* Visual bar stays one compact row; touch targets can overflow vertically. */
  min-height: 2rem;
  height: 2.15rem;
  padding-top: 0;
  padding-bottom: 0;
  text-align: center;
  overflow: hidden;
}

.impact-ticker__label {
  flex: 0 0 auto;
  display: inline-flex;
  /* 44px touch target kept for a11y tests without doubling the bar height. */
  min-height: 44px;
  margin-block: calc((2.15rem - 44px) / 2);
  align-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fnd-magenta, #ed2b7b);
  text-decoration: none;
  white-space: nowrap;
}

.impact-ticker__label:hover {
  text-decoration: underline;
}

.impact-ticker__stage {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(46rem, 100%);
  min-height: 1.25em;
  height: 1.35em;
  text-align: center;
  overflow: hidden;
}

.impact-ticker__msg {
  margin: 0;
  color: var(--fnd-navy, #002b5f);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  font-size: 0.9rem;
}

/* Never let inactive slides contribute height (fixes “double bar” look). */
.impact-ticker__msg[hidden] {
  display: none !important;
}

.impact-ticker__msg.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.impact-ticker__msg a {
  color: inherit;
  text-decoration: none;
}

.impact-ticker__msg a:hover {
  text-decoration: underline;
}

.impact-ticker__msg strong {
  color: var(--fnd-magenta, #ed2b7b);
  font-weight: 800;
}

.impact-ticker__more {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 44px;
  margin-block: calc((2.15rem - 44px) / 2);
  align-items: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--fnd-navy, #002b5f);
  text-decoration: none;
  white-space: nowrap;
}

.impact-ticker__more:hover {
  color: var(--fnd-magenta, #ed2b7b);
}

@media (max-width: 640px) {
  /* Keep a single compact row. Forcing the stage to 100% width wrapped
     the ticker into two stacked bands (label + message). */
  .impact-ticker__inner {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.4rem 0.55rem;
    min-height: 2rem;
    height: 2.1rem;
    padding-top: 0;
    padding-bottom: 0;
  }
  .impact-ticker__more {
    display: none;
  }
  .impact-ticker__label {
    flex: 0 0 auto;
    padding-inline: 0.1rem;
    margin-block: calc((2.1rem - 44px) / 2);
  }
  .impact-ticker__stage {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
  }
  .impact-ticker__msg {
    white-space: nowrap;
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .impact-ticker__msg {
    transition: none;
  }
}

/* ==========================================================================
   Site header search
   ========================================================================== */
.site-search-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: 0;
  border: 0;
  border-radius: 999px;
  color: var(--fnd-navy, #002b5f);
  background: transparent;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-search-toggle:focus,
.site-search-toggle:focus-visible,
.site-search-toggle:active {
  outline: none;
  box-shadow: none;
}

.site-search-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
}

.site-search-toggle:hover,
.site-search-toggle[aria-expanded="true"] {
  background: rgba(237, 43, 123, 0.1);
  color: var(--fnd-magenta, #ed2b7b);
}

.site-search-panel {
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border-top: 1px solid transparent;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  transition: max-height 0.32s ease, opacity 0.24s ease, border-color 0.2s ease, visibility 0s linear 0.32s;
}

.site-search-panel.is-open {
  max-height: 22rem;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  border-top-color: rgba(0, 43, 95, 0.08);
  transition: max-height 0.32s ease, opacity 0.24s ease, border-color 0.2s ease, visibility 0s linear 0s;
}

/* Keep layout animation even when the HTML hidden attribute is present */
.site-search-panel[hidden] {
  display: block;
}

.site-search-panel__inner {
  padding: 0.85rem 0 1rem;
}

.site-search-field {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.45rem 0.4rem 0.85rem;
  border: 1.5px solid rgba(0, 43, 95, 0.14);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 43, 95, 0.06);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.site-search-field:focus,
.site-search-field:focus-within {
  outline: none;
  border-color: rgba(0, 43, 95, 0.28);
  box-shadow: 0 8px 24px rgba(0, 43, 95, 0.06);
}

.site-search-field__icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--muted, #5b6b7c);
}

.site-search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  color: var(--ink, #102033);
  font: inherit;
  font-size: 1rem;
  padding: 0.55rem 0.2rem;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.site-search-input:focus,
.site-search-input:focus-visible,
.site-search-input:active {
  outline: none !important;
  box-shadow: none !important;
  border: 0;
}

.site-search-input:-webkit-autofill,
.site-search-input:-webkit-autofill:hover,
.site-search-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink, #102033);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  caret-color: var(--ink, #102033);
}

/* Kill browser default yellow/gold focus rings and search decorations */
.site-search-input::-webkit-search-decoration,
.site-search-input::-webkit-search-cancel-button,
.site-search-input::-webkit-search-results-button,
.site-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.site-search-form,
.site-search-form *:focus,
.site-search-form *:focus-visible {
  outline: none;
}

.site-search-submit {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  background: var(--fnd-magenta, #ed2b7b);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.site-search-submit:focus,
.site-search-submit:focus-visible,
.site-search-submit:active {
  outline: none;
  box-shadow: none;
}

.site-search-submit:hover {
  filter: brightness(1.05);
}

.site-search-close {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted, #5b6b7c);
  cursor: pointer;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.site-search-close:focus,
.site-search-close:focus-visible,
.site-search-close:active {
  outline: none;
  box-shadow: none;
}

.site-search-close:hover {
  background: rgba(0, 43, 95, 0.06);
  color: var(--fnd-navy, #002b5f);
}

.site-search-close svg {
  width: 1.05rem;
  height: 1.05rem;
}

.site-search-hint {
  margin: 0.65rem 0 0;
  color: var(--muted, #5b6b7c);
  font-size: 0.88rem;
}

.site-search-chip {
  border: 0;
  background: none;
  color: var(--fnd-magenta, #ed2b7b);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.site-search-suggest {
  margin-top: 0.65rem;
  border: 1px solid rgba(0, 43, 95, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 43, 95, 0.08);
  overflow: hidden;
}

.site-search-suggest a {
  display: block;
  padding: 0.75rem 0.95rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(0, 43, 95, 0.06);
}

.site-search-suggest a:last-child {
  border-bottom: 0;
}

.site-search-suggest a:hover,
.site-search-suggest a:focus {
  background: rgba(237, 43, 123, 0.06);
  outline: none;
}

.site-search-suggest strong {
  display: block;
  color: var(--fnd-navy, #002b5f);
  font-size: 0.98rem;
}

.site-search-suggest span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted, #5b6b7c);
  font-size: 0.86rem;
}

.site-search-suggest em {
  display: inline-block;
  margin-bottom: 0.15rem;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fnd-magenta, #ed2b7b);
}

/* Full search results page */
.site-search-page-form {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
}

.site-search-page-form input[type="search"] {
  flex: 1 1 16rem;
  min-height: 48px;
  border: 1.5px solid rgba(0, 43, 95, 0.16);
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font: inherit;
}

.site-search-page-form input[type="search"]:focus,
.site-search-page-form input[type="search"]:focus-visible {
  outline: none;
  border-color: rgba(0, 43, 95, 0.28);
  box-shadow: none;
}

.search-results-meta {
  color: var(--muted, #5b6b7c);
  margin: 0 0 1rem;
}

.search-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.search-result-card {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(0, 43, 95, 0.1);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.search-result-card:hover {
  border-color: rgba(237, 43, 123, 0.35);
  box-shadow: 0 10px 24px rgba(0, 43, 95, 0.07);
  transform: translateY(-1px);
}

.search-result-type {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fnd-magenta, #ed2b7b);
  margin-bottom: 0.25rem;
}

.search-result-card strong {
  display: block;
  color: var(--fnd-navy, #002b5f);
  font-size: 1.05rem;
}

.search-result-excerpt {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted, #5b6b7c);
  font-size: 0.94rem;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .site-search-panel.is-open {
    max-height: 28rem;
  }

  /* Search expands under the bar; keep it above the impact ticker strip */
  .site-search-panel {
    position: relative;
    z-index: 35;
  }

  body.site-search-open .impact-ticker {
    visibility: hidden;
    pointer-events: none;
  }

  .site-search-form,
  .site-search-field {
    width: 100%;
    max-width: 100%;
  }

  .site-search-field {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "input close"
      "submit submit";
    padding: 0.5rem;
    border-radius: 16px;
    gap: 0.5rem;
  }

  .site-search-field__icon { display: none; }
  .site-search-input { grid-area: input; }
  .site-search-close { grid-area: close; }
  .site-search-submit {
    grid-area: submit;
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-search-panel,
  .site-search-toggle,
  .search-result-card {
    transition: none;
  }
}

/* —— Cookie consent (Meta Pixel gated) ———————————————————— */
.fnd-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 26, 59, 0.96);
  color: #f4f7fb;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.fnd-cookie-banner[hidden] {
  display: none !important;
}

html.fnd-cookie-decided .fnd-cookie-banner {
  display: none !important;
}
.fnd-cookie-banner-inner {
  max-width: var(--max, 1240px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.fnd-cookie-copy {
  flex: 1 1 18rem;
  min-width: 0;
}
.fnd-cookie-copy strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #fff;
}
.fnd-cookie-copy p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(244, 247, 251, 0.88);
}
.fnd-cookie-copy a {
  color: #ffb3d4;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fnd-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 0 auto;
}
.fnd-cookie-btn {
  appearance: none;
  position: relative;
  z-index: 1;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  line-height: 1.2;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.fnd-cookie-btn-primary {
  background: var(--fnd-magenta, #c9005a);
  color: #fff;
}
.fnd-cookie-btn-primary:hover {
  filter: brightness(1.06);
}
.fnd-cookie-btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.fnd-cookie-btn-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
html.fnd-cookie-open body {
  padding-bottom: 7.5rem;
}
@media (max-width: 640px) {
  .fnd-cookie-actions {
    width: 100%;
  }
  .fnd-cookie-btn {
    flex: 1 1 auto;
    text-align: center;
  }
  html.fnd-cookie-open body {
    padding-bottom: 11rem;
  }
}

/* ==========================================================================
   2026 conversion, spacing and accessibility foundations
   ========================================================================== */

/* One consistent vertical rhythm and content rail across public pages. */
main > .section {
  padding-block: var(--section-space);
}

.hub-card-grid {
  gap: var(--space-5);
}

.hub-card {
  padding: clamp(var(--space-5), 3vw, var(--space-6));
}

/* Search is a core navigation control: every keyboard target must remain
   visibly focused even though the text input's ring lives on the field. */
.site-search-field:focus-within {
  border-color: var(--fnd-navy) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(0, 43, 95, 0.18), 0 8px 24px rgba(0, 43, 95, 0.14) !important;
}

.site-search-toggle:focus-visible,
.site-search-submit:focus-visible,
.site-search-close:focus-visible,
.site-search-chip:focus-visible,
.site-search-suggest a:focus-visible {
  outline: 3px solid var(--warning) !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}

.site-search-toggle,
.site-search-close {
  min-width: 44px;
  min-height: 44px;
}

.site-search-chip {
  min-height: 44px;
  padding-inline: 0.15rem;
}

/* Structured tools directory */
.tools-directory-page {
  --tools-navy: #061b35;
  --tools-pink: #a7004b;
  --tools-soft: #f5f7fa;
  --tools-line: #d8e1ea;
}

.tools-directory-page main {
  overflow: hidden;
}

.tools-hero {
  padding-block: clamp(2.75rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 10% 10%, rgba(201, 0, 90, 0.1), transparent 28rem),
    linear-gradient(180deg, #fff, #f8fafc);
}

.tools-hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.tools-hero__copy {
  max-width: 44rem;
}

.tools-kicker {
  margin: 0 0 var(--space-3);
  color: var(--tools-pink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.tools-hero h1 {
  max-width: 14ch;
  margin-bottom: var(--space-5);
  color: var(--tools-navy);
  font-size: clamp(2.35rem, 7vw, 4.9rem);
  letter-spacing: -0.05em;
  line-height: 0.99;
  text-wrap: balance;
}

.tools-hero__lead {
  max-width: 40rem;
  color: #3f5266;
  font-size: clamp(1.04rem, 2vw, 1.22rem);
  line-height: 1.65;
}

.tools-hero__actions,
.tools-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.tools-privacy-note {
  max-width: 42rem;
  margin: var(--space-5) 0 0;
  padding-left: var(--space-4);
  border-left: 3px solid var(--fnd-magenta);
  color: #4b5d70;
  font-size: 0.88rem;
  line-height: 1.55;
}

.tools-hero__media {
  margin: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 22px 50px rgba(6, 27, 53, 0.18);
}

.tools-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.tools-jump {
  border-block: 1px solid var(--tools-line);
  background: #fff;
}

.tools-jump__inner {
  display: flex;
  gap: var(--space-3) var(--space-5);
  align-items: center;
  min-height: 4rem;
  overflow-x: auto;
  scrollbar-width: thin;
  white-space: nowrap;
}

.tools-jump__inner span {
  color: #526477;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tools-jump__inner a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--tools-navy);
  font-size: 0.9rem;
  font-weight: 750;
}

.tools-group {
  padding-block: var(--section-space);
  scroll-margin-top: var(--anchor-offset);
}

.tools-group--tint {
  background: var(--tools-soft);
}

.tools-group__layout {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
}

.tools-group__head {
  max-width: 33rem;
}

.tools-group__head h2 {
  margin-bottom: var(--space-4);
  color: var(--tools-navy);
  letter-spacing: -0.035em;
}

.tools-group__head > p:last-child {
  color: #516275;
  line-height: 1.65;
}

.tool-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--tools-line);
  list-style: none;
}

.tool-list__item {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--tools-line);
}

.tool-list__main h3 {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.tool-list__main h3 a {
  color: var(--tools-navy);
  text-decoration: none;
}

.tool-list__main h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.tool-list__main > p {
  max-width: 48rem;
  margin: 0 0 var(--space-3);
  color: #43566a;
  line-height: 1.55;
}

.tool-list__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-list__tags li {
  margin: 0;
  border: 1px solid #c8d4df;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  color: #435569;
  background: #fff;
  font-size: 0.73rem;
  font-weight: 750;
}

.tool-list__action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.35rem;
  justify-self: start;
  color: var(--tools-pink);
  font-weight: 800;
  text-decoration: none;
}

.tools-help {
  padding-block: var(--section-space);
  color: #fff;
  background: var(--tools-navy);
}

.tools-help__inner {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.tools-help .tools-kicker,
.tools-help h2 {
  color: #fff;
}

.tools-help p {
  max-width: 46rem;
  color: #d4e2ef;
}

.tools-help .button.secondary {
  border-color: #fff;
  background: transparent;
  color: #fff;
}

/* Grouped support choices */
.gi-group-jump {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.gi-group-jump a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: var(--fnd-navy);
  background: #fff;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.gi-support-groups {
  display: grid;
  gap: var(--space-7);
}

.gi-support-group {
  display: grid;
  gap: var(--space-5);
  scroll-margin-top: var(--anchor-offset);
}

.gi-support-group__head > span {
  color: #a7004b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gi-support-group__head h3 {
  margin: var(--space-2) 0 var(--space-3);
  color: var(--fnd-navy);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.gi-support-group__head p {
  max-width: 31rem;
  margin: 0;
  color: #526275;
  line-height: 1.55;
}

.gi-support-group__items {
  border-top: 1px solid var(--border);
}

.gi-support-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3) var(--space-4);
  align-items: center;
  min-height: 7rem;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}

.gi-support-choice__icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  color: var(--fnd-navy);
  background: var(--pale-blue);
}

.gi-support-choice__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.gi-support-choice__copy {
  display: grid;
  gap: var(--space-2);
}

.gi-support-choice__copy strong {
  color: var(--fnd-navy);
  font-size: 1.05rem;
}

.gi-support-choice__copy small {
  color: #526275;
  font-size: 0.86rem;
  line-height: 1.5;
}

.gi-support-choice__cta {
  grid-column: 2;
  color: #a7004b;
  font-size: 0.84rem;
  font-weight: 800;
}

.gi-support-choice:hover .gi-support-choice__copy strong {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.gi-help-band {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  padding-block: 0;
}

.gi-help-band h2 {
  max-width: 24ch;
  margin-block: var(--space-2) var(--space-4);
}

.gi-help-band p {
  max-width: 48rem;
}

/* Contextual fundraising banner: one primary ask and one secondary ask. */
.fundraise-banner {
  width: min(100%, calc(var(--max) + (2 * var(--gutter))));
  margin: var(--section-space) auto;
  padding-inline: var(--gutter);
}

.fundraise-banner__inner {
  display: grid;
  gap: var(--space-6);
  overflow: hidden;
  border-radius: 1.25rem;
  padding: clamp(var(--space-5), 5vw, var(--space-7));
  color: #fff;
  background:
    radial-gradient(circle at 95% 0%, rgba(201, 0, 90, 0.38), transparent 24rem),
    #061b35;
}

.fundraise-banner__kicker {
  margin: 0 0 var(--space-2);
  color: #ffb4d0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fundraise-banner h2 {
  margin-bottom: var(--space-3);
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
}

.fundraise-banner__copy > p:last-child {
  max-width: 44rem;
  margin: 0;
  color: #d8e5f1;
}

.fundraise-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.fundraise-banner__primary,
.fundraise-banner__secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.fundraise-banner__primary {
  border-color: #fff;
  color: var(--fnd-navy);
  background: #fff;
}

.fundraise-banner__secondary {
  color: #fff;
  background: transparent;
}

.fundraise-banner__actions > p {
  flex-basis: 100%;
  margin: var(--space-2) 0 0;
  color: #d8e5f1;
  font-size: 0.86rem;
}

.fundraise-banner__actions > p a {
  color: #fff;
  font-weight: 750;
}

@media (min-width: 48rem) {
  .tools-hero__grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(19rem, 0.94fr);
  }

  .tools-group__layout {
    grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 1.3fr);
  }

  .tools-group__head {
    position: sticky;
    top: calc(var(--anchor-offset) + 1rem);
    align-self: start;
  }

  .tool-list__item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .gi-support-group {
    grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1.3fr);
  }

  .gi-support-choice {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .gi-support-choice__cta {
    grid-column: auto;
  }

  .gi-help-band {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tools-help__inner,
  .fundraise-banner__inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(17rem, 0.7fr);
  }
}

@media (max-width: 30rem) {
  .tools-hero__actions,
  .tools-help__actions,
  .fundraise-banner__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tools-hero__actions .button,
  .tools-help__actions .button,
  .fundraise-banner__primary,
  .fundraise-banner__secondary {
    width: 100%;
  }
}

/* —— Prose figures (pillar / long-form guides) ———————————————— */
.prose-page .prose-figure {
  margin: 1.6rem 0 1.85rem;
  padding: 0;
  border: 0;
}
.prose-page .prose-figure img,
.prose-page .prose-figure picture {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #eef2f8;
  box-shadow: 0 12px 32px rgba(0, 43, 95, 0.08);
}
.prose-page .prose-figure figcaption {
  margin: 0.65rem 0.15rem 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted, #637086);
}
.prose-page .prose-figure--hero {
  margin-top: 1.1rem;
}
@media (max-width: 640px) {
  .prose-page .prose-figure {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }
  .prose-page .prose-figure img {
    border-radius: 12px;
  }
}

/* —— Domestic abuse guide: calm, safety-first editorial layout ——————— */
body.blog-safeguarding-guide {
  background: #fff;
}

.blog-safeguarding-guide .one-pound-campaign,
.blog-safeguarding-guide .stories-promo,
.blog-safeguarding-guide .fundraise-banner,
.blog-safeguarding-guide .support-banner,
.blog-safeguarding-guide .footer-donate {
  display: none !important;
}

[data-domestic-abuse-guide] {
  --da-navy: #071d3b;
  --da-navy-soft: #11345f;
  --da-pink: #d30060;
  --da-pink-soft: #fff0f6;
  --da-ink: #14243a;
  --da-muted: #58677b;
  --da-line: #dfe6ef;
  --da-paper: #f6f8fb;
  color: var(--da-ink);
}

.safety-quickbar {
  position: sticky;
  z-index: 48;
  top: 0;
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.55rem max(1rem, env(safe-area-inset-right)) 0.55rem max(1rem, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  background: var(--da-navy);
  box-shadow: 0 8px 22px rgba(7, 29, 59, 0.18);
  font-size: 0.92rem;
  font-weight: 760;
}

.safety-quickbar a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-weight: 820;
  text-decoration: none;
}

.safety-quickbar__help {
  border: 1px solid rgba(255, 255, 255, 0.68);
  color: #fff;
}

.safety-quickbar__exit {
  border: 2px solid #fff;
  color: var(--da-navy);
  background: #fff;
}

.safety-quickbar a:hover,
.safety-quickbar a:focus-visible {
  transform: translateY(-1px);
}

.domestic-abuse-hero {
  padding-block: clamp(2.6rem, 7vw, 5.8rem);
  background:
    radial-gradient(circle at 85% 10%, rgba(211, 0, 96, 0.1), transparent 28rem),
    linear-gradient(180deg, #fff 0%, #faf7f9 100%);
}

.domestic-abuse-hero .wrap {
  max-width: 1120px;
}

.domestic-abuse-hero .eyebrow,
.domestic-abuse-prose .eyebrow,
.domestic-danger-band .eyebrow {
  margin: 0 0 0.7rem;
  color: var(--da-pink);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.domestic-abuse-hero h1 {
  max-width: 920px;
  margin-bottom: 1.2rem;
  color: var(--da-navy);
  font-size: clamp(2.55rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.domestic-abuse-hero .lead {
  max-width: 790px;
  color: #44546a;
  font-size: clamp(1.14rem, 2.1vw, 1.43rem);
  line-height: 1.56;
}

.domestic-abuse-hero .article-meta {
  margin-top: 1.7rem;
}

.domestic-danger-band {
  color: #fff;
  background: #8f003f;
}

.domestic-danger-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding-block: clamp(1.4rem, 4vw, 2.25rem);
}

.domestic-danger-band .eyebrow {
  color: #ffd6e8;
}

.domestic-danger-band h2 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
}

.domestic-danger-band p {
  margin: 0;
  color: #fff;
}

.domestic-danger-band__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.domestic-danger-band__actions .button {
  min-height: 50px;
  border: 2px solid #fff;
  color: #8f003f;
  background: #fff;
}

.domestic-danger-band__actions .text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #fff;
  font-weight: 800;
}

.domestic-abuse-photo-section {
  padding-block: clamp(1.5rem, 4vw, 3rem) 0;
}

.domestic-abuse-photo {
  overflow: hidden;
  max-width: 1120px;
  margin-inline: auto;
  border-radius: 22px;
  background: var(--da-paper);
  box-shadow: 0 24px 60px rgba(7, 29, 59, 0.12);
}

.domestic-abuse-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.domestic-abuse-photo figcaption {
  margin: 0;
  padding: 0.95rem 1.2rem 1.05rem;
  color: var(--da-muted);
  background: #fff;
  font-size: 0.94rem;
}

.domestic-abuse-content {
  padding-block: clamp(2.8rem, 7vw, 6rem);
}

.domestic-abuse-prose {
  max-width: 860px;
}

.domestic-abuse-prose h2 {
  margin-top: clamp(2.8rem, 7vw, 4.8rem);
  color: var(--da-navy);
  font-size: clamp(1.85rem, 4.3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.domestic-abuse-prose h3 {
  color: var(--da-navy);
}

.domestic-abuse-prose p,
.domestic-abuse-prose li,
.domestic-abuse-prose dd {
  font-size: clamp(1.02rem, 1.5vw, 1.12rem);
  line-height: 1.72;
}

.domestic-abuse-prose a:not(.button) {
  font-weight: 700;
  text-decoration-thickness: 0.11em;
  text-underline-offset: 0.16em;
}

.domestic-abuse-intro h2 {
  margin-top: 0;
}

.domestic-abuse-standfirst {
  max-width: 760px;
  color: #3f4f65;
  font-size: clamp(1.18rem, 2.4vw, 1.42rem) !important;
  line-height: 1.58 !important;
}

.relationship-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 5vw, 3.75rem);
  margin: 2.3rem 0 2rem;
  padding-block: 0.8rem;
}

.relationship-comparison__side {
  position: relative;
  min-width: 0;
  padding-left: 1.5rem;
}

.relationship-comparison__side::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 999px;
  background: #54866b;
  content: "";
}

.relationship-comparison__side--warning::before {
  background: var(--da-pink);
}

.relationship-comparison__side .eyebrow {
  color: #37684f;
}

.relationship-comparison__side--warning .eyebrow {
  color: #a9004c;
}

.relationship-comparison ul {
  margin: 0;
  padding-left: 1.2rem;
}

.relationship-comparison li + li {
  margin-top: 0.72rem;
}

.domestic-abuse-note,
.online-safety-note,
.fnd-evidence-boundary {
  margin: 2rem 0;
  border-left: 5px solid var(--da-pink);
  padding: 1.25rem 1.4rem;
  background: var(--da-pink-soft);
}

.online-safety-note h3,
.fnd-evidence-boundary h3 {
  margin-top: 0;
}

.online-safety-note p:last-child,
.fnd-evidence-boundary p:last-child {
  margin-bottom: 0;
}

.abuse-definition-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3rem;
  margin: 1.75rem 0 2.2rem;
}

.abuse-definition-list > div {
  padding: 1.15rem 0 1.25rem;
  border-top: 1px solid var(--da-line);
}

.abuse-definition-list dt {
  margin-bottom: 0.35rem;
  color: var(--da-navy);
  font-size: 1.08rem;
  font-weight: 850;
}

.abuse-definition-list dd {
  margin: 0;
  color: #4a596d;
}

.domestic-fnd-band {
  margin: clamp(3rem, 8vw, 5.5rem) calc(50% - 50vw);
  padding: clamp(2.5rem, 7vw, 4.6rem) max(calc((100vw - 860px) / 2), 1.2rem);
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 186, 215, 0.18), transparent 24rem),
    var(--da-navy);
}

.domestic-fnd-band h2,
.domestic-fnd-band h3,
.domestic-fnd-band p,
.domestic-fnd-band li {
  color: #fff;
}

.domestic-fnd-band .eyebrow {
  color: #ffbad7;
}

.domestic-fnd-band h2 {
  max-width: 680px;
  margin-top: 0;
}

.domestic-fnd-band ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 2.4rem;
  margin-block: 1.4rem;
}

.domestic-next-steps {
  padding: 0;
  list-style: none;
  counter-reset: da-step;
}

.domestic-next-steps li {
  position: relative;
  min-height: 3.5rem;
  padding: 1.2rem 0 1.2rem 4.25rem;
  border-top: 1px solid var(--da-line);
  counter-increment: da-step;
}

.domestic-next-steps li::before {
  position: absolute;
  top: 1rem;
  left: 0;
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--da-navy);
  content: counter(da-step);
  font-weight: 850;
}

.domestic-help {
  scroll-margin-top: 76px;
  margin: clamp(3.4rem, 8vw, 6rem) calc(50% - 50vw) 0;
  padding: clamp(2.8rem, 8vw, 5.2rem) max(calc((100vw - 960px) / 2), 1.2rem);
  color: var(--da-ink);
  background: #f1f5fa;
}

.domestic-help > h2 {
  max-width: 760px;
  margin-top: 0;
}

.domestic-help > p:not(.eyebrow) {
  max-width: 760px;
}

.domestic-help-list {
  margin: 2rem 0 2.8rem;
  border-top: 1px solid #cbd6e3;
}

.domestic-help-list > section {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) minmax(17rem, auto);
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid #cbd6e3;
}

.domestic-help-list__nation {
  margin: 0;
  color: var(--da-pink);
  font-size: 0.84rem !important;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.domestic-help-list h3,
.domestic-help-list p {
  margin: 0;
}

.domestic-help-list h3 + p {
  margin-top: 0.25rem;
  color: var(--da-muted);
  font-size: 0.94rem;
}

.domestic-help-list > section > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.domestic-help-list .button {
  min-height: 48px;
  white-space: nowrap;
  background: var(--da-navy);
}

.domestic-specialist-links {
  padding-left: 1.2rem;
}

.domestic-specialist-links li + li {
  margin-top: 0.65rem;
}

.domestic-reassurance {
  margin: clamp(3rem, 8vw, 5.4rem) 0;
  padding: clamp(2.2rem, 6vw, 3.6rem);
  border-radius: 22px;
  color: #fff;
  background: var(--da-navy);
}

.domestic-reassurance .eyebrow {
  color: #ffbad7;
}

.domestic-reassurance h2 {
  margin-top: 0;
  color: #fff;
}

.domestic-reassurance p {
  color: #fff;
}

.domestic-faq details {
  border-top: 1px solid var(--da-line);
  padding: 1rem 0;
}

.domestic-faq details:last-child {
  border-bottom: 1px solid var(--da-line);
}

.domestic-faq summary {
  color: var(--da-navy);
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 820;
}

.domestic-faq details p {
  max-width: 760px;
  margin-bottom: 0.25rem;
  color: #47566b;
}

.domestic-sources {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--da-line);
}

.domestic-sources h2 {
  margin-top: 1rem;
  font-size: 1.45rem;
}

.domestic-sources p,
.domestic-sources li {
  color: var(--da-muted);
  font-size: 0.94rem;
}

@keyframes domesticHeroIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.domestic-abuse-hero h1,
.domestic-abuse-hero .lead,
.domestic-abuse-photo {
  animation: domesticHeroIn 0.55s ease both;
}

.domestic-abuse-hero .lead { animation-delay: 0.08s; }
.domestic-abuse-photo { animation-delay: 0.14s; }

@media (max-width: 780px) {
  .safety-quickbar {
    justify-content: space-between;
    gap: 0.45rem;
    font-size: 0.78rem;
  }

  .safety-quickbar > span {
    display: none;
  }

  .safety-quickbar a {
    flex: 1 1 0;
    min-height: 44px;
    padding-inline: 0.55rem;
  }

  .domestic-danger-band__inner,
  .relationship-comparison,
  .abuse-definition-list,
  .domestic-fnd-band ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .domestic-danger-band__actions {
    justify-content: flex-start;
  }

  .domestic-abuse-photo {
    border-radius: 14px;
  }

  .domestic-help-list > section {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding-block: 1.5rem;
  }

  .domestic-help-list > section > div {
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-top: 0.65rem;
  }

  .domestic-help-list .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .domestic-abuse-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .domestic-danger-band__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .domestic-danger-band__actions .button {
    width: 100%;
  }

  .relationship-comparison {
    gap: 2.2rem;
  }

  .domestic-next-steps li {
    padding-left: 3.65rem;
  }

  .domestic-reassurance {
    padding: 1.7rem 1.3rem;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .domestic-abuse-hero h1,
  .domestic-abuse-hero .lead,
  .domestic-abuse-photo {
    animation: none;
  }

  .safety-quickbar a {
    transition: none;
  }
}

/* ========================================================================
   Public usability foundation — 2026-08
   The shared shell is intentionally calm: safety, orientation, then content.
   Route styles may add identity below this layer, but must not obscure it.
   ======================================================================== */
.topbar__message--compact,
.mobile-nav-intro {
  display: none;
}

.nav-toggle {
  width: auto;
  min-width: 5.75rem;
  padding: 0.4rem 0.75rem;
}

.nav-toggle__label {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* Navigation needs a wider rail than reading content so the brand and all
   primary routes remain distinct at desktop widths. */
.site-header .wrap.nav-row {
  width: 100%;
  max-width: 1400px;
}

.account-menu-trigger,
.account-menu-logout button,
.site-nav > .nav-signin,
.nav-logout,
.fnd-story-share-btn {
  min-height: 44px;
}

/* Public form fields must remain operable without pixel-perfect tapping. Keep
   native checkboxes, radios, ranges and colour controls owned by their labels
   or route-specific widgets. */
body:not(.admin-body):not(.erp-shell) main :where(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  select,
  textarea
) {
  min-height: 44px;
}

/* Journey hubs read as editorial routes instead of a wall of floating cards. */
.hub-page .hub-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  border-top: 1px solid rgba(0, 43, 95, 0.12);
}

.hub-page .hub-card:not(.hub-card--primary) {
  min-height: 0;
  padding: 1.35rem 0.2rem;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid rgba(0, 43, 95, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hub-page .hub-card:not(.hub-card--primary)::before { display: none; }
.hub-page a.hub-card:not(.hub-card--primary):hover {
  border-color: rgba(201, 0, 90, 0.32);
  background: linear-gradient(90deg, rgba(201, 0, 90, 0.035), transparent);
  box-shadow: none;
  transform: none;
}

.hub-page .hub-steps {
  gap: 0;
  border-top: 1px solid rgba(0, 43, 95, 0.12);
}

.hub-page .hub-steps > li {
  padding: 1.1rem 0;
  border: 0;
  border-bottom: 1px solid rgba(0, 43, 95, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.journey-crumbs {
  border-bottom: 1px solid rgba(0, 43, 95, 0.08);
  background: #f7f9fc;
}

.journey-crumbs ol {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding-block: 0.35rem;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.journey-crumbs ol::-webkit-scrollbar { display: none; }
.journey-crumbs li { display: inline-flex; min-height: 44px; flex: 0 0 auto; align-items: center; color: var(--muted); font-size: 0.82rem; }
.journey-crumbs li + li { margin-top: 0; }
.journey-crumbs li + li::before { margin-right: 0.45rem; color: #8c9bad; content: "/"; }
.journey-crumbs a { display: inline-flex; min-height: 44px; align-items: center; color: var(--fnd-navy); font-weight: 750; text-decoration: none; }
.journey-crumbs [aria-current="page"] { max-width: min(38rem, 60vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 1121px) and (max-width: 1540px) {
  .nav-row { gap: 0.45rem; }
  .brand { max-width: 170px; }
  .site-nav { gap: 0.12rem; }
  .site-nav > a:not(.header-cta),
  .mega-menu-trigger { padding-inline: 0.38rem; font-size: 0.82rem; }
  .site-nav > .nav-seizecontrol { padding-inline: 0.45rem; font-size: 0.82rem; }
  .header-actions .header-cta { padding-inline: 0.7rem; }
}

@media (max-width: 1120px) {
  :root { --anchor-offset: 76px; }

  .topbar {
    font-size: 0.78rem;
    box-shadow: none;
  }

  .topbar .wrap {
    display: flex;
    min-height: 44px;
    padding-block: 0;
    gap: 0.45rem;
  }

  .topbar .topbar__message--full { display: none; }
  .topbar .topbar__message--compact {
    display: inline;
    flex: 1 1 auto;
  }

  .topbar a {
    flex: 0 0 auto;
    min-height: 44px;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
  }

  .site-header { z-index: 10020; }
  .nav-row { min-height: 68px; }
  .brand { max-width: min(164px, 43vw); }
  .brand img { width: 100%; max-height: 58px; }
  .impact-ticker { display: none !important; }

  .site-nav {
    padding: 0 1rem max(1rem, env(safe-area-inset-bottom, 0px));
  }

  .site-nav.is-open {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }

  .mobile-nav-intro {
    display: grid;
    grid-column: 1 / -1;
    gap: 0.75rem;
    margin: 0 -1rem 0.45rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(145deg, #f3f7fc 0%, #fff7fb 100%);
  }

  .mobile-nav-intro__heading p {
    margin: 0;
    color: var(--fnd-navy);
    font-size: 1.1rem;
    font-weight: 850;
  }

  .mobile-nav-intro__heading span {
    color: var(--muted);
    font-size: 0.84rem;
  }

  .mobile-nav-search {
    display: block;
    width: 100%;
  }

  .mobile-nav-search__row {
    display: flex;
    align-items: stretch;
    gap: 0.4rem;
    width: 100%;
  }

  .mobile-nav-search input,
  .mobile-nav-search button {
    min-height: 48px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 43, 95, 0.18);
    border-radius: 10px;
    font: inherit;
  }

  .mobile-nav-search input {
    flex: 4 1 0%;
    width: 0;
    min-width: 0;
    max-width: none;
    padding: 0.65rem 0.75rem;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
  }

  .mobile-nav-search input:focus,
  .mobile-nav-search input:focus-visible {
    outline: none !important;
    border-color: var(--fnd-navy);
    box-shadow: 0 0 0 2px rgba(0, 43, 95, 0.2);
  }

  .mobile-nav-search button {
    flex: 1 1 0%;
    width: 0;
    min-width: 4.6rem;
    max-width: 22%;
    padding-inline: 0.4rem;
    border-color: var(--fnd-navy);
    color: #fff;
    background: var(--fnd-navy);
    font-weight: 800;
  }

  .mobile-nav-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .mobile-nav-shortcuts a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0.45rem;
    border: 1px solid rgba(0, 43, 95, 0.14);
    border-radius: 10px;
    color: var(--fnd-navy);
    background: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
  }

  .mega-menu,
  .site-nav > .nav-seizecontrol,
  .site-nav > .nav-signin,
  .site-nav > .account-menu {
    grid-column: 1 / -1;
  }

  .mega-menu-trigger { min-height: 48px; }
  .site-nav > .nav-seizecontrol { min-height: 48px; }
  .site-nav > .nav-signin { min-height: 48px; }
  .header-actions .header-cta { min-height: 44px; }

  body.mobile-nav-open .site-header { z-index: 10030; }
}

@media (max-width: 430px) {
  .wrap { --gutter: 1rem; }
  .topbar { font-size: 0.73rem; }
  .topbar__message--compact { max-width: 16rem; }
  .nav-row { min-height: 64px; }
  .brand { max-width: min(148px, 40vw); }
  .site-search-toggle { min-width: 44px; min-height: 44px; }
  .nav-toggle { min-height: 44px; min-width: 5.5rem; padding-inline: 0.7rem; }
  .header-actions .header-cta { padding-inline: 0.5rem; font-size: 0.74rem; }
  .mobile-nav-shortcuts { grid-template-columns: 1fr; }
  .journey-crumbs [aria-current="page"] { max-width: 46vw; }
  .hub-page .hub-card-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 431px) and (max-width: 720px) {
  .hub-page .hub-card-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ========================================================================
   Site-wide editorial paper — 2026-08
   Brings every public page onto the same homepage / megamenu principles:
   calm UK support service, visitor jobs, one dominant action, 44px targets,
   hierarchy from type and space. Unique copy, H1s, URLs and schema stay.
   Homepage (.home-page--charity) is the reference and is not restyled here.
   ======================================================================== */
body:not(.home-page):not(.admin-body):not(.erp-shell):not(.erp-pro) .page-hero,
body:not(.home-page):not(.admin-body) .article-hero,
body:not(.home-page) .start-hero,
body:not(.home-page) .impact-hero,
body:not(.home-page) .topic-hero {
  background:
    linear-gradient(180deg, var(--pathway-soft, #f7f9fc) 0%, #ffffff 72%);
  border-bottom: 1px solid var(--pathway-mid, rgba(0, 43, 95, 0.1));
}

body:not(.home-page) .page-hero .wrap,
body:not(.home-page) .article-hero .wrap {
  padding-top: clamp(2rem, 5vw, 3.6rem);
  padding-bottom: clamp(2rem, 5vw, 3.4rem);
}

body:not(.home-page) .page-hero h1,
body:not(.home-page) .article-hero h1,
body:not(.home-page) .start-hero h1,
body:not(.home-page) .topic-hero h1,
body:not(.home-page) .impact-hero h1 {
  max-width: 22ch;
  color: var(--fnd-navy);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

body:not(.home-page) .page-hero .lead,
body:not(.home-page) .article-hero .lead,
body:not(.home-page) .start-hero .lead,
body:not(.home-page) .topic-hero .lead {
  max-width: 42rem;
  color: var(--text);
  font-size: clamp(1.02rem, 2vw, 1.16rem);
  line-height: 1.65;
}

body:not(.home-page) .breadcrumbs {
  color: var(--fnd-magenta, #c9005a);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body:not(.home-page) .breadcrumbs a {
  color: var(--fnd-magenta, #c9005a);
  min-height: 44px;
}

body:not(.home-page) .content-main {
  max-width: 44rem;
  font-size: 1.05rem;
  line-height: 1.68;
}

body:not(.home-page) .content-main h2 {
  letter-spacing: -0.03em;
}

body:not(.home-page) .toc {
  padding: 0 0 0.65rem;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: none;
}

body:not(.home-page) .toc h2 {
  margin: 0 0 0.35rem;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-bottom: 2px solid var(--fnd-navy);
  border-radius: 0;
  background: #e8eef6;
  color: var(--fnd-navy);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body:not(.home-page) .toc a {
  padding-inline: 0.7rem;
}

body:not(.home-page) .card,
body:not(.home-page) .support-card,
body:not(.home-page) .info-box,
body:not(.home-page) .fact-row {
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 43, 95, 0.045);
}

body:not(.home-page) .alert {
  border-radius: 14px;
}

body:not(.home-page) .hub-hero__copy h1 {
  letter-spacing: -0.04em;
  text-wrap: balance;
}

body:not(.home-page) .hub-kicker,
body:not(.home-page) .tools-kicker,
body:not(.home-page) .eyebrow {
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  body:not(.home-page) .content {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.home-page) .toc {
    position: static;
  }
}
