/* Church History story page (full-history.html) */
.hs{--royal:#1d4f9e;--ivory:#fbf6ea;--ivory-deep:#f3ead6;--gold-rule:#b58b3a;--gold-deep:#76521c;--frame:#fffdf8;background:var(--ivory)}
.hs .eyebrow{color:var(--gold-deep)}
.hs-heading{max-width:760px;margin:0 auto 3.5rem;text-align:center}
.hs-heading h2{color:var(--navy);margin-bottom:1rem}
.hs-heading h2:after{content:'';display:block;width:4.5rem;height:3px;margin:1.2rem auto 0;background:var(--gold-rule)}
.hs-heading p:last-child{color:var(--muted);font-size:1.075rem;margin:0}
.hs-heading.light h2{color:#fff}.hs-heading.light .eyebrow{color:var(--gold)}.hs-heading.light p:last-child{color:#d7e1ea}

/* Hero */
.hs-hero{position:relative;min-height:min(78vh,720px);display:flex;align-items:flex-end;padding:7rem var(--section-gutter) 4.5rem;color:#fff;background:linear-gradient(0deg,rgba(9,23,41,.97) 0%,rgba(9,23,41,.78) 45%,rgba(16,34,56,.5) 100%),linear-gradient(90deg,rgba(9,23,41,.85) 0%,rgba(9,23,41,.2) 75%),url('assets/history/church-family-outdoor.webp') center 62%/cover;border-bottom:4px solid var(--gold)}
.hs-hero-inner{max-width:760px}
.hs-hero .eyebrow{color:var(--gold);display:flex;align-items:center;gap:.9rem}
.hs-hero .eyebrow:before{content:'';width:2.5rem;height:2px;background:var(--gold)}
.hs-hero h1{font-size:clamp(3rem,7vw,6rem);margin-bottom:1.4rem;text-shadow:0 2px 24px #0008}
.hs-hero-intro{max-width:38rem;font-size:1.2rem;color:#e6edf5;margin-bottom:2rem}
.hs-jump{display:flex;flex-wrap:wrap;gap:.6rem}
.hs-jump a{padding:.55rem 1rem;border:1px solid #e8c47788;border-radius:999px;font-size:.875rem;font-weight:700;text-decoration:none;background:#0917297a;backdrop-filter:blur(2px)}
.hs-jump a:hover{background:var(--gold);color:var(--deep)}
.hs-hero a:focus-visible{outline-color:var(--gold)}
.hs-hero-credit{position:absolute;right:var(--section-gutter);bottom:1rem;margin:0;font-size:.75rem;letter-spacing:.06em;color:#c4cfda;font-style:italic}

/* Archival photo frame */
.hs-zoom{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in;position:relative}
.hs-zoom img{display:block;width:100%;height:auto}
.hs-zoom:after{content:'View larger';position:absolute;right:.75rem;bottom:.75rem;padding:.35rem .7rem;border-radius:4px;background:#091729d9;color:#fff;font:700 .75rem/1.2 Arial,sans-serif;letter-spacing:.05em;opacity:0;transform:translateY(4px);transition:.2s}
.hs-zoom:hover:after,.hs-zoom:focus-visible:after{opacity:1;transform:none}
.hs-photo{position:relative;margin:0;padding:.85rem .85rem 0;background:var(--frame);box-shadow:0 1px 0 #e7dcc4,0 18px 40px #10223824;border:1px solid #e6dbc3}
.hs-photo:before,.hs-photo:after{content:'';position:absolute;width:34px;height:34px;border:2px solid var(--gold-rule);pointer-events:none;z-index:1}
.hs-photo:before{top:-7px;left:-7px;border-right:0;border-bottom:0}
.hs-photo:after{right:-7px;bottom:-7px;border-left:0;border-top:0}
.hs-photo img{border:1px solid #d9ccb0}
.hs-photo figcaption{padding:.8rem .2rem .9rem;text-align:center;font-family:Georgia,serif;font-style:italic;color:#4b5767;font-size:.975rem}

/* Timeline */
.hs-timeline-wrap{padding:5.5rem var(--section-gutter) 4.5rem;background:radial-gradient(60rem 30rem at 50% 0,#fff 0,#fff0 70%),var(--ivory)}
.hs-timeline{list-style:none;margin:0 auto;padding:0;max-width:1096px;position:relative}
.hs-timeline:before{content:'';position:absolute;left:50%;top:0;bottom:0;width:2px;transform:translateX(-50%);background:linear-gradient(var(--gold-rule) 0 0) center/2px 100% no-repeat}
.hs-era{display:grid;grid-template-columns:1fr 1fr;gap:5rem;align-items:center;position:relative;padding:2.5rem 0}
.hs-era:before{content:'';position:absolute;left:50%;top:50%;width:18px;height:18px;transform:translate(-50%,-50%) rotate(45deg);background:var(--navy);border:3px solid var(--gold);box-shadow:0 0 0 6px var(--ivory)}
.hs-era:nth-child(even) .hs-photo{order:2}
.hs-era:nth-child(odd) .hs-photo{transform:rotate(-.6deg)}
.hs-era:nth-child(even) .hs-photo{transform:rotate(.6deg)}
.hs-era .hs-photo{max-width:470px;justify-self:center;width:100%}
.hs-era-text{max-width:460px}
.hs-era:nth-child(odd) .hs-era-text{justify-self:start}
.hs-era:nth-child(even) .hs-era-text{justify-self:end}
.hs-year{display:inline-block;margin-bottom:.9rem;padding:.35rem .85rem;background:var(--navy);color:var(--gold);font-weight:700;font-size:.875rem;letter-spacing:.12em;text-transform:uppercase;border-radius:3px}
.hs-era h3{font-family:Georgia,serif;font-weight:400;font-size:clamp(1.8rem,3vw,2.4rem);line-height:1.15;color:var(--navy);margin-bottom:1rem}
.hs-era-text p:not(.hs-year){color:#3f4d5f}

/* Complete written record */
.hs-record{max-width:900px;margin:3.5rem auto 0;background:#fff;border:1px solid #e6dbc3;border-top:4px solid var(--gold-rule);border-radius:10px;box-shadow:0 10px 30px #1022380f}
.hs-record summary{cursor:pointer;list-style:none;padding:1.5rem 4rem 1.5rem 1.75rem;position:relative}
.hs-record summary::-webkit-details-marker{display:none}
.hs-record summary span{display:block;font-family:Georgia,serif;font-size:1.5rem;color:var(--navy)}
.hs-record summary small{color:var(--muted);font-size:.9rem}
.hs-record summary:after{content:'+';position:absolute;right:1.5rem;top:50%;transform:translateY(-50%);width:2.2rem;height:2.2rem;border-radius:50%;background:var(--navy);color:var(--gold);font:400 1.6rem/2.1rem Georgia,serif;text-align:center}
.hs-record[open] summary:after{content:'−'}
.hs-record .full-history{padding:0 1.75rem 2.5rem;border-top:1px solid #eee3cc}
.hs-record .full-history h2{font-size:clamp(1.6rem,3vw,2rem);color:var(--navy);margin-top:2.2rem}
.hs-record .full-history p{color:#3f4d5f}

/* Pastoral legacy */
.hs-pastors{padding:5.5rem var(--section-gutter);color:#fff;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' fill='none' stroke='%23e8c477' stroke-opacity='.06'%3E%3Cpath d='M40 0v80M0 40h80'/%3E%3C/svg%3E"),radial-gradient(70rem 30rem at 50% 0,#1d4f9e55 0,#1d4f9e00 70%),linear-gradient(180deg,var(--deep),var(--navy))}
.hs-pastor-grid{list-style:none;margin:0 auto;padding:0;max-width:1096px;display:grid;grid-template-columns:repeat(4,1fr);gap:2rem}
.hs-pastor{text-align:center}
.hs-pastor figure{margin:0 auto 1.4rem;padding:.6rem;max-width:240px;background:linear-gradient(145deg,#f3d796,#b58b3a 55%,#e8c477);box-shadow:0 18px 40px #0007}
.hs-pastor img{display:block;width:100%;height:auto;aspect-ratio:9/10;object-fit:cover;object-position:center top;border:3px solid var(--deep)}
.hs-pastor h3{font-family:Georgia,serif;font-weight:400;font-size:1.45rem;margin-bottom:.35rem}
.hs-served{display:inline-block;margin-bottom:.9rem;padding:.2rem .8rem;border-top:1px solid var(--gold);border-bottom:1px solid var(--gold);color:var(--gold);font-weight:700;letter-spacing:.12em;font-size:.875rem}
.hs-pastor p:last-child{color:#c9d5e2;font-size:.95rem;margin:0}
.hs-earlier{max-width:900px;margin:4rem auto 0;padding:2rem 2.25rem;border:1px solid #e8c47755;border-radius:10px;background:#ffffff08;text-align:center}
.hs-earlier h3{font-family:Georgia,serif;font-weight:400;font-size:1.6rem;color:var(--gold);margin-bottom:.5rem}
.hs-earlier>p{color:#c9d5e2}
.hs-earlier ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem 0}
.hs-earlier li{padding:0 1rem;font-family:Georgia,serif;font-size:1.05rem}
.hs-earlier li+li{border-left:1px solid #e8c47766}
.hs-earlier li span{color:var(--gold)}
.hs-present{max-width:1000px;margin:4.5rem auto 0;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);gap:3rem;align-items:center;padding:2.5rem;border-radius:12px;background:linear-gradient(155deg,#2459ad 0%,var(--royal) 45%,#153a78 100%);border-top:4px solid var(--gold);box-shadow:0 20px 50px #0006;position:relative}
.hs-present:before{content:'';position:absolute;left:50%;top:-4.5rem;height:4.5rem;width:2px;background:linear-gradient(#e8c47700,var(--gold))}
.hs-present figure{margin:0}
.hs-present img{display:block;width:100%;height:auto;border-radius:8px;border:4px solid #fff2}
.hs-present .eyebrow{color:var(--gold)}
.hs-present h3{font-family:Georgia,serif;font-weight:400;font-size:2.2rem;margin-bottom:1rem}
.hs-present p:not(.eyebrow){color:#e6edf7}
.hs-pastors a:focus-visible{outline-color:#fff}

/* Gallery */
.hs-gallery{padding:5.5rem var(--section-gutter);background:var(--ivory-deep)}
.hs-filters{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem;margin:-1.5rem auto 2.75rem}
.hs-filters button{font:700 .875rem/1.2 Arial,sans-serif;padding:.65rem 1.1rem;border-radius:999px;border:1px solid var(--gold-rule);background:#fff;color:var(--navy);cursor:pointer}
.hs-filters button:hover{background:#fff6e2}
.hs-filters button[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:var(--gold)}
.hs-masonry{max-width:1096px;margin:auto;columns:3 300px;column-gap:1.75rem}
.hs-masonry figure{break-inside:avoid;margin:0 0 1.75rem;padding:.7rem;background:var(--frame);border:1px solid #e6dbc3;box-shadow:0 12px 30px #10223818;transition:transform .25s,box-shadow .25s}
.hs-masonry figure:hover{transform:translateY(-3px);box-shadow:0 18px 40px #10223826}
.hs-masonry figure[hidden]{display:none}
.hs-masonry img{border:1px solid #d9ccb0}
.hs-masonry figcaption{padding:.8rem .2rem .3rem;font-family:Georgia,serif;font-style:italic;color:#3f4d5f}
.hs-masonry figcaption span{display:block;margin-bottom:.25rem;font:700 .7rem/1.4 Arial,sans-serif;font-style:normal;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-deep)}

/* Lightbox */
.hs-lightbox{width:100vw;max-width:100vw;height:100vh;max-height:100vh;margin:0;padding:0;border:0;background:#060f1bf2;color:#fff}
.hs-lightbox[open]{display:flex;align-items:center;justify-content:center}
.hs-lightbox::backdrop{background:#060f1bcc}
.hs-lightbox figure{margin:0;max-width:min(92vw,1300px);display:flex;flex-direction:column;align-items:center}
.hs-lightbox img{max-width:100%;max-height:80vh;width:auto;height:auto;border:6px solid var(--frame);box-shadow:0 20px 60px #000a}
.hs-lightbox figcaption{margin-top:1rem;max-width:44rem;text-align:center;font-family:Georgia,serif;font-style:italic;font-size:1.1rem;color:#e6edf5}
.hs-lb-close,.hs-lb-nav{position:absolute;border:1px solid #e8c47788;background:#091729cc;color:var(--gold);cursor:pointer;border-radius:50%;width:3rem;height:3rem;font:400 2rem/1 Georgia,serif;display:grid;place-items:center}
.hs-lb-nav[hidden]{display:none}
.hs-lb-close{top:1rem;right:1rem}
.hs-lb-nav.prev{left:1rem;top:50%;transform:translateY(-50%)}
.hs-lb-nav.next{right:1rem;top:50%;transform:translateY(-50%)}
.hs-lb-close:hover,.hs-lb-nav:hover{background:var(--gold);color:var(--deep)}
.hs-lightbox button:focus-visible{outline-color:#fff}

/* Closing legacy */
.hs-legacy{padding:6rem var(--section-gutter);text-align:center;color:#fff;background:linear-gradient(0deg,rgba(9,23,41,.95),rgba(16,34,56,.9)),url('assets/history/historic-church-building.webp') center 30%/cover;border-top:4px solid var(--gold)}
.hs-legacy-verse{max-width:760px;margin:0 auto 3rem}
.hs-legacy-verse blockquote{margin:0}
.hs-legacy-verse p{font-family:Georgia,serif;font-size:clamp(1.25rem,2.4vw,1.6rem);line-height:1.5;color:#f3ead6}
.hs-legacy-verse p:before{content:'“';display:block;font-size:4.5rem;line-height:.6;color:var(--gold);margin-bottom:.5rem}
.hs-legacy-verse p{quotes:none}
.hs-legacy-verse figcaption{font-size:.8125rem;font-weight:700;letter-spacing:.16em;color:var(--gold)}
.hs-legacy h2{font-size:clamp(2.2rem,4.5vw,3.6rem);margin-bottom:1.25rem}
.hs-legacy h2 em{color:var(--gold);font-size:.75em}
.hs-legacy>p{max-width:40rem;margin:0 auto 2rem;color:#d7e1ea;font-size:1.075rem}
.hs-legacy-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:1rem}
.hs .button.outline{border:1px solid var(--gold);color:var(--gold)}
.hs .button.outline:hover{background:var(--gold);color:var(--deep)}
.hs-legacy a:focus-visible{outline-color:var(--gold)}

/* Tablet */
@media(max-width:1000px){
  .hs-pastor-grid{grid-template-columns:repeat(2,1fr);gap:3rem 2rem;max-width:640px}
  .hs-era{gap:3.5rem}
}
/* Mobile */
@media(max-width:760px){
  .hs-hero{min-height:auto;padding:5rem 1.25rem 3.5rem;background-position:center,center,center 40%}
  .hs-hero-intro{font-size:1.075rem}
  .hs-hero-credit{position:static;margin-top:1.5rem;display:none}
  .hs-timeline-wrap,.hs-pastors,.hs-gallery,.hs-legacy{padding-left:1.25rem;padding-right:1.25rem;padding-top:4rem;padding-bottom:4rem}
  .hs-heading{margin-bottom:2.5rem}
  .hs-timeline:before{left:9px}
  .hs-era{grid-template-columns:1fr;gap:1.5rem;padding:1.5rem 0 2.5rem 2.25rem}
  .hs-era:before{left:9px;top:2.4rem}
  .hs-era:nth-child(even) .hs-photo{order:0}
  .hs-era .hs-photo,.hs-era:nth-child(odd) .hs-photo,.hs-era:nth-child(even) .hs-photo{transform:none;justify-self:stretch;max-width:none}
  .hs-era-text,.hs-era:nth-child(odd) .hs-era-text,.hs-era:nth-child(even) .hs-era-text{justify-self:stretch;max-width:none}
  .hs-photo{padding:.6rem .6rem 0}
  .hs-photo:before,.hs-photo:after{width:24px;height:24px}
  .hs-record summary{padding:1.25rem 3.75rem 1.25rem 1.25rem}
  .hs-record .full-history{padding:0 1.25rem 2rem}
  .hs-present{grid-template-columns:1fr;gap:1.5rem;padding:1.5rem}
  .hs-earlier{padding:1.5rem 1.25rem}
  .hs-filters{margin-top:-1rem;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding-bottom:.5rem;margin-left:-1.25rem;margin-right:-1.25rem;padding-left:1.25rem;padding-right:1.25rem;scrollbar-width:thin}
  .hs-filters button{white-space:nowrap;flex:none}
  .hs-masonry{columns:1}
  .hs-lb-nav{top:auto;bottom:1rem;transform:none}
  .hs-lb-nav.prev{left:calc(50% - 3.5rem)}.hs-lb-nav.next{right:calc(50% - 3.5rem)}
  .hs-lightbox img{max-height:70vh}
}
@media(max-width:520px){
  .hs-pastor-grid{grid-template-columns:1fr;max-width:300px}
  .hs-earlier li{padding:0 .7rem;font-size:1rem}
}
@media(prefers-reduced-motion:reduce){.hs-masonry figure,.hs-zoom:after{transition:none}}
