/* ==========================================================================
   belgia.org — Redakcyjny Przewodnik po Belgii
   Ultralekki, samowystarczalny arkusz stylów (WCAG 2.1 AA, mobile-first)
   ========================================================================== */

:root {
  --bg: #faf8f4;
  --bg-alt: #f3efe6;
  --surface: #ffffff;
  --surface-tint: #f7f3ea;
  --text: #1c1e21;
  --text-muted: #4b5058;
  --border: #dfd8ca;
  --border-strong: #c8beac;

  --burgundy: #8b2635;
  --burgundy-dark: #6f1c29;
  --burgundy-soft: #f6eaec;

  --ochre: #c58b2a;
  --ochre-text: #7b530f;
  --ochre-soft: #fbf4e4;

  --navy: #1f3a52;
  --navy-dark: #162b3d;
  --navy-soft: #eaf0f5;

  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(28, 30, 33, 0.06);
  --shadow-md: 0 8px 24px rgba(28, 30, 33, 0.08);
  --max-width: 1140px;
  --prose-width: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.03125rem;
  line-height: 1.72;
  color: var(--text);
  background-color: var(--bg);
  text-rendering: optimizeLegibility;
}

/* Accessibility skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 2px;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--burgundy);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease, background-color 0.15s ease;
}

a:hover {
  color: var(--navy);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text);
  line-height: 1.24;
  letter-spacing: -0.01em;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 2.95rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  font-weight: 700;
  margin-top: 2.6rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 5.5rem;
}

h3 {
  font-size: clamp(1.18rem, 1.6vw, 1.38rem);
  font-weight: 700;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  color: var(--navy);
  scroll-margin-top: 5.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.1rem;
}

ul, ol {
  margin-top: 0;
  margin-bottom: 1.2rem;
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.42rem;
}

strong {
  font-weight: 700;
  color: var(--text);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.tricolore-bar {
  height: 4px;
  background: linear-gradient(90deg, #1c1e21 0% 33.33%, #d9a441 33.33% 66.66%, #8b2635 66.66% 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand-link:hover {
  color: var(--navy);
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.25rem 1.25rem;
}

.site-nav.is-open {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-item {
  position: relative;
  margin: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--bg-alt);
  color: var(--burgundy);
}

.nav-submenu {
  list-style: none;
  margin: 0.2rem 0 0.4rem 0.9rem;
  padding: 0 0 0 0.75rem;
  border-left: 2px solid var(--border);
}

.nav-submenu li {
  margin: 0.15rem 0;
}

.nav-submenu a {
  display: flex;
  flex-direction: column;
  padding: 0.38rem 0.55rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-submenu a span {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
}

.nav-submenu a:hover,
.nav-submenu a[aria-current="page"] {
  background: var(--bg-alt);
  color: var(--burgundy);
}

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }

  .nav-submenu {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 240px;
    margin: 0;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }

  .nav-item.has-children:hover > .nav-submenu,
  .nav-item.has-children:focus-within > .nav-submenu {
    display: block;
  }
}

/* ==========================================================================
   Hero & Editorial Header
   ========================================================================== */

.hero-home {
  padding: 2.75rem 0 2.5rem;
  background:
    radial-gradient(circle at 88% 18%, rgba(197, 139, 42, 0.13), transparent 44%),
    radial-gradient(circle at 10% 85%, rgba(139, 38, 53, 0.08), transparent 45%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 2.75rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--burgundy);
  margin-bottom: 0.8rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--ochre);
}

.lead {
  font-size: 1.15rem;
  line-height: 1.68;
  color: #323740;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--burgundy);
  color: #ffffff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--navy-soft);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 640px) {
  .quick-facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fact-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-sm);
}

.fact-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
}

.fact-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.22rem;
}

.editorial-map {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.figure-block {
  margin: 1.75rem 0;
}

.figure-block figcaption {
  margin-top: 0.55rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Page Header & Breadcrumbs
   ========================================================================== */

.page-header {
  padding: 2rem 0 1.75rem;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.breadcrumbs {
  margin-bottom: 1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--border-strong);
}

.breadcrumbs a {
  color: var(--navy);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--navy);
}

/* ==========================================================================
   Article Layout with Sidebar TOC
   ========================================================================== */

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding: 2.2rem 0 3.5rem;
}

@media (min-width: 1020px) {
  .article-layout.has-toc {
    grid-template-columns: minmax(0, 1fr) 270px;
    align-items: start;
  }
}

.article-body {
  min-width: 0;
}

.article-body > p,
.article-body > ul,
.article-body > ol,
.article-body > h2,
.article-body > h3,
.article-body > .callout {
  max-width: var(--prose-width);
}

.toc-sidebar {
  order: -1;
}

@media (min-width: 1020px) {
  .toc-sidebar {
    order: 1;
    position: sticky;
    top: 5.5rem;
  }
}

.toc-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.7rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.89rem;
}

.toc-list li {
  margin: 0.32rem 0;
}

.toc-list a {
  display: block;
  padding: 0.16rem 0;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.4;
}

.toc-list a:hover {
  color: var(--burgundy);
}

/* ==========================================================================
   Editorial Callout Boxes
   ========================================================================== */

.callout {
  margin: 1.65rem 0;
  padding: 1.15rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  border-left-width: 4px;
  background: var(--surface);
}

.callout-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.45rem;
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.callout-practice {
  background: var(--navy-soft);
  border-color: #cbd9e5;
  border-left-color: var(--navy);
}

.callout-practice .callout-title {
  color: var(--navy);
}

.callout-trivia {
  background: var(--ochre-soft);
  border-color: #e9d7b1;
  border-left-color: var(--ochre);
}

.callout-trivia .callout-title {
  color: var(--ochre-text);
}

.callout-lang {
  background: var(--burgundy-soft);
  border-color: #e5c6cb;
  border-left-color: var(--burgundy);
}

.callout-lang .callout-title {
  color: var(--burgundy-dark);
}

/* ==========================================================================
   Cards, Grids, Tables & Sections
   ========================================================================== */

.section-block {
  padding: 3rem 0;
}

.section-block.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 740px;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin-top: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

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

@media (min-width: 960px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid.cols-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  background: var(--bg-alt);
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.card-tag.tag-flanders {
  background: var(--ochre-soft);
  color: var(--ochre-text);
}

.card-tag.tag-wallonia {
  background: var(--burgundy-soft);
  color: var(--burgundy-dark);
}

.card-tag.tag-brussels {
  background: var(--navy-soft);
  color: var(--navy);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1.22rem;
}

.card h3 a {
  color: var(--text);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--burgundy);
}

.card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  flex-grow: 1;
}

.card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.89rem;
  font-weight: 700;
  color: var(--burgundy);
  text-decoration: none;
}

.card-more:hover {
  color: var(--navy);
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  text-align: left;
}

thead th {
  background: var(--navy);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  padding: 0.78rem 0.9rem;
  white-space: nowrap;
}

tbody td {
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

tbody tr:nth-child(even) {
  background: #fcfaf6;
}

.badge {
  display: inline-block;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-nl {
  background: var(--ochre-soft);
  color: var(--ochre-text);
  border: 1px solid #e6d1a3;
}

.badge-fr {
  background: var(--burgundy-soft);
  color: var(--burgundy-dark);
  border: 1px solid #e4bfc5;
}

.badge-de {
  background: var(--navy-soft);
  color: var(--navy);
  border: 1px solid #c3d5e4;
}

.badge-bi {
  background: #ece8f4;
  color: #3a2b63;
  border: 1px solid #d1c6e5;
}

/* ==========================================================================
   Interactive Editorial Tools
   ========================================================================== */

.tool-panel {
  margin: 2rem 0 2.5rem;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.45rem 1.35rem;
  box-shadow: var(--shadow-md);
}

.tool-header {
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.tool-header h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
  color: var(--navy);
}

.tool-header p {
  margin-bottom: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.tool-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.search-box {
  position: relative;
  flex: 1 1 240px;
}

.search-box svg {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.tool-input {
  width: 100%;
  padding: 0.62rem 0.9rem 0.62rem 2.35rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
}

.tool-input:focus {
  background: var(--surface);
  border-color: var(--navy);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.filter-pills-spaced {
  margin-bottom: 1rem;
}

.filter-btn {
  padding: 0.44rem 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

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

.filter-btn[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.lang-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0.65rem 0.9rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.lang-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.tool-status {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.speak-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 0.35rem;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--navy);
  cursor: pointer;
  vertical-align: middle;
  flex-shrink: 0;
}

.speak-btn:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.speak-btn[hidden] {
  display: none;
}

.phrase-cell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
}

.phrase-note {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.18rem;
}

.col-hidden {
  display: none;
}

.decoder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .decoder-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.decoder-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}

.decoder-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.decoder-names {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
}

.decoder-alt {
  font-size: 0.85rem;
  color: var(--burgundy);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.decoder-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.empty-state {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
}

/* ==========================================================================
   FAQ Accordions & Related Box
   ========================================================================== */

.faq-section {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 2px solid var(--border);
  max-width: var(--prose-width);
}

.faq-section h2 {
  margin-top: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.15rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--burgundy);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.15rem 1.05rem;
  color: var(--text-muted);
  font-size: 0.96rem;
  border-top: 1px solid var(--bg-alt);
}

.faq-answer p:first-child {
  margin-top: 0.75rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.related-section {
  margin-top: 3rem;
  padding: 2rem 0 0;
  border-top: 2px solid var(--border);
}

.related-section h2 {
  margin-top: 0;
  border-bottom: 0;
  padding-bottom: 0;
  font-size: 1.45rem;
}

/* Itinerary cards */
.itinerary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  max-width: var(--prose-width);
}

.itinerary-day {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--burgundy);
  margin-bottom: 0.25rem;
}

.itinerary-card h3 {
  margin-top: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-dark);
  color: #dde5ed;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
  border-top: 4px solid var(--ochre);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
  }
}

.footer-brand .brand-title {
  color: #ffffff;
}

.footer-brand .brand-sub {
  color: #c2cfdc;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #c2cfdc;
  margin-top: 0.75rem;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e6bf72;
  margin: 0 0 0.8rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.42rem;
}

.footer-col a {
  color: #e7eef5;
  text-decoration: none;
  font-size: 0.91rem;
}

.footer-col a:hover {
  color: #f3d28e;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.4rem;
  font-size: 0.84rem;
  color: #b7c6d4;
}

/* 404 Page */
.not-found-box {
  max-width: 680px;
  margin: 3.5rem auto;
  padding: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.not-found-code {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
}
