/* lancekeay.com — timetable book system */
:root {
  --paper: #f6f7f4;
  --paper-2: #eceee9;
  --ink: #15181c;
  --ink-2: #474e57;
  --rule: #c5cac9;
  --rule-strong: #15181c;
  --blue: #38629f;
  --blue-ink: #2b4f85;
  --blue-wash: #e3eaf4;
  --yellow: #f2c230;
  --yellow-wash: #fbf0c9;
  --green: #2e7a4d;
  --green-wash: #dfeee5;
  --white: #ffffff;
  --on-blue-2: #eef2f8;
  --code-ink: #e8eae6;
  --rise: #9b2c1f;
  --frame: "Archivo", "Arial Narrow", sans-serif;
  --read: "Source Serif 4", Georgia, serif;
  --code: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --wrap: 78rem;
  --gutter: clamp(1rem, 3.2vw, 2.5rem);
  --measure: 68ch;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--frame);
  font-size: 1rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
::selection { background: var(--yellow); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 1px; }
h1, h2, h3 { font-family: var(--frame); line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Scrollbars on table containers */
.scroller { scrollbar-color: var(--ink-2) var(--paper-2); scrollbar-width: thin; }
.scroller::-webkit-scrollbar { height: 10px; }
.scroller::-webkit-scrollbar-track { background: var(--paper-2); }
.scroller::-webkit-scrollbar-thumb { background: var(--ink-2); border: 2px solid var(--paper-2); }

/* ---------- Masthead ---------- */
.masthead { border-bottom: 3px solid var(--rule-strong); background: var(--paper); }
.masthead .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1.1rem .75rem; }
.brand { display: flex; align-items: baseline; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand-name { font-stretch: 72%; font-weight: 800; font-size: 1.75rem; letter-spacing: -.01em; line-height: 1; text-transform: uppercase; }
.brand-sub { font-size: .8125rem; color: var(--ink-2); font-stretch: 90%; }
.nav { display: flex; align-items: center; gap: .25rem; font-stretch: 85%; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; padding: .45rem .7rem; border-bottom: 3px solid transparent; margin-bottom: -.85rem; padding-bottom: calc(.45rem + .4rem); }
.nav a:hover { border-bottom-color: var(--ink-2); }
.nav a[aria-current="page"] { border-bottom-color: var(--blue); }
.nav .btn { margin: 0 0 0 .5rem; padding: .55rem .85rem; border-bottom: 2px solid var(--ink); color: var(--paper); }
.nav .btn:hover { color: var(--paper); border-bottom-color: var(--blue-ink); }
.runninghead { font-size: .8125rem; color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.runninghead .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .5rem; font-stretch: 90%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 650 .9375rem/1 var(--frame); font-stretch: 90%;
  padding: .75rem 1.05rem; border: 2px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--blue-ink); border-color: var(--blue-ink); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn svg { width: 1em; height: 1em; flex: none; }
.btn small { font-weight: 500; opacity: .8; font-size: .8125rem; }

/* ---------- Line bands (tags) ---------- */
.line { --c: var(--ink); --on: var(--white); }
.line-reviews { --c: var(--blue); --on: var(--white); --wash: var(--blue-wash); }
.line-market { --c: var(--yellow); --on: var(--ink); --wash: var(--yellow-wash); }
.line-homelab { --c: var(--green); --on: var(--white); --wash: var(--green-wash); }
.chip { display: inline-block; background: var(--c); color: var(--on); font: 700 .75rem/1 var(--frame); font-stretch: 80%; text-transform: uppercase; letter-spacing: .06em; padding: .3rem .45rem .28rem; border-radius: 1px; white-space: nowrap; }

/* Verdict symbols */
.vs { width: 1.05rem; height: 1.05rem; flex: none; color: var(--ink); }
.verdict-key { display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- Timetable index (list of posts) ---------- */
.index-head, .index-row { display: grid; grid-template-columns: 4.25rem 6.5rem 1fr 2rem 6.5rem; gap: 0 1rem; align-items: baseline; }
.index-row { align-items: start; }
.index-head { background: var(--ink); color: var(--paper); font: 700 .75rem/1 var(--frame); font-stretch: 80%; letter-spacing: .08em; text-transform: uppercase; padding: .6rem .75rem; }
.index-list { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--ink); }
.index-row { padding: .9rem .75rem; border-top: 1px solid var(--rule); position: relative; transition: background-color .25s var(--ease); }
.index-row:first-child { border-top: 0; }
.index-row:not(.unbuilt):hover, .index-row:focus-within { background: var(--paper-2); }
.index-row .no { font-weight: 800; font-stretch: 75%; font-size: 1.375rem; line-height: 1; }
.index-row .title { font-weight: 650; font-size: 1.125rem; line-height: 1.3; font-stretch: 92%; }
.index-row .title a { color: var(--ink); text-decoration: none; }
.index-row .title a::after { content: ""; position: absolute; inset: 0; }
.index-row .title a:hover { text-decoration: underline; }
.index-row .oneline { display: block; font-family: var(--read); font-weight: 400; font-size: 1rem; color: var(--ink-2); margin-top: .3rem; line-height: 1.45; font-stretch: normal; }
.index-row .oneline b { color: var(--ink); font-weight: 600; }
.index-row .sym { justify-self: center; margin-top: .15rem; }
.index-row .date { padding-top: .15rem; }
.index-row .line-cell { padding-top: .1rem; }
.index-row .date { font-size: .875rem; color: var(--ink-2); text-align: right; font-stretch: 90%; }
.index-row.unbuilt { border-top-style: dashed; }
.index-row.unbuilt .title { font-weight: 600; color: var(--ink); }
.index-row[hidden] { display: none; }
.empty-state { padding: 2rem .75rem; border-bottom: 2px solid var(--ink); font-family: var(--read); color: var(--ink-2); }

.legend { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: .8125rem; color: var(--ink-2); padding-top: .8rem; font-stretch: 90%; }
.legend .item { display: inline-flex; align-items: center; gap: .45rem; }
.legend .dash { width: 1.6rem; border-top: 1px dashed var(--ink-2); }
.legend strong { color: var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; }

/* ---------- Home ---------- */
.home-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); padding-block: clamp(2rem, 5vw, 3.75rem) clamp(2.5rem, 6vw, 4.5rem); }
.intro h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); font-weight: 750; font-stretch: 78%; letter-spacing: -.015em; line-height: 1.02; }
.intro h1 span { color: var(--blue); }
.intro .lede { font-family: var(--read); font-size: 1.1875rem; line-height: 1.55; margin-top: 1.25rem; max-width: 34ch; color: var(--ink); }
.intro .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.intro .facts { margin-top: 2.25rem; border-top: 2px solid var(--ink); }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.facts dt, .facts dd { padding: .55rem 0; border-bottom: 1px solid var(--rule); margin: 0; font-size: .9375rem; }
.facts dt { font-weight: 700; font-stretch: 85%; padding-right: 1.25rem; text-transform: uppercase; font-size: .75rem; letter-spacing: .06em; padding-top: .75rem; }
.facts dd { color: var(--ink-2); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.section-title h2 { font-size: 1.375rem; font-weight: 750; font-stretch: 80%; text-transform: uppercase; letter-spacing: .03em; }
.section-title a { font-weight: 600; font-stretch: 90%; font-size: .9375rem; }

.hire { background: var(--blue); color: var(--white); }
.hire .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; padding-block: clamp(2rem, 4vw, 3rem); }
.hire h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); font-stretch: 78%; font-weight: 750; letter-spacing: -.01em; }
.hire p { font-family: var(--read); font-size: 1.0625rem; margin-top: .6rem; max-width: 56ch; color: var(--on-blue-2); }
.hire .actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.hire .btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.hire .btn:hover { background: var(--yellow); border-color: var(--yellow); }
.hire .btn.ghost { background: transparent; color: var(--white); border-color: var(--white); }
.hire .btn.ghost:hover { background: var(--white); color: var(--ink); }
.hire :focus-visible { outline-color: var(--yellow); }

.lines-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); margin-block: clamp(2.5rem, 5vw, 4rem); }
.lines-strip > div { padding: 1.25rem 1.5rem 1.5rem 0; border-right: 1px solid var(--rule); }
.lines-strip > div + div { padding-left: 1.5rem; }
.lines-strip > div:last-child { border-right: 0; }
.lines-strip h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.125rem; font-stretch: 85%; font-weight: 750; }
.lines-strip h3::before { content: ""; width: 1.75rem; height: .5rem; background: var(--c); flex: none; }
.lines-strip p { font-family: var(--read); color: var(--ink-2); margin-top: .5rem; }
.lines-strip a { display: inline-block; margin-top: .6rem; font-weight: 600; font-stretch: 90%; font-size: .9375rem; }

/* ---------- Page header (route band) ---------- */
.band { background: var(--c, var(--ink)); color: var(--on, var(--paper)); }
.band .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem clamp(1rem, 3vw, 2.25rem); align-items: end; padding-block: clamp(1.5rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2rem); }
.band .tabno { font-weight: 800; font-stretch: 62%; font-size: clamp(3.5rem, 2rem + 6vw, 7rem); line-height: .8; letter-spacing: -.02em; grid-row: span 2; align-self: end; }
.band .tabno small { display: block; font-size: .8125rem; font-stretch: 85%; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; line-height: 1; margin-bottom: .5rem; }
.band h1 { font-size: clamp(1.9rem, 1.1rem + 2.8vw, 3.6rem); font-weight: 750; font-stretch: 78%; letter-spacing: -.015em; line-height: 1.02; max-width: 22ch; }
.band .route { font-size: .9375rem; font-stretch: 90%; font-weight: 600; opacity: .92; }
.band.plain { --c: var(--ink); --on: var(--paper); }

/* ---------- Post: departure-board facts ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 2px solid var(--ink); background: var(--paper); }
.board > div { padding: 1rem 1.25rem 1.1rem 0; border-right: 1px solid var(--rule); }
.board > div + div { padding-left: 1.25rem; }
.board > div:last-child { border-right: 0; }
.board dt { font: 700 .75rem/1.2 var(--frame); font-stretch: 85%; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.board dd { margin: .4rem 0 0; font-size: 1.0625rem; font-weight: 600; font-stretch: 92%; line-height: 1.3; }
.board dd .sub { display: block; font-weight: 400; font-size: .875rem; color: var(--ink-2); margin-top: .2rem; }
.board .verdict { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--rule); padding: 1.25rem 0 1.4rem; }
.board .verdict + div { padding-left: 0; }
.board .verdict dt { color: var(--ink); display: flex; align-items: center; gap: .6rem; font-size: .8125rem; }
.board .verdict .vs { width: 1.6rem; height: 1.6rem; }
.board .verdict dd { font-size: clamp(1.25rem, 1rem + .9vw, 1.7rem); font-weight: 650; font-stretch: 86%; line-height: 1.3; margin: .55rem 0 0; max-width: 44ch; letter-spacing: -.005em; }

.post-layout { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 3.5rem; padding-block: clamp(2rem, 4vw, 3rem) 4rem; }
.route-toc { position: sticky; top: 1.5rem; align-self: start; font-size: .875rem; font-stretch: 90%; }
.route-toc h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--ink-2); margin-bottom: .75rem; }
.route-toc ol { list-style: none; margin: 0; padding: 0; position: relative; }
.route-toc ol::before { content: ""; position: absolute; left: .4rem; top: .55rem; bottom: .55rem; width: 3px; background: var(--c, var(--ink)); }
.route-toc li { position: relative; padding: .3rem 0 .3rem 1.6rem; }
.route-toc li::before { content: ""; position: absolute; left: 0; top: .55rem; width: .95rem; height: .95rem; border-radius: 50%; background: var(--paper); border: 3px solid var(--c, var(--ink)); transition: background-color .25s var(--ease); }
.route-toc a { color: var(--ink); text-decoration: none; display: block; line-height: 1.35; }
.route-toc a:hover { text-decoration: underline; }
.route-toc li.is-here::before { background: var(--ink); border-color: var(--ink); }
.route-toc li.is-here a { font-weight: 700; }
.route-toc .toc-cta { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); display: grid; gap: .5rem; }
.route-toc .toc-cta p { color: var(--ink-2); line-height: 1.4; }

/* ---------- Reading column ---------- */
.prose { font-family: var(--read); font-size: 1.125rem; line-height: 1.65; max-width: var(--measure); font-variant-numeric: proportional-nums; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--frame); font-size: 1.6rem; font-weight: 750; font-stretch: 82%; margin-top: 2.4em; padding-top: .6rem; border-top: 2px solid var(--ink); letter-spacing: -.005em; }
.prose h2 + * { margin-top: .75em; }
.prose h3 { font-family: var(--frame); font-size: 1.2rem; font-weight: 700; font-stretch: 88%; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose code { font-family: var(--code); font-size: .85em; background: var(--paper-2); padding: .1em .3em; border-radius: 2px; }
.prose pre { font-family: var(--code); font-size: .875rem; line-height: 1.6; background: var(--ink); color: var(--code-ink); padding: 1rem 1.25rem; overflow-x: auto; border-radius: 2px; }
.prose pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.prose blockquote { margin-inline: 0; padding: .1rem 0 .1rem 1.25rem; border-left: 1px solid var(--ink); color: var(--ink-2); font-style: italic; }
.note { font-family: var(--frame); font-size: .9375rem; line-height: 1.5; padding: .85rem 1rem; border: 1px dashed var(--ink-2); color: var(--ink); background: transparent; max-width: var(--measure); }
.note strong { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; margin-right: .35rem; }

/* ---------- Data tables (timetable grid) ---------- */
.tt-figure { margin: 2.25rem 0; max-width: none; }
.tt-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; align-items: baseline; font-family: var(--frame); padding: .55rem .75rem; background: var(--c, var(--ink)); color: var(--on, var(--paper)); }
.tt-figure figcaption b { font-weight: 750; font-stretch: 85%; font-size: 1rem; }
.tt-figure figcaption span { font-size: .8125rem; font-stretch: 90%; }
.scroller { overflow-x: auto; border-bottom: 2px solid var(--ink); position: relative; }
.scroller:focus-visible { outline-offset: -3px; }
table.tt { border-collapse: separate; border-spacing: 0; width: 100%; font-family: var(--frame); font-size: .9375rem; font-variant-numeric: tabular-nums lining-nums; font-stretch: 92%; }
.tt th, .tt td { padding: .6rem .8rem; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--rule); border-right: 1px dotted var(--rule); vertical-align: top; transition: background-color .15s; }
.tt th:last-child, .tt td:last-child { border-right: 0; }
.tt thead th { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; vertical-align: bottom; color: var(--ink); border-bottom: 2px solid var(--ink); background: var(--paper); white-space: normal; min-width: 4.75rem; line-height: 1.3; }
.tt thead th .unit { display: block; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.tt th[scope="row"], .tt td:first-child, .tt thead th:first-child { text-align: left; position: sticky; left: 0; background: var(--paper); z-index: 1; border-right: 2px solid var(--ink); }
.tt th[scope="row"] { font-weight: 650; min-width: 11rem; }
.tt th[scope="row"] .sub { display: block; font-weight: 400; font-size: .8125rem; color: var(--ink-2); }
.tt td.txt { text-align: left; white-space: normal; min-width: 9.5rem; }
.tt tbody tr:nth-child(4n) td, .tt tbody tr:nth-child(4n) th { border-bottom-color: var(--ink-2); }
.tt .best { font-weight: 800; }
.tt .muted { color: var(--ink-2); }
.tt .down { color: var(--green); font-weight: 650; }
.tt .up { color: var(--rise); font-weight: 650; }
.tt tr.superseded th, .tt tr.superseded td { border-bottom-style: dashed; }
.tt tr.superseded td { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--ink-2); }
.tt .is-row, .tt .is-col { background: var(--wash, var(--paper-2)); }
.tt th[scope="row"].is-row { background: var(--wash, var(--paper-2)); }
.tt .is-cell { background: var(--c, var(--ink)); color: var(--on, var(--paper)); }
.tt td[tabindex]:focus-visible { outline-offset: -3px; }
.tt button.sort { all: unset; cursor: pointer; display: inline-flex; gap: .3rem; align-items: center; }
.tt button.sort:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.tt button.sort::after { content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .25; }
.tt th[aria-sort="ascending"] button.sort::after { opacity: 1; transform: rotate(-135deg) translateY(-1px); }
.tt th[aria-sort="descending"] button.sort::after { opacity: 1; }
.tt-foot { font-family: var(--frame); font-size: .8125rem; color: var(--ink-2); padding-top: .6rem; line-height: 1.5; display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; }
.scroll-hint { display: none; }

/* ---------- Posts page filter ---------- */
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-block: 1.5rem 1rem; }
.filterbar .label { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--ink-2); font-stretch: 85%; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button {
  font: 650 .9375rem/1 var(--frame); font-stretch: 88%; cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem .85rem; background: transparent; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 2px;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.filters button::before { content: ""; width: 1.1rem; height: .4rem; background: var(--c, var(--ink)); }
.filters button[data-filter="all"]::before { background: linear-gradient(90deg, var(--blue) 33%, var(--yellow) 33% 66%, var(--green) 66%); }
.filters button:hover { background: var(--paper-2); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filters .count { font-weight: 500; opacity: .75; font-size: .8125rem; }
.filter-status { font-size: .875rem; color: var(--ink-2); font-stretch: 90%; margin-left: auto; }

/* ---------- About / CV ---------- */
.cv-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); padding-block: clamp(2rem, 4vw, 3rem); }
.cv-download { border: 2px solid var(--ink); align-self: start; }
.cv-download h2 { background: var(--ink); color: var(--paper); font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; padding: .6rem 1rem; font-stretch: 85%; }
.cv-download .body { padding: 1.25rem 1rem; display: grid; gap: .6rem; }
.cv-download .btn { justify-content: space-between; }
.cv-download p { font-size: .875rem; color: var(--ink-2); font-stretch: 92%; }
.skills { width: 100%; }
.skill-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.skill-groups > div { padding: 1rem 1.25rem 1.25rem 0; border-right: 1px solid var(--rule); }
.skill-groups > div + div { padding-left: 1.25rem; }
.skill-groups > div:last-child { border-right: 0; }
.skill-groups h3 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; font-stretch: 85%; font-weight: 750; display: flex; align-items: center; gap: .5rem; }
.skill-groups ul { list-style: none; margin: .75rem 0 0; padding: 0; }
.skill-groups li { padding: .4rem 0; border-bottom: 1px dotted var(--rule); font-size: .9375rem; }
.exp { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.exp li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .25rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.exp li.sample { border-bottom-style: dashed; }
.exp .when { font-weight: 700; font-stretch: 82%; font-size: 1rem; }
.exp h3 { font-size: 1.125rem; font-stretch: 90%; font-weight: 700; }
.exp p { font-family: var(--read); color: var(--ink-2); margin-top: .35rem; max-width: 62ch; }
.cv-section { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Footer ---------- */
.foot { border-top: 3px solid var(--ink); margin-top: clamp(3rem, 6vw, 5rem); padding-block: 1.75rem 2.5rem; font-size: .875rem; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 1.5rem 3rem; }
.foot h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-stretch: 85%; margin-bottom: .5rem; }
.foot p { color: var(--ink-2); line-height: 1.5; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.foot .legend { padding-top: 0; }
.hire + .foot { margin-top: 0; }

/* ---------- Motion: rows settle into the table ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .index-list.animate .index-row { animation: settle .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
  @keyframes settle { from { opacity: .001; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .route-toc { position: static; border-bottom: 1px solid var(--rule); padding-bottom: 1.25rem; }
  .route-toc ol { columns: 2; column-gap: 1.5rem; }
  .route-toc ol::before { display: none; }
  .route-toc li { break-inside: avoid; }
  .route-toc .toc-cta { display: none; }
}
@media (max-width: 900px) {
  .home-top, .cv-top { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board > div:nth-child(odd):not(.verdict) { border-right: 0; padding-left: 1.25rem; }
  .board > div:nth-child(even) { padding-left: 0; border-bottom: 1px solid var(--rule); }
  .board > div:nth-child(odd):not(.verdict) { border-bottom: 1px solid var(--rule); }
  .board > div:nth-child(even) { border-right: 1px solid var(--rule); }
  .hire .wrap { grid-template-columns: minmax(0, 1fr); }
  .lines-strip, .skill-groups { grid-template-columns: minmax(0, 1fr); }
  .lines-strip > div, .skill-groups > div { border-right: 0; border-bottom: 1px solid var(--rule); padding-left: 0 !important; padding-right: 0; }
  .foot .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .masthead .wrap { align-items: center; }
  .brand-sub { display: none; }
  .nav { width: 100%; justify-content: space-between; }
  .nav a { padding-inline: .3rem; }
  .nav .btn { margin-left: auto; }
  .runninghead .wrap span + span { display: none; }
  .index-head { display: none; }
  .index-row { grid-template-columns: auto 1fr auto; grid-template-areas: "no line sym" "title title title" "date date date"; gap: .45rem .75rem; padding-inline: 0; }
  .index-row:hover, .index-row:focus-within { background: transparent; }
  .index-row .no { grid-area: no; font-size: 1.125rem; }
  .index-row .line-cell { grid-area: line; }
  .index-row .title { grid-area: title; }
  .index-row .sym { grid-area: sym; }
  .index-row .date { grid-area: date; text-align: left; }
  .index-list { border-top: 2px solid var(--ink); }
  .band .tabno { grid-row: auto; font-size: 3.25rem; }
  .band .wrap { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: minmax(0, 1fr); }
  .board > div, .board > div:nth-child(n) { border-right: 0 !important; padding-left: 0 !important; border-bottom: 1px solid var(--rule); }
  .board .verdict .vs { width: 1.75rem; height: 1.75rem; }
  .prose { font-size: 1.0625rem; }
  .exp li { grid-template-columns: minmax(0, 1fr); }
  .scroll-hint { display: block; font-family: var(--frame); font-size: .8125rem; color: var(--ink-2); padding: .4rem 0; }
  .filter-status { margin-left: 0; width: 100%; }
  .tt th[scope="row"] { min-width: 8.5rem; }
}

/* polish: route contents */
.route-toc .btn { display: inline-flex; justify-content: center; }
.line-market .route-toc li::before { border-color: var(--ink); }
.line-market .route-toc ol::before { background: var(--yellow); box-shadow: 0 0 0 1px rgba(21, 24, 28, .25); }

/* timetable leaders: title runs on dots to its verdict symbol */
.index-row .tline { display: flex; align-items: baseline; gap: .5rem; }
.index-row .tline::after { content: ""; flex: 1 1 1.5rem; min-width: 1.5rem; border-bottom: 2px dotted var(--ink-2); transform: translateY(-.2em); }
/* table number label sits on the numeral's line, not above it */
.band .tabno small { display: inline-block; margin: 0 .35rem 0 0; vertical-align: baseline; }
@media (max-width: 640px) { .index-row .tline::after { display: none; } }
