/* Shared styles for the role and case-study pages.
   Tokens mirror the values inline in index.html so both look like one site.
   Light: #F5F7FA bg, #18212B text, #A78348 / #85642F accent.
   Dark:  #101318 bg, #F3F4F2 text, #D5B77D accent.

   The home page keeps its own inline stylesheet on purpose, so it stays one
   self-contained file. The duplication between the two header components is
   deliberate: home uses .nav-list, interior pages use .site-nav. Change the
   tap-target spacing in both places when either is edited. */

/* Inter, self hosted. One variable latin file covers 400 to 700; no third-party font CDN. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-brand-50: #FAF6EE;
  --color-brand-100: #F1E7D5;
  --color-brand-300: #D5B77D;
  --color-brand-500: #A78348;
  --color-brand-700: #6E5527;
  --color-brand-900: #2A2419;
  --color-bg: #F5F7FA;
  --color-bg-subtle: #EDF0F4;
  --color-surface: #FFFFFF;
  --color-border: #E3E7EC;
  --color-text: #18212B;
  --color-text-muted: #59626E;
  --color-accent: #A78348;
  --color-interactive: #85642F;
  --color-btn-bg: #A78348;
  --color-on-btn: #18212B;
  --shadow-sm: 0 1px 2px rgba(24, 33, 43, 0.06);
  --shadow-md: 0 6px 20px rgba(24, 33, 43, 0.08);
  --radius: 12px;
  --text-sm: 0.875rem;
  --text-xs: 0.78rem;
}

[data-theme="dark"] {
  --color-bg: #101318;
  --color-bg-subtle: #15191F;
  --color-surface: #181D24;
  --color-border: #272D36;
  --color-text: #F3F4F2;
  --color-text-muted: #A6ADB7;
  --color-interactive: #D5B77D;
  --color-btn-bg: #D5B77D;
  --color-on-btn: #101318;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #101318;
    --color-bg-subtle: #15191F;
    --color-surface: #181D24;
    --color-border: #272D36;
    --color-text: #F3F4F2;
    --color-text-muted: #A6ADB7;
    --color-interactive: #D5B77D;
    --color-btn-bg: #D5B77D;
    --color-on-btn: #101318;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--color-interactive); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--color-accent); }

.container { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--color-surface);
  color: var(--color-text); padding: 0.75rem 1rem; border: 1px solid var(--color-border);
  border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .inner { display: flex; align-items: center; gap: 1.25rem; padding: 0.85rem 0; }
.brand { font-weight: 700; letter-spacing: -0.01em; text-decoration: none; color: var(--color-text); font-size: 1.02rem; white-space: nowrap; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.15rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; align-items: center; }
.site-nav a { color: var(--color-text-muted); text-decoration: none; font-size: 0.86rem; display: inline-block; padding-block: 0.3rem; } /* 24px+ tap target (WCAG 2.2 2.5.8) */
.site-nav a:hover { color: var(--color-interactive); }
.site-nav a[aria-current="page"] { color: var(--color-interactive); font-weight: 600; }
/* Résumé download, visible in the header of every interior page. */
.site-nav a.header-resume {
  display: inline-flex; align-items: center; min-height: 2.1rem; padding: 0 0.75rem;
  border-radius: 8px; background: var(--color-btn-bg); color: var(--color-on-btn);
  font-size: 0.8rem; font-weight: 600; text-decoration: none;
}
.site-nav a.header-resume:hover { background: var(--color-accent); color: var(--color-on-btn); }

.theme-toggle {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text); cursor: pointer; padding: 0;
}
.theme-toggle:hover { border-color: var(--color-accent); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- page shell ---------- */
main { display: block; }
.page-head { padding: 3rem 0 0.5rem; }
.eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-interactive); margin-bottom: 0.65rem;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.14; letter-spacing: -0.015em; margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.25; margin: 2.4rem 0 0.75rem; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; }
p { margin: 0 0 0.9rem; max-width: 68ch; }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; max-width: 68ch; }
li { margin-bottom: 0.45rem; }
.lede { font-size: 1.06rem; color: var(--color-text-muted); max-width: 60ch; margin-bottom: 1.2rem; }
.muted { color: var(--color-text-muted); }
.small { font-size: var(--text-sm); }

.breadcrumbs { font-size: var(--text-xs); color: var(--color-text-muted); margin: 0 0 1.1rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; display: flex; gap: 0.35rem; }
.breadcrumbs a { color: var(--color-text-muted); text-decoration: none; display: inline-block; padding-block: 0.3rem; } /* 24px+ tap target */
.breadcrumbs a:hover { color: var(--color-interactive); }
.breadcrumbs li + li::before { content: "/"; opacity: 0.55; }

.actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1.4rem 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.62rem 1.05rem;
  border-radius: 8px; font-size: 0.88rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; min-height: 44px;
}
.btn-primary { background: var(--color-btn-bg); color: var(--color-on-btn); }
.btn-primary:hover { background: var(--color-accent); color: var(--color-on-btn); }
.btn-ghost { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-text); }

/* ---------- stats ---------- */
.stat-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 1.6rem 0 0; padding: 0; }
.stat-strip li {
  border: 1px solid var(--color-border); border-radius: 9px; background: var(--color-surface);
  padding: 0.6rem 0.9rem; font-size: var(--text-xs); color: var(--color-text-muted); min-width: 8.5rem;
}
.stat-strip strong { display: block; font-size: 1.25rem; line-height: 1.15; color: var(--color-interactive); }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.2rem 0 0; }
.card {
  border: 1px solid var(--color-border);
  border-top: 2px solid color-mix(in srgb, var(--color-accent) 60%, transparent);
  border-radius: var(--radius); background: var(--color-surface);
  padding: 1.15rem 1.2rem 1.1rem; box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0.35rem 0 0.5rem; font-size: 1rem; }
/* Index cards: an h2 keeps the heading order h1 -> h2 -> h3 without changing the look. */
.card h2.card-title { margin: 0.35rem 0 0.5rem; font-size: 1rem; line-height: 1.25; }
.card p { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0 0 0.8rem; }
.card .kicker { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--color-interactive); }
.card-link { font-size: var(--text-sm); font-weight: 600; text-decoration: none; color: var(--color-interactive); }

/* ---------- prose blocks ---------- */
.split { display: grid; grid-template-columns: 1.7fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 1rem; } }

/* Narrow screens: brand and toggle share the first row, navigation gets its own. */
/* 2026-12-02: brand, the five links and the toggle need about 430px on one
   line, so the header only has to stack below 560. Above that it stays a single
   row, which also removes the 47px step at the old 720 boundary. */
@media (max-width: 560px) {
  .site-header .inner { flex-wrap: wrap; row-gap: 0.5rem; padding: 0.65rem 0; }
  .site-nav { order: 3; margin-left: 0; width: 100%; border-top: 1px solid var(--color-border); padding-top: 0.5rem; }
  .site-nav ul { gap: 0.5rem 0.95rem; }
  .site-nav a { font-size: 0.82rem; }
  .theme-toggle { margin-left: auto; }
  /* 2026-11-27: the wrapped header is 118px tall here, so the skip link target
     has to clear it; without this the breadcrumb landed 70px and the eyebrow
     26px under the sticky bar. Wider screens keep the default 0 offset. */
  main { scroll-margin-top: 7.5rem; }
}
/* 2026-12-02: the wrapped phone header measures 116px at 390 and 162px at 320,
   so the anchor offset has to follow it or jumped-to content lands under the
   bar. These replace the 7.5rem value from the rule above. */
@media (max-width: 560px) { :root { --anchor-offset: 7.5rem; } main { scroll-margin-top: 7.5rem; } }
@media (max-width: 480px) { :root { --anchor-offset: 8rem; } main { scroll-margin-top: 8rem; } }
@media (max-width: 380px) { :root { --anchor-offset: 10.5rem; } main { scroll-margin-top: 10.5rem; } }


.facts {
  border: 1px solid var(--color-border); border-radius: var(--radius);
  background: var(--color-bg-subtle); padding: 1rem 1.15rem; margin: 1.4rem 0 0;
}
.facts h2 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.09em; color: var(--color-text-muted); margin: 0 0 0.6rem; }
.facts dl { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--color-border); font-size: var(--text-sm); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--color-text-muted); }
.facts dd { margin: 0; text-align: right; font-weight: 600; }

.callout {
  border: 1px solid color-mix(in srgb, var(--color-accent) 45%, transparent);
  border-left: 3px solid var(--color-accent);
  background: color-mix(in srgb, var(--color-brand-300) 14%, transparent);
  border-radius: 9px; padding: 0.95rem 1.1rem; margin: 1.4rem 0 0; font-size: var(--text-sm);
}
.callout p:last-child { margin-bottom: 0; }

.related { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.related li { border-bottom: 1px solid var(--color-border); padding: 0.65rem 0; margin: 0; }
.related li:last-child { border-bottom: 0; }
.related a { font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.related span { display: block; color: var(--color-text-muted); font-size: var(--text-xs); }

.cta-band {
  margin: 3rem 0 0; padding: 2rem 0; border-top: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
}
.cta-band h2 { margin-top: 0; }
.cta-band p { color: var(--color-text-muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--color-border); padding: 2rem 0 3rem; font-size: var(--text-sm); color: var(--color-text-muted); }
.site-footer .inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--color-interactive); text-decoration: none; display: inline-block; padding-block: 0.3rem; } /* 24px+ tap target */
.site-footer nav ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }

/* ---------- case study diagrams ---------- */
/* A horizontal process or trust flow on wide screens; the same list stacks
   vertically below 721px so the labels stay readable at phone widths. */
.diagram {
  margin: 1.5rem 0 0; border: 1px solid var(--color-border); border-radius: var(--radius);
  background: var(--color-surface); padding: 1rem 1.1rem 0.9rem;
}
.diagram-title {
  margin: 0 0 0.8rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-interactive);
}
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; max-width: none; }
.flow li {
  margin: 0; border: 1px solid var(--color-border); border-radius: 9px;
  background: var(--color-bg-subtle); padding: 0.55rem 0.7rem;
  font-size: var(--text-sm); line-height: 1.4;
}
.flow li b {
  display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--color-interactive); margin-bottom: 0.15rem;
}
@media (min-width: 721px) {
  .flow { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .flow li { position: relative; }
  .flow li + li::before {
    content: "→"; position: absolute; left: -0.55rem; top: 50%;
    transform: translateY(-50%); color: var(--color-text-muted); font-size: 0.9rem;
  }
}
.diagram figcaption { margin-top: 0.75rem; font-size: var(--text-xs); color: var(--color-text-muted); }

/* ---------- case study navigation ---------- */
/* Anchored headings have to clear the sticky header. */
main [id] { scroll-margin-top: var(--anchor-offset, 5rem); }

.toc {
  margin: 1.4rem 0 0; border: 1px solid var(--color-border); border-radius: var(--radius);
  background: var(--color-surface); padding: 0.9rem 1.1rem 1rem;
}
.toc h2 {
  margin: 0 0 0.6rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-text-muted);
}
.toc ol {
  list-style: none; margin: 0; padding: 0; max-width: none;
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; counter-reset: toc;
}
.toc li { margin: 0; font-size: var(--text-sm); counter-increment: toc; }
.toc li a { text-decoration: none; }
.toc li a::before { content: counter(toc) ". "; color: var(--color-text-muted); }


.pager {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--color-border);
}
.pager a { text-decoration: none; max-width: 22rem; }
.pager span {
  display: block; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--color-text-muted); margin-bottom: 0.2rem;
}
.pager .pager-next { margin-left: auto; text-align: right; }

/* ---------- career tracks list ---------- */
.track-list { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.track-list > li {
  display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: 0.3rem 1.75rem; padding: 1.1rem 0;
  border-top: 1px solid var(--color-border); margin: 0;
}
.track-list > li:last-child { border-bottom: 1px solid var(--color-border); }
.track-list h2 { font-size: 1.02rem; line-height: 1.3; margin: 0; letter-spacing: -0.005em; }
.track-list p { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); max-width: 52ch; }
.track-list .track-links { grid-column: 2; margin: 0.45rem 0 0; font-size: var(--text-sm); font-weight: 600; }
.track-list .track-links a { text-decoration: none; }
.track-list .track-links span { color: var(--color-text-muted); font-weight: 400; padding: 0 0.35rem; }
@media (max-width: 720px) {
  .track-list > li { grid-template-columns: 1fr; }
  .track-list .track-links { grid-column: 1; }
}
.track-note {
  margin: 1.6rem 0 0; padding: 0.85rem 1.1rem; border-left: 3px solid var(--color-accent);
  background: var(--color-bg-subtle); border-radius: 0 8px 8px 0;
  font-size: var(--text-sm); color: var(--color-text-muted); max-width: 70ch;
}

/* ---------- automation case study ---------- */
/* Added for /case-studies/agreement-notification-automation/. Uses the tokens
   above so it sits inside the existing visual language: same borders, radius,
   surface and accent. Nothing here changes an existing component. */

/* Manual versus automated comparison: two equal columns, manual side muted so
   the automated path reads as the outcome. Stacks below 640px via auto-fit. */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 1.3rem 0 0; }
.compare > section {
  border: 1px solid var(--color-border); border-radius: var(--radius);
  background: var(--color-surface); padding: 1.05rem 1.2rem 1.1rem; box-shadow: var(--shadow-sm);
}
.compare > section.is-auto { border-top: 2px solid color-mix(in srgb, var(--color-accent) 60%, transparent); }
.compare h3 {
  margin: 0 0 0.7rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--color-interactive);
}
.compare ol { margin: 0; padding-left: 1.1rem; font-size: var(--text-sm); max-width: none; }
.compare li { margin-bottom: 0.45rem; }
.compare li:last-child { margin-bottom: 0; }
.compare .is-manual ol { color: var(--color-text-muted); }

/* Compact tick list for the day-to-day effect of the automation. */
.checklist {
  list-style: none; margin: 0.9rem 0 0; padding: 0; max-width: none;
  display: grid; gap: 0.45rem 1.6rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.checklist li { margin: 0; font-size: var(--text-sm); padding-left: 1.4rem; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--color-interactive); font-weight: 700; }

/* Architecture chain: a vertical stack so eight nodes stay readable at every
   width. The arrow lives on the following item, centred above it. */
.arch { list-style: none; margin: 0.9rem 0 0; padding: 0; max-width: none; display: grid; }
.arch li {
  margin: 0; position: relative; border: 1px solid var(--color-border); border-radius: 9px;
  background: var(--color-bg-subtle); padding: 0.55rem 0.8rem; font-size: var(--text-sm); line-height: 1.4;
}
.arch li + li { margin-top: 1.2rem; }
.arch li + li::before {
  content: "↓"; position: absolute; left: 50%; top: -1.12rem; transform: translateX(-50%);
  color: var(--color-interactive); font-size: 1.05rem; line-height: 1;
}
.arch li b {
  display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--color-interactive); margin-bottom: 0.12rem;
}

/* Technology badges. */
.badges { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 1rem 0 0; padding: 0; max-width: none; }
.badges li {
  margin: 0; border: 1px solid var(--color-border); border-radius: 999px;
  background: var(--color-surface); padding: 0.34rem 0.8rem;
  font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted);
}

/* Collapsible implementation stages, so the technical detail stays out of the
   way of the recruiter-facing sections above it. */
.stage-list { margin: 1.1rem 0 0; display: grid; gap: 0.6rem; }
.stage-list details {
  border: 1px solid var(--color-border); border-radius: 10px;
  background: var(--color-surface); padding: 0.1rem 1rem;
}
.stage-list summary {
  cursor: pointer; padding: 0.75rem 0; font-weight: 600; font-size: 0.95rem;
  display: flex; align-items: baseline; gap: 0.6rem; list-style: none;
}
.stage-list summary::-webkit-details-marker { display: none; }
.stage-list summary .stage-no {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-text-muted);
}
.stage-list summary::after { content: "+"; margin-left: auto; color: var(--color-interactive); font-weight: 700; }
.stage-list details[open] summary::after { content: "−"; }
.stage-list details > p,
.stage-list details > ul { margin-bottom: 0.9rem; font-size: var(--text-sm); }

/* Time-saving calculator. Native number inputs, no dependencies. */
.calc {
  border: 1px solid var(--color-border); border-radius: var(--radius);
  background: var(--color-surface); padding: 1.1rem 1.2rem 1.2rem;
  margin: 1.3rem 0 0; box-shadow: var(--shadow-sm);
}
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: 0.9rem 1.2rem; }
.calc-field { display: flex; flex-direction: column; margin: 0; }
.calc-field span { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: 0.35rem; }
.calc-field input {
  width: 100%; min-height: 44px; margin-top: auto; padding: 0.5rem 0.65rem; font: inherit; font-size: 1rem;
  color: var(--color-text); background: var(--color-bg);
  border: 1px solid var(--color-border); border-radius: 8px;
}
.calc-out {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.6rem;
  margin: 1.15rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--color-border);
}
.calc-out > div { border: 1px solid var(--color-border); border-radius: 9px; background: var(--color-bg-subtle); padding: 0.6rem 0.75rem; }
.calc-out dt { font-size: var(--text-xs); color: var(--color-text-muted); margin: 0; }
.calc-out dd { margin: 0.15rem 0 0; font-size: 1.2rem; font-weight: 700; line-height: 1.2; color: var(--color-interactive); }
.calc-note { margin: 0.9rem 0 0; font-size: var(--text-xs); color: var(--color-text-muted); }

/* ---------- procurement lifecycle case study ---------- */
/* Added for /case-studies/procurement-agreement-lifecycle/. Same tokens and
   borders as the automation case study above; nothing here changes an existing
   component. */

/* SharePoint column groups: three cards of field names, read as a list rather
   than prose so the metadata is scannable. */
.field-list { list-style: none; margin: 0.3rem 0 0; padding: 0; max-width: none; font-size: var(--text-sm); }
.field-list li { margin: 0; padding: 0.34rem 0; border-bottom: 1px solid var(--color-border); }
.field-list li:last-child { border-bottom: 0; }

/* Approval fork. Two branches sit side by side under the review step and stack
   below 600px, where the labels would otherwise wrap into each other. */
.fork { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.7rem; margin: 1.3rem 0 0; }
.fork > div {
  border: 1px solid var(--color-border); border-left: 3px solid var(--color-border);
  border-radius: 9px; background: var(--color-surface); padding: 0.55rem 0.8rem;
  font-size: var(--text-sm); line-height: 1.4;
}
.fork .is-approved { border-left-color: var(--color-accent); }
.fork .is-declined { border-left-color: var(--color-text-muted); color: var(--color-text-muted); }
.fork b {
  display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--color-interactive); margin-bottom: 0.15rem;
}
.fork .is-declined b { color: var(--color-text-muted); }

/* The procurement calculator takes four inputs, so it uses a 2x2 block rather
   than the three-across layout of the notification calculator. */
.calc-grid.calc-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .calc-grid.calc-grid-4 { grid-template-columns: 1fr; } }

/* Continues the architecture chain after the approval fork, so the first node
   below the fork still shows its connecting arrow. */
.arch.arch-cont > li:first-child { margin-top: 1.3rem; }
.arch.arch-cont > li:first-child::before {
  content: "↓"; position: absolute; left: 50%; top: -1.15rem; transform: translateX(-50%);
  color: var(--color-interactive); font-size: 1.05rem; line-height: 1;
}

/* Three-column variant for short-content cards such as the SharePoint field
   groups, where the default 15rem minimum would leave an orphan card alone. */
.grid.grid-tight { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }

/* ---------- Acrobat diagnostic collection case study ---------- */
/* Added for /case-studies/acrobat-diagnostic-log-collection/. Additive only. */

/* Before and after figures side by side with an arrow between. Fixed three
   tracks so the arrow stays centred even on a 320px screen. */
.impact-pair {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.55rem; align-items: stretch; margin: 1.3rem 0 0;
}
.impact-card {
  border: 1px solid var(--color-border); border-radius: var(--radius);
  background: var(--color-surface); padding: 0.9rem 1rem; box-shadow: var(--shadow-sm);
}
.impact-card.is-after { border-color: color-mix(in srgb, var(--color-accent) 55%, transparent); }
.impact-label {
  display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-text-muted);
}
.impact-value {
  display: block; font-size: clamp(1.7rem, 5.5vw, 2.4rem); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.02em; color: var(--color-interactive);
  margin: 0.2rem 0 0.15rem;
}
.impact-unit { font-size: var(--text-xs); color: var(--color-text-muted); }
.impact-arrow { align-self: center; color: var(--color-text-muted); font-size: 1.1rem; }

/* ---------- evidence table (skills page) ---------- */
/* Capability on the left, the case study and figure that proves it on the
   right. Stacks below 720px, where two columns would squeeze both. */
.evidence { margin: 1.2rem 0 0; }
.evidence > div {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 0.3rem 1.5rem; padding: 0.85rem 0; border-top: 1px solid var(--color-border);
}
.evidence > div:last-child { border-bottom: 1px solid var(--color-border); }
.evidence dt { font-weight: 600; font-size: 0.95rem; }
.evidence dd { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); max-width: 60ch; }
.evidence dd strong { color: var(--color-text); font-weight: 600; }
@media (max-width: 720px) { .evidence > div { grid-template-columns: 1fr; } }

/* Print button sits under the related links in each case study aside. */
.print-btn { margin-top: 1rem; }

/* ---------- print ---------- */
/* Readers forward PDFs, so a case study has to hold up on paper: chrome is
   dropped, collapsed stages are opened, and links keep their text. */
@media print {
  .site-header, .site-footer, .cta-band, .skip-link, .toc, .pager,
  .theme-toggle, .print-btn, .actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .container { width: 100%; max-width: none; padding: 0; }
  .split { display: block; }
  .split aside { margin-top: 1.2rem; }
  .page-head { padding: 0 0 0.5rem; }
  h1 { font-size: 22pt; }
  h2 { break-after: avoid; page-break-after: avoid; }
  .card, .facts, .diagram, .callout, .calc, .stage-list details, .arch li, .compare > section {
    border-color: #bbb; box-shadow: none; background: #fff;
  }
  .stage-list details:not([open]) > *:not(summary) { display: block; }
  .stage-list summary::after { content: ""; }
  a { color: #000; }
  .impact-pair { break-inside: avoid; page-break-inside: avoid; }
  .card, figure, table { break-inside: avoid; page-break-inside: avoid; }
}
