/* ===================================================================
   OHS Trust Centre - shared styles
   Visual source of truth: ai-oversight/index.html (V3)
   This file is the V3 stylesheet, extracted from the approved page.
   =================================================================== */

:root {
  --teal-50:  #E1F5EE;
  --teal-100: #9FE1CB;
  --teal-200: #5DCAA5;
  --teal-400: #1D9E75;
  --teal-600: #0F6E56;
  --teal-800: #085041;
  --teal-900: #053930;

  --ink-900: #0E1513;
  --ink-700: #2A3633;
  --ink-500: #5C6B66;
  --ink-300: #94A29D;
  --ink-200: #C6CFCB;
  --ink-100: #E6ECEA;
  --ink-50:  #F4F7F6;
  --paper:   #FFFFFF;
  --canvas:  #FBFCFC;

  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", Consolas, "Liberation Mono", monospace;
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink-900); font-family: var(--ui); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ===== NAV ===== */
.nav { border-bottom: 1px solid var(--ink-100); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { width: 28px; height: 28px; border-radius: 7px; background: var(--teal-400); position: relative; }
.brand .mark::after { content: ""; position: absolute; inset: 7px; border-radius: 3px; background: var(--paper); }
.brand .wordmark { font-weight: 700; letter-spacing: 2.5px; font-size: 15px; color: var(--ink-900); white-space: nowrap; }
.brand .wordmark .flow { color: var(--teal-600); font-weight: 600; letter-spacing: 0.5px; }
.brand .context { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--ink-300); padding-left: 14px; margin-left: 4px; border-left: 1px solid var(--ink-100); }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 15px; color: var(--ink-700); font-weight: 500; }
.nav-links a { color: var(--ink-700); text-decoration: none; padding: 4px 0; position: relative; }
.nav-links a:hover { color: var(--teal-600); }
.nav-links a.current { color: var(--ink-900); font-weight: 600; }
.nav-links a.current::after { content: ""; position: absolute; left: 0; right: 0; bottom: -19px; height: 2px; background: var(--teal-400); }

/* ===== HERO ===== */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--ink-100); }
.hero .eyebrow { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--teal-600); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 8px; }
.hero .eyebrow::before { content: ""; width: 18px; height: 1.5px; background: var(--teal-400); display: inline-block; }
.hero h1 { font-size: 60px; line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 24px; max-width: 16ch; }
.hero h1 .accent { color: var(--teal-600); }
.hero .lead { font-size: 19px; line-height: 1.55; color: var(--ink-500); max-width: 56ch; margin: 0 0 32px; }
.hero-meta { margin-top: 8px; display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; color: var(--ink-500); }
.hero-meta .item { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-400); }

/* ===== THESIS STRIP (deep teal, not black) ===== */
.thesis { background: var(--teal-800); color: #fff; padding: 64px 0; }
.thesis .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.thesis .eyebrow { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--teal-200); margin-bottom: 14px; }
.thesis .statement { font-size: 26px; line-height: 1.35; color: #fff; font-weight: 500; letter-spacing: -0.012em; margin: 0; }
.thesis .statement strong { color: var(--teal-200); font-weight: 600; }
.thesis .rhs p { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,0.82); margin: 0 0 14px; }
.thesis .rhs p:last-child { margin-bottom: 0; }
.thesis .rhs p strong { color: #fff; font-weight: 600; }

/* ===== SECTION SHELL ===== */
section.block { padding: 96px 0; border-bottom: 1px solid var(--ink-100); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .eyebrow { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--teal-600); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 8px; }
.section-head .eyebrow::before { content: ""; width: 18px; height: 1.5px; background: var(--teal-400); display: inline-block; }
.section-head h2 { font-size: 38px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 16px; }
.section-head .sub { font-size: 17px; line-height: 1.6; color: var(--ink-500); margin: 0; max-width: 60ch; }

/* ===== PRINCIPLES (horizontal rows, paper, structural) ===== */
.principles { display: flex; flex-direction: column; }
.principle {
  display: grid;
  grid-template-columns: 64px 1fr 1.6fr;
  gap: 40px;
  padding: 36px 0 38px;
  border-top: 1px solid var(--ink-100);
  align-items: start;
}
.principle:first-child { border-top: none; padding-top: 6px; }
.principle .num { font-family: var(--mono); font-size: 12px; color: var(--ink-300); letter-spacing: 0.08em; font-weight: 700; padding-top: 6px; }
.principle .lhs { display: flex; align-items: flex-start; gap: 16px; }
.principle .lhs .icon { width: 36px; height: 36px; border-radius: 9px; background: var(--teal-50); display: grid; place-items: center; color: var(--teal-600); flex-shrink: 0; margin-top: -2px; }
.principle .lhs .icon svg { width: 18px; height: 18px; }
.principle h3 { font-size: 22px; letter-spacing: -0.015em; font-weight: 700; margin: 0; line-height: 1.25; }
.principle .body p { font-size: 15px; line-height: 1.65; color: var(--ink-700); margin: 0 0 12px; max-width: 62ch; }
.principle .body p:last-child { margin-bottom: 0; }
.principle .body p strong { color: var(--ink-900); font-weight: 600; }
.principle .body .moat { display: inline-block; background: var(--teal-50); color: var(--teal-800); border: 1px solid var(--teal-100); padding: 8px 14px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; margin-top: 6px; }

/* ===== ANCHOR - Principle 05 elevated, deep teal band ===== */
.anchor { background: var(--teal-900); color: #fff; padding: 80px 0; }
.anchor .container { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.anchor .lhs { }
.anchor .lhs .eyebrow { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--teal-200); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 8px; }
.anchor .lhs .eyebrow::before { content: ""; width: 18px; height: 1.5px; background: var(--teal-200); display: inline-block; }
.anchor .lhs .num { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.1em; font-weight: 700; margin-bottom: 12px; }
.anchor h2 { font-size: 34px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; color: #fff; margin: 0; max-width: 14ch; }
.anchor .rhs p { font-size: 16.5px; line-height: 1.65; color: rgba(255,255,255,0.82); margin: 0 0 18px; }
.anchor .rhs p:last-child { margin-bottom: 0; }
.anchor .rhs p strong { color: #fff; font-weight: 600; }
.anchor .closing-line { background: rgba(93,202,165,0.1); border-left: 3px solid var(--teal-200); padding: 18px 22px; margin-top: 24px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.anchor .closing-line p { font-size: 17px; line-height: 1.5; color: #fff; font-weight: 500; margin: 0; }

/* ===== IN PRACTICE - trust-grid pattern ===== */
.in-practice { background: var(--canvas); }
.in-practice .commitments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 8px; }
.commitment { background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--r); padding: 24px 24px 22px; }
.commitment .icon { width: 32px; height: 32px; border-radius: 8px; background: var(--teal-50); display: grid; place-items: center; color: var(--teal-600); margin-bottom: 16px; }
.commitment .icon svg { width: 16px; height: 16px; }
.commitment h4 { font-size: 16px; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.005em; line-height: 1.35; }
.commitment p { font-size: 14px; color: var(--ink-500); margin: 0; line-height: 1.6; }
.commitment .top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

/* ===== VENDOR TABLE ===== */
.vendor-section { background: var(--canvas); }
.vendor-table-wrap { background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--r); overflow: hidden; }
.vendor-head { display: grid; grid-template-columns: 1.3fr 1.4fr 2fr 1.4fr 1.6fr; padding: 16px 24px; background: var(--ink-50); font-size: 11px; color: var(--ink-500); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; border-bottom: 1px solid var(--ink-100); }
.vendor-row { display: grid; grid-template-columns: 1.3fr 1.4fr 2fr 1.4fr 1.6fr; padding: 20px 24px; border-bottom: 1px solid var(--ink-100); align-items: center; gap: 20px; }
.vendor-row:last-child { border-bottom: none; }
.vendor-row .name { font-size: 15.5px; font-weight: 700; letter-spacing: -0.005em; color: var(--ink-900); }
.vendor-row .role { font-size: 13.5px; color: var(--ink-700); line-height: 1.45; }
.vendor-row .use { font-size: 13.5px; color: var(--ink-500); line-height: 1.5; }
.vendor-row .badge-slot { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.vendor-row .all-certs { font-size: 12.5px; color: var(--ink-500); line-height: 1.45; }
.cert-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: var(--r-sm); font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; line-height: 1; white-space: nowrap; }
.cert-badge.soc { background: var(--teal-50); color: var(--teal-800); border: 1px solid var(--teal-100); }
.cert-badge.iso { background: #EEF2FF; color: #312E81; border: 1px solid #C7D2FE; }
.cert-badge.pci { background: #FEF3C7; color: #78350F; border: 1px solid #FDE68A; }

/* ===== POSTURE TABLE ===== */
.posture-section { background: var(--canvas); }
.posture-table-wrap { background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--r); overflow: hidden; }
.posture-head { display: grid; grid-template-columns: 1.4fr 2fr 1fr; padding: 16px 24px; background: var(--ink-50); font-size: 11px; color: var(--ink-500); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; border-bottom: 1px solid var(--ink-100); }
.posture-row { display: grid; grid-template-columns: 1.4fr 2fr 1fr; padding: 22px 24px; border-bottom: 1px solid var(--ink-100); align-items: start; gap: 24px; }
.posture-row:last-child { border-bottom: none; }
.posture-row .area { font-size: 15px; font-weight: 700; letter-spacing: -0.005em; color: var(--ink-900); line-height: 1.35; }
.posture-row .posture { font-size: 14px; color: var(--ink-700); line-height: 1.6; }
.posture-row .status { display: flex; justify-content: flex-end; align-items: flex-start; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; line-height: 1; white-space: nowrap; font-family: var(--ui); }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.status-pill.in-place { background: var(--teal-50); color: var(--teal-800); border: 1px solid var(--teal-100); }
.status-pill.in-place::before { background: var(--teal-400); }
.status-pill.documented { background: #EEF2FF; color: #312E81; border: 1px solid #C7D2FE; }
.status-pill.documented::before { background: #6366F1; }
.status-pill.in-prep { background: #FEF3C7; color: #78350F; border: 1px solid #FDE68A; }
.status-pill.in-prep::before { background: #D97706; }

/* ===== PAGE META ===== */
.meta-band { padding: 28px 0; border-bottom: 1px solid var(--ink-100); background: var(--paper); }
.meta-band .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--ink-500); }
.meta-band .ver { font-family: var(--mono); color: var(--ink-300); letter-spacing: 0.02em; }
.meta-band a { color: var(--teal-600); text-decoration: none; font-weight: 600; }
.meta-band a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
footer { background: var(--ink-900); color: rgba(255,255,255,0.7); padding: 56px 0 28px; font-size: 13px; }
footer .row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); }
footer h5 { color: #fff; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin: 0 0 14px; }
footer .links { list-style: none; padding: 0; margin: 0; }
footer .links li { padding: 4px 0; font-size: 14px; }
footer .links a { color: rgba(255,255,255,0.65); text-decoration: none; }
footer .links a:hover { color: #fff; }
footer .links a.current { color: #fff; font-weight: 600; }
footer .colophon { padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; font-size: 11.5px; color: rgba(255,255,255,0.4); flex-wrap: wrap; }
footer .brand .wordmark { color: #fff; }
footer .blurb { font-size: 14px; color: rgba(255,255,255,0.6); margin: 12px 0 0; max-width: 32ch; line-height: 1.55; }

/* responsive */
@media (max-width: 1000px) {
  .vendor-head { display: none; }
  .vendor-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 20px; }
  .vendor-row .name { font-size: 16px; margin-bottom: 6px; }
  .vendor-row .role::before { content: "Role: "; font-weight: 600; color: var(--ink-700); }
  .vendor-row .use::before { content: "Use: "; font-weight: 600; color: var(--ink-700); }
  .vendor-row .badge-slot { margin-top: 8px; }
}
@media (max-width: 900px) {
  .posture-head { display: none; }
  .posture-row { grid-template-columns: 1fr; gap: 10px; padding: 22px 20px; }
  .posture-row .area { font-size: 15.5px; }
  .posture-row .status { justify-content: flex-start; margin-top: 4px; }
}
@media (max-width: 900px) {
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 40px; }
  .hero .lead { font-size: 16.5px; }
  .thesis { padding: 48px 0; }
  .thesis .container { grid-template-columns: 1fr; gap: 28px; }
  .thesis .statement { font-size: 21px; }
  section.block { padding: 64px 0; }
  .section-head h2 { font-size: 28px; }
  .principle { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .principle .num { padding-top: 0; }
  .anchor { padding: 56px 0; }
  .anchor .container { grid-template-columns: 1fr; gap: 24px; }
  .anchor h2 { font-size: 28px; max-width: none; }
  .in-practice .commitments { grid-template-columns: 1fr; }
  footer .row { grid-template-columns: 1fr 1fr; }
  .brand .context { display: none; }
  .nav-links { gap: 18px; }
}
@media (max-width: 720px) {
  .nav-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 0 0; }
  .nav-links { width: 100%; padding-bottom: 12px; gap: 16px; font-size: 13.5px; flex-wrap: wrap; }
  .nav-links a.current::after { bottom: -15px; }
}

/* ===== HOMEPAGE: multi-paragraph hero lead ===== */
.hero .lead p { margin: 0 0 14px; }
.hero .lead p:last-child { margin-bottom: 0; }

/* ===== HOMEPAGE: hero H1 with controlled line breaks ===== */
.hero h1:has(br.desktop-break) { max-width: 26ch; }
@media (max-width: 720px) {
  br.desktop-break { display: none; }
}

/* ===== HOMEPAGE: FEATURED CARD (Compliance) ===== */
.featured-card { background: var(--teal-900); color: #fff; border-radius: var(--r-lg); padding: 44px 48px; margin-bottom: 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; text-decoration: none; position: relative; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.featured-card::before { content: ""; position: absolute; right: -80px; top: -100px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle at center, rgba(93,202,165,0.18), rgba(93,202,165,0) 70%); pointer-events: none; }
.featured-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -20px rgba(8,80,65,0.28); }
.featured-card .icon-block { width: 72px; height: 72px; border-radius: var(--r); background: rgba(93,202,165,0.14); border: 1px solid rgba(93,202,165,0.28); display: grid; place-items: center; flex-shrink: 0; position: relative; z-index: 1; }
.featured-card .icon-block svg { width: 36px; height: 36px; stroke: var(--teal-200); fill: none; stroke-width: 1.5; }
.featured-card .content { position: relative; z-index: 1; }
.featured-card .label { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-200); font-weight: 700; margin-bottom: 10px; }
.featured-card h3 { font-size: 26px; margin: 0 0 10px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; color: #fff; }
.featured-card p { font-size: 15.5px; color: rgba(255,255,255,0.78); margin: 0; line-height: 1.55; max-width: 70ch; }
.featured-card .cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--r-sm); background: var(--teal-200); color: var(--teal-900); font-size: 13.5px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; position: relative; z-index: 1; transition: background 0.2s ease; }
.featured-card:hover .cta { background: #fff; }
.featured-card .cta svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ===== HOMEPAGE: SUPPORTING CARDS ===== */
.supporting { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.supporting .card { background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--r); padding: 28px 26px 26px; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.supporting .card:hover { border-color: var(--teal-100); box-shadow: 0 12px 32px -20px rgba(8,80,65,0.16); transform: translateY(-2px); }
.supporting .card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-50); display: grid; place-items: center; color: var(--teal-600); margin-bottom: 18px; }
.supporting .card .icon svg { width: 20px; height: 20px; }
.supporting .card .label { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-600); font-weight: 700; margin-bottom: 8px; }
.supporting .card h3 { font-size: 17px; margin: 0 0 10px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink-900); }
.supporting .card p { font-size: 13.5px; color: var(--ink-500); margin: 0 0 16px; line-height: 1.55; flex: 1; }
.supporting .card .cta { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--teal-600); letter-spacing: 0.01em; }
.supporting .card .cta svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ===== HOMEPAGE: responsive ===== */
@media (max-width: 1000px) {
  .supporting { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: auto 1fr; gap: 24px; padding: 36px 32px; }
  .featured-card .cta { grid-column: 1 / -1; justify-self: flex-start; }
}
@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; padding: 32px 26px; gap: 20px; }
  .featured-card .icon-block { width: 60px; height: 60px; }
  .featured-card h3 { font-size: 22px; }
  .featured-card .cta { justify-self: flex-start; }
  .supporting { grid-template-columns: 1fr; }
}
