:root {
  --night: #041711;
  --forest: #082a20;
  --emerald: #14593f;
  --emerald-bright: #1c7a55;
  --gold: #cfa64a;
  --gold-light: #f1d889;
  --parchment: #f3ead2;
  --paper: #fffaf0;
  --burgundy: #6e2d2a;
  --ink: #17231f;
  --muted: #65716b;
  --line: rgba(80, 55, 22, .2);
  --shadow: 0 24px 60px rgba(4, 23, 17, .2);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--parchment);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: .22;
  background: radial-gradient(circle at 20% 10%, #fff, transparent 30%), repeating-linear-gradient(90deg, rgba(69,47,17,.03) 0 1px, transparent 1px 7px);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 100; padding: .7rem 1rem; color: #fff; background: var(--forest); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.shell { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
h1, h2, h3, .brand strong { font-family: Georgia, "Times New Roman", serif; }
.eyebrow { margin: 0 0 .55rem; color: var(--emerald); font-size: .73rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 7vw, 6.2rem); letter-spacing: -.045em; }
h2 { margin-bottom: 1rem; font-size: clamp(1.8rem, 3.5vw, 2.7rem); letter-spacing: -.035em; }
h3 { margin-bottom: .7rem; font-size: 1.2rem; }
p { margin-top: 0; }

.ceremonial-masthead { color: #fff; background: #03120d; text-align: center; }
.home-image-masthead { position: relative; overflow: hidden; background: #03120d; }
.home-image-masthead > img { display: block; width: 100%; height: auto; margin: 0 auto; }
.home-image-masthead::before, .home-image-masthead::after { content: ""; position: absolute; z-index: 2; top: 50%; width: clamp(90px, 14vw, 200px); aspect-ratio: 1; pointer-events: none; background-position: center; background-size: contain; background-repeat: no-repeat; transform: translateY(-50%); filter: drop-shadow(0 8px 12px rgba(0,0,0,.45)); }
.home-image-masthead::before { left: clamp(12px, 4vw, 72px); background-image: url('../images/gold-palm.webp'); }
.home-image-masthead::after { right: clamp(12px, 4vw, 72px); background-image: url('../images/gold-patron.webp'); }
.mobile-identity { display: none; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.masthead-stack { padding-block: .58rem .7rem; }
.masthead-level p { margin: 0; }
.parent-organization { padding: .38rem .75rem .5rem; background: rgba(0,0,0,.16); border-radius: 9px 9px 0 0; }
.masthead-organization { color: var(--gold-light); font-family: Georgia, "Times New Roman", serif; font-size: clamp(.58rem, .8vw, .7rem); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.masthead-leader-line { margin-top: .2rem !important; color: rgba(255,255,255,.86); font-family: Georgia, "Times New Roman", serif; font-size: clamp(.56rem, .72vw, .68rem); font-weight: 700; letter-spacing: .025em; }
.council-identity { padding: .52rem 1rem; color: var(--gold-light); background: rgba(20,89,63,.34); }
.council-identity p { font-family: Georgia, "Times New Roman", serif; font-size: clamp(.95rem, 1.8vw, 1.3rem); font-weight: 700; letter-spacing: .035em; white-space: nowrap; }
.current-leader { padding: 0 .75rem .48rem; background: rgba(28,122,85,.2); border-radius: 0 0 9px 9px; }
.current-leader .masthead-leader-line { margin-top: 0 !important; }
.compact-masthead { color: #fff; background: linear-gradient(180deg, #03120d, var(--forest)); text-align: center; }
.compact-masthead .shell { padding-block: .58rem .62rem; }
.compact-council, .compact-leader { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.compact-council { color: var(--gold-light); font-size: clamp(.88rem, 1.5vw, 1.08rem); }
.compact-leader { margin-top: .12rem; color: rgba(255,255,255,.78); font-size: clamp(.56rem, .72vw, .68rem); }

.site-header { position: sticky; top: 0; z-index: 40; color: #fff; background: rgba(8,42,32,.96); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.brand strong { display: block; color: var(--gold-light); font-size: .94rem; letter-spacing: .045em; }
.brand span { display: block; color: rgba(255,255,255,.64); font-size: .61rem; letter-spacing: .13em; text-transform: uppercase; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.27); border-radius: 50%; font-size: 1.15rem; cursor: pointer; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: clamp(.85rem, 1.8vw, 1.65rem); }
.primary-nav a { position: relative; padding: .4rem 0; color: rgba(255,255,255,.78); font-family: Arial, Helvetica, sans-serif; font-size: .84rem; font-weight: 800; line-height: 1.2; white-space: nowrap; text-decoration: none; }
.primary-nav a.members-nav-link { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
.members-nav-link::before { content: ""; display: block; flex: none; width: 14px; height: 16px; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1d889' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--gold); transition: right .2s ease; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--gold-light); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { right: 0; }
.home-page .gateway-card h3 { font-size: 1.42rem; }
.home-page .gateway-card p { margin-bottom: .45rem; font-size: .92rem; }
.home-page .gateway-card strong { font-size: .88rem; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .55rem; padding: .78rem 1.15rem; border: 1px solid transparent; border-radius: 999px; font-size: .82rem; 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-gold { color: var(--forest); background: var(--gold-light); box-shadow: 0 12px 28px rgba(207,166,74,.2); }
.button-outline { color: #fff; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.28); }
.button-green { color: #fff; background: var(--emerald); }

.home-hero { position: relative; min-height: 720px; display: grid; align-items: center; overflow: hidden; color: #fff; background: linear-gradient(105deg, rgba(4,23,17,.98) 0%, rgba(8,42,32,.9) 44%, rgba(8,42,32,.4) 72%, rgba(8,42,32,.16) 100%), url('../images/temple.webp') center right 10% / auto 104% no-repeat, var(--forest); }
.home-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 67% 34%, rgba(241,216,137,.3), transparent 25%), repeating-linear-gradient(90deg, transparent 0 84px, rgba(255,255,255,.022) 85px); }
.home-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 130px; background: linear-gradient(transparent, rgba(4,23,17,.88)); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 720px) 280px; gap: 3rem; align-items: center; padding: 5.7rem 0 8.5rem; }
.hero-copy .kicker { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; color: var(--gold-light); font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero-copy .kicker::before { content: ""; width: 42px; height: 1px; background: var(--gold); }
.hero-copy h1 { max-width: 740px; margin-bottom: 1.15rem; }
.home-page .hero-copy h1 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.65rem); letter-spacing: -.025em; }
.hero-copy h1 span { color: var(--gold-light); }
.hero-copy > p { max-width: 650px; margin-bottom: 1.8rem; color: rgba(255,255,255,.74); font-size: clamp(1rem, 1.6vw, 1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.spinning-seal { position: relative; display: grid; place-items: center; padding: 1rem; }
.spinning-seal::before { content: ""; position: absolute; width: 112%; aspect-ratio: 1; border: 1px solid rgba(241,216,137,.42); border-radius: 50%; box-shadow: 0 0 0 10px rgba(207,166,74,.05), 0 0 70px rgba(207,166,74,.18); }
.spinning-seal img { position: relative; width: 215px; filter: drop-shadow(0 18px 28px rgba(0,0,0,.38)); }
.home-page .spinning-seal { width: 165px; justify-self: end; padding: .45rem; }
.home-page .spinning-seal img { width: 145px; }
.hero-purpose { margin: -.35rem 0 1rem !important; color: var(--gold-light) !important; font-family: Georgia, "Times New Roman", serif; font-size: clamp(.92rem, 1.4vw, 1.08rem) !important; font-style: italic; }

.gateway { position: relative; z-index: 5; margin-top: -3.6rem; padding-bottom: 6rem; }
.gateway-panel { position: relative; isolation: isolate; padding: clamp(.75rem, 1.5vw, 1.2rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.gateway-panel::before, .gateway-panel::after { content: ""; position: absolute; z-index: 0; top: 13%; bottom: 6%; width: 104px; pointer-events: none; opacity: .72; background: url('../images/green-column.webp') center / contain no-repeat; mix-blend-mode: multiply; }
.gateway-panel::before { left: -83px; }
.gateway-panel::after { right: -83px; }
.gateway-panel > * { position: relative; z-index: 1; }
.section-intro { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-intro > div { max-width: 720px; }
.section-intro > p { max-width: 390px; margin-bottom: .3rem; color: var(--muted); }
.gateway-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.gateway-card { position: relative; min-height: 205px; display: flex; flex-direction: column; overflow: hidden; padding: .7rem; color: var(--ink); background: #f8f1df; border: 1px solid var(--line); border-radius: 17px; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.gateway-card:hover { transform: translateY(-7px); box-shadow: 0 20px 40px rgba(4,23,17,.14); }
.gateway-card::after { content: ""; position: absolute; right: -18px; bottom: -28px; width: 130px; height: 130px; opacity: .09; background: var(--emerald); border-radius: 50%; }
.gateway-number { color: var(--burgundy); font-family: Georgia, serif; font-size: .7rem; font-weight: 700; letter-spacing: .14em; }
.gateway-card img { width: 78px; height: 78px; margin: 1rem 0; object-fit: contain; object-position: left center; }
.gateway-symbol { width: 78px; height: 78px; display: grid; place-items: center; margin: 1rem 0; color: var(--gold); background: var(--forest); border-radius: 50%; font-family: Georgia, serif; font-size: 2.4rem; }
.gateway-card h3 { margin-bottom: .35rem; }
.gateway-card p { color: var(--muted); font-size: .82rem; }
.gateway-card strong { margin-top: auto; color: var(--emerald); font-size: .78rem; }

.home-page .gateway { margin-top: 0; padding-bottom: 1.75rem; }
.home-page .gateway .section-intro { gap: 1rem; margin-bottom: .9rem; }
.home-page .gateway .section-intro h2 { margin-bottom: 0; }
.home-page .gateway-card { min-height: 180px; padding: .55rem; }
.home-page .gateway-card img, .home-page .gateway-symbol { margin: .4rem 0; }
.home-page .footer-grid { gap: 1.5rem; padding: 2rem 0; }
.home-page .footer-bottom { padding: .7rem 0 1rem; }
.welcome-section { position: relative; z-index: 5; margin-top: -3.6rem; padding: 0 0 1.25rem; }
.welcome-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 270px); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; padding: clamp(.55rem, 1vw, .9rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 42px rgba(4,23,17,.1); }
.welcome-copy { padding: clamp(.5rem, 1.4vw, 1rem); }
.welcome-copy .eyebrow { color: var(--burgundy); }
.welcome-copy h2 { margin-bottom: .65rem; color: var(--forest); font-size: clamp(1.8rem, 3vw, 2.65rem); }
.welcome-copy > p:not(.eyebrow) { margin-bottom: .65rem; color: var(--ink); font-size: .96rem; line-height: 1.7; }
.welcome-copy > p:last-child { margin-bottom: 0; }
.welcome-signature { margin-top: .85rem; padding-top: .65rem; border-top: 1px solid var(--line); font-family: Georgia, "Times New Roman", serif; }
.welcome-signature strong { display: inline-block; color: var(--forest); font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive; font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 400; line-height: 1.45; }
.welcome-portrait { width: 100%; max-width: 270px; justify-self: center; margin: 0; padding: .25rem; overflow: hidden; background: var(--forest); border: 2px solid var(--gold); border-radius: 18px; }
.welcome-portrait img { width: 100%; max-height: 340px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: 12px; }
@media (max-width: 720px) {
  .home-page .gateway { padding-bottom: 1.25rem; }
  .home-page .gateway-card { min-height: 0; }
  .home-page .feature-section { padding: 2rem 0; }
  .home-page .quote-section { padding: 1.75rem 0; }
  .welcome-section { padding-bottom: 1rem; }
  .welcome-layout { grid-template-columns: 1fr; gap: .5rem; }
  .welcome-copy { padding: .45rem; }
  .welcome-portrait { max-width: 210px; }
  .welcome-portrait img { max-height: 260px; }
}

.feature-section { padding: 6rem 0; }
.feature-section.dark { color: #fff; background: var(--forest); }
.feature-section.dark .eyebrow { color: var(--gold-light); }
.feature-section.dark .section-intro > p { color: rgba(255,255,255,.64); }
.feature-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; align-items: stretch; }
.feature-media { min-height: 380px; overflow: hidden; background: #000; border: 7px solid rgba(255,255,255,.08); border-radius: var(--radius); }
.feature-media iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
.feature-copy { padding: clamp(1rem, 2vw, 1.7rem); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); }
.feature-copy h2 { font-size: clamp(2rem, 4vw, 3rem); }
.feature-copy p { color: rgba(255,255,255,.68); }
.mini-list { display: grid; gap: .5rem; margin: .9rem 0; }
.mini-item { padding: .6rem .8rem; background: rgba(255,255,255,.06); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; }
.mini-item strong { display: block; font-family: Georgia, serif; }
.mini-item span { display: block; color: rgba(255,255,255,.58); font-size: .75rem; }

.quote-section { padding: 5.5rem 0; text-align: center; background: var(--paper); }
.quote-section blockquote { max-width: 900px; margin: 0 auto 1rem; color: var(--forest); font-family: Georgia, serif; font-size: clamp(1.8rem, 4.2vw, 3.6rem); line-height: 1.23; }
.quote-section cite { color: var(--muted); font-style: normal; font-weight: 700; }

.page-hero { position: relative; min-height: 410px; display: grid; align-items: center; overflow: hidden; color: #fff; background: linear-gradient(100deg, rgba(4,23,17,.98), rgba(8,42,32,.84) 60%, rgba(8,42,32,.5)), url('../images/temple.webp') center 45% / cover no-repeat; }
.page-hero::before, .coming-soon::before { content: ""; position: absolute; inset: 0; opacity: .23; background: repeating-linear-gradient(90deg, transparent 0 90px, rgba(255,255,255,.04) 91px); }
.coming-soon::after { content: ""; position: absolute; inset: 3% 2%; pointer-events: none; opacity: .72; background: url('../images/green-column.webp') left center / auto 92% no-repeat, url('../images/green-column.webp') right center / auto 92% no-repeat; mix-blend-mode: multiply; }
.page-hero .shell { position: relative; z-index: 2; padding-block: 4.5rem; }
.breadcrumbs { display: flex; gap: .45rem; margin-bottom: 1.25rem; color: rgba(255,255,255,.58); font-size: .72rem; font-weight: 700; }
.breadcrumbs a { color: var(--gold-light); text-decoration: none; }
.page-hero h1 { max-width: none; margin-bottom: .65rem; font-size: clamp(1.6rem, 2.8vw, 2.75rem); white-space: nowrap; }
.page-hero p { max-width: 700px; color: rgba(255,255,255,.72); font-size: 1.05rem; }
.page-main { padding: 5.5rem 0 7rem; }

.lecture-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 1.5rem; }
.lecture-list { display: grid; gap: .65rem; align-content: start; }
.lecture-button { width: 100%; display: grid; grid-template-columns: 44px 1fr; gap: .7rem; align-items: center; padding: .7rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.lecture-button:hover, .lecture-button[aria-pressed="true"] { color: #fff; background: var(--forest); border-color: var(--forest); }
.play-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--forest); background: var(--gold-light); border-radius: 50%; font-size: .78rem; }
.lecture-button strong { display: block; font-family: Georgia, serif; }
.lecture-button small { display: block; opacity: .64; font-size: .7rem; }
.video-stage { position: sticky; top: 100px; min-height: 520px; overflow: hidden; background: var(--night); border: 7px solid #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.video-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-stage [hidden] { display: none !important; }
.video-local-preview { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; color: #fff; background: var(--night); text-decoration: none; }
.video-local-preview > img { width: 100%; height: 100%; min-height: 0; object-fit: cover; opacity: .78; }
.video-local-preview > span { display: grid; gap: .3rem; padding: 1rem 1.15rem; background: linear-gradient(135deg, #03120d, var(--forest)); }
.video-local-preview strong { color: var(--gold-light); font-family: Georgia, serif; font-size: 1.35rem; }
.video-local-preview small { color: rgba(255,255,255,.75); }
.video-local-preview b { margin-top: .25rem; color: #fff; font-size: .78rem; }

.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; }
.resource-card { min-height: 210px; display: flex; flex-direction: column; padding: .75rem; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 30px rgba(4,23,17,.08); }
.resource-card .tag { align-self: flex-start; margin-bottom: .8rem; padding: .26rem .58rem; color: var(--burgundy); background: #f5e5d6; border-radius: 999px; font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.resource-card p { color: var(--muted); font-size: .86rem; }
.resource-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; padding-top: 1rem; border-top: 1px solid var(--line); }
.resource-meta small { margin-right: auto; color: var(--muted); font-weight: 700; }
.resource-meta a { color: var(--emerald); font-size: .76rem; font-weight: 800; text-decoration: none; }
.resource-meta a:hover { text-decoration: underline; }
.solo-card { max-width: 760px; margin-inline: auto; }
.members-page .page-main { padding-bottom: 3.5rem; }
.members-page .resource-grid { display: block; }
.members-page .solo-card { margin-inline: 0; }
.members-access-note { margin: 1rem 0 0; color: var(--muted); font-size: .83rem; }
.memorial-card { grid-column: span 2; }
.youth-program-card { grid-column:span 2; display:grid; grid-template-columns:170px 1fr; gap:1rem; min-height:0; padding:.7rem; overflow:hidden; background:linear-gradient(135deg,#fffdf7 0,#fbf0ce 56%,#f3d77d 100%); border-color:#c99a2f; }
.youth-program-heading { grid-column:1/-1; display:flex; flex-wrap:wrap; justify-content:space-between; gap:.45rem 1rem; align-items:center; padding:.1rem .2rem .45rem; border-bottom:1px solid rgba(6,67,48,.22); }
.youth-program-heading .tag { margin:0; }
.youth-program-heading .youth-kicker { margin:0; }
.youth-program-flyer { position:relative; display:block; width:170px; height:240px; align-self:start; overflow:hidden; background:#071912; border:2px solid #d0a334; border-radius:13px; box-shadow:0 10px 24px rgba(4,23,17,.2); }
.youth-program-flyer img { width:100%; height:100%; display:block; object-fit:contain; object-position:center top; transition:transform .3s ease; }
.youth-program-flyer span { position:absolute; right:.5rem; bottom:.5rem; left:.5rem; padding:.45rem .6rem; color:#fff; background:rgba(4,23,17,.9); border:1px solid rgba(241,216,137,.55); border-radius:8px; font-size:.7rem; font-weight:800; text-align:center; }
.youth-program-flyer:hover img { transform:scale(1.025); }
.youth-program-copy { display:flex; flex-direction:column; padding:.25rem .35rem; }
.youth-program-card .tag { color:#fff; background:var(--forest); }
.youth-kicker { margin:0 0 .25rem; color:var(--burgundy)!important; font-size:.68rem!important; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.youth-program-card h3 { margin-bottom:.45rem; color:var(--forest); font-size:clamp(1.5rem,3vw,2.25rem); }
.youth-program-card p { max-width:690px; }
.youth-program-pillars { display:flex; flex-wrap:wrap; gap:.4rem; margin:.45rem 0 .75rem; padding:0; list-style:none; }
.youth-program-pillars li { padding:.3rem .58rem; color:#fff; background:var(--burgundy); border-radius:999px; font-size:.65rem; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.youth-program-card .resource-meta { border-top-color:rgba(6,67,48,.24); }
.youth-program-card .resource-meta a { padding:.48rem .68rem; color:#fff; background:var(--forest); border-radius:8px; }
.youth-program-card .resource-meta a:last-child { color:var(--forest); background:#fff; border:1px solid var(--forest); }
.memorial-music { margin-top: 1.15rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.memorial-music h4 { margin: 0 0 .85rem; color: var(--forest); font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; }
.music-track { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(250px, 1.3fr); gap: 1rem; align-items: center; padding: .65rem 0; }
.music-track + .music-track { border-top: 1px solid rgba(80,55,22,.12); }
.music-track strong { font-size: .8rem; }
.music-track audio { width: 100%; height: 40px; }

.coming-soon { position: relative; min-height: 690px; display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; background: linear-gradient(rgba(4,23,17,.83), rgba(4,23,17,.94)), url('../images/history/lineage.jpg') center top / cover no-repeat; }
.coming-soon .shell { position: relative; z-index: 2; }
.coming-emblem { width: 120px; margin: 0 auto 1.5rem; filter: drop-shadow(0 12px 24px #000); }
.coming-soon h1 { margin-bottom: 1rem; }
.coming-soon p { max-width: 670px; margin: 0 auto 1.8rem; color: rgba(255,255,255,.72); }

.official-link { max-width: 820px; margin-inline: auto; display: grid; grid-template-columns: 180px 1fr; gap: 2rem; align-items: center; padding: clamp(1.4rem, 5vw, 3.5rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.official-link img { width: 165px; margin-inline: auto; }
.official-link p { color: var(--muted); }
.link-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.link-card-art { height: 104px; display: flex; align-items: center; margin: -.15rem 0 1rem; }
.link-card-art img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; object-position: left center; }
.link-card-art-ifamm img { width: 100%; height: auto; }
.link-card-art-facebook img { width: 170px; height: auto; }
.links-contact { margin-top: 2rem; }
.links-page .page-main { padding-top: 2rem; padding-bottom: 3.25rem; }
.links-page .section-intro { margin-bottom: .9rem; }
.links-page .link-directory { gap: .55rem; }
.links-page .link-directory .resource-card { min-height: 220px; padding: .65rem; }
.links-page .link-directory .tag { margin-bottom: .45rem; }
.links-page .link-card-art { height: 76px; margin: 0 0 .45rem; }
.links-page .link-card-art-facebook img { width: 125px; }
.links-page .link-directory h3 { margin-bottom: .35rem; font-size: 1.05rem; }
.links-page .link-directory p { margin-bottom: .55rem; font-size: .8rem; }
.links-page .link-directory .resource-meta { padding-top: .55rem; }
.links-page .links-contact { max-width: 700px; grid-template-columns: 90px minmax(0, 1fr); gap: .9rem; margin-top: 1rem; padding: 1rem 1.2rem; }
.links-page .links-contact img { width: 80px; }
.links-page .links-contact .eyebrow { margin-bottom: .2rem; font-size: .62rem; }
.links-page .links-contact h2 { margin-bottom: .35rem; font-size: clamp(1.1rem, 2vw, 1.5rem); overflow-wrap: anywhere; }
.links-page .links-contact p:not(.eyebrow) { margin-bottom: .6rem; font-size: .78rem; }
.links-page .links-contact .button { min-height: 42px; padding: .5rem .8rem; font-size: .72rem; }
@media (max-width: 560px) {
  .links-page .links-contact { grid-template-columns: 1fr; gap: .45rem; padding: .8rem; text-align: center; }
  .links-page .links-contact img { width: 62px; }
}

.site-footer { color: rgba(255,255,255,.68); background: var(--night); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr; gap: 3rem; padding: 4rem 0; }
.footer-brand { display: block; }
.footer-brand h3 { margin-bottom: .45rem; color: var(--gold-light); }
.footer-brand p, .footer-links a { font-size: .78rem; }
.footer-links { display: grid; align-content: start; gap: .45rem; }
.footer-links strong { margin-bottom: .4rem; color: #fff; font-family: Georgia, serif; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { padding: 1rem 0 1.4rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .68rem; text-align: center; }

@media (max-width: 980px) {
  .gateway-panel::before, .gateway-panel::after, .coming-soon::after { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .primary-nav { position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem); display: none; max-height: calc(100dvh - 5rem); overflow-y: auto; overscroll-behavior: contain; padding: 1rem; background: var(--forest); border: 1px solid rgba(255,255,255,.15); border-radius: 16px; box-shadow: var(--shadow); }
  .primary-nav.open { display: grid; }
  .primary-nav a { padding: .55rem; }
  .hero-grid { grid-template-columns: 1fr 210px; }
  .gateway-grid { grid-template-columns: repeat(2, 1fr); }
  .lecture-layout { grid-template-columns: 1fr; }
  .video-stage { position: relative; top: auto; min-height: 460px; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 1.2rem, 1180px); }
  .masthead-stack { padding-block: .45rem .55rem; }
  .council-identity p { font-size: .94rem; white-space: normal; }
  .brand span { display: none; }
  .home-hero { min-height: 710px; background-position: 60% center; }
  .hero-grid { grid-template-columns: 1fr; padding: 4.6rem 0 7.6rem; }
  .spinning-seal { display: none; }
  .section-intro { display: block; }
  .gateway-grid, .resource-grid, .feature-grid, .footer-grid { grid-template-columns: 1fr; }
  .gateway-card { min-height: 205px; }
  .feature-media, .feature-media iframe { min-height: 280px; }
  .video-stage { min-height: 280px; border-width: 4px; }
  .official-link { grid-template-columns: 1fr; text-align: center; }
  .link-directory { grid-template-columns: 1fr; }
  .link-card-art { height: auto; min-height: 86px; }
  .link-card-art-ifamm img { max-width: 520px; }
  .page-main { padding: 4rem 0 5rem; }
  .memorial-card { grid-column: auto; }
  .youth-program-card { grid-column:auto; grid-template-columns:1fr; }
  .youth-program-flyer { width:160px; height:226px; min-height:0; margin-inline:auto; }
  .youth-program-flyer img { height:100%; max-height:none; object-fit:contain; }
  .music-track { grid-template-columns: 1fr; gap: .4rem; }
}

/* Study plan */
.study-lead { max-width: 860px; margin: 0 auto 2.25rem; text-align: center; }
.study-lead p { color: var(--muted); }
.officer-study { margin: 0 0 2rem; padding: 1.25rem; background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(247,239,213,.92)); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 30px rgba(4,23,17,.08); }
.officer-study-heading { max-width: 760px; margin: 0 auto 1.25rem; text-align: center; }
.officer-study-heading h2 { margin: .35rem 0 .4rem; }
.officer-study-heading p:last-child { margin-bottom: 0; color: var(--muted); }
.officer-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; max-width: 760px; margin: 0 auto; }
.officer-video-card { overflow: hidden; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 9px 22px rgba(4,23,17,.1); text-decoration: none; }
.officer-video-card:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(4,23,17,.16); }
.officer-video-image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night); }
.officer-video-image img { width: 100%; height: 100%; object-fit: cover; }
.officer-video-play { position: absolute; left: 50%; top: 50%; display: grid; width: 58px; height: 58px; place-items: center; color: #fff; background: rgba(128, 20, 31, .92); border: 3px solid rgba(255,255,255,.9); border-radius: 50%; box-shadow: 0 5px 18px rgba(0,0,0,.35); transform: translate(-50%, -50%); }
.officer-video-card:hover .officer-video-play { background: var(--emerald); transform: translate(-50%, -50%) scale(1.08); }
.officer-video-copy { display: grid; gap: .25rem; padding: .85rem .9rem 1rem; }
.officer-video-copy strong { font-family: Georgia, serif; font-size: 1.35rem; }
.officer-video-copy > span:last-child { color: var(--emerald); font-size: .78rem; font-weight: 800; }
.officer-video-label { color: var(--burgundy); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.solomon-series { margin-top:2rem; margin-bottom:0; }
.solomon-series-first { margin-top:0; margin-bottom:2rem; }
.solomon-series .officer-study-heading { max-width:none; }
.solomon-series #solomon-series-title { font-size:clamp(.5rem,2.55vw,2rem); line-height:1.08; letter-spacing:-.035em; text-wrap:nowrap; white-space:nowrap; }
.solomon-series-grid { grid-template-columns:repeat(3,minmax(0,1fr)); max-width:1000px; }
.solomon-series .officer-video-copy strong { font-size:1.15rem; }
.phase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.phase-card { display: flex; flex-direction: column; min-height: 235px; padding: .8rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 30px rgba(4,23,17,.08); text-decoration: none; }
.phase-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(4,23,17,.13); }
.phase-card .phase-number { color: var(--burgundy); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.phase-card h2 { margin: .7rem 0 .5rem; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.phase-card p { color: var(--muted); }
.phase-card .phase-months { margin-top: auto; padding-top: 1rem; color: var(--emerald); font-size: .78rem; font-weight: 800; border-top: 1px solid var(--line); }
.teaching-method { margin-top: 2rem; padding: 1.6rem; color: #fff; background: var(--forest); border-radius: 18px; }
.method-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; margin-top: 1rem; }
.method-step { padding: .9rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; }
.method-step strong { display: block; margin-bottom: .3rem; color: var(--gold-light); font-family: Georgia, serif; }
.method-step span { color: rgba(255,255,255,.7); font-size: .75rem; }
.phase-nav { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.phase-nav a { padding: .55rem .8rem; color: var(--forest); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: .74rem; font-weight: 800; text-decoration: none; }
.phase-nav a:hover, .phase-nav a[aria-current="page"] { color: #fff; background: var(--forest); border-color: var(--forest); }
.lesson-stack { display: grid; gap: 1.25rem; }
.lesson-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 28px rgba(4,23,17,.07); }
.lesson-header { padding: 1.15rem; color: #fff; background: linear-gradient(120deg, var(--forest), var(--emerald)); }
.lesson-header .eyebrow { color: var(--gold-light); }
.lesson-header h2 { margin-bottom: .45rem; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.guiding-question { margin: 0; color: rgba(255,255,255,.82); font-family: Georgia, serif; font-size: 1.05rem; }
.lesson-body { padding: 1.15rem; }
.lesson-purpose { margin-bottom: 1.25rem; padding: 1rem 1.1rem; color: var(--forest); background: var(--paper); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; }
.lesson-columns { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.25rem; }
.lesson-card h3 { margin-bottom: .55rem; color: var(--forest); }
.study-list, .scripture-list { margin: 0; padding-left: 1.2rem; }
.study-list li, .scripture-list li { margin-bottom: .45rem; color: var(--muted); }
.scripture-list li { font-family: Georgia, serif; }
.lesson-application { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.25rem; }
.lesson-application section { padding: 1rem; background: #f8f1df; border-radius: 12px; }
.lesson-application p { margin: 0; color: var(--muted); }
.phase-next { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

@media (max-width: 900px) {
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-columns, .lesson-application { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .officer-video-grid, .solomon-series-grid, .phase-grid, .method-grid { grid-template-columns: 1fr; }
  .officer-study { padding: 1rem; }
  .phase-card { min-height: 220px; }
  .lesson-header, .lesson-body { padding: 1rem; }
  .phase-next { display: grid; }
}

/* Keep the ceremonial emblem visible in the mobile hero. */
@media (max-width: 720px) {
  .home-page .spinning-seal {
    display: grid;
    width: 120px;
    justify-self: center;
    margin: .25rem auto 0;
    padding: .4rem;
  }
  .home-page .spinning-seal::before { width: 108%; }
  .home-page .spinning-seal img { width: 104px; }
  .home-page .hero-grid { gap: .9rem; padding-bottom: 4.25rem; }
}

@media (max-width: 420px) {
  .home-page .spinning-seal { width: 110px; }
  .home-page .spinning-seal img { width: 96px; }
}

/* Refined Council identity, centered navigation, and reduced page length */
.masthead-stack { padding-block: .48rem .58rem; }
.parent-organization { padding: .3rem .75rem .4rem; }
.council-identity {
  padding: .58rem 1rem .5rem;
  color: #f8dda0;
  background: linear-gradient(90deg, rgba(20,89,63,.2), rgba(28,122,85,.46), rgba(20,89,63,.2));
  border-bottom: 1px solid rgba(241,216,137,.72);
}
.council-identity p {
  font-family: "Monotype Corsiva", "Segoe Script", "Apple Chancery", cursive;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: .01em;
  text-shadow: 0 2px 12px rgba(0,0,0,.65);
}
.current-leader { padding: .18rem .75rem .38rem; background: rgba(28,122,85,.16); }
.compact-masthead .shell { padding-block: .48rem .52rem; }
.compact-council { color: #f8dda0; font-size: clamp(1rem, 1.7vw, 1.22rem); letter-spacing: .035em; text-shadow: 0 2px 10px rgba(0,0,0,.55); }

.nav-wrap { position: relative; min-height: 62px; justify-content: center; gap: 1rem; }
.brand { display: none; }
.primary-nav { justify-content: center; gap: clamp(1.1rem, 2.4vw, 2.2rem); }
.sound-toggle {
  position: absolute;
  right: 0;
  margin: 0;
  padding: .38rem .62rem;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font: inherit;
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
}
.sound-toggle:hover, .sound-toggle:focus-visible { color: var(--gold-light); border-color: rgba(241,216,137,.55); }

.home-hero { min-height: 0; }
.hero-grid { gap: 2.5rem; padding: 1rem 0 3.6rem; }
.home-page .hero-grid { padding-top: .65rem; }
.gateway { padding-bottom: 4.5rem; }
.section-intro { gap: 1.6rem; margin-bottom: 1.6rem; }
.gateway-card { min-height: 205px; }
.gateway-card img { width: 68px; height: 68px; margin: .72rem 0; }
.gateway-symbol { width: 68px; height: 68px; margin: .72rem 0; font-size: 2.1rem; }
.feature-section { padding: 2.75rem 0; }
.quote-section { padding: 2.25rem 0; }
.page-hero { min-height: 0; }
.page-hero .shell { padding-block: 1.75rem 2.1rem; }
.page-main { padding: 4rem 0 5rem; }
.footer-grid { gap: 2.5rem; padding: 3rem 0; }

@media (max-width: 980px) {
  .menu-toggle { margin-inline: auto; }
}

@media (max-width: 720px) {
  .masthead-stack { padding-block: .38rem .46rem; }
  .council-identity { padding: .48rem .65rem .42rem; }
  .council-identity p { max-width: 34rem; margin-inline: auto; font-size: 1.4rem; line-height: 1.15; white-space: normal; }
  .home-hero { min-height: 0; }
  .hero-grid { padding: .8rem 0 4.25rem; }
  .home-page .hero-grid { padding-top: .55rem; }
  .gateway-card { min-height: 190px; }
  .page-main { padding: 3.25rem 0 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .spinning-seal img { content: url('../images/new-logo.webp'); }
}

/* History archive */
.history-hero { position: relative; overflow: hidden; padding: 2rem 0 2.35rem; color: #fff; text-align: center; background: linear-gradient(rgba(4,23,17,.78), rgba(4,23,17,.94)), url('../history/Lineage.webp') center 25% / cover no-repeat; }
.history-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, rgba(241,216,137,.2), transparent 32%); }
.history-hero-content { position: relative; z-index: 1; }
.history-hero h1 { max-width: none; margin: 0 auto .75rem; font-size: clamp(1.6rem, 2.8vw, 2.75rem); white-space: nowrap; }
.history-hero p:last-child { max-width: 760px; margin: 0 auto; color: rgba(255,255,255,.76); font-size: 1.05rem; }
.history-hero .eyebrow { color: var(--gold-light); }
.history-library { padding: 2.5rem 0 3.5rem; }
.history-intro { display: block; }
.history-intro > div { max-width: none; }
.history-intro h2 { white-space: nowrap; }
.history-instruction { margin: -.35rem 0 0; color: var(--muted); }
.history-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .55rem; }
.history-card { display: flex; flex-direction: column; overflow: hidden; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 30px rgba(4,23,17,.09); text-decoration: none; transition: transform .22s ease, box-shadow .22s ease; }
.history-card:hover { transform: translateY(-6px); box-shadow: 0 20px 42px rgba(4,23,17,.16); }
.history-card > img { width: 100%; height: 165px; padding: .45rem; object-fit: contain; object-position: center; background: radial-gradient(circle at center, #174d39, var(--night)); border-bottom: 4px solid var(--gold); }
.history-card > div { display: flex; flex: 1; flex-direction: column; padding: .75rem; }
.history-card span { color: var(--burgundy); font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.history-card h3 { margin: .55rem 0; font-size: 1.55rem; }
.history-card p { color: var(--muted); font-size: .84rem; }
.history-card strong { margin-top: auto; padding-top: .85rem; color: var(--emerald); font-size: .78rem; }
.history-coming { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; margin-top: 2rem; padding: 1.15rem; color: #fff; background: linear-gradient(120deg, var(--forest), var(--emerald)); border: 1px solid rgba(241,216,137,.35); border-radius: 18px; }
.history-coming img { width: 88px; }
.history-coming h2 { margin-bottom: .5rem; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.history-coming p:last-child { margin: 0; color: rgba(255,255,255,.74); }
.history-coming .eyebrow { color: var(--gold-light); }
.history-reader { padding: 2rem 0 4rem; background: linear-gradient(#f3ead2, #e4d3ad); }
.history-back { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.history-back a { color: var(--emerald); font-size: .8rem; font-weight: 800; text-decoration: none; }
.history-reader header { max-width: 820px; margin: 0 auto 1.7rem; text-align: center; }
.history-reader h1 { margin-bottom: .7rem; color: var(--forest); font-size: clamp(1.6rem, 2.8vw, 2.75rem); white-space: nowrap; }
.history-reader header > p:last-child { color: var(--muted); }
.history-poster { display: block; max-width: 980px; margin: 0 auto; background: var(--night); border: 7px solid var(--forest); border-radius: 12px; box-shadow: var(--shadow); }
.history-poster img { width: 100%; }
.poster-tip { margin: 1rem auto 0; color: var(--muted); font-size: .75rem; font-weight: 700; text-align: center; }
.interactive-lineage { position: relative; max-width: 980px; margin: 0 auto; overflow: hidden; background: var(--night); border: 7px solid var(--forest); border-radius: 12px; box-shadow: var(--shadow); }
.interactive-lineage > img { width: 100%; }
.lineage-hotspot { position: absolute; z-index: 2; top: var(--hotspot-top); left: 24%; width: 64%; height: 7.25%; padding: 0; overflow: visible; color: #fff; background: transparent; border: 2px solid transparent; border-radius: 9px; text-decoration: none; cursor: pointer; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.lineage-hotspot > span { position: absolute; right: .55rem; bottom: .35rem; padding: .28rem .48rem; color: #fff4c6; background: rgba(4,23,17,.9); border: 1px solid rgba(241,216,137,.78); border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.32); font-size: clamp(.48rem, .8vw, .68rem); font-weight: 800; opacity: 0; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease; }
.lineage-hotspot:hover, .lineage-hotspot:focus-visible { background: rgba(241,216,137,.12); border-color: var(--gold-light); box-shadow: 0 0 0 3px rgba(4,23,17,.45); outline: 0; }
.lineage-hotspot:hover > span, .lineage-hotspot:focus-visible > span { opacity: 1; transform: translateY(0); }
@media (hover: hover) and (pointer: fine) {
  .lineage-hotspot::after { content: ""; position: absolute; z-index: 5; top: 50%; right: 1.5%; width: clamp(125px, 20vw, 215px); aspect-ratio: 3 / 4; opacity: 0; pointer-events: none; background: #000 var(--lineage-preview) center / contain no-repeat; border: 4px solid var(--gold-light); border-radius: 9px; box-shadow: 0 14px 35px rgba(0,0,0,.58); transform: translateY(-50%) scale(.94); transition: opacity .18s ease, transform .18s ease; }
  .lineage-hotspot:hover { z-index: 6; }
  .lineage-hotspot:hover::after { opacity: 1; transform: translateY(-50%) scale(1); }
}
.lineage-mobile-list { display: none; }
.lineage-dialog { width: min(880px, calc(100% - 1.2rem)); max-height: 94vh; padding: 0; overflow: auto; color: #fff; background: var(--night); border: 2px solid var(--gold); border-radius: 16px; box-shadow: 0 30px 90px rgba(0,0,0,.62); }
.lineage-dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(4px); }
.lineage-dialog-bar { position: sticky; z-index: 2; top: 0; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .8rem 1rem; background: rgba(4,23,17,.96); border-bottom: 1px solid rgba(241,216,137,.35); }
.lineage-dialog-bar h2 { margin: 0; color: var(--gold-light); font-size: clamp(1.15rem, 3vw, 1.75rem); letter-spacing: 0; }
.lineage-dialog-bar button { width: 42px; height: 42px; flex: 0 0 42px; padding: 0; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lineage-dialog > img { width: 100%; max-height: 76vh; object-fit: contain; background: #000; }
.lineage-dialog > p { margin: 0; padding: .7rem 1rem 1rem; color: rgba(255,255,255,.7); font-size: .78rem; text-align: center; }

/* Shared emblem placement for every main menu page hero. */
.documents-hero .page-hero-grid h1 { font-size: clamp(1.5rem, 2.6vw, 2.5rem); letter-spacing: -.035em; }
.documents-hero .breadcrumbs { margin-bottom: 2.95rem; }
.documents-intro { display: block; padding-top: 1.7rem; text-align: center; }
.documents-intro > div { max-width: none; }
.documents-intro h2 { margin-bottom: 0; font-size: clamp(1.65rem, 3vw, 2.4rem); }
.page-hero { height: auto; min-height: 220px; background-position: center 45%; }
.page-hero .shell { padding-block: 1.25rem; }
.page-hero > .shell { height: auto; min-height: 220px; }
.page-hero > .shell:not(.page-hero-grid) { display: flex; flex-direction: column; justify-content: center; }
.page-hero + .page-main { padding-top: 2.25rem; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: clamp(1.25rem, 4vw, 3.5rem); align-items: start; }
.page-hero-copy { min-width: 0; }
.page-hero-grid .page-hero-seal { width: 168px; align-self: center; justify-self: end; padding: .65rem; }
.page-hero-grid .page-hero-seal::before { width: 106%; }
.page-hero-grid .page-hero-seal img { width: 145px; height: auto; }

@media (max-width: 720px) {
  .page-hero { height: auto; min-height: 225px; background-position: center 45%; background-size: cover, auto 330px; }
  .page-hero > .shell { min-height: 225px; }
  .page-hero + .page-main { padding-top: 1.75rem; }
  .page-hero h1 { font-size: clamp(.85rem, 3.7vw, 1.5rem); letter-spacing: -.04em; }
  .page-hero-grid { grid-template-columns: minmax(0, 1fr) 86px; gap: .2rem .75rem; align-content: start; }
  .page-hero-grid .page-hero-copy { display: contents; }
  .page-hero-grid .breadcrumbs { grid-column: 1; grid-row: 1; margin-bottom: .5rem; }
  .documents-hero .breadcrumbs { margin-bottom: .5rem; }
  .page-hero-grid .eyebrow { grid-column: 1; grid-row: 2; }
  .page-hero-grid h1 { grid-column: 1 / -1; grid-row: 3; }
  .documents-hero .page-hero-grid h1 { font-size: clamp(.85rem, 3.7vw, 1.5rem); }
  .page-hero-grid .page-hero-copy > p:not(.eyebrow) { grid-column: 1 / -1; grid-row: 4; }
  .page-hero-grid .page-hero-seal { display: grid; grid-column: 2; grid-row: 1 / span 2; width: 82px; justify-self: end; padding: .3rem; }
  .page-hero-grid .page-hero-seal::before { width: 102%; }
  .page-hero-grid .page-hero-seal img { width: 72px; }
}

@media (max-width: 720px) {
  .home-image-masthead > img { display: none; }
  .home-image-masthead::before, .home-image-masthead::after { width: clamp(42px, 12vw, 62px); }
  .home-image-masthead::before { left: .2rem; }
  .home-image-masthead::after { right: .2rem; }
  .mobile-identity { position: relative; isolation: isolate; display: block; padding: .8rem .9rem 1rem; color: var(--gold-light); text-align: center; background: radial-gradient(circle at 50% -30%, rgba(28,122,85,.48), transparent 65%), linear-gradient(155deg, #03120d, #082a20 54%, #02110b); border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
  .mobile-identity::before { content: ""; position: absolute; inset: .38rem; pointer-events: none; border: 1px solid rgba(241,216,137,.38); border-radius: 12px; }
  .mobile-identity > * { position: relative; z-index: 1; }
  .mobile-identity p { margin: 0; }
  .mobile-organization { font-family: Georgia, "Times New Roman", serif; font-size: clamp(.78rem, 2.75vw, .92rem); font-weight: 700; line-height: 1.25; letter-spacing: .055em; text-transform: uppercase; }
  .mobile-meeks { margin-top: .3rem !important; color: rgba(255,255,255,.9); font-family: Georgia, "Times New Roman", serif; font-size: clamp(.9rem, 3.7vw, 1.08rem); font-weight: 700; line-height: 1.25; }
  .mobile-meeks span, .mobile-wheeler span { display: block; color: rgba(255,255,255,.72); font-family: Arial, Helvetica, sans-serif; font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
  .mobile-council { width: min(calc(100% - 6.25rem), 480px); margin: .55rem auto .4rem; padding: .55rem .4rem .6rem; color: var(--forest); background: linear-gradient(105deg, #e5cb91, #fff5da 50%, #d7b36c); border: 2px solid var(--gold); border-radius: 11px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
  .mobile-council-name, .mobile-council-title { font-family: Georgia, "Times New Roman", serif; font-weight: 700; text-wrap: balance; }
  .mobile-council-name { font-size: clamp(1.2rem, 5.3vw, 1.7rem); line-height: 1.08; }
  .mobile-council-title { margin-top: .12rem !important; font-size: clamp(1rem, 4.2vw, 1.25rem); line-height: 1.16; }
  .mobile-wheeler { color: #fff3ce; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1rem, 4vw, 1.2rem); font-weight: 700; line-height: 1.25; }
  .mobile-values { margin-top: .45rem !important; color: rgba(241,216,137,.8); font-size: .62rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
  .mobile-values span { padding: 0 .2rem; font-size: .48rem; vertical-align: middle; }
}

@media (max-width: 360px) {
  .home-image-masthead::before, .home-image-masthead::after { width: 36px; }
  .mobile-council { width: min(calc(100% - 5.25rem), 480px); }
}

@media (max-width: 860px) {
  .history-grid { grid-template-columns: 1fr; }
  .history-card { display: grid; grid-template-columns: minmax(145px, .65fr) 1fr; }
  .history-card > img { height: 100%; min-height: 220px; padding: .65rem; border-right: 4px solid var(--gold); border-bottom: 0; }
}

@media (max-width: 560px) {
  .history-hero { padding: 1.75rem 0 2rem; }
  .history-hero h1 { font-size: clamp(.95rem, 3.8vw, 1.4rem); }
  .history-library { padding: 2rem 0 2.75rem; }
  .history-intro h2 { white-space: normal; }
  .history-card { display: flex; }
  .history-card > img { height: 190px; min-height: 0; border-right: 0; border-bottom: 4px solid var(--gold); }
  .history-coming { grid-template-columns: 1fr; text-align: center; }
  .history-coming img { margin-inline: auto; }
  .history-back { display: grid; text-align: center; }
  .history-poster { border-width: 3px; }
  .interactive-lineage { border-width: 3px; }
  .lineage-hotspot { display: none; }
  .lineage-mobile-list { display: grid; gap: .45rem; margin: 1.2rem auto 0; }
  .lineage-mobile-list a { min-height: 48px; display: flex; align-items: center; padding: .7rem .85rem; color: var(--forest); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-family: Georgia, "Times New Roman", serif; font-size: .85rem; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
  .lineage-mobile-list a:focus-visible { background: var(--forest); color: #fff; }
  .lineage-dialog { width: calc(100% - .7rem); }
}

/* Compact, touch-friendly navigation on phones and tablets. */
@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: auto;
    min-width: 96px;
    height: 44px;
    padding: 0 .85rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
  }
  .menu-toggle::after { content: "Menu"; font-size: .82rem; letter-spacing: .02em; }
  .menu-toggle[aria-expanded="true"]::after { content: "Close"; }
  .primary-nav { gap: .45rem; padding: .75rem; }
  .primary-nav.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .primary-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .45rem .5rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9px;
    text-align: center;
    white-space: normal;
  }
  .primary-nav a[aria-current="page"] { background: rgba(241,216,137,.12); border-color: rgba(241,216,137,.42); }
  .primary-nav a::after { display: none; }
}

/* Present the King Solomon series as compact lecture links on phones. */
@media (max-width: 720px) {
  .solomon-series #solomon-series-title { font-size:clamp(.58rem,3vw,1.35rem); font-weight:800; letter-spacing:-.055em; }
  .solomon-series-grid { gap:.65rem; }
  .solomon-series .officer-video-card { display:grid; grid-template-columns:44px 1fr; gap:.7rem; align-items:center; padding:.7rem; border-radius:14px; }
  .solomon-series .officer-video-card:hover { color:#fff; background:var(--forest); border-color:var(--forest); box-shadow:none; transform:none; }
  .solomon-series .officer-video-image { width:44px; height:44px; aspect-ratio:auto; overflow:visible; background:transparent; }
  .solomon-series .officer-video-image img { display:none; }
  .solomon-series .officer-video-play { position:static; width:44px; height:44px; color:var(--forest); background:var(--gold-light); border:0; box-shadow:none; font-size:.78rem; transform:none; }
  .solomon-series .officer-video-card:hover .officer-video-play { background:var(--gold-light); transform:none; }
  .solomon-series .officer-video-copy { gap:.1rem; padding:0; }
  .solomon-series .officer-video-copy strong { font-size:1rem; }
  .solomon-series .officer-video-copy > span:last-child { font-size:.68rem; }
  .solomon-series .officer-video-card:hover .officer-video-copy > span:last-child { color:var(--gold-light); }
}
