/* Stylesheet for the generated content pages.
 *
 * This deliberately reproduces the existing site template rather than inventing a
 * parallel one: the same sticky header, the same striped hero with its skewed panel,
 * the same certified-platforms strip, and the same #05090C footer with its 4px teal
 * top border. The hand-written pages get that markup from the <x-dc> components in
 * public/SiteNav.dc.html and public/SiteFooter.dc.html; the generated pages cannot use
 * those (they must stay plain HTML so text-only crawlers see the nav and footer), so
 * the same values are expressed here as real CSS.
 *
 * If the .dc.html components change, change this to match. The values below are copied
 * from them on purpose — colour by colour, size by size.
 */

:root {
  --ground: #080E13;
  --panel: #101E24;
  --panel-alt: #0C1419;
  --foot: #05090C;
  --line: #1C2A28;
  --text: #EEF4F4;
  --body: #C2D2D4;
  --muted: #8FA3A8;
  --dim: #7C9391;
  --nav-link: #9FC0BE;
  --accent: #2FB894;
  --accent-hi: #59D4B4;
  --accent-soft: #8FE0C8;
  --display: Sora, "Trebuchet MS", sans-serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --shell: 1280px;
}

* { box-sizing: border-box; }

/* support.js injects FULL_PAGE_CSS, which pins html, body, #dc-root and .sc-host to
   height:100%. That traps the whole document in a viewport-height box and the page
   cannot scroll at all — everything below the fold becomes unreachable. Releasing the
   height lets the document flow normally. public/SiteNav.dc.html carries the same
   workaround for the hand-written pages; this is its equivalent for the generated ones.
   Remove it only if support.js stops injecting that stylesheet. */
html, body { height: auto !important; min-height: 100%; }
#dc-root, #dc-root > .sc-host { height: auto !important; min-height: 100%; }

/* support.js injects a full-page stylesheet that can outrank a plain class rule, which
   once left the desktop and mobile navs both visible at once. Toggling visibility via
   the `hidden` attribute with !important cannot be overridden that way. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--text); margin: 0; text-wrap: balance; }
p, ul, ol, dl { margin: 0; }
::selection { background: var(--accent); color: var(--ground); }

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: 12px 18px; background: var(--accent); color: var(--ground); font-weight: 700;
}
.skip:focus { left: 0; }

/* Sora 14px / .16em — the eyebrow used throughout the original design. */
.eyebrow {
  font-family: var(--display); font-size: 14px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}

/* ------------------------------------------------------------------- header */
/* Mirrors public/SiteNav.dc.html. */

.site-head {
  position: sticky; top: 0; z-index: 900;
  background: var(--ground);
  border-bottom: 1px solid rgba(47, 184, 148, .22);
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 74px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand span {
  font-family: var(--display); font-weight: 800; font-size: 19px;
  letter-spacing: -.02em; color: #fff;
}
.brand b { color: var(--accent); font-weight: 800; }
.brand img { width: 28px; height: 28px; display: block; }

.site-head nav ul { list-style: none; display: flex; align-items: center; gap: 4px; padding: 0; margin: 0; }
.site-head nav a {
  position: relative; display: block; padding: 10px 14px;
  font-size: 16px; font-weight: 500; color: var(--nav-link);
  border-radius: 6px; transition: color .18s ease, background .18s ease;
}
.site-head nav a:hover { color: #fff; background: rgba(47, 184, 148, .14); }
.site-head nav a[aria-current="page"] { color: #fff; }
/* The 2px teal underline the original draws on the active item. */
.site-head nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--accent);
}

.head-cta {
  flex-shrink: 0; display: inline-block; padding: 12px 20px;
  background: var(--accent); color: var(--ground);
  font-size: 16px; font-weight: 700;
  transition: transform .18s ease, background .18s ease;
}
.head-cta:hover { background: var(--accent-hi); color: var(--ground); transform: translateY(-2px); }

/* Mobile menu. The <x-dc> version toggles in its runtime; these pages toggle the
   `hidden` attribute from a three-line inline script. Links are in the markup either
   way, so a crawler sees them regardless. */
.nav-toggle-box { display: none; }
.nav-toggle-box {
  align-items: center; gap: 10px; background: transparent;
  border: 1px solid rgba(238, 244, 244, .35); color: #fff;
  font-size: 15px; font-weight: 600; padding: 11px 14px; cursor: pointer;
}
.nav-toggle-box span { display: grid; gap: 4px; width: 18px; }
.nav-toggle-box span i { height: 2px; background: #fff; display: block; }
.nav-toggle-box span i:nth-child(2) { background: var(--accent); }
/* The panel is hidden unless the toggle adds .is-open. Never rely on the `hidden`
   attribute here — the <x-dc> runtime re-renders and strips it. */
.nav-mobile { display: none; }

@media (max-width: 1180px) {
  .site-head nav.desktop, .head-cta { display: none; }
  .nav-toggle-box { display: flex; }
  .nav-mobile.is-open { display: block; }
  .nav-mobile {
    border-top: 1px solid rgba(47, 184, 148, .25);
    background: var(--foot); padding: 14px 24px 28px;
  }
  .nav-mobile ul { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 2px; max-width: var(--shell); }
  .nav-mobile a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 4px; font-family: var(--display); font-size: 24px; font-weight: 600;
    color: var(--nav-link); border-bottom: 1px solid rgba(47, 184, 148, .16);
  }
  .nav-mobile a[aria-current="page"] { color: #fff; }
  .nav-mobile a::after { content: "\2192"; color: var(--accent); font-size: 20px; }
  .nav-mobile .mob-cta {
    margin-top: 20px; justify-content: center; padding: 16px;
    background: var(--accent); color: var(--ground); font-size: 17px; font-weight: 700;
    border-bottom: 0; font-family: var(--sans);
  }
  .nav-mobile .mob-cta::after { content: none; }
}

/* -------------------------------------------------------------- breadcrumbs */

.crumbs { border-bottom: 1px solid var(--line); background: var(--panel-alt); }
.crumbs ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  padding-block: 11px; font-size: 14px; color: var(--dim);
}
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-hi); }
.crumbs [aria-current="page"] { color: var(--text); }

/* --------------------------------------------------------------------- hero */
/* The signature opener: vertical teal grid lines plus a skewed panel on the right. */

.hero {
  position: relative; overflow: hidden;
  background: var(--ground); color: var(--text);
  padding-block: clamp(56px, 7vw, 96px) clamp(56px, 7vw, 88px);
}
.hero .stripes {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(47, 184, 148, .12) 0 1px, transparent 1px 8.3333%);
}
.hero .skew {
  position: absolute; right: 0; top: 0; bottom: 0; width: 28%;
  background: var(--panel-alt); transform: skewX(-8deg); transform-origin: top right;
  opacity: .7; pointer-events: none;
}
.hero .shell { position: relative; }
.hero h1 {
  font-size: clamp(40px, 6vw, 80px); font-weight: 800;
  line-height: 1; letter-spacing: -.04em; margin-top: 18px;
}
.hero .lede {
  max-width: 64ch; margin-top: 22px;
  font-size: clamp(18px, 1.5vw, 21px); line-height: 1.65; color: var(--body);
  text-wrap: pretty;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px;
  font-family: var(--display); font-size: 16px; font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}
.btn-primary { background: var(--accent); color: var(--ground); }
.btn-primary:hover { background: var(--accent-hi); color: var(--ground); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(238, 244, 244, .3); color: var(--text); }
.btn-ghost:hover { background: rgba(47, 184, 148, .14); color: var(--text); }

/* -------------------------------------------------------------------- bands */

.band { padding-block: clamp(56px, 7vw, 88px); }
.band-alt { background: var(--panel-alt); }
.band-cta { background: var(--panel-alt); }

.band h2 {
  font-size: clamp(30px, 3.8vw, 50px); font-weight: 800;
  line-height: 1.06; letter-spacing: -.035em; margin-top: 14px;
}
.band .intro {
  max-width: 68ch; margin-top: 16px;
  font-size: clamp(17px, 1.4vw, 20px); line-height: 1.7; color: var(--body);
  text-wrap: pretty;
}

/* -------------------------------------------------------------------- prose */

.prose { max-width: 72ch; }
.prose h2 {
  font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.03em;
  line-height: 1.08; margin-top: 52px; padding-top: 18px; border-top: 2px solid var(--accent);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 21px; font-weight: 700; letter-spacing: -.018em; line-height: 1.28;
  margin-top: 36px; color: var(--text);
}
.prose p { margin-top: 16px; }
.prose > p:first-child { margin-top: 0; }
.prose ul, .prose ol { margin-top: 16px; padding-left: 0; list-style: none; }
.prose ol { counter-reset: pli; }
.prose li { position: relative; padding-left: 22px; margin-top: 11px; }
.prose ul > li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 7px; height: 7px; background: var(--accent);
}
.prose ol > li { counter-increment: pli; }
.prose ol > li::before {
  content: counter(pli); position: absolute; left: 0; top: 0;
  font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--accent);
}
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote {
  margin: 24px 0 0; padding: 16px 20px;
  border-left: 3px solid var(--accent-soft); background: rgba(143, 224, 200, .055);
}
.prose blockquote p:first-child { margin-top: 0; }

.note {
  margin-top: 24px; padding: 18px 20px;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  font-size: 15.5px; color: var(--muted);
}
.note strong { color: var(--accent-soft); }

/* -------------------------------------------------------------------- cards */

.grid { display: grid; gap: 18px; margin-top: 34px; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: clamp(20px, 2vw, 28px);
  background: var(--panel-alt); border: 1px solid var(--line); border-top: 5px solid var(--accent);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-color .3s ease;
}
.card-link:hover {
  transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0, 0, 0, .42);
  border-color: var(--accent-hi);
}
.card h3 {
  font-family: var(--display); font-size: clamp(20px, 2vw, 25px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.1; color: var(--text);
}
.card p { font-size: 15.5px; line-height: 1.62; color: var(--body); }
.card .tag {
  font-family: var(--display); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}
.card-meta { font-size: 14px !important; color: var(--dim) !important; margin-top: auto; }
.card-go { margin-top: auto; color: var(--accent); font-size: 18px; }
.card-link:hover .card-go { color: var(--accent-hi); }

/* -------------------------------------------------------------------- facts */

.facts {
  display: grid; gap: 1px; margin-top: 8px;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  background: var(--line); border: 1px solid var(--line);
}
.facts > div { background: var(--panel-alt); padding: 20px 22px; }
.facts dt {
  font-family: var(--display); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}
.facts dd { margin: 8px 0 0; font-size: 16px; color: var(--text); line-height: 1.5; }

/* -------------------------------------------------------------------- table */

.tbl-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 580px; font-size: 15.5px; }
caption { text-align: left; padding: 0 0 10px; font-size: 14px; color: var(--dim); }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  background: var(--panel);
  font-family: var(--display); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
tbody th { color: var(--text); font-weight: 600; font-family: var(--sans); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(16, 30, 36, .4); }

/* ----------------------------------------------------------------- q and a */

.qa-list { display: grid; gap: 1px; margin-top: 32px; background: var(--line); border: 1px solid var(--line); }
.qa { background: var(--panel-alt); padding: 22px 24px; }
.qa h3 { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.qa p { margin-top: 10px; font-size: 15.5px; line-height: 1.66; color: var(--body); max-width: 72ch; }

/* ------------------------------------------------------------------- links */

.links { list-style: none; padding: 0; margin-top: 30px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.links a { display: block; padding: 18px 22px; background: var(--panel-alt); }
.links a:hover { background: var(--panel); }
.links strong { display: block; font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--text); }
.links a:hover strong { color: var(--accent-hi); }
.links span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }

/* ------------------------------------------------------------------- media */

figure { margin: 28px 0 0; }
figure img { display: block; border: 1px solid var(--line); }
figcaption { margin-top: 10px; font-size: 14px; color: var(--dim); }

/* ------------------------------------------------- certified platform strip */
/* Copied from public/about/index.html so it reads identically. */

.cert-band { background: var(--ground); padding-block: clamp(40px, 5vw, 64px); }
.cert-strip {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(18px, 3vw, 40px); margin-top: clamp(30px, 3.6vw, 44px);
  padding: 22px clamp(18px, 2.4vw, 30px);
  background: var(--panel-alt); border: 1px solid var(--line);
}
.cert-strip .cert-slot { display: block; width: 100px; height: 34px; flex: 0 0 auto; }
.cert-strip img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Solid-black marks need lightening on the dark strip. */
.cert-strip img.is-mono { filter: brightness(0) invert(1); opacity: .9; }

/* ------------------------------------------------------------------ footer */
/* Mirrors public/SiteFooter.dc.html. */

.site-foot {
  background: var(--foot); color: var(--nav-link);
  border-top: 4px solid var(--accent);
}
.foot-grid {
  display: grid; gap: 48px 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  padding-block: 72px 40px;
}
.foot-id .brand { margin-bottom: 20px; }
.foot-id p { margin: 0; font-size: 17px; line-height: 1.65; max-width: 320px; color: var(--dim); }
.foot-id .nap { margin-top: 18px; font-size: 16px; line-height: 1.8; }
.foot-id .nap a { color: var(--body); }
.foot-id .nap a:hover { color: #fff; }
.foot-id .nap span { color: var(--dim); }

.site-foot h2 {
  margin: 0 0 18px; font-family: var(--display); font-size: 14px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.site-foot ul a { font-size: 17px; color: var(--body); }
.site-foot ul a:hover { color: #fff; }

.foot-cta {
  margin-top: 6px; display: inline-flex; align-items: center; gap: 10px; align-self: start;
  padding: 13px 20px; background: var(--accent); color: var(--ground) !important;
  font-size: 16px; font-weight: 700;
  transition: background .18s ease, transform .18s ease;
}
.foot-cta:hover { background: var(--accent-hi); color: var(--ground) !important; transform: translateY(-2px); }

.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px; padding-block: 26px 44px;
  border-top: 1px solid rgba(47, 184, 148, .18);
}
.foot-base p { margin: 0; font-size: 15px; color: var(--muted); }
.foot-base div { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.foot-base a { font-size: 15px; color: #8FA6A3; }
.foot-base a:hover { color: #fff; }
.foot-base span { font-size: 15px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
