/* Year two: centered section layout (Duan, Nov 19, 2026).
   Headings, eyebrows, intros, cards and button rows are centered on every page.
   Long body copy, lists, tables and form fields keep left text inside a centered
   column so they stay readable. Loaded last so it wins over polish.css. */

html body:not(#_) .y2-c-col { max-width: 62ch; margin-inline: auto !important; }

/* ── Shared subpage hero ─────────────────────────────────────────── */
html body:not(#_) .page-hero .section-container, html body:not(#_) .page-hero .page-hero-text { text-align: center !important; }
html body:not(#_) .page-hero .page-hero-sub { margin-inline: auto !important; max-width: 46ch; }
html body:not(#_) .page-hero .page-hero-flex { flex-direction: column !important; align-items: center !important; justify-content: center !important; text-align: center !important; gap: 1.25rem; }
html body:not(#_) .page-hero .page-hero-logo { margin-inline: auto !important; }
html body:not(#_) .page-hero .rd-actions, html body:not(#_) .page-hero .btn-row { justify-content: center !important; }

/* ── Generic section heads used on legacy pages ──────────────────── */
html body:not(#_) :is(.section-heading, .section-overline, .section-intro, .news-header, .news-intro, .news-section-heading) { text-align: center !important; margin-inline: auto !important; }
html body:not(#_) .section-intro, html body:not(#_) .news-intro { max-width: 60ch; }
html body:not(#_) .section-overline { justify-content: center; }

/* ── Homepage (index) ────────────────────────────────────────────── */
/* Race details band under the hero */
html body:not(#_) .y2-facts div { text-align: center; padding-left: 0.75rem; padding-right: 0.75rem; }
html body:not(#_) .y2-sanction { text-align: center; }
@media (max-width: 760px) {
  html body:not(#_) .y2-hero-inner { text-align: center; }
  html body:not(#_) .y2-hero-inner .y2-hero-tag { justify-content: center; }
  html body:not(#_) .y2-hero-inner :is(h1, .y2-hero-text, .y2-h1-sub) { margin-inline: auto; }
  html body:not(#_) .y2-hero-inner .y2-hero-ctas { justify-content: center; }
}
/* shared section header pieces */
html body:not(#_) .y2-section .y2-eyebrow { justify-content: center; }
html body:not(#_) .y2-section :is(.y2-h2, .y2-lede) { text-align: center; margin-inline: auto; }

/* Registration: two columns on desktop, each column centered */
html body:not(#_) .y2-register .y2-reg-grid > div:first-child { text-align: center; }
html body:not(#_) .y2-register .y2-eyebrow { display: flex; }
html body:not(#_) .y2-register .y2-timeline { display: inline-block; text-align: left; max-width: 420px; }
html body:not(#_) .y2-price-card { text-align: center; }
html body:not(#_) .y2-price-card .y2-prices div { text-align: center; }
html body:not(#_) .y2-price-card .y2-cap { justify-content: center; }
html body:not(#_) .y2-price-card .interest-form { text-align: left; }
html body:not(#_) .y2-price-card .interest-form button { text-align: center; }
html body:not(#_) .y2-price-card .interest-form [role="status"] { text-align: center; }

/* Year one */
html body:not(#_) .y2-yo-head { display: block !important; text-align: center; max-width: 760px; margin-inline: auto; }
html body:not(#_) .y2-yo-head .y2-eyebrow { display: flex; }
html body:not(#_) .y2-stats { margin-inline: auto; }
html body:not(#_) .y2-stat { text-align: center; }
html body:not(#_) .y2-links { justify-content: center; }
html body:not(#_) .y2-press { justify-content: center; text-align: center; }

/* Race director note: photo and letter, letter centered in its column */
html body:not(#_) .y2-letter { text-align: center; }
html body:not(#_) .y2-letter .y2-eyebrow { display: flex; }
html body:not(#_) .y2-letter p { margin-inline: auto; }

/* Why this run exists */
html body:not(#_) .y2-cause-grid > div:first-child { text-align: center; }
html body:not(#_) .y2-cause .y2-eyebrow { display: flex; }
html body:not(#_) .y2-cause .y2-quote-line { border-left: 0; padding-left: 0; padding-top: 1.1rem; max-width: 30ch; margin-inline: auto; background-image: linear-gradient(#E31B23, #E31B23) !important; background-repeat: no-repeat !important; background-position: top center !important; background-size: 56px 4px !important; }
html body:not(#_) .y2-cause .y2-hero-ctas { justify-content: center; }
html body:not(#_) .y2-cause .y2-rtp { display: flex; justify-content: center; margin-inline: auto; }

/* Fastest 40 teaser */
html body:not(#_) .y2-f40-grid > div:first-child { text-align: center; }
html body:not(#_) .y2-f40 .y2-eyebrow { display: flex; }
html body:not(#_) .y2-f40-sponsors { margin-inline: auto; }
html body:not(#_) .y2-podiums h3 { text-align: center; }

/* Shop teaser */
html body:not(#_) .y2-merch-head { display: flex !important; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; }
html body:not(#_) .y2-merch-head .y2-eyebrow { display: flex; }
html body:not(#_) .y2-prod-body { text-align: center; }
html body:not(#_) .y2-section .y2-small { text-align: center; margin-inline: auto; max-width: 70ch; }

/* Partners */
html body:not(#_) .y2-partner-head { display: block !important; text-align: center; max-width: 760px; margin-inline: auto; }
html body:not(#_) .y2-partner-head .y2-eyebrow { display: flex; }
html body:not(#_) .y2-tier { display: block !important; text-align: center; }
html body:not(#_) .y2-tier > :first-child { text-align: center; margin-bottom: 0.9rem; }
html body:not(#_) .y2-logos { justify-content: center !important; }
html body:not(#_) .y2-partner-cta { flex-direction: column; align-items: center !important; text-align: center; gap: 1rem; }

/* Sign up band */
html body:not(#_) .y2-notify-grid > div:first-child { text-align: center; }
html body:not(#_) .y2-notify .interest-form { text-align: left; }
html body:not(#_) .y2-notify .interest-form [role="status"] { text-align: center; }

/* ── Partner page ────────────────────────────────────────────────── */
html body:not(#_).y2 .y2-section .y2-reveal > :is(.y2-eyebrow) { display: flex; }
html body:not(#_) .y2-ways, html body:not(#_) .pp-card { text-align: center; }
html body:not(#_) .y2-ways :is(h2, h3, p) { text-align: center; }
html body:not(#_) .pp-card form { text-align: left; }
html body:not(#_) .pp-card :is(.pp-note, .pp-success) { text-align: center; }

/* ── Our story ───────────────────────────────────────────────────── */
html body:not(#_) .about-content > :is(.section-overline, .section-heading) { text-align: center !important; }
html body:not(#_) .credentials { justify-content: center; }
html body:not(#_) .founder-bio { max-width: 62ch; margin-inline: auto; }
html body:not(#_) .founder-pullquote { text-align: center; border-left: 0 !important; padding-left: 0 !important; padding-top: 1.1rem !important; background-image: linear-gradient(#E31B23, #E31B23) !important; background-repeat: no-repeat !important; background-position: top center !important; background-size: 56px 4px !important; }
html body:not(#_) .cause-content { text-align: center !important; align-items: center !important; }
html body:not(#_) .cause-content .cause-body { max-width: 62ch; margin-inline: auto; }
html body:not(#_) .cause-quote { border-left: 0 !important; padding-left: 0 !important; padding-top: 1.1rem !important; text-align: center; background-image: linear-gradient(#E31B23, #E31B23) !important; background-repeat: no-repeat !important; background-position: top center !important; background-size: 56px 4px !important; }
html body:not(#_) .rtp-logo-wrap { margin-inline: auto !important; justify-content: center; display: flex; }
html body:not(#_) .cause-cta-row { justify-content: center !important; }
html body:not(#_) .rwanda-header { text-align: center; margin-inline: auto !important; }
html body:not(#_) .rwanda-overline-row { justify-content: center; }

html body:not(#_) .rwanda-stat-source { text-align: center; }
html body:not(#_) .photo-strip figcaption, html body:not(#_) .rwanda-photo-grid figcaption { text-align: center; }

/* ── In the news and our story press block ───────────────────────── */
html body:not(#_) .news-card, html body:not(#_) .news-grid > * { text-align: center; }
html body:not(#_) .news-card-meta { justify-content: center; }
html body:not(#_) .news-video-btns { justify-content: center; }
html body:not(#_) .podcast-feature { text-align: center; }
html body:not(#_) .podcast-feature-label, html body:not(#_) .podcast-feature-links { justify-content: center; }
html body:not(#_) .news-disclaimer { text-align: center; }

/* ── Get involved ────────────────────────────────────────────────── */
html body:not(#_) .gi-card { align-items: center; text-align: center; }
html body:not(#_) .gi-card .btn { align-self: center !important; }

/* ── Gallery ─────────────────────────────────────────────────────── */
html body:not(#_) .g-head { text-align: center; }
html body:not(#_) .g-cta { text-align: center; justify-content: center; }
html body:not(#_) .g-photo-credit { text-align: center; }

/* ── Results and 2026 update ─────────────────────────────────────── */
html body:not(#_) :is(.results-notice, .results-notice-text, .results-notice-label, .results-embed h2, .results-embed > p, .results-embed-sub, .results-count) { text-align: center !important; margin-inline: auto; }
html body:not(#_) .results-filter { justify-content: center !important; }
html body:not(#_) .results-link-card { flex-direction: column; align-items: center !important; text-align: center; justify-content: center !important; }
html body:not(#_) .results-link-text { text-align: center !important; }

html body:not(#_) .ru-letter { max-width: 62ch; margin-inline: auto; }

/* ── Fastest 40 results page ─────────────────────────────────────── */
html body:not(#_) .f40-header-inner { flex-direction: column !important; justify-content: center !important; align-items: center !important; text-align: center !important; gap: 1.5rem; }
html body:not(#_) .f40-title-block { flex: 0 1 auto !important; width: 100%; }
html body:not(#_) .f40-title-block, html body:not(#_) .f40-intro { text-align: center !important; margin-inline: auto !important; }
html body:not(#_) .f40-intro { max-width: 52ch; }
html body:not(#_) .f40-sponsor-block { margin-inline: auto; justify-content: center; text-align: center; }
html body:not(#_) .f40-sponsor-item { align-items: center; text-align: center; }
html body:not(#_) .f40-body-inner { text-align: center; }
html body:not(#_) .f40-details { display: grid !important; width: fit-content; max-width: 100%; margin-inline: auto !important; justify-items: start; text-align: left !important; }
html body:not(#_) .f40-location { text-align: center !important; margin-inline: auto; max-width: 52ch; }
html body:not(#_) .f40r-heading, html body:not(#_) .f40r-sub, html body:not(#_) .f40r-note { text-align: center !important; margin-inline: auto; }
html body:not(#_) .f40r-sub, html body:not(#_) .f40r-note { max-width: 56ch; }
html body:not(#_) .f40r-tabs { display: flex !important; flex-wrap: wrap; justify-content: center !important; }
html body:not(#_) .f40-cta-row { justify-content: center !important; }

/* ── Race day archive ────────────────────────────────────────────── */
html body:not(#_) .rd-recap { text-align: center; }
html body:not(#_) .rd-card, html body:not(#_) .rd-cause { text-align: center; }
html body:not(#_) .rd-text { margin-inline: auto !important; }
html body:not(#_) .contact-info { align-items: center !important; text-align: center; }
html body:not(#_) .contact-list { display: inline-grid; text-align: left; }
html body:not(#_) .charity-box { text-align: center; }

/* ── Fundraise ───────────────────────────────────────────────────── */
html body:not(#_) .fr-hero { text-align: center !important; }
html body:not(#_) .fr-hero :is(.fr-hero-sub, .fr-hero-flag) { margin-inline: auto !important; }
html body:not(#_) .fr-hero .fr-hero-cta, html body:not(#_) .fr-hero > div { justify-content: center; }
html body:not(#_) .fr-step { text-align: center; align-items: center; }
html body:not(#_) .fr-why-body { max-width: 62ch; margin-inline: auto; }
html body:not(#_) .fr-why-quote { text-align: center; border-left: 0 !important; padding-left: 0 !important; padding-top: 1.1rem !important; background-image: linear-gradient(#E31B23, #E31B23) !important; background-repeat: no-repeat !important; background-position: top center !important; background-size: 56px 4px !important; }
html body:not(#_) .fr-cta-section { text-align: center !important; }
html body:not(#_) .fr-cta-body { margin-inline: auto !important; }
html body:not(#_) .fr-cta-btns { justify-content: center !important; }
html body:not(#_) .fr-disclaimer { text-align: center; }

/* ── Shop (presentation only) ────────────────────────────────────── */
html body:not(#_) .sp-intro, html body:not(#_) .sp-intro-text, html body:not(#_) .sp-charity { text-align: center !important; margin-inline: auto !important; }
html body:not(#_) .sp-delivery { justify-content: center !important; text-align: center; }
html body:not(#_) .sp-body { text-align: center; }
html body:not(#_) .sp-body .shop-buy, html body:not(#_) .sp-bundle-body .shop-buy { justify-content: center; margin-inline: auto; }
html body:not(#_) .sp-bundle-body { text-align: center; }
html body:not(#_) .sp-bundle-list { display: inline-block; text-align: left; }
html body:not(#_) .shop-footnote { text-align: center; }

/* Grids that leave a short last row: center the leftover cards */
@media (min-width: 900px) {
  html body:not(#_) .gi-grid { display: flex !important; flex-wrap: wrap; justify-content: center; }
  html body:not(#_) .gi-grid > .gi-card { flex: 0 1 calc((100% - 2 * 1.5rem) / 3); min-width: 260px; }
  html body:not(#_) .news-grid { display: flex !important; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
  html body:not(#_) .news-grid > * { flex: 0 1 calc((100% - 3rem) / 3); min-width: 0; }
}
html body:not(#_) .pp-card-title { text-align: center; }
html body:not(#_) .g-sub { text-align: center; margin-inline: auto; }
html body:not(#_) .results-filter { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: center !important; gap: 0.6rem; }
html body:not(#_) :is(.rd-recap, .rd-cause) :is(.rd-text, p) { text-align: center !important; margin-inline: auto !important; }
html body:not(#_) .fr-cta-heading { text-align: center !important; margin-inline: auto !important; }
html body:not(#_) .fr-step { display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important; gap: 0.6rem; }
html body:not(#_) .fr-step-body { text-align: center !important; }
html body:not(#_) .sp-intro .shop-wrap, html body:not(#_) .sp-intro :is(h1, h2) { text-align: center !important; margin-inline: auto !important; }
html body:not(#_) .fr-why-inner, html body:not(#_) .fr-cta-section .fr-how-inner, html body:not(#_) .fr-how-inner { text-align: center !important; }
html body:not(#_) .fr-disclaimer { text-align: center !important; margin-inline: auto !important; max-width: 62ch; }
html body:not(#_) .results-filter .results-count { flex: 0 1 auto !important; margin-left: 0 !important; margin-right: 0 !important; }
html body:not(#_) .results-filter .results-count:empty { display: none; }
html body:not(#_) .news-read-more { justify-content: center; align-self: center; margin-inline: auto; }
html body:not(#_) .news-disclaimer { text-align: center !important; margin-inline: auto !important; }
html body:not(#_) .fr-why-inner > div img { margin-inline: auto; }
html body:not(#_) .rd-actions { justify-content: center !important; }

/* Fastest 40 sponsor and timing card: original logo colours on the navy card */
html body:not(#_) :is(.f40-pr-logo, .f40-ovr-logo), html body:not(#_) :is(.f40-pr-logo, .f40-ovr-logo):hover { filter: none !important; opacity: 1 !important; mix-blend-mode: normal !important; transition: none !important; }
html body:not(#_) .fr-why-inner > div img { opacity: 1 !important; }
