/* Kit v3 timelines page (timelines.html). Tokens from v3.css only; logical properties only. */
/* Full bleed (rule 11): the map is the ground; the catalogue floats at the start, the inspector at the end, the time
   axis at the foot between them */
.axis { inset-block: auto 12px; block-size: 392px; inset-inline: 76px 12px; }
.axis__hd { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px 16px; align-items: center; padding: 14px 16px 12px; border-block-end: 1px solid var(--line); }
.axis__t { display: flex; align-items: end; gap: 22px; min-width: 0; }
.axis__t h1 { margin: 4px 0 0; font: 600 22px/1.15 var(--f); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpis { justify-self: start; display: flex; gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; flex: none; }
.kpi { background: var(--bg-1); padding: 6px 12px; min-width: 84px; }
.kpi b { display: block; font: 600 20px/1 var(--f); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi span { display: block; color: var(--ink-3); font-size: 11.5px; margin-block-start: 4px; white-space: nowrap; }
.axis__c { display: flex; align-items: center; gap: 8px; }
.axis__c .seg { width: 240px; }
.zoomb { display: flex; gap: 2px; padding: 3px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.zoomb button { height: 28px; min-width: 30px; border: 0; border-radius: var(--r); background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 500; }
.zoomb button:hover { background: var(--bg-3); color: var(--ink); }
.axis__bd { position: relative; flex: 1; min-height: 0; }
.axis__bd svg { direction: ltr; position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.axis__bd svg:active { cursor: grabbing; }
.axis__span { display: none; position: absolute; inset-block-end: 6px; inset-inline-end: 14px; font: 500 11px/1 var(--m); color: var(--ink-3); pointer-events: none; }
.lane-l { font: 500 10.5px/1 var(--f); letter-spacing: .04em; text-transform: uppercase; fill: var(--ink-3); }
.lane-n { font: 500 10.5px/1 var(--m); fill: var(--ink-3); }
.tick { font: 500 10.5px/1 var(--m); fill: var(--ink-3); }
.mk { cursor: pointer; }
.mk text { font: 500 11.5px/1 var(--f); fill: var(--ink-2); pointer-events: none; }
.mk:hover text { fill: var(--ink); }
.mk.on text { fill: var(--ink); font-weight: 600; }
.mk.dim { opacity: .18; }

/* The lower deck: catalogue, map, inspector */
/* the catalogue sits above the axis (no empty column); the axis runs under the spine to the rail; the map shows between */
.cat { inset-block: 76px 416px; inset-inline-start: 76px; width: 380px; }
.maph { position: absolute; z-index: 9; inset-block-start: 76px; inset-inline: 468px 460px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.maph > * { pointer-events: auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding-inline: 10px; border-radius: var(--r); background: var(--glass-2); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pill--red { color: var(--red); border-color: var(--red); }
.ins { inset-block: 76px 416px; inset-inline-end: 12px; width: 372px; }
.cat .panel__hd, .ins .panel__hd { padding: 12px 14px 10px; }
.crow { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) 120px 30px; gap: 12px; align-items: center; padding: 8px 10px; border: 0; border-radius: var(--r); background: transparent; text-align: start; }
.crow:hover { background: var(--bg-2); }
.crow[aria-selected="true"] { background: var(--red-soft); }
.crow b { display: block; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.crow small { display: block; color: var(--ink-3); font-size: 11.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.crow em { font-style: normal; text-align: end; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.crow svg { display: block; width: 120px; height: 18px; }
.chead { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 4px; }
.chead .eyebrow b { color: var(--ink); margin-inline-start: 6px; }
.vstate { display: inline-flex; align-items: center; gap: 6px; }
.vdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.vdot--v { background: var(--ink); }
.vdot--s { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--ink); }
.vdot--t { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.legend { justify-self: end; align-self: end; display: flex; gap: 12px; color: var(--ink-3); font-size: 11.5px; }

.ev h2 { margin: 6px 0 0; font: 600 18px/1.2 var(--f); letter-spacing: -.01em; padding-inline-end: 40px; }
.ev .yr { font: 600 28px/1 var(--f); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ev .yr span { font: 500 12px/1 var(--f); color: var(--ink-3); letter-spacing: 0; margin-inline-start: 4px; }
.ev .x { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; }
.ev .line1 { margin: 10px 14px 0; }
.rows { margin: 10px 14px 0; display: grid; gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.rows > div { background: var(--bg-1); padding: 9px 12px; display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 10px; align-items: center; font-size: 12.5px; }
.rows dt, .rows .k { color: var(--ink-3); font-size: 11.5px; }
.rows a { color: var(--ink); }
.warn { margin: 10px 14px 0; padding: 9px 12px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 12px; display: grid; grid-template-columns: 16px 1fr; gap: 8px; align-items: start; }
.ev .acts { padding: 12px 14px 14px; }

/* Add a record or milestone */
.form { padding: 4px 14px 14px; display: grid; gap: 10px; }
.form label { display: grid; gap: 5px; font-size: 11.5px; color: var(--ink-3); }
.form input, .form textarea { width: 100%; border: 1px solid var(--line); background: var(--bg-1); border-radius: var(--r); padding: 8px 10px; font-size: 13px; color: var(--ink); outline: 0; }
.form input:focus, .form textarea:focus { border-color: var(--line-2); }
.form textarea { resize: none; height: 54px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.form .pick { display: flex; gap: 8px; align-items: center; }
.form .pick .btn { flex: none; }
.form .pick span { flex: 1; min-width: 0; color: var(--ink-2); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.steps div { background: var(--bg-1); padding: 8px 10px; font-size: 11.5px; color: var(--ink-3); }
.steps div b { display: block; color: var(--ink); font-weight: 500; font-size: 12px; }
.steps div.on b { color: var(--red); }
.fine { color: var(--ink-3); font-size: 11.5px; line-height: 1.4; margin: 0; }
.count { text-align: end; color: var(--ink-3); font-size: 11px; }
.toast { color: var(--ink); background: var(--red-soft); border-radius: var(--r); padding: 8px 10px; font-size: 12px; }

/* The platform rail floats on the inline end (spine.js): panels at the end clear it */
.has-rail-end .axis { inset-inline-end: 76px; }
.has-rail-end .ins { inset-inline-end: 76px; }
.crow b .fl, .rows .fl, .tipcard .fl { margin-inline-end: 6px; vertical-align: -2px; }
.pill .fl { flex: none; }
.pill span { overflow: hidden; text-overflow: ellipsis; }
.pal__fl { display: grid; place-items: center; }
.ctx1 { margin: 10px 10px 2px; padding: 8px 10px; border-radius: var(--r); background: var(--bg-1); border: 1px solid var(--line); color: var(--ink-2); }

.ptabs { display: none; }
/* Sources of the map (as on Home): Natural Earth, ETOPO 2022, Copernicus DEM with its notice */
.attr { inset-block-end: 416px; inset-inline-end: 460px; }
@media (max-width: 760px) {
  .axis, .has-rail-end .axis { inset-block: 114px auto; inset-inline: 8px; block-size: 380px; }
  .axis .hide-s, .ev .x { display: none; }
  .axis__hd { grid-template-columns: 1fr; padding: 12px; gap: 10px; }
  .axis__t { flex-direction: column; align-items: stretch; gap: 10px; }
  .kpi { min-width: 0; flex: 1; padding: 8px 10px; }
  .kpi b { font-size: 20px; }
  .kpi span { font-size: 10.5px; white-space: normal; }
  .axis__span { display: none; }
  .axis__c .seg { flex: 1; width: auto; }
  .axis__c .hide-s { display: none; }
  .maph { display: none; }
  .cat, .ins { inset-inline: 8px !important; width: auto !important; inset-block: 502px 8px !important; block-size: auto !important; }
  .ptabs { display: grid; margin: 0 0 10px; }
  .phone-hide { display: none !important; }
}
.tl-min { min-width: 0; }
.tl-cathd { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tl-catsum { font-weight: 600; margin-block-start: 4px; }
