/* =========================================================================
   Elasticsearch ILM & Reindexing Automation — design system
   Light, elegant, professional; widescreen-friendly, fully responsive.
   ========================================================================= */

:root {
  /* Palette */
  --bg: #f6f9fc;
  --surface: #ffffff;
  --surface-2: #eef3fa;
  --surface-3: #e7eefb;
  --text: #1e2a38;
  --muted: #5a6b7d;
  --primary: #2563a6;
  --primary-600: #1d4f86;
  --primary-700: #173f6b;
  --accent: #0ea5a8;
  --link: #1d6fb8;
  --link-hover: #14507f;
  --border: #e1e8f1;
  --border-strong: #cdd8e6;

  /* Lifecycle accent colors (used by CTAs/icons) */
  --hot: #ef4444;
  --warm: #f59e0b;
  --cold: #2563a6;

  /* Code */
  --code-bg: #f4f7fc;
  --code-border: #e3eaf4;
  --inline-code-bg: #eaf0f9;
  --inline-code-fg: #1d4f86;

  /* Shape & depth */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(23, 63, 107, 0.06), 0 2px 6px rgba(23, 63, 107, 0.05);
  --shadow-md: 0 6px 22px rgba(23, 63, 107, 0.10);
  --shadow-lg: 0 18px 50px rgba(23, 63, 107, 0.16);

  /* Layout */
  --header-h: 64px;
  --app-max: 1600px;
  --content-max: 1200px;
  --hero-max: 1320px;

  /* Type */
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", Menlo, monospace;

  --grad: linear-gradient(100deg, #2563a6 0%, #0ea5a8 60%, #f59e0b 120%);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: clamp(16px, 0.95rem + 0.2vw, 18px);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a {
  color: var(--link);
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
a:hover { color: var(--link-hover); }
:focus-visible {
  outline: 3px solid rgba(37, 99, 166, .45);
  outline-offset: 2px;
  border-radius: 3px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 200;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--app-max);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 clamp(16px, 3vw, 40px);
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
}
.brand-logo { width: 40px; height: 40px; filter: drop-shadow(0 2px 4px rgba(23,63,107,.18)); transition: transform .2s ease; }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-size: 1.02rem; letter-spacing: .2px; }
.brand-sub { font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

.primary-nav { margin-left: auto; }
.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
  white-space: nowrap;
}
.nav-link .nav-ico {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .8;
}
.nav-link:hover { background: var(--surface-2); color: var(--primary); }
.nav-link.is-current {
  background: var(--surface-3);
  color: var(--primary-700);
}
.nav-link.is-current .nav-ico { opacity: 1; color: var(--primary); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle-bar { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s 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); }

/* ---------- Main / footer skeleton ---------- */
.site-main { flex: 1 0 auto; width: 100%; }
.site-footer { flex-shrink: 0; }

/* ---------- Generic page shell (content pages) ---------- */
.page-shell {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 40px) clamp(16px, 3vw, 40px) 64px;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { margin: 4px 0 22px; font-size: .86rem; }
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--muted);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 700; }

/* ---------- Prose ---------- */
.prose { max-width: 100%; }
.prose > * + * { margin-top: 1.05em; }

.prose h1 {
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .35em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.prose h2 {
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.85rem);
  line-height: 1.2;
  margin-top: 2.2em;
  padding-bottom: .3em;
  letter-spacing: -0.01em;
  color: var(--primary-700);
  border-bottom: 2px solid var(--surface-3);
}
.prose h3 {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  margin-top: 1.8em;
  color: var(--primary-600);
}
.prose h4 { font-size: 1.08rem; margin-top: 1.5em; color: var(--text); }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5 { font-weight: 750; }

/* In-page anchor links clear the sticky header */
.prose :where(h1, h2, h3, h4, h5, h6)[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

.heading-anchor {
  margin-left: .45em;
  color: var(--border-strong);
  font-weight: 600;
  opacity: 0;
  transition: opacity .15s ease, color .15s ease;
  text-decoration: none;
}
.prose :where(h2, h3, h4):hover .heading-anchor { opacity: 1; }
.heading-anchor:hover { color: var(--primary); }

.prose p { margin: 0; color: var(--text); }
.prose strong { color: var(--primary-700); font-weight: 700; }
.prose a {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(29, 111, 184, .35);
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--link-hover); text-decoration-color: currentColor; }

.prose ul, .prose ol { padding-left: 1.5em; }
.prose li + li { margin-top: .4em; }
.prose ul { list-style: none; padding-left: 1.2em; }
.prose ul > li { position: relative; padding-left: 1.1em; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--primary); font-weight: 700; }

.prose blockquote {
  margin: 1.4em 0;
  padding: .6em 1.1em;
  border-left: 4px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
}
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }

/* ---------- Inline code (subtle, no border, blends in) ---------- */
.prose :not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--inline-code-bg);
  color: var(--inline-code-fg);
  padding: 0.12em 0.4em;
  border-radius: 5px;
  white-space: break-spaces;
  word-break: break-word;
}

/* ---------- Code blocks ---------- */
.prose pre[class*="language-"],
.prose pre {
  position: relative;
  margin: 1.5em 0;
  padding: 1.05rem 1.15rem;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-sm);
  overflow: auto;
  font-size: .9rem;
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
  tab-size: 2;
}
.prose pre code {
  font-family: var(--font-mono);
  background: none;
  padding: 0;
  color: #243140;
  font-size: inherit;
}
.code-toolbar-wrap { position: relative; }
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: .76rem;
  font-weight: 600;
  color: var(--primary-600);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  padding: 5px 10px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease, background-color .15s ease, color .15s ease;
}
.code-toolbar-wrap:hover .copy-btn,
.copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.copy-btn.is-copied { background: var(--accent); color: #fff; border-color: var(--accent); opacity: 1; }
.copy-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Prism light token colors (tuned to the site scheme) */
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #7c8a99; font-style: italic; }
.token.punctuation { color: #5a6b7d; }
.token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol, .token.deleted { color: #c2410c; }
.token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted { color: #0f7a6b; }
.token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string { color: #1d4f86; }
.token.atrule, .token.attr-value, .token.keyword { color: #2563a6; font-weight: 600; }
.token.function, .token.class-name { color: #9333ea; }
.token.regex, .token.important, .token.variable { color: #c2410c; }
.token.important, .token.bold { font-weight: 700; }
.token.italic { font-style: italic; }

/* ---------- Tables (styled + horizontal scroll) ---------- */
.table-wrap {
  margin: 1.6em 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 480px;
}
.prose thead th {
  background: var(--surface-3);
  color: var(--primary-700);
  text-align: left;
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 2px solid var(--border-strong);
  white-space: nowrap;
}
.prose tbody td {
  padding: 11px 14px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.prose tbody tr:nth-child(even) { background: var(--surface-2); }
.prose tbody tr:hover { background: var(--surface-3); }

/* ---------- Task list checkboxes ---------- */
.prose ul.contains-task-list { padding-left: .2em; }
.prose ul.contains-task-list > li.task-list-item { padding-left: 1.9em; list-style: none; }
.prose ul.contains-task-list > li.task-list-item::before { display: none; } /* remove the dot */
.prose li.task-list-item > input.task-list-item-checkbox {
  position: absolute;
  left: 0;
  top: .28em;
  width: 1.15em;
  height: 1.15em;
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary);
}
.prose li.task-list-item.is-checked { color: var(--muted); text-decoration: line-through; }

/* ---------- FAQ accordions ---------- */
.faq-accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin: .8em 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-accordion > summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 16px 18px;
  font-weight: 700;
  color: var(--primary-700);
  position: relative;
}
.faq-accordion > summary::-webkit-details-marker { display: none; }
.faq-accordion > summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform .2s ease;
}
.faq-accordion[open] > summary::after { content: "−"; }
.faq-accordion > summary:hover { background: var(--surface-2); }
.faq-body { padding: 0 18px 16px; color: var(--text); }

/* ---------- Mermaid ---------- */
pre.mermaid {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
pre.mermaid:not([data-processed]) { color: transparent; min-height: 80px; }
pre.mermaid svg { max-width: 100%; height: auto; }

/* Click-to-enlarge affordance on rendered diagrams */
pre.mermaid[data-processed] { position: relative; cursor: zoom-in; transition: border-color .15s ease, box-shadow .15s ease; }
pre.mermaid[data-processed]:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
pre.mermaid[data-processed]::after {
  content: "⤢ Enlarge";
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--primary-700);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  padding: 3px 9px;
  opacity: 0;
  transition: opacity .15s ease;
  pointer-events: none;
}
pre.mermaid[data-processed]:hover::after,
pre.mermaid[data-processed]:focus-visible::after { opacity: 1; }

/* ---------- Visualization lightbox (fullscreen) ---------- */
.viz-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 44px);
  background: rgba(15, 30, 50, 0.82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: vizFade .15s ease;
}
.viz-lightbox[hidden] { display: none; }
@keyframes vizFade { from { opacity: 0; } to { opacity: 1; } }
.viz-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: clamp(18px, 3.5vw, 52px);
  overflow: auto;
}
.viz-stage svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}
.viz-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
  pointer-events: none;
}
.viz-close {
  position: absolute;
  top: clamp(10px, 2vw, 22px);
  right: clamp(10px, 2vw, 26px);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--primary-700);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.viz-close:hover { background: var(--primary); color: #fff; transform: rotate(90deg); }
body.viz-open { overflow: hidden; }

/* ---------- KaTeX ---------- */
.katex-display { overflow-x: auto; overflow-y: hidden; padding: 4px 0; }

/* ---------- Related / cards ---------- */
.related { margin-top: 3rem; }
.related-title {
  font-size: 1.25rem;
  color: var(--primary-700);
  margin-bottom: 1rem;
}
.related-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.related-list a { font-weight: 600; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card-kicker {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
}
.card-title { font-weight: 700; color: var(--text); font-size: 1.02rem; line-height: 1.35; }
.card-go { margin-top: auto; font-weight: 700; color: var(--primary); font-size: .9rem; }
.card:hover .card-go { color: var(--primary-700); }

/* ---------- Hero / home ---------- */
.hero {
  background:
    radial-gradient(1200px 420px at 15% -10%, rgba(14, 165, 168, .14), transparent 60%),
    radial-gradient(1000px 420px at 95% 0%, rgba(245, 158, 11, .12), transparent 55%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: var(--hero-max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 84px) clamp(16px, 3vw, 40px) clamp(32px, 4vw, 56px);
  text-align: center;
}
.hero-logo-row { display: flex; justify-content: center; }
.hero-logo {
  width: clamp(112px, 14vw, 168px);
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(23, 63, 107, .22));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } html { scroll-behavior: auto; } }

.hero-title {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: .5em auto .3em;
  max-width: 18ch;
  font-weight: 800;
}
.hero-title .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.32rem);
  color: var(--text);
  max-width: 60ch;
  margin: 0 auto 1em;
}
.hero-lead code {
  font-family: var(--font-mono);
  background: var(--inline-code-bg);
  color: var(--inline-code-fg);
  padding: .1em .4em;
  border-radius: 5px;
  font-size: .9em;
}
.hero-text {
  color: var(--muted);
  max-width: 70ch;
  margin: 0 auto .9em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 2rem;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}
.cta:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--primary-700); }
.cta-ico {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: #fff;
}
.cta-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cta--arch .cta-ico { background: linear-gradient(135deg, #ff8a4c, #ef4444); }
.cta--policy .cta-ico { background: linear-gradient(135deg, #38bdf8, #2563a6); }
.cta--pipeline .cta-ico { background: linear-gradient(135deg, #34d399, #0ea5a8); }
.cta--arch:hover { border-color: #ef4444; }
.cta--policy:hover { border-color: #2563a6; }
.cta--pipeline:hover { border-color: #0ea5a8; }

.home-sections {
  max-width: var(--hero-max);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 40px) 64px;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}
.home-section-head h2 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  margin: 0 0 .25em;
  color: var(--primary-700);
}
.home-section-head h2 a { color: inherit; }
.home-section-head h2 a:hover { color: var(--primary); }
.home-section-head p { color: var(--muted); margin: 0 0 1.2rem; max-width: 80ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-700);
  color: #d8e6f5;
  margin-top: 48px;
}
.footer-inner {
  max-width: var(--app-max);
  margin: 0 auto;
  padding: clamp(32px, 4vw, 52px) clamp(16px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-logo { width: 44px; height: 44px; background: #fff; border-radius: 10px; padding: 4px; }
.footer-name { font-weight: 700; color: #fff; margin: 0 0 .35em; font-size: 1.05rem; }
.footer-desc { margin: 0; color: #b9cde3; font-size: .92rem; max-width: 60ch; }
.footer-heading { font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; margin: 0 0 .8rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-nav a { color: #cfe0f2; font-weight: 600; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  text-align: center;
  padding: 18px;
  font-size: .85rem;
  color: #9fb8d4;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 12px; }
  .nav-link { width: 100%; padding: 13px 14px; font-size: 1rem; }
}
@media (max-width: 620px) {
  .footer-inner { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .hero-title { max-width: 100%; }
}

/* Widescreen: open up the content measure so text uses the container width. */
@media (min-width: 1500px) {
  :root { --content-max: 1320px; }
}
