/* ==========================================================
   Ballast — Notes / white-paper template
   Loaded only on /notes pages, on top of colors_and_type.css + site.css.
   Section surfaces are set per <section>; <body> carries no surface class, so
   the per-surface token rules resolve correctly inside each section (see the
   invisible-text fix on the Approach page). Reusable: a new paper needs only
   content.
   ========================================================== */

/* ───────── TITLE BLOCK (ink, full-bleed) ───────── */
.paper-hero { padding: var(--pad-y) var(--pad-x); position: relative; overflow: hidden; }
.paper-hero .eyebrow {
  font-family: var(--bl-display); font-weight: 700; font-size: 11px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--kicker);
  margin-bottom: 48px; padding-bottom: 18px; border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
}
.paper-hero h1 {
  font-family: var(--bl-display); font-weight: 900;
  font-size: clamp(40px, 6vw, 92px); line-height: .92; letter-spacing: .015em;
  text-transform: uppercase; margin: 0; text-wrap: balance; color: var(--fg);
}
.paper-hero .subtitle {
  font-family: var(--bl-edit); font-style: italic; font-weight: 300;
  font-size: clamp(22px, 2.6vw, 34px); line-height: 1.25; color: var(--fg);
  margin: 28px 0 0; max-width: 20ch; text-wrap: balance;
}
.paper-hero .descriptor {
  font-family: var(--bl-text); font-weight: 300; font-size: 17px; line-height: 1.7;
  color: var(--soft); text-wrap: pretty;
  margin: 40px 0 0; padding-top: 32px; border-top: 1px solid var(--rule); max-width: 680px;
}
.paper-hero .watermark {
  position: absolute; right: -40px; bottom: -80px;
  font-family: var(--bl-display); font-weight: 900; font-size: 460px;
  line-height: .8; color: var(--fg); opacity: .04;
  pointer-events: none; user-select: none; text-transform: uppercase;
}
@media (max-width: 720px) {
  .paper-hero .eyebrow { flex-direction: column; gap: 8px; align-items: flex-start; }
  .paper-hero .watermark { font-size: 280px; }
}

/* ───────── SECTION FRAME — Arabic numeral kicker ───────── */
.paper-sec { padding: calc(var(--pad-y) * .8) var(--pad-x); }
.sec-wrap { max-width: 760px; margin: 0 auto; }
.sec-head-num { margin-bottom: 44px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.sec-num {
  display: block; font-family: var(--bl-display); font-weight: 900;
  font-size: clamp(40px, 5vw, 60px); line-height: .9; letter-spacing: .02em;
  color: var(--softer); margin-bottom: 10px;
}
.sec-title {
  font-family: var(--bl-display); font-weight: 800;
  font-size: clamp(26px, 3vw, 40px); line-height: 1.02; letter-spacing: .02em;
  text-transform: uppercase; color: var(--fg); margin: 0; text-wrap: balance;
}

/* ───────── PROSE ───────── */
.prose p {
  font-family: var(--bl-text); font-weight: 300; font-size: 18px; line-height: 1.75;
  color: var(--soft); text-wrap: pretty; margin: 0;
}
.prose p + p { margin-top: 22px; }
.prose em { font-family: var(--bl-edit); font-style: italic; font-size: 1.04em; color: var(--fg); }
.prose .lead {
  font-family: var(--bl-edit); font-style: italic; font-weight: 300;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; color: var(--fg);
  margin: 0 0 32px; text-wrap: balance;
}

/* ───────── NUMBERED POINTS (01 / 02 / 03 within a section) ───────── */
.points { list-style: none; margin: 36px 0 0; padding: 0; }
.point {
  display: grid; grid-template-columns: 56px 1fr; gap: 24px; align-items: start;
  padding: 26px 0; border-top: 1px solid var(--rule);
}
.point:last-child { border-bottom: 1px solid var(--rule); }
.point .n {
  font-family: var(--bl-display); font-weight: 800; font-size: 20px;
  letter-spacing: .06em; color: var(--kicker); padding-top: 2px;
}
.point .t { font-family: var(--bl-text); font-weight: 300; font-size: 17px; line-height: 1.7; color: var(--soft); }
.point .t b {
  font-family: var(--bl-display); font-weight: 800; font-size: 15px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--fg);
  display: block; margin-bottom: 8px;
}
.point .t em { font-family: var(--bl-edit); font-style: italic; color: var(--fg); }
@media (max-width: 560px) { .point { grid-template-columns: 1fr; gap: 8px; } }

/* ───────── STAT BLOCK ───────── */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin: 44px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.stat { padding: 36px 28px 36px 0; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: none; padding-right: 0; }
.stat .stat-num {
  font-family: var(--bl-display); font-weight: 900; font-size: clamp(40px, 5vw, 64px);
  line-height: .9; letter-spacing: .01em; color: var(--fg); margin-bottom: 14px;
}
.stat .stat-cap {
  font-family: var(--bl-text); font-weight: 300; font-size: 14px; line-height: 1.5; color: var(--soft);
}
@media (max-width: 680px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--rule); padding: 28px 0; }
  .stat:last-child { border-bottom: none; }
}

/* ───────── PULL QUOTE ───────── */
.pullquote {
  font-family: var(--bl-edit); font-style: italic; font-weight: 300;
  font-size: clamp(24px, 3vw, 36px); line-height: 1.22; color: var(--fg);
  margin: 44px 0; padding-left: 28px; border-left: 2px solid var(--fg);
  text-wrap: pretty;
}

/* ───────── PRACTICE BLOCK (named discipline + "counters" + body) ───────── */
.practice { padding: 36px 0; border-top: 1px solid var(--rule); }
.practice:last-child { border-bottom: 1px solid var(--rule); }
.practice h3 {
  font-family: var(--bl-display); font-weight: 800; font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.04; letter-spacing: .02em; text-transform: uppercase; color: var(--fg); margin: 0;
}
.practice .counters {
  font-family: var(--bl-display); font-weight: 700; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--kicker);
  margin: 12px 0 18px; line-height: 1.5;
}
.practice p { font-family: var(--bl-text); font-weight: 300; font-size: 17px; line-height: 1.7; color: var(--soft); margin: 0; }

/* ───────── CONTRAST TABLE (3-column) ───────── */
.ct-wide { max-width: 1000px; }
.ct-table { margin: 36px 0 0; border-top: 1.5px solid var(--fg); }
.ct-row {
  display: grid; grid-template-columns: 1fr 1.3fr 1.5fr; gap: 28px;
  padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: start;
}
.ct-head {
  font-family: var(--bl-display); font-weight: 700; font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--kicker);
  padding-bottom: 14px; border-bottom: 1px solid var(--rule);
}
.ct-row .ct-name {
  font-family: var(--bl-display); font-weight: 800; font-size: 16px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--fg); line-height: 1.15;
}
.ct-row .ct-does, .ct-row .ct-gap {
  font-family: var(--bl-text); font-weight: 300; font-size: 15px; line-height: 1.6; color: var(--soft);
}
@media (max-width: 760px) {
  .ct-head { display: none; }
  .ct-row { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .ct-row .ct-name { font-size: 15px; }
  .ct-row .ct-does::before { content: "Does — "; color: var(--kicker); font-weight: 600; }
  .ct-row .ct-gap::before  { content: "Leaves — "; color: var(--kicker); font-weight: 600; }
}

/* ───────── REFERENCES (hanging indent) ───────── */
.refs { margin: 36px 0 0; }
.refs li {
  font-family: var(--bl-text); font-weight: 300; font-size: 14px; line-height: 1.55;
  color: var(--soft); list-style: none;
  padding-left: 28px; text-indent: -28px; margin-bottom: 16px;
}
.refs li em { font-family: var(--bl-edit); font-style: italic; font-size: 1.05em; }

/* ───────── PDF OFFER BLOCK (thin rule-bordered, no fill) ───────── */
.pdf-offer {
  max-width: 760px; margin: 0 auto; padding: 36px 40px;
  border: 1px solid var(--rule);
}
.pdf-offer .k {
  font-family: var(--bl-display); font-weight: 700; font-size: 11px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--kicker); margin-bottom: 14px;
}
.pdf-offer .lead {
  font-family: var(--bl-edit); font-style: italic; font-weight: 300;
  font-size: clamp(19px, 2vw, 24px); line-height: 1.3; color: var(--fg); margin: 0 0 22px;
}
.pdf-form { display: flex; gap: 12px; flex-wrap: wrap; }
.pdf-input {
  flex: 1 1 260px; min-width: 0;
  font-family: var(--bl-text); font-weight: 300; font-size: 16px; color: var(--fg);
  background: transparent; border: 1px solid var(--rule); border-radius: 0;
  padding: 14px 16px; min-height: 48px;
}
.pdf-input::placeholder { color: var(--kicker); }
.pdf-input:focus-visible { outline: 2px solid var(--kicker); outline-offset: 2px; border-color: var(--fg); }
.pdf-btn {
  font-family: var(--bl-display); font-weight: 700; font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase;
  background: var(--fg); color: var(--bg-invert, #f4f2ef);
  border: 1px solid var(--fg); border-radius: 0; padding: 14px 24px; min-height: 48px; cursor: pointer;
  transition: opacity 120ms linear;
}
.pdf-btn:hover { opacity: .8; }
.pdf-btn:disabled { opacity: .5; cursor: default; }
/* Button fill is the section foreground; its label must be the section background. */
.paper .pdf-btn { color: #f4f2ef; }
.ink .pdf-btn   { color: #0a0a0a; }
.pdf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pdf-msg {
  font-family: var(--bl-text); font-weight: 400; font-size: 14px; line-height: 1.5;
  color: var(--kicker); margin: 14px 0 0; min-height: 1px;
}
.pdf-msg.is-error { color: var(--bl-warn, #8a4a4a); }
.ink .pdf-msg.is-error { color: #e0a0a0; }
.pdf-link {
  font-family: var(--bl-display); font-weight: 700; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--fg);
  border-bottom: 1px solid var(--fg); padding-bottom: 3px;
}
.pdf-link:hover { opacity: .7; }

/* ───────── QUIET INLINE PDF REPEAT ───────── */
.pdf-quiet {
  max-width: 760px; margin: 0 auto; padding: 8px var(--pad-x) 0; box-sizing: content-box;
  font-family: var(--bl-text); font-weight: 300; font-size: 15px; line-height: 1.7; color: var(--soft);
}
.pdf-quiet a { color: var(--fg); border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.pdf-quiet a:hover { border-color: var(--fg); }

/* ───────── CONTACT CTA (ink, full-bleed, terminal) ───────── */
.paper-cta { padding: 120px var(--pad-x); position: relative; overflow: hidden; }
.paper-cta .inner { max-width: 900px; margin: 0 auto; }
.paper-cta p {
  font-family: var(--bl-edit); font-style: italic; font-weight: 300;
  font-size: clamp(24px, 3.2vw, 44px); line-height: 1.18; color: var(--fg); margin: 0 0 40px; text-wrap: balance;
}
.paper-cta .actions { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* ───────── NOTES INDEX ───────── */
.notes-list { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--rule); }
.note-item {
  display: grid; grid-template-columns: 160px 1fr; gap: 40px; align-items: baseline;
  padding: 44px 0; border-bottom: 1px solid var(--rule); text-decoration: none;
}
.note-item .note-kind {
  font-family: var(--bl-display); font-weight: 700; font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--kicker);
}
.note-item .note-title {
  font-family: var(--bl-edit); font-style: normal; font-weight: 400;
  font-size: clamp(26px, 3vw, 40px); line-height: 1.08; color: var(--fg); margin: 0; text-wrap: balance;
}
.note-item .note-dek {
  font-family: var(--bl-text); font-weight: 300; font-size: 16px; line-height: 1.6;
  color: var(--soft); margin: 14px 0 0; max-width: 560px; text-wrap: pretty;
}
.note-item .note-go {
  font-family: var(--bl-display); font-weight: 700; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--fg);
  margin-top: 18px; display: inline-flex; gap: 10px; align-items: center;
}
.note-item:hover .note-go .arrow { transform: translateX(4px); }
.note-item .note-go .arrow { display: inline-block; transition: transform var(--bl-motion-fast); }
@media (max-width: 680px) {
  .note-item { grid-template-columns: 1fr; gap: 10px; padding: 36px 0; }
}
