:root {
    --navy: #243f58;
    --navy-deep: #142b3f;
    --blue: #5a9dc3;
    --blue-soft: #dbeef7;
    --green: #0e6137;
    --green-bright: #198451;
    --green-soft: #e0f1e7;
    --yellow: #f0d616;
    --yellow-soft: #fff8c7;
    --orange: #df7b2d;
    --red: #c85555;
    --purple: #7965a7;
    --ink: #17212a;
    --muted: #62717c;
    --line: #dce3e7;
    --surface: #ffffff;
    --off-white: #f5f7f5;
    --shadow: 0 18px 50px rgba(20, 43, 63, .12);
    --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--off-white);
    color: var(--ink);
    font-family: "Segoe UI", "Aptos", system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.05; }
h1, h2 {
    font-family: "Arial Narrow", "Aptos Display", "Segoe UI", sans-serif;
    font-weight: 800;
    letter-spacing: -.045em;
}
h2 { font-size: clamp(2.1rem, 4.2vw, 4rem); }
h3 { font-size: 1.25rem; }

.content-shell { width: var(--shell); margin-inline: auto; }
.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    background: white;
    color: var(--navy-deep);
    transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(36, 63, 88, .1);
    backdrop-filter: blur(16px);
}
.nav-shell {
    width: var(--shell);
    min-height: 78px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--navy-deep);
    text-decoration: none;
}
.brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 50%;
}
.brand span { display: grid; line-height: 1.1; }
.brand strong { font-size: .93rem; text-transform: uppercase; letter-spacing: .02em; }
.brand small { color: var(--green); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a {
    position: relative;
    color: #3d4b56;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
}
.main-nav > a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 3px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.main-nav > a:hover::after, .main-nav > a.active::after { transform: scaleX(1); }
.main-nav > a.active { color: var(--green); }
.language-toggle {
    border: 0;
    border-left: 1px solid var(--line);
    padding: 5px 0 5px 20px;
    background: none;
    color: var(--navy-deep);
    cursor: pointer;
    display: grid;
    text-align: left;
    line-height: 1;
}
.language-toggle span { font-weight: 900; }
.language-toggle small { margin-top: 4px; color: var(--muted); font-size: .67rem; }
.menu-toggle { display: none; }

.button {
    min-height: 50px;
    padding: 13px 20px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: white; box-shadow: 0 10px 24px rgba(14, 97, 55, .22); }
.button-primary:hover { background: #0a4d2c; }
.button-ghost { border-color: rgba(255,255,255,.6); color: white; background: rgba(15, 31, 45, .2); }
.button-outline { border-color: var(--navy); background: transparent; color: var(--navy); }
.button-light { background: white; color: var(--green); }
.text-link { color: var(--green); font-weight: 850; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.text-link.light { color: white; }

.eyebrow {
    display: block;
    margin-bottom: 18px;
    color: var(--green);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.eyebrow.light { color: var(--yellow); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-heading-row h2 { margin-bottom: 0; }
.section-heading { max-width: 760px; margin: 0 auto 60px; }
.section-heading.centered { text-align: center; }
.section-heading p { color: var(--muted); font-size: 1.08rem; }

.hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
}
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.hero-overlay { background: rgba(15, 37, 53, .72); }
.hero-content { position: relative; z-index: 2; padding: 96px 0 120px; }
.hero h1 { max-width: 850px; margin-bottom: 26px; font-size: clamp(4rem, 8.5vw, 7.6rem); text-transform: uppercase; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero-content > p { max-width: 640px; margin-bottom: 36px; color: rgba(255,255,255,.9); font-size: 1.18rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stat {
    position: absolute;
    z-index: 3;
    right: max(20px, calc((100vw - 1180px) / 2));
    bottom: 0;
    width: 195px;
    min-height: 138px;
    padding: 24px;
    background: var(--yellow);
    color: var(--navy-deep);
    display: grid;
    align-content: center;
}
.hero-stat strong { font-size: 2.8rem; line-height: 1; }
.hero-stat span { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.intro-section { padding: 110px 0; display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; align-items: start; }
.intro-section h2 { margin-bottom: 0; }
.intro-copy { padding-top: 38px; }
.intro-copy p { color: var(--muted); font-size: 1.12rem; }
.intro-copy .text-link { display: inline-block; margin-top: 12px; }

.feature-strip { background: var(--navy-deep); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.feature-card { position: relative; min-height: 350px; padding: 50px 42px; overflow: hidden; color: white; }
.feature-blue { background: var(--blue); }
.feature-green { background: var(--green); }
.feature-yellow { background: var(--yellow); color: var(--navy-deep); }
.feature-number { position: absolute; top: 24px; right: 26px; font-weight: 900; opacity: .55; }
.feature-icon { font-size: 4rem; line-height: 1; margin-bottom: 56px; }
.feature-card h3 { font-size: 2rem; margin-bottom: 14px; }
.feature-card p { margin-bottom: 0; opacity: .9; }

.schedule-preview { padding: 110px 0 120px; }
.event-preview-grid { margin-top: 52px; border-top: 1px solid var(--line); }
.event-preview-card { display: grid; grid-template-columns: 110px 1fr; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.date-block { border-right: 1px solid var(--line); display: grid; align-content: center; }
.date-block strong { color: var(--navy); font-size: 3rem; line-height: .9; }
.date-block span { color: var(--green); font-size: .78rem; font-weight: 900; letter-spacing: .14em; }
.event-preview-content h3 { max-width: 760px; margin: 11px 0 12px; font-size: 1.6rem; line-height: 1.2; }
.event-preview-content p { margin: 0; color: var(--muted); }
.dot { margin-inline: 8px; }
.category-tag {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-blue { background: var(--blue-soft); color: #1f648b; }
.tag-yellow { background: var(--yellow-soft); color: #6d5d00; }
.tag-red { background: #f8e0e0; color: #a13232; }
.tag-purple { background: #ece7f6; color: #5e498e; }
.tag-orange { background: #fae8d8; color: #9a4a0e; }
.loading-card, .empty-state { padding: 40px; border: 1px solid var(--line); background: white; color: var(--muted); text-align: center; }

.membership-callout { background: var(--green); color: white; }
.membership-inner { display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; min-height: 520px; }
.membership-photo { margin-left: calc((1180px - 100vw) / 2); min-width: 50vw; }
.membership-photo img { width: 100%; height: 100%; object-fit: cover; }
.membership-copy { padding: 90px 0 90px 80px; align-self: center; }
.membership-copy h2 { max-width: 650px; }
.membership-copy p { max-width: 610px; color: rgba(255,255,255,.85); }
.membership-copy .button { margin-top: 18px; }

.page-hero { position: relative; overflow: hidden; padding: 120px 0 90px; color: white; background: var(--navy-deep); }
.page-hero::after {
    content: "";
    position: absolute;
    right: 7vw;
    top: -95px;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    border: 48px dotted rgba(240, 214, 22, .8);
    opacity: .32;
}
.page-hero-calendar { background: var(--green); }
.page-hero-club { background: var(--blue); }
.page-hero-levels { background: var(--navy); }
.page-hero-docs { background: #44657e; }
.page-hero-contact { background: var(--green); }
.page-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 80px; }
.page-hero h1 { margin-bottom: 0; font-size: clamp(3.6rem, 7vw, 6.6rem); text-transform: uppercase; }
.page-hero p { margin-bottom: 7px; color: rgba(255,255,255,.88); font-size: 1.13rem; }

.calendar-section { padding: 70px 0 110px; }
.calendar-toolbar { margin-bottom: 32px; }
.month-nav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; max-width: 500px; margin: 0 auto 34px; }
.month-nav h2 { margin: 0; font-size: 2.4rem; text-align: center; text-transform: capitalize; }
.month-nav button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: white;
    color: var(--navy);
    cursor: pointer;
}
.month-nav button:disabled { opacity: .32; cursor: default; }
.calendar-filters { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end; padding: 22px; background: white; border: 1px solid var(--line); }
.calendar-filters label { display: grid; gap: 7px; color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.calendar-filters select, .calendar-filters input { height: 48px; border: 1px solid var(--line); background: var(--off-white); color: var(--ink); padding: 0 13px; outline: none; text-transform: none; letter-spacing: normal; }
.calendar-filters select:focus, .calendar-filters input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(90, 157, 195, .16); }
.view-toggle { height: 48px; display: flex; border: 1px solid var(--line); }
.view-toggle button { border: 0; padding: 0 14px; background: white; color: var(--muted); cursor: pointer; }
.view-toggle button.active { background: var(--navy); color: white; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
.month-grid { min-width: 700px; display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: white; }
.weekday { padding: 13px 8px; background: var(--navy); color: white; border-right: 1px solid rgba(255,255,255,.12); font-size: .73rem; font-weight: 900; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.day-cell { min-height: 122px; padding: 9px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; color: var(--ink); display: flex; flex-direction: column; align-items: stretch; text-align: left; cursor: pointer; }
.day-cell:hover { background: #f7fbfd; }
.day-cell.is-selected { box-shadow: inset 0 0 0 3px var(--blue); }
.day-cell.is-blank { background: #f0f3f2; cursor: default; }
.day-number { font-weight: 900; color: var(--navy); }
.day-events { margin-top: 8px; display: grid; gap: 5px; }
.event-chip { overflow: hidden; padding: 4px 6px; border-left: 3px solid currentColor; border-radius: 0; font-size: .62rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.more-chip { color: var(--muted); font-size: .68rem; font-weight: 800; }
.day-panel { position: sticky; top: 104px; min-height: 360px; padding: 28px; background: var(--navy-deep); color: white; box-shadow: var(--shadow); }
.day-panel > h2 { margin-bottom: 24px; font-size: 2rem; text-transform: capitalize; }
.day-panel-event { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.16); }
.day-panel-event h3 { margin: 11px 0; line-height: 1.25; }
.day-panel-event p { margin: 5px 0 0; color: rgba(255,255,255,.72); font-size: .9rem; }
.day-panel-empty { color: rgba(255,255,255,.7); }
.agenda-list { border-top: 1px solid var(--line); }
.agenda-day { display: grid; grid-template-columns: 145px 1fr; gap: 34px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.agenda-day-heading { display: grid; align-content: start; border-right: 1px solid var(--line); }
.agenda-day-heading strong { color: var(--navy); font-size: 3rem; line-height: 1; }
.agenda-day-heading span { margin-top: 7px; color: var(--muted); text-transform: capitalize; }
.agenda-day-events { display: grid; gap: 16px; }
.agenda-item { display: grid; grid-template-columns: 1fr 210px; gap: 24px; padding: 20px 24px; background: white; border-left: 4px solid var(--green); box-shadow: 0 8px 24px rgba(20,43,63,.07); }
.agenda-item h3 { margin: 10px 0 0; line-height: 1.25; }
.agenda-item > p { margin: 0; display: grid; align-content: center; color: var(--muted); font-size: .9rem; }
.agenda-item > p strong { color: var(--navy); }
.calendar-source-note, .document-note { margin-top: 30px; padding: 18px 22px; display: flex; gap: 16px; border-left: 4px solid var(--blue); background: var(--blue-soft); color: #36566d; }
.calendar-source-note > span, .document-note > span { font-size: 1.4rem; font-weight: 900; }
.calendar-source-note p, .document-note p { margin: 0; }

.story-section { padding: 110px 0; display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.story-image { position: relative; }
.story-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story-image > span { position: absolute; right: -20px; bottom: 30px; padding: 17px 22px; background: var(--yellow); color: var(--navy-deep); font-weight: 950; letter-spacing: .15em; }
.story-copy > p { color: var(--muted); font-size: 1.07rem; }
.story-facts { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story-facts div { display: grid; }
.story-facts strong { color: var(--green); font-size: 2.2rem; line-height: 1; }
.story-facts span { margin-top: 7px; color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.values-section { padding: 100px 0; background: white; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.values-grid article { min-height: 280px; padding: 34px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values-grid article > span { color: var(--blue); font-size: .8rem; font-weight: 900; letter-spacing: .1em; }
.values-grid h3 { margin-top: 70px; font-size: 1.55rem; }
.values-grid p { color: var(--muted); }
.committee-section { padding: 110px 0; }
.committee-heading > p { max-width: 430px; color: var(--muted); }
.committee-grid { margin-top: 50px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.member-card { min-height: 130px; padding: 24px; display: flex; align-items: center; gap: 22px; border: 1px solid var(--line); background: white; }
.member-card:last-child { grid-column: span 2; }
.member-card.member-featured { border-color: var(--blue); }
.member-initials { flex: 0 0 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 1.15rem; font-weight: 900; }
.member-initials.muted { background: #e8edee; color: #7d888f; }
.member-card span { color: var(--green); font-size: .72rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.member-card h3 { margin: 6px 0 0; }
.gallery-section { padding: 100px 0; background: var(--navy-deep); color: white; }
.gallery-grid { margin-top: 45px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 250px 250px; gap: 14px; }
.gallery-grid figure { margin: 0; overflow: hidden; }
.gallery-grid figure.gallery-wide { grid-column: span 2; grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-grid figure:hover img { transform: scale(1.025); }
.photo-credit { margin: 14px 0 0; color: rgba(255,255,255,.55); font-size: .78rem; }

.levels-overview { padding: 110px 0; }
.level-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.level-card { min-height: 220px; padding: 26px; color: white; display: flex; flex-direction: column; }
.level-card span { font-size: .72rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.level-card strong { margin: auto 0 12px; font-size: 3.2rem; line-height: 1; }
.level-card small { opacity: .85; }
.level-green { background: var(--green); }
.level-yellow { background: #c9ae00; }
.level-orange { background: var(--orange); }
.level-red { background: var(--red); }
.level-navy { background: var(--navy); }
.rating-process { padding: 110px 0; background: var(--navy-deep); color: white; }
.process-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.process-heading { position: sticky; top: 110px; align-self: start; }
.process-heading p { color: rgba(255,255,255,.7); }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { padding: 27px 0; display: grid; grid-template-columns: 72px 1fr; gap: 20px; border-top: 1px solid rgba(255,255,255,.15); }
.process-list li > span { color: var(--yellow); font-size: 1.45rem; font-weight: 900; }
.process-list h3 { margin-bottom: 8px; font-size: 1.45rem; }
.process-list p { margin: 0; color: rgba(255,255,255,.65); }
.download-callout { padding: 90px 0; display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; }
.download-callout h2 { max-width: 700px; }
.download-callout p { color: var(--muted); }
.download-actions { display: grid; gap: 12px; }

.documents-section { padding: 100px 0 110px; }
.document-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.document-card { min-height: 300px; padding: 32px; display: grid; grid-template-columns: 78px 1fr; gap: 25px; border: 1px solid var(--line); background: white; }
.document-card.document-featured { grid-column: span 2; background: var(--navy-deep); color: white; }
.document-icon { width: 70px; height: 86px; padding-top: 10px; border: 2px solid var(--blue); color: var(--blue); display: grid; place-items: center; font-size: .7rem; font-weight: 900; letter-spacing: .06em; }
.document-card span { color: var(--green); font-size: .72rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.document-card.document-featured span { color: var(--yellow); }
.document-card h2 { margin: 8px 0 16px; font-size: 2rem; }
.document-card p { color: var(--muted); }
.document-card.document-featured p { color: rgba(255,255,255,.7); }
.document-card a { display: inline-flex; gap: 8px; color: var(--green); font-weight: 850; text-decoration: none; border-bottom: 1px solid currentColor; }
.document-card.document-featured a { color: var(--yellow); }

.contact-section { padding: 110px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.contact-primary h2 { font-size: clamp(2rem, 4vw, 3.7rem); word-break: break-word; }
.contact-primary > p { color: var(--muted); }
.facebook-contact { margin-top: 45px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center; text-decoration: none; }
.facebook-contact > strong { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #1877f2; color: white; font-size: 1.6rem; }
.facebook-contact span { display: grid; }
.facebook-contact small { color: var(--muted); }
.contact-details { display: grid; gap: 16px; }
.contact-details article { padding: 28px; display: grid; grid-template-columns: 45px 1fr; gap: 18px; border: 1px solid var(--line); background: white; }
.contact-symbol { color: var(--green); font-size: 1.7rem; }
.contact-details h3 { margin-bottom: 10px; }
.contact-details p { margin-bottom: 6px; color: var(--muted); }
.contact-details a { color: var(--green); font-weight: 800; }
.membership-details { padding: 100px 0; background: var(--green); color: white; }
.membership-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.25); border-left: 1px solid rgba(255,255,255,.25); }
.membership-facts article { min-height: 250px; padding: 30px; border-right: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.membership-facts strong { color: var(--yellow); font-size: 2.8rem; }
.membership-facts h3 { margin: 50px 0 10px; }
.membership-facts p { margin: 0; color: rgba(255,255,255,.72); }

.not-found { min-height: 65vh; padding: 120px 0; text-align: center; }
.not-found > span { color: var(--yellow); font-size: 7rem; font-weight: 950; text-shadow: 5px 5px 0 var(--navy); }
.not-found h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.not-found p { color: var(--muted); }

.site-footer { padding: 70px 0 24px; background: #0c1e2c; color: white; }
.footer-grid { width: var(--shell); margin-inline: auto; display: grid; grid-template-columns: 1.7fr .65fr .65fr; gap: 60px; }
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-brand img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.footer-brand strong { font-size: 1.15rem; }
.footer-brand p { margin: 7px 0 0; color: rgba(255,255,255,.58); }
.site-footer h2 { margin-bottom: 18px; font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; }
.site-footer a { margin-bottom: 9px; display: block; color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom { width: var(--shell); margin: 50px auto 0; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); font-size: .78rem; }

#blazor-error-ui { display: none; position: fixed; z-index: 1000; right: 0; bottom: 0; left: 0; padding: .8rem 1.25rem; background: #fff3cd; color: #6b5700; box-shadow: 0 -1px 3px rgba(0,0,0,.2); }

@media (max-width: 1080px) {
    .main-nav { gap: 17px; }
    .main-nav > a { font-size: .85rem; }
    .calendar-layout { grid-template-columns: 1fr; overflow-x: auto; }
    .day-panel { position: static; min-width: 700px; }
    .membership-photo { margin-left: -20px; }
}

@media (max-width: 900px) {
    :root { --shell: min(100% - 32px, 720px); }
    .nav-shell { min-height: 70px; }
    .menu-toggle { width: 44px; height: 44px; border: 0; background: none; display: grid; align-content: center; gap: 5px; cursor: pointer; }
    .menu-toggle span { width: 26px; height: 2px; margin-left: auto; background: var(--navy); }
    .main-nav { position: absolute; top: 70px; right: 0; left: 0; padding: 24px 20px 30px; background: white; border-top: 1px solid var(--line); box-shadow: var(--shadow); display: none; align-items: stretch; }
    .main-nav.is-open { display: grid; gap: 0; }
    .main-nav > a { padding: 13px 0; border-bottom: 1px solid var(--line); }
    .main-nav > a::after { display: none; }
    .language-toggle { margin-top: 15px; border-left: 0; padding-left: 0; }
    .hero { min-height: 680px; }
    .hero-stat { right: 0; }
    .intro-section, .page-hero-inner, .story-section, .process-layout, .contact-section { grid-template-columns: 1fr; gap: 45px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: 260px; }
    .feature-icon { margin-bottom: 34px; }
    .membership-inner { width: 100%; grid-template-columns: 1fr; }
    .membership-photo { margin-left: 0; min-width: 0; height: 400px; }
    .membership-copy { width: var(--shell); margin-inline: auto; padding: 70px 0; }
    .page-hero { padding: 100px 0 72px; }
    .page-hero-inner { gap: 26px; }
    .page-hero::after { width: 200px; height: 200px; }
    .calendar-filters { grid-template-columns: 1fr 1fr; }
    .view-toggle { grid-column: span 2; }
    .view-toggle button { flex: 1; }
    .values-grid, .level-track, .membership-facts { grid-template-columns: repeat(2, 1fr); }
    .committee-heading { align-items: start; flex-direction: column; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 340px 220px; }
    .gallery-grid figure.gallery-wide { grid-column: span 2; grid-row: auto; }
    .gallery-grid figure:last-child { display: none; }
    .process-heading { position: static; }
    .download-callout { grid-template-columns: 1fr; }
    .download-actions { grid-template-columns: 1fr 1fr; }
    .document-grid { grid-template-columns: 1fr; }
    .document-card.document-featured { grid-column: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 620px) {
    :root { --shell: calc(100% - 28px); }
    body { font-size: 15px; }
    .brand img { width: 48px; height: 48px; }
    .brand strong { font-size: .78rem; }
    .brand small { font-size: .65rem; }
    .hero { min-height: 650px; align-items: flex-end; }
    .hero-content { padding: 90px 0 145px; }
    .hero h1 { font-size: clamp(3.1rem, 16vw, 5rem); }
    .hero-stat { width: 160px; min-height: 112px; }
    .hero-stat strong { font-size: 2rem; }
    .intro-section, .schedule-preview, .story-section, .committee-section, .levels-overview, .documents-section, .contact-section { padding: 75px 0; }
    .section-heading-row { align-items: start; flex-direction: column; gap: 24px; }
    .feature-card { padding: 40px 28px; }
    .event-preview-card { grid-template-columns: 72px 1fr; gap: 18px; }
    .date-block strong { font-size: 2.3rem; }
    .event-preview-content h3 { font-size: 1.25rem; }
    .calendar-filters { grid-template-columns: 1fr; }
    .view-toggle { grid-column: auto; }
    .month-nav h2 { font-size: 1.9rem; }
    .agenda-day { grid-template-columns: 70px 1fr; gap: 16px; }
    .agenda-day-heading strong { font-size: 2.3rem; }
    .agenda-item { grid-template-columns: 1fr; }
    .values-grid, .level-track, .membership-facts { grid-template-columns: 1fr; }
    .committee-grid { grid-template-columns: 1fr; }
    .member-card:last-child { grid-column: auto; }
    .gallery-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: 280px 220px; }
    .gallery-grid figure.gallery-wide { grid-column: auto; }
    .gallery-grid figure:nth-child(n+3) { display: none; }
    .story-facts { grid-template-columns: 1fr 1fr; }
    .process-list li { grid-template-columns: 54px 1fr; }
    .download-actions { grid-template-columns: 1fr; }
    .document-card { grid-template-columns: 1fr; }
    .document-icon { width: 58px; height: 70px; }
    .contact-primary h2 { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

@media print {
    .site-header, .site-footer, .calendar-filters, .month-nav button { display: none !important; }
    body { background: white; }
    .content-shell { width: 100%; }
    .page-hero { padding: 25px 0; background: white !important; color: black; }
    .page-hero p { color: #444; }
    .calendar-layout { grid-template-columns: 1fr; }
    .day-panel { display: none; }
    .month-grid { min-width: 0; }
}
