/* Local navigation/homepage preview. Existing brand and page copy are retained. */
/* The hero keeps the base full-window height (100svh minus the nav bar)
   from style.css; only the vertical alignment is set here. */
.page-home .home-hero {
  align-items: center;
}

.page-home .home-hero-inner {
  padding-block: 56px 60px;
}

.page-home .home-hero-copy {
  max-width: 620px;
}

.page-home .home-hero-kicker {
  margin-bottom: 20px;
}

.page-home .home-hero h1 {
  font-size: clamp(60px, 5.4vw, 80px);
}

.page-home .home-hero-lede {
  max-width: 540px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
}

.page-home .home-hero-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 530px;
  margin: 20px 0 0;
  padding: 12px 16px;
  border: 1px solid rgba(228, 196, 127, 0.34);
  border-radius: 4px;
  background: rgba(7, 27, 52, 0.54);
  color: var(--cream);
  font-size: 16px;
  line-height: 1.5;
}

.page-home .home-status-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: #e4c47f;
}

.page-home .home-hero-actions {
  margin-top: 24px;
}

.page-home .home-hero-button {
  min-height: 52px;
  min-width: 152px;
  font-size: 16px;
}

.page-home .home-v2-section {
  scroll-margin-top: 100px;
  padding-block: clamp(44px, 5vw, 72px);
}

.page-home .home-stage-grid,
.page-home .home-card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.page-home .home-stage-card {
  min-width: 0;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.page-home .home-stage-card:first-child {
  border-top: 3px solid var(--burgundy);
}

.page-home .home-stage-label {
  display: block;
  margin: 0 0 12px;
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-home .home-stage-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(26px, 2.3vw, 32px);
  line-height: 1.15;
}

.page-home .home-stage-card p:not(.home-stage-label),
.page-home .home-stage-note,
.page-home .home-evidence-card p,
.page-home .home-update-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.page-home .home-stage-note,
.page-home .home-campaign-links {
  margin: 22px 0 0;
  max-width: 850px;
}

.page-home .home-campaign-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.page-home .home-campaign-links a,
.page-home .home-stage-card a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--burgundy);
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-home .home-stage-details {
  margin-top: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.page-home .home-stage-details summary {
  min-height: 44px;
  align-content: center;
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

.page-home .home-stage-details summary:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 4px;
}

.page-home .home-stage-details[open] .home-progress-track {
  margin-top: 26px;
}

.page-home .home-card-grid-1 {
  grid-template-columns: minmax(0, 1fr);
}

.page-home .home-update-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  column-gap: 48px;
  max-width: none;
}

.page-home .home-update-feature .home-update-meta {
  grid-column: 1 / -1;
  margin-bottom: 18px;
}

.page-home .home-update-feature h3 {
  grid-column: 1;
  grid-row: 2 / span 2;
  margin: 0;
  font-size: clamp(28px, 2.7vw, 38px);
}

.page-home .home-update-feature > p:not(.home-update-meta),
.page-home .home-update-feature > .home-text-link {
  grid-column: 2;
}

.page-home .home-update-feature > .home-text-link {
  margin-top: 18px;
}

.page-home .home-evidence {
  background: var(--cream);
}

.page-home .home-evidence-guide {
  margin: 24px 0 0;
}

.page-home .home-evidence-reading {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 30px;
}

.page-home .home-evidence-reading h3 {
  margin: 0;
  font-size: 20px;
}

.page-home .home-evidence-reading > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.6;
}

.page-home .home-stage-explanation {
  max-width: 68ch;
  margin-block: 20px;
  font-size: 16px;
  line-height: 1.65;
}

.page-home .home-donate-summary {
  margin: -6px 0 20px;
  font-size: 17px;
  line-height: 1.5;
}

.page-home .home-donate-impact,
.page-home .home-donate-tip,
.page-home .home-donate-note,
.page-home .home-donate-secure {
  font-size: 14px;
  line-height: 1.6;
}

.page-home .home-donate-tip,
.page-home .home-donate-note {
  text-align: left;
  line-height: 1.5;
}

.page-home .home-donate-tip {
  margin-top: 6px;
}

.page-home .home-donate-note {
  margin-top: 4px;
}

.page-home .home-evidence-card {
  min-width: 0;
  padding: 30px;
}

.page-home .home-evidence-card h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.15;
}

.page-home .home-evidence-card .home-text-link {
  align-self: flex-start;
  min-height: 44px;
  margin-top: 20px;
  font-size: 16px;
}









@media (max-width: 1080px) {
  .page-home .home-hero-media {
    inset: 0;
    height: 100%;
  }

  .page-home .home-hero-media img {
    object-position: 58% 42%;
  }

  .page-home .home-hero::before {
    background: linear-gradient(90deg, rgba(7, 27, 52, 0.94), rgba(7, 27, 52, 0.76) 60%, rgba(7, 27, 52, 0.35));
  }

  .page-home .home-hero-copy {
    max-width: 580px;
  }

  .page-home .home-update-feature {
    column-gap: 28px;
  }
}

@media (max-width: 720px) {
  .page-home .home-hero {
    align-items: flex-start;
  }

  .page-home .home-hero-inner {
    padding-block: 30px 34px;
  }

  .page-home .home-hero-media {
    inset: 0;
    height: 100%;
  }

  .page-home .home-hero-media img {
    object-position: 55% 43%;
  }

  .page-home .home-hero::before {
    background: linear-gradient(90deg, rgba(7, 27, 52, 0.94), rgba(7, 27, 52, 0.82) 75%, rgba(7, 27, 52, 0.68));
  }

  .page-home .home-hero-kicker {
    display: flex;
    gap: 9px;
    margin-bottom: 15px;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.12em;
  }

  .page-home .home-hero h1 {
    font-size: clamp(44px, 12vw, 58px);
    line-height: 0.98;
  }

  .page-home .home-hero-lede {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.5;
  }

  .page-home .home-hero-status {
    gap: 8px;
    margin-top: 16px;
    padding: 10px 12px;
    font-size: 15px;
    line-height: 1.5;
  }

  .page-home .home-status-dot {
    margin-top: 7px;
  }

  .page-home .home-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
  }

  .page-home .home-hero-button {
    min-width: 0;
    min-height: 48px;
    gap: 8px;
    padding-inline: 12px;
    font-size: 15px;
  }

  .page-home .home-v2-section {
    scroll-margin-top: 78px;
    padding-block: 42px;
  }

  .page-home .home-v2-section h2 {
    font-size: clamp(32px, 8.2vw, 40px);
    line-height: 1.08;
  }

  .page-home .home-section-head {
    margin-bottom: 24px;
  }

  .page-home .home-section-head-row {
    gap: 16px;
  }

  .page-home .home-stage-grid,
  .page-home .home-card-grid-2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .page-home .home-stage-card,
  .page-home .home-evidence-card {
    padding: 24px;
  }

  .page-home .home-stage-details {
    padding: 14px 18px;
  }

  .page-home .home-stage-card h3,
  .page-home .home-evidence-card h3 {
    font-size: 27px;
  }

  .page-home .home-update-feature {
    display: flex;
  }

  .page-home .home-update-feature h3 {
    margin-bottom: 16px;
    font-size: 28px;
  }





  .page-home .cookie-notice {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .page-home .cookie-notice-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(247, 244, 238, 0.98);
  }

  .page-home .cookie-notice-text {
    font-size: 14px;
    line-height: 1.45;
  }

  .page-home .cookie-notice-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .page-home .cookie-notice-accept,
  .page-home .cookie-notice-link {
    min-height: 44px;
    padding-inline: 11px;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .page-home .home-hero-inner {
    padding-top: 24px;
  }

  .page-home .home-hero h1 {
    font-size: 44px;
  }

  .page-home .home-hero-button {
    padding-inline: 9px;
    font-size: 16px;
  }

  .page-home .cookie-notice-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .cookie-notice-actions {
    flex-direction: row;
    gap: 8px;
  }
}

@media (max-width: 720px) and (max-height: 700px) {
  .page-home .home-hero-inner {
    padding-block: 22px 26px;
  }

  .page-home .home-hero-kicker {
    display: none;
  }

  .page-home .home-hero h1 {
    font-size: 44px;
  }

  .page-home .home-hero-lede {
    margin-top: 14px;
  }

  .page-home .home-hero-status {
    margin-top: 12px;
    padding-block: 8px;
  }

  .page-home .home-hero-actions {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-status-dot {
    animation: none;
  }
}

/* Hash-only fallback for old homepage links; full sections live on their pages. */
.page-home .home-legacy-link { display: none; }
.page-home .home-legacy-link:target,
.page-home .home-legacy-link:has(:target) {
  display: block;
  margin-block: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.7;
  scroll-margin-top: 90px;
}
.page-home .home-legacy-link a { color: var(--burgundy); text-decoration: underline; }
.page-home .home-stage-label { font-size: 0.875rem; letter-spacing: 0.06em; }
.page-home .home-hero-kicker { font-size: 0.875rem; }

/* Keep the existing supporter cards and navy backdrop within current progress. */
@media (max-width: 720px) {
  .page-home .home-hero-button { font-size: 1rem; }
}

/* The original live wall now follows the complete donation area. */
.page-home .home-donate-supporters {
  display: flow-root;
  width: 100%;
  scroll-margin-top: 100px;
}
.page-home .home-donate-supporters > .home-wall {
  margin-top: 36px;
  padding-top: 28px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(228, 196, 127, 0.78);
  border-bottom: 1px solid rgba(228, 196, 127, 0.78);
}
@media (max-width: 720px) {
  .page-home .home-donate-supporters { scroll-margin-top: 78px; }
  .page-home .home-donate-supporters > .home-wall {
    margin-top: 28px;
    padding-top: 24px;
    padding-bottom: 28px;
  }
}

/* The source link also serves readers without JavaScript or available messages. */
.page-home .home-donate-supporters > .home-wall:not(.has-messages) {
  margin-top: 1.5rem;
  padding-block: 0;
  border: 0;
}
.home-wall:not(.has-messages) .home-wall-source:not([hidden]) {
  display: inline-block;
  position: relative;
  padding: .65rem 1rem;
  margin-inline-start: 6px;
  border-radius: 18px 18px 18px 5px;
  background: var(--cream);
  color: var(--navy);
  font-size: .9375rem;
  line-height: 1.5;
  text-decoration-color: currentColor;
}
.home-wall:not(.has-messages) .home-wall-source:not([hidden])::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -5px;
  width: 10px;
  height: 10px;
  background: var(--cream);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.home-wall [hidden] { display: none; }
.home-wall-field.is-still .home-wall-bubble { max-width: min(calc(100% - 12px), 34ch); }
.home-wall-field.is-still { align-content: flex-start; }
.home-wall-field.is-still[tabindex] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  max-height: 28rem;
  overflow-y: auto;
  padding: .5rem;
}
@media (max-width: 720px) {
  .home-wall-field.is-still { flex-direction: column; }
  .home-wall-field.is-still .home-wall-bubble.is-right { align-self: flex-end; }
}

/* Donations-only progress inside the homepage's existing Donate now card. */
.page-home #donate-now {
  scroll-margin-top: calc(var(--nav-height) + 20px);
}
.page-home .home-fundraising {
  margin: 20px 0 22px;
  color: var(--navy);
}
.page-home .home-fundraising-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 12px;
}
.page-home .home-fundraising-total > strong {
  font-family: var(--serif);
  font-size: clamp(30px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.page-home .home-fundraising-total > span {
  color: var(--grey);
  font-size: 14px;
  line-height: 1.5;
}
.page-home .home-fundraising-track {
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--stone);
}
.page-home .home-fundraising-track > span {
  display: block;
  height: 100%;
  max-width: 100%;
  background: var(--burgundy);
}
.page-home .home-fundraising-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 8px 0 0;
  color: var(--grey);
  font-size: 14px;
  line-height: 1.5;
}
.page-home .home-fundraising-meta strong {
  color: var(--navy);
  font-weight: 600;
}
.page-home .home-fundraising-next {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.page-home .home-fundraising-next .home-fundraising-meta {
  margin-top: 0;
}
.page-home .home-fundraising-track-next {
  height: 12px;
  margin-top: 10px;
}
.page-home .home-fundraising-track-next > span {
  background: #e4c47f;
}
.page-home .home-fundraising-preview {
  min-height: 3em;
  margin: 10px 0 0;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.5;
}
.page-home .home-fundraising-updated,
.page-home .home-fundraising-unavailable {
  margin: 10px 0 0;
  color: var(--grey);
  font-size: 12px;
  line-height: 1.5;
}
.page-home .home-fundraising-unavailable {
  color: var(--burgundy);
}
.page-home .home-fundraising [hidden] {
  display: none !important;
}

.page-home #current-stage.home-progress {
  min-block-size: 0;
  padding-block: clamp(.85rem, 2.2vh, 1.65rem);
}
.page-home #current-stage.home-progress > .container {
  display: grid;
  row-gap: clamp(.6rem, 1.35vh, .95rem);
  align-content: start;
}
.page-home #current-stage.home-progress .home-section-head-row { margin: 0; }
.page-home #current-stage.home-progress .home-section-head-row h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.75rem);
  line-height: 1.1;
}
.home-progress .home-progress-link {
  font-size: .89rem;
  white-space: nowrap;
}
.page-home #current-stage .campaign-route.home-route { padding: .5rem .85rem .55rem; }
.home-progress .home-route .campaign-route-heading { font-size: .97rem; }
.home-progress .home-route .campaign-route-donate { padding-block: .2rem; }
.home-progress .home-route .campaign-route-track { margin-top: .15rem; }
.home-progress .home-route .campaign-route-list { padding-block: .18rem .25rem; }
.home-progress .home-route .campaign-route-stage { gap: .22rem; }
.home-progress .home-route .campaign-route-stage-title {
  min-height: 0;
  font-size: .84rem;
  line-height: 1.28;
}
.home-progress .home-route .campaign-route-footer { margin-top: .35rem; padding-top: .36rem; }
.home-progress .home-route .campaign-route-condition { margin: 0; font-size: .83rem; line-height: 1.35; }
.home-progress .home-route .campaign-route-hint { font-size: .78rem; line-height: 1.35; }
@media (min-width: 901px) {
  .home-progress .home-route .campaign-route-list { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .home-progress .home-route .campaign-route-hint { display: none; }
}
.home-progress-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  align-items: start;
  gap: .7rem clamp(1rem, 2.3vw, 2rem);
}
.home-conference {
  min-width: 0;
  padding: .72rem clamp(.68rem, 1.6vw, 1.15rem);
  border-block: 1px solid var(--line);
  background: #f6f0e6;
}
.home-conference h3 {
  margin: 0 0 .4rem;
  color: var(--navy);
  font: 650 clamp(1.16rem, 2.2vw, 1.55rem)/1.2 var(--serif);
}
.home-conference p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.48;
}
.home-conference strong { color: var(--navy); }
.home-conference .home-conference-contact { margin-top: .45rem; }
.home-conference-contact a { color: var(--navy); text-decoration: underline; text-underline-offset: .18em; }
.home-opinion {
  min-width: 0;
  padding: .65rem 0 .15rem;
  border-top: 1px solid var(--line);
}
.home-opinion .home-stage-label { margin: 0 0 .25rem; font-size: .79rem; }
.home-opinion h3 {
  margin: 0 0 .3rem;
  color: var(--navy);
  font: 650 clamp(1.32rem, 3vw, 1.65rem)/1.13 var(--serif);
}
.home-opinion p:not(.home-stage-label) {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.42;
}
.home-letter-detail { margin-top: .32rem; }
.home-letter-detail summary {
  align-content: center;
  min-height: 32px;
  color: var(--navy);
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
}
.home-letter-detail summary:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.home-progress-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(.75rem, 2vw, 1.5rem);
  border-top: 1px solid var(--line);
}
.home-progress-actions a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  color: var(--burgundy);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .18em;
}
@media (min-width: 901px) {
  .page-home #current-stage.home-progress {
    min-block-size: min(48rem, calc((100svh - var(--progress-nav-offset)) * .88));
    padding-block: clamp(1.5rem, 4.2vw, 4.5rem);
  }
  .page-home #current-stage.home-progress > .container {
    align-content: center;
    row-gap: clamp(.8rem, 1.55vw, 1.65rem);
  }
  .page-home #current-stage.home-progress .home-section-head-row h2 {
    font-size: clamp(2.05rem, 3.8vw, 3.75rem);
    line-height: 1.05;
  }
}
@media (min-width: 901px) and (min-height: 730px) {
  .home-conference, .home-opinion { padding-block: 1rem; }
  .home-conference p, .home-opinion p:not(.home-stage-label) {
    font-size: .93rem;
    line-height: 1.5;
  }
}
@media (min-width: 901px) and (max-height: 729px) {
  .page-home #current-stage.home-progress { padding-block: clamp(1rem, 3.5vh, 1.65rem); }
  .page-home #current-stage.home-progress > .container { row-gap: .8rem; }
}
@media (max-width: 760px) {
  .page-home #current-stage.home-progress { scroll-margin-top: 76px; }
  .home-progress-overview { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 430px) {
  .home-conference { padding-block: .55rem; }
}
@media (max-width: 380px) {
  .page-home #current-stage.home-progress > .container { row-gap: .5rem; }
  .page-home #current-stage.home-progress .home-section-head-row { column-gap: .7rem; }
  .page-home #current-stage.home-progress .home-section-head-row h2 { font-size: 1.45rem; }
  .home-progress-actions a { font-size: .82rem; }
}

/* Donate: the story column is the shorter one, so it stays pinned below the
   nav while the taller donation card scrolls past. Below 1080px the two
   columns stack and nothing is sticky. */
@media (min-width: 1081px) {
  .page-home .home-donate-story {
    position: sticky;
    top: calc(var(--nav-height) + 32px);
  }

  .page-home .home-donate-card {
    position: static;
  }
}
.home-help-card#spread-the-word {
  scroll-margin-top: 7rem;
}

.home-spread-actions {
  display: grid;
  justify-items: start;
  gap: .3rem;
  min-width: 0;
  margin-top: auto;
  padding-top: .875rem;
}

.home-spread-feature {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  max-width: 100%;
  padding: .375rem .625rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #f8f3ed;
  color: var(--burgundy-deep);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.home-spread-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .2rem;
  width: min(100%, 11.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-spread-links a {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  color: var(--navy);
  border-radius: 5px;
}

.home-spread-icon {
  flex: none;
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.home-spread-links .home-spread-icon {
  box-sizing: border-box;
  width: 1.95rem;
  height: 1.95rem;
  padding: .42rem;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.home-spread-feature:is(:hover, :focus-visible),
.home-spread-links a:is(:hover, :focus-visible) .home-spread-icon {
  border-color: var(--burgundy);
  background-color: #f3e9e4;
  color: var(--burgundy-deep);
}

.home-spread-actions a:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
}
