/* =====================================================================
   Rotary Club of Ras Al Khaimah
   Components follow rotary.org: navy header, pill buttons, rounded cards,
   blue and light bands, circular photos with dashed gold rings.
   ===================================================================== */

:root {
    --navy-900: #212C3F;       /* header + footer */
    --navy-800: #28354B;       /* utility strip */
    --blue-band: #0C3C7C;      /* blue sections */
    --blue: #17458F;           /* Rotary royal blue: dark buttons */
    --blue-deep: #0C3266;      /* pill text */
    --sky: #BDF0FF;            /* light pill buttons */
    --sky-hover: #9FE6FB;
    --pill-bg: #E9F2F9;
    --gold: #F7A81B;           /* Rotary gold: wheel and rings */
    --text: #323C44;
    --muted: #5F6B75;
    --line: #DCE3EA;
    --light: #F9FBFC;
    --white: #FFFFFF;

    --font: "Open Sans", "Segoe UI", Arial, sans-serif;
    --font-ar: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;

    --wrap: 1376px;
    --gutter: clamp(16px, 4vw, 48px);
    --band: clamp(64px, 8vw, 112px);
    --radius: 16px;
    --shadow: 0 4px 8px rgba(0, 0, 0, .1);
    --shadow-hover: 0 10px 24px rgba(0, 0, 0, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; background: var(--white); color: var(--text); font: 400 1rem/1.6 var(--font); }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: .18em; }
:where(a:hover) { color: var(--blue-band); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; color: inherit; font-weight: 600; line-height: 1.2; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 18px; border-radius: 999px; background: var(--sky); color: var(--blue-band); font-weight: 700; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.icon--xs { width: 13px; height: 13px; }
.muted { color: var(--muted); }
.empty { padding: 28px; border-radius: var(--radius); background: var(--light); color: var(--muted); }
.lead { font-size: 1.0625rem; line-height: 1.6; }

/* ---------------------------------------------------------- Buttons (rotary.org pills) */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 56px; padding: 16px 32px; border: 0; border-radius: 9999px;
    font: 700 1rem/1.5 var(--font); text-decoration: none; cursor: pointer;
    transition: background-color .15s, color .15s, box-shadow .15s;
}
.btn--sm { min-height: 40px; padding: 8px 20px; font-size: .9375rem; }
.btn--lg { min-height: 56px; }
.btn--block { display: flex; width: 100%; }
.btn--light { background: var(--sky); color: var(--blue-band); }
.btn--light:hover { background: var(--sky-hover); color: var(--blue-band); }
.btn--dark { background: var(--blue); color: var(--white); }
.btn--dark:hover { background: var(--blue-band); color: var(--white); }
.btn--outline { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--outline-light { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.btn--outline-light:hover { background: var(--white); color: var(--blue-band); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); text-decoration: none; }
.link-arrow::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }
.text-link { font-weight: 700; color: var(--blue); }

.pill { display: inline-flex; align-items: center; align-self: flex-start; padding: 8px 12px; border-radius: 50px; background: var(--pill-bg); color: var(--blue-deep); font-size: .75rem; line-height: 1.5; }
.pill--dark { background: var(--blue-deep); color: var(--white); }
.pill--light { background: var(--sky); color: var(--blue-band); }

.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--blue); box-shadow: var(--shadow); }
.icon-btn:hover { box-shadow: var(--shadow-hover); }
.icon-btn .icon { width: 20px; height: 20px; }

/* ---------------------------------------------------------- Header */
.masthead { position: relative; z-index: 50; color: var(--white); }
.utility { background: var(--navy-800); font-size: .9375rem; }
.utility__inner { display: flex; justify-content: flex-end; min-height: 54px; align-items: center; }
.utility__links { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.utility__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--white); font-weight: 700; text-decoration: none; }
.utility__links a:hover { text-decoration: underline; }
.mainbar { background: var(--navy-900); }
.mainbar__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-block: 20px 12px; }
.mainbar__brand { display: flex; flex-direction: column; gap: 14px; }
.mainbar__actions { display: flex; align-items: center; gap: 16px; padding-top: 4px; }

.logo { display: inline-flex; text-decoration: none; }
.logo__image { height: 52px; width: auto; }
.logo__lockup { display: grid; grid-template-columns: auto auto; grid-template-areas: "word wheel" "line line"; align-items: center; column-gap: 6px; }
.logo__word { grid-area: word; font: 700 1.875rem/1 var(--font); letter-spacing: -.02em; color: var(--blue); }
.logo__wheel { grid-area: wheel; width: 40px; height: 40px; color: var(--gold); }
.logo__line { grid-area: line; margin-top: 2px; font: 600 .8125rem/1.2 var(--font); color: var(--blue); }
.logo--light .logo__word, .logo--light .logo__line { color: var(--white); }

.nav__list { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav__link { display: block; padding: 10px 0; color: var(--white); font-weight: 700; text-decoration: none; border-bottom: 3px solid transparent; }
.nav__link:hover { color: var(--white); border-bottom-color: rgba(255, 255, 255, .5); }
.nav__link.is-active { border-bottom-color: var(--sky); }
.nav__join-mobile { display: none; }
.nav-toggle { display: none; width: 56px; height: 56px; border: 2px solid var(--white); border-radius: 50%; background: transparent; color: var(--white); cursor: pointer; place-items: center; }
.nav-toggle .icon { width: 24px; height: 24px; }

@media (max-width: 900px) {
    .utility__inner { justify-content: center; }
    .mainbar__inner { align-items: center; padding-block: 16px; }
    .mainbar__actions .btn { display: none; }
    .nav-toggle { display: grid; }
    .nav {
        position: fixed; inset: 0 0 0 auto; z-index: 60; width: min(360px, 88vw);
        display: flex; flex-direction: column; gap: 24px; padding: 104px 28px 32px;
        background: var(--navy-900); box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .7);
        transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s;
    }
    .nav.is-open { transform: none; visibility: visible; }
    .nav__list { flex-direction: column; gap: 0; }
    .nav__link { padding: 14px 0; font-size: 1.125rem; border-bottom: 1px solid rgba(255, 255, 255, .15); }
    .nav__link.is-active { border-bottom-color: var(--sky); }
    .nav__join-mobile { display: inline-flex; }
    body.nav-open { overflow: hidden; }
    body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .5); }
    .nav-toggle[aria-expanded="true"] { position: relative; z-index: 70; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) { .nav { transition: none; } }

/* ---------------------------------------------------------- Hero */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(78vh, 760px); background: var(--navy-900); color: var(--white); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, 0) 75%), linear-gradient(0deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 40%); }
.hero__content { position: relative; padding-top: 140px; padding-bottom: 120px; }
.hero__title { max-width: 24ch; font-size: clamp(2.25rem, 4.2vw, 3.625rem); line-height: 1.2; text-wrap: balance; }
.hero__text { max-width: 560px; margin: 16px 0 32px; font-size: 1rem; line-height: 1.5; }
.play-btn { position: absolute; left: var(--gutter); bottom: 32px; display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid var(--white); border-radius: 50%; background: rgba(0, 0, 0, .15); color: var(--white); cursor: pointer; }
.play-btn:hover { background: rgba(0, 0, 0, .4); }
.play-btn .icon { width: 20px; height: 20px; }

/* ---------------------------------------------------------- Bands (sections) */
.band, .section { position: relative; padding-block: var(--band); overflow: hidden; }
.band--tight { padding-block: clamp(40px, 5vw, 64px); }
.band--light { background: var(--light); }
.band--blue { background: var(--blue-band); color: var(--white); }
.band--center { text-align: center; }
.band__title, .section-title { margin-bottom: 24px; font-size: clamp(1.875rem, 3vw, 2.5rem); line-height: 1.2; text-wrap: balance; }
.band__title-sep { font-weight: 400; color: var(--muted); }
.band--blue .band__title-sep { color: rgba(255, 255, 255, .6); }
.band__lead { max-width: 720px; margin-inline: auto; }
.section-title--sm { font-size: 1.5rem; }
.section-head { margin-bottom: 32px; }
.section-head--split { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.section-head--split .section-title { margin: 0; }
.band--blue a:not(.btn) { color: var(--white); }

/* decorative shapes used by rotary.org's blue bands */
.deco { position: absolute; pointer-events: none; }
.deco--circle { top: -140px; left: -140px; width: 340px; height: 340px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.band--light .deco--circle, .band:not(.band--blue) .deco--circle { background: rgba(23, 69, 143, .05); }
.deco--dots { right: -60px; bottom: -60px; width: 320px; height: 320px; border-radius: 50%; border: 4px dotted rgba(0, 162, 224, .55); clip-path: inset(0 0 50% 50%); }

/* ---------------------------------------------------------- Rings (circular photos with dashed gold border) */
.ring { position: relative; display: grid; place-items: center; flex: none; aspect-ratio: 1; width: 168px; height: 168px; padding: 10px; border-radius: 50%; border: 2px dashed var(--gold); }
.ring img, .ring > svg, .ring__initials { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.ring { overflow: hidden; }
.ring > svg { padding: 22%; background: var(--blue); color: var(--gold); }
.ring__initials { display: grid; place-items: center; background: var(--blue); color: var(--white); font-size: 2.5rem; font-weight: 600; }
.ring--md { width: 180px; height: 180px; }
.ring--lg { width: min(300px, 100%); height: auto; aspect-ratio: 1; padding: 14px; }

/* ---------------------------------------------------------- Prose */
.prose { max-width: 72ch; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin: 1.6em 0 .5em; font-size: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: var(--radius); margin-block: 1.5em; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 4px solid var(--gold); font-size: 1.25rem; }
.prose .source { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.prose--article { font-size: 1.0625rem; line-height: 1.75; }
.prose--light { color: rgba(255, 255, 255, .92); margin-bottom: 28px; }

/* ---------------------------------------------------------- Cards */
.card { padding: 28px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.card__title { margin-bottom: 10px; font-size: 1.25rem; color: var(--blue); }
.card p:last-child { margin-bottom: 0; }
.card--stat { display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.card__stat { font-size: 2.5rem; font-weight: 600; line-height: 1.1; color: var(--text); }

/* horizontal news cards (home) */
.hcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
.hcard { display: grid; grid-template-columns: 1fr 207px; min-height: 226px; border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: box-shadow .2s; }
.hcard:hover { color: var(--text); box-shadow: var(--shadow-hover); }
.hcard__body { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.hcard__title { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.hcard:hover .hcard__title { text-decoration: underline; }
.hcard__text { font-size: .9375rem; line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.hcard__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1020px) { .hcards { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .hcard { grid-template-columns: 1fr; } .hcard__media { order: -1; aspect-ratio: 16 / 9; } }

/* vertical news cards (news page) */
.vcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vcard { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: box-shadow .2s; }
.vcard:hover { color: var(--text); box-shadow: var(--shadow-hover); }
.vcard__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--light); }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; }
.vcard__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 20px; }
.vcard__title { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.vcard:hover .vcard__title { text-decoration: underline; }
.vcard__text { font-size: .875rem; line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.vcard__date { font-size: .8125rem; color: var(--muted); }
.placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: var(--blue); color: rgba(247, 168, 27, .6); }
.placeholder svg { width: 30%; height: auto; }
@media (max-width: 1020px) { .vcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .vcards { grid-template-columns: 1fr; } }

/* featured story (news page) */
.page-heading { margin: clamp(32px, 4vw, 48px) 0 16px; font-size: clamp(2rem, 3.4vw, 2.75rem); }
.subnav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 24px; }
.subnav__link { padding: 4px 0; color: var(--text); font-size: .9375rem; text-decoration: none; border-bottom: 2px solid transparent; }
.subnav__link:hover, .subnav__link.is-active { color: var(--blue); border-bottom-color: var(--blue); }
.feature { position: relative; display: flex; align-items: flex-end; min-height: 440px; border-radius: var(--radius); overflow: hidden; background: var(--navy-900); color: var(--white); text-decoration: none; isolation: isolate; }
.feature:hover { color: var(--white); }
.feature__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .3) 55%, rgba(0, 0, 0, 0) 100%); }
.feature__content { display: flex; flex-direction: column; gap: 14px; max-width: 560px; padding: 40px; }
.feature__title { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.25; }
.feature__text { line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.feature .btn { align-self: flex-start; margin-top: 6px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; }
.pager__num, .pager__btn { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border-radius: 50%; color: var(--text); font-weight: 600; text-decoration: none; }
.pager__num:hover, .pager__btn:hover { background: var(--pill-bg); }
.pager__num.is-active { background: var(--blue); color: var(--white); }

/* ---------------------------------------------------------- Home: get involved band */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; position: relative; }
.split__text .lead { max-width: 560px; }
.meeting-line { display: flex; align-items: center; gap: 10px; margin: 0 0 32px; font-weight: 700; }
.split__list { display: flex; flex-direction: column; gap: 28px; }
.split__label { margin: 0; font-size: .875rem; font-weight: 700; letter-spacing: .02em; color: var(--sky); }
.circle-item { display: flex; align-items: center; gap: 28px; color: var(--white); text-decoration: none; }
.circle-item .ring { width: 150px; height: 150px; }
.circle-item__text { display: flex; flex-direction: column; gap: 6px; }
.circle-item__title { font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.circle-item:hover .circle-item__title { text-decoration: underline; }
.circle-item__meta { font-size: .9375rem; color: rgba(255, 255, 255, .85); }
.band--blue .link-arrow { color: var(--sky); }
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
    .circle-item .ring { width: 110px; height: 110px; padding: 7px; }
}

/* ---------------------------------------------------------- Causes list (rotary.org "Our causes") */
.causes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.causes__intro p { max-width: 460px; }
.causes__intro .ring { margin-top: 32px; }
.causes__list { border-top: 1px solid var(--line); }
.cause-row { border-bottom: 1px solid var(--line); }
.cause-row summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: clamp(1.375rem, 2.2vw, 2rem); font-weight: 600; line-height: 1.2; }
.cause-row summary::-webkit-details-marker { display: none; }
.cause-row summary::after { content: ""; flex: none; width: 22px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; color: var(--blue); }
.cause-row[open] summary::after { transform: rotate(45deg); }
.cause-row summary:hover { color: var(--blue); }
.cause-row__body { padding: 0 48px 24px 0; }
.cause-row__body p { margin-bottom: 12px; }
.cause-row--faq summary { font-size: clamp(1.125rem, 1.6vw, 1.375rem); }
.cause-row--cta { padding: 28px 0 8px; border-bottom: 0; }
.cause-row__cta-title { margin-bottom: 8px; font-size: 1.25rem; font-weight: 700; }
.cause-row--cta .btn { margin-top: 8px; }
@media (max-width: 900px) {
    .causes { grid-template-columns: 1fr; }
    .causes__intro .ring { display: none; }
}

/* ---------------------------------------------------------- Numbers band */
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin: 56px 0 0; }
.numbers__item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.numbers dd { margin: 0; font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 600; line-height: 1.1; }
.numbers dt { max-width: 26ch; font-size: .9375rem; color: rgba(255, 255, 255, .88); }

/* ---------------------------------------------------------- Promo (full-bleed image) */
.promo { position: relative; display: flex; align-items: center; min-height: 600px; background: var(--navy-900); color: var(--white); overflow: hidden; isolation: isolate; }
.promo__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .4) 45%, rgba(0, 0, 0, 0) 75%); }
.promo__content { padding-block: 80px; }
.promo__title { max-width: 16ch; margin-bottom: 16px; font-size: 2rem; line-height: 1.2; }
.promo__text { max-width: 520px; margin-bottom: 28px; }
.promo__text p { margin-bottom: .8em; }

/* ---------------------------------------------------------- Inner page header card */
.page-card { position: relative; display: grid; place-items: center; min-height: 360px; margin-top: 24px; padding: 64px 32px; border-radius: var(--radius); overflow: hidden; background: var(--blue-band); color: var(--white); text-align: center; isolation: isolate; }
.page-card--image { min-height: 480px; place-items: end center; }
.page-card__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-card--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .05) 100%); }
.page-card__content { position: relative; max-width: 720px; }
.page-card__title { font-size: clamp(2rem, 4vw, 3.625rem); line-height: 1.2; text-wrap: balance; }
.page-card__intro { max-width: 560px; margin: 16px auto 0; line-height: 1.5; }
.page-card__trail { margin-bottom: 12px; }
.page-card__trail a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: var(--white); font-size: .875rem; font-weight: 700; text-decoration: none; }
.page-card__trail a:hover { background: rgba(255, 255, 255, .25); }
.notice { display: inline-block; margin: 0 0 20px; padding: 8px 16px; border-radius: 999px; background: var(--pill-bg); color: var(--blue-deep); font-size: .875rem; }

/* ---------------------------------------------------------- About */
.story { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story__cards { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }

.circles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 40px; margin-top: 48px; text-align: center; }
.circles__item { display: flex; flex-direction: column; align-items: center; scroll-margin-top: 24px; }
.circles__title { margin: 24px 0 10px; font-size: 1.375rem; }
.circles__text { max-width: 36ch; font-size: .9375rem; color: rgba(255, 255, 255, .9); }
.circles__text p { margin-bottom: 10px; }
.circles__item:target .ring { border-style: solid; }
@media (max-width: 900px) { .circles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .circles { grid-template-columns: 1fr; } }

.fourway { margin: 0; padding: 0; list-style: none; counter-reset: q; border-top: 1px solid var(--line); }
.fourway li { counter-increment: q; display: grid; grid-template-columns: 48px 1fr; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 600; line-height: 1.3; }
.fourway li::before { content: counter(q); color: var(--blue); font-size: 1rem; font-weight: 700; }

.people__group { margin: 48px 0 24px; font-size: 1.25rem; color: var(--blue); }
.people { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 48px; margin: 0; padding: 0; list-style: none; }
.person { display: flex; flex-direction: column; align-items: center; width: 200px; }
.person__name { margin: 18px 0 0; font-size: 1.125rem; font-weight: 700; }
.person__role { margin: 4px 0 0; color: var(--muted); font-size: .9375rem; }
.person__links { display: flex; gap: 6px; margin: 10px 0 0; }
.person__links a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--pill-bg); color: var(--blue); }

.ri { display: grid; grid-template-columns: 220px 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; position: relative; }
.ri__wheel { width: 100%; height: auto; aspect-ratio: 1; color: var(--gold); }
@media (max-width: 760px) { .ri { grid-template-columns: 1fr; } .ri__wheel { width: 120px; } }

/* ---------------------------------------------------------- Calendar */
.cal-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.cal-nav { display: flex; align-items: center; gap: 14px; }
.cal-nav__month { min-width: 10ch; margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--pill-bg); color: var(--blue-deep); font-size: .875rem; text-decoration: none; }
.chip:hover { background: #d8e8f5; color: var(--blue-deep); }
.chip.is-active { background: var(--blue-deep); color: var(--white); }
.chip__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cat); }

.cal-grid { border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.cal-grid__head, .cal-grid__week { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-grid__head span { padding: 12px; background: var(--navy-900); color: var(--white); font-size: .875rem; font-weight: 700; }
.cal-day { min-height: 124px; padding: 8px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-day:first-child { border-left: 0; }
.cal-day__num { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 4px; border-radius: 50%; font-size: .9375rem; font-weight: 600; }
.cal-day.is-outside { background: var(--light); }
.cal-day.is-outside .cal-day__num { color: #9AA6B2; }
.cal-day.is-today .cal-day__num { background: var(--sky); color: var(--blue-band); }
.cal-event { display: -webkit-box; margin-top: 4px; padding: 4px 8px; border-left: 3px solid var(--cat); border-radius: 0 6px 6px 0; background: color-mix(in srgb, var(--cat) 10%, white); color: var(--text); font-size: .8125rem; line-height: 1.3; text-decoration: none; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal-event:hover { background: color-mix(in srgb, var(--cat) 20%, white); color: var(--text); }
.cal-event__time { font-weight: 700; }
.cal-agenda { margin-top: 56px; }
.cal-agenda__title { margin-bottom: 20px; font-size: 1.5rem; }
@media (max-width: 860px) { .cal-grid { display: none; } .cal-agenda { margin-top: 8px; } }

.event-list { display: grid; gap: 16px; }
.event-card { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; padding: 20px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: box-shadow .2s; }
.event-card:hover { color: var(--text); box-shadow: var(--shadow-hover); }
.event-card__date { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 6px; border-radius: 12px; background: var(--blue-band); color: var(--white); line-height: 1; text-align: center; }
.event-card.is-past .event-card__date { background: var(--pill-bg); color: var(--blue-deep); }
.event-card__day { font-size: 2rem; font-weight: 600; }
.event-card__month { margin-top: 6px; font-size: .8125rem; font-weight: 700; }
.event-card__body { display: flex; flex-direction: column; gap: 8px; }
.event-card__title { font-size: 1.1875rem; font-weight: 700; line-height: 1.35; }
.event-card:hover .event-card__title { text-decoration: underline; }
.event-card__text { font-size: .9375rem; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .875rem; }
.meta > * { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 480px) { .event-card { grid-template-columns: 72px 1fr; gap: 16px; } .event-card__day { font-size: 1.625rem; } }

/* ---------------------------------------------------------- Detail pages */
.detail__grid { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.detail__image { margin-bottom: 32px; }
.detail__subhead { margin: 48px 0 20px; font-size: 1.5rem; }
.detail__aside { position: sticky; top: 24px; }
@media (max-width: 960px) { .detail__grid { grid-template-columns: 1fr; } .detail__aside { position: static; order: -1; } }

.info-card { padding: 28px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.info-card + .info-card { margin-top: 20px; }
.info-card h2 { margin-bottom: 16px; font-size: 1.25rem; }
.info-card dl { margin: 0 0 24px; }
.info-card dl > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-card dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .875rem; font-weight: 600; }
.info-card dd { margin: 4px 0 0 26px; font-weight: 600; }
.info-card .btn + .btn { margin-top: 10px; }
.info-card--gold { background: var(--blue-band); color: rgba(255, 255, 255, .9); }
.info-card--gold h2 { color: var(--sky); }
.info-card--gold .muted { color: rgba(255, 255, 255, .7); }
.info-card__big { color: var(--white); font-size: 1.5rem; font-weight: 600; line-height: 1.3; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; align-items: start; }
.gallery .media-fit { border-radius: 12px; overflow: hidden; }

.article__head { padding-block: clamp(40px, 6vw, 72px) 32px; }
.article__head .page-card__trail a { background: var(--pill-bg); color: var(--blue-deep); }
.page-hero__trail { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.page-hero__trail a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--pill-bg); color: var(--blue-deep); font-size: .875rem; font-weight: 700; text-decoration: none; }
.article__title { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.2; text-wrap: balance; }
.article__standfirst { margin: 20px 0 0; font-size: 1.1875rem; line-height: 1.5; }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.article__figure { margin: 0 auto 48px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 56px 0 var(--band); padding-top: 24px; border-top: 1px solid var(--line); }
.share p { margin: 0; font-weight: 700; }
.share ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.share a, .share button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--pill-bg); color: var(--blue); font: 600 .9375rem var(--font); cursor: pointer; }
.share a:hover, .share button:hover { background: #d8e8f5; }

/* ---------------------------------------------------------- Contact + join */
.contact__grid { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__form { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; }
.field__optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid #B8C3CE; border-radius: 12px; background: var(--white); color: var(--text); font: inherit; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(189, 240, 255, .9); outline-offset: 0; border-color: var(--blue); }
.field__error { margin: 6px 0 0; color: #B3261E; font-size: .9375rem; font-weight: 600; }
.field__error:empty { display: none; }
.field--trap { position: absolute; left: -9999px; }
.form-success { padding: 8px 0; }
.form-success__icon { width: 48px; height: 48px; margin-bottom: 16px; padding: 10px; border-radius: 50%; background: var(--sky); color: var(--blue-band); }
.form-success h3 { margin-bottom: 10px; font-size: 1.5rem; }
.form-success p { margin: 0; }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.contact-list .icon { margin-top: 4px; color: var(--blue); }
.contact-social, .footer__social { display: flex; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.contact-social .social-link { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pill-bg); color: var(--blue); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

.notfound__inner { max-width: 640px; text-align: center; }
.notfound__wheel { width: 110px; height: 110px; margin: 0 auto 28px; color: var(--gold); }
.notfound p { color: var(--muted); font-size: 1.0625rem; margin-top: 16px; }
.notfound__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px !important; }

/* ---------------------------------------------------------- Footer */
.footer { background: var(--navy-900); color: var(--white); font-size: .875rem; }
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__top { padding-block: 22px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.footer__toplinks { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; padding: 0; list-style: none; font-weight: 700; }
.footer__toplinks a { display: inline-flex; align-items: center; gap: 6px; }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.2fr; gap: 40px; padding-block: 40px 56px; }
.footer h2 { margin: 0 0 16px; font-size: .9375rem; font-weight: 700; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { padding: 5px 0; }
.footer__cta-title { margin-bottom: 14px; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.footer__social { margin: 0 0 20px; }
.footer__social .social-link { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--white); color: var(--navy-900); }
.footer__social .social-link .icon { width: 16px; height: 16px; }
.footer__social .social-link:hover { background: var(--sky); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .8125rem; }
.footer__base p { margin: 0; color: rgba(255, 255, 255, .85); }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- Images */
.media-fit { display: block; width: 100%; }
.media-fit img { display: block; width: 100%; height: auto; border-radius: 12px; }
.media-fit--crop { overflow: hidden; border-radius: 12px; }
.media-fit--crop img { width: 100%; height: 100%; object-fit: cover; }
.media-fit--wide img { width: auto; max-width: 100%; max-height: 80vh; margin-inline: auto; }

/* Snowboard flash messages */
.flash-message { font-family: var(--font) !important; }

/* ---------------------------------------------------------- Cookie consent banner */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; max-width: 960px; margin-inline: auto; padding: 20px 24px; border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 40px rgba(0, 0, 0, .22); }
.consent[hidden] { display: none; }
.consent__text { flex: 1 1 420px; margin: 0; font-size: .9375rem; }
.consent__actions { display: flex; gap: 10px; }
.footer__base-links { display: flex; gap: 20px; }
.footer__base-links button { padding: 0; border: 0; background: none; color: var(--white); font: inherit; cursor: pointer; }
.footer__base-links button:hover { text-decoration: underline; }

/* ---------------------------------------------------------- Page-builder blocks (Winter.Blocks) */
.blocks > .blk-wrap:last-child { margin-bottom: var(--band); }
.blk-wrap { margin-top: 40px; }
.blk-wrap:first-child { margin-top: 48px; }
.blk-wrap + .band, .band + .blk-wrap { margin-top: 0; }
.band + .blk-wrap { padding-top: 48px; }
.blk-stack > * + * { margin-top: 24px; }
.blk-section__intro { margin-bottom: 32px; }
.band--center .blk-stack { display: flex; flex-direction: column; align-items: center; }
.band--center .blk-stack .prose { margin-inline: auto; }

.blk-title { max-width: 30ch; text-wrap: balance; }
.blk-title--h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); }
.blk-title--h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); }
.blk-title--h4 { font-size: 1.25rem; }
.blk-title.is-center { margin-inline: auto; text-align: center; }
.blk-text { font-size: 1.0625rem; }
.blk-plain { max-width: 72ch; }

.blk-image { margin: 0; }
.blk-image img { width: 100%; height: auto; border-radius: var(--radius); }
.blk-image--wide { max-width: 66%; }
.blk-image--half { max-width: 50%; }
.blk-image figcaption { margin-top: 10px; color: var(--muted); font-size: .875rem; }
@media (max-width: 760px) { .blk-image--wide, .blk-image--half { max-width: 100%; } }

.blk-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.blk-cols.is-center { align-items: center; }
.blk-cols > div > * + * { margin-top: 20px; }
.blk-cols .blk-image--wide, .blk-cols .blk-image--half { max-width: 100%; }
@media (max-width: 760px) { .blk-cols { grid-template-columns: 1fr; } }

.blk-divider { margin: 8px 0; border: 0; border-top: 1px solid var(--line); }
.blk-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--navy-900); }
.blk-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blk-video video { width: 100%; border-radius: var(--radius); background: #000; }
.blk-card-text { -webkit-line-clamp: unset; line-clamp: unset; display: block; }
div.vcard:hover { box-shadow: var(--shadow); }

.blk-circles .circles { margin-top: 24px; }
.band:not(.band--blue) .circles__text { color: var(--text); }
.band:not(.band--blue) .link-arrow { color: var(--blue); }

.blk-quote { display: flex; align-items: center; gap: 32px; max-width: 900px; margin: 0; padding: 32px; border-radius: var(--radius); background: var(--light); }
.blk-quote .ring { width: 140px; height: 140px; padding: 8px; }
.blk-quote blockquote { margin: 0 0 12px; font-size: 1.25rem; line-height: 1.5; }
.blk-quote figcaption { display: flex; flex-direction: column; color: var(--muted); }
.blk-quote figcaption strong { color: var(--text); }
@media (max-width: 620px) { .blk-quote { flex-direction: column; align-items: flex-start; } }
