:root {
  --blue:    #006EBE;
  --blue-dk: #005a9e;
  --blue-lt: #3a8fd4;
  --ink:     #0A0F1C;
  --mid:     #414141;
  --soft:    #767676;
  --off:     #F6F8FB;
  --white:   #FFFFFF;
  --rule:    #E0E6EF;
  --serif:   'EB Garamond', Georgia, serif;
  --sans:    'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max:     1280px;
  --pad:     clamp(1.5rem, 5vw, 5rem);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--white); overflow-x: hidden; min-height: 100dvh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
main { flex: 1; }

/* NAV */
body > nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule); height: 62px; display: flex; align-items: center;
}
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); width: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: 'Arial Narrow', 'Arial', sans-serif; font-size: 1.45rem; font-weight: bold; font-style: italic; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.logo span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-search-link { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--soft); cursor: pointer; }
.nav-search-link svg { width: 18px; height: 18px; }
.nav-search-link:hover { color: var(--blue); }
.nc-nav-search { display: none; border-top: 1px solid var(--rule); background: var(--white); }
.nc-nav-search.is-open { display: block; }
.nc-nav-search-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.nc-nav-search form { display: flex; align-items: center; gap: .75rem; height: 56px; }
.nc-nav-search form > svg { width: 17px; height: 17px; flex: none; color: var(--soft); }
.nc-nav-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: .95rem; }
.nc-nav-search input::placeholder { color: var(--soft); }
.nc-nav-search-close { padding: 4px 6px; border: 0; background: none; color: var(--soft); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.nc-nav-search-close:hover { color: var(--ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.lang-select { font-size: 0.78rem; font-family: var(--sans); color: var(--soft); background: none; border: none; cursor: pointer; outline: none; font-weight: 500; }
.btn-login { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); background: none; border: 1.5px solid var(--rule); text-decoration: none; padding: 0.5rem 1.1rem; transition: all 0.2s; }
.btn-login:hover { border-color: var(--blue); color: var(--blue); }
.nav-cta { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); background: var(--blue); text-decoration: none; padding: 0.55rem 1.25rem; transition: background 0.2s; }
.nav-cta:hover { background: var(--blue-dk); }
.nav-menu-cta { display: none; }
/* Hamburger — hidden on desktop, shown ≤768px */
.nav-toggle { display: none; width: 40px; height: 40px; margin-right: -8px; padding: 0; background: none; border: none; cursor: pointer; color: var(--ink); }
.nav-toggle-bars { position: relative; display: block; width: 22px; height: 16px; margin: 0 auto; }
.nav-toggle-bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 7px; }
.nav-toggle-bars span:nth-child(3) { top: 14px; }
body > nav.nav-open .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body > nav.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
body > nav.nav-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

h1 { font-family: var(--serif); font-size: clamp(3.2rem,6.5vw,6rem); font-weight: 400; line-height: 1.06; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 2rem; max-width: 820px; }
h1 em { font-style: italic; color: var(--blue); }
.btn { display: inline-flex; align-items: center; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding: 0.9rem 2rem; transition: all 0.2s; }
.btn-solid { background: var(--blue); color: var(--white); }
.btn-solid:hover { background: var(--blue-dk); }

/* SHARED */
section { padding: clamp(5rem,10vw,8rem) var(--pad); }
.s-inner { max-width: var(--max); margin: 0 auto; }
h2 { font-family: var(--serif); font-size: clamp(2.2rem,4vw,3.8rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.025em; color: var(--ink); }
.dark h2 { color: var(--white); }
.s-lead { font-size: 1rem; line-height: 1.65; color: var(--soft); max-width: 440px; }
.dark .s-lead { color: rgba(255,255,255,0.45); }

/* FOOTER */
footer { background: #05080F; padding: 5rem var(--pad) 2.5rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; padding-bottom: 4rem; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 2rem; }
.footer-logo { font-family: 'Arial Narrow', 'Arial', sans-serif; font-size: 1.2rem; font-weight: bold; font-style: italic; color: var(--white); text-decoration: none; }
.footer-logo span { color: var(--blue-lt); }
.footer-tag { font-size: 0.8rem; color: rgba(255,255,255,0.25); line-height: 1.6; margin-top: 0.75rem; max-width: 220px; }
.footer-col h4 { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.84rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-copy, .footer-legal { font-size: 0.72rem; color: rgba(255,255,255,0.18); }

/* PAGE HEADER + BREADCRUMB — inner padding aligns with the nav logo. */
.page-header { background: var(--off); padding: clamp(2.5rem,5vw,3.5rem) 0 clamp(2rem,4vw,3rem); }
.page-header .s-inner { padding-left: var(--pad); padding-right: var(--pad); }
.page-header h1 { font-family: var(--serif); font-size: clamp(2.2rem,4.5vw,3.4rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); margin: 0; max-width: none; }
.crumbs { position: static; height: auto; background: none; backdrop-filter: none; border: none; font-size: 0.78rem; color: var(--soft); margin-bottom: 0.9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.crumbs li { color: var(--soft); }
.crumbs li + li::before { content: "/"; margin: 0 0.5rem; }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: var(--soft); margin: 0 0.5rem; }
/* Shared FAQ CTA: CMS pages reuse this component outside the FAQ page. */
.faq-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; width: calc(100% + 2 * var(--pad)); margin-top: 3.5rem; margin-left: calc(-1 * var(--pad)); padding: 3rem var(--pad); color: var(--white); background: var(--ink); }
.prose .faq-cta h2 { color: var(--white); font-family: 'Source Serif 4', Georgia, serif; font-size: 1.875rem; letter-spacing: 0; }
.prose .faq-cta p { margin-top: 0.5rem; color: var(--white); font-size: 1.05rem; }
.prose .faq-cta a { margin-left: auto; padding: 1rem 2.125rem; color: var(--white); background: var(--blue); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.12em; text-decoration: none; text-transform: uppercase; }
.prose .faq-cta a:hover { color: var(--white); background: var(--blue-dk); }

/* PROSE — plain CMS pages. Bodies without <section> markup are auto-wrapped
   by nc_wrap_prose() in .page-body > .s-inner > .prose, under the standard
   .page-header. Paste WYSIWYG content in the backend and it renders themed. */
.page-body { background: var(--white); padding: clamp(1.75rem,3vw,2.5rem) 0 clamp(3rem,5vw,4rem); }
.page-body .s-inner { padding-left: var(--pad); padding-right: var(--pad); }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(1.9rem,3vw,2.6rem); margin: 1.75rem 0 0.75rem; max-width: none; }
.prose h2 { font-size: clamp(1.7rem,2.6vw,2.2rem); margin: 1.75rem 0 0.65rem; }
.prose h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.25; color: var(--ink); margin: 1.5rem 0 0.5rem; }
.prose h4 { font-size: 0.95rem; font-weight: 600; color: var(--ink); margin: 1.25rem 0 0.4rem; }
.prose > :first-child { margin-top: 0; }
.prose p { font-size: 0.95rem; line-height: 1.7; color: var(--mid); margin-bottom: 0.75rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.4rem; font-size: 0.95rem; line-height: 1.7; color: var(--mid); }
.prose li { margin-bottom: 0.35rem; }
.prose a { color: var(--blue); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--ink); }
.prose blockquote { border-left: 3px solid var(--blue); padding-left: 1.25rem; margin: 1.5rem 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.55; color: var(--mid); }
.prose img { max-width: 100%; height: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; color: var(--mid); }
.prose th, .prose td { border: 1px solid var(--rule); padding: 0.6rem 0.9rem; text-align: left; vertical-align: top; }
.prose th { background: var(--off); color: var(--ink); font-weight: 600; }
.prose hr { border: none; border-top: 1px solid var(--rule); margin: 2.25rem 0; }

.form-card { background: var(--off); border: 1px solid var(--rule); padding: clamp(2rem,4vw,3rem); }
.form-card h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--ink); margin-bottom: 1.5rem; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.f-group { margin-bottom: 1.5rem; }
.f-group.full { grid-column: 1 / -1; }
.form-card label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; color: var(--ink); margin-bottom: 0.5rem; }
.form-card label .req { color: var(--blue); }
.form-card input, .form-card select, .form-card textarea { width: 100%; font-family: var(--sans); font-size: 0.92rem; color: var(--ink); background: var(--white); border: 1px solid var(--rule); padding: 0.75rem 0.9rem; outline: none; transition: border-color 0.2s; appearance: none; }
.form-card select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23767676' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.2rem; }
.form-card textarea { resize: vertical; min-height: 120px; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: var(--blue); }
.form-card input::placeholder, .form-card textarea::placeholder { color: #A3ADBC; }
.consent { display: flex; align-items: flex-start; gap: 0.65rem; margin-bottom: 1.75rem; }
.consent input[type="checkbox"] { -webkit-appearance: auto; appearance: auto; width: 17px; height: 17px; margin-top: 0.15rem; flex-shrink: 0; accent-color: var(--blue); }
.consent label { font-size: 0.82rem; font-weight: 400; color: var(--soft); margin-bottom: 0; line-height: 1.5; }
.consent a { color: var(--blue); text-decoration: none; }
.consent a:hover { text-decoration: underline; }
.form-card .btn-solid { width: 100%; justify-content: center; padding: 1rem 2rem; border: none; cursor: pointer; font-family: var(--sans); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .faq-cta { padding: 2rem var(--pad); }
  .f-row { grid-template-columns: 1fr; }
  .btn-login { display: none; }
  .footer-top { grid-template-columns: 1fr; }

  /* Mobile nav: hamburger + full-height slide-in panel.
     Drop backdrop-filter — it makes position:fixed children anchor to the
     nav box instead of the viewport, collapsing the panel behind content. */
  body > nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--white); }
  .nav-toggle { display: block; }
  .nav-right > .nav-cta { display: none; }
  .nav-links {
    position: fixed; top: 62px; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--pad) calc(env(safe-area-inset-bottom, 0px) + 2rem);
    background: var(--white); overflow-y: auto;
    transform: translateX(100%); opacity: 0; visibility: hidden;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0s linear 0.28s;
  }
  body > nav.nav-open .nav-links { transform: translateX(0); opacity: 1; visibility: visible; transition: transform 0.28s ease, opacity 0.28s ease; }
  .nav-links > li { border-bottom: 1px solid var(--rule); }
  .nav-links > li > a { display: block; padding: 1.15rem 0; font-size: 0.95rem; letter-spacing: 0.08em; color: var(--mid); }
  .nav-links > li > a:hover { color: var(--ink); }
  .nav-menu-cta { display: block; border-bottom: none; margin-top: 1.75rem; }
  .nav-menu-cta > .nav-cta { display: block; text-align: center; padding: 1.1rem; font-size: 0.85rem; color: var(--white); background: var(--blue); }
  .nav-menu-cta > .nav-cta:hover { color: var(--white); background: var(--blue-dk); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition-duration: 0.01ms !important; } }

/* LARGE SCREENS - use more width instead of hugging left */
@media (min-width: 1600px) { :root { --max: 1480px; } }
@media (min-width: 2000px) { :root { --max: 1720px; } }

/* EDIT PAGE FAB (logged-in staff only) */
.nc-edit-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 300;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
  color: var(--white); background: var(--blue);
  padding: 0.7rem 1.15rem; border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0,110,190,0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.nc-edit-fab:hover { background: var(--blue-dk); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,110,190,0.45); }
.nc-edit-fab svg { display: block; }

/* STAFF LOGIN (footer) */
.nc-staff-login { text-align: center; margin-top: 2.25rem; }
.nc-staff-login .staff-login-button {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.4); background: none;
  border: 1px solid rgba(255,255,255,0.12); padding: 0.55rem 1.4rem; cursor: pointer; transition: all 0.2s;
}
.nc-staff-login .staff-login-button:hover { color: var(--white); border-color: var(--blue-lt); }

/* INTERSITE LINKS (this site in other locations) - region/country select under the footer logo */
.footer-region { margin-top: 1.5rem; }
.footer-region label { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 0.6rem; }
.footer-select {
  width: 100%; max-width: 240px; appearance: none; -webkit-appearance: none; cursor: pointer;
  font-family: var(--sans); font-size: 0.84rem; color: rgba(255,255,255,0.6);
  background: #10151F url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23767676' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  background-size: 14px; border: 1px solid rgba(255,255,255,0.12); padding: 0.55rem 2.2rem 0.55rem 0.8rem;
}
.footer-select:hover, .footer-select:focus { border-color: var(--blue-lt); color: var(--white); outline: none; }
.footer-select option, .footer-select optgroup { background: #10151F; color: rgba(255,255,255,0.7); }
