/* ==========================================================================
   Wagoner Enterprises site stylesheet
   Direction B "Federal Record": warm paper ground, Source Serif 4 display,
   IBM Plex Sans UI, navy + oxblood, 3px radii, hairline rules.
   ========================================================================== */

:root {
  /* Ground + surface */
  --paper:        #F6F5F1;
  --surface:      #FFFFFF;
  --surface-sunk: #F6F5F1;

  /* Ink */
  --ink:          #14192A;
  --ink-2:        #33415C;
  --ink-3:        #4C5668;
  --ink-4:        #626B7B;
  --ink-muted:    #6F6A5C;

  /* Brand */
  --navy:         #16294A;
  --navy-deep:    #0E1B33;
  --navy-line:    #22304B;
  --accent:       #8C2B2B;
  --accent-soft:  #C98B8B;

  /* Rules */
  --rule:         #DCD8CE;
  --rule-light:   #E5E2DA;
  --rule-strong:  #C6C1B4;
  --rule-stone:   #C9C5B9;

  /* On navy */
  --on-navy:      #FFFFFF;
  --on-navy-2:    #C3CCDC;
  --on-navy-3:    #A8B3C6;
  --on-navy-4:    #9EAAC0;
  --on-navy-5:    #8C97AC;
  --on-navy-6:    #7F8CA4;
  --on-navy-line: #6E7E9B;

  /* Type */
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ui: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Icons (used as CSS masks so they inherit colour) */
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.4 6.4 11.6 12.8 5.2' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10m0 0-3.6-3.6M13 8l-3.6 3.6' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  /* Metrics */
  --radius: 3px;
  --gutter: 64px;
  --section-y: 84px;
  --maxw: 1440px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 18px; background: var(--navy); color: #FFF; font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; color: #FFF; }

/* --------------------------------------------------------------- layout -- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--section-y) 0; }
.section--paper { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--tight { padding-top: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

.stack { display: flex; flex-direction: column; gap: 24px; }

/* --------------------------------------------------------------- header -- */

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 86px; padding: 12px var(--gutter);
  background: var(--surface); border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 40;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand:hover { color: inherit; }
.brand-mark { flex: 0 0 auto; width: 38px; height: 38px; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand-name { font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: .15em; color: var(--navy); white-space: nowrap; }
.brand-sub { font-size: 9.5px; font-weight: 500; line-height: 1; letter-spacing: .2em; color: var(--ink-muted); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; display: flex; align-items: center; min-height: 46px;
  padding: 0 16px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-2); transition: color .15s ease;
  white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 8px;
  height: 2px; background: transparent; transition: background .15s ease;
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { background: var(--rule-stone); }
.nav-link.is-active { color: var(--accent); }
.nav-link.is-active::after { background: var(--accent); }

.nav-divider { width: 1px; height: 26px; background: var(--rule); margin: 0 16px; }

.nav-toggle { display: none; }

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius);
  font-family: var(--ui); font-size: 14.5px; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--navy); color: var(--on-navy); }
.btn-primary:hover { background: var(--navy-deep); color: var(--on-navy); }
.btn-secondary { background: transparent; border-color: var(--rule-strong); color: var(--navy); }
.btn-secondary:hover { background: #EDEBE4; border-color: var(--navy); color: var(--navy); }
.btn-onnavy { background: var(--surface); color: var(--navy); }
.btn-onnavy:hover { background: #EDEBE4; color: var(--navy); }
.btn-onnavy-ghost { background: transparent; border-color: var(--on-navy-line); color: var(--on-navy); }
.btn-onnavy-ghost:hover { background: rgba(255,255,255,.08); color: var(--on-navy); }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--accent);
}
.link-arrow svg { transition: transform .15s ease; }
.link-arrow:hover svg, .card:hover .link-arrow svg { transform: translateX(3px); }

/* ---------------------------------------------------------- section head -- */

.eyebrow { display: flex; align-items: center; gap: 16px; }
.eyebrow::before { content: ""; flex: 0 0 auto; width: 36px; height: 2px; background: var(--accent); }
.eyebrow > span { font-size: 11px; font-weight: 600; letter-spacing: .26em; color: var(--accent); }
.section--navy .eyebrow::before { background: var(--accent-soft); }
.section--navy .eyebrow > span { color: var(--accent-soft); }

h1.display {
  margin: 26px 0 0; max-width: 980px; font-family: var(--display);
  font-size: clamp(34px, 3.9vw, 56px); font-weight: 600; line-height: 1.13;
  letter-spacing: -.012em; text-wrap: balance;
}
h2.display {
  margin: 24px 0 0; max-width: 840px; font-family: var(--display);
  font-size: clamp(28px, 2.7vw, 38px); font-weight: 600; line-height: 1.22;
  letter-spacing: -.008em; text-wrap: balance;
}
h2.display--wide { max-width: 940px; }
.section--navy h2.display { color: var(--on-navy); max-width: 760px; }

.lede { margin: 22px 0 0; max-width: 780px; font-size: 17.5px; line-height: 1.66; color: var(--ink-3); text-wrap: pretty; }
.lede--lg { font-size: 18px; }
.section--navy .lede { color: var(--on-navy-2); }

.fineprint { margin: 24px 0 0; font-size: 12.5px; letter-spacing: .03em; color: var(--ink-muted); }
.section--navy .fineprint { color: var(--on-navy-4); }

.label {
  display: block; font-size: 10.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted);
}
.label--accent { color: var(--accent); letter-spacing: .16em; }

/* ----------------------------------------------------------------- hero -- */

.hero { padding: var(--section-y) 0 72px; }

/* ------------------------------------------------------------ value band -- */

.band {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.band > * { display: flex; flex-direction: column; gap: 10px; padding: 30px; border-left: 1px solid var(--rule-light); }
.band > *:first-child { border-left: 0; }
.band-num { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.band-stat { font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1; color: var(--navy); }
.band-title { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.band-desc { font-size: 12.5px; line-height: 1.5; color: var(--ink-4); }

/* ---------------------------------------------------------------- cards -- */

.card {
  display: flex; flex-direction: column; gap: 14px; padding: 32px;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.section--paper .card { background: var(--surface-sunk); }
a.card:hover, .card--link:hover { border-color: var(--rule-strong); box-shadow: 0 14px 30px -22px rgba(20,25,42,.35); color: inherit; }
.card h3 { font-size: 19px; line-height: 1.35; color: var(--ink); }
.card h3.display { margin: 0; font-family: var(--display); font-size: 24px; line-height: 1.28; }
.card p { margin: 0; font-size: 15px; line-height: 1.62; color: var(--ink-3); }
.card .link-arrow { margin-top: auto; padding-top: 14px; }
.card-icon { display: block; width: 26px; height: 26px; }
.card-list { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--rule); }
.card-list span { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }

/* -------------------------------------------------------- module (split) -- */

.split {
  display: grid; grid-template-columns: 1.45fr 1fr;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.split:hover { border-color: var(--rule-strong); box-shadow: 0 14px 30px -22px rgba(20,25,42,.35); }
.split-main { display: flex; flex-direction: column; gap: 16px; padding: 34px; }
.split-main h3 { font-family: var(--display); font-size: 27px; font-weight: 600; line-height: 1.2; }
.split-main > p { margin: 0; font-size: 16px; line-height: 1.64; color: var(--ink-3); }
.split-side {
  display: flex; flex-direction: column; gap: 22px; padding: 34px;
  background: var(--surface-sunk); border-left: 1px solid var(--rule-light);
}
.section--paper .split { background: var(--surface-sunk); }
.section--paper .split-side { background: var(--surface); border-left-color: var(--rule); }
.split-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--rule-light);
}
.split-foot small { font-size: 11.5px; color: var(--ink-muted); }

.factlet { display: flex; flex-direction: column; gap: 5px; }
.factlet > span:last-child { font-size: 14.5px; line-height: 1.58; color: var(--ink-2); }

/* ------------------------------------------------------------ checklist -- */

.checklist { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.5; color: var(--ink-2);
}
.checklist li::before {
  content: ""; flex: 0 0 auto; width: 15px; height: 15px; margin-top: 3px;
  background-color: var(--accent);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}
.section--navy .checklist li { color: var(--on-navy-2); font-size: 15.5px; line-height: 1.62; }
.section--navy .checklist li::before { background-color: var(--accent-soft); margin-top: 4px; }

/* ---------------------------------------------------------------- chips -- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 12px; border: 1px solid var(--rule-stone); border-radius: var(--radius);
  background: var(--surface); font-size: 12px; font-weight: 500; color: var(--ink-2);
}
.split-side .chip { background: var(--surface); }
.section--paper .split-side .chip { background: var(--surface-sunk); }
.chip--status { padding: 5px 10px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }

/* ------------------------------------------------------------- deflist -- */

.deflist { border-top: 1px solid var(--rule); }
.deflist-row {
  display: grid; grid-template-columns: 340px 1fr; gap: 40px;
  padding: 26px 0; border-bottom: 1px solid var(--rule-light);
}
.deflist-row h3 { font-size: 18px; line-height: 1.4; }
.deflist-row p { margin: 0; max-width: 860px; font-size: 15.5px; line-height: 1.64; color: var(--ink-3); }

/* ----------------------------------------------------------------- steps -- */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--navy); }
.steps > * { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-left: 1px solid var(--rule); }
.steps > *:first-child { border-left: 0; padding-left: 0; }
.steps > *:last-child { padding-right: 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy);
  font-family: var(--display); font-size: 15px; font-weight: 700; color: #FFF;
}
.step-num--end { background: var(--accent); }
.steps h3 { font-size: 18px; }
.steps p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-3); }

/* ------------------------------------------------------------- rowtable -- */

.rowtable { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.rowtable-row {
  display: grid; grid-template-columns: 300px 1fr 220px; gap: 32px; align-items: center;
  padding: 26px 30px; border-bottom: 1px solid var(--rule-light);
}
.rowtable-row:last-child { border-bottom: 0; }
.rowtable-row h3 { font-size: 17px; }
.rowtable-row p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-3); }

/* ------------------------------------------------------------- listcard -- */

.listcard { display: flex; flex-direction: column; padding: 34px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface-sunk); }
.section--paper .listcard { background: var(--surface-sunk); }
.listcard-rows { display: flex; flex-direction: column; margin-top: 16px; }
.listcard-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.listcard-row:last-child { border-bottom: 0; }
.listcard-row > div { display: flex; flex-direction: column; gap: 4px; }
.listcard-row strong { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.listcard-row span { font-size: 14px; line-height: 1.5; color: var(--ink-3); }

/* ------------------------------------------------------------ pullquote -- */

.pullquote {
  display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center;
  padding: 34px 40px; border-left: 3px solid var(--accent); background: var(--surface-sunk);
}
.section--paper .pullquote { background: var(--surface-sunk); }
.pullquote q, .pullquote > p:first-child {
  margin: 0; quotes: none; font-family: var(--display);
  font-size: 25px; font-weight: 600; line-height: 1.34; color: var(--ink);
}
.pullquote > p:last-child { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--ink-3); }

/* ----------------------------------------------------------- testimonial -- */

.testimonial {
  margin: 48px 0 0; padding: 36px 44px; border-left: 3px solid var(--accent);
  background: var(--surface-sunk);
}
.testimonial blockquote { margin: 0; }
.testimonial blockquote p {
  margin: 0 0 16px; max-width: 880px; font-family: var(--display);
  font-size: 20px; font-weight: 400; line-height: 1.55; color: var(--ink);
}
.testimonial blockquote p:last-child { margin-bottom: 0; }
.testimonial figcaption {
  display: flex; flex-direction: column; gap: 2px; margin-top: 24px;
  padding-top: 18px; border-top: 1px solid var(--rule);
}
.testimonial figcaption strong { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.testimonial figcaption span { font-size: 14px; color: var(--ink-3); }
@media (max-width: 720px) {
  .testimonial { padding: 26px 22px; }
  .testimonial blockquote p { font-size: 17.5px; }
}
@media print { .testimonial { break-inside: avoid; } }

/* ------------------------------------------------------------------ note -- */

.note {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-left: 3px solid var(--accent);
  background: var(--surface-sunk); font-size: 14px; line-height: 1.6; color: var(--ink-3);
}
.note--todo {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 26px; border: 1px dashed var(--rule-strong); border-left-width: 1px;
  border-radius: var(--radius); background: var(--surface);
}
.badge-todo {
  flex: 0 0 auto; padding: 4px 9px; border-radius: var(--radius); background: var(--accent);
  font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #FFF;
}

/* ------------------------------------------------------------- cta band -- */

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px; padding: 76px 0; }
.cta-band .col { display: flex; flex-direction: column; max-width: 760px; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; flex: 0 0 auto; min-width: 300px; }
.cta-band .actions small { font-size: 12.5px; line-height: 1.55; color: var(--on-navy-4); }

/* ---------------------------------------------------------------- figure -- */

.figure { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); padding: 28px; }
.section--paper .figure { background: var(--surface-sunk); }
.figure svg, .figure img { display: block; width: 100%; height: auto; }
.figure figcaption { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule-light); font-size: 13px; line-height: 1.6; color: var(--ink-4); }
.figure figcaption b { color: var(--ink-2); }

/* ---------------------------------------------------------------- footer -- */

.site-footer { background: var(--navy-deep); color: var(--on-navy-3); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .brand-name { color: #FFF; font-size: 14px; }
.footer-brand .brand-sub { color: var(--on-navy-5); }
.footer-brand p { margin: 0; max-width: 400px; font-size: 14px; line-height: 1.62; color: var(--on-navy-3); }
.footer-brand p.small { font-size: 13px; line-height: 1.6; color: var(--on-navy-5); }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col .label { color: var(--on-navy-6); }
.footer-col a, .footer-col span { font-size: 14px; color: #B9C2D2; }
.footer-col a:hover { color: #FFF; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px; padding: 22px 0; border-top: 1px solid var(--navy-line);
}
.footer-bottom span { font-size: 12.5px; color: var(--on-navy-6); }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1180px) {
  :root { --gutter: 40px; }
  .rowtable-row { grid-template-columns: 260px 1fr 200px; gap: 24px; }
  .deflist-row { grid-template-columns: 280px 1fr; gap: 28px; }
  .pullquote { grid-template-columns: 1fr 340px; gap: 32px; }
}

@media (max-width: 1024px) {
  .nav-link { padding: 0 11px; font-size: 12px; }
  .nav-divider { margin: 0 10px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band > *:nth-child(3) { border-left: 0; }
  .band > *:nth-child(n+3) { border-top: 1px solid var(--rule-light); }
  .split { grid-template-columns: 1fr; }
  .split-side { border-left: 0; border-top: 1px solid var(--rule-light); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps > *:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps > *:nth-child(n+3) { border-top: 1px solid var(--rule); padding-top: 28px; }
  .steps > *:nth-child(2) { padding-right: 0; }
}

@media (max-width: 860px) {
  :root { --gutter: 24px; --section-y: 60px; }

  .site-header { flex-wrap: wrap; position: static; }
  .nav {
    order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--rule);
  }
  .nav-link { min-height: 52px; padding: 0 4px; font-size: 13.5px; letter-spacing: .08em; }
  .nav-link::after { left: 4px; right: 4px; bottom: 10px; }
  .nav-divider { display: none; }
  .nav .btn { width: 100%; margin-top: 10px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; }
  .band > * { border-left: 0; border-top: 1px solid var(--rule-light); }
  .band > *:first-child { border-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps > * { border-left: 0; padding: 24px 0; border-top: 1px solid var(--rule); }
  .steps > *:first-child { border-top: 0; padding-top: 24px; }
  .deflist-row { grid-template-columns: 1fr; gap: 10px; }
  .rowtable-row { grid-template-columns: 1fr; gap: 14px; }
  .rowtable-row .btn { width: 100%; }
  .pullquote { grid-template-columns: 1fr; gap: 20px; padding: 26px 24px; }
  .pullquote q, .pullquote > p:first-child { font-size: 21px; }
  .cta-band { gap: 32px; padding: 56px 0; }
  .cta-band .actions { width: 100%; min-width: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .split-main, .split-side, .card, .listcard { padding: 24px; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; flex: 1 1 240px; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 13px; letter-spacing: .12em; }
  .brand-sub { font-size: 9px; letter-spacing: .16em; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ----------------------------------------------------------------- print -- */

@media print {
  :root { --gutter: 0; --section-y: 24pt; }
  body { background: #FFF; font-size: 10.5pt; }
  .site-header, .site-footer, .cta-band, .skip-link { display: none !important; }
  /* Never set break-inside on a section: a box taller than the page gets clipped, not paginated. */
  .section, .section--paper, .section--navy { background: #FFF !important; color: #000 !important; border: 0; }
  .section--navy h2.display, .section--navy .lede { color: #000 !important; }
  .card, .split, .figure { break-inside: avoid; }
  .listcard, .rowtable { border-color: #999; }
  /* Keep the ROWS together, never the whole table: tall containers clip. */
  .listcard-row, .rowtable-row, .deflist-row, .band > *, .steps > * { break-inside: avoid; }
  .card, .split, .figure, .listcard, .rowtable { border-color: #999; box-shadow: none !important; }
  a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ----------------------------------------------------- diagram + extras -- */

.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps--3 > *:nth-child(4) { border-left: 0; padding-left: 0; }
.steps--3 > *:nth-child(n+4) { border-top: 1px solid var(--rule); padding-top: 28px; }
.steps--3 > *:nth-child(3) { padding-right: 0; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-4); }
.breadcrumb a { color: var(--ink-4); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--rule-strong); }
.breadcrumb b { font-weight: 600; color: var(--ink-2); }

.kicker { margin: 10px 0 0; font-size: 17px; font-weight: 500; line-height: 1.5; color: var(--ink-2); }

.twocol { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.twocol--wide { grid-template-columns: 1fr 460px; }

.stat-row { display: flex; flex-wrap: wrap; gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat b { font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--navy); }
.stat span { font-size: 13px; color: var(--ink-4); }

@media (max-width: 1024px) { .steps--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px)  { .steps--3 { grid-template-columns: 1fr; } .twocol, .twocol--wide { grid-template-columns: 1fr; gap: 28px; } }


/* ------------------------------------------------- diagram presentation -- */

/* Reference architectures are drawn at 1160px. Shrinking one to phone width
   makes its labels unreadable, so it scrolls horizontally inside the figure
   instead, and a full-resolution export is linked underneath. */
.figure__media { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.figure__media svg { display: block; min-width: 1160px; }
.figure__media:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.figure__actions { margin: 14px 0 0; }
.figure__actions .link-arrow { font-size: 13.5px; }
.figure__actions svg { display: inline-block; width: 15px; height: 15px; flex: none; }

@media (min-width: 1100px) {
  .figure__media { overflow-x: visible; }
  .figure__media svg { min-width: 0; }
}

@media print {
  .figure__media { overflow: visible !important; }
  .figure__media svg { min-width: 0 !important; width: 100% !important; }
  .figure__actions { display: none !important; }
}


/* ------------------------------------------------ specimen / spec blocks -- */

.spec-block {
  margin: 0; padding: 22px 24px; overflow-x: auto;
  border: 1px solid var(--rule); border-left: 3px solid var(--navy);
  border-radius: var(--radius); background: var(--surface);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.7; color: var(--ink-2);
  white-space: pre; tab-size: 2;
}
.section--paper .spec-block { background: var(--surface-sunk); }
.spec-block b { font-weight: 600; color: var(--ink); }
.spec-block i { font-style: normal; color: var(--ink-4); }

.spec-caption {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 0 0 12px; font-size: 12.5px; color: var(--ink-4);
}
.badge-spec {
  flex: 0 0 auto; padding: 4px 9px; border-radius: var(--radius);
  background: var(--navy); font-size: 10px; font-weight: 700;
  letter-spacing: .14em; color: #FFFFFF;
}

.doc-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; margin-top: 28px; }
.doc-toc a { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule-light); font-size: 15px; }
.doc-toc a b { flex: 0 0 auto; font-family: var(--display); font-weight: 700; color: var(--accent); }

@media (max-width: 860px) {
  .doc-toc { grid-template-columns: 1fr; }
  .spec-block { font-size: 11.5px; padding: 16px; }
}
@media print {
  .spec-block { break-inside: avoid; border-color: #999; font-size: 9pt; white-space: pre-wrap; }
}

code {
  padding: 1px 5px; border: 1px solid var(--rule); border-radius: 2px;
  background: var(--surface-sunk);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em; color: var(--ink-2);
}
.card code { background: var(--paper); }

/* A definition list inside a two-column layout has no room for a fixed label
   column, so stack the term above its description there. */
.twocol .deflist-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }

/* ------------------------------------------------- executive brief strip -- */
/* Three short answers a C-level reader wants before the technical detail. */

.exec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--navy); margin-top: 40px; }
.exec > div { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px 4px; border-left: 1px solid var(--rule); }
.exec > div:first-child { border-left: 0; padding-left: 0; }
.exec h3 { font-family: var(--display); font-size: 21px; line-height: 1.3; color: var(--ink); }
.exec p { margin: 0; font-size: 15px; line-height: 1.62; color: var(--ink-3); }

/* ------------------------------------------------------ comparison table -- */

.compare-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.section--paper .compare-wrap { background: var(--surface-sunk); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.compare caption { padding: 16px 20px; text-align: left; font-size: 12.5px; color: var(--ink-4); caption-side: bottom; border-top: 1px solid var(--rule-light); }
.compare th, .compare td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-light); }
.compare thead th { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); background: var(--paper); border-bottom: 1px solid var(--rule); }
.compare thead th.is-us { color: var(--accent); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 26%; }
.compare td { color: var(--ink-3); }
.compare td.is-us { color: var(--ink); font-weight: 500; background: rgba(22,41,74,.035); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* -------------------------------------------------------- product screen -- */
/* Sanitized product screenshots, framed so they read as an application. */

.shot { margin: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); padding: 28px; }
.section--paper .shot { background: var(--surface-sunk); }
.shot__frame { border: 1px solid var(--rule-strong); border-radius: 6px; overflow: hidden; background: #FFF; box-shadow: 0 22px 44px -30px rgba(20,25,42,.45); }
.shot__bar { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; background: #ECEAE4; border-bottom: 1px solid var(--rule); }
.shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: #CFCBC1; }
.shot__bar span { margin-left: 10px; font-size: 11.5px; letter-spacing: .04em; color: var(--ink-4); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule-light); font-size: 13px; line-height: 1.6; color: var(--ink-4); }
.shot figcaption b { color: var(--ink-2); }

@media (max-width: 1024px) { .exec { grid-template-columns: 1fr; } .exec > div { border-left: 0; padding: 22px 0 4px; border-top: 1px solid var(--rule); } .exec > div:first-child { border-top: 0; } }
@media (max-width: 860px) { .shot { padding: 14px; } }
@media print {
  .compare-wrap { overflow: visible; }
  .compare { min-width: 0; font-size: 9pt; }
  .compare { table-layout: fixed; }
  .compare th, .compare td { padding: 7pt 8pt; }
  .compare tbody th { width: 22%; }
  .compare thead { display: table-header-group; }
  /* Keep a heading with the content that follows it. */
  .eyebrow, h2.display, h3, .lede { break-after: avoid; }
  .compare tr { break-inside: avoid; }
  .shot { break-inside: avoid; }
  .exec { break-inside: avoid; }
}
