/* Village of East Rockaway - demonstration build by LED Secure Infrastructure.
   Shared stylesheet. Every color, font, radius, shadow and easing lives in :root.
   Change tokens, not components. Palette is drawn from the village logotype (#23586E)
   and the village seal (buoy orange #FA5600, bay aqua #5ED8E6). */

:root {
  /* Structural tones */
  --ink: #0F2E3A;            /* body text on light, 12.99:1 on paper */
  --ink-deep: #0B2530;       /* text on the orange accent, 4.84:1 */
  --harbor: #23586E;         /* brand logotype color, 7.1:1 on paper */
  --harbor-deep: #123A49;    /* dark band surface */
  --harbor-night: #0C2A36;   /* footer surface */
  --muted: #4A5F68;          /* secondary text, 6.12:1 on paper, 5.75:1 on mist */
  --paper: #F7F4EE;          /* page surface */
  --surface: #FFFFFF;        /* cards */
  --mist: #E6EFF1;           /* alternate chapter surface */
  --line: #CFDCDF;           /* hairlines on light */
  --line-dark: rgba(255, 255, 255, .16);

  /* Rationed accent: buoy orange from the seal banner */
  --buoy: #FA5600;           /* fills, rules, markers - never body text on light */
  --buoy-text: #B23C00;      /* orange text on light surfaces, 5.4:1 on paper */
  --buoy-light: #FF8C4D;     /* orange text on dark surfaces, 5.27:1 on harbor-deep */

  /* Bay tones for dark surfaces */
  --tide: #86BBD8;           /* 5.86:1 on harbor-deep */
  --aqua: #5ED8E6;           /* 7.2:1 on harbor-deep */
  --on-dark: #FFFFFF;
  --on-dark-muted: #C9D8DD;  /* 8.31:1 on harbor-deep */

  /* Type */
  --font-display: "Young Serif", "Georgia", "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: clamp(.9rem, .87rem + .15vw, .97rem);
  --fs-base: clamp(1rem, .96rem + .2vw, 1.0938rem);
  --fs-lg: clamp(1.125rem, 1.05rem + .35vw, 1.3rem);
  --fs-h3: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.6rem);
  --fs-h1: clamp(2.3rem, 1.6rem + 3.4vw, 4.4rem);
  --fs-page-h1: clamp(2rem, 1.5rem + 2.4vw, 3.3rem);
  --lh-tight: 1.12;
  --lh-body: 1.6;

  /* Shape and depth */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(12, 42, 54, .08), 0 1px 1px rgba(12, 42, 54, .04);
  --shadow: 0 10px 30px -12px rgba(12, 42, 54, .28), 0 2px 6px rgba(12, 42, 54, .06);
  --shadow-lg: 0 28px 60px -24px rgba(12, 42, 54, .45);
  --focus: #FA5600;
  --focus-ring: 0 0 0 3px var(--paper), 0 0 0 6px var(--focus);

  /* Layout */
  --wrap: 1200px;
  --wrap-narrow: 760px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 8vw, 104px);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .6s;

  /* Signature motif: the tide line, the wave pattern from the seal's water */
  --tide-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 Q10 0 20 5 T40 5' fill='none' stroke='%23FA5600' stroke-width='2.2'/%3E%3C/svg%3E");
  --tide-line-aqua: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 Q10 0 20 5 T40 5' fill='none' stroke='%235ED8E6' stroke-width='2.2'/%3E%3C/svg%3E");
  --tide-field: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='16' viewBox='0 0 60 16'%3E%3Cpath d='M0 8 Q15 2 30 8 T60 8' fill='none' stroke='%235ED8E6' stroke-opacity='.13' stroke-width='1.6'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--harbor); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: var(--lh-tight); margin: 0 0 .5em; color: var(--ink); letter-spacing: -.005em; }
h3, h4 { font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
address { font-style: normal; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; color: var(--on-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Demo notice ---------- */
.demo-bar { background: var(--ink-deep); color: var(--on-dark-muted); font-size: var(--fs-xs); text-align: center; padding: 8px var(--gutter); line-height: 1.45; }
.demo-bar strong { color: var(--on-dark); }
.demo-bar a { color: var(--on-dark); }

/* ---------- Utility bar ---------- */
.utility { background: var(--harbor-deep); color: var(--on-dark-muted); font-size: var(--fs-xs); }
.utility .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.utility ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.utility a { color: var(--on-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.utility a:hover { color: var(--aqua); text-decoration: underline; }
.utility .hall { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Header and nav ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand img.seal { width: 52px; height: auto; }
.brand img.logotype { width: clamp(160px, 15vw, 214px); height: auto; }
.nav-toggle { display: none; align-items: center; gap: 8px; font: 700 var(--fs-sm) var(--font-body); color: var(--ink); background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 10px 16px; cursor: pointer; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 0; }
.nav a { display: block; white-space: nowrap; padding: 10px 11px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); border-radius: var(--radius-sm); position: relative; }
.nav a:hover { background: var(--mist); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--harbor); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 6px; background: var(--tide-line) repeat-x left center / 20px 6px; }
@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: var(--fs-base); }
  .no-js .nav { position: static; display: block; box-shadow: none; border: 0; }
  .no-js .nav-toggle { display: none; }
}
@media (max-width: 420px) { .brand img.seal { width: 42px; } .brand img.logotype { width: 150px; } }

/* ---------- Buttons and chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 var(--fs-sm) var(--font-body); text-decoration: none; padding: 14px 22px; border-radius: var(--radius-pill); border: 2px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-buoy { background: var(--buoy); color: var(--ink-deep); }
.btn-buoy:hover { background: var(--buoy-light); color: var(--ink-deep); }
.btn-harbor { background: var(--harbor); color: var(--on-dark); }
.btn-harbor:hover { background: var(--ink); color: var(--on-dark); }
.btn-ghost { background: transparent; color: var(--harbor); border-color: var(--harbor); }
.btn-ghost:hover { background: var(--harbor); color: var(--on-dark); }
.btn-ghost-light { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, .6); }
.btn-ghost-light:hover { background: var(--on-dark); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--harbor); background: var(--mist); border-radius: var(--radius-pill); padding: 4px 12px; }
.chip-buoy { color: var(--buoy-text); background: #FFE9DC; }
.pennant { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--buoy-text); }
.pennant::before { content: ""; width: 22px; height: 12px; background: var(--buoy); clip-path: polygon(0 0, 100% 50%, 0 100%); flex: none; }
.on-dark .pennant, .band-dark .pennant, .hero .pennant { color: var(--buoy-light); }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-mist { background: var(--mist); }
.section-surface { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: var(--fs-h2); margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: var(--fs-lg); margin: 0; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head-row .section-head { margin-bottom: 0; }
.tide-rule { display: block; width: 120px; height: 10px; background: var(--tide-line) repeat-x left center / 40px 10px; border: 0; margin: 0; }
.band-dark .tide-rule, .on-dark .tide-rule { background-image: var(--tide-line-aqua); }
.band-dark { background: var(--harbor-deep) var(--tide-field) repeat; color: var(--on-dark-muted); }
.band-dark h2, .band-dark h3 { color: var(--on-dark); }
.band-dark a:not(.btn) { color: var(--aqua); }
.band-dark .section-head p { color: var(--on-dark-muted); }
.text-link { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Home hero ---------- */
.hero { position: relative; color: var(--on-dark); background: var(--harbor-night); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 42, 54, .94) 0%, rgba(12, 42, 54, .82) 42%, rgba(12, 42, 54, .35) 75%, rgba(12, 42, 54, .2) 100%), linear-gradient(0deg, rgba(12, 42, 54, .85) 0%, rgba(12, 42, 54, 0) 45%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 40px; padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(120px, 14vw, 170px); }
.hero h1 { color: var(--on-dark); font-size: var(--fs-h1); margin: 18px 0 18px; max-width: 13ch; }
.hero .lede { font-size: var(--fs-lg); color: var(--on-dark-muted); max-width: 52ch; margin-bottom: 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.medallion { justify-self: center; position: relative; width: min(100%, 330px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #FFFFFF 0%, #F3F8F9 62%, #DCEBEE 100%); box-shadow: var(--shadow-lg), 0 0 0 10px rgba(255, 255, 255, .08), 0 0 0 22px rgba(94, 216, 230, .1); display: grid; place-items: center; }
.medallion img { width: 66%; height: auto; }
.medallion::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 2px dashed rgba(35, 88, 110, .35); }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .medallion { width: 170px; justify-self: start; order: -1; }
  .hero::before { background: linear-gradient(0deg, rgba(12, 42, 54, .95) 0%, rgba(12, 42, 54, .8) 60%, rgba(12, 42, 54, .55) 100%); }
}

/* ---------- Task tiles (I want to...) ---------- */
.tasks { position: relative; z-index: 2; margin-top: calc(-1 * clamp(76px, 9vw, 104px)); }
.tasks-panel { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(18px, 3vw, 30px); }
.tasks-panel h2 { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-sm); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.task-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr)); gap: 10px; }
.task { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 16px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.3; transition: border-color .2s var(--ease), transform .2s var(--ease), background-color .2s var(--ease); }
.task svg { width: 30px; height: 30px; color: var(--harbor); }
.task small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.task:hover { border-color: var(--buoy); background: var(--surface); transform: translateY(-2px); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .task, .task:hover { transition: none; transform: none; } }

/* ---------- Generic grids and cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 26px); box-shadow: var(--shadow-sm); }
.card h2 { font-size: var(--fs-h3); }
.card h3 { margin-bottom: .4em; }
.card > :last-child { margin-bottom: 0; }

/* Photo card: departments, places */
.photo-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); color: var(--ink); text-decoration: none; height: 100%; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.photo-card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.photo-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.photo-card h3 { font-size: var(--fs-lg); margin: 0; }
.photo-card p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.photo-card .more { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: var(--fs-sm); color: var(--harbor); }
.photo-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink); }
.photo-card:hover .ph img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .photo-card, .photo-card:hover, .photo-card .ph img, .photo-card:hover .ph img { transition: none; transform: none; } }

/* ---------- News and list rows ---------- */
.news-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.news-item a { display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.news-item a:hover h3 { color: var(--harbor); text-decoration: underline; text-underline-offset: 3px; }
.date-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--harbor); color: var(--on-dark); padding: 8px 4px; line-height: 1.05; text-align: center; }
.date-tile .m { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.date-tile .d { font-family: var(--font-display); font-size: 1.6rem; }
.date-tile .y { font-size: .72rem; color: var(--on-dark-muted); }
.news-item h3 { font-size: var(--fs-base); margin: 2px 0 4px; }
.news-item p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

.row-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row-list li { border-bottom: 1px solid var(--line); }
.row-list a, .row-list .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px; color: var(--ink); text-decoration: none; }
.row-list a:hover { background: var(--surface); color: var(--harbor); }
.row-list .t { font-weight: 700; }
.row-list .m { display: block; font-size: var(--fs-sm); color: var(--muted); font-weight: 400; }
.row-list svg { color: var(--harbor); }
.band-dark .row-list, .band-dark .row-list li { border-color: var(--line-dark); }
.band-dark .row-list a { color: var(--on-dark); }
.band-dark .row-list a:hover { background: rgba(255, 255, 255, .06); color: var(--aqua); }
.band-dark .row-list .m { color: var(--on-dark-muted); }
.band-dark .row-list svg { color: var(--aqua); }

/* ---------- Village Hall facts ---------- */
.hall-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hall-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.hall-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.facts { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.facts svg { width: 24px; height: 24px; color: var(--buoy-text); margin-top: 2px; }
.facts .k { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts .v { font-weight: 600; }
.callout { border-left: 4px solid var(--buoy); background: var(--surface); padding: 16px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; box-shadow: var(--shadow-sm); }
.callout h3 { font-size: var(--fs-base); margin: 0 0 6px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .hall-grid { grid-template-columns: 1fr; } }

/* ---------- Mayor's message ---------- */
.message { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.portrait { position: relative; }
.portrait img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow-lg); }
.portrait figcaption { margin-top: 14px; color: var(--on-dark-muted); font-size: var(--fs-sm); }
.portrait figcaption strong { display: block; color: var(--on-dark); font-size: var(--fs-base); }
.message blockquote { margin: 0; }
.message blockquote p { font-size: var(--fs-lg); color: var(--on-dark-muted); }
.message blockquote p:first-child { font-family: var(--font-display); font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.25; color: var(--on-dark); }
@media (max-width: 760px) { .message { grid-template-columns: 1fr; } .portrait { max-width: 240px; } }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--mist); }
.person .body { padding: 14px 16px 18px; }
.person h3 { font-size: var(--fs-base); margin: 0 0 2px; }
.person .role { color: var(--buoy-text); font-weight: 700; font-size: var(--fs-sm); margin: 0 0 8px; }
.person a { font-size: var(--fs-sm); word-break: break-word; }
.staff-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.staff-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.staff-list .n { font-weight: 700; }
.staff-list .r { color: var(--muted); font-size: var(--fs-sm); display: block; font-weight: 400; }
.staff-list a { word-break: break-word; align-self: center; }
@media (max-width: 560px) { .staff-list li { grid-template-columns: 1fr; } }

/* ---------- Timeline (history) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 0; position: relative; }
.timeline li { padding: 28px 20px 0 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--tide-line) repeat-x left center / 40px 10px; }
.timeline li::after { content: ""; position: absolute; left: 0; top: -3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--harbor); }
.timeline .yr { font-family: var(--font-display); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); color: var(--harbor); display: block; line-height: 1; margin: 6px 0 8px; }
.timeline p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.credit { font-size: var(--fs-xs); color: var(--muted); margin-top: 10px; }
.band-dark .credit { color: var(--on-dark-muted); }

/* ---------- Gallery strip ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 14vw, 190px); gap: 10px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--mist); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(12, 42, 54, .86); color: var(--on-dark); font-size: var(--fs-xs); font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); }
.gallery .g1 { grid-column: span 3; grid-row: span 2; }
.gallery .g2, .gallery .g3 { grid-column: span 3; }
.gallery .g4, .gallery .g5, .gallery .g6 { grid-column: span 2; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .gallery .g1 { grid-column: span 2; grid-row: span 1; }
  .gallery .g2, .gallery .g3, .gallery .g4, .gallery .g5, .gallery .g6 { grid-column: span 1; }
}

/* ---------- Interior page hero ---------- */
.page-hero { position: relative; background: var(--harbor-deep) var(--tide-field) repeat; color: var(--on-dark); padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 60px); overflow: hidden; isolation: isolate; }
.page-hero.has-photo .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero.has-photo .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 42, 54, .95) 0%, rgba(12, 42, 54, .85) 55%, rgba(12, 42, 54, .55) 100%); }
.page-hero h1 { color: var(--on-dark); font-size: var(--fs-page-h1); margin: 12px 0 12px; max-width: 22ch; }
.page-hero .lede { color: var(--on-dark-muted); font-size: var(--fs-lg); max-width: 60ch; margin: 0; }
.page-hero .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--on-dark-muted); font-size: var(--fs-sm); margin-top: 14px; }
.page-hero .chip { background: rgba(255, 255, 255, .12); color: var(--on-dark); }
.page-hero .seal-ghost { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: clamp(160px, 22vw, 280px); opacity: .12; z-index: -1; filter: grayscale(1) brightness(2.2); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: var(--fs-sm); }
.breadcrumb li + li::before { content: "/"; margin: 0 8px 0 4px; color: var(--on-dark-muted); }
.breadcrumb a { color: var(--on-dark); }
.breadcrumb a:hover { color: var(--aqua); }
.breadcrumb [aria-current="page"] { color: var(--on-dark-muted); }

/* ---------- Content layouts ---------- */
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(28px, 4vw, 56px); align-items: start; }
.layout-aside > aside { position: sticky; top: 96px; display: grid; gap: 18px; }
@media (max-width: 900px) { .layout-aside { grid-template-columns: minmax(0, 1fr); } .layout-aside > aside { position: static; } }
.prose { max-width: 70ch; overflow-wrap: break-word; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .35em; }
.contact-card h2 { font-size: var(--fs-h3); font-family: var(--font-body); font-weight: 700; margin-bottom: 12px; }
.contact-card .facts { margin-bottom: 0; }
.link-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.link-cards a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 700; }
.link-cards a:hover { border-color: var(--buoy); background: var(--surface); }
.link-cards .m { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.link-cards svg { color: var(--harbor); }
.ext-note { font-size: var(--fs-xs); color: var(--muted); }

/* Tables: wide content scrolls inside its own container */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--mist); font-weight: 700; color: var(--ink); }
tr:last-child td { border-bottom: 0; }
caption { text-align: left; font-weight: 700; padding: 12px 14px; }

/* Details / accordions */
details.disclosure { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
details.disclosure + details.disclosure { margin-top: 10px; }
details.disclosure summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.disclosure summary::-webkit-details-marker { display: none; }
details.disclosure summary::after { content: "+"; font-size: 1.3em; line-height: 1; color: var(--harbor); }
details.disclosure[open] summary::after { content: "-"; }
details.disclosure .inner { padding: 0 18px 18px; }

/* ---------- Document library ---------- */
.library-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.search { position: relative; flex: 1 1 280px; }
.search input { width: 100%; font: inherit; padding: 13px 16px 13px 44px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cat-btn { font: 700 var(--fs-sm) var(--font-body); padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.cat-btn[aria-pressed="true"] { background: var(--harbor); border-color: var(--harbor); color: var(--on-dark); }
.result-note { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 10px; }
.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doc-item { border-bottom: 1px solid var(--line); }
.doc-item a { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 6px; color: var(--ink); text-decoration: none; }
.doc-item a:hover { background: var(--surface); }
.doc-item .ico { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--mist); display: grid; place-items: center; color: var(--harbor); }
.doc-item .t { font-weight: 700; display: block; }
.doc-item .m { font-size: var(--fs-sm); color: var(--muted); }
.doc-item .chip { white-space: nowrap; }
@media (max-width: 560px) { .doc-item a { grid-template-columns: 40px 1fr; } .doc-item .chip { display: none; } }

/* ---------- Document page ---------- */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: minmax(0, 1fr); } }
.tablist { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 0; flex-wrap: wrap; }
.tab { font: 700 var(--fs-sm) var(--font-body); background: transparent; border: 0; padding: 12px 16px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab[aria-selected="true"] { color: var(--harbor); border-bottom-color: var(--buoy); }
.panel { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding: clamp(20px, 4vw, 44px); }
.no-js .panel[hidden] { display: block; }
.panel-label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.doc-body { max-width: 72ch; overflow-wrap: break-word; }
.doc-body .field { max-width: 100%; }
.doc-body h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); margin-top: 1.4em; }
.doc-body .doc-title { text-align: center; margin-bottom: 1.6em; }
.doc-body .doc-title p { margin: 0; }
.doc-body .doc-title .big { font-family: var(--font-display); font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); color: var(--ink); }
.doc-body ol, .doc-body ul { margin-top: .3em; }
.doc-body li { margin-bottom: .3em; }
.doc-body ol[type="a"] { list-style-type: lower-alpha; }
.doc-body .field { display: inline-block; min-width: 12ch; border-bottom: 1px solid var(--ink); }
.doc-embed { width: 100%; height: min(80vh, 900px); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--mist); }
.original-img { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.doc-aside { display: grid; gap: 16px; position: sticky; top: 96px; }
@media (max-width: 900px) { .doc-aside { position: static; } }
.doc-aside h2 { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-sm); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.action-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.action { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 600 var(--fs-sm) var(--font-body); text-decoration: none; cursor: pointer; text-align: left; }
.action:hover { border-color: var(--harbor); background: var(--surface); color: var(--ink); }
.action svg { color: var(--harbor); }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.prevnext a { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; color: var(--ink); }
.prevnext a:hover { border-color: var(--harbor); }
.prevnext .dir { display: block; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
@media (max-width: 560px) { .prevnext { grid-template-columns: 1fr; } }

/* ---------- Forms (demonstration only) ---------- */
.demo-form { display: grid; gap: 16px; }
.demo-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .demo-form .row-2 { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: var(--fs-sm); margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.field input, .field textarea, .field select { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #8FA3AA; border-radius: var(--radius-sm); padding: 12px 14px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.demo-label { display: inline-flex; align-items: center; gap: 8px; background: #FFE9DC; color: var(--buoy-text); font-size: var(--fs-xs); font-weight: 700; padding: 6px 12px; border-radius: var(--radius-pill); }
.form-status { min-height: 1.5em; font-weight: 700; color: var(--harbor); margin: 0; }
.band-dark .field label { color: var(--on-dark); }
.band-dark .form-status { color: var(--aqua); }
.privacy-note { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.band-dark .privacy-note { color: var(--on-dark-muted); }

/* ---------- Stay informed ---------- */
.inform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.inform-card { background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 12px; }
.inform-card h3 { color: var(--on-dark); margin: 0; }
.inform-card p { margin: 0; }
.inform-card .btn { align-self: flex-start; margin-top: auto; }
.inform-card .inline-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.inform-card .inline-form input { flex: 1 1 180px; font: inherit; padding: 12px 14px; border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .95); color: var(--ink); }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, .4); color: var(--on-dark); text-decoration: none; font-weight: 700; font-size: var(--fs-sm); }
.social a:hover { background: var(--on-dark); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--harbor-night); color: var(--on-dark-muted); padding: clamp(48px, 6vw, 80px) 0 28px; font-size: var(--fs-sm); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--tide-line-aqua) repeat-x left center / 40px 10px; opacity: .7; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img.logotype { width: 230px; margin-bottom: 16px; }
.footer-brand .seal-row { display: flex; gap: 16px; align-items: center; }
.footer-brand .seal-row img { width: 64px; }
.site-footer h2 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--aqua); text-decoration: underline; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: var(--fs-xs); }

/* ---------- Motion: animate FROM hidden, only when JS and motion are allowed ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { animation: none; }
  .js .reveal.is-pending { opacity: 0; transform: translateY(18px); }
  .js .reveal.in { opacity: 1; transform: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .hero .rise { animation: rise .9s var(--ease) both; }
  .hero .rise-2 { animation-delay: .12s; }
  .hero .rise-3 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

/* ---------- Print ---------- */
@media print {
  .demo-bar, .utility, .site-header, .site-footer, .doc-aside, .tablist, .prevnext, .skip-link { display: none !important; }
  body { background: #FFFFFF; }
  .page-hero { background: none; color: #000000; padding: 0 0 12px; }
  .page-hero h1, .page-hero .meta { color: #000000; }
  .panel { border: 0; padding: 0; }
  .panel[hidden] { display: none !important; }
  a { color: #000000; }
}
