/* ============================================================
   AtlasOA Trust Center stylesheet
   ------------------------------------------------------------
   What: shared styles for every page under /trust/.
   Why: one stylesheet keeps all Trust Center pages identical
   and lets enterprise-refresh.css (loaded after this file)
   apply the site-wide light/dark theme. Colors come from the
   --eo-* tokens that enterprise-refresh.css defines for both
   themes, so nothing here needs its own dark-mode block.
   Base nav/header/card rules mirror resources.html so the
   override layer recognizes and restyles them the same way.
   ============================================================ */

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

:root {
  --navy: #0B1120;
  --navy-deep: #040b19;
  --gold: #C8A84E;
  --orange: #E8792B;
  --orange-light: #FF9A4D;
  --green: #2D9F5D;
  --teal: #2EC4B6;
  --blue: #4A9EFF;
  --text: #333333;
  --text-muted: #666666;
  --text-dim: #888888;
  --card-bg: #FFFFFF;
  --card-border: #E0E0E0;
}

html, body { max-width: 100vw; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #FFFFFF;
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}
main { position: relative; z-index: 1; }
main:focus { outline: none; } /* focus target of the skip link; no visible box */

/* Skip link: first focusable element on every page (keyboard users) */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--eo-red, #c8102e); color: #fff !important;
  padding: 8px 14px; border-radius: 6px; z-index: 1000; font-weight: 700;
}
.skip-link:focus { left: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--eo-blue, #2f6fed); outline-offset: 2px;
}

/* ---------- Navigation (same structure as resources.html) ---------- */
nav {
  position: sticky; top: 0; z-index: 100;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 800; font-size: 18px;
}
.nav-logo img { height: 30px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-cta { padding: 9px 18px; border-radius: 8px; font-weight: 700; }
.mobile-menu-btn {
  display: none; background: none; border: none;
  font-size: 22px; cursor: pointer; color: inherit;
}
@media (max-width: 900px) {
  .mobile-menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    padding: 20px; gap: 16px;
    background: var(--eo-paper, #fff);
    border-bottom: 1px solid var(--eo-line, #dce3ee);
  }
  .nav-links.open { display: flex; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  max-width: 1100px; margin: 0 auto; padding: 18px 28px 0;
  font-size: 13px; color: var(--eo-muted, #667085);
}
.breadcrumb a { text-decoration: none; }
.breadcrumb span[aria-current] { color: var(--eo-ink, #101828); font-weight: 600; }

/* ---------- Page header ---------- */
.page-header { max-width: 1100px; margin: 0 auto; padding: 36px 28px 20px; }
.page-header.center { text-align: center; }
.eyebrow {
  display: inline-block;
  border: 1px solid var(--eo-line, #dce3ee);
  color: var(--eo-red, #c8102e);
  padding: 5px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  margin-bottom: 16px;
}
h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 900; line-height: 1.12; margin-bottom: 14px; }
.page-sub { max-width: 820px; font-size: clamp(15px, 1.7vw, 17px); line-height: 1.7; }
.page-header.center .page-sub { margin: 0 auto; }
.updated { margin-top: 12px; font-size: 12.5px; color: var(--eo-quiet, #8a96a8); }

/* ---------- Sections and prose ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: 22px 28px; }
.prose { max-width: 880px; }
.section h2 { font-size: clamp(21px, 2.4vw, 26px); font-weight: 800; margin: 10px 0 10px; scroll-margin-top: 90px; }
.section h3 { font-size: 17px; font-weight: 800; margin: 20px 0 8px; scroll-margin-top: 90px; }
.section p { margin-bottom: 12px; font-size: 15px; }
.section ul, .section ol { margin: 0 0 14px 22px; font-size: 15px; }
.section li { margin-bottom: 6px; }
.section-desc { font-size: 14.5px; max-width: 820px; margin-bottom: 20px; }
code {
  font-family: 'Cascadia Mono', Consolas, 'Courier New', monospace;
  font-size: 0.9em; padding: 1px 6px; border-radius: 4px;
  background: var(--eo-line-soft, #edf1f6); color: var(--eo-ink, #101828);
}

/* ---------- On-page table of contents ---------- */
.toc {
  border: 1px solid var(--eo-line, #dce3ee); border-radius: 12px;
  padding: 16px 20px; margin: 8px 0 18px;
}
.toc strong { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.toc ol { margin: 0 0 0 20px; columns: 2; column-gap: 32px; font-size: 14px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ---------- Five principles strip ---------- */
.principles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px; margin: 8px 0 6px !important; list-style: none; padding: 0;
}
.principles li {
  border: 1px solid var(--eo-line, #dce3ee); border-top: 4px solid var(--eo-red, #c8102e);
  border-radius: 10px; padding: 14px 16px; margin: 0;
  background: var(--eo-paper, #fff); font-size: 14px; line-height: 1.5;
}
.principles li b { display: block; font-size: 15px; margin-bottom: 4px; color: var(--eo-ink-strong, #07111f); }

/* ---------- Card grid (reuses resource-card so the theme layer styles it) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.resource-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--card-border); border-radius: 12px;
  padding: 18px 20px; text-decoration: none; color: inherit;
}
.card-meta {
  font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--eo-red, #c8102e); margin-bottom: 8px;
}
.card-title { font-size: 16px; font-weight: 800; line-height: 1.35; margin-bottom: 6px; }
.card-desc { font-size: 13.5px; line-height: 1.6; flex-grow: 1; margin-bottom: 12px; }
.card-cta { font-size: 12.5px; font-weight: 700; color: var(--eo-red, #c8102e); }

/* ---------- Numbered evaluation steps ---------- */
.steps { list-style: none; margin: 8px 0 16px !important; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step; position: relative;
  border: 1px solid var(--eo-line, #dce3ee); border-radius: 12px;
  padding: 16px 18px 14px 64px; margin-bottom: 10px !important;
  background: var(--eo-paper, #fff);
}
.steps > li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--eo-red, #c8102e); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.steps > li b { display: block; font-size: 16px; margin-bottom: 2px; color: var(--eo-ink-strong, #07111f); }

/* ---------- Tables and matrices ---------- */
.table-wrap { overflow-x: auto; margin: 6px 0 18px; border-radius: 10px; }
table.matrix { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
table.matrix th, table.matrix td {
  border: 1px solid var(--eo-line, #dce3ee); padding: 9px 11px;
  text-align: left; vertical-align: top;
}
table.matrix th { font-size: 12.5px; letter-spacing: 0.3px; }
table.matrix caption { text-align: left; font-size: 13px; padding: 0 0 8px; color: var(--eo-muted, #667085); }
/* enterprise-refresh.css turns every table into a single nowrap line under 720px.
   Trust Center tables sit in their own scroll wrapper, so restore normal
   wrapping. This selector (two classes) outranks the shared rule. */
.table-wrap table.matrix {
  display: table !important; white-space: normal !important;
  width: 100% !important; max-width: none !important; overflow: visible !important;
}
/* Two-column tables (question/answer, item/format) fit the screen instead of scrolling sideways */
table.matrix.two { min-width: 0; }
table.matrix.two td:first-child, table.matrix.two th:first-child { width: 38%; }
@media (max-width: 560px) {
  table.matrix.two th, table.matrix.two td { padding: 8px; font-size: 13.5px; }
}

/* ---------- Status labels ---------- */
.status {
  display: inline-block; white-space: nowrap;
  font-size: 11px; font-weight: 800; letter-spacing: 0.4px;
  padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor;
}
.st-available { color: #107569; }
.st-tested    { color: #1d4ed8; }
.st-limited   { color: #b54708; }
.st-file      { color: #6941c6; }
.st-planned   { color: #667085; }
.st-no        { color: #b42318; }
html[data-theme="dark"] .st-available { color: #5eead4; }
html[data-theme="dark"] .st-tested    { color: #93c5fd; }
html[data-theme="dark"] .st-limited   { color: #ff9a4d; }
html[data-theme="dark"] .st-file      { color: #c4b5fd; }
html[data-theme="dark"] .st-planned   { color: #cbd5e1; }
html[data-theme="dark"] .st-no        { color: #fca5a5; }

/* ---------- Callouts ---------- */
.callout {
  border: 1px solid var(--eo-line, #dce3ee); border-left: 4px solid var(--eo-red, #c8102e);
  border-radius: 10px; padding: 14px 18px; margin: 8px 0 18px;
  background: var(--eo-paper, #fff); font-size: 14.5px;
}
.callout.info { border-left-color: var(--eo-blue, #2f6fed); }
.callout.honest { border-left-color: var(--eo-gold, #b8943f); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Two-column responsibility layout ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 18px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.two-col > div {
  border: 1px solid var(--eo-line, #dce3ee); border-radius: 12px; padding: 16px 18px;
  background: var(--eo-paper, #fff);
}
.two-col h3 { margin-top: 0; }

/* ---------- Architecture diagram (inline SVG) ---------- */
.diagram { border: 1px solid var(--eo-line, #dce3ee); border-radius: 12px; padding: 14px; margin: 8px 0 18px; background: var(--eo-paper, #fff); overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 560px; height: auto; }
.diagram svg .box { fill: var(--eo-paper-soft, #fbfcfe); stroke: var(--eo-line, #dce3ee); stroke-width: 1.5; }
.diagram svg .zone { fill: none; stroke: var(--eo-red, #c8102e); stroke-width: 2; stroke-dasharray: 7 5; }
.diagram svg .zone-vendor { fill: none; stroke: var(--eo-muted, #667085); stroke-width: 1.5; stroke-dasharray: 4 4; }
.diagram svg text { fill: var(--eo-ink, #101828); font-family: Inter, sans-serif; font-size: 13px; }
.diagram svg text.small { font-size: 11px; fill: var(--eo-muted, #667085); }
.diagram svg text.label { font-weight: 800; fill: var(--eo-red, #c8102e); font-size: 12px; }
.diagram svg .arrow { stroke: var(--eo-ink, #101828); stroke-width: 1.5; fill: none; }
.diagram svg .arrow-opt { stroke: var(--eo-muted, #667085); stroke-width: 1.5; fill: none; stroke-dasharray: 5 4; }
.diagram svg .head { fill: var(--eo-ink, #101828); }
.diagram figcaption { font-size: 13px; color: var(--eo-muted, #667085); margin-top: 8px; }

/* ---------- FAQ-style details ---------- */
details { border: 1px solid var(--eo-line, #dce3ee); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; font-size: 15px; }
details[open] summary { margin-bottom: 8px; }

/* ---------- Related links row and CTA band ---------- */
.related { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }
.related a {
  border: 1px solid var(--eo-line, #dce3ee); border-radius: 999px; padding: 6px 14px;
  font-size: 13px; font-weight: 600; text-decoration: none;
}
.cta-band {
  max-width: 1100px; margin: 26px auto 0; padding: 24px 28px;
  border: 1px solid var(--eo-line, #dce3ee); border-radius: 14px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.cta-band p { margin: 0; font-size: 15px; max-width: 640px; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-primary, .btn-secondary {
  display: inline-block; padding: 11px 18px; border-radius: 8px;
  font-weight: 700; font-size: 14px; text-decoration: none;
}
@media (max-width: 560px) {
  .section, .page-header, .breadcrumb { padding-left: 16px; padding-right: 16px; }
  .cta-band { margin-left: 16px; margin-right: 16px; }
  .steps > li { padding-left: 56px; }
}

/* ---------- Footer (same as resources.html) ---------- */
footer { max-width: 1200px; margin: 60px auto 0; padding: 36px 28px; text-align: center; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 22px; margin-bottom: 16px; }
.footer-links a { text-decoration: none; font-size: 13px; font-weight: 600; }
.footer-copy { font-size: 12px; line-height: 1.7; }

/* ---------- Print: procurement teams print these pages ---------- */
@media print {
  nav, .mobile-menu-btn, .theme-toggle, .cta-band, .skip-link { display: none !important; }
  .table-wrap { overflow: visible; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; }
}
