/* aveiro.info — shared stylesheet. Tokens from handoff/DESIGN-SYSTEM.md. */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #161616;
  --red: #c8102e;
  --red-hover: #a20d25;
  --red-pressed: #850b1f;
  --muted: #5c5c5c;
  --line: #d8d8d8;
  --panel: #f3f3f3;
  --white: #fff;
  --footer-muted: #bbb;
  --footer-line: #444;
  --focus: #1d4ed8;
  --success: #eff7f0;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 20px;
  --container: 1280px;
  --t: 140ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

/* Links never underline (owner rule), in any state. Colour and weight carry the affordance. */
a, a:hover, a:focus, a:active, a:visited { text-decoration: none; }
a { color: inherit; transition: color var(--t) ease; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.dark :focus-visible, .site-footer :focus-visible, .menu-panel :focus-visible { outline-color: #8ab4ff; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--ink); color: var(--white);
  padding: 12px 16px; font-weight: 650; font-size: 14px;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }
@media (min-width: 1360px) { :root { --gutter: 80px; } .container { max-width: calc(var(--container) + 160px); } }

/* ---------- Icons (supplied SVGs as masks so they follow currentColor) ---------- */
.i { display: inline-block; width: 24px; height: 24px; flex: none; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.i-search { --i: url("/assets/icons/search.svg"); }
.i-menu { --i: url("/assets/icons/menu.svg"); }
.i-close { --i: url("/assets/icons/close.svg"); }
.i-arrow { --i: url("/assets/icons/arrow.svg"); }
.i-bookmark { --i: url("/assets/icons/bookmark.svg"); }
.i-share { --i: url("/assets/icons/share.svg"); }
.i-plus { --i: url("/assets/icons/plus.svg"); }
.i-minus { --i: url("/assets/icons/minus.svg"); }
.i-mail { --i: url("/assets/icons/mail.svg"); }
.i-check { --i: url("/assets/icons/check.svg"); }
.i-pin { --i: url("/assets/icons/pin.svg"); }
.i-clock { --i: url("/assets/icons/clock.svg"); }
.i-chevron { --i: url("/assets/icons/chevron.svg"); }

/* ---------- Header ---------- */
.utility { display: none; background: var(--ink); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.utility .container { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.utility__right { font-weight: 500; }
.site-header { position: relative; z-index: 50; background: var(--white); border-bottom: 2px solid var(--ink); }
.masthead { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.masthead__brand { display: flex; align-items: center; gap: 36px; min-width: 0; }
.logo { display: block; width: 146px; }
.logo img { width: 100%; height: auto; }
.tagline { display: none; color: var(--muted); font-size: 16px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink);
  border-radius: 2px; transition: color var(--t) ease, background-color var(--t) ease;
}
.icon-btn:hover { color: var(--red); }
.masthead__actions { display: flex; gap: 4px; align-items: center; }
.masthead__actions--start { margin-left: -10px; }
.masthead__actions--end { margin-right: -10px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: inline-block; }
.menu-toggle[aria-expanded="true"] .i-menu { display: none; }
.navbar { display: none; }

@media (max-width: 1023px) {
  .masthead { position: relative; }
  .masthead__brand { position: absolute; left: 50%; transform: translateX(-50%); }
  .masthead__actions--desktop { display: none; }
}
@media (min-width: 1024px) {
  .site-header { border-bottom: 0; }
  .utility { display: block; }
  .masthead { border-bottom: 2px solid var(--ink); }
  .masthead__actions--start { display: none; }
  .logo { width: 204px; }
  .tagline { display: block; }
  .navbar { display: block; border-bottom: 1px solid var(--line); }
  .navbar ul { display: flex; gap: 30px; list-style: none; height: 52px; align-items: stretch; }
  .navbar li { display: flex; }
  .navbar a { position: relative; display: flex; align-items: center; font-size: 14px; font-weight: 650; }
  .navbar a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--red);
    transform: scaleX(0); transform-origin: left; transition: transform 160ms ease; }
  .navbar a:hover { color: var(--red); }
  .navbar a:hover::after, .navbar a[aria-current]::after { transform: scaleX(1); }
}
.masthead > .masthead__actions--start + .masthead__brand + .masthead__actions--end { margin-left: auto; }

/* ---------- Menu panel (dialog-like overlay under the header) ---------- */
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  height: calc(100vh - 74px); height: calc(100dvh - 74px);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--ink); color: var(--white);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}
.menu-panel.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 160ms ease, transform 160ms ease; }
.menu-panel[hidden] { display: none; }
.menu-panel__inner { padding-top: 32px; padding-bottom: 48px; }
.menu-panel__title { font-size: 28px; line-height: 1.15; font-weight: 800; margin-bottom: 12px; }
.menu-sections { list-style: none; }
.menu-section { border-bottom: 1px solid var(--footer-line); padding: 14px 0 16px; }
.menu-section__link { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px;
  font-size: 25px; line-height: 1.2; font-weight: 750; }
.menu-section__link .num { color: #ff6b81; font-size: 13px; font-weight: 700; letter-spacing: .08em; margin-right: 14px; font-variant-numeric: tabular-nums; }
.menu-section__link .label { flex: 1; }
.menu-section__link .i { transition: transform var(--t) ease; }
.menu-section__link:hover { color: #ff8a9b; }
.menu-section__link:hover .i { transform: translateX(4px); }
.menu-sub { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.menu-sub a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border: 1px solid var(--footer-line);
  border-radius: 2px; font-size: 14px; font-weight: 600; color: #e6e6e6; transition: border-color var(--t) ease, color var(--t) ease, background-color var(--t) ease; }
.menu-sub a:hover { border-color: var(--red); background: var(--red); color: var(--white); }
.menu-sub a[aria-current] { border-color: var(--white); color: var(--white); }
.menu-search { display: flex; margin-top: 32px; background: #2a2a2a; }
.menu-search label { flex: 1; }
.menu-search input { width: 100%; height: 56px; padding: 0 16px; border: 0; background: transparent; color: var(--white); font-size: 16px; }
.menu-search input::placeholder { color: #cfcfcf; opacity: 1; }
.menu-search button { width: 56px; height: 56px; border: 0; background: transparent; color: var(--white); display: inline-flex; align-items: center; justify-content: center; }
.menu-search button:hover { background: var(--red); }
.menu-utility { margin-top: 28px; font-size: 16px; }
.menu-utility a { display: inline-flex; align-items: center; min-height: 44px; }
.menu-utility a:hover { color: #ff8a9b; }
.menu-utility span { color: var(--footer-muted); padding: 0 6px; }
@media (min-width: 1024px) {
  .menu-panel { height: auto; max-height: calc(100vh - 110px); box-shadow: none; }
  .menu-panel__inner { padding-top: 40px; padding-bottom: 48px; }
  .menu-sections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 40px; }
  .menu-section { padding: 18px 0 22px; }
  .menu-section__link { font-size: 22px; }
  .menu-panel__foot { display: flex; align-items: center; gap: 40px; margin-top: 28px; }
  .menu-search { flex: 0 1 520px; margin-top: 0; }
  .menu-utility { margin-top: 0; }
}

/* ---------- Generic layout ---------- */
main { display: block; padding-top: 28px; padding-bottom: 64px; }
main:focus { outline: none; }
.section { margin-top: 48px; }
.eyebrow { display: block; color: var(--red); font-size: 12px; line-height: 16.8px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.page-head .eyebrow { margin-bottom: 8px; }
.page-title { font-size: 36px; line-height: 1.08; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; hyphens: auto; }
.page-intro { margin-top: 20px; max-width: 760px; color: var(--muted); font-size: 18px; line-height: 1.45; }
.home-title { font-size: 38px; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; }
@media (min-width: 1024px) {
  .page-title { font-size: 54px; line-height: 1.08; overflow-wrap: normal; }
  .page-intro { font-size: 21px; line-height: 1.45; }
  .home-title { font-size: 46px; line-height: 1.1; }
}

.breadcrumbs { margin-bottom: 16px; font-size: 12px; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; padding: 0 6px; color: var(--muted); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 24px; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs [aria-current] { color: var(--ink); }

.section-heading { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 24px;
  font-size: 24px; line-height: 1.35; font-weight: 750; }
.section-heading::before { content: ""; width: 4px; height: 28px; background: var(--red); flex: none; }
@media (min-width: 1024px) { .section-heading { font-size: 26px; } }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; }
.card__media { display: block; aspect-ratio: 1 / .58; background: var(--panel); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding-top: 16px; }
.card__eyebrow { margin-bottom: 8px; }
.card__title { font-size: 23px; line-height: 1.16; font-weight: 750; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a { transition: color var(--t) ease; }
.card:hover .card__title a { color: var(--red); }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; }
.card:focus-within :focus-visible { outline: none; }
.card__text { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.35; }
.cards { display: grid; gap: 40px 24px; grid-template-columns: 1fr; list-style: none; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 48px 24px; } }
.card--text { background: var(--panel); padding: 20px; }

/* ---------- Home ---------- */
.home-head { margin-bottom: 28px; }
.lead-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
.lead-story .card__media { aspect-ratio: 650 / 420; }
.lead-story .card__body { padding-top: 20px; }
.lead-story .card__title { font-size: 30px; line-height: 1.16; }
.lead-story .card__text { font-size: 18px; line-height: 1.45; }
.support-stack { display: grid; gap: 40px; }
.reading-list .eyebrow { margin-bottom: 12px; }
.reading-list ol { list-style: none; }
.reading-list li { border-bottom: 1px solid var(--line); }
.reading-list a { display: block; padding: 14px 0 18px; font-size: 19px; line-height: 1.3; font-weight: 750; }
.reading-list a:hover { color: var(--red); }
.reading-list .num { display: block; color: var(--red); font-size: 30px; line-height: 1.2; font-weight: 800; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) and (max-width: 1023px) {
  .lead-grid { grid-template-columns: 1fr 1fr; }
  .lead-story { grid-column: 1 / -1; }
  .support-stack { grid-column: 1; }
  .reading-list { grid-column: 2; }
}
@media (min-width: 1024px) {
  .lead-grid { grid-template-columns: minmax(0, 650fr) minmax(0, 330fr); gap: 24px; }
  .lead-story .card__title { font-size: 44px; line-height: 1.08; font-weight: 800; }
  .lead-story .card__text { font-size: 18px; }
  .support-stack { gap: 32px; align-content: start; }
  .reading-list { grid-column: 1 / -1; }
  .reading-list ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 24px; }
}
@media (min-width: 1200px) {
  .lead-grid { grid-template-columns: minmax(0, 650fr) minmax(0, 330fr) minmax(0, 252fr); }
  .reading-list { grid-column: auto; }
  .reading-list ol { display: block; }
}

.utility-cards { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; }
@media (min-width: 768px) { .utility-cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.utility-card { position: relative; display: block; min-height: 94px; padding: 20px; background: var(--panel); transition: background-color var(--t) ease; }
.utility-card strong { display: flex; align-items: center; justify-content: space-between; font-size: 22px; line-height: 1.2; font-weight: 750; }
.utility-card .i { width: 20px; height: 20px; color: var(--red); transition: transform var(--t) ease; }
.utility-card span.desc { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.utility-card:hover { background: #ebebeb; }
.utility-card:hover strong { color: var(--red); }
.utility-card:hover .i { transform: translateX(4px); }

.section-list { list-style: none; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .section-list { grid-template-columns: repeat(2, 1fr); column-gap: 24px; } }
@media (min-width: 1024px) { .section-list { grid-template-columns: repeat(4, 1fr); } }
.section-list li { border-bottom: 1px solid var(--line); }
.section-list a { display: block; padding: 16px 0 18px; }
.section-list strong { display: block; font-size: 19px; font-weight: 750; line-height: 1.25; }
.section-list span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.section-list a:hover strong { color: var(--red); }

/* ---------- Panels / newsletter replacement ---------- */
.panel { background: var(--panel); padding: 24px; }
.contact-panel { min-height: 240px; display: flex; flex-direction: column; justify-content: center; }
.contact-panel h2 { margin-top: 10px; font-size: 26px; line-height: 1.25; font-weight: 750; }
.contact-panel p { margin-top: 10px; color: var(--muted); }
.contact-panel .actions { margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--red); border-radius: 2px; background: var(--red); color: var(--white);
  font-size: 14px; line-height: 18.9px; font-weight: 650; transition: background-color var(--t) ease, border-color var(--t) ease, color var(--t) ease; }
a.btn, a.btn:visited { color: var(--white); }
.btn:hover { background: var(--red-hover); border-color: var(--red-hover); color: var(--white); }
.btn:active { background: var(--red-pressed); border-color: var(--red-pressed); }
.btn[disabled] { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.btn--secondary, a.btn--secondary, a.btn--secondary:visited { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn .i { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Article ---------- */
.byline { margin-top: 24px; font-size: 12px; font-weight: 600; color: var(--muted); }
.byline time { font-weight: 600; }
.tools { display: flex; align-items: center; gap: 4px; margin-top: 12px; margin-left: -10px; }
.tools .icon-btn[aria-pressed="true"] { color: var(--red); }
.tools .icon-btn[aria-pressed="true"] .i-bookmark { --i: url("/assets/icons/check.svg"); }
.tool-status { margin-left: 8px; font-size: 13px; color: var(--ink); min-height: 1em; }
.save-note { font-size: 12px; color: var(--muted); margin-top: 2px; max-width: 520px; }
.hero { margin-top: 20px; }
.hero__media { aspect-ratio: 1280 / 510; background: var(--panel); overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero figcaption { margin-top: 12px; font-size: 11px; line-height: 14.85px; color: var(--muted); }
@media (max-width: 767px) { .hero__media { aspect-ratio: 350 / 217; } }

.article { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
@media (min-width: 1024px) {
  .article { grid-template-columns: 180px minmax(0, 720px); column-gap: 40px; }
  .article__body { grid-column: 2; }
}
.toc { font-size: 14px; }
.toc__title { color: var(--red); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.toc ol { list-style: none; margin-top: 8px; }
.toc button { display: block; width: 100%; padding: 8px 0; border: 0; background: none; text-align: left; font-weight: 600; line-height: 1.35; font-size: 14px; }
.toc button:hover { color: var(--red); }
.toc details summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; background: var(--panel);
  font-weight: 650; cursor: pointer; list-style: none; }
.toc details summary::-webkit-details-marker { display: none; }
.toc details summary .i { transition: transform var(--t) ease; }
.toc details[open] summary .i { transform: rotate(180deg); }
.toc details ol { padding: 4px 16px 8px; background: var(--panel); margin-top: 0; }
@media (min-width: 1024px) {
  .toc details summary { display: none; }
  .toc details ol { padding: 0; background: none; margin-top: 8px; }
  .toc__sticky { position: sticky; top: 24px; }
}
.toc__label-desktop { display: none; }
@media (min-width: 1024px) { .toc__label-desktop { display: block; } }

.prose { font-size: 18px; line-height: 1.65; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 40px; font-size: 25px; line-height: 1.35; font-weight: 750; scroll-margin-top: 24px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; font-size: 20px; line-height: 1.35; font-weight: 750; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--red); }
.prose a, .faq a, .note a, .tab-panel a, .sources a, .info a { color: var(--red); font-weight: 600; }
.prose a:hover, .faq a:hover, .note a:hover, .tab-panel a:hover, .sources a:hover, .info a:hover { color: var(--red-hover); }
@media (min-width: 1024px) { .prose h2 { font-size: 30px; } }
.prose--wide { max-width: 760px; }

.note { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.note h2 { font-size: 22px; line-height: 1.3; font-weight: 750; }
.note p { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.sources { margin-top: 36px; padding: 20px; background: var(--panel); }
.sources h2, .prose .sources h2 { margin-top: 0; font-size: 18px; line-height: 1.35; font-weight: 750; }
.sources ul, .prose .sources ul { list-style: none; margin-top: 10px; padding-left: 0; font-size: 15px; line-height: 1.4; }
.prose .sources li + li { margin-top: 0; }
.sources li { padding: 6px 0; border-top: 1px solid var(--line); }
.sources li:first-child { border-top: 0; }
.sources a { display: inline-flex; min-height: 32px; align-items: center; overflow-wrap: anywhere; }
.updated { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ---------- FAQ accordion ---------- */
.faq { list-style: none; }
.faq li { border-top: 1px solid var(--line); }
.faq li:last-child { border-bottom: 1px solid var(--line); }
.faq h3 { font-size: 17px; font-weight: 650; }
.faq button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; padding: 14px 0;
  border: 0; background: none; text-align: left; font-weight: 650; font-size: 17px; line-height: 1.35; }
.faq button:hover { color: var(--red); }
.faq button .i-minus { display: none; }
.faq button[aria-expanded="true"] .i-minus { display: inline-block; }
.faq button[aria-expanded="true"] .i-plus { display: none; }
.faq__answer { padding: 0 40px 20px 0; font-size: 16px; line-height: 24px; color: var(--ink); }
.faq__answer[hidden] { display: none; }

/* ---------- Tabs and data panels ---------- */
.tabs { margin-top: 28px; }
.tablist { display: flex; width: 100%; max-width: 555px; }
.tablist [role="tab"] { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 8px 10px; border: 0; background: var(--panel); color: var(--ink);
  font-size: 14px; line-height: 1.25; font-weight: 650; text-align: left; transition: background-color var(--t) ease, color var(--t) ease; }
.tablist [role="tab"]:hover { background: #e5e5e5; }
.tablist [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--white); }
@media (min-width: 768px) { .tablist [role="tab"] { flex: 0 0 185px; padding: 8px 12px; } }
.tab-panel { margin-top: 20px; }
.tab-panel[hidden] { display: none; }
.data-panel { background: var(--panel); padding: 20px 20px 28px; }
.data-panel .eyebrow { margin-bottom: 10px; }
.data-panel h2 { font-size: 22px; line-height: 1.3; font-weight: 750; }
.data-panel p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.data-panel ul { margin-top: 12px; padding-left: 20px; font-size: 15px; line-height: 1.55; }
.data-panel li + li { margin-top: 6px; }
.data-panel li::marker { color: var(--red); }
@media (min-width: 1024px) { .data-panel { padding: 24px 24px 36px; } .data-panel h2 { font-size: 24px; } }
.official { margin-top: 24px; }
.service-body { margin-top: 36px; max-width: 760px; }
.service-body .prose h2 { font-size: 22px; }
@media (min-width: 1024px) { .service-body .prose h2 { font-size: 24px; } }

/* weather widget */
.forecast { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 16px; list-style: none; padding: 0 !important; }
.forecast li { background: var(--white); padding: 14px 16px; margin: 0 !important; }
.forecast .day { font-size: 13px; font-weight: 700; text-transform: capitalize; }
.forecast .temps { margin-top: 6px; font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
.forecast .temps span { color: var(--muted); font-weight: 600; font-size: 16px; }
.forecast .meta { margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.today { display: grid; gap: 4px; margin-top: 14px; }
.today .temps { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.today .meta { color: var(--muted); font-size: 15px; }
.data-status { margin-top: 12px; font-size: 13px; color: var(--muted); }
.warnings { list-style: none; padding: 0 !important; margin-top: 14px; display: grid; gap: 10px; }
.warnings li { margin: 0 !important; background: var(--white); padding: 12px 14px; border-left: 6px solid var(--muted); font-size: 15px; }
.warnings li[data-level="yellow"] { border-left-color: #e0b400; }
.warnings li[data-level="orange"] { border-left-color: #e06a00; }
.warnings li[data-level="red"] { border-left-color: var(--red); }
.warnings strong { display: block; }

/* ---------- Directory filter ---------- */
.filter { margin-top: 28px; padding: 16px; background: var(--panel); }
.filter__label { font-size: 14px; font-weight: 650; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; list-style: none; }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 2px; background: var(--white); font-size: 14px; font-weight: 650;
  transition: background-color var(--t) ease, color var(--t) ease; }
.chip:hover { background: #e9e9e9; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.filter__status { margin-top: 10px; font-size: 13px; color: var(--muted); }
.dir-section { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.dir-section[hidden] { display: none; }
.directory .prose > .dir-section:first-child { margin-top: 0; }
.directory .dir-section h2 { margin-top: 0; font-size: 22px; }
@media (min-width: 1024px) { .directory .dir-section h2 { font-size: 24px; } }

/* ---------- Information / contact / search / 404 ---------- */
.info { margin-top: 28px; max-width: 760px; }
.info h2 { margin-top: 32px; font-size: 22px; line-height: 1.3; font-weight: 750; }
.info p, .info li { margin-top: 10px; font-size: 17px; line-height: 1.6; color: #333; }
.info ul { padding-left: 22px; }
.mail-box { margin-top: 28px; padding: 24px; background: var(--panel); max-width: 760px; }
.mail-box .address { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 24px; font-weight: 750; color: var(--ink); overflow-wrap: anywhere; }
.mail-box .address:hover { color: var(--red); }
.mail-box .address .i { color: var(--red); }
.mail-box p { margin-top: 10px; color: var(--muted); }
.mail-box .actions { margin-top: 18px; }
.copy-status { margin-top: 10px; font-size: 14px; min-height: 1.4em; }

.search-form { display: flex; max-width: 584px; margin-top: 28px; border: 1px solid var(--ink); background: var(--white); }
.search-form label { flex: 1; }
.search-form input { width: 100%; height: 48px; padding: 0 16px; border: 0; background: transparent; font-size: 16px; }
.search-form input:focus-visible { outline: none; }
.search-form:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.search-form button { width: 52px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; }
.search-form button:hover { color: var(--red); }
.search-summary { margin-top: 28px; font-size: 18px; font-weight: 500; }
.search-summary mark { background: none; color: var(--red); font-weight: 700; }
.results { list-style: none; margin-top: 16px; max-width: 760px; }
.results li { border-top: 1px solid var(--line); padding: 18px 0; }
.results a { font-size: 21px; line-height: 1.25; font-weight: 750; }
.results a:hover { color: var(--red); }
.results p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.results .path { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.error-code { margin-top: 24px; color: var(--red); font-size: 96px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.error-actions { margin-top: 36px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding: 36px 0 40px; min-height: 420px; }
@media (min-width: 1024px) { .site-footer { min-height: 340px; } }
.footer-logo { display: inline-block; width: 170px; }
.footer-nav { margin-top: 20px; }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; }
.footer-nav ul + ul { margin-top: 2px; }
.footer-nav li { display: inline-flex; align-items: center; }
.footer-nav li + li::before { content: "·"; padding: 0 6px; color: var(--white); }
.footer-nav a { display: inline-flex; align-items: center; min-height: 34px; font-size: 15px; font-weight: 500; }
.footer-nav a:hover { color: #ff8a9b; }
.footer-bottom { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--footer-line); color: var(--footer-muted); font-size: 12px; line-height: 1.6; }
.footer-bottom p + p { margin-top: 6px; }
.footer-bottom a { color: var(--white); font-weight: 600; }
.footer-bottom a:hover { color: #ff8a9b; }

/* back to top */
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 48px; height: 48px; border: 1px solid var(--ink); border-radius: 2px;
  background: var(--white); color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 160ms ease, transform 160ms ease; }
.to-top:hover { background: var(--ink); color: var(--white); }
.to-top .i { transform: rotate(-90deg); }

noscript .noscript-note, .noscript-note { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
}
@media print {
  .utility, .navbar, .masthead__actions, .menu-panel, .tools, .site-footer, .to-top, .related { display: none !important; }
}

/* JS-only controls keep their space before the deferred script reveals them (no layout shift). */
[data-js-only][hidden] { display: revert; visibility: hidden; }
.tablist[data-js-only][hidden] { display: flex; }
.tools-wrap[hidden], .toc[hidden], .filter[hidden] { display: block; }
/* Live weather: reserve room for the injected forecast. */
[data-weather-today] { min-height: 96px; }
[data-weather-next] { min-height: 120px; }
