/* ==========================================================
   Generative AI Policy Starter Kit — shared styles
   Colors and type follow the Claude Design landing page.
   ========================================================== */

:root {
  --blue: #00678f;
  --blue-dark: #01587a;
  --blue-line: #4e93ac;
  --blue-text: #e2eef3;
  --blue-muted: #bcd7e1;
  --blue-tint: #eef5f8;
  --orange: #a65d07;
  --ink: #1a1a1a;
  --ink-soft: #4d4d4d;
  --muted: #8a8a8a;
  --rule: #d6d6d6;
  --panel: #f2f2f2;
  --white: #ffffff;
  --gutter: clamp(20px, 4vw, 48px);
  --page-max: 1440px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Poppins, system-ui, sans-serif;
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 20;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header + navigation (all pages) ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--white);
}

.brand {
  display: flex; align-items: center; gap: 14px;
  padding: clamp(14px, 2.6vw, 20px) var(--gutter);
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand img { width: auto; height: 50px; flex: 0 0 auto; }
.brand-name { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.brand-sub { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.04em; margin-top: 2px; }

.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;
}

/* brand on the left, search on the right */
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-right: var(--gutter); }
.site-search { position: relative; flex: 0 1 320px; min-width: 0; }
.search-icon {
  position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; pointer-events: none;
  fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round;
}
.site-search input {
  -webkit-appearance: none; appearance: none; /* Safari otherwise ignores the padding and border on search fields */
  width: 100%; box-sizing: border-box; padding: 10px 14px 10px 42px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--white); border: 1px solid var(--rule); border-radius: 999px;
}
.site-search input::placeholder { color: var(--muted); }
.site-search input::-webkit-search-decoration { -webkit-appearance: none; }
.site-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 103, 143, 0.18); }
.search-results {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  width: min(480px, calc(100vw - 2 * var(--gutter))); max-height: min(70vh, 560px); overflow-y: auto;
  background: var(--white); border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 8px 28px rgba(0,0,0,.14);
}
.search-results ul { list-style: none; margin: 0; padding: 0 0 6px; }
.search-status { margin: 0; padding: 12px 18px 8px; font-size: 12px; color: var(--ink-soft); }
.search-result {
  display: block; padding: 10px 18px; color: var(--ink); text-decoration: none;
  border-top: 1px solid var(--rule);
}
.search-result:hover, .search-result.is-active { background: var(--blue-tint); }
.search-result-page { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }
.search-result-title { display: block; margin-top: 2px; font-size: 15px; font-weight: 600; color: var(--blue); }
.search-result-snippet { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.search-result mark { background: #fdeccf; color: inherit; padding: 0 1px; border-radius: 2px; }

.site-nav {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  padding: clamp(14px, 2.2vw, 21px) var(--gutter);
  background: var(--panel);
  font-size: clamp(14px, 1.5vw, 17px);
}
.site-nav a { color: var(--blue); text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--blue); }
.site-nav a[aria-current="page"] { font-weight: 600; border-bottom-color: var(--orange); }

/* ---------- Footer (all pages) ---------- */

.site-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px;
  padding: clamp(28px, 4vw, 40px) var(--gutter) clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--muted);
}
.site-footer strong { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.site-footer a { color: var(--muted); }

/* ---------- Landing page ---------- */

.hero {
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--rule);
}
.eyebrow { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.hero-grid { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px); align-items: flex-start; }
.hero-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 {
  font-size: clamp(34px, 6vw, 64px); line-height: 1.06; font-weight: 500; letter-spacing: -0.025em;
  margin: 0; padding-bottom: clamp(18px, 4vw, 54px); text-wrap: pretty;
}
.hero .lead { font-size: clamp(19px, 2.2vw, 30px); line-height: 1.35; margin: 0; letter-spacing: -0.015em; text-wrap: pretty; }
.hero .lead strong { font-weight: 600; }
.hero p { font-size: clamp(14px, 1.4vw, 19px); line-height: 1.55; margin: 0; letter-spacing: -0.015em; text-wrap: pretty; }
.hero-graphic { flex: 1 1 360px; min-width: 0; max-width: 700px; height: auto; display: block; }

.topics {
  padding: clamp(44px, 6vw, 72px) var(--gutter);
  background: var(--blue); color: var(--white);
}
.topics-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px 32px; margin-bottom: 40px; }
.topics h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.topics-head span { font-size: 13px; color: #cfe2ea; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 1px; }
.topic-card {
  display: flex; flex-direction: column; gap: 14px; min-height: 230px;
  padding: clamp(22px, 2.6vw, 30px) clamp(20px, 2.4vw, 28px) clamp(26px, 3vw, 34px);
  border: 1px solid var(--blue-line);
  color: var(--white); text-decoration: none;
  transition: background 0.15s;
}
.topic-card:hover, .topic-card:focus-visible { background: var(--blue-dark); color: var(--white); }
.topic-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.topic-num { font-size: 11px; color: var(--blue-muted); letter-spacing: 0.08em; }
.topic-card img { width: clamp(56px, 7vw, 86px); height: clamp(56px, 7vw, 86px); }
.topic-card h3 { font-size: clamp(20px, 2.2vw, 24px); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.topic-card p { font-size: 14px; line-height: 1.6; color: var(--blue-text); margin: 0; text-wrap: pretty; }
.topic-cta {
  margin-top: auto; align-self: flex-start; padding-bottom: 3px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  border-bottom: 1px solid var(--white);
}
.topics-foot { font-size: 15px; line-height: 1.65; color: var(--blue-text); margin: 32px 0 0; max-width: 70ch; }

.about { padding: clamp(44px, 6vw, 72px) var(--gutter); }
.about h2 { font-size: clamp(24px, 2.8vw, 28px); font-weight: 500; letter-spacing: -0.015em; margin: 0 0 34px; }
.about-row { display: flex; gap: 48px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.about p { flex: 1 1 420px; min-width: 0; font-size: clamp(15px, 1.4vw, 16px); line-height: 1.65; color: var(--ink-soft); margin: 0; }

.button-dark {
  flex: 0 0 auto; margin-left: auto;
  background: #231f20; color: var(--white); border: 1px solid #231f20;
  font-size: clamp(16px, 1.8vw, 20px); font-weight: 500;
  padding: clamp(15px, 1.9vw, 21px) clamp(24px, 3.4vw, 39px);
  text-decoration: none;
}
.button-dark:hover { background: #3d3739; border-color: #3d3739; color: var(--white); }

/* ---------- Section pages ---------- */

.section-hero {
  background: var(--blue); color: var(--white);
  padding: clamp(36px, 6vw, 72px) var(--gutter) clamp(36px, 5vw, 60px);
}
/* lines up with the centered .section-layout below at every width */
.section-hero-inner {
  display: flex; gap: clamp(24px, 5vw, 64px); align-items: flex-start;
  max-width: calc(var(--page-max) - 2 * var(--gutter)); margin: 0 auto;
}
.section-hero img { width: clamp(72px, 10vw, 120px); height: auto; flex: 0 0 auto; }
.section-hero .topic-num { display: block; margin-bottom: 10px; }
.section-hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 18px; }
.section-hero .summary { font-size: clamp(17px, 2vw, 24px); line-height: 1.4; color: var(--white); margin: 0; max-width: 46ch; text-wrap: pretty; }

/* contents list + article grow with the window up to --page-max, then center with even space either side */
.section-layout {
  display: grid; grid-template-columns: clamp(220px, 16vw, 260px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px);
  padding: clamp(36px, 5vw, 64px) var(--gutter);
  max-width: var(--page-max); margin: 0 auto;
}
.toc { position: sticky; top: 180px; align-self: start; font-size: 14px; }
.toc h2 { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.toc li a { display: block; padding: 6px 0 6px 16px; color: var(--ink-soft); text-decoration: none; line-height: 1.4; }
.toc li a:hover { color: var(--blue); }
.toc li.sub a { padding-left: 30px; font-size: 13px; }

/* fills its column; text steps up from 16px to 18px on large screens so long lines stay readable */
.prose { font-size: clamp(16px, 0.25vw + 13px, 18px); line-height: 1.7; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-size: clamp(24px, 2.8vw, 30px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2;
  margin: 2.4em 0 0.6em; padding-top: 0.8em; border-top: 1px solid var(--rule);
}
.prose h3 { font-size: 19px; font-weight: 600; margin: 1.8em 0 0.4em; }
/* anything a link or search result can jump to clears the sticky header */
.prose [id] { scroll-margin-top: 180px; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--blue); }
.prose strong { font-weight: 600; }

/* Key takeaways: faint orange box, dark orange accents and table headers */
/* faint blue callout for a short list that deserves emphasis */
.prose .callout { background: var(--blue-tint); border-radius: 10px; padding: 18px 24px 18px 22px; margin: 1em 0 1.6em; }
.prose .callout ul { margin: 0; }
.prose .callout li:last-child { margin-bottom: 0; }

.key-takeaways {
  background: #fdf3e7;
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: 2.4em;
}
.prose .key-takeaways li::marker { color: var(--orange); }
.prose .key-takeaways th { background: var(--orange); color: var(--white); }
.prose .key-takeaways td { border-bottom-color: #ecd5bb; }
/* photo that sits directly on top of a Key takeaways box */
.prose .takeaways-photo { margin: 0 0 24px; }
.prose .takeaways-photo img {
  display: block; width: 100%; max-width: none; margin: 0; height: clamp(180px, 26vw, 300px);
  object-fit: cover; object-position: 50% 50%;
}
/* per-page crops, so the subject of each photo stays in the strip */
.prose .takeaways-photo img.photo-governance { object-position: 50% 50%; }
.prose .takeaways-photo img.photo-secure-use { object-position: 20% 50%; }
.prose .takeaways-photo img.photo-apprenticeship { object-position: 50% 32%; }
.prose .takeaways-photo img.photo-qaqc { object-position: 50% 22%; }
.prose .takeaways-photo img.photo-copyright { object-position: 50% 47%; }
.prose .takeaways-photo img.photo-disclosure { object-position: 50% 35%; }
.key-takeaways .label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.key-takeaways > :last-child { margin-bottom: 0; }

/* case studies: 20% tint of #e66b19 */
.case-study {
  border-radius: 10px;
  padding: clamp(20px, 3vw, 32px);
  margin: 1.4em 0 2em;
  background: #fae1d1;
}
.case-study .label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #7a3f00; margin-bottom: 12px; }
.case-study > :last-child { margin-bottom: 0; }
/* a case study's heading as a dark orange bar, icon first, sitting on top of its tinted box */
.prose h2.case-study-title {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 0; padding: 14px clamp(20px, 3vw, 32px); border-top: 0;
  background: var(--orange); color: var(--white); border-radius: 10px 10px 0 0;
}
.prose .case-study-title-icon { flex: none; width: 44px; height: 44px; margin: 0; }
.prose h2.case-study-title + .case-study { margin-top: 0; border-radius: 0 0 10px 10px; }

.table-wrap { overflow-x: auto; margin: 1.4em 0 2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; min-width: 520px; }
.prose th { text-align: left; font-weight: 600; background: var(--blue); color: var(--white); padding: 12px 14px; vertical-align: bottom; }
.prose td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose td p { margin: 0 0 0.6em; }
.prose td p:last-child { margin-bottom: 0; }
.prose td:first-child { font-weight: 600; }

.notes { font-size: 13.5px; color: var(--ink-soft); border-top: 1px solid var(--rule); margin-top: 3em; padding-top: 1.4em; }
.notes h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border: 0; padding: 0; margin: 0 0 0.8em; }
.note-ref { font-size: 0.75em; vertical-align: super; line-height: 0; text-decoration: none; }
.prose th .note-ref { color: inherit; }

.prose h4 { font-size: 16px; font-weight: 600; margin: 1.6em 0 0.3em; }
.prose li p { margin: 0.3em 0 0; }
.prose blockquote { margin: 0; }

.prose figure { margin: 1.6em 0 2em; }
.prose figure img { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; }

.figure-text { margin: -0.8em 0 2em; font-size: 14.5px; }
.figure-text summary { cursor: pointer; color: var(--blue); font-weight: 500; }
.figure-text[open] { background: #fbfbfb; border: 1px solid var(--rule); padding: 16px 20px; }
.figure-text[open] summary { margin-bottom: 12px; }

.checklist {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: clamp(22px, 3.5vw, 36px);
  margin: 1.6em 0 2em;
}
.prose .checklist h4 { font-size: clamp(17px, 1.8vw, 19px); font-weight: 400; color: var(--blue); margin: 1.4em 0 0.4em; }
.prose .checklist h4:first-child { margin-top: 0; }
.checklist ul { list-style: none; padding: 0; margin: 0; }
.checklist li { margin: 0; }
.checklist label { display: flex; gap: 14px; align-items: flex-start; padding: 9px 0; cursor: pointer; line-height: 1.6; }
.checklist input { width: 18px; height: 18px; margin-top: 4px; flex: 0 0 auto; accent-color: var(--blue); }

.check-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: clamp(22px, 3.5vw, 36px);
  margin: 1.6em 0 2em;
}
.prose .check-card h3, .prose .check-card h4 { font-size: clamp(19px, 2vw, 22px); font-weight: 400; line-height: 1.4; color: var(--blue); margin: 0 0 1em; }
.check-card ul { list-style: none; padding: 0; margin: 0; }
.check-card li { margin: 0; }
.check-card label { display: flex; gap: 14px; align-items: flex-start; padding: 9px 0; cursor: pointer; line-height: 1.6; }
.check-card input { width: 18px; height: 18px; margin-top: 4px; flex: 0 0 auto; accent-color: var(--blue); }

/* "Three Touchpoints" process flow (Copyright & IP): In → On → Out */
.touchpoints { --tp-point: 24px; margin: 1.6em 0 2.2em; }
.prose .tp-heading { font-size: 19px; font-weight: 600; color: var(--ink); margin: 0 0 14px; }
.prose .tp-flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
}
/* flat on the left, pointed on the right like an arrow into the next step */
.prose .tp-step {
  margin: 0;
  padding: 20px calc(var(--tp-point) + 16px) 22px 22px;
  clip-path: polygon(0 0, calc(100% - var(--tp-point)) 0, 100% 50%, calc(100% - var(--tp-point)) 100%, 0 100%);
}
.prose .tp-step:nth-child(1) { background: #e5f1f6; }
.prose .tp-step:nth-child(2) { background: #b9d8e4; }
.prose .tp-step:nth-child(3) { background: var(--blue); }
.tp-tag {
  display: inline-block; margin-bottom: 10px; padding: 2px 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange); background: var(--white); border-radius: 999px;
}
.prose .tp-title { font-size: 17px; font-weight: 600; line-height: 1.3; color: #00445f; margin: 0 0 6px; }
.prose .tp-step p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #24414d; }
.prose .tp-step strong { color: inherit; }
.prose .tp-step:nth-child(3) .tp-title { color: var(--white); }
.prose .tp-step:nth-child(3) p { color: var(--blue-text); }

/* on narrow screens the flow runs top to bottom, each step pointing down */
@media (max-width: 600px) {
  .prose .tp-flow { grid-template-columns: minmax(0, 1fr); }
  .prose .tp-step {
    padding: 18px 22px calc(var(--tp-point) + 12px);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--tp-point)), 50% 100%, 0 calc(100% - var(--tp-point)));
  }
}

/* Collapsible FAQ (Copyright & IP) */
.faq { border-top: 1px solid var(--rule); margin: 1em 0 2em; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  padding: 18px 4px; cursor: pointer; list-style: none;
  font-size: 16.5px; font-weight: 500; line-height: 1.5; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: 0 0 auto;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--blue); color: var(--blue);
  font-size: 20px; font-weight: 400; line-height: 1;
  transition: transform 0.2s, background 0.15s, color 0.15s;
}
.faq-item summary:hover { color: var(--blue); }
.faq-item summary:hover::after { background: var(--blue-tint); }
.faq-item summary:focus-visible { outline: 3px solid rgba(0, 103, 143, 0.35); outline-offset: 2px; }
.faq-item[open] summary { color: var(--blue); }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--blue); color: var(--white); }
.faq-answer { padding: 0 52px 18px 4px; }
/* collapsible QA/QC stages: the stage heading is the toggle */
:not(.stage) + .faq-item.stage { border-top: 1px solid var(--rule); margin-top: 1.6em; }
.faq-item.stage + :not(.stage) { margin-top: 1.6em; }
.prose .faq-item.stage summary h3 { margin: 0; font-size: 19px; font-weight: 600; color: inherit; }
.faq-item.stage .faq-answer { padding-right: 4px; }
.prose .faq-item.stage .faq-answer h4:first-child { margin-top: 0.2em; }
/* Governance data governance framework: title bar, six linked steps, two-part foundation */
.prose .dg-framework { --dg-gap: 30px; max-width: 620px; margin: 2em auto 2.4em; }
.prose .dg-title {
  margin: 0; padding: 16px 20px; border-radius: 10px; text-align: center;
  background: var(--blue); color: var(--white); font-size: 18px; font-weight: 600;
}
.prose .dg-steps { list-style: none; margin: 0; padding: 0; }
.prose .dg-steps li {
  position: relative; display: flex; align-items: center; gap: 16px; margin: var(--dg-gap) 0 0;
  padding: 16px 22px; border-radius: 10px; background: #e5f1f6;
  font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--ink);
}
.dg-icon {
  flex: none; width: 28px; height: 28px; color: var(--blue);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.prose .dg-foundation {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--dg-gap);
  border: 1px solid var(--rule); border-radius: 10px; background: var(--white);
}
.dg-foundation span { padding: 16px 12px; text-align: center; font-size: 17px; font-weight: 600; color: var(--blue); }
.dg-foundation span + span { border-left: 1px solid var(--rule); }
/* connector arrow above every step and the foundation */
.prose .dg-steps li::before, .prose .dg-foundation::before {
  content: ""; position: absolute; left: calc(50% - 6px); top: calc(-1 * var(--dg-gap) + 4px);
  width: 12px; height: calc(var(--dg-gap) - 8px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 22' preserveAspectRatio='none'%3E%3Cpath d='M6 0v15' stroke='%2380aebf' stroke-width='2'/%3E%3Cpath d='M1 14h10l-5 8z' fill='%2380aebf'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
@media (max-width: 600px) {
  .prose .dg-steps li { padding: 14px 16px; font-size: 15px; gap: 12px; }
  .dg-foundation span { font-size: 15px; }
}

/* Secure Use roles org chart: leadership on top, three connected staff roles, consultants alongside */
.prose .org-chart {
  --org-gap: 14px; --org-line: #80aebf;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--org-gap);
  margin: 1.6em 0 2.2em;
}
.prose .org-box { border-radius: 10px; padding: 16px 18px; }
.prose .org-box h4 { margin: 0 0 6px; font-size: 15.5px; line-height: 1.3; color: var(--blue); }
.prose .org-box p { margin: 0; font-size: 14px; line-height: 1.55; }
.prose .org-lead { grid-column: 1 / 5; grid-row: 1; background: var(--blue); }
.prose .org-lead h4 { color: var(--white); }
.prose .org-lead p { color: var(--blue-text); }
.prose .org-staff { grid-row: 3; background: #e5f1f6; position: relative; }
.prose .org-external { grid-row: 3; grid-column: 4; background: var(--white); border: 1.5px dashed var(--org-line); }
/* connectors: stem down from leadership, a bar across the three staff roles, a drop into each */
.org-bar { grid-column: 1 / 4; grid-row: 2; height: 40px; position: relative; }
.org-bar::before {
  content: ""; position: absolute; top: 19px; height: 2px; background: var(--org-line);
  left: calc((100% - 2 * var(--org-gap)) / 6); right: calc((100% - 2 * var(--org-gap)) / 6);
}
.org-bar::after { content: ""; position: absolute; left: calc(50% - 1px); top: 0; width: 2px; height: 20px; background: var(--org-line); }
.prose .org-staff::before { content: ""; position: absolute; left: calc(50% - 1px); top: -21px; width: 2px; height: 21px; background: var(--org-line); }

@media (max-width: 860px) {
  /* stacked: leadership on top, staff roles hang off a line down the left, consultants set apart below */
  .prose .org-chart { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .prose .org-lead, .prose .org-staff, .prose .org-external { grid-column: 1; grid-row: auto; }
  .org-bar { display: none; }
  .prose .org-staff { margin-left: 28px; }
  .prose .org-staff::before { left: -16px; top: -12px; width: 2px; height: calc(100% + 12px); }
  .prose .org-staff::after { content: ""; position: absolute; left: -16px; top: 50%; width: 16px; height: 2px; background: var(--org-line); }
  .prose .org-staff:nth-of-type(5)::before { height: calc(50% + 13px); }
  .prose .org-external { margin-top: 12px; }
}

/* QA/QC Stage 4 sign-off tiers: tinted tier column on the left, title and text on the right */
.prose .tiers { list-style: none; padding: 0; margin: 1.2em 0 1.6em; display: grid; gap: 6px; }
.prose .tier { display: grid; grid-template-columns: 128px minmax(0, 1fr); margin: 0; }
.tier-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 18px 10px; border-radius: 10px 0 0 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #00445f;
}
.prose .person-icon { width: 44px; height: 44px; max-width: none; margin: 0; border-radius: 50%; background: var(--white); object-fit: cover; }
/* numbered variant (Stage 1 screening steps): the number sits where the person icon would */
.step-num {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--white); color: var(--blue);
  font-size: 22px; font-weight: 600; letter-spacing: 0;
}
.tier:nth-child(1) .tier-badge { background: #e5f1f6; }
.tier:nth-child(2) .tier-badge { background: #b9d8e4; }
.tier:nth-child(3) .tier-badge { background: var(--blue); color: var(--white); }
.tier-body { padding: 16px 22px; border: 1px solid var(--rule); border-left: 0; border-radius: 0 10px 10px 0; }
.prose .tier-body h4 { margin: 0 0 4px; color: var(--blue); }
.prose .tier-body p { margin: 0; }

@media (max-width: 600px) {
  .prose .tier { grid-template-columns: minmax(0, 1fr); }
  .tier-badge { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 10px 16px; border-radius: 10px 10px 0 0; }
  .prose .person-icon, .step-num { width: 32px; height: 32px; }
  .step-num { font-size: 17px; }
  .tier-body { padding: 14px 16px; border-left: 1px solid var(--rule); border-top: 0; border-radius: 0 0 10px 10px; }
}

/* QA/QC Stage 3 failure modes: faint red card with a warning icon */
.failure-card {
  background: #fdf0f0; border-radius: 10px;
  padding: clamp(18px, 3vw, 26px);
  margin: 1.2em 0 1.4em;
}
.prose .failure-card .failure-title { display: flex; align-items: center; gap: 12px; margin: 0 0 0.6em; }
.prose .failure-card p.failure-title { font-weight: 600; }
.warn-icon { width: 26px; height: 26px; flex: 0 0 auto; color: #b42318; }
.prose .failure-card li::marker { color: #b42318; }
.failure-card > :last-child { margin-bottom: 0; }
.glossary .faq-item summary, .risks .faq-item summary { font-weight: 600; padding: 14px 4px; }
.prose .faq-answer > :last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }

/* "Can I use this?" decision tree (js/decision-tree.js) */
.dtree {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: clamp(22px, 3.5vw, 36px);
  margin: 1.6em 0 1.2em;
}
.dtree:empty { display: none; }
.dtree-step, .dtree-outcome { position: relative; padding-left: 26px; }
.dtree-step { padding-bottom: 28px; }
.dtree-step::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 0;
  border-left: 2px dashed var(--rule);
}
.dtree-step::after, .dtree-outcome::after {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--blue);
}
.dtree-eyebrow { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.prose .dtree-context { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 4px; }
.prose .dtree-question { font-size: clamp(17px, 1.8vw, 19px); line-height: 1.45; color: var(--blue); margin: 0 0 14px; outline: none; }
.dtree-options { display: flex; flex-wrap: wrap; gap: 10px; }
.dtree-option {
  font: inherit; font-size: 15px; font-weight: 500;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 10px 20px; min-width: 92px;
  background: var(--white); color: var(--blue);
  border: 1.5px solid var(--blue); border-radius: 8px;
  cursor: pointer; text-align: left;
  transition: background 0.15s, color 0.15s, opacity 0.15s, border-color 0.15s;
}
.dtree-option:hover { background: var(--blue-tint); }
.dtree-option:focus-visible { outline: 3px solid rgba(0, 103, 143, 0.35); outline-offset: 2px; }
.dtree-option-hint { font-size: 12.5px; font-weight: 400; color: var(--ink-soft); }
.dtree-option.is-chosen { background: var(--blue); color: var(--white); }
.dtree-option.is-chosen .dtree-option-hint { color: var(--blue-text); }
.dtree-option.is-dimmed { border-color: var(--rule); color: #a3a3a3; opacity: 0.7; }
.dtree-option.is-dimmed .dtree-option-hint { color: #b5b5b5; }
.dtree-option.is-dimmed:hover { opacity: 1; background: var(--panel); }

.dtree-outcome::after { border: 0; }
.dtree-outcome-title { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px; }
.dtree-outcome {
  margin-left: 0; border-radius: 8px; outline: none;
  padding: 16px 20px 16px 46px;
  animation: dtree-in 0.25s ease-out;
}
.dtree-outcome::after { left: 18px; top: 19px; }
.prose .dtree-outcome p { margin: 0; font-size: 15.5px; }
.dtree-outcome a { display: inline-block; margin-top: 8px; font-size: 14px; color: inherit; }
.dtree-proceed { background: #e5f1f6; color: #00445f; }
.dtree-proceed::after { background: var(--blue); }
.dtree-review { background: #fdeee2; color: #7a3a09; }
.dtree-review::after { background: var(--orange); }
.dtree-stop { background: #ececec; color: #2e2e2e; }
.dtree-stop::after { background: #6b6b6b; }

.dtree-reset {
  font: inherit; font-size: 13px; font-weight: 500;
  margin-top: 18px; padding: 6px 0;
  background: none; border: 0; color: var(--blue); cursor: pointer;
}
.dtree-reset:hover { text-decoration: underline; }
.dtree-step:last-of-type { padding-bottom: 0; animation: dtree-in 0.25s ease-out; }
.dtree-step:last-of-type::before { display: none; }

@keyframes dtree-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .dtree-outcome, .dtree-step:last-of-type { animation: none; }
}

/* sample disclosure language: white card with a pencil badge in the top-right corner */
.example {
  position: relative; margin: 1.2em 0 1.4em; padding: 20px 24px 22px;
  background: var(--white); border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
}
.example::before {
  content: ""; position: absolute; top: 18px; right: 18px; width: 32px; height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='16' fill='%23bcc4c8'/%3E%3Cg transform='rotate(45 16 16)' fill='%23fff'%3E%3Crect x='13.5' y='7.5' width='5' height='12.5' rx='.6'/%3E%3Cpath d='M13.5 21h5L16 25.5z'/%3E%3Crect x='13.5' y='4.5' width='5' height='2' rx='.6'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
.example-label { font-weight: 600; color: var(--blue); padding-right: 44px; margin-bottom: 0.6em !important; }
.example blockquote { padding: 0; font-size: 15px; font-style: italic; }
.example blockquote p:last-child { margin-bottom: 0; }

.sources-note { margin-top: 3em !important; padding-top: 1.2em; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--muted); }

.references { list-style: none; padding: 0 !important; font-size: 14.5px; }
.references li { padding-left: 2em; text-indent: -2em; margin-bottom: 1em; overflow-wrap: anywhere; }

.section-layout.single { grid-template-columns: minmax(0, 1fr); }
.section-layout.single .prose { max-width: 90ch; }

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-self: flex-end; }
.footer-links a { color: var(--blue); font-size: 13px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.pager {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: clamp(28px, 4vw, 40px) var(--gutter);
  border-top: 1px solid var(--rule);
}
.pager a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); font-size: clamp(16px, 1.8vw, 20px); font-weight: 500; }
.pager a span { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pager a:hover { color: var(--blue); }
.pager .next { margin-left: auto; text-align: right; }

@media (max-width: 860px) {
  .section-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; border-bottom: 1px solid var(--rule); padding-bottom: 24px; }
  .section-hero-inner { flex-direction: column; gap: 20px; }
}

@media (max-width: 600px) {
  .site-header { position: static; }
  .prose [id] { scroll-margin-top: 16px; }
  .site-nav { justify-content: flex-start; }
  /* search drops below the brand and spans the width */
  .header-top { flex-wrap: wrap; row-gap: 0; padding-right: 0; }
  .site-search { flex: 1 1 100%; margin: 0 var(--gutter) 14px; }
  .search-results { left: 0; right: 0; width: auto; }
}
