/* H2START teaching pages. Colours, type and focus match SUPERNOVA tokens in src/index.css
   (abyss / s2 / s3 / ink / ion / solar). No second palette, no green action colour. */
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/unbounded-latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/unbounded-cyrillic-500.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Sofia Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/sofia-sans-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sofia Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/sofia-sans-latin-ext-400.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sofia Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/sofia-sans-cyrillic-400.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Sofia Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/sofia-sans-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sofia Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/sofia-sans-latin-ext-600.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sofia Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/sofia-sans-cyrillic-600.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #05080D;
  --panel: #101A24;
  --panel2: #16222E;
  --text: #F3F6F2;
  --muted: #A2B1BA;
  --line: #22303D;
  --accent: #FFC54D;
  --link: #72E2F0;
  --energy: #FFC54D;
  --matter: #72E2F0;
  --bar: #A2B1BA;
  --focus: #72E2F0;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-synthesis: none; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 'Sofia Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-wrap: anywhere;
}
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: #F4F0E6; color: #1A1814; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1rem; }
.site-head { border-bottom: 1px solid var(--line); }
.head-row { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; justify-content: space-between; padding: .35rem 0; }
.brand {
  font-family: Unbounded, 'Sofia Sans', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-nav, .lang { display: flex; flex-wrap: wrap; gap: 0 .9rem; }
.site-nav a, .lang a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.lang a { color: var(--link); }
.status {
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: .5rem .8rem;
  margin: 1rem 0;
  background: var(--panel);
  font-weight: 600;
}
h1 {
  font-family: Unbounded, 'Sofia Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 4.5vw, 2.3rem);
  line-height: 1.2;
  margin: .8rem 0;
}
h2 {
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  font-weight: 600;
  margin: 2.5rem 0 .6rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
h3 { font-size: 1.1rem; font-weight: 600; }
.byline { color: var(--muted); }
.hero-q { border-left: 4px solid var(--accent); padding: .4rem .8rem; background: var(--panel2); margin: 1rem 0; }
.hero-q a { font-weight: 600; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }
.cap { font-size: .9rem; color: var(--muted); }
dfn { font-style: normal; font-weight: 600; border-bottom: 1px dotted var(--muted); }
.gloss { color: var(--muted); font-size: .95rem; }
.schem { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem; align-items: start; }
@media (max-width: 52rem) { .schem { grid-template-columns: minmax(0, 1fr); } }
.schem > figure > svg { width: 100%; height: auto; display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.schem svg text { fill: var(--text); font: 600 16px 'Sofia Sans', system-ui, sans-serif; }
.schem svg .small { font: 500 15px 'Sofia Sans', system-ui, sans-serif; fill: var(--muted); }
.node { fill: #16222E; stroke: #6C8291; stroke-width: 2; }
.e { stroke: var(--energy); fill: none; stroke-width: 3; }
.m { stroke: var(--matter); fill: none; stroke-width: 3; }
.light { stroke-dasharray: 12 7; }
.heat { stroke-dasharray: 14 5 3 5; }
.h2 { stroke-dasharray: 2 6; stroke-linecap: round; }
.water, .gas { stroke-dasharray: 2 6; stroke-linecap: round; stroke-width: 2; }
.anim .light, .anim .h2, .anim .heat { animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -38; } }
@media (prefers-reduced-motion: reduce) {
  .anim .light, .anim .h2, .anim .heat { animation: none !important; }
}
.paused .light, .paused .h2, .paused .heat { animation: none !important; }
.legend { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .3rem; }
.legend li { display: flex; gap: .6rem; align-items: center; }
.legend svg { flex: none; background: none !important; border: 0; width: 70px; height: 16px; }
ol.steps li { margin: .3rem 0; }
button, .btn {
  font: 600 1rem/1.3 'Sofia Sans', system-ui, sans-serif;
  background: var(--panel2);
  color: var(--text);
  border: 2px solid var(--link);
  border-radius: 6px;
  padding: .45rem .9rem;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
button:hover, .btn:hover { background: #1c2c3c; }
.btn-quiet { border-color: var(--muted); background: transparent; color: var(--text); }
.note-loop { border: 1px dashed var(--muted); padding: .5rem .8rem; border-radius: 6px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .05rem .5rem;
  border-radius: 4px;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
}
.tag svg { width: 12px; height: 12px; fill: currentColor; }
.t-sim { border: 2px solid #c9d1e6; }
.t-obs { border: 2px dashed #c9d1e6; }
.t-mea { border: 4px double #c9d1e6; }
.t-tbc { border: 2px dotted #c9d1e6; }
.legend-tags { display: grid; gap: .4rem; padding: 0; list-style: none; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 1rem 0; padding: .6rem 1rem 1rem; }
legend { font-weight: 600; padding: 0 .3rem; }
.opt { display: flex; gap: .6rem; align-items: flex-start; margin: .4rem 0; }
.opt input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; accent-color: var(--accent); flex: none; }
.opt label { cursor: pointer; }
.explain { background: var(--panel2); border-left: 4px solid var(--link); padding: .6rem .8rem; margin: .6rem 0; border-radius: 4px; }
.explain:empty { display: none; }
[hidden] { display: none !important; }
.bars { list-style: none; padding: 0; margin: 0; }
.bars li {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr);
  gap: .2rem .8rem;
  align-items: center;
  padding: .35rem 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 30rem) { .bars li { grid-template-columns: minmax(0, 1fr); } }
.track { position: relative; height: 14px; background: var(--panel2); border-radius: 3px; }
.range { position: absolute; top: 0; height: 14px; background: var(--bar); border-radius: 3px; min-width: 3px; }
.bars .val { font-size: .9rem; color: var(--muted); grid-column: 1 / -1; }
.axis { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { border: 1px solid var(--line); padding: .35rem .5rem; text-align: left; vertical-align: top; }
.tablewrap { overflow-x: auto; }
.law { border: 2px solid #c9d1e6; border-radius: 8px; padding: .8rem 1rem; background: var(--panel); }
details { border: 1px solid var(--line); border-radius: 6px; padding: .4rem .8rem; margin: .4rem 0; background: var(--panel); }
summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
dl.glo dt { font-weight: 600; margin-top: .6rem; }
dl.glo dd { margin: 0 0 0 1rem; }
.site-foot { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: .95rem; }
.site-foot a { color: var(--link); }
.shortcuts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.schem > figure > svg.schem-mob { display: none; }
@media (max-width: 52rem) {
  .schem > figure > svg.schem-desk { display: none; }
  .schem > figure > svg.schem-mob { display: block; }
  .schem-mob text { font: 700 20px 'Sofia Sans', system-ui, sans-serif !important; }
  .schem-mob .small { font: 600 18px 'Sofia Sans', system-ui, sans-serif !important; }
}
@media (min-width: 52.01rem) {
  .schem-desk text { font: 600 16px 'Sofia Sans', system-ui, sans-serif; }
  .schem-desk .small { font: 500 15px 'Sofia Sans', system-ui, sans-serif; }
}
