/* =========================================================
   TOTALLY CAIRO — Design System
   Palette drawn from the brand mark: Nile navy, mosque teal,
   desert gold, pyramid terracotta, papyrus cream.
   ========================================================= */

:root {
  --navy:        #0B4C7C;
  --navy-dark:   #073452;
  --teal:        #0E5A7A;
  --teal-dark:   #0A3F57;
  --gold:        #C9A25C;
  --gold-light:  #E7CC80;
  --gold-dark:   #A9803E;
  --terracotta:  #BD4E37;
  --terracotta-dark: #A6402C;
  --cream:       #FAF5EA;
  --cream-deep:  #F2EAD9;
  --sand:        #EFE2C4;
  --ink:         #2B2419;
  --ink-soft:    #55493A;
  --white:       #FFFFFF;

  --font-display: "Cinzel", "Georgia", serif;
  --font-serif:   "Lora", "Georgia", serif;
  --font-sans:    "Work Sans", "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --shadow-card: 0 10px 30px -14px rgba(11, 76, 124, 0.35);
  --shadow-soft: 0 4px 14px -6px rgba(43, 36, 25, 0.18);

  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.2em; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy-dark); line-height: 1.2; margin: 0 0 0.5em; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }

/* Browsers do NOT make form controls/buttons inherit the page font by
   default — they fall back to a UA system font, which on some platforms
   renders as a monospaced face. Force inheritance everywhere so nothing
   on the site ever silently reverts to a stray default. */
button, input, select, textarea, kbd, code, pre {
  font-family: inherit;
}

.eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--terracotta);
  display: inline-block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
}

/* ---------- Nile wave divider (signature element) ---------- */
.wave-divider {
  display: block;
  width: 100%;
  height: 46px;
  line-height: 0;
}
.wave-divider svg { width: 100%; height: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid rgba(11,76,124,0.10);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--navy-dark);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand img { height: 40px; width: auto; }
.brand strong { color: var(--terracotta); }

.main-nav { display: flex; gap: 2px; align-items: center; }
.main-nav a {
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--sand); color: var(--navy-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 18px;
    border-bottom: 1px solid rgba(11,76,124,0.12);
    box-shadow: var(--shadow-soft);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 6px; border-bottom: 1px solid rgba(11,76,124,0.08); border-radius: 0; }
  .nav-toggle { display: inline-block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--cream);
  overflow: hidden;
}
.hero__inner {
  padding: 84px 0 96px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 0.4em;
}
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p.lead {
  font-size: 1.12rem;
  color: rgba(250,245,234,0.86);
  max-width: 46ch;
}
.hero .eyebrow { color: var(--gold-light); }
.hero .eyebrow::before { background: var(--gold-light); }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-sun {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-light), var(--gold) 60%, transparent 72%);
  opacity: 0.55;
  z-index: 1;
}
.hero-art { position: relative; z-index: 2; }

/* Small page hero (interior pages) */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--teal-dark) 100%);
  color: var(--white);
  padding: 52px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.page-hero p.lead { color: rgba(250,245,234,0.86); max-width: 62ch; font-size: 1.05rem; }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero .eyebrow::before { background: var(--gold-light); }

.breadcrumbs {
  font-size: 0.82rem;
  color: rgba(250,245,234,0.75);
  margin-bottom: 18px;
}
.breadcrumbs a { color: rgba(250,245,234,0.92); border-bottom: 1px dotted rgba(250,245,234,0.4); }
.breadcrumbs a:hover { color: var(--gold-light); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.6; }

/* Quick facts strip (cartouche-style inscription band) */
.quickfacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  background: var(--navy-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid rgba(231,204,128,0.25);
}
.quickfacts div {
  padding: 16px 18px;
  border-right: 1px solid rgba(231,204,128,0.18);
}
.quickfacts div:last-child { border-right: none; }
.quickfacts .k {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.quickfacts .v { font-weight: 600; color: var(--white); font-size: 0.95rem; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; }

.alt-bg { background: var(--cream-deep); }
.navy-bg { background: var(--navy); color: var(--cream); }
.navy-bg h2, .navy-bg h3 { color: var(--white); }
.navy-bg p { color: rgba(250,245,234,0.85); }

/* ---------- Card grid ---------- */
.grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(3, 1fr);
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid, .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(11,76,124,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -16px rgba(11,76,124,0.4); }
.card-media {
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.card-media svg { width: 56px; height: 56px; }
.card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.14rem; margin-bottom: 8px; }
.card-body p { color: var(--ink-soft); font-size: 0.94rem; flex: 1; }
.card-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--terracotta);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  width: fit-content;
}
.card-link { margin-top: 12px; font-weight: 700; color: var(--navy); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.card-link::after { content: "→"; transition: transform 0.15s ease; }
.card:hover .card-link::after { transform: translateX(4px); }

/* media color variants */
.mv-navy   { background: linear-gradient(150deg, var(--navy), var(--navy-dark)); }
.mv-teal   { background: linear-gradient(150deg, var(--teal), var(--teal-dark)); }
.mv-gold   { background: linear-gradient(150deg, var(--gold-light), var(--gold)); }
.mv-terra  { background: linear-gradient(150deg, #D9754F, var(--terracotta-dark)); }

/* ---------- Article layout ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
  gap: 36px;
  align-items: start;
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
}
.prose h2 {
  font-size: 1.5rem;
  margin-top: 1.7em;
  padding-top: 0.2em;
  position: relative;
}
.prose h2::before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 14px;
  border-radius: 2px;
}
.prose h3 { font-size: 1.18rem; margin-top: 1.4em; color: var(--terracotta-dark); }
.prose p { color: var(--ink-soft); font-size: 1.02rem; }
.prose ul li, .prose ol li { color: var(--ink-soft); margin-bottom: 0.4em; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--gold);
  background: var(--cream-deep);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--navy-dark);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.94rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--sand); }
.prose th { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); }

/* ---------- HERO / sidebar 75:25 layout ----------
   Owner layout rule (10 Sep 2026): hero photography must sit in the main
   ~75% column with a real sidebar/module beside it on desktop. Source
   templates use .hero-top-layout natively. The :has() compatibility rules
   below also upgrade the currently deployed legacy markup without a mass
   HTML replacement; mobile falls back to the original stacked flow. */
.hero-top-section { padding-top: 14px; padding-bottom: 20px; }
.hero-top-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
  gap: 36px;
  align-items: start;
}
.hero-top-layout .page-hero-photo,
.article-layout > .prose > .page-hero-photo {
  max-width: none;
  margin: 0;
  padding: 0;
}
.hero-top-layout .portrait-photo-box { margin-bottom: 20px; }
.hero-explore-box { margin-bottom: 0; }

/* Legacy article output: page-hero-photo is a sibling of the section that
   contains .article-layout. Turn those nodes into one centered desktop grid
   so the existing aside begins beside the hero immediately. */
@media (min-width: 901px) {
  main:has(.article-layout) {
    display: grid;
    grid-template-columns: minmax(24px, 1fr) minmax(0, 855px) minmax(240px, 285px) minmax(24px, 1fr);
    column-gap: 36px;
    align-items: start;
  }
  main:has(.article-layout) > .page-hero,
  main:has(.article-layout) > .wave-divider { grid-column: 1 / -1; }
  main:has(.article-layout) > .page-hero-photo {
    grid-column: 2;
    grid-row: 3;
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 14px 0 20px;
  }
  main:has(.article-layout) > section.tight { display: contents; }
  main:has(.article-layout) > section.tight > .container { display: contents; }
  main:has(.article-layout) .article-layout { display: contents; }
  main:has(.article-layout) .article-layout > .prose {
    grid-column: 2;
    grid-row: 4;
    min-width: 0;
    padding-bottom: 40px;
  }
  main:has(.article-layout) .article-layout > aside {
    grid-column: 3;
    grid-row: 3 / span 2;
    padding-top: 14px;
    padding-bottom: 40px;
    min-width: 0;
  }

  /* Legacy hub output: reuse the existing 4:5 portrait module as the
     adjacent ~25% rail beside the 8:3 hero. Intro content resumes below. */
  main:not(:has(.article-layout)):has(> section.tight > .container > .portrait-photo-box) {
    display: grid;
    grid-template-columns: minmax(24px, 1fr) minmax(0, 855px) minmax(240px, 285px) minmax(24px, 1fr);
    column-gap: 36px;
    align-items: start;
  }
  main:not(:has(.article-layout)):has(> section.tight > .container > .portrait-photo-box) > .page-hero,
  main:not(:has(.article-layout)):has(> section.tight > .container > .portrait-photo-box) > .wave-divider { grid-column: 1 / -1; }
  main:not(:has(.article-layout)):has(> section.tight > .container > .portrait-photo-box) > .page-hero-photo {
    grid-column: 2;
    grid-row: 3;
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 14px 0 20px;
  }
  main:not(:has(.article-layout)):has(> section.tight > .container > .portrait-photo-box) > section.tight:first-of-type { display: contents; }
  main:not(:has(.article-layout)):has(> section.tight > .container > .portrait-photo-box) > section.tight:first-of-type > .container { display: contents; }
  main:not(:has(.article-layout)):has(> section.tight > .container > .portrait-photo-box) > section.tight:first-of-type > .container > .portrait-photo-box {
    grid-column: 3;
    grid-row: 3;
    float: none;
    max-width: none;
    width: 100%;
    margin: 14px 0 20px;
  }
  main:not(:has(.article-layout)):has(> section.tight > .container > .portrait-photo-box) > section.tight:first-of-type > .container > :not(.portrait-photo-box) {
    grid-column: 2 / 4;
  }

  /* Legacy homepage: the native illustrated hero above already provides a
     right-hand visual rail. Constrain the supplementary 8:3 photograph to
     the same 75% main-column width rather than letting it span the box. */
  main:has(> .hero) > .page-hero-photo {
    width: calc((100% - 36px) * 0.75);
    margin-left: max(24px, calc((100% - var(--container)) / 2 + 24px));
    margin-right: auto;
    padding: 0;
  }

  /* Legacy simple standalone pages have no existing sidebar module. Keep the
     hero in the 75% main column; source-native rebuilds add Explore Cairo in
     the adjacent rail. This avoids inventing live content before the next
     coherent HTML promotion. */
  main:not(:has(.article-layout)):not(:has(> .hero)):not(:has(> section.tight > .container > .portrait-photo-box)) > .page-hero-photo {
    width: calc((100% - 36px) * 0.75);
    max-width: 855px;
    margin-left: max(24px, calc((100% - var(--container)) / 2 + 24px));
    margin-right: auto;
    padding: 0;
  }
}

@media (max-width: 900px) {
  .hero-top-layout { grid-template-columns: 1fr; gap: 20px; }
  .hero-top-section { padding-top: 8px; }
}

/* ---------- Hero (8:3) photo — boxed with the site, tiny top/bottom
   padding, no side padding or rounded corners on mobile ---------- */
.page-hero-photo {
  max-width: var(--container);
  margin: 10px auto;
  padding: 0 24px;
  min-width: 0;
  min-height: 0;
  align-self: start;
  aspect-ratio: 8 / 3;
  overflow: hidden;
}
.page-hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}
@media (max-width: 640px) {
  .page-hero-photo { padding: 0; margin: 6px 0; }
  .page-hero-photo img { border-radius: 0; }
}

/* ---------- Portrait (4:5) photo — sidebar on articles, capped-width
   centered block on hub/standalone pages that have no sidebar ---------- */
.portrait-photo-box {
  margin-bottom: 22px;
  min-width: 0;
  min-height: 0;
  align-self: start;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.portrait-photo-box img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}
.tight > .container > .portrait-photo-box {
  max-width: 320px;
  float: right;
  margin: 0 0 20px 28px;
}
@media (max-width: 700px) {
  .tight > .container > .portrait-photo-box { float: none; max-width: 100%; margin: 0 0 20px; }
}

/* ---------- Byline ("Last updated ... Team") ---------- */
.byline {
  margin-top: 16px;
  font-size: 0.82rem;
  color: rgba(250,245,234,0.72);
}

/* ---------- Sources & references box ---------- */
.sources-box {
  margin-top: 2.4em;
  padding-top: 1.4em;
  border-top: 1px solid var(--sand);
}
.sources-box h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}
.sources-box ul { list-style: none; padding: 0; margin: 0; }
.sources-box li { margin-bottom: 6px; font-size: 0.92rem; }
.sources-box a { border-bottom: 1px dotted currentColor; }

/* ---------- Footer network cross-links ---------- */
.footer-network {
  font-size: 0.86rem;
  color: var(--ink-soft);
  padding: 18px 0;
  border-top: 1px solid var(--sand);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.footer-network a { color: var(--navy); border-bottom: 1px dotted var(--navy); }

/* sidebar */
.sidebar-box {
  background: var(--white);
  border: 1px solid rgba(11,76,124,0.09);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
}
.sidebar-box h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { margin-bottom: 10px; }
.sidebar-box a { font-weight: 600; color: var(--navy-dark); font-size: 0.92rem; }
.sidebar-box a:hover { color: var(--terracotta); }
.sidebar-box.cta { background: var(--navy); color: var(--cream); }
.sidebar-box.cta h4 { color: var(--gold-light); }
.sidebar-box.cta p { color: rgba(250,245,234,0.85); font-size: 0.92rem; }

/* TOC */
.toc-list { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc-list li { counter-increment: toc; margin-bottom: 8px; }
.toc-list a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: flex;
  gap: 8px;
}
.toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-display);
  color: var(--gold-dark);
  font-size: 0.78rem;
}
.toc-list a:hover { color: var(--terracotta); }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--sand);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--navy-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.4rem;
  color: var(--terracotta);
  flex-shrink: 0;
  transition: transform .15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: var(--ink-soft); }

/* ---------- Stats strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
@media (max-width: 700px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-strip .num { font-family: var(--font-display); font-size: 2.1rem; color: var(--gold-light); display: block; }
.stat-strip .lbl { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(250,245,234,0.8); }

/* ---------- Newsletter / CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.88); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(250,245,234,0.78);
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  margin-bottom: 36px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 34px; }
.footer-brand span { font-family: var(--font-display); color: var(--white); font-size: 1.05rem; }
.footer-bottom {
  border-top: 1px solid rgba(250,245,234,0.14);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}
/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.tag-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--navy-dark);
}

/* skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Facts ticker ---------- */
.ticker {
  background: var(--navy-dark);
  color: rgba(250,245,234,0.88);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(231,204,128,0.16);
}
.ticker__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.ticker__inner::-webkit-scrollbar { display: none; }
.ticker__item { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; }
.ticker__item .dot { color: var(--gold-light); }
.ticker__item strong { color: var(--gold-light); font-weight: 700; }
.ticker__item a { color: rgba(250,245,234,0.88); }
.ticker__item a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Header utilities (search) ---------- */
.header-utils { display: flex; align-items: center; gap: 6px; }
.search-toggle {
  background: none;
  border: 1px solid rgba(11,76,124,0.25);
  color: var(--navy);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.search-toggle:hover { background: var(--sand); }
.search-toggle svg { width: 17px; height: 17px; }

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,20,30,0.55);
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
}
.search-overlay.is-open { display: flex; }
.search-panel {
  background: var(--cream);
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  overflow: hidden;
}
.search-panel__input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(11,76,124,0.12);
}
.search-panel__input-row svg { width: 20px; height: 20px; color: var(--navy); flex-shrink: 0; }
.search-panel input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--ink);
  outline: none;
}
.search-panel__close {
  border: none;
  background: var(--sand);
  color: var(--navy-dark);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.search-results { max-height: 50vh; overflow-y: auto; padding: 10px; }
.search-result {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}
.search-result:hover, .search-result.is-active { background: var(--sand); }
.search-result .sr-title { font-weight: 700; color: var(--navy-dark); font-size: 0.96rem; }
.search-result .sr-desc { font-size: 0.84rem; color: var(--ink-soft); margin-top: 2px; }
.search-empty { padding: 26px 20px; color: var(--ink-soft); font-size: 0.92rem; text-align: center; }
.search-hint { padding: 10px 22px 16px; font-size: 0.76rem; color: var(--ink-soft); }
.search-hint kbd {
  background: var(--sand);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.72rem;
}

.hub-count-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.92);
  color: var(--navy-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Updates log ---------- */
.update-list { display: flex; flex-direction: column; gap: 0; }
.update-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--sand);
}
.update-item:first-child { padding-top: 0; }
.update-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.update-meta time { font-size: 0.8rem; color: var(--ink-soft); }
.update-tag {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--navy);
}
.update-tag--launch { background: var(--terracotta); }
.update-tag--guide { background: var(--teal); }
.update-tag--data { background: var(--gold-dark); }
.update-tag--tourism { background: var(--terracotta); }
.update-tag--getting-there { background: var(--teal); }
.update-tag--at-the-sites { background: var(--gold-dark); }
.update-tag--museum { background: var(--navy); }
.update-tag--safety { background: #A6402C; }
.update-item h3 { font-size: 1.12rem; margin-bottom: 6px; }
.update-item h3 a { color: var(--navy-dark); }
.update-item h3 a:hover { color: var(--terracotta); }
.update-item p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }


/* 404 */
.error-page { text-align: center; padding: 110px 0; }
.error-page .code { font-family: var(--font-display); font-size: 5rem; color: var(--gold); }

/* ---------- Affiliate placements ---------- */
.affiliate-box { background: var(--cream-deep); border-color: rgba(201,162,92,0.35); }
.affiliate-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid rgba(201,162,92,0.4);
  margin-bottom: 10px;
  transition: border-color .15s ease, transform .15s ease;
}
.affiliate-link:hover { border-color: var(--gold-dark); transform: translateY(-1px); }
.affiliate-link__label { font-weight: 700; color: var(--navy-dark); font-size: 0.94rem; }
.affiliate-link__label::after { content: " →"; color: var(--terracotta); }
.affiliate-link__sub { font-size: 0.8rem; color: var(--ink-soft); }
.affiliate-disclosure {
  font-size: 0.72rem;
  color: var(--ink-soft);
  opacity: 0.85;
  margin: 6px 0 0;
  line-height: 1.5;
}
.affiliate-disclosure.center { text-align: center; max-width: 640px; margin: 14px auto 0; }
.affiliate-disclosure-small {
  font-size: 0.68rem;
  font-style: italic;
  color: var(--ink-soft);
  opacity: 0.75;
  line-height: 1.5;
  text-align: center;
  max-width: 640px;
  margin: 14px auto 0;
}

.affiliate-band {
  background: var(--cream-deep);
  border: 1px solid rgba(201,162,92,0.35);
  border-radius: var(--radius-lg);
  padding: 26px 30px 22px;
  margin-top: 8px;
}
.affiliate-band .eyebrow { margin-bottom: 14px; }
.affiliate-band__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.affiliate-band__row .affiliate-link { margin-bottom: 0; }
@media (max-width: 640px) {
  .affiliate-band__row { grid-template-columns: 1fr; }
}

/* ---------- Booking widgets band (site-wide, above footer) ---------- */
.booking-widgets-section {
  background: var(--sand);
  padding: 40px 0 36px;
  border-top: 1px solid rgba(11,76,124,0.10);
}
.booking-widgets-section .eyebrow { margin-bottom: 20px; }
.booking-widgets__row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}
.booking-widget-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  flex: 1 1 375px;
  max-width: 575px;
  min-width: 320px;
}

/* ---------- Footer "we recommend" disclosure band ---------- */
.footer-recommend {
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(250,245,234,0.14);
  padding: 20px 0;
}
.footer-recommend__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: rgba(250,245,234,0.8);
}
.footer-recommend__links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-recommend__links a {
  font-weight: 700;
  color: var(--gold-light);
  padding: 3px 2px;
}
.footer-recommend__links a:hover { color: var(--white); text-decoration: underline; }
.footer-recommend__sep { color: rgba(250,245,234,0.4); }

/* ---------- Cookie consent banner (EU/UK visitors only) ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--navy-dark);
  color: rgba(250,245,234,0.92);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px -15px rgba(0,0,0,0.5);
  padding: 18px 20px;
  z-index: 200;
  display: none;
  border: 1px solid rgba(231,204,128,0.25);
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p {
  font-size: 0.86rem;
  margin: 0 0 12px;
  line-height: 1.55;
}
.cookie-banner p a { color: var(--gold-light); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner__actions button {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid transparent;
}
.cookie-accept { background: var(--gold); color: var(--navy-dark); }
.cookie-accept:hover { background: var(--gold-dark); color: var(--white); }
.cookie-decline { background: transparent; border-color: rgba(250,245,234,0.4); color: rgba(250,245,234,0.9); }
.cookie-decline:hover { border-color: var(--white); color: var(--white); }

/* ---------- Interactive map page ---------- */
.map-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .map-layout { grid-template-columns: 1fr; }
}
.map-panel {
  background: var(--white);
  border: 1px solid rgba(11,76,124,0.10);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 90px;
}
@media (max-width: 860px) {
  .map-panel { position: static; }
}
.map-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(11,76,124,0.2);
  border-radius: 999px;
  padding: 9px 14px;
  margin-bottom: 16px;
}
.map-search-box svg { width: 16px; height: 16px; color: var(--navy); flex-shrink: 0; }
.map-search-box input {
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  flex: 1;
  min-width: 0;
}
.map-filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.map-filter-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
}
.map-filter-row input { accent-color: var(--terracotta); width: 15px; height: 15px; flex-shrink: 0; }
.map-filter-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.map-filter-row span:nth-child(3) { flex: 1; }
.map-filter-count { color: var(--ink-soft); font-size: 0.78rem; }
.map-results { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; max-height: 220px; overflow-y: auto; }
.map-result-item {
  text-align: left;
  background: var(--cream-deep);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-dark);
  cursor: pointer;
}
.map-result-item:hover { background: var(--sand); }
.map-hint { font-size: 0.76rem; color: var(--ink-soft); line-height: 1.5; margin: 8px 0 0; }

.map-canvas-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(11,76,124,0.10);
}
.map-canvas { width: 100%; height: 620px; background: var(--sand); }
@media (max-width: 640px) {
  .map-canvas { height: 440px; }
}

.map-pin-icon { background: none; border: none; }
.map-popup { font-family: var(--font-sans); min-width: 160px; }
.map-popup__cat {
  display: block;
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 3px;
}
.map-popup strong { display: block; color: var(--navy-dark); font-size: 0.92rem; margin-bottom: 6px; }
.map-popup a { color: var(--navy); font-weight: 700; font-size: 0.84rem; }
.map-popup a:hover { color: var(--terracotta); }
.leaflet-popup-content-wrapper { border-radius: var(--radius-sm); }

.map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}
.map-fallback a { color: var(--navy); font-weight: 700; }

/* ---------- Language switcher ---------- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-right: 2px;
}
.lang-switcher a { color: var(--ink-soft); padding: 2px 3px; }
.lang-switcher a.is-current { color: var(--terracotta); }
.lang-switcher a:hover { color: var(--navy); }
.lang-switcher__sep { color: var(--ink-soft); opacity: 0.5; }

/* Banner noting partial translation coverage (French homepage etc.) */
.translation-note {
  background: var(--cream-deep);
  border: 1px solid rgba(201,162,92,0.4);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
