/* ============================================================
   LUMINARYX™ shared stylesheet
   Used by all pages except index.html (which keeps its own
   inline styles). Mirrors the homepage design system so every
   page looks identical.
   Palette:  navy #1B2A4A · gold #C8A951 · gold-hover #D4B968
             grey #F5F5F0 · text #333 · muted #555
   Fonts:    'Source Serif 4' (headings) · 'DM Sans' (body)
   ============================================================ */

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

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

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #333333;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', serif;
  color: #1B2A4A;
  font-weight: 600;
  line-height: 1.3;
}

a { color: #1B2A4A; text-decoration: none; }

.gold-x { color: #C8A951; }

/* ── Skip link (accessibility) ── */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: #1B2A4A; color: #fff; padding: 0.6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff; border-bottom: 1px solid #C8A951;
}
.header-inner {
  max-width: 960px; margin: 0 auto; padding: 1.1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.header-wordmark {
  font-family: 'Source Serif 4', serif; font-size: 1.15rem; font-weight: 700;
  color: #1B2A4A; letter-spacing: 0.25em; text-transform: uppercase;
}
.header-wordmark sup { font-size: 0.5em; vertical-align: super; letter-spacing: 0; }
.header-nav { display: flex; align-items: center; gap: 1.75rem; }
.header-nav a {
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 500;
  color: #555555; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.2s;
}
.header-nav a:hover { color: #1B2A4A; }
.header-nav a:focus-visible { outline: 2px solid #1B2A4A; outline-offset: 4px; }
.nav-link-wrap { display: inline-flex; cursor: pointer; }
.nav-toggle { display: none; }
.nav-hamburger { display: none; }

/* ── Buttons ── */
.cta-button {
  display: inline-block; background: #C8A951; color: #1B2A4A;
  font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0.85rem 1.6rem;
  border: 1px solid #C8A951; border-radius: 0; text-decoration: none;
  cursor: pointer; transition: background-color 0.2s, border-color 0.2s;
}
.cta-button:hover { background: #D4B968; border-color: #D4B968; }
.cta-button:focus-visible { outline: 2px solid #1B2A4A; outline-offset: 2px; }
.cta-button--nav { padding: 0.55rem 1.1rem; font-size: 0.72rem; }
.cta-button--ghost {
  background: transparent; color: #1B2A4A;
}
.cta-button--ghost:hover { background: #F5F5F0; border-color: #C8A951; }

/* ── Sections ── */
.section { padding: 5rem 2rem; }
.section--grey { background: #F5F5F0; }
.section--navy { background: #1B2A4A; color: #ffffff; }
.section-inner { max-width: 720px; margin: 0 auto; }
.section-inner--wide { max-width: 960px; }
.section-heading { font-size: 1.65rem; font-weight: 600; margin-bottom: 0.6rem; }
.section-heading::after {
  content: ''; display: block; width: 3.5rem; height: 1px; background: #C8A951;
  margin-top: 0.75rem; margin-bottom: 2rem;
}
.section--navy .section-heading, .section--navy h2, .section--navy h3, .section--navy p { color: #ffffff; }

/* ── Subpage hero ── */
.subhero { padding: 4.5rem 2rem 3.5rem; background: #F5F5F0; border-bottom: 1px solid #e2e2da; }
.subhero-inner { max-width: 720px; margin: 0 auto; }
.subhero-eyebrow {
  font-family: 'DM Sans', sans-serif; font-size: 0.72rem; font-weight: 700;
  color: #C8A951; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem;
}
.subhero h1 {
  font-family: 'Source Serif 4', serif; font-size: 2.1rem; font-weight: 600;
  color: #1B2A4A; line-height: 1.3; margin-bottom: 1.25rem;
}
.subhero-lead { font-size: 1.15rem; color: #555555; line-height: 1.65; }

/* ── Breadcrumb ── */
.breadcrumb {
  max-width: 720px; margin: 0 auto; padding: 1rem 2rem 0;
  font-family: 'DM Sans', sans-serif; font-size: 0.8rem; color: #777777;
}
.breadcrumb a { color: #777777; border-bottom: 1px solid transparent; }
.breadcrumb a:hover { color: #1B2A4A; border-bottom-color: #C8A951; }
.breadcrumb span { color: #C8A951; margin: 0 0.4rem; }

/* ── Prose / article body ── */
.prose p { margin-bottom: 1.4rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.5rem; margin: 2.75rem 0 1rem; }
.prose h3 { font-size: 1.15rem; margin: 2rem 0 0.75rem; }
.prose ul, .prose ol { margin: 0 0 1.4rem 1.25rem; }
.prose li { margin-bottom: 0.6rem; }
.prose strong { color: #1B2A4A; }
.prose blockquote {
  border-left: 3px solid #C8A951; background: #F5F5F0;
  padding: 1rem 1.25rem; margin: 0 0 1.4rem; font-style: italic; color: #444;
}
.prose blockquote cite { display: block; font-style: normal; font-size: 0.85rem; color: #777; margin-top: 0.5rem; }

/* ── Feature blocks (reused from homepage) ── */
.feature-block { padding: 1.6rem 0; border-bottom: 1px solid #C8A951; }
.feature-block:first-of-type { padding-top: 0; }
.feature-block:last-of-type { border-bottom: none; padding-bottom: 0; }
.feature-lead { font-family: 'Source Serif 4', serif; font-weight: 600; color: #1B2A4A; }
.feature-desc { color: #333333; }

/* ── Callout ── */
.callout {
  background: #F5F5F0; border-left: 3px solid #C8A951;
  padding: 1.5rem 1.75rem; margin: 2rem 0;
}
.callout p { margin-bottom: 0.75rem; }
.callout p:last-child { margin-bottom: 0; }

/* ── Card grid (personas / cross-links / related) ── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card-grid--two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #F5F5F0; border-left: 3px solid #C8A951; padding: 1.5rem 1.35rem;
  display: flex; flex-direction: column;
}
.card h3 { font-size: 1.05rem; color: #1B2A4A; margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; color: #555555; line-height: 1.65; margin-bottom: 1rem; }
.card .card-link {
  margin-top: auto; font-family: 'DM Sans', sans-serif; font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #1B2A4A;
  border-bottom: 1px solid #C8A951; align-self: flex-start; padding-bottom: 2px;
}
.card .card-link:hover { color: #C8A951; }

/* ── Meta chips ── */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; }
.chip {
  font-family: 'DM Sans', sans-serif; font-size: 0.75rem; letter-spacing: 0.04em;
  background: #ffffff; border: 1px solid #C8A951; color: #1B2A4A;
  padding: 0.3rem 0.7rem; border-radius: 999px;
}

/* ── CTA band ── */
.cta-band { background: #1B2A4A; padding: 3.5rem 2rem; text-align: center; }
.cta-band-inner { max-width: 640px; margin: 0 auto; }
.cta-band h2 { color: #ffffff; font-size: 1.5rem; margin-bottom: 0.9rem; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 1.75rem; }
.cta-band .pilot-secondary { margin-top: 1rem; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.cta-band .pilot-secondary a { color: #ffffff; border-bottom: 1px solid transparent; }
.cta-band .pilot-secondary a:hover { border-bottom-color: #C8A951; }

/* ── Source list ── */
.source-list { list-style: none; margin: 0; padding: 0; }
.source-list li { padding: 1rem 0; border-bottom: 1px solid #e2e2da; font-size: 0.92rem; color: #555; }
.source-list li:last-child { border-bottom: none; }
.source-list a { color: #1B2A4A; border-bottom: 1px solid #C8A951; word-break: break-word; }

/* ── Briefing cards (index) ── */
.briefing-card {
  display: flex; flex-direction: row; align-items: flex-start; gap: 1.75rem;
  background: #F5F5F0; border-left: 3px solid #C8A951;
  padding: 1.75rem 1.75rem 1.75rem 1.5rem; margin-bottom: 1.75rem;
}
.briefing-thumb { flex: 0 0 25%; max-width: 200px; }
.briefing-thumb img { width: 100%; height: auto; display: block; border: 1px solid #d8d8d0; }
.briefing-body { flex: 1; min-width: 0; }
.briefing-tag {
  font-family: 'DM Sans', sans-serif; font-size: 0.7rem; color: #C8A951;
  letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; margin-bottom: 0.6rem;
}
.briefing-title { font-size: 1.2rem; color: #1B2A4A; line-height: 1.35; margin-bottom: 0.75rem; }
.briefing-desc { color: #555555; font-size: 0.95rem; line-height: 1.7; margin-bottom: 1rem; }
.briefing-meta {
  font-family: 'DM Sans', sans-serif; font-size: 0.78rem; color: #777777;
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.25rem;
}

/* ── Footer ── */
.site-footer { background: #1B2A4A; padding: 3.5rem 2rem; text-align: center; color: #ffffff; }
.footer-inner { max-width: 760px; margin: 0 auto; }
.footer-wordmark {
  font-family: 'Source Serif 4', serif; font-size: 1.4rem; font-weight: 700;
  color: #ffffff; letter-spacing: 0.25em; text-transform: uppercase;
}
.footer-wordmark sup { font-size: 0.5em; vertical-align: super; letter-spacing: 0; }
.footer-rule { width: 60%; max-width: 160px; height: 1px; background: #C8A951; border: none; margin: 0.75rem auto; }
.footer-tagline {
  font-family: 'DM Sans', sans-serif; font-size: 0.7rem; color: #C8A951;
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 2rem;
}
.footer-email {
  display: inline-block; color: #ffffff; font-size: 0.95rem; margin-bottom: 2rem;
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.footer-email:hover { border-bottom-color: #C8A951; }
.footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem;
  margin-bottom: 1.75rem; font-size: 0.85rem;
}
.footer-nav a { color: rgba(255,255,255,0.75); border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.footer-nav a:hover { color: #ffffff; border-bottom-color: #C8A951; }
.footer-links { margin-bottom: 2rem; font-size: 0.85rem; }
.footer-links a { color: rgba(255,255,255,0.7); margin: 0 0.75rem; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.footer-links a:hover { color: #ffffff; border-bottom-color: #C8A951; }
.footer-legal { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); line-height: 1.8; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .subhero h1 { font-size: 1.6rem; }
  .subhero-lead { font-size: 1.05rem; }
  .section { padding: 3.5rem 1.5rem; }
  .section-heading { font-size: 1.4rem; }
  .card-grid, .card-grid--two { grid-template-columns: 1fr; }
  .header-inner { padding: 0.9rem 1.5rem; position: relative; }
  .header-wordmark { font-size: 1rem; }

  .nav-toggle {
    display: inline-block; position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
  }
  .nav-toggle:focus-visible ~ .nav-hamburger { outline: 2px solid #1B2A4A; outline-offset: 2px; }
  .nav-hamburger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; cursor: pointer; position: relative; user-select: none;
  }
  .nav-hamburger-icon, .nav-hamburger-icon::before, .nav-hamburger-icon::after {
    content: ''; position: absolute; display: block; width: 22px; height: 2px;
    background: #1B2A4A; left: 50%; margin-left: -11px;
    transition: transform 0.2s, top 0.2s, opacity 0.2s, background-color 0.2s;
  }
  .nav-hamburger-icon { top: 50%; margin-top: -1px; }
  .nav-hamburger-icon::before { top: -7px; }
  .nav-hamburger-icon::after { top: 7px; }
  .nav-toggle:checked ~ .nav-hamburger .nav-hamburger-icon { background: transparent; }
  .nav-toggle:checked ~ .nav-hamburger .nav-hamburger-icon::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav-hamburger .nav-hamburger-icon::after { top: 0; transform: rotate(-45deg); }

  .header-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #ffffff; border-top: 1px solid #C8A951; border-bottom: 1px solid #C8A951;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 0.5rem 1.5rem 1.25rem; z-index: 99;
  }
  .nav-toggle:checked ~ .header-nav { display: flex; }
  .nav-link-wrap { width: 100%; display: block; }
  .header-nav a { padding: 0.75rem 0; font-size: 1rem; width: 100%; display: block; }
  .header-nav .cta-button { width: auto; display: inline-block; margin-top: 0.75rem; }

  .briefing-card { flex-direction: column; padding: 1.5rem 1.5rem 1.5rem 1.25rem; gap: 1.25rem; }
  .briefing-thumb { flex: none; max-width: 100%; width: 100%; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .subhero { padding: 3.5rem 1.25rem 3rem; }
  .subhero h1 { font-size: 1.4rem; }
  .section { padding: 3rem 1.25rem; }
  .header-inner { padding: 0.85rem 1.25rem; }
  .cta-button { padding: 0.75rem 1.3rem; font-size: 0.78rem; }
}

/* Header: fit longer bilingual nav labels without crowding (desktop only) */
@media (min-width: 769px) {
  .header-inner { max-width: 1160px; }
  .header-wordmark { white-space: nowrap; flex-shrink: 0; margin-right: 1.5rem; }
  .header-nav { gap: 1rem; flex-wrap: wrap; justify-content: flex-end; row-gap: 0.35rem; }
  .header-nav a { white-space: nowrap; }
}
