:root {
  --black: #000;
  --ink: #fff;
  --gold: #e0bf5c;
  --gold-deep: #b8962f;
  --link: #fc7b1b;
  --panel: #0e0e0e;
  --rule: #2a2a2a;
  --muted: #b3b2b2;
  --ph-bg: #3a1d00;
  --measure: 68ch;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: Arial, Helvetica, "Liberation Sans", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--black); scrollbar-color: var(--gold-deep) var(--black); }
body { margin: 0; background: var(--black); color: var(--ink); font-size: 1.0625rem; line-height: 1.65; }
::selection { background: var(--gold); color: #000; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-deep); border: 2px solid var(--black); border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(72rem, 100% - 2rem); margin-inline: auto; }
.wrap.narrow { width: auto; max-width: 46rem; margin-left: max(1rem, calc((100% - 72rem) / 2)); margin-right: 1rem; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--gold); color: #000; padding: 0.6rem 1rem; z-index: 20; font-weight: 700; }
.skip:focus { top: 0.5rem; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 10; background: var(--black); border-bottom: 1px solid var(--rule); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--gold); display: flex; flex-direction: column; line-height: 1.1; }
.brand-top { font-weight: 700; font-size: 1.35rem; letter-spacing: 0.02em; text-transform: uppercase; }
.brand-sub { font-size: 0.85rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink); }
.nav { display: flex; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { display: inline-block; color: var(--ink); text-decoration: none; padding: 0.55rem 0.15rem; font-size: 0.95rem; border-bottom: 2px solid transparent; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.nav a:hover { color: var(--gold); border-color: var(--gold-deep); }
.nav a[aria-current="page"] { color: var(--gold); border-color: var(--gold); }
.nav-toggle { display: none; background: transparent; color: var(--gold); border: 1px solid var(--gold-deep); padding: 0.6rem 1rem; font: inherit; font-weight: 700; border-radius: 4px; min-height: 44px; }

/* type */
h1, h2 { color: var(--gold); line-height: 1.15; text-wrap: balance; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); margin-top: 2rem; }
h2:first-child { margin-top: 0; }
.gold-white { color: var(--ink); }
p { margin: 0 0 1rem; max-width: var(--measure); }
.lead { font-size: 1.2rem; color: var(--ink); }
.rule { display: block; width: 5.5rem; height: 3px; background: var(--gold); margin: 0.9rem 0 1.5rem; transform-origin: left; animation: draw 0.9s var(--ease) both; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* sections */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem); }
.hero-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.band { padding-block: clamp(1.5rem, 4vw, 3rem); border-top: 1px solid var(--rule); }
.page-head + .band { border-top: 0; }
.two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }

/* patch + stitched edge */
.patch { margin: 0; position: relative; display: grid; place-items: center; text-align: center; }
.patch img { width: 100%; height: auto; }
.patch.no-img { aspect-ratio: 1; padding: 1rem; }
.patch.no-img img { display: none; }
.patch figcaption { display: none; }
.patch.no-img figcaption { display: block; padding: 2rem; }
.stitched { border-radius: 10px; }
.card { background: var(--panel); padding: 1.5rem; margin-block: 0.4rem 1rem; }

/* content */
.principles { list-style: none; counter-reset: p; padding: 0; margin: 0 0 2rem; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 3rem 1fr; gap: 0.75rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.principles li::before { content: counter(p); color: var(--gold); font-weight: 700; font-size: 1.6rem; line-height: 1.2; }
.links { padding-left: 1.1rem; } .links li { margin-bottom: 0.5rem; }
.note { color: var(--muted); font-size: 0.95rem; }
.empty { color: var(--muted); border: 1px dashed var(--rule); padding: 1.25rem; border-radius: 6px; }

/* placeholders: loud on purpose */
.ph { background: var(--ph-bg); color: #ffb870; padding: 0.05em 0.4em; border-radius: 3px; font-size: 0.92em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* buttons */
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.btn { display: inline-block; background: var(--gold); color: #000; font-weight: 700; text-decoration: none; padding: 0.8rem 1.6rem; border-radius: 4px; border: 2px solid var(--gold); min-height: 44px; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.btn:hover { background: #f0d37e; color: #000; }
.btn-ghost { background: transparent; color: var(--gold); }
.btn-ghost:hover { background: var(--gold); color: #000; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.95rem; }

/* footer */
.foot { border-top: 2px solid var(--gold); background: var(--panel); margin-top: 2rem; padding-block: 2rem; color: var(--muted); font-size: 0.95rem; }
.foot p { max-width: 70ch; }
.crisis { color: var(--gold); font-size: 1.05rem; }
.crisis strong { color: var(--gold); }
.small { font-size: 0.85rem; }

@media (max-width: 820px) {
  .hero-in, .two { grid-template-columns: 1fr; }
  .patch { max-width: 13rem; margin-inline: 0; }
  .patch.no-img figcaption { padding: 1rem; font-size: 0.8rem; line-height: 1.4; }
  .nav-toggle { display: inline-block; }
  nav { flex-basis: 100%; }
  .nav { display: none; flex-direction: column; padding-bottom: 0.5rem; }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0; width: 100%; border-bottom: 1px solid var(--rule); }
}
@media (prefers-reduced-motion: reduce) {
  .rule { animation: none; }
  * { transition: none !important; }
}

/* gallery + events (content-driven) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rule); border-radius: 6px; }
.gallery figcaption { color: var(--muted); font-size: 0.9rem; padding-top: 0.4rem; }
.events { list-style: none; padding: 0; margin: 0; }
.events li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.events .when { color: var(--gold); margin-left: 0.5rem; }

/* rich text from the editor */
main h3 { color: var(--gold); font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
main blockquote { margin: 1.25rem 0; padding: 0.25rem 1.25rem; border: 1px solid var(--gold-deep); border-radius: 6px; color: var(--muted); background: var(--panel); }
main code { background: var(--panel); border: 1px solid var(--rule); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.92em; }
main pre { background: var(--panel); border: 1px solid var(--rule); padding: 1rem; border-radius: 6px; overflow-x: auto; }
main pre code { border: 0; padding: 0; }
main ul, main ol { max-width: var(--measure); }
main p img { max-width: 100%; height: auto; border-radius: 6px; }

/* chapter buttons */
.chapter-btns { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.9rem; }
.chapter-btn { display: flex; align-items: center; gap: 0.9rem; min-height: 4.25rem; padding: 0.6rem 1.1rem 0.6rem 0.8rem; background: var(--panel); border: 1px solid var(--gold-deep); border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 700; transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease); }
.chapter-btn img { width: 2.6rem; height: auto; flex: none; border-radius: 4px; }
.chapter-btn:hover { background: #1a1608; border-color: var(--gold); color: var(--gold); }

/* three-column meetings layout + pull quote */
.three { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.pull figure { margin: 0; }
.pull blockquote { margin: 0; padding: 0; border: 0; background: none; color: var(--gold); font-size: clamp(1.25rem, 1rem + 0.9vw, 1.6rem); line-height: 1.4; font-weight: 700; }
.pull blockquote p { margin: 0; max-width: none; }
.pull figcaption { margin-top: 1rem; color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) { .three { grid-template-columns: 1fr; } }

/* photo carousel (works as a plain stack of photos without JavaScript) */
.carousel { position: relative; max-width: 60rem; margin: 0 0 2rem; }
.carousel .slides { display: grid; gap: 1.5rem; }
.carousel .slide { margin: 0; }
.carousel .slide img { width: 100%; height: auto; border-radius: 6px; background: #000; }
.carousel .slide figcaption { color: var(--muted); padding-top: 0.6rem; font-size: 1rem; }
.carousel.ready .slides { display: block; position: relative; touch-action: pan-y; }
.carousel.ready .slide { display: none; }
.carousel.ready .slide.active { display: block; animation: slidein 0.35s var(--ease); }
.carousel.ready .slide img { max-height: 70vh; object-fit: contain; border: 1px solid var(--rule); }
@keyframes slidein { from { opacity: 0; } to { opacity: 1; } }
.car-btn { position: absolute; top: calc(50% - 4.5rem); z-index: 2; width: 3.25rem; height: 3.25rem; display: grid; place-items: center; background: rgba(0, 0, 0, 0.72); color: var(--gold); border: 2px solid var(--gold); border-radius: 50%; font-size: 1.3rem; cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.car-btn:hover { background: var(--gold); color: #000; }
.car-prev { left: 0.75rem; } .car-next { right: 0.75rem; }
.car-count { margin: 0.75rem 0 0.5rem; color: var(--muted); font-size: 0.95rem; text-align: center; max-width: none; }
.car-thumbs { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem 0 0.75rem; justify-content: center; flex-wrap: wrap; }
.car-thumb { flex: none; width: 4.5rem; height: 3.4rem; padding: 0; border: 2px solid transparent; border-radius: 4px; background: #000; cursor: pointer; opacity: 0.6; transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease); }
.car-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.car-thumb:hover, .car-thumb[aria-current="true"] { opacity: 1; border-color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .carousel.ready .slide.active { animation: none; } }
@media (max-width: 600px) { .car-btn { width: 2.75rem; height: 2.75rem; } .car-thumb { width: 3.6rem; height: 2.8rem; } }

/* content images */
.pic { margin: 1.25rem 0; }
.pic img { display: block; max-width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 6px; background: #000; }
.pic.small img { max-width: 30rem; }
.pic.poster img { max-width: 24rem; margin-bottom: 1.5rem; }
.pic figcaption { color: var(--muted); font-size: 0.95rem; padding-top: 0.5rem; max-width: 30rem; }
.pic a { display: inline-block; }

/* embedded meeting-location map */
.map-embed { margin: 1.25rem 0; max-width: 30rem; }
.map-embed iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--rule); border-radius: 6px; background: #111; }
.map-cap { margin: 0.5rem 0 0; font-size: 0.95rem; }

/* contact form */
.contact-form { margin: 1.5rem 0; max-width: 34rem; }
.contact-form p { margin: 0 0 1rem; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form .row2 p { margin: 0 0 1rem; }
.contact-form label { display: block; font-weight: 700; color: var(--gold); margin-bottom: 0.3rem; }
.contact-form .req { color: var(--gold); }
.contact-form input, .contact-form textarea { width: 100%; box-sizing: border-box; background: #111; color: var(--ink); border: 1px solid #555; border-radius: 4px; padding: 0.7rem 0.8rem; font: inherit; min-height: 44px; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); }
.contact-form button { cursor: pointer; font: inherit; font-weight: 700; }
.contact-form button[disabled] { opacity: 0.6; cursor: wait; }
.contact-form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { min-height: 1.5rem; }
.form-status.ok { color: var(--gold); font-weight: 700; }
.form-status.err { color: #ff8a80; }
@media (max-width: 560px) { .contact-form .row2 { grid-template-columns: 1fr; } }

/* Northeast chapters map */
.ne-map-wrap { margin: 1.5rem 0; max-width: 56rem; }
.ne-map { display: block; width: 100%; height: auto; }
.ne-map .reg { fill: #1b1b1b; stroke: #555; stroke-width: 1.2; stroke-linejoin: round; }
.ne-map .reg.here { fill: var(--gold); stroke: #000; stroke-width: 1.2; }
.ne-map .reg-link path { fill: var(--gold); stroke: #000; stroke-width: 1.2; stroke-linejoin: round; cursor: pointer; transition: fill 0.2s var(--ease); }
.ne-map .reg-link:hover path, .ne-map .reg-link:focus-visible path { fill: #f6dc8c; }
.ne-map .reg-link:focus-visible { outline: none; }
.ne-map .reg-link:focus-visible path { stroke: #fff; stroke-width: 3; }
.map-key { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--muted); }
.map-key .sw { display: inline-block; width: 0.9em; height: 0.9em; vertical-align: -0.1em; margin: 0 0.3em 0 0.8em; border-radius: 2px; }
.map-key .sw:first-child { margin-left: 0; }
.map-key .sw.on { background: var(--gold); }
.map-key .sw.here { border: 2px solid var(--gold); background: #1b1b1b; }
.map-intro { margin: 1.5rem 0 0.5rem; font-weight: 700; color: var(--gold); }
