/* Shared editorial refinement: ocean light, forest ink, restrained gold. */
:root { --gold: #ad7425; --muted: #566b62; }
html { scroll-padding-top: 100px; }
:where(a, button):focus-visible { outline: 3px solid #b47b28; outline-offset: 5px; }
:where(p, h1, h2, h3, a) { overflow-wrap: anywhere; }
.site-header { position: sticky; top: 0; gap: 24px; }
.site-header nav { gap: clamp(12px, 1.6vw, 23px); }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; }
.site-header nav a[aria-current="page"] { color: #164c3f; border-bottom-color: #b57b30; }
.login, .lang-toggle { min-height: 44px; }
.button { min-height: 50px; font-size: 15px; padding: 12px 24px; border-radius: 10px; }
.eyebrow { font-size: 12px; letter-spacing: .16em; }
.home-hero { height: auto; min-height: 710px; }
.home-hero .hero-image { background-image: url('/assets/hero-ocean-library.jpeg'); background-position: center center; }
.home-hero .hero-copy { min-height: 710px; width: min(920px, calc(100% - 48px)); margin-inline: auto; padding: 76px 38px 95px; align-items: center; text-align: center; }
.home-hero .hero-copy h1.hero-welcome {
  width: min(100%, 850px); max-width: 850px;
  margin: 0 auto 24px !important; color: #103e34 !important;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(46px, 5.25vw, 78px) !important;
  font-weight: 650; line-height: 1.3; letter-spacing: -.035em;
  text-wrap: balance; text-shadow: none;
}
.home-hero .hero-copy > p.hero-mission {
  width: 100%; margin: 0 auto 6px; color: #49645b;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(23px, 2.6vw, 35px); font-weight: 600; line-height: 1.55;
}
.home-hero .hero-slogans { margin: 16px auto 30px; gap: 8px; font-size: clamp(19px, 2vw, 27px); justify-content: center; }
.home-hero .hero-actions { justify-content: center; }
.home-hero .slogan.family { color: #a7522b; }
.home-hero .slogan.rise { color: #116854; }
.home-hero .hero-image::after { background: radial-gradient(ellipse at 50% 48%, #faf5eceb 0%, #faf5eccf 34%, #faf5ec82 58%, #faf5ec12 86%), linear-gradient(0deg, #123f3629, transparent 45%); }
.service-bar { width: min(1180px, calc(100% - 48px)); margin: -30px auto 0; padding: 26px 32px; border: 1px solid #e9dfd0; border-radius: 16px; gap: 24px; box-shadow: 0 14px 40px #173d3510; }
.service-bar span { font-size: 12px; }
.service-bar strong { font-size: 16px; line-height: 1.6; }
.service-bar a { font-size: 14px; padding: 12px 0; }
.live-section { padding: 84px 0 92px; background: #fffdf9; color: #163f35; }
.live-section .eyebrow { color: #9d6228; }
.live-section .section-head .button { border-color: #d6ddcf; background: transparent; }
.section-head { margin-bottom: 34px; }
.feed-grid { gap: 24px; align-items: stretch; }
.feed-card { border: 1px solid #e1e5dd; border-radius: 18px; box-shadow: 0 10px 28px #123f3609; }
.feed-card img, .feed-card .feed-placeholder { height: auto; aspect-ratio: 16 / 10; }
.feed-body { padding: 25px; }
.feed-meta { font-size: 12px; flex-wrap: wrap; color: #8b602b; }
.feed-card h3 { margin: 15px 0 12px; font-size: 24px; line-height: 1.45; }
.feed-card p { font-size: 16px; line-height: 1.75; color: #5d7066; }
.feed-card .feed-link { display: block; border-top: 1px solid #e8ece4; padding-top: 16px; font-size: 14px; color: #174d41; }
.feed-loading { color: #65796e; background: #f2f5ee; border-radius: 16px; }
.story-showcase { padding: 80px 0 88px; background: #103f35; }
.story-showcase-head h2 { font-size: clamp(29px, 3.2vw, 44px); }
.story-preview .story-media, .story-preview > div { border-radius: 14px; }
.story-preview h3 { margin-top: 20px; font-size: 23px; }
.story-preview p { margin-top: 6px; font-size: 16px; line-height: 1.7; }
.pathways { padding-block: 88px; }
.path-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.path-card { min-height: 320px; border-radius: 18px; }
.path-card span { inset: auto 28px 30px; gap: 13px; }
.path-card small { font-size: 12px; }
.path-card b { font-size: 26px; }
.path-card.navy { background: linear-gradient(0deg, #103f35f2, #103f3540), url('/assets/training-path.jpeg') center/cover; }
.path-card.gold-card { background: #a45d30; }
.page-hero { min-height: 430px; }
.page-hero .wrap { padding-block: 65px; }
.page-hero h1 { font-size: clamp(38px, 5.3vw, 66px); line-height: 1.25; }
.page-hero p:not(.eyebrow) { font-size: 18px; }
.story-hero, .contact-hero { min-height: 470px; }
.collection-section, .giving-content { padding-block: 72px 88px; }
.feed-filters { gap: 10px; padding-bottom: 24px; border-bottom: 1px solid #e4e7de; margin-bottom: 30px; }
.feed-filters button { min-height: 46px; border-radius: 99px; font-size: 15px; padding: 10px 22px; }
.testimony-card { border-radius: 18px; box-shadow: 0 12px 30px #123f360a; }
.testimony-card.featured { min-height: 0; align-items: center; }
.testimony-card.featured .story-media { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
.testimony-card.featured .story-media iframe { min-height: 0; }
.testimony-copy small { font-size: 12px; }
.testimony-actions { flex-wrap: wrap; }
.testimony-actions button, .testimony-actions a { min-height: 44px; font-size: 14px; }
.story-intro { padding-block: 64px; }
.training-introduction { grid-template-columns: minmax(0, 1fr); }
.training-introduction .cms-item { border: 0; border-left: 3px solid #b37c32; border-radius: 0; background: #f8f3e9; }
.training-introduction .cms-item > div { padding: 32px 38px; }
.public-course { display: block; padding: 0; border-radius: 16px; background: #fff; box-shadow: 0 8px 20px #123f3605; overflow: hidden; }
.public-course summary { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 17px; align-items: start; padding: 26px; cursor: pointer; list-style: none; }
.public-course summary::-webkit-details-marker { display: none; }
.public-course summary > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: #174d41; color: #f0c26c; font-family: Georgia,serif; font-weight: 800; }
.public-course summary > b { color: #b8683d; font-size: 24px; transition: transform .2s ease; }
.public-course[open] summary > b { transform: rotate(45deg); }
.public-course summary small { color: #b56139; font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.public-course summary strong { display: block; margin-bottom: 7px; color: #365f55; font-size: 14px; }
.public-course-details { padding: 0 26px 26px 97px; border-top: 1px solid #eee5d8; }
.public-course-details p { padding-top: 20px; white-space: pre-line; }
.public-course h3 { font-size: 21px; line-height: 1.45; }
.public-course p { font-size: 16px; line-height: 1.8; }
.training-next .button { flex-shrink: 0; }
.give-methods { gap: 24px; }
.give-methods article { padding: 36px; background: #fff; box-shadow: 0 12px 32px #123f3608; }
.give-methods h3 { margin: 20px 0 14px; }
.give-methods p { font-size: 16px; line-height: 1.8; }
.give-methods a { display: inline-flex; min-height: 48px; align-items: center; padding: 10px 18px; border-radius: 9px; color: #fff; background: #174d41; }
.giving-content > .cms-collection { max-width: none; }
.scripture { border-radius: 0 16px 16px 0; }
.visit-timeline article { align-items: start; }
.visit-timeline::before { left: 43px; }
.contact-details article { border-radius: 18px; }
.contact-details { grid-template-columns: minmax(0, 760px); justify-content: center; }
.site-footer { padding-top: 58px; }
.footer-grid p, .footer-grid a { font-size: 14px; }
.footer-organization p { font-size: 12px; }
.footer-grid > div { min-width: 0; }
.footer-bottom { font-size: 12px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .feed-card, .path-card, .button { transition: transform .2s ease, box-shadow .2s ease; }
  .feed-card:has(a):hover, .path-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px #123f3614; }
  .button:hover { transform: translateY(-2px); }
}
@media (max-width: 1100px) {
  .site-header { gap: 16px; }
  .site-header nav { display: none; position: absolute; inset: 100% 0 auto; padding: 20px 24px; background: #fffdf9; box-shadow: 0 20px 30px #123f3615; flex-direction: column; align-items: stretch; gap: 0; }
  .site-header nav.open { display: flex; }
  .site-header nav a { font-size: 16px; padding: 9px; }
  .menu-toggle { display: block; margin-left: auto; min-height: 44px; border: 0; background: transparent; font-weight: 700; color: #174d41; }
  .home-hero .hero-copy { width: 90%; }
  .service-bar { grid-template-columns: 1fr 1fr; }
  .service-bar > a { grid-column: 1 / -1; border-top: 1px solid #e5e9df; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  body { overflow-x: hidden; }
  .wrap { width: min(100% - 32px, 1180px); }
  .site-header { height: 68px; padding-inline: 12px; gap: 7px; }
  .site-header .brand { width: 88px; height: 50px; }
  .site-header nav { top: 68px; max-height: calc(100svh - 68px); overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 22px; }
  .site-header nav a { min-height: 48px; padding: 9px 12px; border-bottom: 1px solid #e7e9e1; }
  .menu-toggle { margin-left: auto; min-width: 45px; padding-inline: 6px; }
  .header-actions { flex-shrink: 0; }
  .lang-toggle { padding-inline: 6px; }
  .login { padding: 8px 10px; font-size: 12px; }
  .home-hero, .home-hero .hero-copy { min-height: 650px; }
  .home-hero .hero-copy { width: 100%; padding: 62px 24px 78px; }
  .home-hero .hero-copy h1.hero-welcome { font-size: clamp(38px, 7.7vw, 55px) !important; }
  .home-hero .hero-copy > p.hero-mission { font-size: 23px; }
  .home-hero .hero-slogans { font-size: 20px; }
  .home-hero .hero-image::after { background: radial-gradient(ellipse at 50% 46%, #faf5ecef, #faf5ecc2 58%, #faf5ec70); }
  .hero-actions { flex-wrap: wrap; gap: 12px; }
  .service-bar { width: calc(100% - 30px); grid-template-columns: 1fr; gap: 16px; margin-top: -22px; padding: 23px; }
  .service-bar > a { grid-column: auto; }
  .live-section, .story-showcase { padding-block: 62px; }
  .section-head { gap: 18px; }
  .section-head .button { width: 100%; }
  .feed-grid { gap: 18px; }
  .feed-card h3 { font-size: 22px; }
  .path-grid { grid-template-columns: 1fr; }
  .path-card:first-child { grid-row: auto; }
  .path-card { min-height: 270px; }
  .section-head h2 { font-size: 34px; }
  .page-hero, .story-hero, .contact-hero { min-height: 390px; }
  .page-hero .wrap { padding: 50px 8px; }
  .page-hero p:not(.eyebrow) { font-size: 16px; line-height: 1.75; }
  .collection-section, .giving-content { padding-block: 54px 68px; }
  .feed-filters { flex-wrap: nowrap; margin-inline: -16px; padding: 0 16px 20px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .feed-filters::-webkit-scrollbar { display: none; }
  .feed-filters button { flex: 0 0 auto; scroll-snap-align: start; }
  .testimony-copy, .testimony-card.featured .testimony-copy { padding: 28px 23px; }
  .testimony-actions { gap: 10px; }
  .testimony-actions button, .testimony-actions a { display: inline-flex; align-items: center; }
  .testimony-card.featured .story-media { aspect-ratio: 16 / 9; }
  .testimony-card.featured .story-media iframe { min-height: 0; }
  .training-introduction .cms-item > div { padding: 28px 24px; }
  .public-course { padding: 0; }
  .public-course summary { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 13px; padding: 20px 17px; }
  .public-course-details { padding: 0 17px 20px; }
  .public-course > span { width: 42px; height: 42px; }
  .training-next { padding: 28px 24px; border-radius: 16px; }
  .training-next .button { width: 100%; }
  .give-methods article { padding: 28px; }
  .scripture { font-size: 19px; line-height: 1.8; }
  .online-study-section .wrap { gap: 30px; }
  .online-study-card, .visit-location { padding: 30px 24px; }
  .contact-details { gap: 16px; padding-block: 58px 68px; }
  .contact-details article { padding: 30px 24px; }
  .about-content { padding-block: 44px 62px; }
  .about-collection .about-entry,
  .about-collection .about-entry.about-beliefs { border-radius: 18px; }
  .about-collection .about-entry > div,
  .about-collection .about-entry.has-image:nth-child(even) > div,
  .about-collection .about-entry.image-layout-wide > div,
  .about-collection .about-entry.image-layout-wide:nth-child(even) > div { padding: 30px 23px 35px; }
  .about-collection .about-entry h2 { font-size: 32px; }
  .about-collection .about-entry .body { font-size: 16px; line-height: 1.85; }
  .cms-item h2 { font-size: 29px; }
  .cms-item .body { font-size: 16px; line-height: 1.85; }
  .footer-grid { gap: 28px; }
  .footer-bottom { margin-top: 36px; }
}

@media (max-width: 480px) {
  .home-hero, .home-hero .hero-copy { min-height: 610px; }
  .home-hero .hero-copy { justify-content: center; padding: 52px 19px 66px; }
  .home-hero .eyebrow { margin-bottom: 12px; letter-spacing: .12em; }
  .home-hero .hero-copy h1.hero-welcome { margin-bottom: 18px !important; font-size: clamp(33px, 10.4vw, 45px) !important; line-height: 1.28; }
  .home-hero .hero-copy > p.hero-mission { font-size: 21px; line-height: 1.5; }
  .home-hero .hero-slogans { margin: 14px 0 25px; font-size: 18px; line-height: 1.55; }
  .home-hero .hero-slogans i { display: none; }
  .home-hero .hero-slogans .slogan { display: block; width: 100%; padding-inline: 0; }
  .hero-actions { width: 100%; }
  .hero-actions .button { flex: 1 1 100%; width: 100%; }
  .service-bar { border-radius: 14px; }
  .section-head h2 { font-size: 30px; }
  .story-showcase-head h2 { font-size: 29px; }
  .story-showcase-head > a { white-space: normal; line-height: 1.6; }
  .page-hero h1 { font-size: 36px; line-height: 1.28; }
  .path-card b { font-size: 23px; }
  .visit-section { padding-block: 56px; }
  .visit-schedule > h2 { margin-bottom: 30px; font-size: 34px; }
  .visit-timeline::before { display: none; }
  .visit-timeline article { grid-template-columns: 1fr; gap: 15px; padding-bottom: 34px; }
  .visit-timeline time { width: max-content; min-width: 86px; }
  .visit-timeline .button { width: 100%; }
  .online-study-copy h2 { font-size: 34px; }
  .online-study-card { min-height: 0; }
  .online-study-card h3 { font-size: 29px; }
  .contact-details h2 { font-size: 29px; }
  .contact-details a { font-size: 18px; }
  .formation-number { width: min(100%, 270px); min-height: 270px; padding: 28px; }
  .formation-number strong { font-size: 82px; letter-spacing: -.07em; }
  .formation-copy h2 { font-size: 34px; }
  .formation-path article { padding: 66px 22px 25px; }
  .formation-path article > span { left: 20px; top: 16px; }
  .formation-why { padding: 32px 22px 38px; }
  .formation-why h2 { font-size: 31px; }
  .public-course h3 { font-size: 19px; }
  .give-methods { gap: 16px; }
  .give-methods a { width: 100%; justify-content: center; text-align: center; }
}

@media (max-width: 350px) {
  .site-header .brand { width: 78px; }
  .login { padding-inline: 8px; }
  .home-hero .hero-copy h1.hero-welcome { font-size: 32px !important; }
  .page-hero h1 { font-size: 32px; }
}

/* Optional audio for testimonies without video. */
.testimony-audio { margin-top: 22px; display: grid; gap: 10px; min-width: 0; }
.testimony-audio strong { font-size: 16px; color: #173f36; }
.testimony-audio audio { display: block; width: 100%; max-width: 100%; }
.testimony-audio iframe { width: 100%; height: 150px; border: 0; border-radius: 12px; background: #fff; }
.testimony-audio a { width: fit-content; font-size: 14px; color: #99601e; text-decoration: underline; text-underline-offset: 3px; }
.testimony-audio .audio-error { margin: 0; font-size: 14px; line-height: 1.6; }
.testimony-card.featured .testimony-audio strong { color: #fff6e8; }
.testimony-card.featured .testimony-audio a { color: #f0c474; }
.testimony-card.featured .audio-error { color: #d7e4df; }
.story-preview .testimony-audio { padding: 0; border-radius: 0; }
.story-preview .testimony-audio p { font-size: 14px; }

/* Compact testimony listening and full-text reading. */
.testimony-audio{display:block;margin-top:14px;font-size:14px}
.testimony-audio summary{display:flex;align-items:center;gap:7px;list-style:none;width:fit-content;min-height:36px;cursor:pointer;color:#31564b;font-weight:600;font-size:14px}
.testimony-audio summary::-webkit-details-marker{display:none}
.testimony-audio summary span{font-size:20px;line-height:1}
.testimony-audio-player{display:grid;gap:8px;padding-top:8px;max-width:360px}
.testimony-audio audio{height:36px}.testimony-audio iframe{height:120px;border-radius:8px}
.testimony-audio a{font-size:14px;font-weight:400}.testimony-card.featured .testimony-audio summary{color:#f0c474}
.testimony-copy .text-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden}
.testimony-read{display:inline-flex;align-items:center;min-height:44px;padding:4px 0;border:0;background:transparent;color:#8b5b27;font:inherit;font-size:14px;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.testimony-card.featured .testimony-read{color:#f0c474}.testimony-read-hint{display:block;color:#64756f;font-size:13px;margin-top:-3px}.testimony-card.featured .testimony-read-hint{color:#d7e4df}
.testimony-read:focus-visible,.testimony-audio summary:focus-visible{outline:2px solid #bc8a49;outline-offset:4px}
.testimony-text-dialog{width:min(680px,calc(100vw - 32px));max-height:85dvh;padding:0;border:0;border-radius:16px;color:#263e37;background:#fff;box-shadow:0 20px 70px #0004}
.testimony-text-dialog::backdrop{background:#142c28aa}.testimony-text-dialog header{position:sticky;top:0;display:flex;gap:16px;align-items:flex-start;justify-content:space-between;padding:24px 28px 16px;background:#fff;border-bottom:1px solid #e5eae7}
.testimony-text-dialog h2{font-size:24px;line-height:1.4;margin:0}.testimony-text-dialog header button{flex-shrink:0;width:44px;height:44px;border:1px solid #dce5e0;border-radius:50%;background:#f6f8f6;color:#263e37;font-size:26px;cursor:pointer}
.testimony-full-text{padding:24px 28px 32px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:17px;line-height:1.9}
@media(max-width:600px){.testimony-text-dialog header{padding:18px 18px 12px}.testimony-full-text{padding:18px 18px 24px}.testimony-text-dialog h2{font-size:21px}}
