/* ==========================================================================
   Atlas Strategy — site styles
   Palette and typography per the Atlas Strategy website brief (July 2026).
   ========================================================================== */

:root {
  /* Palette */
  --navy: #000046;          /* Atlas Navy — primary */
  --midnight: #0A0A2E;      /* deep backgrounds behind the white logo */
  --gold: #88764E;          /* Antique Gold — main accent (rules, hovers) */
  --gold-bright: #B08D3E;   /* Bright Gold — small highlights only */
  --gold-ink: #6E5F3F;      /* darkened gold for small text on light bg (WCAG AA) */
  --cream: #F7F3EA;         /* alternating section backgrounds */
  --white: #FFFFFF;
  --charcoal: #222222;      /* body text */
  --grey: #9A9DA6;          /* captions, secondary text on dark backgrounds */

  /* Type */
  --font-serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1140px;
  --container-narrow: 760px;
  --nav-height: 72px;
  --section-pad: clamp(4rem, 9vw, 6.5rem);
}

/* --------------------------------------------------------------------------
   Reset (minimal)
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;             /* 17px */
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
}

img, svg, picture { display: block; max-width: 100%; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }

a { color: inherit; }

address { font-style: normal; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}

.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: 0.02em;
}

.section-kicker {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 1rem;
}

.on-dark .section-kicker { color: var(--cream); }

.rule {
  width: 56px;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 1.4rem 0 0;
}

.rule--center { margin-left: auto; margin-right: auto; }

.lede { font-size: 1.15rem; }

.muted { color: var(--grey); }

/* Text links in running copy */
.text-link {
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--gold-ink);
  text-decoration-color: var(--gold-bright);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

.container--narrow { max-width: var(--container-narrow); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--gold);
}

.skip-link:focus { top: 1rem; }

/* Focus visibility everywhere */
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.on-dark :focus-visible { outline-color: var(--white); }

/* Skip-link landing target, not an interactive control */
main:focus { outline: none; }

/* Fragment navigation must clear the fixed header */
section[id] { scroll-margin-top: calc(var(--nav-height) + 1rem); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn--light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}

.btn--light:hover,
.btn--light:focus-visible {
  color: var(--navy);
  background: var(--white);
  border-color: var(--white);
}

.btn--navy {
  color: var(--navy);
  border-color: var(--navy);
}

.btn--navy:hover,
.btn--navy:focus-visible {
  color: var(--white);
  background: var(--navy);
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--navy);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 18px rgba(0, 0, 20, 0.45);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.nav-mark { width: 26px; height: auto; }

.nav-wordmark {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: inline-block;
  padding: 0.4rem 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--white);
  border-bottom-color: var(--gold-bright);
}

.nav-menu a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--gold);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--midnight);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0 1rem;
    display: none;
  }

  .nav-menu.is-open { display: flex; }

  .nav-menu a {
    display: block;
    padding: 0.9rem 1.5rem;
    border-bottom: 0;
  }

  .nav-menu a[aria-current="page"] { color: var(--gold-bright); }
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-height) + 3rem) 1.5rem 4rem;
  background: var(--midnight);
  overflow: hidden;
  text-align: center;
}

.hero-media,
.band-media {
  position: absolute;
  inset: 0;
}

.hero-media img,
.band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Navy overlay at ~72% so white text passes WCAG AA over the imagery */
.hero-overlay,
.band-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 70, 0.72);
}

/* Animated hero canvas (js/hero.js) replaces the static media when active */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero--animated .hero-media,
.hero--animated .hero-overlay { display: none; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

/* Brand lockup: the thin mark carries no wordmark, so ATLAS STRATEGY is
   rendered as serif text, spaced caps, matching the old lockup proportions. */
.lockup { display: block; text-align: center; text-decoration: none; }

.lockup-mark { height: auto; margin-inline: auto; }

.lockup-name,
.lockup-sub {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.15;
}

/* Trailing letter-space is balanced with a negative margin so the
   wordmark centres optically under the mark. */
.hero-lockup { margin-bottom: 2.2rem; }

.hero-lockup .lockup-mark { width: clamp(58px, 8vw, 78px); margin-bottom: 1.5rem; }

.hero-lockup .lockup-name {
  font-size: clamp(2rem, 4.4vw, 2.8rem);
  letter-spacing: 0.38em;
  margin-right: -0.38em;
}

.hero-lockup .lockup-sub {
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  letter-spacing: 0.52em;
  margin-right: -0.52em;
  margin-top: 0.3rem;
}

.footer-lockup .lockup-mark { width: 32px; margin-bottom: 0.7rem; }

.footer-lockup .lockup-name {
  font-size: 0.95rem;
  letter-spacing: 0.34em;
  margin-right: -0.34em;
}

.footer-lockup .lockup-sub {
  font-size: 0.56rem;
  letter-spacing: 0.48em;
  margin-right: -0.48em;
  margin-top: 0.2rem;
}

/* Cream, not gold: small text over photographic imagery must clear WCAG AA
   even where the underlying image is light. Gold stays on solid navy only. */
.hero-tagline {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.6rem;
}

.hero-tagline .sep { color: rgba(255, 255, 255, 0.45); padding: 0 0.35em; }

.hero-lede {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  color: var(--white);
  margin-bottom: 2.6rem;
}

/* --------------------------------------------------------------------------
   Page hero band (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 320px;
  padding: calc(var(--nav-height) + 4rem) 0 3.2rem;
  background: var(--navy);
  overflow: hidden;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero-motif {
  position: absolute;
  right: -4%;
  bottom: -22%;
  width: 300px;
  opacity: 0.1;
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  letter-spacing: 0.02em;
  color: var(--white);
}

.page-hero .rule { margin-top: 1.2rem; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: var(--section-pad) 0; }

.section--cream { background: var(--cream); }

.section--center { text-align: center; }

.section-header { max-width: 46rem; margin-bottom: 3rem; }

.section--center .section-header { margin-inline: auto; }

.section-header p { margin-top: 1.4rem; }

.flow > * + * { margin-top: 1.4rem; }

/* Dark band with imagery (Global Network, closing CTA) */
.band {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--midnight);
  color: rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

.band .container { position: relative; z-index: 1; }

.band-motif {
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(220px, 26vw, 380px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.band p { color: rgba(255, 255, 255, 0.88); }

/* --------------------------------------------------------------------------
   Cards — What We Do
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-top: 2px solid var(--gold);
  padding: 2.2rem 1.8rem;
  box-shadow: 0 1px 2px rgba(10, 10, 46, 0.05);
}

.card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.9rem;
}

.card p { font-size: 0.98rem; }

.discretion-note {
  margin-top: 1.4rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--charcoal);
  max-width: 46rem;
}

/* --------------------------------------------------------------------------
   Team profiles
   -------------------------------------------------------------------------- */
.profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.profile + .profile {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(34, 34, 34, 0.12);
}

@media (max-width: 760px) {
  .profile { grid-template-columns: 1fr; }
  .profile-photo { max-width: 300px; }
}

.profile-photo {
  aspect-ratio: 3 / 4;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.profile-photo img { width: 100%; height: 100%; object-fit: cover; }

/* The generic .profile-photo img rules (height:100%, object-fit:cover) are for
   real portraits; the placeholder mark must keep its intrinsic proportions. */
.profile-photo--placeholder .placeholder-mark {
  width: 34%;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  opacity: 0.5;
}

.profile-photo--placeholder .placeholder-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

.profile h2 { font-size: 1.9rem; }

.profile .flow { max-width: 65ch; }

.profile-role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0.7rem 0 1.5rem;
}

/* --------------------------------------------------------------------------
   Advisory Board placeholders
   (advisory-board.html is temporarily removed, Oct 2026 — these styles are
   kept so the page can be restored from git history without CSS work)
   -------------------------------------------------------------------------- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .board-grid { grid-template-columns: 1fr; } }

.board-card {
  background: var(--white);
  padding: 2rem 1.8rem;
  border: 1px dashed var(--gold);
  text-align: center;
}

.board-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: var(--cream);
  border: 1px dashed var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.board-photo img { width: 42%; opacity: 0.4; }

.board-card h3 { font-size: 1.35rem; }

.board-card .board-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0.5rem 0 1rem;
}

.board-card .board-bio { font-size: 0.95rem; color: var(--charcoal); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-address {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(34, 34, 34, 0.12);
}

.contact-address h2 {
  font-size: 0.8rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.8rem;
}

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Mandate timeline (About)
   -------------------------------------------------------------------------- */
.tl-wrap { max-width: 100%; }

.tl-axis {
  display: grid;
  margin-left: clamp(200px, 26%, 300px);
  border-bottom: 1px solid rgba(34, 34, 34, 0.15);
  padding-bottom: 0.4rem;
  margin-bottom: 1.2rem;
}

.tl-year {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-ink);
  text-align: left;
}

.tl-rows { list-style: none; margin: 0; padding: 0; }

.tl-row {
  display: grid;
  grid-template-columns: clamp(200px, 26%, 300px) 1fr;
  align-items: center;
  padding: 0.55rem 0;
}

.tl-row + .tl-row { border-top: 1px solid rgba(34, 34, 34, 0.07); }

.tl-label { padding-right: 1.4rem; }

.tl-client {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

.tl-note {
  display: block;
  font-size: 0.8rem;
  color: var(--charcoal);
  opacity: 0.75;
}

.tl-range { display: none; }

.tl-track { display: grid; align-items: center; min-height: 26px; }

.tl-bar {
  position: relative;
  height: 12px;
  background: var(--navy);
  border-radius: 6px;
  transform-origin: left center;
}

/* Gold marker at the start of each bar */
.tl-bar::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

/* Ongoing mandates fade toward the present edge */
.tl-bar--ongoing {
  background: linear-gradient(to right, var(--navy) 55%, rgba(0, 0, 70, 0.25));
}

/* Draw-in: armed by JS only when motion is allowed */
.tl-armed .tl-bar {
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.3, 1), opacity 0.5s ease;
}

.tl-armed.tl-drawn .tl-bar {
  transform: scaleX(1);
  opacity: 1;
}

@media print {
  .tl-bar { transform: scaleX(1) !important; opacity: 1 !important; }
}

/* Mobile: vertical chronological list with the same data */
@media (max-width: 700px) {
  .tl-axis { display: none; }

  .tl-rows {
    border-left: 2px solid var(--gold);
    padding-left: 1.4rem;
  }

  .tl-row {
    grid-template-columns: 1fr;
    position: relative;
    padding: 0.8rem 0;
  }

  .tl-row::before {
    content: "";
    position: absolute;
    left: calc(-1.4rem - 6px);
    top: 1.35rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
  }

  .tl-track { display: none; }

  .tl-range {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-ink);
    margin: 0.15rem 0 0.2rem;
  }
}

/* --------------------------------------------------------------------------
   Interactive globe (About)
   -------------------------------------------------------------------------- */
.globe-feature { max-width: 900px; margin-inline: auto; }

.globe-stage { position: relative; }

.globe-canvas-wrap {
  display: flex;
  justify-content: center;
}

.globe-canvas {
  border-radius: 50%;
  box-shadow: 0 18px 45px rgba(10, 10, 46, 0.28);
  cursor: grab;
  touch-action: none;
  max-width: 100%;
}

.globe-static { margin: 0; display: flex; justify-content: center; }

.globe-static img { width: min(100%, 620px); height: auto; }

/* Side panel — desktop: slides in from the right of the stage */
.globe-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 92%);
  max-height: 100%;
  overflow: auto;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  padding: 2rem 1.8rem;
  box-shadow: -12px 0 30px rgba(10, 10, 46, 0.35);
  transform: translateX(8%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 5;
}

.globe-panel.is-open { transform: none; opacity: 1; }

.globe-panel h3 {
  color: var(--white);
  font-size: 1.5rem;
  padding-right: 2rem;
}

.globe-panel-type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0.5rem 0 1rem;
}

.globe-panel-blurb { font-size: 0.95rem; line-height: 1.6; }

.globe-panel-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--white);
  background: none;
  border: 0;
  cursor: pointer;
}

/* Mobile: bottom sheet */
@media (max-width: 700px) {
  .globe-panel {
    position: fixed;
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-height: 60vh;
    box-shadow: 0 -12px 30px rgba(10, 10, 46, 0.4);
    transform: translateY(12%);
  }
}

/* Accessible country list — visible only in the static fallback; in canvas
   mode JS applies .visually-hidden so assistive tech keeps panel access. */
.globe-list {
  list-style: none;
  margin: 2rem auto 0;
  max-width: 640px;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.globe-list-btn {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(34, 34, 34, 0.18);
  border-left: 2px solid var(--gold);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.globe-list-btn:hover { border-color: var(--gold); box-shadow: 0 1px 6px rgba(10, 10, 46, 0.12); }

.globe-list-name { font-weight: 500; }

.globe-list-type {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Global Political Calendar
   -------------------------------------------------------------------------- */
.cal-updated {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.cal-month + .cal-month { margin-top: 3rem; }

.cal-month h2 {
  font-size: 1.6rem;
  padding-bottom: 0.7rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(34, 34, 34, 0.15);
}

.cal-events { list-style: none; margin: 0; padding: 0; }

.cal-event {
  display: grid;
  grid-template-columns: 3rem 7.5rem 1fr;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1rem 0;
}

.cal-event + .cal-event { border-top: 1px solid rgba(34, 34, 34, 0.08); }

.cal-day {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

.cal-tag {
  justify-self: start;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 1px solid;
  white-space: nowrap;
}

.cal-tag--election { color: var(--gold-ink); border-color: var(--gold); }
.cal-tag--summit { color: var(--navy); border-color: var(--navy); }
.cal-tag--regulatory { color: var(--charcoal); border-color: rgba(34, 34, 34, 0.6); }

.cal-country {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.15rem;
}

.cal-name {
  display: block;
  font-weight: 600;
  color: var(--navy);
}

.cal-note {
  display: block;
  font-size: 0.88rem;
  color: var(--charcoal);
  opacity: 0.75;
  margin-top: 0.15rem;
}

@media (max-width: 560px) {
  .cal-event { grid-template-columns: 2.4rem 1fr; }
  .cal-tag { grid-column: 2; grid-row: 2; margin-top: 0.5rem; }
  .cal-day { font-size: 1.25rem; }
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-height) + 3rem) 1.5rem 4rem;
  background: var(--midnight);
  text-align: center;
}

.error-page .error-mark { width: 74px; margin: 0 auto 2rem; opacity: 0.9; }

.error-page h1 { color: var(--white); font-size: clamp(2rem, 5vw, 2.8rem); }

.error-page p { color: var(--grey); margin: 1.2rem 0 2.4rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--grey);
  padding: 4rem 0 2.5rem;
  font-size: 0.88rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible { color: var(--gold-bright); }

.footer-legal p + p { margin-top: 0.6rem; }

/* World clock strip — a single quiet line (js/clock.js) */
.footer-clock {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.8rem;
  margin: 0 0 2rem;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
}

.footer-clock:empty { display: none; }

.footer-clock li { display: flex; gap: 0.5em; white-space: nowrap; }

.clock-time { font-variant-numeric: tabular-nums; }

/* Narrow screens: London plus two others */
@media (max-width: 480px) {
  .footer-clock li:nth-child(n+4) { display: none; }
}

/* --------------------------------------------------------------------------
   Scroll reveal — subtle fade/slide, disabled if reduced motion
   -------------------------------------------------------------------------- */
/* Content is visible by default; it only starts hidden once JS has confirmed
   IntersectionObserver support (and motion is allowed) by adding .reveal-armed
   to <html>. Keeps print, PDF, prerender and no-JS renders complete. */
html.reveal-armed .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.reveal-armed .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
