/* The home page (R106), the explorer (R107), the job page (R113) and employer logos (rnjobs/logos.py). Mockup:
   docs/superpowers/specs/assets/2026-11-12-home-mockup.html. Series colours mark, never text. */
:root {
  --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; --c0: #c5cad1;
  --t0: #dbe7fb; --t1: #aecbf5; --t2: #74a6ec; --t3: #1f6fd1; --t4: #154c9c; --tn: #eceef1;
  --t0-ink: #1f2933; --t1-ink: #1f2933; --t2-ink: #1f2933; --t3-ink: #ffffff; --t4-ink: #ffffff; --tn-ink: #4b5563;
  --tint: #eef3ff; --tint-ink: #4b5563; --fresh: #e6f6ee; --fresh-ink: #0a6b43;
}
@media (prefers-color-scheme: dark) {
  :root {
    --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c0: #5b6573;
    --t0: #1d3557; --t1: #24497d; --t2: #2f63ab; --t3: #6ea0ff; --t4: #a9c8ff; --tn: #323c49;
    --t0-ink: #e5e7eb; --t1-ink: #e5e7eb; --t2-ink: #ffffff; --t3-ink: #0b1220; --t4-ink: #0b1220; --tn-ink: #c4cad3;
    --tint: #243552; --tint-ink: #c4cad3; --fresh: #1d3a30; --fresh-ink: #7fd8ae;
  }
}

.box { background: var(--card); border-radius: 16px; box-shadow: var(--lift); padding: 16px 18px; }
.finder { display: grid; gap: 14px; }
.finder h2 { margin-bottom: 10px; }
.finder form { display: grid; gap: 10px; margin: 0; }
.finder select, .finder input, .finder .btn { width: 100%; }
.answer { background: var(--tint); color: var(--tint-ink); border-radius: 12px; padding: 14px 16px; font-size: 0.9rem; }
.answer strong { display: block; color: var(--ink); font-size: 1.6rem; line-height: 1.2; }
.answer a { color: var(--blue); text-decoration: none; }

.pair, .charts { display: grid; gap: 20px; }
.map { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 3px; }
.tile { aspect-ratio: 1; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 0.62rem; line-height: 1.15; text-decoration: none; }
.tile b { font-weight: 600; }
.tile i { font-style: normal; display: none; }
a.tile:hover { outline: 2px solid var(--ink); color: inherit; }
.t0 { background: var(--t0); color: var(--t0-ink); }
.t1 { background: var(--t1); color: var(--t1-ink); }
.t2 { background: var(--t2); color: var(--t2-ink); }
.t3 { background: var(--t3); color: var(--t3-ink); }
.t4 { background: var(--t4); color: var(--t4-ink); }
.tile.nopay, .legend .nopay { background: var(--tn); color: var(--tn-ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 0.8rem; color: var(--grey); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.blurb { margin: 0; color: var(--grey); font-size: 0.88rem; }

.latest { list-style: none; margin: 0; padding: 0; }
.latest li { padding: 11px 0; border-top: 1px solid var(--rule); }
.latest li:first-child { border-top: 0; padding-top: 0; }
.latest a { display: block; font-weight: 600; text-decoration: none; }
.latest span { display: block; color: var(--grey); font-size: 0.86rem; }
.latest em { font-style: normal; font-size: 0.86rem; font-weight: 500; }
.latest .nopay { color: var(--grey); font-weight: 400; }
/* Logos: a white plaque in light and dark mode, as most are drawn for white */
.logo, .logoed .initials { flex: none; border-radius: 8px; }
.logo { display: block; aspect-ratio: 2; object-fit: contain; background: #fff; border: 1px solid var(--rule); padding: 3px; box-sizing: border-box; }
.logoed { display: flex; align-items: start; gap: 12px; }
.logoed > div { min-width: 0; }
.logoed .initials { display: grid; place-items: center; width: 64px; height: 32px; background: var(--tint); color: var(--blue); font-size: 0.78rem; font-weight: 600; }
.fresh { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--fresh); color: var(--fresh-ink); font-size: 0.72rem; font-weight: 600; vertical-align: 2px; }

.go { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
.viz h3 { margin-bottom: 2px; }
.donut { display: flex; gap: 18px; align-items: center; }
.ring { flex: none; width: 140px; height: 140px; }
.ring circle { fill: none; stroke-width: 26; }
.ring circle:nth-of-type(1), .keys li:nth-child(1) i { stroke: var(--c1); background: var(--c1); }
.ring circle:nth-of-type(2), .keys li:nth-child(2) i { stroke: var(--c2); background: var(--c2); }
.ring circle:nth-of-type(3), .keys li:nth-child(3) i { stroke: var(--c3); background: var(--c3); }
.ring circle:nth-of-type(4), .keys li:nth-child(4) i { stroke: var(--c4); background: var(--c4); }
.ring circle.other, .keys li.other i { stroke: var(--c0); background: var(--c0); }
.keys { flex: 1; list-style: none; margin: 0; padding: 0; font-size: 0.86rem; }
.keys li { display: flex; align-items: center; gap: 7px; padding: 3px 0; }
.keys i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.keys b { margin-left: auto; font-weight: 600; }
.hbar { display: grid; grid-template-columns: 104px minmax(0, 1fr) 62px; gap: 10px; align-items: center; font-size: 0.86rem; }
.track { position: relative; height: 12px; }
.track i { display: block; height: 12px; min-width: 3px; border-radius: 0 4px 4px 0; background: var(--c1); }
.track.rng { background: var(--rule-soft); border-radius: 4px; }
.rng i { position: absolute; top: 0; border-radius: 4px; }
.hbar b { font-weight: 600; text-align: right; white-space: nowrap; }
.trendline { display: block; width: 100%; height: auto; }
.trendline .base { stroke: var(--rule); }
.trendline path { fill: none; stroke: var(--c1); stroke-width: 2; stroke-linejoin: round; }
.trendline circle { fill: var(--c1); stroke: var(--card); stroke-width: 2; }
.ax { font-size: 10px; fill: var(--grey); }
.ax.strong { fill: var(--ink); font-weight: 600; font-size: 11px; }

@media (min-width: 48rem) {
  .box { padding: 20px 24px; }
  .finder { grid-template-columns: 1.6fr 1fr; align-items: center; }
  .finder form { grid-template-columns: 1fr 1fr 9.5em auto; }
  .finder .btn { width: auto; }
  .pair { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  /* three cards a row; a short last row shares the width */
  .charts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .charts > * { grid-column: span 2; }
  .charts > :nth-last-child(2):nth-child(3n + 1), .charts > :last-child:nth-child(3n + 2) { grid-column: span 3; }
  .charts > :last-child:nth-child(3n + 1) { grid-column: span 6; }
  .map { gap: 5px; }
  .tile { font-size: 0.74rem; }
  .tile i { display: block; font-size: 0.68rem; }
}

/* One finding from the newest monthly report, under the pay box on the home page (R192). */
.story-fact { margin: 20px 0; padding: 14px 18px; border-left: 3px solid var(--blue); background: var(--band); border-radius: 0 10px 10px 0; }
.story-fact a { white-space: nowrap; }

/* Today's headlines on the home page (R194): a fixed strip, no movement. */
.today { margin: 0; padding: 16px 20px; background: var(--card); border-radius: 16px; box-shadow: var(--lift); }
.today h2 { margin: 0; font-size: 1.05rem; }
.today-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 8px; }
.today .dateline { margin: 0; }
.today ul { margin: 0; padding: 0; list-style: none; }
.today li { padding: 8px 0; border-top: 1px solid var(--rule-soft); }
.today li a { color: inherit; text-decoration: none; }
.today li a:hover { color: var(--blue); }
.today .more { margin: 8px 0 0; }
@media (max-width: 600px) { .today li:nth-child(n+4) { display: none; } }
