/* Modern typography, appearance themes, richer stories, and feedback */
:root { color-scheme: light; }
html[data-theme="light"] { color-scheme: light; }
body {
  font-family: "Segoe UI Variable", "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
  letter-spacing: -.005em;
}
h1, h2, h3, .story-number strong, .milestones strong {
  font-family: "Bahnschrift SemiCondensed", "Aptos Display", "Arial Narrow", sans-serif;
  letter-spacing: -.035em;
}
.accessibility-toggle svg { width: 34px; height: 34px; display: block; margin: auto; }
.appearance-options { border: 0; padding: 0; margin: 0 0 16px; }
.appearance-options legend { font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.appearance-options > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.appearance-options button {
  min-height: 44px; border: 1px solid #8290a5; border-radius: 4px;
  background: var(--white); color: var(--navy); font-size: 13px; font-weight: 750; padding: 8px;
}
.appearance-options button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: white; }
.article-share__more { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.article-share__more summary { cursor: pointer; font-weight: 800; min-height: 44px; padding: 10px 0; }
.article-share__more[open] summary { margin-bottom: 10px; }
.story-gallery { margin-top: 48px; }
.story-gallery > h2 { font-size: 30px; }
.story-gallery > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.story-gallery figure { min-width: 0; }
.story-gallery figure img { height: 260px; object-fit: cover; }
.story-gallery a { position: relative; display: block; }
.article-comments { margin-top: 46px; padding: 32px; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: 5px; }
.article-comments h2 { font-size: 38px; }
.article-comments > p { max-width: 760px; }
.comment-guidelines { display: grid; gap: 4px; margin: 22px 0 28px; padding: 18px 20px; background: var(--soft); border-left: 4px solid var(--red); }
.comment-guidelines strong { color: var(--ink); }
.comment-guidelines span { color: var(--muted); }
.source-note ul { margin: 12px 0 0; padding-left: 20px; }
.source-note li { padding: 5px 0; }

html[data-theme="dark"] {
  --navy: #07101f; --ink: #edf3fb; --muted: #b8c5d8; --white: #0c1729;
  --soft: #13213a; --line: #34445e; color-scheme: dark;
}
html[data-theme="dark"] body,
html[data-theme="dark"] .header,
html[data-theme="dark"] .story-card,
html[data-theme="dark"] .leader-profile,
html[data-theme="dark"] .accessibility-panel,
html[data-theme="dark"] .article-share,
html[data-theme="dark"] .enquiry { background: var(--white); color: var(--ink); }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .dialog-close,
html[data-theme="dark"] .article-share__actions a,
html[data-theme="dark"] .article-share__actions button,
html[data-theme="dark"] .accessibility-options button,
html[data-theme="dark"] .appearance-options button,
html[data-theme="dark"] .accessibility-reset { background: #101f36; color: var(--ink); border-color: #72819a; }
html[data-theme="dark"] .accessibility-options button[aria-pressed="true"],
html[data-theme="dark"] .appearance-options button[aria-pressed="true"] { background: #e8eef8; color: #07101f; }
html[data-theme="dark"] .panel p,
html[data-theme="dark"] .story-copy p:not(.eyebrow),
html[data-theme="dark"] figcaption,
html[data-theme="dark"] .leadership-heading p,
html[data-theme="dark"] .leader-details > p:last-child { color: var(--muted); }
html[data-theme="dark"] dialog { background: #0c1729; color: var(--ink); }

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --navy: #07101f; --ink: #edf3fb; --muted: #b8c5d8; --white: #0c1729;
    --soft: #13213a; --line: #34445e; color-scheme: dark;
  }
  html[data-theme="system"] body,
  html[data-theme="system"] .header,
  html[data-theme="system"] .story-card,
  html[data-theme="system"] .leader-profile,
  html[data-theme="system"] .accessibility-panel,
  html[data-theme="system"] .article-share,
  html[data-theme="system"] .enquiry { background: var(--white); color: var(--ink); }
  html[data-theme="system"] input,
  html[data-theme="system"] select,
  html[data-theme="system"] textarea,
  html[data-theme="system"] .menu-toggle,
  html[data-theme="system"] .dialog-close,
  html[data-theme="system"] .article-share__actions a,
  html[data-theme="system"] .article-share__actions button,
  html[data-theme="system"] .accessibility-options button,
  html[data-theme="system"] .appearance-options button,
  html[data-theme="system"] .accessibility-reset { background: #101f36; color: var(--ink); border-color: #72819a; }
  html[data-theme="system"] .accessibility-options button[aria-pressed="true"],
  html[data-theme="system"] .appearance-options button[aria-pressed="true"] { background: #e8eef8; color: #07101f; }
  html[data-theme="system"] .panel p,
  html[data-theme="system"] .story-copy p:not(.eyebrow),
  html[data-theme="system"] figcaption,
  html[data-theme="system"] .leadership-heading p,
  html[data-theme="system"] .leader-details > p:last-child { color: var(--muted); }
  html[data-theme="system"] dialog { background: #0c1729; color: var(--ink); }
}

html.access-high-contrast {
  --ink: #fff; --muted: #fff; --white: #000; --soft: #000; --line: #fff;
  color-scheme: dark;
}
html.access-high-contrast body,
html.access-high-contrast .header,
html.access-high-contrast .section,
html.access-high-contrast .soft,
html.access-high-contrast .story-card,
html.access-high-contrast .leader-profile,
html.access-high-contrast .article-share,
html.access-high-contrast .enquiry,
html.access-high-contrast .accessibility-panel { background: #000; color: #fff; }
html.access-high-contrast input,
html.access-high-contrast select,
html.access-high-contrast textarea { background: #000; color: #fff; border-color: #fff; }

@media (max-width: 650px) {
  .story-gallery > div { grid-template-columns: 1fr; }
  .story-gallery figure img { height: 280px; }
  .article-comments { padding: 25px 20px; }
  .appearance-options > div { grid-template-columns: 1fr; }
  .accessibility-panel { max-height: min(82vh, 680px); overflow: auto; }
}

/* Freshness, article credibility, and forward-planning components */
.freshness-strip { background: var(--navy); color: #fff; border-top: 1px solid rgba(255,255,255,.18); }
.freshness-strip .container { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 22px; }
.freshness-strip strong { display: block; margin: 3px 0; font-size: clamp(1.1rem,2vw,1.45rem); }
.freshness-strip p { margin: 0; color: rgba(255,255,255,.78); }
.freshness-strip__date { color: #ff8d9d; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.freshness-strip .text-link { color: #fff; flex: 0 0 auto; }

.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 28px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.article-meta span:first-child { color: var(--ink); font-weight: 800; }
.article-meta span:not(:last-child)::after { content: ""; display: inline-block; width: 3px; height: 3px; margin-left: 18px; vertical-align: middle; border-radius: 50%; background: var(--red); }
.planning-notice { margin: 0 0 28px; padding: 22px 24px; border-left: 5px solid var(--red); background: var(--soft); }
.planning-notice strong { color: var(--red); text-transform: uppercase; letter-spacing: .1em; }
.planning-notice p { margin: 8px 0 0; }
.priority-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 26px 0 34px; }
.priority-list article { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--soft); }
.priority-list article:last-child { grid-column: 1 / -1; }
.priority-list strong { color: var(--red); font-size: .8rem; letter-spacing: .12em; }
.priority-list h3 { margin: 5px 0 8px; font-size: 1.15rem; }
.priority-list p { margin: 0; font-size: .96rem; }
.governance-facts, .bank-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin: 28px 0; padding: 1px; background: var(--line); border-radius: 16px; overflow: hidden; }
.governance-facts > div, .bank-details > div { margin: 0; padding: 20px 22px; background: var(--white); }
.governance-facts span, .bank-details dt { display: block; margin-bottom: 6px; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.governance-facts strong, .bank-details dd { margin: 0; color: var(--ink); font-size: 1.05rem; font-weight: 800; overflow-wrap: anywhere; }
.bank-details dd { font-variant-numeric: tabular-nums; }
.verification-note { padding: 20px 22px; border-left: 5px solid var(--red); background: var(--white); }

.article-feedback { margin-top: 24px; max-width: 760px; }
.article-feedback h2 { font-size: 1.4rem; }
.history-grid { display: grid; gap: 26px; }
.history-card { display: grid; grid-template-columns: minmax(240px,.8fr) minmax(0,1.2fr); min-height: 310px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 18px 45px rgba(8,26,61,.08); }
.history-card:not(:has(img)) { grid-template-columns: 1fr; min-height: 0; }
.history-card > img { width: 100%; height: 100%; min-height: 310px; object-fit: cover; }
.history-card__body { padding: clamp(24px,4vw,44px); }
.history-card__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-bottom: 13px; }
.history-card__meta strong { color: var(--red); font-family: "Bahnschrift SemiCondensed", "Aptos Display", sans-serif; font-size: clamp(2rem,4vw,3.5rem); line-height: .9; }
.history-card__meta span { color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.history-card h3 { margin: 0 0 12px; font-size: clamp(1.5rem,3vw,2.25rem); }
.history-card p { margin: 0 0 18px; color: var(--muted); }
.history-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.history-gallery figure { margin: 0; overflow: hidden; border-radius: 14px; background: var(--white); }
.history-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.history-gallery figcaption { padding: 14px 16px 18px; }
html[data-theme="dark"] .history-card,
html[data-theme="dark"] .history-gallery figure { background: var(--white); color: var(--ink); }

@media (max-height: 800px) and (min-width: 651px) {
  .home-hero { min-height: 650px; }
  .hero-content { padding-top: 42px; padding-bottom: 55px; }
  .hero-content h1 { font-size: clamp(3.2rem,6.4vw,5.6rem); line-height: .86; }
  .hero-content > p:not(.eyebrow) { margin: 18px 0; }
}

@media (max-width: 650px) {
  .freshness-strip .container { align-items: flex-start; flex-direction: column; gap: 14px; }
  .priority-list { grid-template-columns: 1fr; }
  .governance-facts, .bank-details { grid-template-columns: 1fr; }
  .priority-list article:last-child { grid-column: auto; }
  .article-meta { display: grid; gap: 7px; }
  .article-meta span::after { display: none !important; }
  .history-card { grid-template-columns: 1fr; }
  .history-card > img { min-height: 0; aspect-ratio: 4 / 3; }
  .history-gallery { grid-template-columns: 1fr; }
}

@media (min-width: 651px) and (max-width: 980px) {
  .history-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
