:root {
  --page: #17191e;
  --border: #2c3038;
  --panel: #111317;
  --raised: #1f2228;
  --line: #3a3e46;
  --control-border: #8a8d94;
  --accent: #ececec;
  --notice-bg: #2a180a;
  --notice-edge: #f97316;
  --pass: #ececec;
  --fail: #fca5a5;
  /* The diagrams' colors: the main page's HOT and NOT (the anomaly ramp's ends) for more and
     fewer fires, gray for MODIS and white for VIIRS. */
  --hot: #fdb863;
  --hot-fill: rgb(253 184 99 / 0.22);
  --not: #9ecae1;
  --modis: #a6a8ad;
  --viirs: #ececec;
}

body {
  background: var(--page);
}

/* Charts and their tables are drawn dark-on-white (the chart palette is the light one), so the
   surface keeps the light tokens and is then shown inverted, with hues turned back, to sit on
   the dark page. */
.surface {
  --fg: #1a1a1a;
  --muted: #555555;
  --link: #1a1a1a;
  --border: #c9c9c9;
  --panel: #f4f4f4;
  --pass: #1a1a1a;
  --fail: #b91c1c;
  background: #ffffff;
  color: var(--fg);
  border: 1px solid var(--border);
  filter: invert(1) hue-rotate(180deg);
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  padding: 0.5rem 0.875rem;
  border-radius: 2px;
  background: var(--bg);
  color: var(--link);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 0.875rem;
  z-index: 50;
}

.skip-link:focus {
  top: 0.5rem;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.site-footer {
  max-width: 76rem;
  margin: 3.5rem auto 0;
  padding: 0.875rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

.brand {
  color: var(--fg);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}

.brand__icon {
  display: none;
}

.site-header a:not(.brand) {
  font-size: 0.875rem;
}

main.method {
  max-width: 76rem;
  padding: 2.5rem 1.5rem 4.5rem;
}

main.method h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  max-width: 48rem;
  margin: 0 0 1rem;
}

main.method h2 {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 3.5rem 0 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 4.5rem;
}

.lede,
.prose,
.toc,
#method-status {
  max-width: 48rem;
}

.lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

#method-status {
  font-size: 0.9375rem;
  padding: 0.625rem 0.875rem;
  border-radius: 2px;
  background: var(--panel);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.toc {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2 16rem;
  column-gap: 2rem;
}

.toc li {
  padding: 0.25rem 0;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.terms {
  display: grid;
  gap: 1.125rem;
  margin: 1.5rem 0;
}

.terms dt {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--fg);
}

.terms dd {
  margin: 0.25rem 0 0;
  line-height: 1.6;
}

.terms var {
  font-weight: 600;
}

.timeline {
  list-style: none;
  padding-left: 1.5rem;
  position: relative;
  border-left: 2px solid var(--border);
  margin: 1.5rem 0;
}

.timeline li {
  position: relative;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 5px);
  top: 0.4em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--link);
}

.caveats li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.notice {
  background: var(--notice-bg);
  border-left: 4px solid var(--notice-edge);
  border-radius: 0;
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
  font-size: 0.9375rem;
}

.badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.625rem;
  border: 1px solid var(--notice-edge);
  border-radius: 2px;
  background: var(--notice-bg);
  font-size: 0.8125rem;
  font-weight: 600;
}

.badge[hidden],
[data-method][hidden] {
  display: none;
}

.chart-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  margin: 1.25rem 0 0.75rem;
}

.chart-controls label {
  font-weight: 600;
  cursor: pointer;
}

.chart-controls input {
  width: 1.125rem;
  height: 1.125rem;
  vertical-align: -0.15rem;
  accent-color: var(--link);
  cursor: pointer;
}

.legend-bar {
  padding: 0.625rem 0.875rem;
  margin-bottom: 0.875rem;
  border-radius: 2px;
  background: var(--panel);
}

.legend-bar:empty {
  display: none;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.legend li {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.legend li.off {
  text-decoration: line-through;
  opacity: 0.6;
}

.legend li.off svg {
  opacity: 0.35;
}

#detection > .legend {
  margin-bottom: 0.75rem;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 28rem), 1fr));
  gap: 1.25rem;
}

.chart-grid[data-loading]:empty {
  min-height: 300px;
}

.chart-card {
  margin: 0;
  padding: 1rem 1rem 0.75rem;
  min-width: 0;
}

.chart-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.375rem;
}

.chart {
  width: 100%;
}

.chart-empty {
  margin: 0;
  padding: 1.5rem 0;
  color: var(--muted);
  text-align: center;
}

.numbers summary {
  cursor: pointer;
  color: var(--link);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.375rem 0;
}

.numbers summary:hover {
  text-decoration: underline;
}

.numbers-body {
  font-size: 0.875rem;
}

.numbers-body .table-wrap {
  max-height: 24rem;
  overflow-y: auto;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 2px;
}

table.data {
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  margin: 0;
  font-size: 0.875rem;
  width: 100%;
}

table.data caption {
  text-align: left;
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

table.data th,
table.data td {
  padding: 0.4375rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

table.data thead th {
  font-weight: 600;
  border-bottom-width: 2px;
  background: var(--panel);
}

table.data th[scope="row"] {
  font-weight: 500;
}

table.data .num {
  text-align: right;
  white-space: nowrap;
}

.scores td.pass {
  color: var(--pass);
  font-weight: 600;
}

.scores td.fail {
  color: var(--fail);
}

.scores .mark {
  display: inline-block;
  width: 1.1em;
  margin-left: 0.2em;
  text-align: center;
}

.decision {
  max-width: 48rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.decision p {
  margin: 0.25rem 0;
}

.decision-head {
  font-size: 1.125rem;
  font-weight: 700;
}

.decision .rule {
  color: var(--muted);
  font-size: 0.875rem;
}

#k-table {
  padding: 1rem;
}

.k-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  align-items: center;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.k-scale {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-variant-numeric: tabular-nums;
}

.k-ramp {
  display: inline-block;
  width: 10rem;
  height: 0.75rem;
  border-radius: 2px;
}

.k-key {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.k-sample {
  display: inline-block;
  width: 1.6rem;
  height: 1.2rem;
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.k-table {
  border-collapse: separate;
  border-spacing: 2px;
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
}

.k-table caption {
  text-align: left;
  font-weight: 600;
  padding-bottom: 0.375rem;
}

.k-table th {
  font-weight: 500;
  text-align: left;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

.k-table thead th {
  text-align: center;
}

.k-table abbr {
  text-decoration: none;
}

.k-table td {
  min-width: 2.75rem;
  padding: 0.35rem 0.3rem;
  text-align: center;
  border-radius: 2px;
}

.k-table td.k-empty {
  color: var(--muted);
  border: 1px solid var(--border);
}

.k-region {
  max-width: 11rem;
  white-space: normal;
}

.level-pooled_3month {
  outline: 2px dotted currentColor;
  outline-offset: -4px;
}

.level-region_year {
  outline: 2px dashed currentColor;
  outline-offset: -4px;
}

.summary {
  max-width: 48rem;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 40rem) {
  main.method {
    padding-top: 1.5rem;
  }

  .k-table td {
    min-width: 2.4rem;
    padding: 0.3rem 0.15rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

section[id] {
  scroll-margin-top: 1rem;
}

.small {
  font-size: 0.875rem;
}

details.science {
  max-width: 48rem;
  margin: 1.25rem 0;
}

details.science > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.25rem 0;
}

details.science > summary:hover {
  color: var(--fg);
}

details.science[open] {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}

details.science p,
details.science li,
details.science dd {
  line-height: 1.6;
}

.diagram {
  max-width: 60rem;
  margin: 1.75rem 0 0;
}

.diagram figcaption {
  max-width: 48rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.diagram-info {
  min-height: 3.2em;
  max-width: 48rem;
  margin: 1rem 0 0;
  font-size: 0.9375rem;
}

.dg-control {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.dg-control label {
  flex: 0 0 100%;
  font-weight: 600;
}

.dg-control input[type="range"] {
  flex: 1 1 12rem;
  max-width: 26rem;
  min-height: 1.5rem;
  margin: 0;
  accent-color: var(--fg);
  cursor: pointer;
}

.dg-control output {
  min-width: 5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.dg-counts {
  margin: 0.5rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.dg-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.5rem;
  margin: 0.875rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted);
}

.dg-legend li {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.dg-small {
  font-size: 12px;
  fill: var(--fg);
}

.dg-muted {
  fill: var(--muted);
}

.dg-label {
  font-size: 13px;
  font-weight: 600;
  fill: var(--fg);
}

.dg-gridline {
  stroke: var(--border);
}

/* Who watched when */

.tl {
  --tl-label: 8.5rem;
  --tl-gap: 0.75rem;
  position: relative;
  display: grid;
  grid-template-columns: var(--tl-label) minmax(0, 1fr);
  column-gap: var(--tl-gap);
  row-gap: 0.5rem;
  align-items: center;
}

.tl-label {
  font-size: 0.875rem;
  line-height: 1.2;
}

.tl-camera {
  color: var(--muted);
  font-size: 0.8125rem;
}

.tl-track {
  position: relative;
  height: 1.5rem;
}

.tl-axis {
  height: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.tl-tick {
  position: absolute;
  bottom: 0;
  height: 0.25rem;
  border-left: 1px solid var(--line);
}

.tl-major {
  height: 0.4rem;
  border-left-color: var(--muted);
}

.tl-year {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 0.75rem;
  line-height: 1;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tl-record {
  height: 2rem;
}

.tl-bar,
.tl-seg {
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0 0.5rem;
  border: 0;
  border-radius: 2px;
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1;
  color: var(--page);
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}

.tl-seg {
  font-weight: 600;
}

.tl-seg + .tl-seg {
  box-shadow: inset 2px 0 0 var(--page);
}

.tl-modis {
  background: var(--modis);
}

.tl-viirs {
  background: var(--viirs);
}

.tl-bar:hover,
.tl-seg:hover {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* Out of the grid's flow, so it does not take the tracks' cells. */
.tl-switch {
  position: absolute;
  top: 1.5rem;
  bottom: -0.25rem;
  left: calc(var(--tl-label) + var(--tl-gap) + (100% - var(--tl-label) - var(--tl-gap)) * var(--at));
  border-left: 1px dashed var(--fg);
  pointer-events: none;
}

/* Same fire, two cameras */

.cameras {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.camera {
  flex: 1 1 13rem;
  max-width: 17rem;
}

.camera-name {
  margin: 0 0 0.375rem;
  font-weight: 600;
}

.cam-svg {
  display: block;
  width: 100%;
  height: auto;
}

.cam-land {
  fill: var(--raised);
}

.cam-grid {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.cam-edge {
  fill: none;
  stroke: var(--control-border);
}

.cam-hit {
  fill: var(--hot-fill);
  stroke: var(--hot);
  stroke-width: 2;
}

.cam-fire {
  fill: var(--hot);
  stroke: var(--page);
  stroke-width: 1;
}

/* How one VIIRS fire is counted */

.dg-pickers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin: 0.75rem 0 1rem;
}

.dg-pickers label {
  font-weight: 600;
}

.dg-pickers select,
.explorable select {
  min-height: 2.25rem;
  max-width: 100%;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--control-border);
  border-radius: 2px;
  background: var(--panel);
  color: var(--fg);
  font: inherit;
}

.dg-pickers select + label {
  margin-left: 0.5rem;
}

.cv-box {
  max-width: 40rem;
}

.cv-svg {
  display: block;
}

.cv-line {
  fill: none;
  stroke: var(--fg);
  stroke-width: 2.5;
}

.cv-guide {
  fill: none;
  stroke: var(--muted);
  stroke-dasharray: 3 3;
}

.cv-marker {
  fill: var(--hot);
  stroke: var(--page);
  stroke-width: 2;
}

.dg-sentence {
  max-width: 48rem;
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
}

.eq {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin: 1rem 0 0;
}

.eq-term {
  display: inline-flex;
  flex-direction: column;
}

.eq-value {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.eq-result .eq-value {
  font-size: 1.125rem;
}

.eq-name {
  font-size: 0.8125rem;
  color: var(--muted);
}

.eq-op {
  font-size: 1.5rem;
  color: var(--muted);
}

details.ex-more {
  max-width: 60rem;
  margin: 1.75rem 0 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

details.ex-more > summary {
  cursor: pointer;
  padding: 0.875rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
}

details.ex-more[open] {
  padding-bottom: 1.25rem;
}

/* Tested on years it never saw */

.yr-blocks {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.25rem;
  max-width: 40rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yr {
  padding: 0.375rem 0;
  border: 2px solid transparent;
  border-radius: 2px;
  text-align: center;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.yr-learn {
  background: var(--modis);
  color: var(--page);
}

.yr-hidden {
  border: 2px dashed var(--fg);
  color: var(--fg);
  font-weight: 600;
}

.yr-tested {
  border-color: var(--fg);
  color: var(--fg);
}

.yr-key {
  display: inline-block;
  width: 1.5rem;
  height: 1rem;
  border-radius: 2px;
}

.player {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.player[hidden] {
  display: none;
}

.player button {
  min-width: 4.5rem;
  min-height: 2.25rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--control-border);
  border-radius: 2px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}

.player button:hover:not(:disabled) {
  background: var(--raised);
}

.player button:disabled {
  opacity: 0.45;
  cursor: default;
}

.step-title {
  margin: 1.25rem 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.step-text {
  max-width: 48rem;
  margin: 0 0 1rem;
}

.ts-box {
  max-width: 44rem;
}

.ts-svg {
  display: block;
}

.ts-band {
  fill: var(--raised);
}

.ts-zero {
  stroke: var(--muted);
}

.ts-limit {
  stroke: var(--fg);
  stroke-dasharray: 4 3;
}

.ts-over {
  fill: var(--hot);
}

.ts-under {
  fill: var(--not);
}

.ts-ours {
  fill: var(--fg);
}

@media (max-width: 40rem) {
  .tl {
    --tl-label: 5.5rem;
    --tl-gap: 0.5rem;
  }

  .tl-bar,
  .tl-seg {
    padding: 0 0.375rem;
  }
}

/* Try it: one real day, and spotting a gas flare */

.explorable .player {
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 0.75rem;
}

.explorable select:disabled {
  opacity: 0.45;
}

.ex-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: ex-step;
}

.ex-steps li {
  counter-increment: ex-step;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-size: 0.875rem;
}

.ex-steps li::before {
  content: counter(ex-step) ". ";
}

.ex-steps li.done {
  color: var(--fg);
}

.ex-steps li[aria-current="step"] {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--page);
  font-weight: 600;
}

.ex-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0 0 1rem;
}

.ex-counters div {
  display: flex;
  flex-direction: column;
}

.ex-counters dt {
  font-size: 0.8125rem;
  color: var(--muted);
}

.ex-counters dd {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ex-maps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 1.5rem;
  align-items: start;
}

@media (min-width: 48rem) {
  .ex-maps {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

.ex-box {
  min-width: 0;
}

.ex-svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.ex-sea {
  fill: var(--page);
}

.ex-land {
  fill: var(--raised);
  stroke: var(--line);
}

.ex-place {
  fill: var(--muted);
}

.ex-frame {
  fill: none;
  stroke: var(--fg);
  stroke-dasharray: 3 2;
}

.ex-scale {
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.5;
}

.ex-tray {
  stroke: var(--line);
}

.ex-dot {
  stroke: var(--page);
  stroke-width: 1;
}

.ex-viirs {
  fill: var(--viirs);
}

.ex-modis {
  fill: var(--modis);
}

.ex-saw {
  stroke: var(--modis);
  stroke-width: 2.5;
}

.ex-missed {
  fill-opacity: 0.4;
}

.ex-reference {
  fill: none;
  stroke: var(--modis);
  stroke-width: 1.5;
}

.ex-aside {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-dasharray: 2 2;
}

.ex-added {
  fill-opacity: 0.8;
}

.ex-foot {
  fill: rgb(166 168 173 / 0.18);
  stroke: var(--modis);
  stroke-width: 1.5;
}

.ex-cell {
  fill: var(--hot);
  stroke: var(--hot);
}

.ex-cellgrid {
  fill: none;
  stroke: var(--line);
  stroke-dasharray: 2 3;
}

.ex-cell-sum {
  font-size: 13px;
  font-weight: 600;
  fill: var(--fg);
  font-variant-numeric: tabular-nums;
}

.ex-pick {
  fill: none;
  stroke: var(--fg);
  stroke-width: 2;
}

.ex-pick-row {
  margin-top: 1rem;
}

.ex-pick-row output {
  flex: 1 0 100%;
  min-height: 3em;
  font-weight: 400;
}

.ex-month {
  max-width: 40rem;
}

.ex-bar {
  fill: var(--muted);
  fill-opacity: 0.55;
}

.ex-bar-day {
  fill: var(--hot);
}

.ex-bar-wait {
  fill: none;
  stroke: var(--hot);
  stroke-dasharray: 3 2;
}

.ex-log-title {
  margin-top: 1.25rem;
}

.ex-log {
  max-width: 48rem;
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.ex-log li {
  margin: 0.125rem 0;
}

.ex-log li.latest {
  color: var(--fg);
}

.ex-flare-map {
  max-width: 26rem;
}

.ex-spotgrid {
  fill: none;
  stroke: var(--line);
}

.ex-spot {
  fill: var(--fg);
}

.ex-spot-flag {
  fill: var(--not);
  fill-opacity: 0.3;
  stroke: var(--not);
  stroke-width: 2;
}

.ex-spot-n {
  font-size: 11px;
  font-weight: 600;
  fill: var(--fg);
  font-variant-numeric: tabular-nums;
}

.ex-flag-label {
  font-size: 13px;
  font-weight: 600;
  fill: var(--not);
}

.ex-today {
  fill: var(--hot);
  stroke: var(--page);
  stroke-width: 1;
}

.ex-today-night {
  fill: none;
  stroke: var(--hot);
  stroke-width: 2;
}

/* The moves are keyframes from where a dot was (custom properties set per dot) to where it is,
   so a redraw shows the change; under reduced motion nothing moves. */
@media (prefers-reduced-motion: no-preference) {
  .ex-anim-aside {
    animation: ex-aside 0.9s ease-in-out both;
  }

  .ex-anim-shrink {
    transform-box: fill-box;
    transform-origin: center;
    animation: ex-shrink 0.9s ease-in-out both;
  }

  .ex-anim-in {
    animation: ex-in 0.8s ease-out both;
  }

  .ex-flash {
    transform-box: fill-box;
    transform-origin: center;
    animation: ex-flash 0.5s ease-out both;
  }
}

@keyframes ex-aside {
  from {
    transform: translate(var(--dx), var(--dy));
  }
}

@keyframes ex-shrink {
  from {
    transform: scale(var(--s0));
  }
}

@keyframes ex-in {
  from {
    opacity: 0;
  }
}

@keyframes ex-flash {
  from {
    transform: scale(2.4);
    opacity: 0.35;
  }
}

@media (max-width: 40rem) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  main.method {
    padding: 1.5rem 1rem 3rem;
  }

  .lede {
    font-size: 1.0625rem;
  }

  main.method h2 {
    margin-top: 2.5rem;
  }

  .toc {
    padding: 1rem 1.125rem;
  }

  .eq-value,
  .eq-op {
    font-size: 1.25rem;
  }

  .ex-counters {
    gap: 0.5rem 1.25rem;
  }

  .ex-counters dd {
    font-size: 1.25rem;
  }

  .yr {
    font-size: 0.75rem;
  }

  .site-footer {
    padding: 0.875rem 1rem 2rem;
  }
}

@media (pointer: coarse) {
  .player button,
  .dg-pickers select,
  .explorable select {
    min-height: 2.75rem;
  }

  .dg-control input[type="range"] {
    min-height: 2.75rem;
  }

  .chart-controls label {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    min-height: 2.75rem;
  }

  .toc li {
    padding: 0.4rem 0;
  }

  .tl-record {
    height: 2.5rem;
  }
}

/* For scientists */

.science-part h3 {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.1875rem;
  scroll-margin-top: 1rem;
}
