/* assets/site.css: shared styles for the generated pages (DH-453).
   Rules are copied verbatim from the inline <style> in index.html, which is untouched.
   Deviations (index.html is untouched): footer text colours raised, and nav link / ghost button
   opacity 0.7 -> 0.8, so text on the generated pages meets WCAG AA (4.5:1). */

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

/* fonts:start (self-hosted, DH-476; build.mjs injects this block into index.html, privacy.html and terms.html).
   Same families, weights and latin subset the Google Fonts request served; every weight maps to one variable file.
   Fonts are SIL OFL 1.1 (licenses next to the files). */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/playfair-display-v40-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/playfair-display-v40-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/playfair-display-v40-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/playfair-display-v40-latin-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 600; font-display: swap; src: url(/assets/fonts/playfair-display-v40-latin-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/dm-sans-v17-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/dm-sans-v17-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/dm-sans-v17-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: italic; font-weight: 300; font-display: swap; src: url(/assets/fonts/dm-sans-v17-latin-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Fallbacks for the swap: local fonts resized to the web fonts' metrics so text does not reflow (CLS).
   unicode-range matches the web fonts, so glyphs they lack (arrows) still fall through to the generic family as before.
   size-adjust = web font width / fallback width, measured in Chrome (see PR). ascent/descent-override = font metric / size-adjust. */
@font-face { font-family: 'Playfair Display Fallback'; font-style: normal; font-weight: 400 700; src: local('Georgia Bold'), local('Georgia-Bold'); size-adjust: 89.16%; ascent-override: 121.35%; descent-override: 28.15%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display Fallback'; font-style: italic; font-weight: 400 700; src: local('Georgia Bold Italic'), local('Georgia-BoldItalic'); size-adjust: 84.29%; ascent-override: 128.37%; descent-override: 29.78%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans Fallback'; font-style: normal; font-weight: 300 700; src: local('Arial'), local('ArialMT'); size-adjust: 102.86%; ascent-override: 96.44%; descent-override: 30.14%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans Fallback'; font-style: italic; font-weight: 300 700; src: local('Arial Italic'), local('Arial-ItalicMT'); size-adjust: 102.14%; ascent-override: 97.12%; descent-override: 30.35%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* fonts:end */

:root {
    --navy: #1F3A5F;
    --navy-deep: #152c4a;
    --red: #C24A4A;
    --cream: #F5F1E8;
    --soft-blue: #6C8EBF;
    --warm-gray: #6B7280;
    --sand: #E7E1D5;
    --sand-dark: #d4ccbc;
    --white: #FDFBF7;
  }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', 'DM Sans Fallback', sans-serif;
    background: var(--cream);
    color: var(--navy);
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
  }

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 1000;
  }

nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    background: rgba(245, 241, 232, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(31, 58, 95, 0.08);
    transition: all 0.3s ease;
  }

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }

.nav-logo-mark {
    width: 36px;
    height: 36px;
    background: var(--navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

.nav-logo-mark svg { width: 20px; height: 20px; }

.nav-logo-text {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
  }

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
  }

.nav-links a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: 0.02em;
    opacity: 0.8;
    transition: opacity 0.2s;
  }

.nav-links a:hover { opacity: 1; }

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
  }

.btn-ghost {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: 0.02em;
    opacity: 0.8;
    transition: opacity 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
  }

.btn-ghost:hover { opacity: 1; }

.btn-primary {
    background: var(--navy);
    color: var(--cream);
    font-family: 'DM Sans', 'DM Sans Fallback', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
  }

.btn-primary:hover {
    background: var(--navy-deep);
    transform: translateY(-1px);
  }

section { position: relative; }

.section-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 48px;
  }

footer {
    background: var(--navy-deep);
    padding: 60px 0 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 48px;
  }

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
  }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
  }

.footer-logo-mark {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

.footer-logo-text {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-size: 17px;
    font-weight: 700;
    color: white;
  }

.footer-tagline {
    font-size: 13.5px;
    color: rgba(255,255,255,0.72);
    line-height: 1.65;
    max-width: 240px;
  }

.footer-col-title {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255,255,255,0.72);
    margin-bottom: 16px;
  }

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    transition: color 0.2s;
  }

.footer-links a:hover { color: rgba(255,255,255,0.95); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

.footer-copy {
    font-size: 12.5px;
    color: rgba(255,255,255,0.72);
  }

.footer-mission {
    font-size: 12.5px;
    color: rgba(255,255,255,0.72);
    font-style: italic;
  }

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 200;
  }

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }

.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }

.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--cream);
    z-index: 150;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

.mobile-menu.open {
    display: flex;
    opacity: 1;
  }

.mobile-menu a {
    font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.02em;
    opacity: 0.8;
    transition: opacity 0.2s;
  }

.mobile-menu a:hover { opacity: 1; }

.mobile-menu .mobile-cta {
    margin-top: 8px;
    background: var(--navy);
    color: var(--cream);
    font-family: 'DM Sans', 'DM Sans Fallback', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 8px;
    letter-spacing: 0.01em;
    opacity: 1;
  }

@media (max-width: 1024px) {
    nav { padding: 18px 28px; }
    .nav-links { gap: 24px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
  }

@media (max-width: 680px) {
    nav {
          padding: 16px 20px;
        }
    .nav-links, .nav-cta { display: none; }
    .nav-hamburger { display: flex; }
    .section-inner { padding: 0 20px; }
    footer { padding: 48px 0 24px; }
    .footer-inner { padding: 0 20px; }
    .footer-top {
          grid-template-columns: 1fr 1fr;
          gap: 28px;
        }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom {
          flex-direction: column;
          align-items: flex-start;
          gap: 6px;
        }
  }

/* ---- generated-page layout (new) ---- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--navy);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 200;
}
.skip-link:focus { top: 12px; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.page { padding: 140px 0 96px; }
.page-content { max-width: 720px; }
.page-content h1 {
  font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 32px;
}
.page-content h2 {
  font-family: 'Playfair Display', 'Playfair Display Fallback', serif;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin: 40px 0 12px;
}
.page-content p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--navy);
  margin-bottom: 18px;
}
.page-content a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.page-content a:hover { color: var(--navy-deep); text-decoration-thickness: 2px; }
.page-content strong { font-weight: 600; }

/* Tables are wrapped by build.mjs so a wide table scrolls inside its own box (the page never scrolls sideways). */
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--sand-dark); border-radius: 8px; }
.page-content table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.page-content th, .page-content td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sand-dark); }
.page-content th { background: var(--sand); font-weight: 600; color: var(--navy); }
.page-content tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 680px) {
  .page { padding: 112px 0 64px; }
}

/* breadcrumb:start (build.mjs injects this block into privacy.html and terms.html) */
.breadcrumb { margin-bottom: 20px; font-size: 14px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--navy); }
.breadcrumb li + li::before { content: "\203A"; margin-right: 6px; color: var(--warm-gray); }
.breadcrumb a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
/* breadcrumb:end */
