/* Terms Due: styles for the v3 content blocks (stats, vs, timeline, scenario, takeaways, defs, screenshot,
   contents list, meta line, two-column ticks). Loaded after site.css and uses its variables.
   v1 Thursday 15 Oct 2026 */

.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stamp);
  margin: 0 0 10px;
}

.band-tight { padding-top: 28px; padding-bottom: 28px; }
.band-tight + .band { border-top: 0; }

.meta {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
  margin: 10px 0 0;
}

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

/* ----- two-column tick list ----- */
.ticks-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 32px;
  max-width: 960px;
}
@media (max-width: 760px) { .ticks-2 { grid-template-columns: 1fr; } }

/* ----- stats ----- */
.stats {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
.stats-2 { grid-template-columns: repeat(2, 1fr); }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stats-4 { grid-template-columns: repeat(4, 1fr); }
.stat {
  border-top: 3px solid var(--ink);
  padding: 18px 0 6px;
}
.band.tint .stat { border-top-color: var(--stamp); }
.stat-n {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 8px;
}
.stat-l {
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--text);
  margin: 0;
  max-width: 28ch;
}
.stat-s {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin: 8px 0 0;
}
@media (max-width: 900px) { .stats-3, .stats-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats-2, .stats-3, .stats-4 { grid-template-columns: 1fr; } }

/* ----- before / after ----- */
.vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
.vs-col {
  padding: 26px 28px 22px;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.vs-col h3 {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.vs-before h3 { color: var(--muted); }
.vs-after { border-color: var(--ink); border-top-width: 4px; }
.vs-after h3 { color: var(--paid); }
.vs-col ul { margin: 0; padding: 0; list-style: none; }
.vs-col li { margin: 0 0 10px; line-height: 1.5; }
.vs-before li { padding-left: 26px; position: relative; color: var(--text); }
.vs-before li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.55em;
  width: 11px;
  height: 2px;
  background: var(--stamp);
}
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } }

/* ----- timeline ----- */
.timeline {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  max-width: 820px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 118px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--rule);
}
.timeline li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 44px;
  padding: 0 0 26px;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 113px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--stamp);
}
.tl-when {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: right;
  padding-top: 3px;
}
.tl-body h3 { margin: 0 0 6px; font-size: 1.15rem; }
.tl-body p { margin: 0; }
@media (max-width: 600px) {
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding-left: 30px; }
  .timeline li::before { left: 2px; }
  .tl-when { text-align: left; }
}

/* ----- worked example ----- */
.scenario {
  border: 1px solid var(--rule);
  border-left: 6px solid var(--ink);
  background: var(--paper);
  padding: 28px 32px 24px;
  max-width: 820px;
}
.band.tint .scenario { background: var(--paper); }
.scenario h2 { margin-top: 0; }
.scenario p:last-of-type { margin-bottom: 0; }
.figures {
  width: 100%;
  min-width: 0;
  margin: 20px 0 0;
  border-top: 2px solid var(--ink);
  border-collapse: collapse;
}
.figures th, .figures td {
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.95rem;
  text-align: left;
}
.figures th { font-weight: 500; color: var(--muted); width: 60%; }
.figures td { font-family: var(--sans); font-weight: 600; color: var(--ink); text-align: right; }
.figures tr:last-child th, .figures tr:last-child td { border-bottom: 0; }

/* ----- in short ----- */
.takeaways {
  background: var(--ledger);
  border-top: 3px solid var(--ink);
  padding: 22px 28px 14px;
  max-width: 820px;
}
.takeaways ul { margin: 0; }
.takeaways li { margin-bottom: 8px; }

/* ----- contents ----- */
.toc {
  max-width: 820px;
  border: 1px solid var(--rule);
  padding: 18px 24px 14px;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
}
.toc li {
  break-inside: avoid;
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.toc a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.toc a:hover { color: var(--stamp); border-color: var(--stamp); }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* ----- definitions ----- */
.defs {
  margin: 28px 0 0;
  max-width: 820px;
}
.def {
  padding: 18px 0;
  border-top: 1px solid var(--rule-soft);
  scroll-margin-top: 90px;
}
.def:last-child { border-bottom: 1px solid var(--rule-soft); }
.def dt {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}
.def dd { margin: 0; }

/* ----- screenshot ----- */
.shot {
  margin: 28px 0 0;
  max-width: 960px;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  box-shadow: 0 10px 30px rgba(21, 32, 58, 0.08);
}
.shot figcaption {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 10px;
}

/* anchors should not hide under the fixed header */
h2[id] { scroll-margin-top: 90px; }

/* ----- footer: brand and logo row, three link columns, centred legal line (v3.1, 15 Oct 2026) ----- */
.site-footer .foot-top {
  text-align: center;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.site-footer .foot-top .foot-brand { margin: 0; }
.site-footer .foot-top .foot-line { margin: 8px auto 0; max-width: 44ch; }
.site-footer .foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
  padding: 32px 0 28px;
  text-align: left;
}
.foot-head {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 12px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 0 0 8px; font-family: var(--sans); font-size: 0.95rem; line-height: 1.4; }
.foot-col a { color: #C9D2E1; text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.site-footer .foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
  text-align: center;
}
.site-footer .foot-bottom .foot-copy { margin: 0 0 4px; }
@media (max-width: 760px) {
  .site-footer .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-footer .foot-cols { grid-template-columns: 1fr; }
}

/* ----- app tour: alternating screenshot and copy rows (v3.2, 16 Oct 2026) ----- */
.tour {
  display: grid;
  gap: 56px;
  margin-top: 36px;
}
.tour-row {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 44px;
  align-items: center;
}
.tour-row:nth-child(even) .tour-shot { order: 2; }
.tour-shot { margin: 0; }
.tour-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(21, 32, 58, 0.12);
}
.tour-copy h3 { font-size: 1.5rem; margin: 0 0 10px; }
.tour-copy p { margin: 0 0 12px; }
.tour-link {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--stamp);
  text-decoration: none;
}
.tour-link:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .tour { gap: 40px; }
  .tour-row { grid-template-columns: 1fr; gap: 18px; }
  .tour-row:nth-child(even) .tour-shot { order: 0; }
}
