/* ==========================================================================
   Operation Red Nose Prince George — Concrete 9 theme
   ORN red on white, night-sky hero, phone-first call to action.
   Everything is scoped under .site so the Concrete editing UI is left alone.
   ========================================================================== */

/* Nunito (400/600/700/900) is loaded from Google Fonts in elements/header.php. */

:root {
    --red: #c8102e;
    --red-dark: #9e0b23;
    --night: #1b2a3a;
    --night-2: #2f4f66;
    --sky: #4e7288;
    --gold: #f2b134;
    --ink: #1f2933;
    --muted: #5b6b7a;
    --rule: #e3e8ec;
    --paper: #f4f6f8;
    --white: #fff;
    --width: 1140px;
    --narrow: 760px;
    --gutter: 20px;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(27, 42, 58, .12);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; padding: 0; background: var(--white); -webkit-font-smoothing: antialiased; }

.site { font-family: 'Nunito', 'Segoe UI', Arial, sans-serif; font-weight: 400; color: var(--ink); line-height: 1.6; font-size: 17px; word-wrap: break-word; }
.site *, .site *::before, .site *::after { box-sizing: border-box; }
.site img { max-width: 100%; height: auto; border: 0; }
.site .icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -.15em; flex: none; }

.site .skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--night); color: #fff; padding: 8px 12px; }
.site .skip-link:focus { left: 8px; top: 8px; }

/* Typography -------------------------------------------------------------- */
.site h1, .site h2, .site h3, .site h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 900; color: var(--night); letter-spacing: -.01em; text-wrap: balance; }
.site h1 { font-size: 2.5rem; }
.site h2 { font-size: 1.9rem; }
.site h3 { font-size: 1.3rem; }
.site h4 { font-size: 1.1rem; }
.site h2 + p, .site h3 + p { margin-top: 0; }
.site p { margin: 0 0 1.1em; }
.site ul, .site ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.site li { margin-bottom: .3em; }
.site p.lead, .site .lead { font-size: 1.2rem; color: var(--muted); }
.site .small { font-size: .9rem; color: var(--muted); }
.site hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.site blockquote { margin: 1.5rem 0; padding: .5rem 0 .5rem 1.25rem; border-left: 4px solid var(--red); color: var(--muted); font-style: italic; }
.site table { border-collapse: collapse; width: 100%; margin: 0 0 1.5rem; }
.site th, .site td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.site th { color: var(--night); }

.site a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.site a:hover { color: var(--red-dark); }
.site a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Buttons: also offered in the editor's style dropdown. */
.site .btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.5em; border-radius: 999px; font-weight: 800; text-decoration: none; line-height: 1.2; transition: background .2s, color .2s, transform .1s; }
.site .btn:hover { transform: translateY(-1px); }
.site .btn--primary { background: var(--red); color: #fff; }
.site .btn--primary:hover { background: var(--red-dark); color: #fff; }
.site .btn--outline { border: 2px solid var(--red); color: var(--red); background: transparent; }
.site .btn--outline:hover { background: var(--red); color: #fff; }
.site .btn--call { background: var(--red); color: #fff; font-size: clamp(1.4rem, 3.5vw, 2rem); padding: .55em 1em; box-shadow: 0 8px 24px rgba(200, 16, 46, .35); }
.site .btn--call:hover { background: var(--red-dark); color: #fff; }
.site .btn--call .btn__sub { font-weight: 600; font-size: .6em; opacity: .85; }

.site .callout { background: var(--paper); border-left: 5px solid var(--gold); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.5rem; }
.site .callout > :last-child { margin-bottom: 0; }
.site ul.ticks { list-style: none; padding: 0; }
.site ul.ticks li { position: relative; padding-left: 1.7em; margin-bottom: .45em; }
.site ul.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1em; height: 1em; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 70% no-repeat; }
.site .cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 2.5rem; }

/* Header ------------------------------------------------------------------ */
.site-header { background: var(--white); border-top: 6px solid var(--red); box-shadow: 0 1px 0 var(--rule); position: relative; z-index: 20; }
.site-header__inner { max-width: var(--width); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.site .logo { display: block; line-height: 0; margin-right: auto; text-decoration: none; }
.logo img { width: 170px; height: 65px; display: block; }
.logo__place { display: block; margin: 2px 0 0 60px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); line-height: 1; }

.site-nav ul { display: flex; margin: 0; padding: 0; list-style: none; gap: 4px; }
.site-nav li { margin: 0; }
.site-nav li a { display: block; padding: 10px 11px; border-radius: 8px; color: var(--night); font-weight: 700; text-decoration: none; }
.site-nav li a:hover { background: var(--paper); color: var(--red); }
.site-nav li.nav-selected > a, .site-nav li.nav-path-selected > a { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); border-radius: 8px 8px 0 0; }
.site-nav li ul { display: none; }

.site .header-phone { display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 14px; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; line-height: 1.1; white-space: nowrap; }
.site .header-phone:hover { background: var(--red-dark); color: #fff; }
.site .header-phone .icon { font-size: 1.5rem; }
.header-phone__label { display: block; font-size: .75rem; font-weight: 600; opacity: .9; }
.header-phone__number { display: block; font-size: 1.15rem; font-weight: 900; }

.menu-toggle { display: none; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--rule); border-radius: 8px; background: #fff; font: inherit; font-weight: 700; color: var(--night); cursor: pointer; }
.menu-toggle__bars { position: relative; display: block; width: 22px; height: 2px; background: currentColor; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; transition: transform .2s; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .site-header__inner { gap: 12px; }
    .logo img { width: 140px; height: 54px; }
    .logo__place { margin-left: 50px; font-size: .68rem; }
    .menu-toggle { display: inline-flex; order: 3; }
    .site .header-phone { order: 2; padding: 6px 12px; }
    .header-phone__label { display: none; }
    .header-phone__number { font-size: 1rem; }
    .site-nav { order: 4; flex-basis: 100%; display: none; }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; gap: 0; padding: 8px 0 4px; border-top: 1px solid var(--rule); }
    .site-nav li a { padding: 12px 8px; font-size: 1.1rem; }
    .site-nav li.nav-selected > a, .site-nav li.nav-path-selected > a { box-shadow: inset 4px 0 0 var(--red); border-radius: 0; }
}
@media (max-width: 420px) {
    .logo img { width: 120px; height: 46px; }
    .logo__place { margin-left: 42px; font-size: .6rem; }
    .site .header-phone { padding: 6px 10px; gap: 6px; }
    .site .header-phone .icon { font-size: 1.25rem; }
    .header-phone__number { font-size: .95rem; }
    .menu-toggle__label { display: none; }
}

/* Hero (home) ------------------------------------------------------------- */
.hero { position: relative; color: #fff; background: var(--night-2) center top / cover no-repeat; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27, 42, 58, .82) 0%, rgba(27, 42, 58, .55) 55%, rgba(27, 42, 58, 0) 100%); }
.hero__inner { position: relative; max-width: var(--width); margin: 0 auto; padding: 72px var(--gutter) 80px; }
.hero__copy { max-width: 620px; }
.hero__copy h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: .4em; }
.hero__copy p { font-size: 1.15rem; margin-bottom: 1.4em; color: rgba(255, 255, 255, .92); }
.hero__copy .eyebrow, .site .eyebrow { display: inline-block; font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.hero__copy .hero-note { margin: 1.25rem 0 0; font-size: 1rem; color: rgba(255, 255, 255, .85); }
.hero__copy .hero-note a { color: #fff; }
@media (max-width: 700px) {
    .hero { background-position: 72% top; }
    .hero::before { background: linear-gradient(180deg, rgba(27, 42, 58, .15) 0%, rgba(27, 42, 58, .2) 32%, rgba(27, 42, 58, .9) 52%, rgba(27, 42, 58, .96) 100%); }
    .hero__inner { padding: 310px var(--gutter) 48px; }
}

/* Sections (home) --------------------------------------------------------- */
.section { padding: 56px 0; }
.section__inner { max-width: var(--width); margin: 0 auto; padding: 0 var(--gutter); }
.section--status { padding: 0; }
.section--status .section__inner { padding-top: 24px; }
.section--intro .section__inner { max-width: var(--narrow); text-align: center; }
.section--intro h2 { font-size: 2.1rem; }
.section--dates { background: var(--paper); }
.section--steps { background: var(--white); }
.section--involve { background: var(--night); color: #fff; }
.section--involve h2, .section--involve h3 { color: #fff; }
.section--involve a { color: #fff; }
.section--results { background: var(--white); }

.site .status-board { background: var(--gold); color: var(--night); border-radius: var(--radius); padding: 1rem 1.5rem; font-weight: 700; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.site .status-board > :last-child { margin-bottom: 0; }

/* Operating dates card */
.site .dates { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: center; }
.site .dates__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.site .dates__list li { margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; font-weight: 700; color: var(--night); box-shadow: 0 2px 6px rgba(27, 42, 58, .05); }
.site .dates__list li span { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.site .dates__list li.is-special { border-color: var(--red); background: #fff5f6; }
@media (max-width: 760px) { .site .dates { grid-template-columns: 1fr; gap: 20px; } }

/* How it works: three numbered steps */
.site .steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; counter-reset: step; }
.site .steps li { margin: 0; padding: 28px 24px 24px; background: var(--paper); border-radius: var(--radius); position: relative; counter-increment: step; }
.site .steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 900; font-size: 1.3rem; margin-bottom: 14px; }
.layout__main .steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.site .steps h3 { margin-bottom: .3em; }
.site .steps p { margin: 0; color: var(--muted); }

/* Get involved: cards on the dark band */
.site .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.site .card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; }
.site .card h3 { font-size: 1.5rem; }
.site .card p { color: rgba(255, 255, 255, .85); }
.site .card .btn { align-self: flex-start; margin-top: auto; }
.site .card .btn--outline { border-color: #fff; color: #fff; }
.site .card .btn--outline:hover { background: #fff; color: var(--night); }

/* Results: stat tiles */
.site .stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }
.site .stats li { margin: 0; text-align: center; padding: 24px 12px; border: 1px solid var(--rule); border-radius: var(--radius); }
.site .stats strong { display: block; font-size: 2.4rem; font-weight: 900; color: var(--red); line-height: 1.1; }
.site .stats span { display: block; color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* Title band and inner layout ---------------------------------------------- */
.title-band { background: var(--night); color: #fff; }
.title-band__inner { max-width: var(--width); margin: 0 auto; padding: 44px var(--gutter) 40px; }
.site .title-band__title { color: #fff; margin: 0; }
.title-band__lead { margin: .6em 0 0; font-size: 1.15rem; max-width: 720px; color: rgba(255, 255, 255, .85); }

.site-main { max-width: var(--width); margin: 0 auto; padding: 0 var(--gutter); }
.site-main--home { max-width: none; padding: 0; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding: 48px 0 64px; }
.layout--full { grid-template-columns: minmax(0, 1fr); }
.layout--full .layout__main { max-width: var(--narrow); }
.layout__main > :first-child, .layout__sidebar > :first-child { margin-top: 0; }
.layout__main h2 { margin-top: 1.6em; }
.layout__main > .ccm-block-edit:first-child h2, .layout__main > h2:first-child { margin-top: 0; }
@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; gap: 32px; padding: 32px 0 48px; }
}

/* Sidebar cards */
.site .side-card { background: var(--paper); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.site .side-card > :last-child { margin-bottom: 0; }
.site .side-card h3 { font-size: 1.15rem; margin-bottom: .6em; }
.site .side-card--ride { background: var(--night); color: #fff; }
.site .side-card--ride h3 { color: var(--gold); }
.site .side-card--ride a { color: #fff; }
.site .side-card--ride .phone { display: block; font-size: 1.7rem; font-weight: 900; text-decoration: none; margin: 4px 0 8px; }
.site .side-card--ride p { color: rgba(255, 255, 255, .85); font-size: .95rem; }

/* Sponsorship tiers */
.site .tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 0 0 1.5rem; }
.site .tier { border: 1px solid var(--rule); border-top: 6px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.site .tier--gold { border-top-color: #d4a017; }
.site .tier--silver { border-top-color: #9aa5b1; }
.site .tier--bronze { border-top-color: #b26a32; }
.site .tier--supporter { border-top-color: var(--red); }
.site .tier h3 { margin-bottom: .1em; }
.site .tier .tier__amount { display: block; color: var(--red); font-weight: 800; margin-bottom: .8em; }
.site .tier ul { padding-left: 1.2em; font-size: .95rem; margin-bottom: 0; }
.site .tier li { margin-bottom: .35em; }

/* Partners strip --------------------------------------------------------- */
.partners { background: var(--paper); border-top: 1px solid var(--rule); }
.partners__inner { max-width: var(--width); margin: 0 auto; padding: 28px var(--gutter); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 36px; }
.partners__inner:empty { display: none; }
.partners__inner .ccm-image-block { display: block; }
.partners__inner img { height: 54px; width: auto; max-width: 200px; object-fit: contain; opacity: .85; transition: opacity .2s; }
.partners__inner a:hover img { opacity: 1; }
.partners__inner h2, .partners__inner p { flex-basis: 100%; text-align: center; margin: 0; }
.partners__inner h2 { font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .85); }
.site-footer a { color: #fff; }
.site-footer h2, .site-footer h3 { color: var(--gold); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .8em; }
.site-footer p { margin-bottom: .8em; font-size: .97rem; }
.site-footer .phone { display: inline-block; font-size: 1.9rem; font-weight: 900; text-decoration: none; line-height: 1.1; margin-bottom: .3em; }
.site-footer__columns { max-width: var(--width); margin: 0 auto; padding: 52px var(--gutter) 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__bottom-inner { max-width: var(--width); margin: 0 auto; padding: 20px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer__legal { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .6); max-width: 720px; }
.site-footer__credit { display: flex; align-items: center; gap: 22px; opacity: .8; }
.site-footer__credit a { line-height: 0; }
.site-footer__credit a:hover { opacity: 1; }
.site-footer__credit img { display: block; height: 30px; width: auto; }
/* admin.svg is a two-state sprite (normal above, hover below); show the top half. */
.site-footer__credit #Admin { height: 30px; overflow: hidden; }
.site-footer__credit #Admin img { height: 60px; }

/* Edit mode: keep empty areas findable ----------------------------------- */
.is-edit-mode .section { min-height: 60px; }
.is-edit-mode .partners__inner:empty { display: flex; min-height: 40px; }
