/* "The traced page": the chronology fragment component and the v2 type scale (website overhaul, Nov 2026).
   Builds on /css/v2.css tokens. Content is visible on load; nothing here animates. */

:root {
  --flag: #B4372E;
  --flag-soft: #F6D9D6;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, "SF Mono", monospace;
}

/* ---- Type scale: body 18 px at 390, 19 px at 1440; headings 2.4 / 1.9 / 1.4 rem ---- */
.t2 { font-size: clamp(18px, 17.63px + 0.095vw, 19px); line-height: 1.55; color: var(--ink); }
.t2 p, .t2 li { max-width: 38em; }   /* one measure: about 85 characters a line (Jordan, 12 Nov 2026) */
.t2 h1, .t2 h2, .t2 h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 var(--space-2); letter-spacing: -0.01em; }
.t2 h1 { font-size: 2.4rem; }
.t2 h2 { font-size: 1.9rem; }
.t2 h3 { font-size: 1.4rem; }
.t2 .eyebrow { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.t2 .mute { color: var(--ink-mute); }

/* ---- Chronology fragment ---- */
.cf {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92em;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  overflow: hidden;
}
.cf-row {
  display: grid;
  grid-template-columns: 7.2em 1fr;
  gap: var(--space-2);
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.cf-row:first-child { border-top: 0; }
.cf .cf-row { max-width: none; }   /* rows fill the card; the text measure is for running text (audit A-03) */
.cf .cf-entry { max-width: 42em; }   /* an entry line stays under 95 characters when the card is wide */
.cf-date {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  padding-top: 2px;
}
/* the thin vertical date rule */
.cf-date::after {
  content: "";
  position: absolute;
  top: -14px;
  bottom: -14px;
  right: -8px;
  width: 1px;
  background: var(--accent-soft);
}
.cf-body { min-width: 0; }
.cf-head { margin: 0 0 6px; line-height: 1.35; }
.cf-head strong { font-weight: 600; }
.cf-meta { color: var(--ink-mute); font-size: 0.86em; margin-left: 6px; }
.cf-entries { list-style: none; margin: 0; padding: 0; }
.cf-entry { position: relative; padding: 5px 0 5px 14px; line-height: 1.45; }
.cf-entry::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cf-text { color: var(--ink); }
.cf-entry--flag { border-left: 3px solid var(--flag); padding-left: 11px; margin-left: 0; background: linear-gradient(90deg, rgba(180, 55, 46, 0.06), transparent 60%); border-radius: 0 6px 6px 0; }
.cf-entry--flag::before { display: none; }

/* page-reference chip */
.cf-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78em;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 1px 7px;
  margin-left: 6px;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: baseline;
}
.cf-chip:hover, .cf-chip:focus-visible { background: var(--accent); color: #fff; outline: none; }
.cf-chip:focus-visible { box-shadow: 0 0 0 3px rgba(21, 113, 113, 0.35); }

.cf-badge {
  display: inline-block;
  font-size: 0.72em;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  margin-left: 6px;
  max-width: 100%;
  vertical-align: baseline;
}
/* a flag note wraps inside the entry column (up to three lines); the red bar on .cf-entry--flag runs the full height */
.cf-badge--flag { background: var(--flag-soft); color: #8A1D17; border-radius: 8px; max-width: min(100%, 38em); }   /* the text measure, now the rows fill the card */
.cf-badge--ai { background: var(--warm); color: #6B3F12; }

/* sample label: never red (red is for flags only) */
.cf-label {
  background: var(--ground-warm);
  color: var(--ink-mute);
  font-size: 0.8em;
  font-weight: 600;
  text-align: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

/* hero form: one entry per row, tighter; target about 420 px tall at 1440 */
.cf--compact { font-size: 0.76em; }
.cf--compact .cf-row { grid-template-columns: 6.4em 1fr; gap: 12px; padding: 6px 12px; }
.cf--compact .cf-date::after { top: -8px; bottom: -8px; }
.cf--compact .cf-head { margin: 0; font-size: 0.9em; color: var(--ink-mute); }
.cf--compact .cf-head strong { font-weight: 600; color: var(--ink); }
.cf--compact .cf-meta { display: none; }
.cf--compact .cf-entry { padding: 1px 0 1px 12px; line-height: 1.4; }
.cf--compact .cf-entry::before { top: 0.75em; width: 4px; height: 4px; }
.cf--compact .cf-entry--flag { padding-left: 9px; }

@media (max-width: 560px) {
  .cf-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 14px; }
  .cf-date::after { display: none; }
  .cf-date { font-size: 0.8em; color: var(--accent-deep); }
}

/* ---- Buttons (the v2 set: one filled, one outline, text links) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 1rem/1 var(--font-body);
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn--fill { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--fill:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn--outline { background: transparent; color: var(--accent-deep); border-color: var(--accent-deep); }
.btn--outline:hover { background: var(--accent-soft); color: var(--ink); }
.btn:hover, .btn:focus-visible { text-decoration: none; }
.btn:focus-visible { outline: 3px solid rgba(21, 113, 113, 0.45); outline-offset: 2px; }
.link { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a.link:hover { color: var(--accent); text-decoration-thickness: 2px; }   /* a.link outranks v2.css a:not(.btn):hover, which hid the change (audit A-43) */
.link--quiet { text-decoration: none; font-weight: 600; }
a.link--quiet:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* ---- Legal and documentation pages (/ime/trust/, /ime/docs/ and the site's legal pages share these parts) ---- */
/* the "how to read this" note under a page title is a boxed block: it takes the text measure, like every other
   box (audit A-13) */
.legal-hero .legal-callout { max-width: 38em; }
/* section number chips are one width, numerals centred, so every heading starts at one x (audit A-38) */
.legal-content h2[data-no]::before { min-width: 2.9em; box-sizing: border-box; text-align: center; font-variant-numeric: tabular-nums lining-nums; }
/* "What leaves Australia": the columns share the width by what they hold, so "Where" no longer runs to five lines
   (audit A-16) */
#overseas table th:nth-child(1) { width: 14%; }
#overseas table th:nth-child(2) { width: 27%; }
#overseas table th:nth-child(3) { width: 33%; }
#overseas table th:nth-child(4) { width: 26%; }

/* the light eyebrow on the dark trial panel keeps its contrast */
.t2 .eyebrow.eyebrow--onDark { color: #A9D6D1; }
