/* Selected additions, using the original site's typography, palette and galleries. */
.class-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.class-tabs [role="tab"] { position: relative; border: 0; background: transparent; padding: 15px 0; color: var(--muted); min-height: 50px; }
.class-tabs [role="tab"] span { margin-left: 13px; font-size: 10px; }
.class-tabs [aria-selected="true"] { color: var(--ink); }
.class-tabs [role="tab"]::after { content: ''; position: absolute; height: 2px; bottom: -1px; left: 0; right: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.class-tabs [aria-selected="true"]::after { transform: scaleX(1); }
.class-tabs[data-rotating="true"] [aria-selected="true"]::after { animation: class-progress 4.5s linear; }
.class-rotation { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-bottom: 32px; font-size: 12px; color: var(--muted); }
.class-rotation button { border: 1px solid #83959b; border-radius: 999px; background: transparent; padding: 9px 16px; min-height: 44px; font-size: 12px; }
.class-panel:not([hidden]) { animation: class-reveal .5s var(--ease); }
.class-panel .study-row { margin-bottom: 55px; }
.study-benefits { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 25px 0; }
.study-benefits li { font-size: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--ink); }
.small-groups { grid-template-columns: 1.05fr 1fr; gap: 80px; padding-block: 45px; }
.small-groups .pg-gallery { min-width: 0; }
.small-groups .pg-copy { min-width: 0; }
.small-groups .pg-emblem { display: block; margin-bottom: 15px; }
.small-groups h3 { font-size: clamp(30px, 3vw, 48px); line-height: 1.25; }
.small-groups .pg-action { margin-top: 24px; justify-self: start; }
/* Keep the montage independent from the old positional image rules. */
.sabbath-pictures { padding: 0; display: flex; flex-direction: column; gap: 16px; }
.sabbath-pictures .culto-film { width: 100%; background: var(--paper); color: var(--ink); }
.culto-film .gallery-viewport { aspect-ratio: auto; }
.culto-film .gallery-slide { position: relative; inset: auto; }
.culto-film .gallery-slide:not([hidden]) { display: flex; flex-direction: column; }
.culto-film .gallery-slide::before { inset: 0; pointer-events: none; }
.culto-film .gallery-slide video,
.sabbath-pictures .culto-film .gallery-slide img {
  position: relative; inset: auto; display: block; flex: none;
  width: calc(100% - 32px); height: auto; margin: 16px;
  aspect-ratio: 4 / 3; object-fit: contain; background: transparent; border: 0;
  z-index: 1;
}
.culto-film .gallery-slide figcaption {
  position: relative; inset: auto; flex: none; z-index: 1;
  min-height: 68px; background: var(--paper); pointer-events: none;
}
.schedule article { transition: background .35s var(--ease); }
.schedule article > div { transition: transform .35s var(--ease); }
.schedule article > a .icon { transition: transform .35s var(--ease); }
@media (hover: hover) {
  .schedule article:hover { background: #ffffff04; }
  .schedule article:hover > div { transform: translateX(4px); }
  .schedule article:hover > a .icon { transform: translate(2px, -2px); }
}
.projects { background: var(--navy); color: var(--paper); }
.projects .section-heading { border-color: #334352; }
.projects .section-note, .projects .eyebrow { color: #a8b5be; }
.projects-heading { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: end; margin-bottom: 45px; }
.projects-heading h2 em { color: var(--gold); }
.projects-heading p { font-size: 16px; line-height: 1.85; color: #a8b5be; max-width: 390px; }
.project-track { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 20px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #80949d #1a3042; }
.project-card { flex: 0 0 31%; min-width: 265px; border: 1px solid #334b5a; border-radius: 12px; overflow: hidden; background: #ffffff03; }
.project-caption { padding: 20px 22px; }
.project-caption strong { display: block; font: 400 22px/1.35 var(--serif); letter-spacing: -.025em; }
.project-caption small { display: block; font-size: 11px; color: #a8b5be; margin-top: 8px; }
.project-image { aspect-ratio: 1.12; padding: 25px; background: linear-gradient(135deg,#243b4b,#162a3b); display: flex; flex-direction: column; justify-content: space-between; border-block: 1px solid #334b5a; }
.project-image > span { font: italic 23px var(--serif); color: #8ca0aa; }
.project-image p { font: 400 27px/1.4 var(--serif); color: #bac8cc; }
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.projects-follow { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.projects-follow p { margin-right: auto; color: #a8b5be; font-size: 13px; }
.projects-follow .social-profile { display: inline-flex; align-items: center; gap: 14px; border: 1px solid #536473; border-radius: 999px; padding: 12px 20px; min-height: 52px; font-size: 13px; }
.social-profile img { width: 32px; height: 32px; object-fit: contain; border-radius: 50%; }
.social-profile small { display: block; font-size: 10px; color: #a8b5be; }
@keyframes class-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes class-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 1350px) { .small-groups { gap: 60px; } }
@media (max-width: 760px) {
  .class-tabs { gap: 25px; }
  .class-tabs [role="tab"] { font-size: 13px; }
  .class-tabs [role="tab"] span { margin-left: 8px; font-size: 9px; }
  .class-rotation { margin-bottom: 25px; gap: 12px; flex-wrap: wrap; font-size: 11px; }
  .small-groups { grid-template-columns: 1fr; gap: 27px; padding-block: 35px; }
  .small-groups .pg-action { grid-column: auto; }
    .projects-heading { grid-template-columns: 1fr; gap: 22px; }
  .projects-heading p { font-size: 15px; }
  .project-card { flex-basis: 85%; min-width: 0; }
  .project-track { scroll-snap-type: x proximity; }
  .project-card { scroll-snap-align: start; }
  .project-caption strong { font-size: 21px; }
  .projects-follow { align-items: flex-start; }
  .projects-follow p { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .class-panel:not([hidden]), .class-tabs[data-rotating="true"] [aria-selected="true"]::after { animation: none; }
  .schedule article, .schedule article > div, .schedule article > a .icon { transition: none; }
  .schedule article:hover > div, .schedule article:hover > a .icon { transform: none; }
}

/* Radio controls remain available when the browser denies autoplay. */
.radio-player { position: relative; z-index: 70; margin-left: auto; flex: none; color: var(--paper); }
.radio-main { display: flex; gap: 2px; align-items: center; }
.radio-toggle { min-width: 82px; height: 42px; padding: 10px 13px; border: 1px solid var(--gold); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--navy); background: var(--gold); transition: background .25s; }
.radio-toggle:hover { background: #e4cda4; }
.radio-settings-toggle { display: grid; place-items: center; width: 26px; height: 44px; border: 0; background: transparent; color: #d0dbe1; border-radius: 12px; }
.radio-settings-toggle:hover { background: #ffffff12; }
.radio-settings-toggle .icon { width: 14px; height: 14px; transform: rotate(90deg); }
.radio-settings-toggle[aria-expanded="true"] .icon { transform: rotate(-90deg); }
.radio-settings { position: absolute; top: calc(100% + 12px); left: 0; width: 280px; max-width: calc(100vw - 44px); padding: 18px; background: #0c1d2dfc; border: 1px solid #71818a80; border-radius: 16px; box-shadow: 0 8px 35px #00111a40; }
.radio-station { margin-bottom: 18px; }
.radio-station h2 { font: 600 14px/1.4 var(--sans); letter-spacing: 0; color: #f7f6f1; }
.radio-station p { font: 400 11px/1.5 var(--sans); color: #bccbd3; margin-top: 4px; }
.radio-player[data-state="playing"] .radio-station p { color: var(--gold); }
.radio-volume-heading { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.radio-settings input { width: 100%; margin: 12px 0; accent-color: var(--gold); cursor: pointer; min-height: 24px; }
.radio-settings a { display: inline-flex; gap: 8px; align-items: center; min-height: 34px; font-size: 11px; color: #c4d2d9; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1440px) {
 .menu-toggle { border:0; background:transparent; width:44px; height:44px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; color:white; flex:none; }
 .menu-toggle span { width:25px; height:1px; background:currentColor; transition:transform .3s; }
 .site-nav { display:none; position:absolute; inset:100% 0 auto; max-height:calc(100svh - 82px); overflow:auto; padding:24px 32px 32px; flex-direction:column; align-items:flex-start; gap:16px; background:#0c1d2dfc; box-shadow:0 12px 20px #07172230; }
 .site-nav>a[data-nav] { font-size:17px; line-height:1.9; }
 .site-nav>a[data-nav]::after { bottom:0; }
 .site-header[data-menu-open] .site-nav { display:flex; }
 .site-header[data-menu-open] { background:var(--navy); transform:none; }
 .site-header[data-menu-open] .menu-toggle span:first-child { transform:translateY(4px) rotate(45deg); }
 .site-header[data-menu-open] .menu-toggle span:last-child { transform:translateY(-4px) rotate(-45deg); }
 .nav-socials { gap:18px; margin-top:10px; }
 .header-contact { width:auto; min-height:48px; font-size:13px; padding:12px 22px; border:1px solid #e6cba5; justify-content:center; }
 .radio-settings { left:auto; right:0; }
}
@media (max-width:380px) { .header-inner { gap:8px; } .brand { width:95px; } .radio-toggle { min-width:70px; padding-inline:10px; font-size:11px; } }

.study-benefits{list-style:none;padding:0}.project-card header{padding:20px 22px}.project-card header h3,.project-caption h4{font:400 22px/1.35 var(--serif)}.project-card header p,.project-caption p,.project-pending-note{font-size:12px;line-height:1.8;color:#a8b5be}.project-card header p,.project-caption p{margin-top:8px}.project-pending-note{margin-bottom:24px}.project-controls{display:flex;gap:12px;justify-content:flex-end}.project-controls button{min-width:46px;min-height:46px;padding:0}.project-controls button:disabled{opacity:.3;cursor:default}.project-controls [data-project-prev] .icon{transform:rotate(180deg)}

.project-controls button{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;background:transparent;border:1px solid #83959b;border-radius:50%;color:var(--paper);cursor:pointer}.project-controls button .icon{width:20px;height:20px}.project-controls button:hover:not(:disabled){border-color:var(--gold);color:var(--gold)}


@media (min-width: 1281px) {
  :root { --sabbath: calc(100vw / 14); }
}

/* Final local refinements: church profile, independent film, readable legal page. */
.nav-church-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; }
.nav-socials a:has(.nav-church-logo) { transition: transform .25s var(--ease); }
.nav-socials a:has(.nav-church-logo):hover { transform: translateY(-2px); }
.faith-pillars h3 { margin-top: 0; }
#hero-title.has-letters, #mission-title.has-letters { animation: none; }
.letter-word { display: inline-block; white-space: nowrap; }
.letter { display: inline-block; opacity: 0; animation: letter-arrive .65s var(--ease) var(--letter-delay) both; }
@keyframes letter-arrive {
  from { opacity: 0; transform: translateY(.35em); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
#hero-title .letter { animation-name: hero-letter-arrive; animation-duration: .9s; }
@keyframes hero-letter-arrive {
  from { opacity: 0; transform: translateY(.45em) rotateX(-35deg); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) rotateX(0); filter: blur(0); }
}
#hero-title em { animation: novo-glow 7s ease-in-out 3.5s infinite; }
@keyframes novo-glow {
  0%, 65%, 100% { color: #d9c6a6; text-shadow: 0 0 0 transparent; }
  32% { color: #f2e0bd; text-shadow: 0 0 20px #d2b68740; }
}
.encounter-story { margin-top: 80px; }
.encounter-media { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.encounter-media > * { min-width: 0; }
.encounter-photos { color: var(--ink); }
.encounter-video { display: flex; flex-direction: column; border: 1px solid #d9ddd9; border-radius: 12px; overflow: hidden; background: var(--paper); color: var(--ink); }
.encounter-video-stage { position: relative; flex: 1; aspect-ratio: 4 / 4.3; background: #172a39; overflow: hidden; }
.encounter-video-stage::before { content: ''; position: absolute; inset: -30px; background: url('assets/culto-3.jpg') center / cover; filter: blur(24px); opacity: .23; z-index: 0; }
.encounter-video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
.encounter-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 2; opacity: 0; }
.encounter-video-stage.has-frame video { opacity: 1; }
.encounter-video-stage.has-frame .encounter-video-poster { opacity: 0; }
.encounter-video-start { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3; width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid #f1ddba; border-radius: 50%; background: var(--gold); color: var(--navy); box-shadow: 0 5px 25px #07172235; }
.encounter-video-start:hover { background: #e4cda4; }
.encounter-video-start span { margin-left: 3px; font-size: 21px; }
.encounter-video-start:focus-visible { outline: 3px solid white; outline-offset: 4px; }
.encounter-video-stage:not(.has-frame) video { opacity: 1; }
.js .encounter-video-stage:not(.has-frame) video { opacity: 0; }
.encounter-video figcaption { display: flex; align-items: center; min-height: 68px; padding: 17px 22px; font-size: 12px; line-height: 1.65; background: var(--paper); color: var(--ink); }
.encounter-copy { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; margin-top: 40px; }
.encounter-copy h3 { margin-top: 16px; font-size: clamp(30px, 3.1vw, 46px); line-height: 1.3; }
.encounter-copy h3 em { color: var(--gold); }
.encounter-copy > div > p:not(.eyebrow) { color: #c0cbd2; font-size: 16px; line-height: 1.85; }
.encounter-copy .inline-note { margin-top: 22px; color: #d1dbe0; font-size: 13px; }
.small-groups h3 em { color: #607b82; }
.small-groups .pg-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.85; margin-top: 22px; max-width: 490px; }
.small-groups .pg-copy > p.pg-invitation { font-size: 14px; font-weight: 500; color: var(--ink); margin-top: 16px; }
.faith-pillars > div { min-width: 0; }
.footer-information { border-top: 1px solid #314252; padding-block: 26px; }
.footer-information > p { color: #c2cdd4; font-size: 13px; line-height: 1.8; }
.footer-information > p:first-child { font-weight: 600; color: #eff1ef; margin-bottom: 5px; }
.footer-information > p.footer-address { color: #a8b9c4; font-size: 12px; margin-top: 9px; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer-legal .privacy-link { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: #e0e7ea; min-height: 44px; text-decoration: underline; text-underline-offset: 5px; }
.footer-legal .privacy-link:hover { color: var(--gold); }
.privacy-link .icon { width: 15px; height: 15px; }
/* A shallow wave carries the light background into the next blue section. */
.meetings, .projects, .youth-band, .site-footer { position: relative; }
.meetings::before, .projects::before, .youth-band::before, .site-footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: -47px; height: 49px; pointer-events: none;
  background: var(--navy); clip-path: ellipse(70% 100% at 50% 100%);
}
.youth-band::before { background: #1d3847; }
.meetings::after, .projects::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 49px; pointer-events: none; background: var(--paper); clip-path: ellipse(70% 100% at 50% 100%); }
.privacy-page { background: var(--paper); }
.privacy-header { max-width: 960px; margin: auto; padding: 30px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.privacy-brand img { width: 116px; height: auto; }
main.privacy-main { width: calc(100% - 56px); max-width: 860px; margin: auto; padding: 60px 0 75px; }
.privacy-main h1 { font-size: clamp(36px, 5vw, 58px); margin: 17px 0 24px; }
.privacy-main > p { font-size: 17px; line-height: 1.85; }
.privacy-updated { font-size: 12px !important; color: #6b7980; margin-top: 18px; }
.privacy-main section { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.privacy-main h2 { font-family: var(--sans); font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.4; margin-bottom: 16px; }
.privacy-main section p, .privacy-main li { font-size: 15px; line-height: 1.9; }
.privacy-main section p + p { margin-top: 16px; }
.privacy-main section a:not(.action) { text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }
.privacy-main ul { margin: 15px 0; padding-left: 22px; color: var(--muted); }
.privacy-main li + li { margin-top: 8px; }
.privacy-contact { margin-top: 22px; }
.privacy-footer { background: var(--navy); color: #c2cdd4; padding: 30px 28px; text-align: center; font-size: 12px; }
@media (max-width: 760px) {
  .faith-pillars > div { grid-template-columns: 1fr; }
  .faith-pillars p { grid-column: 1; }
  .encounter-story { margin-top: 55px; }
  .encounter-media { grid-template-columns: 1fr; gap: 24px; }
  .encounter-copy { grid-template-columns: 1fr; gap: 24px; margin-top: 30px; }
  .encounter-copy h3 { font-size: 34px; }
  .encounter-copy > div > p:not(.eyebrow), .small-groups .pg-copy > p:not(.eyebrow) { font-size: 15px; }
  .small-groups h3 { font-size: 34px; }
  .meetings::before, .projects::before, .youth-band::before, .site-footer::before { top: -29px; height: 31px; }
  .meetings::after, .projects::after { height: 31px; }
  .footer-legal { display: block; }
  .footer-legal small { display: block; }
  .footer-legal .privacy-link { margin-top: 8px; }
  .privacy-header { padding: 23px 22px; }
  .privacy-brand img { width: 95px; }
  main.privacy-main { width: calc(100% - 44px); padding-block: 42px 55px; }
}
@media (prefers-reduced-motion: reduce) {
  .letter { opacity: 1; animation: none; transform: none; filter: none; }
  #hero-title em { animation: none; text-shadow: none; }
  .nav-socials a:has(.nav-church-logo):hover { transform: none; }
}

@media (max-width:760px) { .radio-settings { right:-64px; width:min(280px, calc(100vw - 59px)); } }
@media (max-width:380px) { .radio-settings { right:-52px; } }

/* Full station card retained in the header. */
.radio-player { width:320px; padding:10px 12px; border:1px solid #71818a80; border-radius:18px; background:#0c1d2df0; }
.radio-main { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:8px; }
.radio-station { margin:0; }
.radio-station h2 { font-size:14px; white-space:nowrap; }
.radio-station p { font-size:11px; line-height:1.4; }
.radio-toggle { min-width:82px; height:44px; }
.radio-settings { width:100%; left:0; right:auto; }
@media (min-width:1441px) and (max-width:1799px) {
 .header-inner { padding-inline:28px; gap:14px; }
 .brand { width:95px; }
 .site-nav { gap:12px; }
 .header-contact { padding-inline:14px; }
 .radio-player { width:300px; }
}
@media (max-width:760px) {
 :root { --header-offset:166px; }
 .site-header,.site-header.is-compact { height:160px; }
 .header-inner { flex-wrap:wrap; padding-block:8px; gap:8px; }
 .brand,.is-compact .brand { width:89px; }
 .menu-toggle { margin-left:auto; }
 .radio-player { order:3; width:100%; margin:0; }
 .site-nav { order:4; max-height:calc(100svh - 160px); }
 .radio-settings { width:100%; max-width:none; right:0; left:0; }
 .radio-station h2 { font-size:14px; }
 .radio-toggle { min-width:82px; font-size:12px; }
}

@media (max-width:760px) { .hero-content { padding-top:190px; } }
@media (max-width:380px) { .radio-station h2 { font-size:12px; } .radio-station p { font-size:10px; } .radio-main { gap:6px; } .radio-toggle { min-width:76px; padding-inline:10px; } }

/* Center the radio in the available header space before the collapsed menu. */
@media (min-width:761px) and (max-width:1440px) { .radio-player { margin-inline:auto; } }

/* Final usability pass: quicker entrance, readable text and generous touch targets. */
.preloader { transition:opacity .2s var(--ease),visibility .2s; }
.site-nav>a[data-nav] { opacity:.9; }
:where(a,button,input,summary):focus-visible { outline:3px solid #b38637; outline-offset:4px; }
.site-header :where(a,button,input):focus-visible,.meetings :where(a,button):focus-visible { outline-color:#ecd9b7; }
.radio-settings-toggle { width:44px; }
.radio-player { width:338px; }
.gallery-controls>button,.gallery-dots button { min-width:44px; min-height:44px; }
.gallery-dots button::before { width:6px; height:6px; }
.gallery-count { color:#51646f; }
@media (min-width:1441px) and (max-width:1799px) {
 .radio-player { width:318px; }
 .header-inner { gap:12px; padding-inline:22px; }
 .site-nav { gap:10px; }
}
@media (max-width:760px) {
 :root { --header-offset:134px; }
 .site-header,.site-header.is-compact { height:128px; }
 .header-inner { gap:4px 8px; padding-block:8px; }
 .brand,.is-compact .brand { width:72px; }
 .radio-player { width:100%; padding:8px 10px; }
 .radio-main { gap:6px; }
 .radio-settings-toggle { width:36px; }
 .site-nav { max-height:calc(100svh - 128px); }
 .hero-content { padding-top:170px; }
 .hero-description,.church-copy p,.study-copy>p:not(.eyebrow),.pg-copy p:not(.eyebrow),.faq-list details p,.faq-intro>p:not(.eyebrow),.welcome p:last-child { font-size:14px; line-height:1.85; }
 .gallery-controls { flex-wrap:wrap; gap:4px; padding:10px 12px; }
 .gallery-dots { flex-basis:calc(100% - 55px); }
 .gallery-count { margin:0; }
 .gallery-controls>button { width:44px; height:44px; }
 .gallery-slide figcaption,.encounter-video figcaption { font-size:12px; }
 .footer-bottom small,.footer-legal small,.visit-note p { font-size:11px; }
 .radio-station h2 { font-size:14px; }
 .hero { max-height:none; }
}
@media (max-width:380px) {
 .radio-station h2 { font-size:12px; }
 .radio-station p { font-size:10px; }
 .radio-settings-toggle { width:28px; }
 .radio-toggle { min-width:70px; }
}

.footer-resources { padding:24px 0 30px; border-top:1px solid #ffffff20; }
.footer-resources .eyebrow { margin-bottom:14px; }
.footer-resources-links { display:flex; flex-wrap:wrap; gap:12px; }
@media (max-width:760px) { .footer-resources-links { flex-direction:column; align-items:flex-start; } }

.hero-resources { margin-top:32px; padding-top:18px; border-top:1px solid #ffffff25; max-width:530px; }
.hero-resources .eyebrow { margin-bottom:12px; color:#bdc9d2; }
.hero-resources-links { display:flex; flex-wrap:wrap; gap:10px; }
.hero-resources-links .action { font-size:11px; }
@media (max-width:760px) { .hero-resources { margin-top:26px; } .hero-resources-links { flex-direction:column; align-items:flex-start; } }

@media (min-width:761px) { .hero-resources { margin-top:72px; } }

.hero-resources-links { flex-direction:column; align-items:flex-start; }

/* Keep the opening in normal flow so extra links never collide with its bottom band. */
.hero { display:flex; flex-direction:column; height:auto; min-height:max(780px,100svh); max-height:none; }
.hero-bottom { position:relative; bottom:auto; margin-top:auto; padding-top:48px; padding-bottom:32px; }
.hero-mission { align-self:start; margin-top:60px; }
@media (max-width:900px) { .hero-mission { margin-top:0; } }
@media (min-width:761px) and (max-width:1100px) {
 .gallery-controls { flex-wrap:wrap; gap:4px; }
 .gallery-dots { flex-basis:calc(100% - 58px); }
 .gallery-count { margin:0; }
 .gallery-controls>button { width:44px; height:44px; }
 .youth-inner { flex-wrap:wrap; gap:30px; }
}

.hero-content { padding-bottom:48px; }
.hero-bottom { padding-top:24px; }

@media (max-width:380px) { :root { --header-offset:146px; } .site-header,.site-header.is-compact { height:140px; } .site-nav { max-height:calc(100svh - 140px); } }
