/* Sorami Consulting v5. White canvas, Sora, ink buttons, Aviato cyan accent. */
:root {
  --page: #FFFFFF;
  --band: #F8FAFC;
  --ink: #161616;
  --muted: #52525B;
  --line: #E4E4E7;
  --accent: #0B9ED9;
  --accent-dark: #0A6E99;
  --error: #DC2626;
  --success: #0A7A4A;

  --sans: "Sora", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  --gutter: 32px;
  --radius: 10px;
  --radius-lg: 16px;
  --transition: color .16s ease, background-color .16s ease, border-color .16s ease, opacity .16s ease, transform .16s ease, box-shadow .16s ease;

  /* Type scale. Primary body copy is --text-base. Every other size is a step on
     this scale, so nothing in the site sets a font size by hand. The two steps
     below --text-md are for small print only: trackers, legal lines and captions. */
  --text-2xs: 0.8125rem;   /* 13px, uppercase trackers and coverlines */
  --text-xs: 0.875rem;     /* 14px, legal lines and footnotes */
  --text-sm: 0.9375rem;    /* 15px, captions, meta and control labels */
  --text-md: 1.0625rem;    /* 17px, dense copy inside cards and forms */
  --text-base: 1.125rem;   /* 18px, primary body copy */
  --text-lg: 1.25rem;      /* 20px, lede and card intros */
  --text-xl: 1.5rem;       /* 24px, h3 */
  --text-2xl: clamp(1.6rem, 2.4vw, 1.9rem);
  --text-3xl: clamp(1.9rem, 3.2vw, 2.4rem);
  --text-4xl: clamp(2.3rem, 4.6vw, 3.5rem);

  /* Line height rises as size falls, so small text stays readable. */
  --lh-tight: 1.12;
  --lh-heading: 1.25;
  --lh-body: 1.65;
  --lh-small: 1.6;

  /* Measure. Long runs of copy are held to a readable line length rather than
     the full content width. */
  --measure: 66ch;
  --measure-wide: 74ch;
  --measure-narrow: 52ch;

  /* Spacing scale. Section padding, heading-to-body and paragraph rhythm all
     come from here. No block sets a one-off margin. */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4rem;

  --flow: var(--s4);           /* paragraph to paragraph */
  --flow-block: var(--s5);     /* block to block inside a section */
  --flow-heading: var(--s4);   /* heading to the copy it introduces */
  --flow-section: var(--s7);   /* heading group to section body */
  --flow-list: var(--s2);      /* list item to list item */
  --section-y: clamp(3.5rem, 7vw, 5.5rem);

  /* One padding token for every card surface, so card interiors share an edge. */
  --card-pad: clamp(1.25rem, 2.4vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}

h1 {
  font-size: var(--text-4xl);
  line-height: var(--lh-tight);
}

h2 {
  font-size: var(--text-3xl);
  line-height: var(--lh-heading);
}

h3 { font-size: var(--text-xl); line-height: var(--lh-heading); }

p { color: var(--muted); }

strong { color: var(--ink); font-weight: 600; }

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: var(--accent); }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 12px 16px;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: var(--radius);
}
.skip:focus { top: 16px; color: #FFFFFF; }

/* Centred containers state a width as well as a max-width, and the width is not
   optional. "margin-inline: auto" switches off flex stretch, so a centred block
   inside a column flex container is sized from its own contents instead of from
   its parent, and a max-width alone then acts as a target rather than a cap: wide
   content pulls the block all the way out to it, at any viewport. That is how the
   guide tables pushed a 390px phone sideways. A definite width leaves max-width
   doing the one job it should do. Every auto-centred container on the site
   follows this pattern; the rendered guard in tests/overflow.test.cjs enforces it. */
.wrap,
header.site .bar {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Content containers lay their children out as a column with a gap rather than
   relying on child margins. The global reset zeroes every margin, so margin-based
   rhythm has to be restored per element and one miss reads as a wall of text.
   A gap cannot be missed. Grid and flex variants of .wrap declare their own
   display later in the cascade and are unaffected. */
.wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--flow-block);
}

/* Heading groups and card interiors get the same treatment. */
.section-heading,
.prose,
.guide-prose,
.scope-detail-grid > article,
.callout-box,
.credential-review,
.legal-note,
.boundary-note,
.planned-services,
.scope-summary,
.self-check,
.scope-result,
.self-check-result,
.faq details {
  display: flex;
  flex-direction: column;
  gap: var(--flow);
}

/* A heading sits closer to the copy it introduces than to the block above it. */
.wrap > :is(h2, h3, h4),
.prose > :is(h2, h3, h4),
.guide-prose > :is(h2, h3, h4) {
  margin-top: var(--s5);
}
.wrap > :is(h2, h3, h4):first-child,
.prose > :is(h2, h3, h4):first-child,
.guide-prose > :is(h2, h3, h4):first-child {
  margin-top: 0;
}

/* Measure. No run of copy is allowed to stretch the full content width; the
   vCISO "days and term" paragraphs were running past 90 characters a line. */
main :is(p, li, blockquote, dd, figcaption) { max-width: var(--measure-wide); }
.wrap > p,
.prose > p,
.guide-prose > p,
.section-heading > p { max-width: var(--measure); }

/* List rhythm from the scale. Classed lists already lay themselves out with a
   grid or flex gap, so only plain lists need the margin, and numbered lists keep
   their markers because the list box stays a block. */
main :is(ul, ol):not([class]) > li + li { margin-top: var(--flow-list); }

section { padding: var(--section-y) 0; }

.kicker {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.lede {
  font-size: var(--text-lg);
  line-height: var(--lh-body);
  max-width: 54ch;
  margin-top: 16px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--ink);
  z-index: 100;
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--text-base);
  padding: 14px 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--ink);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-ghost {
  background: #FFFFFF;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.btn-lg {
  font-size: var(--text-lg);
  padding: 16px 32px;
}

.btn-block { width: 100%; }
.brand-footer { margin-bottom: 12px; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

header.site.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(22, 22, 22, 0.06);
}

header.site .bar {
  padding-block: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand:hover { color: var(--ink); }

.brand svg { width: 32px; height: 32px; margin-left: -3px; }

.brand .name {
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

nav.links {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.links > a {
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: 500;
}

nav.links > a:hover { color: var(--accent-dark); }

nav.links > a.nav-cta {
  color: #FFFFFF;
  background: var(--ink);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
}

nav.links > a.nav-cta:hover {
  background: var(--accent);
  color: #FFFFFF;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px;
  height: 40px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: absolute;
  left: 12px;
}

.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 26px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.hero {
  padding: clamp(40px, 5vh, 56px) 0 clamp(56px, 8vh, 88px);
  border-bottom: 1px solid var(--line);
}

.hero .eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.hero h1 { max-width: 16ch; }

.hero .lede { margin-bottom: 0; }

.hero-services {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.hero-services a {
  color: var(--muted);
  border: 1px solid var(--line);
  background: #FFFFFF;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: var(--text-md);
  font-weight: 500;
}

.hero-services a:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.services { background: var(--band); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.service {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.service .num {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.service h3 { margin-bottom: 10px; }

.service p { margin-bottom: 16px; }

.service ul {
  list-style: none;
}

.service li {
  position: relative;
  padding: 8px 0 8px 18px;
  color: var(--muted);
  font-size: var(--text-base);
  border-bottom: 1px solid var(--line);
}

.service li:last-child { border-bottom: 0; }

.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.boundaries {
  border-bottom: 1px solid var(--line);
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.boundary-card {
  background: var(--band);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.boundary-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.boundary-card h3 {
  font-size: var(--text-lg);
  margin-bottom: 10px;
}

.boundary-card p {
  font-size: var(--text-base);
  line-height: 1.6;
  margin: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.step {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: #FFFFFF;
}

.step .n {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.step h3 { margin-bottom: 8px; font-size: var(--text-lg); }

.faq { background: var(--band); }

.faq-list { margin-top: 32px; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq details:first-of-type { border-top: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--accent-dark);
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.faq details[open] summary::after { content: "\2212"; }

.faq details p {
  margin-top: 12px;
  max-width: 68ch;
}

.cta-band {
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.cta-band p {
  max-width: 46ch;
  margin: 12px auto 28px;
  font-size: var(--text-lg);
}

.contact .grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 48px;
  margin-top: 40px;
}

form.config {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-intro {
  color: var(--ink);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.field { margin-bottom: 16px; }

.field label,
.choice-field legend {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.choice-field {
  border: 0;
  padding: 0;
  margin-bottom: 16px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--band);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-base);
  padding: 12px 14px;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23161616' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field textarea { min-height: 110px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(11, 158, 217, 0.18);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pills label {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--band);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: var(--text-md);
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  min-height: 40px;
}

/* Pinned to the label box. Without inset and a positioned label, each input kept
   the form-wide full width and pushed the document a viewport wider than the screen. */
.pills input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.pills label:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

form.config .btn { width: 100%; margin-top: 8px; }

.fineprint {
  font-size: var(--text-sm);
  text-align: center;
  margin-top: 12px;
}

.form-status {
  min-height: 1.4em;
  margin-top: 12px;
  font-size: var(--text-md);
  text-align: center;
}

.form-status[data-state="success"] { color: var(--success); }
.form-status[data-state="error"] { color: var(--error); }

.contact .aside .lede { margin-bottom: 16px; }

.contact .aside a {
  font-weight: 700;
  font-size: var(--text-lg);
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
}

footer.site .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

footer.site h4,
footer.site .footer-heading {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--ink); }

.footer-blurb {
  max-width: 36ch;
  margin-top: 12px;
  font-size: var(--text-base);
}

footer.site .legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: var(--text-md);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.fabs {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
}

.fabs.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 600;
  font-size: var(--text-base);
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  font-family: inherit;
  min-height: 48px;
}

.fab:hover { background: var(--accent); color: #FFFFFF; }

.contact-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  pointer-events: none;
}

.contact-drawer[hidden] { display: none; }
.contact-drawer.open { visibility: visible; pointer-events: auto; }

.contact-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 22, 22, 0.4);
  opacity: 0;
  transition: opacity .3s ease;
}

.contact-drawer.open .contact-drawer-overlay { opacity: 1; }

.contact-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 100%;
  height: 100%;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s ease;
}

.contact-drawer.open .contact-drawer-panel { transform: none; }

.contact-drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 8px;
}

.contact-drawer-body { padding: 24px; overflow-y: auto; flex: 1; }
.contact-drawer-sub { margin-bottom: 20px; }
.contact-drawer-form .field { margin-bottom: 16px; }
.contact-drawer-form label {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-drawer-form input,
.contact-drawer-form textarea {
  width: 100%;
  background: var(--band);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: var(--text-base);
}

.page-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
}

.content-block {
  padding: 48px 0 8px;
}

.breadcrumb {
  font-size: var(--text-sm);
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--muted); }

.updated {
  margin-top: 12px;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

/* The last-reviewed line on pages that do not render one inside a hero. It closes
   the page rather than opening it, because on a service page the date is a
   credibility detail the reader checks, not the first thing they need. */
.page-reviewed {
  padding: 0 0 48px;
}

.page-reviewed .updated {
  margin-top: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Sits under a citation list and states when those versions were read from the
   primary source. Deliberately not .updated: it is a different claim, and styling
   the two identically is what let them read as one sentence.

   It keeps the body size rather than dropping to --text-sm. This is a full sentence
   making a verifiable claim about how the page was researched, which on these pages
   is the point a technical buyer checks, so it is primary copy and is held to the
   16px body floor by tests/layout.test.cjs. It reads as secondary through colour,
   not through being shrunk. */
.source-verified {
  margin-top: 16px;
  color: var(--muted);
}

.prose { max-width: 74ch; }
.prose h2 { margin-top: 36px; margin-bottom: 12px; }
.prose > h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; }
.prose ul { list-style: none; margin-bottom: 14px; }
.prose li {
  position: relative;
  padding: 8px 0 8px 18px;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.legal-note {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--band);
  font-size: var(--text-base);
}

/* Technical Guide & Editorial Styles */
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
}

.guide-prose {
  max-width: 100%;
}

.guide-prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.025em;
}

.guide-prose h3 {
  font-size: var(--text-xl);
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--ink);
}

.guide-prose h4 {
  font-size: var(--text-lg);
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--ink);
}

.guide-prose p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: var(--text-lg);
  line-height: 1.7;
}

.guide-prose ul, .guide-prose ol {
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--muted);
}

.guide-prose ul { list-style: disc; }
.guide-prose ol { list-style: decimal; }

.guide-prose li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.guide-prose strong {
  color: var(--ink);
}

.guide-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  background: #F1F5F9;
  color: #0F172A;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

/* Long identifiers (env vars, service account names, bare reference URLs) have no
   spaces, so without a break point they push the page wider than a phone. Tables are
   excluded: they scroll inside .table-wrap and a broken cell is harder to read. */
.guide-prose :not(pre) > code,
.guide-prose p a,
.guide-prose li a {
  overflow-wrap: anywhere;
}
.guide-prose td code,
.guide-prose th code {
  overflow-wrap: normal;
}

.guide-prose pre {
  background: #0F172A;
  color: #F8FAFC;
  padding: 18px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 24px;
  font-size: var(--text-md);
  line-height: 1.55;
  border: 1px solid #1E293B;
}

.guide-prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
  font-size: inherit;
}

.guide-prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  background: var(--band);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  color: var(--ink);
  font-size: var(--text-lg);
}

.guide-prose blockquote p:last-child {
  margin-bottom: 0;
}

/* Callout box */
.callout-box {
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
}

.callout-box.warning {
  background: #FEF2F2;
  border-color: #FECACA;
  border-left-color: var(--error);
}

.callout-box h4,
.callout-box .callout-title {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-box p:last-child {
  margin-bottom: 0;
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFFFFF;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--text-base);
}

.table-wrap th {
  background: var(--band);
  color: var(--ink);
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table-wrap td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
  line-height: 1.5;
}

.table-wrap tr:last-child td {
  border-bottom: none;
}

.table-wrap td strong {
  color: var(--ink);
}

/* Copyable box */
.copy-panel {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 28px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.copy-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: var(--band);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
}

.copy-panel-title {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.copy-panel-btn {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.copy-panel-btn:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.copy-panel-content {
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: var(--text-md);
  color: var(--ink);
  white-space: pre-wrap;
  line-height: 1.6;
  background: #FAFBFD;
  overflow-x: auto;
}

/* Sticky Sidebar Table of Contents */
.guide-sidebar {
  position: sticky;
  top: 104px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.guide-sidebar h3 {
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}

.guide-toc {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-toc li {
  margin-bottom: 8px;
  font-size: var(--text-md);
  line-height: 1.4;
}

.guide-toc a {
  color: var(--muted);
  display: block;
  padding: 4px 0;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 8px;
  transition: var(--transition);
}

.guide-toc a:hover {
  color: var(--accent-dark);
  border-left-color: var(--accent);
}

/* Centred container: width first, then the cap. See the note on .wrap above.
   Without the width this box was pulled out to 820px inside a 350px phone by the
   comparison table beneath it, taking .table-wrap with it, which left the scroll
   container exactly as wide as its own contents and so with nothing to scroll. */
.guide-layout-narrow {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.sidebar-cta-card {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.sidebar-cta-card h4 {
  font-size: var(--text-base);
  margin-bottom: 8px;
  color: var(--ink);
}

.sidebar-cta-card p {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .guide-sidebar {
    position: static;
  }
}

.reveal { opacity: 1; }
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal-ready .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: 0s !important;
  }
  .reveal, .reveal-ready .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .service-grid,
  .boundary-grid,
  .steps,
  .contact .grid,
  footer.site .cols,
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  nav.links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
  }
  nav.links.open { display: flex; }
  nav.links > a {
    width: 100%;
    padding: 14px var(--gutter);
    border-top: 1px solid var(--band);
  }
  nav.links > a.nav-cta {
    margin: 12px var(--gutter);
    width: calc(100% - (var(--gutter) * 2));
    text-align: center;
  }
  .nav-toggle { display: block; }
  header.site .bar { position: relative; }
  nav.links > a { padding-inline: var(--gutter); }
  nav.links > a.nav-cta {
    margin-inline: var(--gutter);
    width: calc(100% - (var(--gutter) * 2));
  }
  .fab span.txt { display: none; }
  .fab { padding: 14px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
}

/* token churn */
