/* Hiram Lodge No. 12 — site stylesheet
   Layout: lodge-blue header band with logotype, chequered "mosaic pavement" strip,
   single readable column (~68ch) with framed images floated right; navy footer. */

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/eb-garamond-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/eb-garamond-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/eb-garamond-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/eb-garamond-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Colour */
  --lodge-blue: #3665A4;   /* header band, from the original site */
  --lodge-blue-deep: #24497E;
  --navy: #182B47;         /* footer */
  --gold: #E8BA53;         /* decorative gold, from the original site */
  --gold-ink: #8A6314;     /* gold dark enough for text on light ground */
  --paper: #FBFCFE;
  --surface: #EFF3F9;
  --ink: #1C2533;
  --muted: #4D5A6D;
  --line: #D5DDE9;
  --link: #2C5694;
  --link-hover: #1B3B6B;
  --on-band: #FFFFFF;
  --on-band-muted: #C9D6EA;
  --pave-dark: #1A1A1A;
  --pave-light: #FFFFFF;
  --focus: #E8BA53;
  --ok: #2E7D4F;
  --error: #A33A2C;

  /* Type */
  --font-display: "EB Garamond", "Garamond", "Georgia", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.1rem;
  --step-4: clamp(2.3rem, 1.6rem + 3vw, 3.4rem);

  /* Space */
  --measure: 68ch;
  --wrap: 72rem;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lodge-blue: #2A5590; --lodge-blue-deep: #1D3F70; --navy: #0B1424;
    --gold: #E8BA53; --gold-ink: #E8BA53;
    --paper: #0F1724; --surface: #17233A; --ink: #E6EBF2; --muted: #A7B3C5; --line: #2A3A55;
    --link: #A3C3F2; --link-hover: #CFE0FA; --on-band: #FFFFFF; --on-band-muted: #BCCBE2;
    --pave-dark: #0A0A0A; --pave-light: #D9DDE3; --focus: #E8BA53; --ok: #6CC291; --error: #F08A7A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --lodge-blue: #2A5590; --lodge-blue-deep: #1D3F70; --navy: #0B1424;
  --gold: #E8BA53; --gold-ink: #E8BA53;
  --paper: #0F1724; --surface: #17233A; --ink: #E6EBF2; --muted: #A7B3C5; --line: #2A3A55;
  --link: #A3C3F2; --link-hover: #CFE0FA; --on-band: #FFFFFF; --on-band-muted: #BCCBE2;
  --pave-dark: #0A0A0A; --pave-light: #D9DDE3; --focus: #E8BA53; --ok: #6CC291; --error: #F08A7A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #111; padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.staging-banner { background: var(--gold); color: #1A1A1A; text-align: center; font-size: var(--step--1); font-weight: 600; padding: 0.45rem var(--gutter-r) 0.45rem var(--gutter-l); }
.staging-banner a { color: inherit; }

/* ---------- Header ---------- */
.site-header { background: var(--lodge-blue); color: var(--on-band); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; }
.brand { display: block; line-height: 0; flex: 0 1 auto; min-width: 0; }
.brand picture { display: block; }
.brand img { width: 300px; max-width: 100%; height: auto; }
.to-top { display: flex; justify-content: flex-end; padding-block: 0.5rem 1.5rem; }
.to-top a { display: inline-flex; align-items: center; gap: 0.5em; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--link); padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); }
.to-top a::before { content: ""; width: 0.45em; height: 0.45em; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: translateY(0.15em) rotate(45deg); }
.to-top a:hover { color: var(--link-hover); border-color: var(--gold); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.pavement { height: 10px; background: repeating-conic-gradient(var(--pave-dark) 0 25%, var(--pave-light) 0 50%) 0 0 / 10px 10px; }
.pavement--thin { height: 6px; background-size: 6px 6px; }

.nav-toggle { display: none; background: transparent; color: var(--on-band); border: 1px solid var(--on-band-muted); border-radius: var(--radius); font: 600 var(--step--1)/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; padding: 0.6rem 0.8rem; cursor: pointer; }
.nav-toggle:hover { border-color: var(--gold); color: var(--gold); }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; align-items: center; }
.main-nav li { position: relative; }
.main-nav a, .main-nav .nav-group { display: block; color: var(--on-band); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0.55rem 0.75rem; border-radius: var(--radius); white-space: nowrap; }
.main-nav .nav-group { background: none; border: 0; font-family: var(--font-body); cursor: pointer; }
.main-nav .nav-group::after { content: ""; display: inline-block; width: 0.4em; height: 0.4em; margin-left: 0.45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.2em) rotate(45deg); }
.main-nav a:hover, .main-nav .nav-group:hover, .main-nav li.is-current > a, .main-nav li.is-current > .nav-group { color: var(--gold); }
.main-nav .sub { list-style: none; margin: 0; padding: 0.4rem; position: absolute; top: calc(100% + 2px); left: 0; min-width: 15rem; background: var(--lodge-blue-deep); border-top: 3px solid var(--gold); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22); display: none; }
.main-nav .sub a { font-weight: 400; padding: 0.5rem 0.75rem; }
.main-nav .sub a[aria-current="page"] { color: var(--gold); }
.main-nav li:hover > .sub, .main-nav li:focus-within > .sub, .main-nav li.open > .sub { display: block; }
.main-nav > ul > li:last-child .sub { left: auto; right: 0; }

@media (max-width: 62rem) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--lodge-blue-deep); border-top: 3px solid var(--gold); padding: 0.5rem var(--gutter-r) 1rem var(--gutter-l); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25); max-height: calc(100vh - 6rem); overflow-y: auto; }
  .site-header.nav-open .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav .nav-group { width: 100%; text-align: left; color: var(--on-band-muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--step--1); padding-top: 0.9rem; cursor: default; }
  .main-nav .nav-group::after { display: none; }
  .main-nav .sub { display: block; position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 0.5rem; min-width: 0; }
  .main-nav a { white-space: normal; }
  .brand img { width: 260px; }
}
@media (max-width: 40rem) {
  .brand img { width: 200px; }
}

/* ---------- Page title band ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: 2.2rem 1.9rem; }
.eyebrow { margin: 0 0 0.35rem; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
.page-head h1 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--step-4); line-height: 1.1; text-wrap: balance; color: var(--ink); }

/* ---------- Content ---------- */
main { flex: 1 0 auto; }
.content .wrap { padding-block: 2.5rem 3.5rem; }
.prose { max-width: var(--measure); }
.prose::after { content: ""; display: table; clear: both; }
.prose > * + * { margin-top: 1rem; }
.prose p, .prose ul, .prose ol { margin: 0; }
.prose * + p { margin-top: 1rem; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-3); line-height: 1.2; margin: 2.4rem 0 0.6rem; text-wrap: balance; color: var(--ink); }
.prose h2::before { content: ""; display: block; width: 2.5rem; height: 2px; background: var(--gold); margin-bottom: 0.8rem; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); line-height: 1.25; margin: 2rem 0 0.4rem; text-wrap: balance; }
.prose h2 + h3 { margin-top: 1rem; }
.prose > h2:first-child, .prose > img:first-child + h2 { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.35rem; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--gold); font-family: var(--font-display); font-size: var(--step-1); }
.prose .lead { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.3; color: var(--ink); }
.prose .byline { color: var(--muted); font-style: italic; }
.prose .placeholder { padding: 1rem 1.2rem; background: var(--surface); border: 1px dashed var(--line); color: var(--muted); }

.prose img { display: block; margin: 1.5rem 0; border: 1px solid var(--line); padding: 6px; background: var(--surface); }
.prose img.float-right { float: right; width: min(40%, 22rem); margin: 0.35rem 0 1.25rem 2rem; }
.prose img.emblem { border: 0; padding: 0; background: none; }
.prose h2[id] { clear: both; }
@media (max-width: 40rem) {
  .prose img.float-right { float: none; width: auto; max-width: 100%; margin: 0 0 1.25rem; }
}

.button { display: inline-block; background: var(--lodge-blue); color: var(--on-band); text-decoration: none; font-weight: 600; padding: 0.7rem 1.2rem; border-radius: var(--radius); border: 0; font-family: var(--font-body); font-size: var(--step-0); cursor: pointer; }
.button:hover { background: var(--lodge-blue-deep); color: var(--gold); }

/* Justified running text on wider screens, with hyphenation; left-aligned on phones.
   All paragraphs and list items are justified, in the main column, in the side panels
   and on the home page; only short display lines, tables of dates and forms stay left-aligned. */
@media (min-width: 40rem) {
  .prose p, .prose blockquote, .prose li, .prose dd, .prose ul.books span, .prose ul.sites span,
  .home-hero p, .home-body .panel p, .home-event p {
    text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto;
  }
  .prose p.lead, .prose p.byline, .prose ul.meetings li, .prose .form p, .prose .form label,
  .prose .placeholder, .prose blockquote.pull p, .home-hero p.eyebrow, .home-event p.actions,
  .prose ul.panel-links li, .prose dl.glance dd { text-align: left; -webkit-hyphens: manual; hyphens: manual; }
}

/* Table of contents (history page) */
.toc { background: var(--surface); border: 1px solid var(--line); padding: 1rem 1.4rem; }
.toc h3 { margin: 0 0 0.4rem; font-family: var(--font-body); font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; }
.toc ol { margin: 0; padding-left: 1.3rem; columns: 2 14rem; column-gap: 2rem; }
.toc li { break-inside: avoid; }

/* Lists of people / books / links */
.prose ul.people, .prose ul.books, .prose ul.links { list-style: none; padding: 0; }
.prose ul.people li, .prose ul.books li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.prose ul.books em { display: block; color: var(--muted); }
.prose ul.books span { display: block; margin-top: 0.3rem; }
.prose ul.books a.buy { display: inline-block; margin-top: 0.35rem; margin-right: 1rem; font-size: var(--step--1); font-weight: 600; }
.prose ul.links li { margin: 0; padding: 0.3rem 0; }
/* Two-column pages (Recommended reading and Further Information) */
.prose.wide { max-width: none; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 2.5rem 4rem; align-items: start; }
.two-col > .col { min-width: 0; }
.two-col > .col > * + * { margin-top: 1rem; }
.two-col > .col > h2:first-child { margin-top: 0; }
.two-col > .col > h3 { margin-top: 2rem; }
.two-col > .col > h2 + h3 { margin-top: 1rem; }
.two-col--form { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.two-col > .col--panel,
.two-col > .col--form { max-height: calc(100vh - 3rem); overflow-y: auto; position: sticky; top: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.two-col > .col--form .form { margin-top: 1rem; }
.two-col > .col--panel h2::before { display: none; }
.two-col > .col--panel > h2 { font-size: var(--step-2); }
.prose img.panel-emblem { display: block; width: 6rem; margin: 0 auto 1rem; border: 0; padding: 0; background: none; }
.prose .panel-note { font-size: var(--step--1); color: var(--muted); }
.prose ol.principles { padding-left: 1.4rem; }
.prose ol.principles li { padding-left: 0.2rem; }
.prose ol.principles li + li { margin-top: 0.55rem; }
.prose ol.principles li::marker { font-family: var(--font-display); font-weight: 600; color: var(--gold-ink); }
.prose dl.glance { margin: 0; display: grid; gap: 0.7rem; }
.prose dl.glance dt { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }
.prose dl.glance dd { margin: 0.1rem 0 0; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.3; }
.two-col .col img.float-right { width: min(34%, 13rem); margin-left: 1.5rem; }
.prose .col--panel .panel-note + dl, .prose .col--panel .panel-note + ol { margin-top: 0.9rem; }
.prose ol.chapters { list-style: none; padding: 0; margin: 0; }
.prose ol.chapters li { margin: 0; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.prose ol.chapters li:last-child { border-bottom: 0; }
.prose ol.chapters a { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); text-decoration: none; }
.prose ol.chapters a:hover { text-decoration: underline; }
.prose ol.chapters span { display: block; font-size: var(--step--1); color: var(--muted); margin-top: 0.1rem; }
.prose ul.panel-links { list-style: none; padding: 0; margin: 0.4rem 0 0; }
.prose ul.panel-links li { margin: 0; padding: 0.3rem 0; }
.prose .col--panel h3 { font-size: var(--step-1); margin-top: 1.4rem; }
.prose blockquote.pull { margin: 0; padding: 0; border: 0; }
.prose blockquote.pull p { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.45; color: var(--ink); text-align: left; }
.prose blockquote.pull footer { margin-top: 0.6rem; font-size: var(--step--1); color: var(--muted); }
.prose ol.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--gold); }
.prose ol.timeline li { margin: 0; padding: 0 0 0.9rem 1rem; position: relative; }
.prose ol.timeline li::before { content: ""; position: absolute; left: -6px; top: 0.55rem; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.prose ol.timeline .year { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.prose img.form-emblem { float: right; width: 4.5rem; margin: 0 0 0.5rem 1rem; border: 0; padding: 0; background: none; }
.prose ol.steps { padding-left: 1.4rem; }
.prose ol.steps li { padding-left: 0.3rem; }
.prose ol.steps li + li { margin-top: 0.6rem; }
.prose ol.steps li::marker { font-family: var(--font-display); font-weight: 600; color: var(--gold-ink); }
@media (max-width: 56rem) { .two-col, .two-col--form { grid-template-columns: 1fr; } .two-col > .col--form, .two-col > .col--panel { position: static; } }
.prose ul.sites { list-style: none; padding: 0; }
.prose ul.sites > li { margin: 0; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.prose ul.sites > li > a:first-child { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; }
.prose ul.sites span { display: block; color: var(--muted); margin-top: 0.15rem; }

/* Members tiles */
.prose ul.tiles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.prose ul.tiles li { margin: 0; }
.prose ul.tiles a { display: block; padding: 1.2rem 1.3rem; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: var(--step-2); border-radius: var(--radius); }
.prose ul.tiles a:hover { border-color: var(--gold); color: var(--link-hover); }

/* Gallery */
.gallery { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.75rem; max-width: none; }
.gallery li { margin: 0; }
.gallery button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: var(--surface); cursor: zoom-in; line-height: 0; }
.gallery button:hover { border-color: var(--gold); }
.gallery img { width: 100%; aspect-ratio: 400 / 284; object-fit: cover; display: block; margin: 0; border: 0; padding: 0; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(8, 12, 20, 0.88); }
.lightbox figure { margin: 0; display: grid; gap: 0.5rem; justify-items: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; display: block; }
.lightbox figcaption { color: #fff; font-size: var(--step--1); }
.lightbox .lb-bar { display: flex; gap: 0.5rem; justify-content: center; }
.lightbox .lb-bar button { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius); padding: 0.45rem 0.9rem; font: 600 var(--step--1) var(--font-body); cursor: pointer; }
.lightbox .lb-bar button:hover { border-color: var(--gold); color: var(--gold); }

/* Video (loads only on request, no cookies) */
.video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--navy); border: 1px solid var(--line); margin: 2rem 0 0; display: grid; place-items: center; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .video-start { display: grid; justify-items: center; gap: 0.8rem; background: none; border: 0; color: #fff; cursor: pointer; font: 600 var(--step-0) var(--font-body); padding: 1rem; text-align: center; }
.video .video-start img { width: 7rem; height: auto; border: 0; padding: 0; background: none; margin: 0; }
.video .video-start .play { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--gold); color: #111; padding: 0.55rem 1rem; border-radius: 999px; }
.video .video-note { font-weight: 400; font-size: var(--step--1); color: #C9D3E2; max-width: 34ch; }

/* Meetings list */
.prose ul.meetings { margin: 1.5rem 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.prose ul.meetings li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); margin: 0; font-variant-numeric: tabular-nums; }
.meetings .m-date { font-weight: 600; }
.meetings .m-kind { color: var(--muted); }
.meetings li.installation .m-kind { color: var(--gold-ink); font-weight: 600; }
.meetings li.cancelled .m-date { text-decoration: line-through; color: var(--muted); }
.meetings li.cancelled .m-kind { font-style: italic; }
.provisional { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 30rem) { .prose ul.meetings li { grid-template-columns: 1fr; gap: 0; } }

/* Forms */
.form { display: grid; gap: 1rem; margin-top: 1rem; max-width: 40rem; }
.form .field { display: grid; gap: 0.3rem; }
.form label { font-weight: 600; font-size: 0.95rem; }
.form input[type="text"], .form input[type="email"], .form input[type="password"], .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0.65rem 0.75rem;
}
.form input:focus, .form textarea:focus { border-color: var(--lodge-blue); outline: 2px solid var(--focus); outline-offset: 1px; }
.form textarea { min-height: 9rem; resize: vertical; }
.login-form { max-width: 26rem; }
.prose .panel-links li.logout { margin-top: 0.6rem; }
.form .consent { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.form .consent input { margin-top: 0.35rem; width: 1.05rem; height: 1.05rem; flex: none; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .form-note { font-size: var(--step--1); color: var(--muted); margin: 0; }
.form-status { padding: 0.8rem 1rem; border-left: 4px solid var(--ok); background: var(--surface); }
.form-status.error { border-left-color: var(--error); }

/* ---------- Home ---------- */
.home-hero { background: var(--lodge-blue); color: var(--on-band); }
.home-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 2.5rem; align-items: center; padding-block: 3rem 3.2rem; }
.home-hero .eyebrow { color: var(--gold); max-width: none; }
.home-hero .eyebrow a { color: inherit; text-decoration-color: currentColor; }
.home-hero .eyebrow a:hover { color: var(--on-band); }
.home-hero h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-4); line-height: 1.08; margin: 0 0 1rem; text-wrap: balance; }
.home-hero p { margin: 0 0 1rem; max-width: 52ch; color: var(--on-band); }
.home-hero a { color: var(--on-band); text-decoration-color: var(--gold); }
.home-hero a:hover { color: var(--gold); }
.home-hero .emblem { justify-self: center; width: min(100%, 17rem); filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25)); }
.home-hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.home-hero .actions .button { background: var(--gold); color: #1A1A1A; }
.home-hero .actions .button:hover { background: #F2CD7A; color: #1A1A1A; }
.home-hero .actions .button.ghost { background: transparent; color: var(--on-band); border: 1px solid var(--on-band-muted); }
.home-hero .actions .button.ghost:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 48rem) {
  .home-hero .wrap { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2.2rem 2.4rem; }
  .home-hero .emblem { order: -1; width: 9rem; justify-self: start; }
}

.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; padding-block: 1.5rem; }
.facts dt { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }
.facts dd { margin: 0.2rem 0 0; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.3; }
.facts dd .next-business { display: block; margin-top: 0.2rem; font-family: var(--font-body); font-size: var(--step--1); line-height: 1.4; color: var(--muted); }
@media (max-width: 52rem) { .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 26rem) { .facts dl { grid-template-columns: 1fr; gap: 1rem; } }

.home-event { background: var(--paper); border-bottom: 1px solid var(--line); }
.home-event .wrap { display: grid; grid-template-columns: 9rem minmax(0, 1fr); column-gap: 2rem; align-items: start; padding-block: 2rem; }
.home-event .eyebrow { grid-row: 1 / span 3; margin: 0.45rem 0 0; }
.home-event h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-3); margin: 0 0 0.4rem; }
.home-event p { margin: 0 0 1rem; max-width: 68ch; }
.home-event .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
.home-event .button.ghost { background: transparent; color: var(--link); border: 1px solid var(--line); }
.home-event .button.ghost:hover { border-color: var(--gold); color: var(--link-hover); }
@media (max-width: 48rem) { .home-event .wrap { grid-template-columns: 1fr; } .home-event .eyebrow { grid-row: auto; margin: 0 0 0.3rem; } }
.home-body .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; padding-block: 3rem 3.5rem; }
.home-body .panel h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-3); margin: 0 0 0.6rem; }
.home-body .panel h2::before { content: ""; display: block; width: 2.5rem; height: 2px; background: var(--gold); margin-bottom: 0.8rem; }
.home-body .panel p { margin: 0 0 1rem; }
.home-body .video-panel { grid-column: 1 / -1; }
.home-body .video-panel .video { margin: 0; max-width: 44rem; }
@media (max-width: 48rem) { .home-body .wrap { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-band-muted); font-size: 0.95rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2rem; padding-block: 2.5rem 1.5rem; }
.site-footer h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); color: var(--on-band); margin: 0 0 0.6rem; }
.site-footer p { margin: 0 0 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer a { color: var(--on-band); text-decoration-color: rgba(232, 186, 83, 0.6); }
.site-footer a:hover { color: var(--gold); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1rem; font-size: var(--step--1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
@media (max-width: 44rem) { .site-footer .wrap { grid-template-columns: 1fr; gap: 1.5rem; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print {
  .site-header, .pavement, .site-footer, .nav-toggle, .video, .form { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { max-width: none; }
}

/* ---------- Members area: activities ---------- */
.prose .activity { margin: 0.5rem 0 1.5rem; }
.prose .activity dl.glance { margin: 0 0 1rem; }
.prose .activity h3 { margin: 1rem 0 0.4rem; }
.prose .activity-empty { color: var(--muted); font-style: italic; }
.prose .activity-note { color: var(--muted); }
.prose ul.activity-events { list-style: none; padding: 0; margin: 0; }
.prose ul.activity-events > li { margin: 0; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.prose ul.activity-events > li:first-child { border-top: 1px solid var(--line); }
.prose ul.activity-events h3 { margin: 0.1rem 0 0.3rem; }
.prose ul.activity-events h4 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); margin: 0.1rem 0 0.3rem; }
.prose ul.activity-events p { margin: 0 0 0.3rem; }
.prose ul.activity-events ul.activity-topics { margin: 0.2rem 0 0.4rem; }
.prose .activity-when { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-ink); }
.prose .activity-place, .prose .activity-contact { color: var(--muted); }

/* Members calendar (members home page) */
.prose .calendar { margin: 0.5rem 0 1.5rem; }
.cal-head { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.6rem; }
.prose .cal-head h3.cal-title { flex: 1; margin: 0; text-align: center; font-size: var(--step-1); }
.cal-nav { font: 600 var(--step--1) var(--font-body); color: var(--link); background: transparent; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.35rem 0.75rem; cursor: pointer; white-space: nowrap; }
.cal-nav:hover:not(:disabled) { border-color: var(--link); color: var(--link-hover); }
.cal-nav:disabled { opacity: 0.4; cursor: default; }
.prose table.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 0; }
.cal-grid th { font: 600 0.72rem var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 0.3rem 0.3rem; }
.cal-grid td { vertical-align: top; height: 5.4rem; padding: 0.25rem; border: 1px solid var(--line); background: var(--paper); }
.cal-grid td.cal-empty { background: var(--surface); }
.cal-num { display: block; font: 600 0.8rem var(--font-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-day.is-past .cal-num { opacity: 0.45; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--gold); }
.cal-day.is-today .cal-num { color: var(--ink); }
.prose ul.cal-items { list-style: none; margin: 0.15rem 0 0; padding: 0; }
.prose ul.cal-items li { margin: 0 0 0.15rem; padding: 0; }
.cal-item, .cal-mark { --cal-c: var(--lodge-blue); }
.cal-item { display: block; font: 600 0.72rem/1.3 var(--font-body); color: var(--ink); text-decoration: none; background: var(--surface); border-left: 3px solid var(--cal-c); border-radius: 2px; padding: 0.1rem 0.3rem; overflow-wrap: break-word; hyphens: auto; }
.cal-item:hover, .cal-item:focus { text-decoration: underline; }
.cal-loi { --cal-c: #2E7D4F; }
.cal-social { --cal-c: #B4532F; }
.cal-visit { --cal-c: #7A4FA3; }
.cal-inst { --cal-c: var(--gold); }
.cal-item.cal-cancelled { color: var(--muted); text-decoration: line-through; font-weight: 400; }
.prose ul.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; margin: 0.6rem 0 0; padding: 0; font-size: var(--step--1); color: var(--muted); }
.prose ul.cal-legend li { margin: 0; }
.cal-mark::before { content: ""; display: inline-block; width: 0.7em; height: 0.7em; border-radius: 2px; background: var(--cal-c); margin-right: 0.45em; vertical-align: 0.02em; }
.prose .cal-agenda h3.cal-agenda-title { font-size: var(--step-1); margin: 1.4rem 0 0.5rem; }
.prose .cal-agenda h4 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); margin: 0.1rem 0 0.3rem; }
.prose .cal-agenda li.cal-entry-cancelled h4 { color: var(--muted); text-decoration: line-through; }
.prose .cal-agenda li:target { background: var(--surface); box-shadow: -0.6rem 0 0 var(--surface), 0.6rem 0 0 var(--surface); }
@media (max-width: 40rem) {
  .cal-grid th { font-size: 0.62rem; letter-spacing: 0; padding: 0.2rem 0.1rem; }
  .cal-grid td { height: 3.8rem; padding: 0.15rem; }
  .cal-item { font-size: 0.62rem; padding: 0.05rem 0.15rem; border-left-width: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; hyphens: manual; }
  .cal-nav { padding: 0.3rem 0.5rem; }
}
