/* ============================================================
   THE SUBMISSION — design tokens
   A legal memorandum rendered as a website: ink, brass, oxblood,
   parchment. Continuous bracket-numbered paragraphs, a redacted
   memorandum as the hero signature, a notarial seal as the mark.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Display&family=Libre+Caslon+Text:ital@0;1&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --ink: #12151a;
  --ink-2: #191d24;
  --ink-3: #22262e;
  --redact: #0a0a0b;
  --paper: #efe9dc;
  --paper-dim: #cfc9bc;
  --parchment: #e8e1ce;
  --parchment-2: #ded5bd;
  --brass: #b4903f;
  --brass-bright: #d3ac5c;
  --oxblood: #7a2434;
  --oxblood-bright: #9c3247;
  --line: rgba(239, 233, 220, 0.14);
  --line-strong: rgba(239, 233, 220, 0.28);

  --display: 'Libre Caslon Display', 'Iowan Old Style', Georgia, serif;
  --serif: 'Libre Caslon Text', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;

  --max: 1180px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --radius: 2px;
}

@media (prefers-color-scheme: light) {
  :root { color-scheme: dark; }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint paper-grain texture on the ink field, tactile not decorative */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.02 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--brass); color: var(--redact); }

:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
}

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

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- layout shells ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

/* ---------- bound-volume spine (desktop only) ---------- */
.spine {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  color: var(--paper-dim);
  opacity: 0.55;
  z-index: 5;
  pointer-events: none;
  display: none;
}
@media (min-width: 1040px) { .spine { display: block; } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 21, 26, 0.86);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-word {
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--paper);
}
.brand-word small {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--brass);
  text-transform: uppercase;
}

.btn {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover { border-color: var(--brass); color: var(--brass-bright); }
.btn:active { transform: translateY(1px); }
.btn-solid {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--redact);
  font-weight: 600;
}
.btn-solid:hover { background: var(--brass-bright); border-color: var(--brass-bright); color: var(--redact); }
.btn-ghost-sm { padding: 0.5rem 0.85rem; font-size: 0.68rem; }

/* ---------- nav + hamburger ---------- */
.nav-links {
  display: none;
  gap: 1.8rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--brass-bright); }

.topbar-actions { display: flex; align-items: center; gap: 0.8rem; }
.nav-download { display: none; }

.hamburger {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex: none;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 var(--gutter) 1.2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.mobile-menu.open { max-height: 26rem; }
.mobile-menu a {
  text-decoration: none;
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.mobile-menu a:hover { color: var(--brass-bright); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-download { display: inline-flex; }
  .hamburger { display: none; }
}
@media (max-width: 899px) {
  .mobile-menu { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 6.5rem 0 5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-eyebrow { margin-bottom: 1.1rem; }

.hero h1 {
  font-family: Verdana, Geneva, sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--paper);
  max-width: 15ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--brass-bright);
}

.hero .dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--paper-dim);
  margin-top: 1.4rem;
  max-width: 42ch;
}

.hero-cta {
  margin-top: 2.4rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 2.6rem;
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--paper-dim);
}
.hero-meta strong { color: var(--brass); display: block; font-size: 0.95rem; margin-bottom: 0.15rem; }

/* redacted memorandum panel — the signature element */
.memo-panel {
  background: var(--parchment);
  color: var(--redact);
  border-radius: var(--radius);
  padding: 2.1rem 2rem 2.3rem;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(255,255,255,0.03) inset;
  transform: rotate(0.6deg);
  position: relative;
}
.memo-panel::before {
  content: 'EXHIBIT "A"';
  position: absolute;
  top: -0.6rem;
  right: 1.4rem;
  background: var(--redact);
  color: var(--brass-bright);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  padding: 0.3rem 0.6rem;
}
.memo-head {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: #55503f;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(10,10,11,0.18);
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
}
.memo-line {
  position: relative;
  min-height: 1.65em;
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.memo-line:last-child { margin-bottom: 0; }
.memo-text {
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  font-weight: 400;
  line-height: 1.5;
  display: block;
  padding: 0.15rem 0;
}
.memo-bar {
  position: absolute;
  inset: 0;
  background: var(--redact);
  transform-origin: right center;
  transition: transform 0.85s cubic-bezier(0.65, 0, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 140ms);
}
.memo-panel.revealed .memo-bar { transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  .memo-bar { transition: none; transform: scaleX(0); }
}

.memo-foot {
  margin-top: 1.3rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: #6b654f;
  border-top: 1px solid rgba(10,10,11,0.15);
  padding-top: 0.8rem;
}

/* ============================================================
   BRIEF POINT — the running paragraph-number device
   ============================================================ */
.brief-point {
  position: relative;
  padding-left: 3.4rem;
}
.brief-point::before {
  content: '[' attr(data-num) ']';
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--brass);
  letter-spacing: 0.02em;
}
@media (max-width: 620px) {
  .brief-point { padding-left: 0; }
  .brief-point::before {
    position: static;
    display: inline-block;
    margin-right: 0.55rem;
  }
}

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
.section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--line);
}
.section-parchment {
  background: var(--parchment);
  color: var(--redact);
  border-top: none;
}
.section-parchment .eyebrow { color: var(--oxblood); }
.section-parchment .rule { background: rgba(10,10,11,0.14); }

.section-head {
  max-width: 62ch;
  margin-bottom: 3rem;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin-top: 0.6rem;
}
.section-head p {
  margin-top: 1rem;
  color: var(--paper-dim);
  font-size: 1.05rem;
  max-width: 56ch;
}
.section-parchment .section-head p { color: #4a4437; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- four mechanisms ---------- */
.mechanisms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.6rem 3rem;
}
@media (max-width: 760px) { .mechanisms { grid-template-columns: 1fr; } }
.mech h3 {
  font-family: var(--display);
  font-size: 1.28rem;
  color: var(--brass-bright);
  margin-bottom: 0.55rem;
}
.mech p { color: var(--paper-dim); margin: 0; }
.mech-rule-note {
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--paper);
}

/* ---------- three memoranda (postures) ---------- */
.memoranda {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 860px) {
  .memoranda { grid-template-columns: 1fr; }
}
.memo-col {
  padding: 2rem 1.8rem;
  border-left: 1px solid var(--line);
}
.memo-col:first-child { border-left: none; }
.memo-col.is-hybrid { background: rgba(180, 144, 63, 0.06); }
.memo-col-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--brass);
  text-transform: uppercase;
}
.memo-col h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  margin: 0.5rem 0 1.2rem;
}
.memo-col dl { margin: 0; }
.memo-col dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-top: 1.15rem;
}
.memo-col dt:first-child { margin-top: 0; }
.memo-col dd {
  margin: 0.3rem 0 0;
  font-size: 0.94rem;
  color: var(--paper);
}
.posture-note {
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--paper-dim);
  max-width: 68ch;
}

/* ---------- capability catalogue (accordion) ---------- */
.catalogue { border-top: 1px solid var(--line); }
.cap {
  border-bottom: 1px solid var(--line);
}
.cap-head {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 1.3rem;
  padding: 1.5rem 0;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cap-head h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  flex: 1;
}
.cap-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
}
.cap-chevron {
  font-family: var(--mono);
  color: var(--paper-dim);
  transition: transform 0.3s ease;
  flex: none;
}
.cap[open] .cap-chevron { transform: rotate(45deg); }
.cap-body {
  padding: 0 0 1.9rem;
  color: var(--paper-dim);
}
.cap-body ul { margin: 0; padding-left: 1.2rem; }
.cap-body li { margin-bottom: 0.65rem; }
.cap-body li:last-child { margin-bottom: 0; }
.cap-body strong { color: var(--paper); }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }

/* ---------- practice-area docket grid ---------- */
.docket {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}
.docket-card {
  background: var(--ink);
  padding: 1.7rem 1.6rem 1.9rem;
  transition: background 0.25s ease;
}
.docket-card:hover { background: var(--ink-2); }
.docket-card.is-flag { background: rgba(122, 36, 52, 0.14); }
.docket-card h3 {
  font-family: var(--display);
  font-size: 1.14rem;
  color: var(--paper);
  margin-bottom: 0.8rem;
  padding-left: 2.6rem;
  position: relative;
}
.docket-card h3::before {
  content: '[' attr(data-num) ']';
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--brass);
}
.docket-held {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--oxblood-bright);
  margin-bottom: 0.6rem;
}
.docket-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--paper-dim);
}
.docket-card p + p { margin-top: 0.5rem; }

/* ---------- firm-ops icon cards ---------- */
.ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.8rem;
}
.ops-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.ops-card .mark {
  font-family: var(--mono);
  color: var(--brass);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ops-card h4 {
  font-family: var(--display);
  font-size: 1.08rem;
  margin: 0.55rem 0 0.5rem;
}
.ops-card p { margin: 0; color: var(--paper-dim); font-size: 0.9rem; }
.ops-highlight {
  border-color: var(--brass);
  background: rgba(180, 144, 63, 0.07);
}

/* ---------- regulatory caveats (parchment, marginal-note styling) ---------- */
.caveats { display: grid; gap: 2.1rem; }
.caveat {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  gap: 0;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(10,10,11,0.14);
}
.caveat:last-child { border-bottom: none; padding-bottom: 0; }
.caveat-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--oxblood);
}
.caveat h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.caveat p { margin: 0; color: #443f33; }
.caveat cite {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--oxblood);
}

/* ---------- discipline checklist ---------- */
.discipline {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 860px) { .discipline { grid-template-columns: 1fr; } }
.discipline-list { list-style: none; margin: 0; padding: 0; }
.discipline-list li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.9rem;
}
.discipline-list li:last-child { border-bottom: 1px solid var(--line); }
.discipline-list .seal {
  font-family: var(--mono);
  color: var(--brass);
}
.discipline-list strong { display: block; color: var(--paper); margin-bottom: 0.2rem; }
.discipline-list span { color: var(--paper-dim); font-size: 0.93rem; }

.hardware-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
table.hw { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
table.hw th, table.hw td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
table.hw th {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  background: var(--ink-2);
}
table.hw tr:last-child td { border-bottom: none; }
table.hw td:first-child { font-family: var(--serif); color: var(--paper); }
.hw-note {
  padding: 1rem;
  font-size: 0.82rem;
  color: var(--paper-dim);
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}

/* ---------- roadmap ---------- */
.roadmap { display: grid; gap: 0; }
.phase {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 2rem;
  padding: 2.1rem 0;
  border-top: 1px solid var(--line);
}
.roadmap .phase:last-child { border-bottom: 1px solid var(--line); }
.phase-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
}
.phase-label .days { display: block; color: var(--paper-dim); margin-top: 0.3rem; text-transform: none; letter-spacing: 0; }
.phase h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.phase p { margin: 0 0 0.5rem; color: var(--paper-dim); }
.phase .measure {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--paper);
  margin-top: 0.8rem;
}
.phase .measure span { color: var(--brass); }
@media (max-width: 640px) {
  .phase { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* ---------- closing / strategic point ---------- */
.closing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 860px) { .closing { grid-template-columns: 1fr; } }
.closing blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.35;
  color: var(--paper);
}
.closing blockquote strong { color: var(--brass-bright); font-weight: 400; }
.closing-cite {
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--paper-dim);
  letter-spacing: 0.08em;
}

/* ---------- contact ---------- */
.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.contact-email {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--paper);
  padding: 0.72rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.btn-copy { position: relative; }
.btn-copy.copied { border-color: var(--brass); color: var(--brass-bright); }

/* ---------- final CTA ---------- */
.cta-section {
  text-align: center;
  padding: 6rem 0 7rem;
}
.cta-section h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  max-width: 20ch;
  margin: 0 auto 1.2rem;
}
.cta-section p {
  color: var(--paper-dim);
  max-width: 48ch;
  margin: 0 auto 2.2rem;
  font-size: 1.05rem;
}
.cta-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.86rem;
  color: var(--paper-dim);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.2rem;
}
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }
footer h4 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.9rem;
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 0.5rem; }
footer a { text-decoration: none; color: var(--paper-dim); }
footer a:hover { color: var(--brass-bright); }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: var(--redact);
  padding: 0.7rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: var(--gutter); top: 0.8rem; }

/* ============================================================
   PRINT — the PDF is generated from this stylesheet
   ============================================================ */
@media print {
  @page { margin: 20mm 16mm; }
  .spine, .topbar, .cta-row, .btn, .skip-link, .foot-bottom a[href$=".pdf"] { display: none !important; }
  body {
    background: var(--paper) !important;
    color: var(--redact) !important;
    font-size: 11.5pt;
  }
  body::before { display: none; }
  /* .reveal / .memo-panel depend on scroll + IntersectionObserver, which
     never fire during headless print rendering — force everything visible. */
  .reveal { opacity: 1 !important; transform: none !important; }
  .cap { }
  .cap-body { display: block !important; }
  .cap[open] .cap-body, .cap:not([open]) .cap-body { display: block !important; }
  .section, .section-parchment { border-top: 1px solid #ccc2a6 !important; padding: 1.4rem 0 !important; }
  .section-parchment { background: var(--parchment) !important; }
  .hero { padding: 0 0 1.4rem; }
  .section-head { margin-bottom: 1.4rem !important; }
  /* Blanket dark-ink default — safer than enumerating every element, since
     the dark theme's near-white/paper-dim text colors are invisible against
     print's light backgrounds. Deliberately restore accent colors after. */
  body, body * { color: #1c1710 !important; }
  .eyebrow, .memo-col-label, .cap-tag, .caveat-num, .discipline-list .seal,
  .phase-label, .brief-point::before, .docket-card h3::before,
  .hero h1 em, .closing blockquote strong, .closing-cite, footer h4 {
    color: #8a6a24 !important;
  }
  .docket-held { color: #7a2434 !important; }
  a { color: #6b4a12 !important; text-decoration: underline; }
  /* these keep a dark navy background in print (unchanged from screen),
     so their text must stay light, not the blanket dark ink */
  table.hw th { color: #d8b968 !important; background: #1b2029 !important; }
  .hw-note { color: #cfc9bc !important; background: #1b2029 !important; }
  .memo-panel { box-shadow: none !important; transform: none !important; border: 1px solid #b9ac86; }
  .memo-bar { transform: scaleX(0) !important; }
  .docket { background: #b9ac86 !important; border-color: #b9ac86 !important; }
  .docket-card { background: var(--paper) !important; }
  .docket-card.is-flag { background: #f0dfe0 !important; }
  .cap-body { display: block !important; }
  .cap-chevron { display: none; }
  .cap-head { cursor: default; }
  a { color: #6b4a12 !important; text-decoration: underline; }
  .memoranda, .docket, .roadmap, .caveats, .discipline, .closing { break-inside: avoid; }
  footer { color: #443f33 !important; }
  footer a { color: #6b4a12 !important; }

  /* CSS Grid containers can paginate unpredictably in Chrome's print
     engine (observed: stray blank pages from a grid row taller than one
     page). Force simple block flow for print — reads better on paper too. */
  .hero-grid, .mechanisms, .memoranda, .docket, .ops-grid,
  .discipline, .closing, .foot-grid {
    display: block !important;
  }
  .hero-grid > div:first-child { margin-bottom: 2rem; }
  .memo-col { border-left: none !important; border-top: 1px solid #ccc2a6; padding-top: 1.2rem; margin-top: 1.2rem; }
  .memo-col:first-child { border-top: none; margin-top: 0; padding-top: 0; }
  .mech, .ops-card { margin-bottom: 1.5rem; }
  .docket-card { border-bottom: 1px solid #ccc2a6; margin-bottom: 1.2rem; padding-bottom: 1.2rem; }
  .closing > div:first-child { margin-bottom: 1.5rem; }
  .foot-grid > div { margin-bottom: 1.5rem; }
}
