/* Church of Jesus Christ, Pavlodar — small, reusable visual system. */
:root {
  color-scheme: light;
  --ink: #172335;
  --navy: #19293d;
  --navy-deep: #101d30;
  --paper: #f5f3ee;
  --white: #fffefa;
  --muted: #657286;
  --line: #dedbd3;
  --gold: #c6a46d;
  --gold-pale: #f2e9d9;
  --green: #00852f;
  --content: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 24px;
  --shadow: 0 20px 60px rgb(24 37 54 / 9%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { min-width: 320px; margin: 0; background: var(--paper); line-height: 1.6; }
body.menu-is-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #d5ad6d;
  outline-offset: 4px;
}
[hidden] { display: none !important; }
.app-shell { overflow: clip; }
.container { width: min(var(--content), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Header and navigation */
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  padding-top: env(safe-area-inset-top);
  color: #fff;
  background: var(--navy);
  box-shadow: 0 8px 28px rgb(9 20 34 / 12%);
}
.header-inner { position: relative; display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); min-height: 78px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.brand-logo { width: 58px; height: 58px; flex: 0 0 auto; object-fit: contain; }
.brand-copy { display: grid; gap: 1px; line-height: 1.2; }
.brand-copy strong { font-size: 15px; letter-spacing: -.02em; }
.brand-copy > span { color: #c4cbd5; font-size: 12px; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.8vw, 25px); margin-inline: auto; }
.nav-link { color: #cbd1da; font-size: 13px; font-weight: 650; text-decoration: none; transition: color .18s ease; }
.nav-link:hover, .nav-link:focus-visible { color: #fff; }
.mobile-nav-cta { display: none; }
.header-button { flex: 0 0 auto; white-space: nowrap; }
.menu-toggle { display: none; }

/* Buttons */
.primary-button, .secondary-button, .ghost-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.primary-button { color: #fff; background: var(--navy-deep); }
.primary-button:hover { background: #263c57; transform: translateY(-1px); }
.header-button { min-height: 46px; padding-inline: 19px; color: #fff; background: #101c2c; }
.secondary-button { color: #5b4729; border-color: #e4cfa7; background: var(--gold-pale); }
.secondary-button:hover { border-color: var(--gold); background: #ead9bb; transform: translateY(-1px); }
.ghost-button { color: var(--ink); border-color: var(--line); background: transparent; }
.ghost-button:hover { border-color: #b6a27e; background: #f7f2e8; }
.action-row, .cta-group { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Main layout and hero */
.main-content { background: var(--paper); }
.page-stack { display: grid; gap: clamp(24px, 4vw, 52px); padding-block: clamp(38px, 6vw, 76px); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .96fr); align-items: center; gap: clamp(36px, 6vw, 76px); min-height: 560px; }
.hero-copy { min-width: 0; padding-block: 18px; }
.eyebrow { margin: 0 0 14px; color: #66748a; font-size: 12px; font-weight: 800; letter-spacing: .17em; line-height: 1.5; text-transform: uppercase; }
.hero-location { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.hero-location::before { width: 24px; height: 1px; margin-right: 5px; background: var(--gold); content: ""; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.045em; }
.hero h1 { max-width: 700px; margin-bottom: 22px; font-size: clamp(50px, 6.4vw, 84px); line-height: .99; }
.hero-text { max-width: 570px; margin-bottom: 28px; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; }
.hero-details { display: grid; gap: 17px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-detail { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; }
.hero-detail > span:last-child { display: grid; min-width: 0; gap: 2px; }
.hero-detail-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #e5d1ad; border-radius: 50%; color: #8a6b38; font-size: 18px; }
.hero-detail small { color: var(--muted); font-size: 12px; }
.hero-detail strong { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.hero-visual { position: relative; display: grid; min-height: 510px; align-items: center; justify-items: center; overflow: hidden; isolation: isolate; border-radius: 30px; color: #fff; background: radial-gradient(ellipse at 63% 28%, rgb(201 171 116 / 24%), transparent 29%), linear-gradient(145deg, #1d3148 0%, #142339 70%, #101c2c 100%); box-shadow: var(--shadow); }
.hero-art { position: absolute; z-index: -1; inset: 0; overflow: hidden; }
.hero-art-ring { position: absolute; display: block; width: 78%; aspect-ratio: 1; border: 1px solid rgb(224 211 185 / 19%); border-radius: 50%; }
.hero-art-ring--outer { top: -17%; right: -13%; }
.hero-art-ring--inner { right: 15%; bottom: -49%; width: 71%; }
.hero-art-window { position: absolute; right: 18%; bottom: -6%; width: 42%; height: 69%; border: 1px solid rgb(229 208 172 / 40%); border-radius: 48% 48% 0 0; background: linear-gradient(180deg, rgb(213 187 143 / 12%), transparent 75%); }
.hero-art-light { position: absolute; top: 19%; right: 27%; width: 86px; aspect-ratio: 1; border-radius: 50%; background: #c9b083; box-shadow: 0 0 55px 18px rgb(202 176 129 / 22%); }
.hero-visual-copy { display: grid; width: min(76%, 390px); justify-items: start; gap: 19px; padding-block: 50px; }
.hero-visual-copy > span { color: #e3c58d; font-size: 12px; font-weight: 850; letter-spacing: .16em; }
.hero-visual-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 4.5vw, 61px); font-weight: 500; letter-spacing: -.045em; line-height: .99; }
.hero-visual-copy small { color: #d0d6df; font-size: 14px; }
.hero-visual-copy a { display: inline-flex; align-items: center; gap: 18px; margin-top: 4px; padding-bottom: 8px; border-bottom: 1px solid #c6a46d; color: #e5c993; font-size: 13px; font-weight: 750; text-decoration: none; }

/* Editorial content sections */
.surface-card { border: 1px solid rgb(255 255 255 / 82%); border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 40px rgb(30 40 53 / 4%); }
.page-header { padding: clamp(28px, 5vw, 58px); }
.page-header > h2, .split-panel h2, .detail-header h2, .schedule-section h2, .contact-panel h2, .media-section h2, .events-section h2 { margin-bottom: 15px; font-size: clamp(36px, 4.1vw, 55px); line-height: 1.05; }
.page-header > p:not(.eyebrow) { max-width: 780px; margin-bottom: 28px; color: var(--muted); font-size: 17px; }
.first-visit-answers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-block: 30px 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.first-visit-answers article { padding: 20px 18px 20px 0; }
.first-visit-answers article + article { padding-left: 18px; border-left: 1px solid var(--line); }
.first-visit-answers h3 { margin-bottom: 7px; font-size: 15px; line-height: 1.35; }
.first-visit-answers p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.split-panel { display: grid; grid-template-columns: 1fr; padding: clamp(30px, 5vw, 60px); }
.split-panel > div { max-width: 880px; }
.split-panel > div > p:not(.eyebrow) { max-width: 690px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-block: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-facts article { display: grid; gap: 6px; padding: 18px 14px 18px 0; }
.about-facts article + article { padding-left: 18px; border-left: 1px solid var(--line); }
.about-facts span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.about-facts strong { font-size: 14px; }
.detail-header { display: grid; grid-template-columns: 1fr minmax(250px, .75fr); align-items: center; gap: 36px; padding: clamp(30px, 5vw, 58px); }
.detail-copy > p:not(.eyebrow) { max-width: 600px; color: var(--muted); font-size: 17px; }
.detail-meta { display: grid; gap: 6px; margin-block: 20px 24px; color: #45536a; font-size: 14px; }
.youth-panel { position: relative; display: grid; min-height: 300px; align-content: center; justify-items: center; overflow: hidden; border-radius: 20px; color: #fff; background: var(--navy); text-align: center; }
.youth-panel::before, .youth-panel::after { position: absolute; width: 74%; aspect-ratio: 1; border: 1px solid rgb(235 214 176 / 23%); border-radius: 50%; content: ""; }
.youth-panel::before { top: -44%; left: -13%; }
.youth-panel::after { right: -28%; bottom: -58%; }
.youth-panel-location, .youth-panel-caption { z-index: 1; color: #e3c58d; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.youth-panel-time { z-index: 1; margin-block: 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(74px, 9vw, 116px); letter-spacing: -.06em; line-height: 1; }

/* Media */
.media-section { padding: clamp(26px, 4vw, 48px); }
.media-section-heading { margin-bottom: 20px; }
.media-section-heading h2 { margin-bottom: 8px; }
.media-section-heading p:last-child { margin-bottom: 0; color: var(--muted); }
.media-demo-note { margin: 0 0 22px; padding: 12px 15px; border-left: 3px solid var(--gold); color: #5d513d; background: #f6f0e5; font-size: 13px; }
.media-photo-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; }
.media-photo-card { min-width: 0; }
.media-photo-card figure { position: relative; height: clamp(170px, 22vw, 280px); overflow: hidden; margin: 0 0 12px; border-radius: 15px; background: #e6e1d7; }
.media-photo-card:first-child figure { height: clamp(220px, 28vw, 360px); }
.media-photo-card figure img { width: 100%; height: 100%; object-fit: cover; }
.media-demo-badge { position: absolute; right: 10px; bottom: 10px; padding: 6px 9px; border-radius: 999px; color: #fff; background: rgb(16 29 48 / 86%); font-size: 11px; font-weight: 700; }
.media-photo-card h3, .media-video-card h3 { margin: 0 0 5px; font-size: 15px; }
.media-credit { display: inline-block; color: var(--muted); font-size: 12px; }
.media-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.media-video-empty { margin: 24px 0 0; padding: 18px 20px; border-left: 3px solid var(--gold); color: var(--muted); background: #f6f2ea; font-size: 14px; }
.media-video-player { position: relative; display: grid; aspect-ratio: 16 / 9; place-items: center; overflow: hidden; margin-bottom: 14px; border-radius: 15px; background: radial-gradient(ellipse at 50% 0%, #334762, var(--navy-deep) 78%); }
.media-video-load { display: inline-flex; min-height: 48px; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid rgb(255 255 255 / 35%); border-radius: 999px; color: #fff; background: rgb(255 255 255 / 9%); font-weight: 700; cursor: pointer; }
.media-video-load::before { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid #e7cd9c; content: ""; }
.media-video-load:hover { background: rgb(255 255 255 / 17%); }
.media-video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-video-card > p { margin-block: 5px 8px; color: var(--muted); font-size: 14px; }

/* Weekly gatherings */
.schedule-section { padding: clamp(28px, 5vw, 56px); border-radius: var(--radius); color: #fff; background: var(--navy); }
.section-header-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.section-header-row .eyebrow { color: #d5bd91; }
.schedule-section h2 { margin-bottom: 0; color: #fff; }
.schedule-section .section-header-row > p { max-width: 400px; margin: 0; color: #bdc6d2; font-size: 14px; }
.schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.schedule-item { position: relative; display: grid; min-height: 172px; align-content: space-between; gap: 14px; overflow: hidden; padding: 22px 24px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 17px; background: rgb(255 255 255 / 5%); transition: background-color .2s ease, transform .2s ease; }
.schedule-item::before { position: absolute; top: 20px; right: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); content: ""; }
.schedule-item:hover { background: rgb(255 255 255 / 9%); transform: translateY(-2px); }
.schedule-item span:first-child { color: #dfc18a; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.schedule-item strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(23px, 2.5vw, 31px); font-weight: 500; letter-spacing: -.03em; }
.schedule-item span:last-child { color: #c1cad4; font-size: 13px; }

/* Calendar, filters and event cards */
.events-section { gap: 22px; padding: clamp(26px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: #eeece6; }
.events-section .section-header-row { margin-bottom: 0; }
.events-section h2 { margin-bottom: 0; }
.event-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; }
.event-view-toggle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.event-filter-button { min-height: 38px; padding: 8px 14px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }
.event-filter-button.is-active { color: #fff; background: var(--navy); }
.event-category-filter { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 650; }
.event-category-filter select { min-width: 180px; min-height: 42px; padding: 8px 35px 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.calendar-panel { padding: clamp(16px, 3vw, 28px); border: 1px solid var(--line); border-radius: 18px; background: #fffefa; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.calendar-month-control { display: flex; align-items: center; gap: 12px; }
.calendar-heading h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 500; }
.calendar-month-picker { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.calendar-month-picker input { width: 40px; height: 38px; border: 0; color: transparent; background: transparent; cursor: pointer; }
.calendar-month-picker input::-webkit-calendar-picker-indicator { width: 20px; height: 20px; cursor: pointer; }
.calendar-nav { width: 42px; min-height: 42px; padding: 0; font-size: 24px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.calendar-weekday { display: grid; min-height: 35px; place-items: center; color: var(--muted); font-size: 12px; font-weight: 750; }
.calendar-day { position: relative; display: grid; width: 100%; min-height: 44px; place-items: center; border: 1px solid transparent; border-radius: 11px; color: var(--ink); background: transparent; font-size: 14px; cursor: pointer; }
.calendar-day:hover { border-color: #dac69f; background: #f6f0e5; }
.calendar-day-empty { min-height: 44px; }
.calendar-day-today:not(.is-selected) { border-color: var(--gold); font-weight: 800; }
.calendar-day-has-events::after { position: absolute; right: 5px; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: #b79052; content: ""; }
.calendar-day.is-selected { color: #fff; background: var(--navy); }
.calendar-day.is-selected::after { background: #e8cb91; }
.calendar-reset { margin-top: 14px; padding: 7px 0; border: 0; color: #596a80; background: none; font-size: 13px; text-decoration: underline; cursor: pointer; }
.event-status { margin: 0; color: #5f6b7a; font-size: 14px; }
.event-status-empty { padding: 17px 19px; border-left: 3px solid var(--gold); background: #f8f4ec; }
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.event-content { min-width: 0; padding: 22px; }
.event-content > img { width: 100%; max-height: 260px; margin-bottom: 17px; border-radius: 12px; object-fit: cover; }
.event-date { color: #8a6b38; font-size: 12px; font-weight: 750; }
.event-content h3 { margin-block: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.event-content > p { color: var(--muted); font-size: 14px; }
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.event-actions .ghost-button, .event-actions .secondary-button { min-height: 40px; padding: 9px 13px; font-size: 12px; }
.event-follow-up { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.event-follow-up p { margin: 0; color: var(--muted); font-size: 14px; }
.conference-list { display: grid; gap: 15px; }
.event-dialog { width: min(640px, calc(100% - 28px)); max-height: min(90vh, 900px); overflow: auto; padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.event-dialog::backdrop { background: rgb(10 18 28 / 62%); }
.event-dialog-close { float: right; min-height: 40px; padding: 8px 13px; }
.event-dialog-content { padding-top: 26px; }
.event-dialog-content h2 { margin-bottom: 12px; font-size: 38px; }
.event-dialog-content > img { max-height: 340px; margin-block: 20px; border-radius: 13px; }
.event-dialog-content p { color: var(--muted); }

/* Invitation and contacts */
.cta-block { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 44px); background: var(--gold-pale); }
.cta-block .eyebrow { margin-bottom: 8px; }
.cta-block h2 { max-width: 740px; margin: 0; font-size: clamp(30px, 4vw, 45px); line-height: 1.1; }
.contact-grid { display: grid; grid-template-columns: 1fr .92fr; gap: 18px; }
.contact-panel { padding: clamp(25px, 4vw, 42px); }
.contact-panel h2 { margin-bottom: 7px; }
.contact-panel > div:first-child > p:last-child { margin-bottom: 0; color: var(--muted); }
.contact-list { display: grid; gap: 12px; margin: 24px 0; padding: 18px 0; border-block: 1px solid var(--line); list-style: none; }
.contact-list li { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 12px; font-size: 14px; }
.contact-list strong { color: #5f6c7e; }
.contact-list span { overflow-wrap: anywhere; }
.map-panel { min-height: 360px; overflow: hidden; background: #e9e5dc; }
.map-placeholder { position: relative; display: grid; min-height: 100%; align-content: center; justify-items: start; overflow: hidden; padding: clamp(26px, 4vw, 42px); isolation: isolate; }
.map-placeholder::before, .map-placeholder::after { position: absolute; z-index: -1; width: 145%; height: 1px; background: rgb(123 132 133 / 24%); content: ""; transform: rotate(-28deg); }
.map-placeholder::before { top: 35%; left: -15%; }
.map-placeholder::after { top: 68%; left: -17%; transform: rotate(26deg); }
.map-eyebrow { color: #8a6b38; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.map-placeholder strong { margin-top: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 42px; font-weight: 500; }
.map-placeholder p { max-width: 290px; color: #536175; font-size: 14px; }
.map-pin { position: absolute; top: 27%; right: 22%; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #bfa36f; border-radius: 50% 50% 50% 0; color: #7a5d2d; background: #f8f1e2; font-size: 21px; transform: rotate(-45deg); }

/* Footer */
.site-footer { padding: 42px 0 calc(34px + env(safe-area-inset-bottom)); color: #dce1e7; background: var(--navy-deep); }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr; gap: 30px; align-items: start; }
.footer-church { display: grid; gap: 12px; color: #aeb8c5; font-size: 12px; }
.footer-church-name { color: #fff; font-size: 16px; font-weight: 750; text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 17px; }
.footer-link { color: #cbd2dc; font-size: 13px; text-decoration: none; }
.footer-link:hover, .footer-social-link:hover { color: #fff; }
.footer-social-heading { margin-bottom: 11px; color: #fff; font-size: 13px; }
.footer-social-links { display: grid; gap: 9px; }
.footer-social-link { display: inline-flex; align-items: center; gap: 8px; color: #cbd2dc; font-size: 13px; text-decoration: none; }
.footer-social-link svg { width: 18px; height: 18px; flex: 0 0 auto; }
.footer-contact { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 14%); color: #aeb8c5; font-size: 12px; }

@media (max-width: 1120px) {
  .header-inner { gap: 15px; }
  .main-nav { gap: 12px; }
  .nav-link { font-size: 12px; }
  .brand-copy strong { font-size: 13px; }
  .header-button { padding-inline: 14px; font-size: 12px; }
}

@media (max-width: 980px) {
  :root { --gutter: clamp(18px, 4vw, 34px); }
  .header-inner { min-height: 72px; }
  .brand-logo { width: 52px; height: 52px; }
  .main-nav { display: none; }
  .main-nav.nav-open { position: absolute; top: 100%; right: calc(var(--gutter) * -1); left: calc(var(--gutter) * -1); display: grid; justify-content: stretch; gap: 0; max-height: calc(100dvh - 72px); overflow-y: auto; padding: 9px var(--gutter) calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid rgb(255 255 255 / 12%); background: var(--navy); box-shadow: 0 18px 30px rgb(9 20 34 / 18%); }
  .nav-link { display: flex; min-height: 48px; align-items: center; border-bottom: 1px solid rgb(255 255 255 / 10%); color: #e1e5ea; font-size: 15px; }
  .mobile-nav-cta { display: inline-flex; margin-top: 14px; }
  .menu-toggle { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-content: center; gap: 5px; margin-left: auto; border: 1px solid rgb(255 255 255 / 24%); border-radius: 50%; background: transparent; cursor: pointer; }
  .menu-toggle span { display: block; width: 17px; height: 2px; border-radius: 2px; background: #fff; transition: transform .18s ease, opacity .18s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .header-button { display: none; }
  .hero { grid-template-columns: 1fr 1fr; gap: 30px; min-height: 0; }
  .hero h1 { font-size: clamp(48px, 7vw, 72px); }
  .hero-visual { min-height: 440px; }
  .first-visit-answers { grid-template-columns: repeat(3, 1fr); }
  .first-visit-answers article:nth-child(4) { padding-left: 0; border-left: 0; }
  .first-visit-answers article:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 78px; }
  .page-stack { gap: 24px; padding-block: 28px 42px; }
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { padding-block: 8px 0; }
  .hero h1 { max-width: 640px; margin-bottom: 16px; font-size: clamp(46px, 11vw, 70px); }
  .hero-text { margin-bottom: 22px; font-size: 17px; }
  .hero-details { margin-top: 24px; padding-top: 17px; }
  .hero-detail strong { font-size: 13px; }
  .hero-visual { min-height: 350px; border-radius: 22px; }
  .hero-visual-copy { width: min(78%, 390px); gap: 14px; padding-block: 40px; }
  .hero-visual-copy strong { font-size: clamp(40px, 10vw, 55px); }
  .hero-art-light { width: 66px; }
  .page-header, .split-panel, .detail-header, .schedule-section, .media-section { padding: 25px 21px; border-radius: 20px; }
  .page-header > h2, .split-panel h2, .detail-header h2, .schedule-section h2, .contact-panel h2, .media-section h2, .events-section h2 { font-size: clamp(34px, 9vw, 48px); }
  .page-header > p:not(.eyebrow) { font-size: 16px; }
  .first-visit-answers { grid-template-columns: 1fr 1fr; }
  .first-visit-answers article { padding: 15px 12px 15px 0; }
  .first-visit-answers article + article { padding-left: 12px; }
  .first-visit-answers article:nth-child(odd) { padding-left: 0; border-left: 0; }
  .first-visit-answers article:nth-child(even) { border-left: 1px solid var(--line); }
  .first-visit-answers article:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .first-visit-answers h3 { font-size: 14px; }
  .first-visit-answers p { font-size: 13px; }
  .about-facts { grid-template-columns: 1fr; }
  .about-facts article { padding: 13px 0; }
  .about-facts article + article { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .detail-header { grid-template-columns: 1fr; gap: 22px; }
  .youth-panel { min-height: 250px; }
  .section-header-row { display: grid; align-items: start; gap: 8px; }
  .schedule-section .section-header-row > p { max-width: none; }
  .schedule-grid, .event-grid, .media-video-grid { grid-template-columns: 1fr; }
  .schedule-item { min-height: 150px; padding: 20px; }
  .media-photo-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .media-photo-card:first-child { grid-column: 1 / -1; }
  .media-photo-card:first-child figure, .media-photo-card figure { height: auto; aspect-ratio: 1.25; }
  .media-photo-card:first-child figure { aspect-ratio: 1.65; }
  .events-section { gap: 17px; padding: 21px 16px; border-radius: 20px; }
  .event-controls { align-items: stretch; }
  .event-category-filter { flex: 1 1 100%; }
  .event-category-filter select { width: 100%; }
  .calendar-panel { padding: 14px 10px; border-radius: 14px; }
  .calendar-heading { gap: 7px; margin-bottom: 12px; }
  .calendar-month-control { gap: 4px; }
  .calendar-heading h3 { font-size: 20px; }
  .calendar-month-picker { gap: 0; font-size: 0; }
  .calendar-month-picker input { width: 35px; padding: 0; }
  .calendar-grid { gap: 2px; }
  .calendar-weekday { min-height: 31px; font-size: 11px; }
  .calendar-day, .calendar-day-empty { min-height: 39px; border-radius: 8px; font-size: 13px; }
  .calendar-day-has-events::after { right: 3px; bottom: 3px; width: 4px; height: 4px; }
  .event-follow-up { align-items: start; }
  .cta-block { align-items: start; flex-direction: column; padding: 25px 21px; }
  .cta-block h2 { font-size: clamp(29px, 8vw, 40px); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-panel { padding: 24px 20px; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .map-panel { min-height: 300px; }
  .map-placeholder { min-height: 300px; padding: 25px 22px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .footer-social { grid-column: 1 / -1; }
}

@media (max-width: 390px) {
  :root { --gutter: 17px; }
  .header-inner { gap: 9px; min-height: 68px; }
  .brand { gap: 8px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-copy strong { max-width: 160px; font-size: 12px; }
  .brand-copy > span { font-size: 11px; }
  .menu-toggle { width: 42px; height: 42px; }
  .hero h1 { font-size: 45px; }
  .cta-group { align-items: stretch; }
  .cta-group a { flex: 1 1 145px; }
  .hero-visual { min-height: 310px; }
  .hero-visual-copy { width: 82%; }
  .first-visit-answers { grid-template-columns: 1fr; }
  .first-visit-answers article, .first-visit-answers article + article,
  .first-visit-answers article:nth-child(odd), .first-visit-answers article:nth-child(even) { padding: 13px 0; border-left: 0; }
  .first-visit-answers article + article { border-top: 1px solid var(--line); }
  .calendar-grid { gap: 1px; }
  .calendar-day, .calendar-day-empty { min-height: 36px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-social { grid-column: auto; }
  .footer-contact { grid-column: auto; }
}

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

/* Youth photo */
.youth-panel { position: relative; display: block; min-height: 0; aspect-ratio: 3 / 4; max-height: 520px; overflow: hidden; margin: 0; border-radius: 20px; isolation: isolate; background: #101827; text-align: left; }
.youth-panel::before { position: absolute; z-index: 1; inset: 35% 0 0; background: linear-gradient(0deg, rgb(8 16 28 / 88%), transparent); content: ''; }
.youth-panel img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; object-position: center 44%; transition: transform .45s ease; }
.youth-panel:hover img { transform: scale(1.025); }
.youth-panel figcaption { position: absolute; z-index: 2; right: 22px; bottom: 22px; left: 22px; display: grid; gap: 6px; color: #fff; }
.youth-panel figcaption span { color: #e3c58d; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.youth-panel figcaption strong { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(24px, 3vw, 34px); font-weight: 400; line-height: 1.1; }
@media (max-width: 760px) { .youth-panel { aspect-ratio: 3 / 4; max-height: 520px; border-radius: 16px; } .youth-panel img { min-height: 260px; } .youth-panel figcaption { right: 17px; bottom: 17px; left: 17px; } }
@media (prefers-reduced-motion: reduce) { .youth-panel img { transition: none; } }


.youth-panel::before { width: auto; aspect-ratio: auto; border: 0; border-radius: 0; }
.youth-panel::after { display: none; }
