/* The Davis Islands — site styles
   Colour sources: Union Flag navy/red (official spec), gold sampled from the Davis Islands coat of arms,
   neutrals, focus and status colours from the GOV.UK Design System palette. No gradients. */

@font-face { font-family: 'Libre Caslon Text'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/caslon/libre-caslon-text-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Libre Caslon Text'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/caslon/libre-caslon-text-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Libre Caslon Text'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/caslon/libre-caslon-text-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/sans/source-sans-3-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/sans/source-sans-3-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/sans/source-sans-3-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/sans/source-sans-3-latin-700-normal.woff2) format('woff2'); }

:root {
  --navy: #012169;
  --red: #c8102e;
  --gold: #f8b800;
  --ink: #0b0c0c;
  --ink-2: #484949;
  --rule: #cecece;
  --paper: #faf8f6;
  --surface: #f4f8fb;
  --white: #ffffff;
  --focus: #ffdd00;
  --success: #0f7a52;
  --error: #ca3535;
  --on-navy-2: rgba(255, 255, 255, 0.8);
  --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --radius: 4px;
  --section: clamp(56px, 7vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
.lead, .card__text, .fact__label { text-wrap: pretty; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 3px solid transparent; background-color: var(--focus); color: var(--ink); box-shadow: 0 -2px var(--focus), 0 4px var(--ink); text-decoration: none; }
button:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  background-color: inherit; color: inherit; box-shadow: none;
  outline: 3px solid var(--focus); outline-offset: 0; box-shadow: inset 0 0 0 2px var(--ink);
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--focus); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + var(--gutter) * 2); }
.section { padding: var(--section) 0; }
.section--paper { background: var(--paper); }
.section--tight { padding: clamp(28px, 4vw, 48px) 0; }
.section--rule { border-top: 1px solid var(--rule); }

/* ---- Type ---- */
.display { font-family: var(--serif); font-size: clamp(2.25rem, 1.35rem + 3.4vw, 4.25rem); line-height: 1.06; letter-spacing: -0.015em; }
.h1 { font-family: var(--serif); font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.625rem); line-height: 1.1; letter-spacing: -0.012em; }
.h2 { font-family: var(--serif); font-size: clamp(1.625rem, 1.25rem + 1.4vw, 2.375rem); line-height: 1.18; letter-spacing: -0.008em; }
.h3 { font-family: var(--sans); font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.h4 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.eyebrow { display: block; margin-bottom: 14px; font-family: var(--sans); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.lead { font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem); line-height: 1.5; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: 0.9375rem; }
.serif-italic { font-family: var(--serif); font-style: italic; }

.prose { max-width: 68ch; }
.prose h2 { font-family: var(--serif); font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.2; margin: 1.6em 0 0.5em; }
.prose h3 { font-size: 1.25rem; font-weight: 700; margin: 1.5em 0 0.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); font-family: var(--serif); font-size: 1.25rem; color: var(--ink-2); }
.prose img { margin: 1.5em 0; border-radius: var(--radius); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 600 1.0625rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid var(--navy); border-radius: 2px;
  background: var(--navy); color: var(--white);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); text-decoration: none; }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--paper); border-color: var(--paper); color: var(--navy); }
.btn--ghost-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--navy); }
.text-link svg { width: 18px; height: 18px; transition: transform .15s ease; }
.text-link:hover { text-decoration: underline; color: var(--navy); }
.text-link:hover svg { transform: translateX(3px); }

/* ---- Tags ---- */
.tag { display: inline-block; padding: 3px 9px 2px; font: 700 0.75rem/1.5 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; border-radius: 2px; white-space: nowrap; }
.tag--news { background: #d2e2f1; color: #0f385c; }
.tag--verified { background: #cfe4dc; color: #083d29; }
.tag--ceremonial { background: #fff8cc; color: #806f00; }
.tag--draft { background: #f4d7d7; color: #651b1b; }

/* ---- Draft bar + ceremonial notice ---- */
.draft-bar { background: var(--red); color: var(--white); font-size: 0.875rem; font-weight: 600; text-align: center; padding: 6px var(--gutter); letter-spacing: 0.02em; }
.notice { background: var(--navy); color: var(--white); font-size: 0.875rem; }
.notice summary { list-style: none; cursor: pointer; padding: 8px 0; display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.notice summary img { margin-top: 1px; flex: none; }
.notice__text { flex: 1; }
.notice summary::-webkit-details-marker { display: none; }
.notice img { width: 16px; height: auto; }
.notice__how { color: var(--white); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; white-space: nowrap; }
@media (max-width: 600px) { .notice { font-size: 0.8125rem; } }
.notice__how svg { width: 14px; height: 14px; transition: transform .15s ease; }
.notice details[open] .notice__how svg { transform: rotate(180deg); }
.notice__body { padding: 4px 0 18px; display: grid; gap: 16px; grid-template-columns: 1fr; max-width: 900px; color: var(--on-navy-2); }
.notice__body strong { color: var(--white); display: block; margin-bottom: 2px; }
@media (min-width: 720px) { .notice__body { grid-template-columns: 1fr 1fr; } }

/* ---- Header ---- */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); position: relative; z-index: 20; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { height: 56px; width: auto; }
.brand__name { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.005em; }
.brand__sub { display: block; margin-top: 3px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.header-utility { display: none; align-items: center; gap: 24px; font-size: 0.9375rem; }
.header-utility a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.header-utility a:hover { text-decoration: underline; }
.header-utility svg { width: 18px; height: 18px; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  font: 600 1rem var(--sans); color: var(--navy); background: transparent; border: 2px solid var(--navy); border-radius: 2px; cursor: pointer;
}
.menu-toggle svg { width: 18px; height: 18px; }
.menu-toggle[aria-expanded="true"] { background: var(--navy); color: var(--white); }
.menu-toggle span { display: inline-flex; }
.menu-toggle__close, .menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none !important; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline-flex !important; }
.primary-nav { border-top: 1px solid var(--rule); display: none; }
.primary-nav.is-open { display: block; }
.primary-nav ul { list-style: none; margin: 0; padding: 8px 0 16px; }
.primary-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); font-weight: 600; color: var(--ink); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 4px 0 0 var(--red); padding-left: 14px; }
.primary-nav .nav-extra a { font-weight: 400; color: var(--ink-2); }
.gold-rule { height: 3px; background: var(--gold); }

@media (min-width: 1080px) {
  .header-utility { display: flex; }
  .menu-toggle { display: none; }
  .primary-nav { display: block; }
  .primary-nav ul { display: flex; gap: clamp(18px, 2.2vw, 34px); padding: 0; }
  .primary-nav .nav-extra { display: none; }
  .primary-nav a { padding: 15px 0 13px; border-bottom: 3px solid transparent; font-size: 1rem; white-space: nowrap; }
  .primary-nav a:hover { border-bottom-color: var(--rule); }
  .primary-nav a[aria-current="page"] { border-bottom-color: var(--red); box-shadow: none; padding-left: 0; }
}
@media (max-width: 420px) {
  .brand img { height: 46px; }
  .brand__name { font-size: 1.25rem; }
  .brand__sub { font-size: 0.6875rem; letter-spacing: 0.1em; }
  .menu-toggle .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-toggle { padding: 8px 10px; }
}

/* ---- Home hero (photo with overlapping panel) ---- */
.hero { position: relative; background: var(--paper); }
.hero__media { position: relative; height: clamp(300px, 62vw, 680px); overflow: hidden; background: #c9d6dd; }
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__credit { position: absolute; right: 10px; top: 8px; font-size: 0.75rem; color: var(--white); background: rgba(11, 12, 12, 0.6); padding: 2px 8px; border-radius: 2px; }
.hero__credit a { color: var(--white); }
.hero__panel { position: relative; margin-top: -56px; background: var(--white); padding: 28px 22px 30px; border-top: 4px solid var(--gold); box-shadow: 0 1px 0 var(--rule); }
.hero__panel .display { margin-bottom: 16px; }
.hero__panel .lead { margin-bottom: 26px; }
@media (min-width: 900px) {
  .hero__media { height: clamp(560px, 48vw, 720px); }
  .hero__inner { position: absolute; left: 0; right: 0; bottom: 56px; }
  .hero__panel { margin-top: 0; width: min(680px, 62%); padding: 44px 48px 46px; box-shadow: none; }
  .hero__credit { top: auto; bottom: 8px; }
  .hero { padding-bottom: 0; }
}

/* ---- Motto band ---- */
.motto { text-align: center; padding: clamp(44px, 6vw, 72px) 0; background: var(--paper); border-bottom: 1px solid var(--rule); }
.motto__arms { width: 92px; margin: 0 auto 18px; }
.motto__latin { display: flex; align-items: center; justify-content: center; gap: 18px; font-family: var(--serif); font-size: clamp(1.25rem, 1rem + 1.4vw, 2rem); letter-spacing: 0.18em; color: var(--navy); }
.motto__latin::before, .motto__latin::after { content: ''; height: 1px; width: clamp(32px, 8vw, 120px); background: var(--gold); }
.motto__en { margin: 8px 0 0; font-family: var(--serif); font-style: italic; color: var(--ink-2); }
@media (max-width: 520px) {
  .motto__latin { font-size: 1.1875rem; letter-spacing: 0.12em; white-space: nowrap; }
  .motto__latin::before, .motto__latin::after { display: none; }
}

/* ---- Split (image + text) ---- */
.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 5 / 4; object-fit: cover; }
.split__media figcaption { margin-top: 8px; font-size: 0.8125rem; color: var(--ink-2); }
.split--top { align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 6fr; }
  .split--reverse { grid-template-columns: 6fr 5fr; }
  .split--reverse .split__media { order: 2; }
}

/* ---- Section head ---- */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .h2 { max-width: 22ch; }
.section-head p { max-width: 52ch; margin: 12px 0 0; color: var(--ink-2); }

/* ---- Explore cards (4-up) ---- */
.cards { display: grid; gap: 28px 24px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.card:hover { color: var(--ink); }
.card__media { overflow: hidden; border-radius: var(--radius); background: var(--paper); aspect-ratio: 3 / 2; }
@media (min-width: 1024px) { .card__media { aspect-ratio: 4 / 5; } }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card__media--art { background: var(--white); border: 1px solid var(--rule); display: grid; place-items: center; }
.card__media--art img { object-fit: contain; padding: 14%; }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding-top: 16px; }
.card__title { font-family: var(--serif); font-size: 1.375rem; line-height: 1.25; margin-bottom: 6px; }
.card__text { color: var(--ink-2); font-size: 1rem; margin: 0 0 12px; }
.card:hover .card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.card .text-link { margin-top: auto; }

/* ---- Key facts ---- */
.facts { display: grid; gap: 28px 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding-left: 16px; border-left: 4px solid var(--navy); }
.fact--gold { border-left-color: var(--gold); }
.fact--red { border-left-color: var(--red); }
.fact__value { display: block; font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.15; color: var(--ink); }
.fact__label { display: block; margin-top: 6px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.4; }
@media (max-width: 380px) { .facts { grid-template-columns: 1fr; } }

/* ---- News ---- */
.news-feature { display: grid; gap: 32px 24px; }
@media (min-width: 900px) { .news-feature { grid-template-columns: 7fr 5fr; } }
.news-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 20px; }
.news-card:hover { color: var(--ink); }
.news-card__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper); margin-bottom: 16px; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__title { font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); line-height: 1.25; margin: 10px 0 8px; }
.news-card:hover .news-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.news-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; color: var(--ink-2); font-size: 0.9375rem; }
.circle-arrow { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--ink); border-radius: 50%; flex: none; }
.circle-arrow svg { width: 16px; height: 16px; }
.news-card:hover .circle-arrow { background: var(--navy); border-color: var(--navy); color: var(--white); }
.news-stack { display: grid; gap: 24px; align-content: start; }
.empty-state { padding: 32px; border: 1px dashed var(--rule); border-radius: var(--radius); color: var(--ink-2); text-align: center; }

.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.news-row { border-bottom: 1px solid var(--rule); }
.news-row a { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: 24px 0; text-decoration: none; color: var(--ink); align-items: start; }
.news-row a:hover { color: var(--ink); }
.news-row__date { grid-column: 1 / -1; font-family: var(--serif); font-size: 1.0625rem; color: var(--ink-2); }
.news-row__title { font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); line-height: 1.25; margin: 6px 0 6px; }
.news-row a:hover .news-row__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.news-row__text { color: var(--ink-2); margin: 0; max-width: 64ch; }
.news-row__thumb { display: none; width: 220px; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; }
.news-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-row .circle-arrow { align-self: center; }
@media (min-width: 760px) {
  .news-row a { grid-template-columns: 180px 1fr auto auto; align-items: center; }
  .news-row__date { grid-column: auto; }
  .news-row__thumb { display: block; }
}
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--rule); text-decoration: none; }
.pager span[aria-current] { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---- Popular links (GOV.UK pattern) ---- */
.popular { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .popular { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .popular { grid-template-columns: repeat(3, 1fr); } }
.popular a { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; font-weight: 600; text-decoration: none; color: var(--navy); }
.popular a:hover .popular__label { text-decoration: underline; }
.popular .circle-arrow { width: 30px; height: 30px; border-color: var(--navy); background: var(--navy); color: var(--white); }
.popular .circle-arrow svg { width: 14px; height: 14px; }
.popular__label { padding-top: 3px; }
.popular__hint { display: block; font-weight: 400; color: var(--ink-2); font-size: 0.9375rem; }

/* ---- Page header ---- */
.page-header { background: var(--paper); border-bottom: 1px solid var(--rule); padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); }
.breadcrumbs { margin-bottom: clamp(24px, 4vw, 44px); font-size: 0.9375rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumbs li { display: inline-flex; align-items: center; color: var(--ink-2); }
.breadcrumbs li + li::before { content: ''; width: 7px; height: 7px; margin: 0 12px 0 10px; border-top: 1px solid var(--ink-2); border-right: 1px solid var(--ink-2); transform: rotate(45deg); }
.breadcrumbs a { color: var(--ink); }
@media (max-width: 640px) { .breadcrumbs li[aria-current] { display: none; } }
.page-header__grid { display: grid; gap: 32px; align-items: end; }
.page-header .h1 { max-width: 18ch; }
.page-header .lead { max-width: 60ch; margin: 18px 0 0; }
.page-header__aside img { max-height: 220px; width: auto; margin-left: auto; }
@media (min-width: 900px) { .page-header__grid--aside { grid-template-columns: 1fr auto; } }
@media (max-width: 899px) { .page-header__aside { display: none; } }

/* ---- Callouts ---- */
.inset { padding: 18px 22px; border-left: 6px solid var(--gold); background: var(--paper); margin: 1.5em 0; }
.inset > :last-child { margin-bottom: 0; }
.warning { display: flex; gap: 16px; align-items: flex-start; margin: 1.5em 0; }
.warning__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--white); font: 700 1.5rem/1 var(--sans); }
.warning__text { font-weight: 700; padding-top: 4px; }
.panel { background: var(--navy); color: var(--white); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); }
.panel a:not(.btn) { color: var(--white); }
.panel .eyebrow { color: var(--gold); }
.panel p { color: var(--on-navy-2); }

/* ---- Two-column article layout ---- */
.with-aside { display: grid; gap: 48px; }
@media (min-width: 1000px) { .with-aside { grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; } }
.aside-box { border-top: 4px solid var(--navy); padding-top: 18px; }
.aside-box + .aside-box { margin-top: 36px; }
.aside-box h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 12px; }
.aside-box ul { list-style: none; margin: 0; padding: 0; }
.aside-box li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
@media (min-width: 1000px) { .sticky { position: sticky; top: 24px; } }

/* ---- Timeline ---- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; top: 6px; bottom: 6px; left: 7px; width: 2px; background: var(--rule); }
.tl-item { position: relative; padding: 0 0 36px 40px; }
.tl-item::before { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--navy); }
.tl-item--ceremonial::before { background: var(--gold); border-color: var(--gold); }
.tl-item__year { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: var(--navy); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tl-item__text { margin: 6px 0 4px; max-width: 56ch; }
.tl-item__src { font-size: 0.875rem; color: var(--ink-2); }
@media (min-width: 900px) {
  .timeline::before { left: 50%; margin-left: -1px; }
  .tl-item { width: 50%; padding: 0 56px 44px 0; text-align: right; }
  .tl-item::before { left: auto; right: -8px; }
  .tl-item__year { justify-content: flex-end; }
  .tl-item__text { margin-left: auto; }
  .tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 44px 56px; text-align: left; }
  .tl-item:nth-child(even)::before { right: auto; left: -8px; }
  .tl-item:nth-child(even) .tl-item__year { justify-content: flex-start; }
  .tl-item:nth-child(even) .tl-item__text { margin-left: 0; }
}

/* ---- Fact vs tradition grid ---- */
.topics { display: grid; gap: 0 48px; grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
@media (min-width: 900px) { .topics { grid-template-columns: 1fr 1fr; } }
.topic { padding: 28px 0; border-bottom: 1px solid var(--rule); }
.topic h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin: 10px 0 10px; }
.topic p { color: var(--ink); margin-bottom: 8px; }
.topic .src { font-size: 0.875rem; color: var(--ink-2); }

/* ---- Officials list ---- */
.officials { display: grid; gap: 24px 64px; }
@media (min-width: 900px) { .officials { grid-template-columns: 4fr 7fr; } }
.official-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.official { display: flex; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.official__avatar { flex: none; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--paper); border: 1px solid var(--rule); display: grid; place-items: center; }
.official__avatar img { width: 100%; height: 100%; object-fit: cover; }
.official__avatar img.is-arms { width: 74%; height: auto; object-fit: contain; }
.official__name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.official__role { color: var(--ink-2); margin: 2px 0 6px; }

/* ---- Document cards ---- */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.doc { display: flex; gap: 20px; align-items: center; padding: 20px; border: 1px solid var(--rule); border-radius: 6px; background: var(--white); }
.doc__icon { flex: none; width: 72px; height: 88px; border: 1px solid var(--rule); background: var(--paper); display: grid; place-items: center; border-radius: 2px; }
.doc__icon img { width: 48px; }
.doc h3 { font-family: var(--serif); font-size: 1.375rem; font-weight: 400; margin: 0 0 4px; }
.doc p { margin: 0 0 8px; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 480px) { .doc { flex-direction: column; align-items: flex-start; } }

/* ---- Symbols ---- */
.symbols { display: grid; gap: 40px 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .symbols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .symbols { grid-template-columns: repeat(3, 1fr); } }
.symbol__media { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); display: grid; place-items: center; overflow: hidden; }
.symbol__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 22px; }
.symbol__media--plate { background: var(--paper); }
.symbol__media--plate img { padding: 10px; }
.symbol__media--photo img { object-fit: cover; padding: 0; }
.symbol__media--motto { background: var(--navy); color: var(--white); text-align: center; padding: 24px; }
.symbol__media--motto span { display: block; font-family: var(--serif); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); letter-spacing: 0.16em; }
.symbol__media--motto em { display: block; margin-top: 10px; font-family: var(--serif); color: var(--gold); }
.symbol__media--pending { background: var(--paper); border-style: dashed; color: var(--ink-2); text-align: center; padding: 24px; font-size: 1rem; }
.symbol h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin: 18px 0 8px; }
.symbol p { color: var(--ink-2); font-size: 1rem; margin-bottom: 10px; }
.symbol .small a { font-weight: 600; }

/* ---- Feature panel (Coast Guard) ---- */
.feature-panel { display: grid; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); }
.feature-panel__media { background: var(--white); display: grid; place-items: center; padding: clamp(28px, 5vw, 56px); }
.feature-panel__media img { max-width: 360px; width: 100%; }
.feature-panel__body { background: var(--navy); color: var(--white); padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.feature-panel__body .eyebrow { color: var(--gold); }
.feature-panel__body p { color: var(--on-navy-2); }
.feature-panel__motto { font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.14em; color: var(--white); margin-top: 8px; }
@media (min-width: 900px) { .feature-panel { grid-template-columns: 1fr 1fr; } }

.fleet { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fleet { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .fleet { grid-template-columns: repeat(4, 1fr); } }
.fleet__item .eyebrow { margin-bottom: 6px; font-size: 0.75rem; }
.fleet-poster { margin: 0 0 32px; }
.fleet-poster img { width: 100%; border-radius: var(--radius); }
.fleet-poster figcaption { margin-top: 8px; font-size: 0.8125rem; color: var(--ink-2); }
.fleet__item { border: 1px solid var(--rule); border-top: 4px solid var(--navy); padding: 20px 22px; border-radius: 0 0 var(--radius) var(--radius); background: var(--white); }
.fleet__item--gold { border-top-color: var(--gold); }
.fleet__count { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--navy); }
.fleet__item h3 { margin: 0 0 6px; font-size: 1.125rem; font-weight: 700; }
.fleet__item p { color: var(--ink-2); margin: 0; font-size: 1rem; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before { content: ''; position: absolute; left: 4px; top: 4px; width: 9px; height: 16px; border-right: 3px solid var(--success); border-bottom: 3px solid var(--success); transform: rotate(45deg); }
.check-list--two { gap: 12px 40px; }
@media (min-width: 760px) { .check-list--two { grid-template-columns: 1fr 1fr; } }

/* ---- Alternating rows (Conservation) ---- */
.rows { display: grid; gap: clamp(48px, 7vw, 96px); }
.row-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.row-media figcaption { margin-top: 8px; font-size: 0.8125rem; color: var(--ink-2); }

/* ---- Map ---- */
.map-layout { display: grid; gap: 24px; }
@media (min-width: 1000px) { .map-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.map-frame { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: #aad3df; }
#island-map { height: clamp(360px, 62vh, 620px); width: 100%; }
@media (min-width: 1000px) { #island-map { height: 660px; } }
.island-card { border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px; background: var(--white); }
.island-card + .island-card { margin-top: 16px; }
.island-card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin: 10px 0 6px; }
.island-card dl { margin: 0 0 14px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 0.9375rem; }
.island-card dt { color: var(--ink-2); }
.island-card dd { margin: 0; }
.island-card button { font: 600 1rem var(--sans); color: var(--navy); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; text-decoration: underline; text-underline-offset: 0.18em; }
.island-card button svg { width: 16px; height: 16px; }
.map-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.leaflet-container { font-family: var(--sans); font-size: 0.9375rem; }
.island-label { background: var(--white); border: 1px solid var(--navy); border-radius: 2px; color: var(--navy); font-family: var(--serif); font-size: 0.9375rem; padding: 3px 8px; white-space: nowrap; box-shadow: none; }
.island-label::before { display: none; }

/* ---- Gallery ---- */
.gallery { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery > :first-child { grid-row: span 2; } .gallery > :first-child .gallery__btn { height: 100%; } .gallery > :first-child img { aspect-ratio: auto; height: 100%; } }
.gallery__item { margin: 0; display: flex; flex-direction: column; }
.gallery__btn { display: block; width: 100%; padding: 0; border: 0; background: var(--paper); cursor: zoom-in; border-radius: var(--radius); overflow: hidden; flex: 1; }
.gallery__btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.gallery__btn:hover img { transform: scale(1.02); }
.gallery__item figcaption { padding-top: 10px; font-size: 0.9375rem; color: var(--ink); text-align: center; }
.gallery__item figcaption .credit { display: block; font-size: 0.8125rem; color: var(--ink-2); }
.lightbox { border: 0; padding: 0; max-width: min(1200px, 94vw); width: 100%; background: transparent; }
.lightbox::backdrop { background: rgba(11, 12, 12, 0.88); }
.lightbox__inner { position: relative; background: var(--ink); color: var(--white); border-radius: var(--radius); overflow: hidden; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: var(--ink); }
.lightbox__caption { padding: 14px 18px 16px; font-size: 0.9375rem; color: var(--on-navy-2); }
.lightbox__caption strong { color: var(--white); font-weight: 600; display: block; }
.lightbox__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.lightbox__close svg { width: 18px; height: 18px; }

/* ---- Contact ---- */
.contact { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact { grid-template-columns: 4fr 7fr; gap: 80px; } }
.contact__details { display: grid; gap: 28px; align-content: start; }
.contact__details h2 { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.contact__details p { margin: 0; }
.contact__intro { font-family: var(--serif); font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem); line-height: 1.3; margin-bottom: 32px; }
.field { margin-bottom: 26px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { display: block; color: var(--ink-2); font-size: 0.9375rem; margin: -2px 0 8px; }
.field input, .field textarea, .field select {
  width: 100%; font: 400 1.125rem/1.4 var(--sans); color: var(--ink);
  padding: 10px 12px; border: 2px solid var(--ink); border-radius: 0; background: var(--white);
}
.field textarea { min-height: 180px; resize: vertical; }
.field--error { border-left: 5px solid var(--error); padding-left: 15px; }
.field__error { display: block; color: var(--error); font-weight: 700; margin-bottom: 6px; }
.field--error input, .field--error textarea { border-color: var(--error); }
.field-row { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error-summary { border: 5px solid var(--error); padding: 20px; margin-bottom: 32px; }
.error-summary:focus, .error-summary:focus-visible { background: transparent; color: inherit; box-shadow: none; outline: 3px solid var(--focus); outline-offset: 0; }
.error-summary h2 { font-size: 1.375rem; font-weight: 700; margin-bottom: 10px; }
.error-summary ul { margin: 0; padding-left: 0; list-style: none; }
.error-summary a { color: var(--error); font-weight: 700; }
.confirmation { background: var(--success); color: var(--white); padding: 28px; border-radius: 2px; margin-bottom: 32px; }
.confirmation h2 { font-family: var(--serif); font-size: 1.75rem; margin-bottom: 8px; }
.confirmation p { margin: 0; }

/* ---- Article ---- */
.article-head { padding: clamp(28px, 4vw, 48px) 0 0; }
.article-head .h1 { max-width: 22ch; margin: 14px 0 16px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 28px; }
.article-meta time { color: var(--ink-2); }
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share__label { font-size: 0.9375rem; color: var(--ink-2); margin-right: 4px; }
.share a, .share button { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--rule); border-radius: 50%; color: var(--ink); background: var(--white); cursor: pointer; text-decoration: none; }
.share a:hover, .share button:hover { border-color: var(--navy); color: var(--white); background: var(--navy); }
.share svg { width: 17px; height: 17px; }
.share__status { font-size: 0.875rem; color: var(--success); min-width: 4ch; }
.article-cover { margin: 32px 0 0; }
.article-cover img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius); }
.article-body { padding: clamp(32px, 5vw, 56px) 0 var(--section); }

/* ---- Charter document ---- */
.charter-sheet { background: var(--white); border: 1px solid var(--rule); padding: clamp(10px, 2vw, 16px); max-width: 860px; margin: 0 auto; }
.charter-sheet__inner { border: 2px solid var(--gold); outline: 1px solid var(--gold); outline-offset: -8px; padding: clamp(28px, 6vw, 72px) clamp(20px, 6vw, 72px); }
.charter-sheet__arms { width: 120px; margin: 0 auto 20px; }
.charter-sheet h2 { font-family: var(--serif); text-align: center; font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem); line-height: 1.2; margin-bottom: 6px; }
.charter-sheet .charter-sub { text-align: center; font-family: var(--serif); font-style: italic; color: var(--ink-2); margin-bottom: 32px; }
.charter-sheet h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; margin: 28px 0 8px; }
.charter-sheet p, .charter-sheet li { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.7; }
.charter-sheet .motto-line { text-align: center; letter-spacing: 0.18em; color: var(--navy); margin-top: 36px; }

/* ---- Credits table ---- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 640px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.table th { font-weight: 700; }
.table img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: var(--white); margin-top: 0; }
.site-footer a { color: var(--white); }
.footer-main { display: grid; gap: 40px; padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); }
@media (min-width: 1000px) { .footer-main { grid-template-columns: 5fr 7fr; gap: 64px; } }
.footer-brand img { width: 84px; margin-bottom: 20px; }
.footer-brand__motto { font-family: var(--serif); font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); line-height: 1.2; margin: 0 0 10px; text-wrap: balance; }
.footer-brand__latin { letter-spacing: 0.18em; color: var(--gold); font-family: var(--serif); margin: 0; }
.footer-cols { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-cols h2 { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-cols a { text-decoration: none; color: var(--on-navy-2); font-size: 1rem; }
.footer-cols a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.24); padding: 28px 0 36px; display: grid; gap: 18px; font-size: 0.9375rem; color: var(--on-navy-2); }
.footer-legal__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
.footer-legal__copy { color: var(--white); }
.footer-legal p { margin: 0; max-width: 90ch; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); display: inline-grid; place-items: center; }
.social a:hover { background: var(--white); color: var(--navy); }
.social svg { width: 18px; height: 18px; }
.site-footer :focus-visible { color: var(--ink); }

/* ---- Gate ---- */
.gate { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 32px 16px; background: var(--paper); }
.gate__card { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--gold); border-radius: 6px; padding: clamp(28px, 6vw, 44px); text-align: center; }
.gate__arms { width: 112px; margin: 0 auto 18px; }
.gate h1 { font-family: var(--serif); font-size: 2rem; line-height: 1.15; margin-bottom: 10px; }
.gate p { color: var(--ink-2); font-size: 1rem; }
.gate form { text-align: left; margin-top: 24px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 76px; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 600 0.875rem var(--sans); color: var(--navy); background: var(--paper); border: 1px solid var(--rule); border-radius: 2px; padding: 6px 10px; cursor: pointer; }
.gate__error { color: var(--error); font-weight: 700; margin: 0 0 10px; }
.gate__foot { text-wrap: balance; margin-top: 24px; font-size: 0.8125rem; color: var(--ink-2); max-width: 440px; text-align: center; }

/* ---- Misc ---- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; }
.stack > * + * { margin-top: 16px; }
.photo-credit { font-size: 0.8125rem; color: var(--ink-2); }
.photo-credit a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .notice, .draft-bar, .site-header, .site-footer, .share, .btn { display: none !important; }
  .charter-sheet { border: 0; }
}

/* ---- Live conditions (references: Tide Guide tide card, The Weather Channel / Lumy stat rows, Sunday conditions chips) ---- */
.cond-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cond-grid { grid-template-columns: 1fr 1fr; } .cond-card--tide { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .cond-grid { grid-template-columns: 1fr 1fr 1.7fr; } .cond-card--tide { grid-column: auto; } }
.cond-card { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--navy); border-radius: 0 0 var(--radius) var(--radius); padding: 20px 22px 22px; display: flex; flex-direction: column; min-width: 0; }
.cond-card--tide { border-top-color: var(--gold); }
.cond-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.cond-card__head h3 { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.cond-card__head span { font-size: 0.875rem; color: var(--ink-2); text-align: right; }
.cond-card svg:not(.tide-chart) { width: 18px; height: 18px; flex: none; }
.cond-clock { font-family: var(--serif); font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); line-height: 1; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.cond-date { color: var(--ink-2); margin: 0 0 18px; }
.cond-sun { margin: auto 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--rule); padding-top: 14px; }
.cond-sun dt { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--ink-2); }
.cond-sun dd { margin: 2px 0 0; font-weight: 600; font-size: 1.0625rem; }
.cond-temp { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; margin-bottom: 14px; }
.cond-temp__icon { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); color: var(--navy); display: grid; place-items: center; }
.cond-card .cond-temp__icon svg { width: 28px; height: 28px; }
.cond-temp__value { font-family: var(--serif); font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); line-height: 1; }
.cond-temp__value small { font-size: 0.45em; color: var(--ink-2); margin-left: 2px; vertical-align: top; }
.cond-temp__label { color: var(--ink-2); }
.cond-rows { margin: auto 0 0; border-top: 1px solid var(--rule); }
.cond-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; }
.cond-rows div:last-child { border-bottom: 0; padding-bottom: 0; }
.cond-rows dt { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.cond-rows dd { margin: 0; font-weight: 600; text-align: right; }
.cond-tide { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 6px; }
.cond-tide__now { font-family: var(--serif); font-size: clamp(2.25rem, 1.9rem + 1.6vw, 2.875rem); line-height: 1; }
.cond-tide__now small { font-size: 0.45em; color: var(--ink-2); }
.cond-tide__state { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 0.9375rem; padding: 2px 10px 2px 6px; border-radius: 999px; }
.cond-tide__state--up { background: #d2e2f1; color: #0f385c; }
.cond-tide__state--down { background: #f3f3f3; color: var(--ink); }
.cond-tide__next { flex-basis: 100%; color: var(--ink-2); font-size: 0.9375rem; }
.tide-plot { position: relative; margin: 10px -4px 4px; }
.tide-chart { display: block; width: 100%; height: 150px; overflow: visible; }
.tide-chart__area { fill: #d2e2f1; }
.tide-chart__line { fill: none; stroke: var(--navy); stroke-width: 2.5; }
.tide-chart__now-rule { stroke: var(--red); stroke-width: 1; stroke-dasharray: 3 4; }
.tide-overlay { position: absolute; inset: 0; pointer-events: none; }
.tide-mark { position: absolute; transform: translate(-50%, -50%); }
.tide-mark i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--white); border: 2px solid var(--navy); }
.tide-mark b { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 0.75rem; font-weight: 700; white-space: nowrap; color: var(--ink); }
.tide-mark--low b { bottom: auto; top: 14px; }
.tide-mark--end b { left: auto; right: -4px; transform: none; }
.tide-mark--start b { left: -4px; transform: none; }
.tide-mark.is-past b { color: var(--ink-2); font-weight: 600; }
.tide-now { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--red); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--red); transform: translate(-50%, -50%); }
.tide-list { list-style: none; margin: 18px 0 0; padding: 12px 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
@media (min-width: 560px) { .tide-list { grid-template-columns: repeat(4, 1fr); } }
.tide-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: center; font-size: 0.875rem; }
.tide-list li svg { grid-row: span 3; width: 16px; height: 16px; color: var(--navy); }
.tide-list span { color: var(--ink-2); }
.tide-list strong { font-size: 1rem; }
.tide-list em { font-style: normal; color: var(--ink-2); }
.tide-list li.is-past strong { color: var(--ink-2); font-weight: 600; }
.tide-list li.is-past svg { color: #858686; }
.cond-note { margin: 14px 0 0; font-size: 0.8125rem; color: var(--ink-2); }
.cond-note a { color: var(--ink-2); }
.conditions__loading { padding: 18px 0; }
.cond-chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cond-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--white); font-size: 0.875rem; white-space: nowrap; }
.cond-chip svg { width: 15px; height: 15px; color: var(--navy); }
