/* Home page only (pipeline/pages/home.py). Builds on style.css (.card, .sentence + .dd, .result, .ico).

   The Time Machine card: the pills of its sentence are real fields — an amount,
   an asset, a month and a year (js/home-tm.js). They look like the Time Machine's
   own (timemachine.css, .tm-sentence). */
.htm .dd { padding: 0 10px; }
.htm input, .htm select { font: inherit; color: var(--ink); background: transparent; border: 0; padding: 2px 0; margin: 0; cursor: pointer; }
.htm .dd.num { gap: 0; position: relative; }
.htm input { min-width: 1ch; max-width: 14ch; letter-spacing: inherit; cursor: text; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.htm-twin { position: absolute; visibility: hidden; white-space: pre; font-variant-numeric: tabular-nums; pointer-events: none; }
.htm select + select { margin-left: 4px; }
.htm .dd:hover { box-shadow: 0 0 0 1px var(--muted); }
.htm .dd:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.htm input:focus, .htm select:focus { outline: none; }
.htm option { font: 500 16.5px var(--font); }
.htm option:disabled { color: var(--muted); }
.ico.s.htm-ico { width: 22px; height: 22px; border-radius: 7px; font-size: 10px; }
.ico.s.htm-ico.i-spx { font-size: 8px; }
@media (max-width: 560px) { .htm .sentence { line-height: 2.1; } }

/* "Explore": a picture at the top of each card, drawn in the section's colour
   (home.py, EXPLORE_ART): articles blue, lessons green, tools orange, data violet.
   The first background and fills are for browsers without color-mix(). */
.ex-art { --c: var(--spx); }
.ex-learn { --c: var(--home); }
.ex-tool { --c: var(--btc); }
.ex-data { --c: var(--ndq); }
.ex-ban { display: block; margin: -8px -8px 16px; border-radius: 16px; overflow: hidden; background: var(--track); background: color-mix(in srgb, var(--c) 12%, var(--track)); }
.ex-ban svg { display: block; width: 100%; height: auto; }
.ex-ban .il-card { fill: var(--surface); }
.ex-ban .il-ink { fill: var(--ink); opacity: 0.85; }
.ex-ban .il-mut { fill: var(--muted); opacity: 0.4; }
.ex-ban .il-line { fill: none; stroke: var(--c); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ex-ban .il-dot, .ex-ban .il-acc { fill: var(--c); }
.ex-ban .il-soft { fill: var(--c); opacity: 0.22; }
.ex-ban .il-bar { fill: var(--c); opacity: 0.3; }
.ex-ban .il-grid { fill: none; stroke: var(--muted); stroke-width: 1; opacity: 0.3; }
.ex-ban .il-knob { fill: var(--surface); stroke: var(--c); stroke-width: 2.5; }
.ex-ban .il-ring { fill: none; stroke: var(--muted); stroke-width: 1.5; opacity: 0.6; }
.ex-ban .il-ok { fill: var(--good-soft); fill: color-mix(in srgb, var(--good) 20%, var(--surface)); }
.ex-ban .il-okdot { fill: var(--good); }
.ex-ban .il-check { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .ex-ban { margin: -4px -4px 14px; } }
