/* ==========================================================================
   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: 1260px;
    --narrow: 760px;
    --gutter: 26px;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(27, 42, 58, .12);

    /* Background textures. Each navy band gets its own: a whole
       campaign photo, desaturated, with a flat 10% alpha baked into the file,
       sitting behind the band as one large faint image. Not tiled - see the
       shared sizing rule further down. Baked alpha keeps a band to a plain
       background-color plus background-image, with nothing to fight the
       positioned content inside it. Named for the area each one backs; the
       light grey areas are deliberately flat.
       Regenerate with scripts/make-textures.sh; its --sheet flag renders them
       all on their real grounds at band width, which is how to judge one. */
    --texture-title: url("../images/texture-title.webp");
    --texture-involve: url("../images/texture-involve.webp");
    --texture-footer: url("../images/texture-footer.webp");
    --texture-ride: url("../images/texture-ride.webp");
}

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: 1.35rem 1.6rem; 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; }

/* The textures are single large images, not tiles: one faint photograph per
   navy band, covering it. Each selector carries its own specificity here. */
.title-band, .section--involve, .site-footer, .site .side-card--ride {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* 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: 18px 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: 75px; display: block; }

.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 10px; 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; }
/* Call buttons carry what the number means right now: green pulsing dot
   for open now (fresh live push only), gold for later tonight, a hollow dot
   for a later date. Same three modes on the header pill and the hero. */
.call-dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; vertical-align: -.02em; background: #7be495; box-shadow: 0 0 0 0 rgba(123, 228, 149, .6); }
.header-phone--now .call-dot, .call-status--now .call-dot { animation: call-pulse 1.6s ease-out infinite; }
.header-phone--tonight .call-dot, .call-status--tonight .call-dot { background: var(--gold); box-shadow: none; }
.header-phone--next .call-dot, .call-status--next .call-dot { background: transparent; box-shadow: inset 0 0 0 2px currentColor; opacity: .8; }
.header-phone--now .header-phone__label { opacity: 1; font-weight: 800; }
/* Live is the one state that must be unmistakable: the header button itself
   turns green while dispatch is on the road. */
.site .header-phone--now { background: #1c7a3e; }
.site .header-phone--now:hover { background: #14632f; }
.header-phone--now .call-dot { background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); }
@keyframes call-pulse-white { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); } 100% { box-shadow: 0 0 0 .55em rgba(255, 255, 255, 0); } }
.header-phone--now .call-dot { animation-name: call-pulse-white; }
@keyframes call-pulse { 0% { box-shadow: 0 0 0 0 rgba(123, 228, 149, .6); } 100% { box-shadow: 0 0 0 .55em rgba(123, 228, 149, 0); } }
.hero__copy .call-status { display: inline-flex; align-items: center; gap: .55em; margin: 1rem 0 0; padding: .5em 1em; border-radius: 999px; font-size: 1rem; font-weight: 700; line-height: 1.2; }
.hero__copy .call-status--now { background: #e8f6ec; color: #14632f; }
.hero__copy .call-status--now .call-dot { background: #1c7a3e; box-shadow: 0 0 0 0 rgba(28, 122, 62, .5); }
.hero__copy .call-status--tonight { background: #fdf3dc; color: #8a5a06; }
.hero__copy .call-status--next { background: rgba(255, 255, 255, .14); color: #fff; }
.hero__copy .btn--call + .call-status { display: flex; width: fit-content; }
/* Outside a live push the call buttons don't dial: they render as spans,
   greyed out, still showing the number and when the line opens. */
.site .btn--call.is-disabled, .site .btn--call.is-disabled:hover { background: #6b7280; box-shadow: none; cursor: not-allowed; }
.site .header-phone.is-disabled, .site .header-phone.is-disabled:hover { background: #6b7280; cursor: not-allowed; }
/* The same for ride-line links inside content (need-a-ride copy, side card,
   footer): header.php sets the body class, main.js strips their href. */
.ride-line-closed a[href="tel:+12509627433"], .ride-line-closed a.is-ride-disabled { pointer-events: none; cursor: not-allowed; }
.ride-line-closed a.is-ride-disabled { color: inherit; text-decoration: none; }
.ride-line-closed .site .phone.is-ride-disabled { color: #6b7280; }

.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: 62px; }
    .menu-toggle { display: inline-flex; order: 3; }
    .site .header-phone { order: 2; padding: 6px 12px; }
    .header-phone__label { font-size: 0; }
    .header-phone__label .call-dot { font-size: .9rem; margin-right: 2px; }
    .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: 53px; }
    .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: 104px var(--gutter) 112px; }
.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) 64px; }
}

/* Sections (home) --------------------------------------------------------- */
.section { padding: 84px 0; }
.section__inner { max-width: var(--width); margin: 0 auto; padding: 0 var(--gutter); }
.section--status { padding: 0; }
.section--status .section__inner { padding-top: 32px; }
.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-color: var(--night); background-image: var(--texture-involve); color: #fff; }
.section--involve h2, .section--involve h3 { color: #fff; }
.section--involve a { color: #fff; }
.section--results { background: var(--white); }

/* Service status, pushed by the dispatch system. Three renderable states; off
   season and a stale push render nothing at all, so there is no "unknown"
   colour to style. Colour is never the only signal - each state also carries
   its own word - so this reads the same to somebody who cannot tell red from
   green. */
.site .status-board { border-radius: var(--radius); padding: 1.15rem 1.6rem; margin: 0;
    font-weight: 700; display: flex; gap: .55rem 1rem; align-items: center; flex-wrap: wrap;
    border-left: 6px solid transparent; }
.site .status-board > :last-child { margin-bottom: 0; }
.site .status-board__dot { width: .8em; height: .8em; border-radius: 50%; flex: none; background: currentColor; }
.site .status-board__label { text-transform: uppercase; letter-spacing: .07em; font-size: .82rem; font-weight: 800; }
.site .status-board__text { font-weight: 600; color: var(--ink); }
.site .status-board--live { background: #e8f6ec; border-left-color: #1c7a3e; color: #14632f; }
.site .status-board--soon { background: #fdf3dc; border-left-color: var(--gold); color: #8a5a06; }
.site .status-board--closed { background: #fdeaec; border-left-color: var(--red); color: var(--red-dark); }
/* Tonight's wait times, on their own line under the live message. */
.site .status-board__wait { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.6rem;
    margin-top: .35rem; padding-top: .75rem; border-top: 1px solid rgba(20, 99, 47, .2); }
.site .wait-stat { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 .5em; }
.site .wait-stat__label, .site .wait-stat strong { white-space: nowrap; }
.site .wait-stat__label { text-transform: uppercase; letter-spacing: .07em; font-size: .78rem; font-weight: 800; }
.site .wait-stat strong { font-size: 1.6rem; font-weight: 900; color: var(--night); line-height: 1.1; }
.site .wait-stat__asof { font-size: .85rem; font-weight: 600; color: var(--muted); }

/* Operating dates card */
.site .dates { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: center; }
/* Operating nights as month calendars: the pattern (Fridays and Saturdays,
   plus New Year's Eve) reads at a glance. Nights are filled red; a labelled
   night gets a gold ring; the legend names the hours and the special dates. */
.site .cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.site .cal__month { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 14px 12px; box-shadow: 0 2px 6px rgba(27, 42, 58, .05); }
.site .cal__title { margin: 0 0 10px; font-size: 1.05rem; font-weight: 800; color: var(--night); text-align: center; }
.site .cal table { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; margin: 0; }
.site .cal th { padding: 0 0 4px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: center; }
.site .cal td { padding: 0; text-align: center; }
.site .cal__day { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 8px; font-size: .95rem; font-weight: 600; color: var(--muted); }
.site .cal__night .cal__day { background: var(--red); color: #fff; font-weight: 800; box-shadow: 0 3px 8px rgba(200, 16, 46, .3); }
.site .cal__night.is-special .cal__day { box-shadow: 0 0 0 3px var(--gold) inset, 0 3px 8px rgba(200, 16, 46, .3); }
.site .cal__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site .cal__legend { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.site .cal__legend li { margin: 0; display: flex; align-items: center; gap: 8px; }
.site .cal__key { flex: none; width: 18px; height: 18px; border-radius: 5px; background: var(--red); }
.site .cal__key--special { box-shadow: 0 0 0 3px var(--gold) inset; }
@media (max-width: 760px) { .site .dates { grid-template-columns: 1fr; gap: 28px; } }
/* The same calendars also render in the 320px sidebar on /need-a-ride. */
.site .side-card .cal { grid-template-columns: 1fr; gap: 12px; }
.site .side-card .cal__month { padding: 12px 10px 8px; }
.site .side-card .cal table { border-spacing: 3px; }
.site .side-card .cal__day { font-size: .85rem; border-radius: 6px; }
.site .side-card .cal__legend { font-size: .82rem; gap: 6px 16px; }

/* 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: 36px; counter-reset: step; }
.site .steps li { margin: 0; padding: 38px 32px 34px; 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: 26px; }
.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: 36px; }
.site .card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 40px 36px; 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; }
/* Two buttons at the foot of a card: the group takes the auto margin, not each button. */
.site .card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 8px; }
.site .card__actions .btn { margin-top: 0; }
.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: 26px; }
.site .stats li { margin: 0; text-align: center; padding: 32px 16px; 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-color: var(--night); background-image: var(--texture-title); color: #fff; }
.title-band__inner { max-width: var(--width); margin: 0 auto; padding: 64px var(--gutter) 58px; }
.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: 76px; padding: 68px 0 92px; }
.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: 44px; padding: 44px 0 64px; }
}

/* Sidebar cards */
.site .side-card { background: var(--paper); border-radius: var(--radius); padding: 32px; margin-bottom: 32px; }
.site .side-card > :last-child { margin-bottom: 0; }
.site .side-card h3 { font-size: 1.15rem; margin-bottom: .6em; }
.site .side-card--ride { background-color: var(--night); background-image: var(--texture-ride); 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: 28px; margin: 0 0 2rem; }
/* The four levels sit on one row wherever there is room, two-up on tablets. */
@media (min-width: 900px) { .site .tiers--levels { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
@media (min-width: 560px) and (max-width: 899px) { .site .tiers--levels { grid-template-columns: repeat(2, 1fr); } }
.site .tier { border: 1px solid var(--rule); border-top: 6px solid var(--rule); border-radius: var(--radius); padding: 30px; }
.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); }
/* The two non-tier packages, laid out as a matching pair. Colours follow the
   sponsor list's bands: gold for the establishments, navy for the challenge. */
.site .tiers--extras { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.site .tier--rle { border-top-color: var(--gold); }
.site .tier--challenge { border-top-color: var(--night); }
.site .tier p { font-size: .95rem; margin-bottom: .8em; }
.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; }

/* Embedded volunteer application ------------------------------------------ */
/* A modest starting height: the frame grows to its real height as soon as
   db.ornpg.ca posts one (js/main.js), and a 1500px blank area while that is
   pending is worse than a short frame that grows. It still works with no
   JavaScript at all, just scrolling inside the frame. */
.site .apply-embed { margin: 0 0 1.5rem; }
/* Their page renders flush to the frame's edge, and we cannot pad inside a
   cross-origin frame, so the padding is a wrapper in the same grey as their
   page background — the two read as one padded panel. */
.site .apply-embed__panel { background: var(--paper); border-radius: var(--radius); padding: 24px 28px; }
@media (max-width: 600px) { .site .apply-embed__panel { padding: 16px 14px; } }
.site .apply-embed__frame { display: block; width: 100%; height: 760px; border: 0;
    background: var(--paper); border-radius: var(--radius); }
.site .apply-embed__fallback { color: var(--muted); margin-bottom: .8rem; }

/* Sponsor acknowledgement list (/our-sponsors) ---------------------------- */
/* Sponsorship is out of the menu, so this band is the way in to it. Navy so it
   reads as a call to action rather than another content block. It takes the
   volunteer photo rather than the title band's: cover-cropped into a short
   wide box, the Alpine photo puts that pub's sign legibly in the corner of a
   block asking other businesses to sponsor. */
.site .sponsor-invite { background-color: var(--night); background-image: var(--texture-involve);
    background-repeat: no-repeat; background-size: cover; background-position: center;
    color: #fff; border-radius: var(--radius); padding: 40px 44px; margin: 0 0 3rem; }
.site .sponsor-invite h2 { color: #fff; margin-bottom: .5em; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.site .sponsor-invite p { color: rgba(255, 255, 255, .9); max-width: 62ch; }
.site .sponsor-invite > :last-child { margin-bottom: 0; }
.site .sponsor-invite__actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: 1.6rem; }
.site .sponsor-invite .btn--outline { border-color: #fff; color: #fff; }
.site .sponsor-invite .btn--outline:hover { background: #fff; color: var(--night); }
@media (max-width: 600px) {
    .site .sponsor-invite { padding: 30px 26px; }
}

/* The list is 95 names, so this one page takes the full width rather than the
   reading measure the Full template otherwise sets. Body class from header.php. */
.page-our-sponsors .layout--full .layout__main { max-width: none; }
/* Sponsorship: the four level cards want the full width, so this page runs
   single-column with its sidebar cards in a row underneath the content. Text
   keeps a reading measure; only the card grids run wide. */
@media (min-width: 900px) {
    .page-sponsors .layout { grid-template-columns: minmax(0, 1fr); gap: 56px; }
    .page-sponsors .layout__main > :not(.tiers, h2, .sponsor-cols) { max-width: 820px; }
    .page-sponsors .layout__sidebar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
    .page-sponsors .layout__sidebar .side-card { margin-bottom: 0; }
}
/* Each section of the sponsorship page opens on a rule with a short red mark,
   so the levels, terms, contact and sponsor-list sections read as separate
   blocks rather than one long run. */
.page-sponsors .layout__main > h2 { border-top: 2px solid #c9d2da; padding-top: 2.2rem; margin-top: 3.4rem; }
.page-sponsors .layout__main > h2::before { content: ''; display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--red); margin-bottom: 14px; }
.page-sponsors .layout__main > h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
/* The closing sections run two-up: terms and contact on the left, the
   pointer to the sponsor list on the right. Same rule and red mark. */
.page-sponsors .sponsor-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; border-top: 2px solid #c9d2da; margin-top: 3.4rem; padding-top: 2.2rem; }
.page-sponsors .sponsor-cols h2 { margin-top: 0; }
.page-sponsors .sponsor-cols h2::before { content: ''; display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--red); margin-bottom: 14px; }
.page-sponsors .sponsor-cols h2:not(:first-child) { border-top: 2px solid #c9d2da; padding-top: 2.2rem; margin-top: 3rem; }
.page-sponsors .sponsor-cols > div > :last-child { margin-bottom: 0; }
.page-sponsors .sponsor-cols img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 60% 50%; border-radius: var(--radius); margin-top: 1.4rem; }
@media (max-width: 760px) { .page-sponsors .sponsor-cols { grid-template-columns: 1fr; } }
.site .sponsor-tiers { margin: 2.5rem 0 3rem; display: flex; flex-direction: column; gap: 3rem; }
.site .sponsor-tier { border-top: 4px solid var(--rule); padding-top: 1.4rem; }
.site .sponsor-tier h2 { margin: 0 0 .2em; font-size: 1.5rem; }
.site .sponsor-tier__note { color: var(--muted); font-size: .97rem; margin: 0 0 1rem; }
/* Tier colours match the level cards on /sponsors, so the two pages agree. */
.site .sponsor-tier--gold-sponsors { border-top-color: #d4a017; }
.site .sponsor-tier--silver-sponsors { border-top-color: #9aa5b1; }
.site .sponsor-tier--bronze-sponsors { border-top-color: #b26a32; }
.site .sponsor-tier--proud-supporters { border-top-color: var(--red); }
.site .sponsor-tier--local-partners { border-top-color: var(--night); }
.site .sponsor-tier--responsible-licensed-establishments { border-top-color: var(--gold); }
.site .sponsor-list { list-style: none; margin: 1rem 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 32px; }
.site .sponsor-list li { margin: 0; padding: .6rem 0; border-bottom: 1px solid var(--rule); font-weight: 600; }
.site .sponsor-list a { color: inherit; text-decoration: none; }
.site .sponsor-list a:hover { color: var(--red); text-decoration: underline; }

/* Tiers that had logos on the old site show them, with the name beneath so a
   hard-to-read mark still says who it is. Sponsors in those tiers that never
   had a logo keep a slot and show the name alone. */
.site .sponsor-logos { list-style: none; margin: 1.3rem 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
/* Each sponsor is a tile of the same size: an outlined box, the logo in a
   fixed-height field, and the name on a navy band across the foot that doubles
   as a thick bottom border. Linked tiles lift and turn the band red on hover.
   A sponsor with no logo keeps the empty field so the row stays even. */
.site .sponsor-logos li { margin: 0; text-align: center; display: flex; flex-direction: column;
    background: #fff; border: 2px solid #c9d2da; border-radius: var(--radius); overflow: hidden;
    transition: transform .15s, box-shadow .15s, border-color .15s; }
.site .sponsor-logos a { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.site .sponsor-logos img { display: block; box-sizing: border-box; width: 100%; height: 120px; margin: 0;
    padding: 18px 20px; object-fit: contain; }
.site .sponsor-logos .sponsor-name { display: flex; align-items: center; justify-content: center;
    margin-top: auto; min-height: 2.8em; padding: .4rem .7rem; background: var(--night); color: #fff;
    font-size: .85rem; font-weight: 600; line-height: 1.25; transition: background .15s; }
.site .sponsor-logos li:not(:has(img)) .sponsor-name { flex: 1; }
.site .sponsor-logos li:has(a:hover) { transform: translateY(-3px); border-color: var(--night);
    box-shadow: 0 10px 24px rgba(27, 42, 58, .14); }
.site .sponsor-logos a:hover .sponsor-name { background: var(--red); }
/* Fixed column counts where the client asked for them: partners two rows of
   three, licensed establishments all six on one line. Narrow screens fall back
   to the auto-fill grid above. */
@media (min-width: 700px) {
    .site .sponsor-tier--local-partners .sponsor-logos { grid-template-columns: repeat(3, 1fr); }
    .site .sponsor-tier--local-partners .sponsor-logos img { height: 170px; padding: 24px 28px; }
}
@media (min-width: 960px) {
    .site .sponsor-tier--responsible-licensed-establishments .sponsor-logos { grid-template-columns: repeat(6, 1fr); gap: 16px; }
    .site .sponsor-tier--responsible-licensed-establishments .sponsor-logos img { height: 100px; padding: 14px; }
    .site .sponsor-tier--responsible-licensed-establishments .sponsor-name { font-size: .8rem; }
}

/* /about: the organizations Red Nose money has funded, in the sponsor tile
   style but smaller, since they share the column with the sidebar. */
.site .supported-logos { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-bottom: 2.2rem; }
.site .supported-logos img { height: 100px; padding: 14px 16px; }
.site .supported-logos .sponsor-name { font-size: .8rem; }

/* /about "Did you know?": origin cards, one featured statistic tied to our
   hours, the impaired-driving numbers in the home Results card style, and
   the BC law figures as a strip. */
.site .origin-facts { list-style: none; margin: 1.4rem 0 2rem; padding: 0; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.site .origin-facts li { margin: 0; padding: 22px 22px 24px; border-radius: var(--radius);
    background: var(--night); color: rgba(255, 255, 255, .85); font-size: .95rem; line-height: 1.5; }
.site .origin-facts strong { display: block; margin-bottom: .35em; color: var(--gold); font-size: 1.6rem; font-weight: 900; line-height: 1.1; }
.site .fact-feature { display: flex; align-items: center; gap: 28px; margin: 0 0 2.4rem; padding: 28px 32px;
    border-radius: var(--radius); background: var(--red); color: #fff; }
.site .fact-feature strong { flex: none; font-size: clamp(3.4rem, 8vw, 5rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.site .fact-feature p { margin: 0; font-size: 1.15rem; line-height: 1.45; }
.site .fact-feature b { font-weight: 900; }
.site .stats--facts { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin: 1rem 0 2.4rem; }
.site .stats--facts li { text-align: left; padding: 20px 20px 22px; border-top: 4px solid var(--red); }
.site .stats--facts strong { font-size: 2rem; }
.site .stats--facts span { font-size: .9rem; line-height: 1.4; }
.site .law-facts { list-style: none; margin: 1rem 0 1.6rem; padding: 0; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.site .law-facts li { margin: 0; padding: 18px 20px; border-radius: var(--radius); background: var(--paper);
    border-left: 5px solid var(--gold); font-size: .9rem; color: var(--muted); line-height: 1.4; }
.site .law-facts strong { display: block; color: var(--night); font-size: 1.7rem; font-weight: 900; line-height: 1.15; }
.site .fact-close { font-size: 1.1rem; }
@media (max-width: 560px) {
    .site .stats--facts { grid-template-columns: 1fr 1fr; gap: 12px; }
    .site .stats--facts li { padding: 16px 14px 18px; }
    .site .stats--facts strong { font-size: 1.6rem; }
    .site .stats--facts span { font-size: .85rem; }
    .site .fact-feature { flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; }
}

/* Campaign photos --------------------------------------------------------- */
.section--photos { background: var(--white); padding-top: 0; }
.site .photo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.site .photo-strip .ccm-image-block { display: block; }
.site .photo-strip img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }

/* A photo inside a page's content, as its own block under the prose. */
.site .layout__main .ccm-image-block img, .site .page-photo img { border-radius: var(--radius); display: block; }
.site .layout__main img.ccm-image-block { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }

/* Every campaign photo is cropped square (Jeff, 2026-09-28), the files left
   untouched. Where the subject is off centre, frame it by filename; the
   sponsorship photo's own rule is under .sponsor-cols. */
.site img[src*="1366637658840072"] { object-position: 45% 50%; }  /* Alpine: Rudy, and the sign's edge */
.site img[src*="1366637722173399"] { object-position: 85% 50%; }  /* piano: Rudy is on the right */
.site img[src*="1366638098840028"] { object-position: 50% 75%; }  /* antler lounge: head to feet */
.site img[src*="1366638162173355"] { object-position: 80% 50%; }  /* pickup: Rudy is on the right */
.site img[src*="1366637855506719"] { object-position: 50% 20%; }  /* about: both faces, antlers in */

/* Partners strip --------------------------------------------------------- */
.partners { background: var(--paper); border-top: 1px solid var(--rule); }
.partners__inner { max-width: var(--width); margin: 0 auto; padding: 44px var(--gutter); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px 48px; }
.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); }
/* The two sponsor buttons under the logos are hard-coded in footer.php, so
   editing the Partners stack cannot drop them. */
.partners__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin-top: 10px; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background-color: var(--night); background-image: var(--texture-footer); 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: 76px var(--gutter) 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 48px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__bottom-inner { max-width: var(--width); margin: 0 auto; padding: 30px 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 is on the links, not the container: a child cannot be more opaque
   than its parent, so a container opacity cancels the hover. */
.site-footer__credit a { line-height: 0; opacity: .6; transition: opacity .15s; }
.site-footer__credit a:hover, .site-footer__credit a:focus-visible { opacity: .8; }
.site-footer__credit img { display: block; height: 30px; width: auto; filter: drop-shadow(1px 1px 1px rgba(0,0,0,.75)); }
/* admin.svg is a two-state sprite (green above, white below): show the top
   half, and slide to the bottom half on hover. */
.site-footer__credit #Admin { height: 30px; overflow: hidden; }
.site-footer__credit #Admin img { height: 60px; }
.site-footer__credit #Admin:hover img, .site-footer__credit #Admin:focus-visible img { transform: translateY(-30px); }

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