/* histoire-et-art — single stylesheet. No framework, no build.

   Design choice (10/11/2026): an atlas. The site shows a transdisciplinary
   graph; its layers are blocks of paper laid on a light stone, and the
   bridges between layers are lines that shift from the tint of one to the
   tint of the other. A single red dot — the seal — says "you are here".
   Text stays text: the drawing is added, it never replaces a list.

   All the content is in the HTML. The 3D (WebGPU, WebGL 2 fallback) goes
   into slots whose size is reserved here: its arrival shifts nothing, and a
   page without JavaScript is the same page, without the drawing. */

/* --- Fonts: served by the site, see assets/fonts/LICENCE.md --------------- */
@font-face { font-family: "HEA Serif"; font-style: normal; font-weight: 400 700; font-display: swap;
             src: url("../fonts/hea-serif.woff") format("woff"); }
@font-face { font-family: "HEA Serif"; font-style: italic; font-weight: 400 700; font-display: swap;
             src: url("../fonts/hea-serif-italic.woff") format("woff"); }
@font-face { font-family: "HEA Sans"; font-style: normal; font-weight: 400; font-display: swap;
             src: url("../fonts/hea-sans-400.woff") format("woff"); }
@font-face { font-family: "HEA Sans"; font-style: normal; font-weight: 600; font-display: swap;
             src: url("../fonts/hea-sans-600.woff") format("woff"); }

:root {
  color-scheme: light dark;

  --paper:      #fcfcfa;   /* rice paper */
  --paper-sunk: #eef0ec;   /* light stone: the background of the maps */
  --paper-up:   #ffffff;   /* a block laid on the stone */
  --rule:       #dfe1dc;
  --ink:        #1f2422;   /* encre */
  --ink-soft:   #4d5552;
  --ink-faint:  #68706d;
  --accent:     #35604f;   /* moss: the links */
  --accent-ink: #fcfcfa;
  --seal:       #c2452f;   /* seal: the current position, and nothing else */

  --serif: "HEA Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  "HEA Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --mono:  ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --page:    76rem;                          /* page width */
  --gutter:  clamp(1.25rem, 4.5vw, 3.5rem);  /* side margin */
  --measure: 38rem;                          /* line length of body text */
  --gap:     1.5rem;
  --stem:    1.5rem;                         /* indent of the pathway stem */

  /* One tint per graph layer. It is used by the home page circle, the list
     dots and links to another layer: the colour repeats what the label
     already says, it never replaces it. */
  --l-astronomy:     #3f5f91;
  --l-discipline:    #35604f;
  --l-chronology:    #8a6a2f;
  --l-geography:     #2d6b6e;
  --l-relief:        #556b35;
  --l-geohistory:    #6b4a7d;
  --l-civilization:  #8f4a39;
  --l-biography:     #8c4668;
  --l-heritage:      #6e5547;
  --l-bibliography:  #455a6b;
  --l-education:     #7b7a36;
  --l-noologiagraph: #5d5d58;

  /* The spectrum of layers, as one bar: the site's signature. */
  --spectrum: linear-gradient(90deg, var(--l-astronomy) 0 20%, var(--l-relief) 0 40%,
              var(--l-geography) 0 60%, var(--l-civilization) 0 80%, var(--l-chronology) 0);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131614; --paper-sunk: #0e1110; --paper-up: #1a1e1c; --rule: #2b312e;
    --ink: #e4e7e3; --ink-soft: #adb5b0; --ink-faint: #858d88;
    --accent: #a3cbb9; --accent-ink: #131614; --seal: #e2644f;
    --l-astronomy:     #8fb0e0;
    --l-discipline:    #8fcbb4;
    --l-chronology:    #d8b069;
    --l-geography:     #72bdbd;
    --l-relief:        #a3c478;
    --l-geohistory:    #b795c9;
    --l-civilization:  #e0917c;
    --l-biography:     #dc8fae;
    --l-heritage:      #bda191;
    --l-bibliography:  #93aec4;
    --l-education:     #c9c877;
    --l-noologiagraph: #a8a8a0;
  }
}
:root[data-theme="dark"] {
  --paper: #131614; --paper-sunk: #0e1110; --paper-up: #1a1e1c; --rule: #2b312e;
  --ink: #e4e7e3; --ink-soft: #adb5b0; --ink-faint: #858d88;
  --accent: #a3cbb9; --accent-ink: #131614; --seal: #e2644f;
  --l-astronomy:     #8fb0e0;
  --l-discipline:    #8fcbb4;
  --l-chronology:    #d8b069;
  --l-geography:     #72bdbd;
  --l-relief:        #a3c478;
  --l-geohistory:    #b795c9;
  --l-civilization:  #e0917c;
  --l-biography:     #dc8fae;
  --l-heritage:      #bda191;
  --l-bibliography:  #93aec4;
  --l-education:     #c9c877;
  --l-noologiagraph: #a8a8a0;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* Full width (home, 3D view) uses 100vw, which includes the width of the
   vertical scrollbar: without this line, horizontal scrolling appears. */
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: .6rem .9rem; border-radius: 3px; text-decoration: none;
}
.skip:focus { left: var(--gutter); top: .75rem; z-index: 10; }

/* --- Header ----------------------------------------------------------------
   Two axes, spelled out: the layers (what the graph is made of) and the
   ways to browse it. The name and the tools above. */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-in {
  display: grid; align-items: center; gap: 0 2.5rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "mark modes tools" "layers layers layers";
  max-width: var(--page); margin-inline: auto; padding: 1.3rem var(--gutter) 0;
}
.wordmark { grid-area: mark; margin: 0; font: 400 1.5rem/1.15 var(--serif); letter-spacing: .005em; white-space: nowrap; }
.wordmark a { color: var(--ink); text-decoration: none; }
.wordmark-sub { display: none; align-items: center; gap: .55rem; margin-left: 1rem;
                color: var(--ink-faint); font: 400 .8125rem/1 var(--sans); vertical-align: .2em; }
.wordmark-sub::before { content: ""; width: 2.25rem; height: 3px; border-radius: 2px; background: var(--spectrum); }
.masthead-tools { grid-area: tools; display: flex; align-items: baseline; gap: 1.75rem; font-size: .875rem; }
.masthead-account { color: var(--ink-soft); text-decoration: none; }
.masthead-account:hover { color: var(--ink); text-decoration: underline; }
.nav-modes .nav-account { display: none; }
@media (max-width: 30rem) {
  .masthead-account { display: none; }
  .nav-modes .nav-account { display: inline-flex; }
}

.nav-group { display: flex; align-items: baseline; gap: 0 1.35rem; font-size: .9375rem; line-height: 1.3; }
.nav-modes { grid-area: modes; justify-self: end; }
.nav-layers { grid-area: layers; margin-top: .9rem; padding-top: .1rem; border-top: 1px solid var(--rule); }
.nav-title { color: var(--ink-faint); font-size: .75rem; letter-spacing: .04em; }
.nav-group a { display: inline-flex; align-items: baseline; gap: .4rem; padding: .65rem 0 .75rem;
               color: var(--ink-soft); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav-modes a { padding-block: .4rem; white-space: nowrap; }
.nav-group a:hover { color: var(--ink); }
.nav-group a[aria-current] { color: var(--ink); border-bottom-color: var(--c, var(--ink)); }
.nav-layer::before { content: ""; flex: none; width: .45rem; height: .45rem; border-radius: 50%;
                     background: var(--c, var(--ink-faint)); transform: translateY(-.05em); }

/* Narrow screen: the name and the tools, then two strips that scroll sideways. */
@media (max-width: 72rem) {
  .wordmark-sub { display: none; }
  .masthead-in { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "mark tools" "modes modes" "layers layers"; }
  .nav-group { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
               overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .nav-group::-webkit-scrollbar { display: none; }
  .nav-modes { justify-self: stretch; margin-top: .6rem; }
  .nav-layers { margin-top: 0; }
}

/* --- Contenu --------------------------------------------------------------- */
.content {
  max-width: var(--page); margin-inline: auto;
  padding: 3.5rem var(--gutter) 7rem;
  min-height: 60vh;
}

h1 { margin: 0 0 1.25rem; font: 400 clamp(2.25rem, 1.45rem + 3vw, 3.75rem)/1.08 var(--serif);
     letter-spacing: -.015em; text-wrap: balance; }
h2 { margin: 4.5rem 0 1.25rem; font: 400 1.625rem/1.25 var(--serif); letter-spacing: -.005em; }
h3 { margin: 0 0 .4rem; font: 600 1rem/1.35 var(--sans); }
h2 a, h3 a { color: inherit; text-decoration: none; }
h2 a:hover, h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

.lede { max-width: var(--measure); margin: 0 0 2.5rem; color: var(--ink-soft);
        font: 400 1.25rem/1.55 var(--serif); text-wrap: pretty; }
.kind { margin: 0 0 .75rem; color: var(--ink-faint); font-size: .9375rem; }

/* The layer of a concept, above its title, and that of a group of results
   when it leaves the current layer: the dot repeats what the name already
   says. */
.layer-tag { display: inline-flex; align-items: baseline; gap: .4rem;
             color: var(--ink-soft); text-decoration: none; }
.layer-tag::before { content: ""; flex: none; width: .4rem; height: .4rem; border-radius: 50%;
                     background: var(--c, var(--ink-faint)); }
a.layer-tag:hover { color: var(--ink); text-decoration: underline; }
.kind .sep { margin-inline: .45rem; color: var(--rule); }
.layer-head { margin: -.5rem 0 1.25rem; font-variant-numeric: tabular-nums lining-nums; }

.group-layer { display: flex; align-items: baseline; gap: .4rem; margin: -.15rem 0 .4rem;
               color: var(--ink-faint); font-size: .8125rem; }
.group-layer::before { content: ""; flex: none; width: .375rem; height: .375rem; border-radius: 50%;
                       background: var(--c, var(--ink-faint)); }

.kodo-jump { margin: -.9rem 0 1.5rem; padding-left: var(--stem); font-size: .875rem; }
.meta { margin: 0 0 1.5rem; color: var(--ink-faint); font-size: .875rem; }
.empty { color: var(--ink-faint); }
.note { max-width: var(--measure); color: var(--ink-soft); font-size: .9375rem; }
.count { margin-left: .4rem; color: var(--ink-faint);
         font: 400 .8125rem/1 var(--sans); font-variant-numeric: tabular-nums lining-nums; }
.more { margin: 1.25rem 0 0; font-size: .9375rem; }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .15rem .6rem;
                 margin: 0 0 3rem; padding: 0; font-size: .875rem; line-height: 1.5; color: var(--ink-faint); }
.breadcrumb li + li::before { content: "/"; margin-right: .6rem; color: var(--rule); }
.breadcrumb a { color: var(--ink-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink-soft); }
.breadcrumb .plain { color: var(--ink-faint); }


/* --- Home ------------------------------------------------------------------
   The header says what the graph is, in figures. Then the map, on the
   stone; then the bridges spelled out; then the ways to browse. */
.home .content { padding-top: 3.5rem; }

.kicker { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.1rem;
          color: var(--ink-soft); font: 400 .9375rem/1.3 var(--sans); }
.kicker::before { content: ""; flex: none; width: 3rem; height: 4px; border-radius: 2px; background: var(--spectrum); }

.hero { display: grid; gap: 1.5rem 5rem; align-items: end; margin-bottom: 4.5rem; }
.hero .kicker { grid-column: 1 / -1; margin: 0; }
.hero h1 { margin: 0; font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.5rem); line-height: 1.02; }
.hero .lede { margin: 0 0 2rem; }
@media (min-width: 62rem) { .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }

.figures { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0 2.25rem; margin: 0; }
.figures div { display: flex; flex-direction: column-reverse; }
.figures dd { margin: 0; font: 400 1.875rem/1.1 var(--serif); font-variant-numeric: tabular-nums lining-nums; }
.figures dt { margin-top: .3rem; color: var(--ink-faint); font-size: .8125rem; line-height: 1.25; }
@media (max-width: 30rem) { .figures { grid-template-columns: repeat(2, auto); gap: 1.25rem 2.5rem; } }

/* Section header: the title on the left, what to know on the right. */
.section-head { display: grid; gap: .5rem 4rem; align-items: baseline; margin-bottom: 2.75rem; }
.section-head h2 { margin: 0; }
.section-head .note { margin: 0; }
@media (min-width: 62rem) { .section-head { grid-template-columns: minmax(0, 24rem) minmax(0, var(--measure)); } }

/* The stone: a full-width band on which the layers are laid. */
.atlas-section, .hood-section {
  width: 100vw; margin-inline: calc(50% - 50vw);
  background: var(--paper-sunk);
  padding-block: 4rem 4.5rem;
}
.atlas-section > *, .hood-in { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }

/* The map. Each layer's place is a reading choice: from the cosmos
   (top left) to societies and time (right), the framework at the bottom. */
.atlas {
  position: relative; display: grid; align-items: start; gap: 3.25rem 4.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "astronomy relief        geography civilization"
    "discipline noologiagraph .        chronology";
}
.a-astronomy { grid-area: astronomy; }       .a-relief { grid-area: relief; }
.a-geography { grid-area: geography; }       .a-civilization { grid-area: civilization; }
.a-chronology { grid-area: chronology; }     .a-noologiagraph { grid-area: noologiagraph; }
.a-discipline { grid-area: discipline; }
@media (max-width: 68rem) {
  .atlas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 5rem;
           grid-template-areas: "astronomy relief" "geography civilization" "noologiagraph chronology" "discipline ."; }
}
@media (max-width: 40rem) {
  /* One column: the arcs run through the right margin, kept clear. */
  .atlas { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; padding-right: calc(var(--gutter) + 2.75rem);
           grid-template-areas: "astronomy" "relief" "geography" "noologiagraph" "chronology" "civilization" "discipline"; }
}

.atlas-card { position: relative; z-index: 1; padding: 1.05rem 0 .35rem;
              background: var(--paper-up); border-radius: 6px;
              box-shadow: 0 0 0 1px var(--rule), 0 -3px 0 0 var(--c, var(--ink-faint));
              transition: box-shadow .15s; }
.atlas-card:hover, .atlas-card:focus-within { box-shadow: 0 0 0 1px var(--c, var(--ink-faint)), 0 -3px 0 0 var(--c, var(--ink-faint)); }
.atlas-head { display: flex; align-items: baseline; gap: .55rem; margin: 0 1.1rem .1rem;
              font: 400 1.375rem/1.2 var(--serif); }
.atlas-head::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--c); }
.atlas-head a { color: var(--ink); text-decoration: none; }
.atlas-head a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.atlas-size { margin: 0 1.1rem .8rem; color: var(--ink-faint); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.atlas-types { list-style: none; margin: 0; padding: 0; }
.atlas-types li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: .75rem;
                  padding: .42rem 1.1rem .38rem; border-top: 1px solid var(--rule); font-size: .875rem; line-height: 1.3; }
.atlas-types a { color: var(--ink-soft); text-decoration: none; }
.atlas-types a:hover { color: var(--ink); text-decoration: underline; }
.atlas-types .count { margin: 0; }
.atlas-types .is-bridge a { color: var(--ink); font-weight: 600; }
.atlas-bar { grid-column: 1 / -1; display: block; width: 100%; height: 3px; margin-top: .4rem;
             border-radius: 2px; background: color-mix(in srgb, var(--c, var(--ink-faint)) 12%, transparent); }
.atlas-bar rect { fill: var(--c, var(--ink-faint)); opacity: .7; }
.atlas-rest a { color: var(--ink-faint); }

.planned { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1.1rem; margin-top: 2.75rem;
           color: var(--ink-faint); font-size: .875rem; }
.planned-layer { display: inline-flex; align-items: baseline; gap: .4rem; }
.planned-layer::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%;
                         box-shadow: inset 0 0 0 1px var(--c, var(--ink-faint)); }

/* The lines (graph-links.mjs). Above the blocks, no pointer events: they
   start from the edge of a block and run through the margins. */
.graph-wires { position: absolute; inset: 0; z-index: 2; overflow: visible; pointer-events: none; }
.wire { fill: none; stroke-linecap: round; opacity: .72; transition: opacity .2s; }
/* A frame (a reference system framing a layer) is not a data bridge:
   it is dashed. */
.wire-g.is-frame .wire { stroke-dasharray: 2 5; opacity: .6; }
.wire-end { transition: opacity .2s; }
.wire-label { fill: var(--ink-soft); font: 600 11px/1 var(--sans); font-variant-numeric: tabular-nums;
              paint-order: stroke; stroke: var(--paper-sunk); stroke-width: 4px; stroke-linejoin: round;
              transition: opacity .2s; }
.is-focused .wire-g:not(.on) .wire { opacity: .07; }
.is-focused .wire-g:not(.on) :is(.wire-end, .wire-label) { opacity: .1; }
.is-focused .wire-g.on .wire { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .wire, .wire-end, .wire-label, .atlas-card { transition: none; } }
@media print { .graph-wires { display: none; } }

/* The bridges, spelled out. */
.bridges { margin-top: 6rem; }
.bridge-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 4.5rem;
               grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); }
.bridge { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1.5rem; align-items: baseline;
          padding: 1.15rem 0 1.3rem; border-top: 1px solid var(--rule); }
.bridge p { margin: 0; }
.bridge-ends { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem; font: 400 1.1875rem/1.3 var(--serif); }
.bridge-end { display: inline-flex; flex-direction: column; }
.bridge-layer { display: inline-flex; align-items: baseline; gap: .4rem; color: var(--ink-faint); font: 400 .75rem/1.4 var(--sans); }
.bridge-layer::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--c); }
.bridge-arrow { align-self: end; width: 2rem; height: 1px; margin-bottom: .6em; background: var(--ink-faint); position: relative; }
.bridge-arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
                       border-top: 1px solid var(--ink-faint); border-right: 1px solid var(--ink-faint); transform: rotate(45deg); }
.bridge-n { color: var(--ink-faint); font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bridge-ex { grid-column: 1 / -1; color: var(--ink-faint); font-size: .875rem; }
.bridge-ex > span:first-child { margin-right: .5rem; }
.bridge-ex a { color: var(--accent); }

.bridges-layer { margin-top: 3rem; }
.bridges-layer h2 { margin-bottom: 1.25rem; }
.frames { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1.25rem; margin: 1.5rem 0 0;
          padding-top: 1.15rem; border-top: 1px solid var(--rule); color: var(--ink-faint); font-size: .875rem; }
.frame { display: inline-flex; align-items: baseline; gap: .4rem; color: var(--ink-soft); }
.frame::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--c); }
.frame .count { margin-left: .15rem; }

/* The ways to browse. */
.modes { margin-top: 6rem; }
.mode-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3rem 3.5rem;
             grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.mode { padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.mode h3 { margin: .9rem 0 .4rem; font: 400 1.5rem/1.2 var(--serif); }
.mode p { margin: 0; color: var(--ink-soft); font-size: .9375rem; }
.mode .more { margin-top: 1rem; }

.glyph { display: block; width: 4rem; height: 2.5rem; overflow: visible;
         fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; }
.glyph circle { fill: var(--paper); }
.glyph .g-fill { fill: var(--accent); stroke: none; }
.glyph .g-accent { stroke: var(--accent); stroke-width: 1.6; }
.glyph .g-faint { stroke: var(--rule); }
.glyph .g-thick { stroke: var(--ink-soft); stroke-width: 3.4; }

/* The solar system band: a layer browsed in 3D. */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100vw; margin: 7rem 0; margin-inline: calc(50% - 50vw);
  display: grid; align-items: center; min-height: 23rem;
  padding-block: 4.5rem; background: var(--paper-sunk);
}
.band-text { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.band-text h2 { margin: 0 0 .9rem; font-size: clamp(1.875rem, 1.2rem + 2vw, 2.75rem); }
.band-text h2 a { color: var(--ink); text-decoration: none; }
.band-text h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.band-text p { max-width: 29rem; margin: 0; color: var(--ink-soft); }
.band-text .more { margin-top: 1.5rem; }

.backdrop {
  position: absolute; inset: 0 -14% 0 38%; z-index: -1;
  pointer-events: none;        /* never steals a click or a selection */
  overflow: hidden; contain: layout style paint;
  /* The drawing fades towards the text, on the left. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%);
          mask-image: linear-gradient(90deg, transparent 0, #000 28%);
}
.backdrop canvas { display: block; width: 100%; height: 100%; }
/* Final contrast is set here, not in the scene: a background stays a
   background. The data-tone flag is set by the module. */
.backdrop[data-tone="dark"]  { opacity: .8; }
.backdrop[data-tone="light"] { opacity: .66; }
@media (max-width: 52rem) {
  .band { min-height: 0; padding-block: 3.5rem; }
  .backdrop { inset: 0; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 70%);
                                mask-image: linear-gradient(180deg, transparent 0, #000 70%); }
  .band-text { padding-top: 11rem; }
}
@media print { .backdrop { display: none; } }


.band .kicker { margin-bottom: .9rem; }

/* A layer and its neighbours (module entry page). */
.layer-head { margin: -.5rem 0 1.25rem; font-variant-numeric: tabular-nums lining-nums; }
.layer-with { display: flex; flex-wrap: wrap; gap: .3rem .75rem; margin: 1.1rem 0 0; font-size: .875rem; }
.layer-with > span { color: var(--ink-faint); }
.layer-with a { display: inline-flex; align-items: baseline; gap: .35rem;
                color: var(--ink-soft); text-decoration: none; }
.layer-with a::before { content: ""; width: .375rem; height: .375rem; border-radius: 50%;
                        background: var(--c, var(--ink-faint)); }
.layer-with a:hover { color: var(--ink); text-decoration: underline; }

/* --- Listes ---------------------------------------------------------------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.75rem 4.5rem;
         grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.card { padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.card .kind { margin-bottom: .3rem; font-size: .8125rem; }
.card h2, .card h3 { margin: 0 0 .5rem; font: 400 1.3125rem/1.25 var(--serif); letter-spacing: 0; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.card p:not(.kind) { margin: 0; color: var(--ink-soft); font-size: .9375rem; line-height: 1.55;
                     display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }

.terms, .index { list-style: none; margin: 0; padding: 0; columns: 15rem auto; column-gap: 4.5rem; font-size: .9688rem; }
.terms li, .index li { margin: 0; padding: .28rem 0; break-inside: avoid; }
.terms a, .index a { color: var(--ink-soft); text-decoration: none; }
.terms a:hover, .index a:hover { color: var(--ink); text-decoration: underline; }
.index a.sheet, .index .plain { color: var(--ink-faint); }
.type-group .more { margin-top: 1.25rem; }

.facets { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; margin: 0 0 1.5rem;
          font-size: .8125rem; color: var(--ink-faint); }
.facets > span:first-child { margin-right: .25rem; }
.facets a, .facets strong { padding: .12rem .6rem; border: 1px solid var(--rule); border-radius: 999px;
                            color: var(--ink-soft); text-decoration: none; font-weight: 400; white-space: nowrap; }
.facets a:hover { border-color: var(--ink-faint); color: var(--ink); }
.facets strong { border-color: var(--ink); color: var(--ink); }
.facets .count { margin-left: .25rem; font-size: .75rem; }

.pager { display: flex; align-items: baseline; justify-content: center; gap: 2rem; margin-top: 5rem; font-size: .9375rem; }
.pager span { color: var(--ink-faint); font-variant-numeric: tabular-nums; }

.badge { display: inline-block; margin: 0 0 .35rem; font-size: .8125rem; color: var(--accent); }

/* --- Concept page ----------------------------------------------------------
   The header, the views, then the neighbourhood on the stone: above on the
   left, the concept in the centre, below and in other layers on the right. */
.page-head { margin: 0 0 2rem; }
.page-head .lede { margin-bottom: 0; }

.reach { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin: 1.5rem 0 0;
         color: var(--ink-faint); font-size: .875rem; }
.reach > span:first-child { color: var(--ink-soft); }
.reach-layer { display: inline-flex; align-items: baseline; gap: .4rem; }
.reach-layer::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--c); }

.views { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 3rem; }
.view { display: inline-flex; align-items: center; gap: .55rem; padding: .35rem 1.1rem .35rem .55rem;
        border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-soft); text-decoration: none;
        font-size: .9375rem; transition: border-color .15s, color .15s; }
.view:hover { border-color: var(--ink); color: var(--ink); }
.view .glyph { width: 2.4rem; height: 1.5rem; }

.hood-section { padding-block: 3.25rem 4rem; margin-bottom: 4.5rem; }
.hood-section h2 { margin: 0 0 .5rem; }
.hood-section .note { margin: 0 0 2.75rem; }

.hood { position: relative; display: grid; align-items: start; gap: 1.75rem 5.5rem;
        grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem) minmax(0, 1fr);
        grid-template-areas: "up center down" "up center cross"; }
.hood.no-down  { grid-template-areas: "up center cross" "up center cross"; }
.hood.no-cross { grid-template-areas: "up center down" "up center down"; }
.hood.no-down.no-cross { grid-template-areas: "up center ." "up center ."; }
.hood-up { grid-area: up; }
.hood-center { grid-area: center; align-self: center; position: relative; z-index: 1; }
.hood-down { grid-area: down; }
.hood-cross { grid-area: cross; }
.hood-down + .hood-cross { margin-top: .75rem; }

.hood-title { margin: 0 0 .75rem; color: var(--ink-faint); font-size: .8125rem; }
.hood-up .hood-title, .hood-up .hood-group h3 { text-align: right; }
.hood-col ul, .hood-col ol { list-style: none; margin: 0; padding: 0; }
.hood-group { margin: 0 0 1.5rem; }
.hood-group h3 { margin: 0 0 .5rem; font: 600 .875rem/1.35 var(--sans); color: var(--ink); }
.hood-group h3 .count { font-weight: 400; }
.hood-layer { display: flex; align-items: baseline; gap: .4rem; margin-bottom: .15rem;
              color: var(--ink-soft); font: 400 .75rem/1.3 var(--sans); }
.hood-layer::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--c); }
.hood-up .hood-layer { justify-content: flex-end; }
.hood-group .more { margin: .35rem 0 0; font-size: .8125rem; }
.hood-up .more { text-align: right; }

/* A neighbour: a small block, from which a line starts. */
.hood-col li { position: relative; z-index: 1; width: fit-content; max-width: 100%;
               margin: 0 0 .4rem; padding: .32rem .75rem; border-radius: 4px;
               background: var(--paper-up); box-shadow: 0 0 0 1px var(--rule), inset 3px 0 0 var(--c, var(--rule));
               font-size: .875rem; line-height: 1.35; }
.hood-up li { margin-left: auto; box-shadow: 0 0 0 1px var(--rule), inset -3px 0 0 var(--c, var(--rule)); }
.hood-col li a { color: var(--ink-soft); text-decoration: none; }
.hood-col li a:hover { color: var(--ink); text-decoration: underline; }
.hood-col li a.sheet, .hood-col li .plain { color: var(--ink-faint); }
.hood-chain { margin-bottom: 1.5rem !important; }
.hood-chain li + li { margin-top: 1.1rem; }
.hood-col li.hood-chain-layer { margin: 0 0 .3rem auto; padding: 0; background: none; box-shadow: none; }
.hood-chain li + li.hood-chain-layer { margin-top: 1.4rem; }
.hood-chain li.hood-chain-layer + li { margin-top: 0; }

/* The concept: the central block, and the seal. */
.hood-here { position: relative; padding: 1.15rem 1.35rem 1.1rem; border-radius: 8px;
             background: var(--paper-up); box-shadow: 0 0 0 1px var(--c, var(--ink)), 0 -4px 0 0 var(--c, var(--ink)); }
.hood-here p { margin: 0; }
.hood-here-kind { color: var(--ink-faint); font-size: .75rem; }
.hood-here-name { display: flex; align-items: baseline; gap: .55rem; margin: .3rem 0 .4rem !important;
                  font: 400 1.5rem/1.2 var(--serif); color: var(--ink); }
.hood-here-name::before { content: ""; flex: none; width: .6rem; height: .6rem; border-radius: 50%;
                          background: var(--seal); transform: translateY(-.1em); }
.hood-here-code { color: var(--ink-faint); font-size: .75rem; letter-spacing: .05em; }
.hood-siblings { margin-top: 1.5rem; font-size: .8125rem; }
.hood-siblings ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .9rem; }
.hood-siblings a { color: var(--ink-soft); text-decoration: none; }
.hood-siblings a:hover { color: var(--ink); text-decoration: underline; }

/* Narrow screen: one column; the lines give way to a stem. */
@media (max-width: 61.999rem) {
  .hood, .hood.no-down, .hood.no-cross, .hood.no-down.no-cross {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "up" "center" "down" "cross"; gap: 1.75rem; }
  .hood .graph-wires { display: none; }
  .hood-up .hood-title, .hood-up .hood-group h3, .hood-up .more { text-align: left; }
  .hood-up .hood-layer { justify-content: flex-start; }
  .hood-col { padding-left: 1rem; border-left: 1px solid var(--rule); }
  .hood-up li { margin-left: 0; box-shadow: 0 0 0 1px var(--rule), inset 3px 0 0 var(--c, var(--rule)); }
  .hood-chain li + li { margin-top: .4rem; }
  .hood-col li.hood-chain-layer { margin-left: 0; }
}

#article { scroll-margin-top: 2rem; }
.prose { max-width: var(--measure); }

.prose .body { font: 400 1.1875rem/1.75 var(--serif); white-space: normal; text-wrap: pretty; }
.prose .body > :first-child { margin-top: 0; }
.prose .body p { margin: 0 0 1.3em; }
.prose .body h2 { margin: 3rem 0 .85rem; font-size: 1.5rem; }
.prose .body h3 { margin: 2rem 0 .5rem; font: 600 1.0625rem/1.35 var(--sans); }
.prose .body ul, .prose .body ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose .body li { margin: 0 0 .35em; }
.prose .body blockquote { margin: 0 0 1.3em; padding-left: 1.25rem; border-left: 1px solid var(--ink-faint);
                          color: var(--ink-soft); font-style: italic; }
.prose .body img { max-width: 100%; height: auto; }
.prose .body table { border-collapse: collapse; font: 400 .9375rem/1.5 var(--sans); }
.prose .body th, .prose .body td { padding: .4rem .9rem .4rem 0; border-top: 1px solid var(--rule); text-align: left; }


.node-parallel { margin-top: 5rem; }
.parallel-strip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.parallel-strip li { padding: .3rem .8rem; border: 1px solid var(--rule); border-radius: 999px; font-size: .875rem; }
.parallel-strip li a { color: var(--ink-soft); text-decoration: none; }
.parallel-strip li.current { border-color: var(--ink); }
.parallel-strip li.current a { color: var(--ink); font-weight: 600; }


/* --- Module entry page -----------------------------------------------------
   Parallel chronologies: one column per root, side by side. */
.parallel > h2 { margin-top: 3rem; }
.parallel .note { margin: 0 0 2.5rem; }
.lanes { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 3.5rem 3rem; }
.lane { padding-top: 1.1rem; border-top: 1px solid var(--ink); font-size: .9375rem; line-height: 1.45; }
.lane h3 { margin: 0 0 .4rem; font: 400 1.25rem/1.3 var(--serif); }
.lane h3 a { color: var(--ink); }
.lane .counts { margin: 0 0 1rem; color: var(--ink-faint); font-size: .8125rem; }
.lane ul { list-style: none; margin: 0; padding: 0; }
.lane li { margin: 0; padding: .22rem 0; }
.lane details ul { margin: .25rem 0 .5rem 1.05rem; padding-left: .85rem; border-left: 1px solid var(--rule); }
.lane summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; }
.lane summary::-webkit-details-marker { display: none; }
.lane summary::before { content: "+"; flex: 0 0 1.05rem; color: var(--ink-faint); }
/* An entry without a sublevel lines up with those that have one. */
.lane > ul:has(details) > li > :is(a, .plain) { margin-left: 1.05rem; }
.lane details[open] > summary::before { content: "−"; }
.lane a { color: var(--ink-soft); text-decoration: none; }
.lane a:hover { color: var(--ink); text-decoration: underline; }
.lane .plain { color: var(--ink-faint); }

/* --- Compte, abonnement ---------------------------------------------------- */
.panel { max-width: var(--measure); margin: 0; padding: 1.75rem 0; border-top: 1px solid var(--rule); }
.panel h2 { margin: 0 0 .5rem; font-size: 1.375rem; }
.panel p { margin: 0; color: var(--ink-soft); }
.prices { list-style: none; margin: 0 0 .75rem; padding: 0; }

.paywall { max-width: var(--measure); margin: 3rem 0 0; padding: 1.75rem 0 0; border-top: 1px solid var(--ink); }
.paywall h2 { margin: 0 0 .5rem; font-size: 1.375rem; }
.paywall p { margin: 0 0 1.25rem; color: var(--ink-soft); }
.button { display: inline-block; padding: .65rem 1.35rem; border: 1px solid var(--ink); border-radius: 999px;
          background: transparent; color: var(--ink); cursor: pointer;
          font: 400 .9375rem/1.2 var(--sans); text-decoration: none; }
.button:hover { background: var(--ink); color: var(--paper); }

/* --- Globe of a body ------------------------------------------------------- */
.globe { margin: 0 0 1rem; }
.globe-stage {
  aspect-ratio: 16 / 9; min-height: 20rem; position: relative; overflow: hidden;
  background: var(--paper-sunk); border-radius: 4px;
}
.globe-stage canvas { display: block; width: 100%; height: 100%; }
.globe-stage canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.globe-status { margin: .9rem 0 0; color: var(--ink-faint); font-size: .875rem; }
.globe[data-state="failed"] .globe-status { color: var(--seal); }

.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .2rem 1.25rem; font-size: .875rem; line-height: 1.5; }
.facts dt { color: var(--ink-faint); }
.facts dd { margin: 0; color: var(--ink-soft); font-variant-numeric: tabular-nums lining-nums; }
.facts.wide { max-width: 30rem; gap: 0 2.5rem; font-size: 1rem; }
.facts.wide dt, .facts.wide dd { padding: .6rem 0; border-top: 1px solid var(--rule); }
.facts.wide dd { color: var(--ink); text-align: right; }
.facts .note { margin-left: .35rem; color: var(--ink-faint); font-size: .875rem; }

/* --- Solar system ----------------------------------------------------------
   A list of bodies, not a grid of images: there are no thumbnails, and the
   figures carry the information. Explorable bodies are marked. */
.bodies { list-style: none; margin: 0; padding: 0; display: grid; gap: 3rem 4.5rem;
          grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.body-card { padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.body-card h2 { margin: 0 0 .7rem; font-size: 1.375rem; }
.body-card h2 a { color: var(--ink); }
.body-card[data-kind="star"] { border-top-color: var(--ink); }
.body-card[data-kind="moon"] h2 { font-size: 1.125rem; }
.tiles-flag { margin: .85rem 0 0; font-size: .8125rem; color: var(--accent); }
.tiles-flag::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 .5rem .1em 0;
                      border-radius: 50%; background: currentColor; }
.tiles-flag.off { color: var(--ink-faint); }
.tiles-flag.off::before { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.satellites { margin: .5rem 0 0; font-size: .8125rem; color: var(--ink-faint); }

/* 3D view: the canvas is a working surface, not an image. It leaves the
   column and takes the window width. Night stays night in both themes.
   The list of bodies stays below, for scrolling, the keyboard and search
   engines. */
.solar-view {
  position: relative; overflow: hidden;
  width: 100vw; margin-inline: calc(50% - 50vw);
  height: min(84vh, 54rem); min-height: 24rem;   /* a bit of the page stays visible */
  margin-block: 0 1rem;
  background: #030508;
  touch-action: none;          /* active: drag and pinch control the view; at rest, view-controls.mjs restores pan-y */
}
.solar-canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.solar-canvas:focus-visible { outline: 2px solid #a3cbb9; outline-offset: -3px; }

.solar-label {
  position: absolute; margin: 0; padding: .25rem .65rem;
  transform: translate(.9rem, -1.9rem);
  background: var(--paper); color: var(--ink); border-radius: 999px;
  font: 400 .8125rem/1.3 var(--sans); pointer-events: none; white-space: nowrap;
}
.solar-help { margin: 0 0 4rem; color: var(--ink-faint); font-size: .875rem; }
@media (prefers-reduced-motion: reduce) { .solar-view { height: min(80vh, 48rem); } }

/* Panel of the targeted body, in the 3D view. */
.solar-focus {
  position: absolute; left: var(--gutter); bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem .8rem .7rem 1.25rem;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-radius: 999px;
}
.solar-focus p { margin: 0; font: 400 1.125rem/1.2 var(--serif); color: var(--ink); }
.solar-focus a { font-size: .875rem; }
.solar-focus button {
  padding: .4rem .9rem; border: 1px solid var(--rule); border-radius: 999px; background: transparent;
  color: var(--ink-soft); font: 400 .8125rem/1.2 var(--sans); cursor: pointer;
}
.solar-focus button:hover { color: var(--ink); border-color: var(--ink); }
.solar-focus button[aria-pressed="true"] { background: #254a3c; border-color: #254a3c; color: #fff; }
.solar-focus button:disabled { opacity: .45; cursor: wait; }
.solar-flyover {
  position: absolute; top: 1rem; left: var(--gutter); max-width: min(38rem, calc(100% - 2 * var(--gutter)));
  display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem;
  padding: .75rem 1rem; border: 1px solid #ffffff24; border-radius: 1rem;
  color: #edf3f0; background: rgba(8, 11, 14, .84); font: 400 .8125rem/1.4 var(--sans);
}
.solar-flyover[hidden] { display: none; }
.solar-flight-reticle { display: none; }
.solar-view[data-flyover] .solar-flight-reticle {
  display: block; position: absolute; left: 50%; top: 50%; width: 3.5rem; height: .65rem;
  transform: translate(-50%, -50%); pointer-events: none; opacity: .75;
  background: linear-gradient(#fff, #fff) left center / 38% 1px no-repeat,
              linear-gradient(#fff, #fff) right center / 38% 1px no-repeat;
  filter: drop-shadow(0 1px 2px #000);
}
.solar-flight-reticle::after {
  content: ''; position: absolute; width: .45rem; height: .45rem; left: calc(50% - .225rem); top: .1rem;
  border: 1px solid #fff; border-radius: 50%;
}
.solar-flyover p { width: 100%; margin: 0; color: #c3d0ca; font-size: .75rem; }
.solar-flyover label { display: flex; align-items: center; gap: .5rem; }
.solar-flyover button, .solar-flyover select {
  min-height: 2.2rem; padding: .3rem .7rem; border: 1px solid #ffffff50; border-radius: .6rem;
  background: #18241f; color: #fff; font: inherit; cursor: pointer;
}
.solar-flyover button:focus-visible, .solar-flyover select:focus-visible,
.solar-focus button:focus-visible { outline: 2px solid #a3cbb9; outline-offset: 2px; }
@media (max-width: 64rem) {
  .solar-view[data-flyover] .solar-time { display: none; }
  .solar-view[data-flyover] .solar-focus { right: var(--gutter); flex-wrap: wrap; border-radius: 1rem; gap: .5rem; }
}

/* Body markers and names. At true scale a distant body is smaller than a
   pixel: it is shown by a sight in the colour of its orbit and by its name,
   as on a dashboard instrument. These are real buttons. */
.solar-tags { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.solar-tag {
  position: absolute; left: 0; top: 0; display: flex; align-items: center;
  height: 20px; margin: -10px 0 0; padding: 0; border: 0; background: none;
  color: #b9c6c9; font: 500 .625rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  white-space: nowrap; text-shadow: 0 0 3px #000, 0 0 8px #000; cursor: pointer; pointer-events: auto;
  transition: color .15s;
}
.solar-tag[hidden] { display: none; }
/* The sight: a thin ring and its centre dot. */
.solar-tag i {
  flex: none; box-sizing: border-box; width: 11px; height: 11px; margin-left: -5.5px;
  border: 1px solid var(--c); border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0 1.6px, transparent 2.2px);
  box-shadow: 0 0 6px color-mix(in srgb, var(--c) 55%, transparent);
  transition: transform .15s;
}
.solar-tag span { margin-left: calc(var(--marge, 9px) - 5.5px); }
.solar-tag[data-gros] i { visibility: hidden; }
.solar-tag[data-nu] span { display: none; }
.solar-tag:hover, .solar-tag:focus-visible { color: #fff; outline: none; }
.solar-tag:hover i, .solar-tag:focus-visible i { transform: scale(1.45); }
.solar-tag:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .solar-tag, .solar-tag i { transition: none; } }

/* Displayed date and time rate. */
.solar-time {
  position: absolute; right: var(--gutter); bottom: 1.5rem;
  display: flex; align-items: center; gap: .35rem;
  padding: .45rem .5rem .45rem 1.1rem; border-radius: 999px;
  background: rgba(8, 11, 14, .78); color: #cfd6d2;
  font: 400 .8125rem/1.2 var(--sans); font-variant-numeric: tabular-nums;
}
.solar-time time { margin-right: .5rem; white-space: nowrap; }
.solar-time { flex-wrap: wrap; max-width: calc(100% - 2rem); }
.solar-time .solar-model { width: 100%; font-size: .75rem; color: #b8c2be; }
.solar-time .solar-rate { min-width: 5.5em; padding-inline: .35rem; color: #9aa4a0; white-space: nowrap; }
.solar-time button {
  min-width: 2rem; height: 2rem; padding: 0 .6rem; border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px; background: transparent; color: inherit; font: inherit; cursor: pointer;
}
.solar-time button:hover, .solar-time button:focus-visible { border-color: #fff; color: #fff; outline: none; }
/* Phone: the view lets the top of the list show (a finger can scroll the
   page outside the canvas). The clock moves to the top of the view, the
   date on its own line above the buttons: the bottom is left to the panel
   of the targeted body, which may wrap onto two lines. */
@media (max-width: 44rem) {
  .solar-view { height: 72vh; height: 72svh; min-height: 22rem; }
  .solar-time { left: var(--gutter); right: var(--gutter); top: 1rem; bottom: auto;
                flex-wrap: wrap; justify-content: center; row-gap: .35rem;
                padding: .5rem .6rem; border-radius: 1.25rem; }
  .solar-time time { width: 100%; margin: 0; text-align: center; }
  .solar-time .solar-rate { display: none; }
  .solar-focus { right: var(--gutter); bottom: 1rem; flex-wrap: wrap; justify-content: space-between; gap: .35rem .9rem; padding: .6rem .7rem .6rem 1.1rem; border-radius: 1.25rem; }
}

/* Shared controls of the interactive views (view-controls.mjs): solar
   system, body page, entry (Space, Map, Object). Top right, or in the
   middle of the right edge (.vc-side, and on phones). */
/* At rest, a finger scrolls the page: the view only takes the gesture
   when activated, in full screen or in flyover (data-vc-actif, data-vc-libre). */
.vc-host:not([data-vc-actif]):not([data-vc-libre]),
.vc-host:not([data-vc-actif]):not([data-vc-libre]) .vc-target,
.vc-host:not([data-vc-actif]):not([data-vc-libre]) .vc-target * { touch-action: pan-y !important; }
.solar-view:fullscreen { height: 100%; min-height: 0; margin: 0; }
.solar-view[data-flyover] .solar-tags { display: none; }
.vc {
  position: absolute; z-index: 1001; top: 1rem; right: var(--gutter, 1rem);
  display: flex; flex-direction: column; align-items: flex-end; gap: .5rem;
}
.vc-side { top: 50%; right: 1rem; transform: translateY(-50%); }
.vc-group {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: .9rem; background: rgba(8, 11, 14, .78);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.vc .vc-btn {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0;
  border: 0; border-top: 1px solid rgba(255, 255, 255, .12); background: transparent;
  color: #cfd6d2; font: 500 1rem/1 var(--sans, system-ui); cursor: pointer;
}
.vc .vc-btn:first-child { border-top: 0; }
/* Active view (click, focus or touch): the mouse wheel zooms. Clearly
   visible outline (contrast >= 3:1) and a "Wheel: zoom" badge. */
.vc-host[data-vc-actif] .vc-target { outline: 3px solid #a3cbb9; outline-offset: -3px; }
.vc-badge { padding: .25rem .7rem; border-radius: 999px; background: rgba(8, 11, 14, .85); color: #dfe7e3;
  font: 400 .75rem/1.3 var(--sans, system-ui); }
.vc-badge[hidden] { display: none; }
.vc .vc-done { min-height: 2.75rem; }
.vc-pref { margin: .7rem 0 0; padding: .5rem .6rem; border: 1px solid rgba(255, 255, 255, .16); border-radius: .6rem; }
.vc-pref legend { padding: 0 .3rem; color: #fff; }
.vc-pref label { display: flex; align-items: flex-start; gap: .45rem; padding: .2rem 0; cursor: pointer; }
.vc-pref input { margin-top: .2rem; accent-color: #a3cbb9; }
/* Rotate/tilt pad: a cross of four buttons. */
.vc-pad {
  display: grid; grid-template-columns: repeat(3, 2.1rem); grid-template-rows: repeat(3, 2.1rem);
  grid-template-areas: ". up ." "left . right" ". down .";
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; background: rgba(8, 11, 14, .78);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.vc .vc-pad .vc-btn { width: 2.1rem; height: 2.1rem; border: 0; border-radius: 50%; }
.vc-pad .vc-btn:nth-child(1) { grid-area: up; }
.vc-pad .vc-btn:nth-child(2) { grid-area: left; }
.vc-pad .vc-btn:nth-child(3) { grid-area: right; }
.vc-pad .vc-btn:nth-child(4) { grid-area: down; }
/* Menu Affichage : calques a cocher, survol, lien a copier. */
.vc-layers label { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; cursor: pointer; }
.vc-layers input[type="checkbox"] { width: 1.05rem; height: 1.05rem; accent-color: #a3cbb9; }
.vc-layers p { margin: 0 0 .4rem; }
.vc .vc-action, .vc-layers .vc-action {
  margin-top: .5rem; width: 100%; min-height: 2.2rem; padding: .3rem .8rem; border: 1px solid #254a3c; border-radius: 999px;
  background: #254a3c; color: #fff; font: inherit; cursor: pointer;
}
.vc-link { width: min(22rem, 70vw); padding: .4rem .5rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: .5rem;
  background: rgba(255, 255, 255, .06); color: #fff; font: inherit; }
/* Entry: the old hint under the title duplicated the controls' "?" help,
   and slipped under the "Go to…" menu. */
.x-stage:has(.vc) .x-hint { display: none; }
/* In the entry (lower scene), slightly more compact controls. */
.vc-side .vc-btn { width: 2.3rem; height: 2.3rem; }
@media (max-height: 40rem) { .vc .vc-btn { width: 2.2rem; height: 2.2rem; } .vc-pad { display: none; } }
.vc .vc-btn svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vc .vc-btn:hover, .vc .vc-btn:focus-visible, .vc .vc-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .1); color: #fff; outline: none; }
.vc .vc-goto, .vc .vc-done {
  min-height: 2.3rem; max-width: 12rem; padding: .3rem .8rem;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
  background: rgba(8, 11, 14, .78); color: #edf3f0; font: 400 .8125rem/1.2 var(--sans, system-ui); cursor: pointer;
}
.vc-goto option { color: #111; background: #fff; }
.vc .vc-done { background: #254a3c; border-color: #254a3c; color: #fff; }
.vc-done[hidden], .vc-help[hidden] { display: none; }
.vc .vc-goto:focus-visible, .vc .vc-done:focus-visible, .vc .vc-btn:focus-visible { outline: 2px solid #a3cbb9; outline-offset: 2px; }
.vc-help {
  position: absolute; z-index: 1001; top: 4rem; right: calc(var(--gutter, 1rem) + 3.25rem); max-width: min(26rem, calc(100% - 6rem));
  padding: .8rem 1rem; border: 1px solid rgba(255, 255, 255, .16); border-radius: 1rem;
  background: rgba(8, 11, 14, .92); color: #dfe7e3; font: 400 .8125rem/1.45 var(--sans, system-ui);
}
.vc-side ~ .vc-help { top: 50%; right: 4.25rem; transform: translateY(-50%); }
.vc-help ul { margin: 0; padding-left: 1.1rem; }
.vc-help li + li { margin-top: .3rem; }
.vc-hint {
  position: absolute; z-index: 1001; left: 50%; top: 50%; margin: 0; padding: .6rem 1.1rem;
  transform: translate(-50%, -50%); border-radius: 999px; pointer-events: none;
  background: rgba(8, 11, 14, .86); color: #fff; font: 400 .9375rem/1.3 var(--sans, system-ui);
  opacity: 0; transition: opacity .2s;
}
.vc-hint[data-visible] { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .vc-hint { transition: none; } }
@media (max-width: 44rem) {
  .vc { top: 50%; transform: translateY(-50%); }
  .vc-goto { max-width: 8.5rem; }
  .vc-help, .vc-side ~ .vc-help { top: auto; bottom: 5.5rem; left: 1rem; right: 1rem; max-width: none; transform: none; }
  .solar-time .solar-rate { display: inline; min-width: 0; }
}

/* --- Pied ------------------------------------------------------------------ */
.footer { border-top: 1px solid var(--rule); }
.footer-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 2.75rem;
             max-width: var(--page); margin-inline: auto; padding: 2.5rem var(--gutter) 3.5rem;
             color: var(--ink-faint); font-size: .875rem; }
.footer-in p { margin: 0; }
.footer-mark { font: 400 1.125rem/1.2 var(--serif); color: var(--ink); }

/* --- Erreur ---------------------------------------------------------------- */
.error-page { padding-block: 4rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .masthead .nav-group, .masthead-account, .footer, .solar-view, .solar-help, .skip { display: none; }
  body { background: #fff; color: #000; }
  .content { padding: 0; max-width: none; }
  .article-layout { display: block; }
  .kodo { margin-top: 2rem; }
}

/* --- Tint of a layer -------------------------------------------------------
   A single variable, read by the circle, the dots and the links. */
.l-astronomy      { --c: var(--l-astronomy); }
.l-discipline     { --c: var(--l-discipline); }
.l-chronology     { --c: var(--l-chronology); }
.l-geography      { --c: var(--l-geography); }
.l-relief         { --c: var(--l-relief); }
.l-geohistory     { --c: var(--l-geohistory); }
.l-civilization   { --c: var(--l-civilization); }
.l-biography      { --c: var(--l-biography); }
.l-heritage       { --c: var(--l-heritage); }
.l-bibliography   { --c: var(--l-bibliography); }
.l-education      { --c: var(--l-education); }
.l-noologiagraph  { --c: var(--l-noologiagraph); }

/* --- Legal pages and footer links ------------------------------------------ */
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; font: 400 .875rem/1.4 var(--sans); }
.footer-legal a { color: var(--ink-soft); }
.legal .body h2 { margin-top: 3.5rem; }
.legal .table-wrap { overflow-x: auto; margin: 0 0 1.3em; }
.legal table { border-collapse: collapse; font: 400 .9375rem/1.5 var(--sans); min-width: 32rem; }
.legal th, .legal td { padding: .5rem .75rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.legal th { font-weight: 600; }
.legal code { font: 400 .875em/1 var(--mono); }

/* --- Contact ---------------------------------------------------------------- */
.contact-mail { font: 400 1.375rem/1.4 var(--serif); margin: 0 0 .4rem; }
.contact-hint { color: var(--ink-soft); font: 400 .9375rem/1.55 var(--sans); }
.contact-form, .account-form { display: grid; gap: .2rem; margin: 1.25rem 0; }
.contact-form p, .account-form p { margin: 0 0 .9rem; }
.contact-form label, .account-form label { display: block; margin-bottom: .35rem; font: 600 .9375rem/1.3 var(--sans); }
.contact-form .optional { font-weight: 400; color: var(--ink-faint); }
.contact-form input, .contact-form textarea, .account-form input { width: 100%; min-height: 2.75rem; padding: .6rem .8rem; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--paper-up); color: var(--ink); font: 400 1rem/1.5 var(--sans); }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus, .account-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact-form .button, .account .button { min-height: 2.75rem; cursor: pointer; background: transparent; color: var(--ink); font: 400 1rem/1.2 var(--sans); }
.contact-error { color: var(--seal); font: 600 .9375rem/1.4 var(--sans); }

/* --- Compte ------------------------------------------------------------------ */
.account .panel { max-width: 34rem; }
.account-flash { margin: 0 0 1rem; padding: .7rem 1rem; border-left: 3px solid var(--seal); background: var(--paper-sunk); font: 400 .9375rem/1.5 var(--sans); color: var(--ink); }
.account-note { margin-top: .75rem; font: 400 .875rem/1.5 var(--sans); }
.account-facts { display: grid; gap: .5rem; margin: .75rem 0 1.25rem; }
.account-facts dt { font: 400 .8125rem/1.3 var(--sans); color: var(--ink-faint); }
.account-facts dd { margin: 0; }
.plans { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.plan { padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: 12px; }
.plan h3 { margin: 0 0 .3rem; font: 400 1.15rem/1.3 var(--serif); }
.plan p { margin: 0; }
.plan-note { font: 400 .8125rem/1.4 var(--sans); }

/* --- Pre-launch audit (15/11/2026): phone, tablet, touch -------------------- */
/* Phone: the rotation pad covered the body panel (the finger already turns
   the view); the shorter column of controls sits between the clock at the
   top and the body panel at the bottom. */
@media (max-width: 44rem) {
  .vc .vc-pad { display: none; }
  .vc .vc-goto { max-width: 8.5rem; }
}
/* Tablet: the clock (right) covered the body panel (left). */
@media (min-width: 44.001rem) and (max-width: 75rem) {
  .solar-time { bottom: calc(1.5rem + 4.25rem); }
}
/* Touch screens: targets of at least 44 px (WCAG 2.5.5 / 2.5.8). */
@media (pointer: coarse) {
  .vc .vc-btn, .vc-side .vc-btn, .vc .vc-pad .vc-btn { width: 2.75rem; height: 2.75rem; }
  .vc-pad { grid-template-columns: repeat(3, 2.75rem); grid-template-rows: repeat(3, 2.75rem); }
  .vc .vc-goto, .vc .vc-done { min-height: 2.75rem; }
  .solar-time button { min-width: 2.75rem; min-height: 2.75rem; }
  .solar-focus button, .solar-focus a { min-height: 2.75rem; display: inline-flex; align-items: center; }
  /* Marker: invisible 44 px touch area centred on the sight. */
  .solar-tag::before { content: ""; position: absolute; left: -22px; top: 50%; width: 44px; height: 44px; transform: translateY(-50%); }
}
/* Visible keyboard focus on markers and time buttons. */
.solar-tag:focus-visible i { outline: 2px solid #a3cbb9; outline-offset: 3px; }
.solar-time button:focus-visible { outline: 2px solid #a3cbb9; outline-offset: 2px; }

/* Data provenance also accompanies cards without editorial articles. */
.provenance-sources { margin: 2rem 0; padding-top: 1.25rem; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.provenance-sources h2 { margin: 0 0 .75rem; font: 400 1.35rem/1.3 var(--serif); }
.provenance-sources ul { margin: 0; padding-left: 1.25rem; }
.provenance-sources li { margin: .65rem 0; }
.provenance-sources p { margin: .3rem 0; }
.provenance-sources small { display: block; margin-top: .3rem; color: var(--ink-faint); }
/* Account link: 44 px target on touch screens. */
@media (pointer: coarse) {
  .masthead-account { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; }
}
/* Solar system: "Show in the view" on each body card. */
.body-see { margin: .2rem 0 .6rem; padding: .35rem .9rem; min-height: 2.25rem; border: 1px solid var(--rule); border-radius: 999px;
  background: transparent; color: var(--ink); font: 400 .875rem/1.2 var(--sans); cursor: pointer; }
.body-see:hover, .body-see:focus-visible { border-color: var(--ink); outline: none; }
.body-see:focus-visible { box-shadow: 0 0 0 2px #a3cbb9; }
@media (pointer: coarse) { .body-see { min-height: 2.75rem; } }

/* --- Phone: collapsible controls menu, full screen (17/11/2026) ------------- */
.vc .vc-tab, .vc .vc-quick, .vc-extras { display: none; }
/* "Page" full screen when the browser has no full-screen API (iPhone). */
.vc-pseudo-plein { position: fixed !important; inset: 0 !important; z-index: 5000 !important; width: auto !important;
  height: 100vh !important; height: 100dvh !important; min-height: 0 !important; max-height: none !important;
  margin: 0 !important; border-radius: 0 !important; }
html.vc-noscroll { overflow: hidden; }
/* Help under the view: the "finger" text on touch screens, "mouse" elsewhere. */
.solar-help-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .solar-help:not(.solar-help-touch) { display: none; }
  .solar-help-touch { display: block; }
}
/* Phone, or very short screen (phone in landscape): the column of controls
   does not fit, it becomes a menu. */
@media (max-width: 44rem), (max-height: 30rem) {
  /* Closed: the tab and full screen, two round badges on the right edge. */
  .vc > .vc-tab, .vc > .vc-quick { display: grid; width: 2.75rem; height: 2.75rem; border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%; background: rgba(8, 11, 14, .86); color: #edf3f0; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
  .vc:not([data-vc-ouvert]) > .vc-goto, .vc:not([data-vc-ouvert]) > .vc-group { display: none; }
  /* Open: a drawer on the right edge, above the view's panels. */
  .vc[data-vc-ouvert] { top: .5rem; bottom: .5rem; right: .5rem; transform: none; z-index: 1100;
    width: min(17rem, calc(100% - 1rem)); padding: .75rem; gap: .75rem; align-items: stretch;
    overflow-y: auto; overscroll-behavior: contain; border: 1px solid rgba(255, 255, 255, .16); border-radius: 1rem;
    background: rgba(8, 11, 14, .96); box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }
  .vc[data-vc-ouvert] > .vc-tab { align-self: flex-end; flex: none; }
  .vc[data-vc-ouvert] > .vc-quick, .vc[data-vc-ouvert] > .vc-done, .vc[data-vc-ouvert] > .vc-badge { display: none; }
  .vc[data-vc-ouvert] > .vc-goto { width: 100%; max-width: none; min-height: 2.75rem; flex: none; }
  .vc[data-vc-ouvert] > .vc-group { flex: none; flex-direction: row; flex-wrap: wrap; gap: .45rem; overflow: visible;
    border: 0; background: none; box-shadow: none; }
  .vc[data-vc-ouvert] > .vc-group .vc-btn { width: 2.75rem; height: 2.75rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: .75rem; }
  .vc[data-vc-ouvert] > .vc-extras { display: grid; gap: .35rem; flex: none; padding-top: .6rem; border-top: 1px solid rgba(255, 255, 255, .14); }
  .vc-extras p { margin: 0 0 .15rem; color: #9aa4a0; font: 500 .6875rem/1.2 var(--sans, system-ui); letter-spacing: .12em; text-transform: uppercase; }
  .vc-extras .vc-extra { display: flex; align-items: center; min-height: 2.75rem; padding: .3rem .8rem; border: 1px solid rgba(255, 255, 255, .16);
    border-radius: .75rem; background: transparent; color: #edf3f0; font: 400 .9375rem/1.2 var(--sans, system-ui); text-align: left; text-decoration: none; cursor: pointer; }
  .vc-extras .vc-extra:focus-visible { outline: 2px solid #a3cbb9; outline-offset: 2px; }
}

/* Solar system pages: more compact header, the view comes in higher
   (solar-view.mjs then fits its height to the window on load). */
.content:has(.solar-view) { padding-top: 2rem; }
.content:has(.solar-view) > h1 { margin-bottom: .75rem; }
.content:has(.solar-view) > .lede { max-width: 62rem; margin-bottom: 1.5rem; }
/* Scrolling navigation strips (narrow screen): the right edge fades out,
   a sign that there is more. */
@media (max-width: 72rem) {
  .nav-group { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--gutter) - .25rem), transparent);
               mask-image: linear-gradient(to right, #000 calc(100% - var(--gutter) - .25rem), transparent); }
}

/* --- Tracker-free sharing (share.mjs): button and menu (17/11/2026) --------- */
.share-row { margin: 0 0 1.5rem; }
.share-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: .4rem 1rem; border: 1px solid var(--rule);
  border-radius: 999px; background: transparent; color: var(--ink); font: 400 .9375rem/1.2 var(--sans, system-ui); cursor: pointer; }
.share-btn[hidden] { display: none; }
.share-btn svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.share-btn:hover, .share-btn[aria-expanded="true"] { border-color: var(--ink); }
.share-btn:focus-visible { outline: 2px solid #a3cbb9; outline-offset: 2px; }
.share-menu { position: fixed; z-index: 6000; width: min(20rem, calc(100vw - 1rem)); padding: .9rem 1rem 1rem; border: 1px solid var(--rule);
  border-radius: 1rem; background: var(--paper, #fcfcfa); color: var(--ink, #1b1f1d); box-shadow: 0 10px 34px rgba(0, 0, 0, .28);
  font: 400 .9375rem/1.35 var(--sans, system-ui); text-align: left; }
.share-menu .share-title { margin: 0 0 .6rem; font: 400 1.125rem/1.2 var(--serif); }
.share-menu .share-link { width: 100%; box-sizing: border-box; padding: .45rem .6rem; border: 1px solid var(--rule); border-radius: .5rem;
  background: transparent; color: inherit; font: inherit; font-size: .8125rem; }
.share-menu .share-copy { margin: .5rem .6rem 0 0; min-height: 2.5rem; padding: .35rem .9rem; border: 0; border-radius: 999px;
  background: #254a3c; color: #fff; font: inherit; cursor: pointer; }
.share-menu .share-state { color: var(--ink-soft); font-size: .8125rem; }
.share-menu ul { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.share-menu li a { display: flex; align-items: center; min-height: 2.5rem; padding: .3rem .8rem; border: 1px solid var(--rule); border-radius: .6rem;
  color: inherit; text-decoration: none; }
.share-menu li a:hover { border-color: var(--ink); }
.share-menu a:focus-visible, .share-menu button:focus-visible, .share-menu input:focus-visible { outline: 2px solid #a3cbb9; outline-offset: 2px; }
.share-menu .share-note { margin: .8rem 0 0; color: var(--ink-faint); font-size: .75rem; }
@media (pointer: coarse) { .share-btn, .share-menu .share-copy, .share-menu li a { min-height: 2.75rem; } }
@media print { .share-row, .share-menu { display: none; } }

/* Phone: the targeted body's panel now shows only its name (it hid the
   planet); its actions are in the ☰ menu. In flyover, it stays whole. */
.solar-focus a[hidden] { display: none; }
@media (max-width: 44rem), (max-height: 30rem) {
  .solar-view:not([data-flyover]) .solar-focus { right: auto; width: auto; padding: .4rem 1rem; border-radius: 999px; gap: 0; flex-wrap: nowrap; }
  .solar-view:not([data-flyover]) .solar-focus a, .solar-view:not([data-flyover]) .solar-focus button { display: none; }
  .solar-view:not([data-flyover]) .solar-focus p { font-size: 1rem; }
  .vc-extras .vc-extra[aria-pressed="true"] { background: #254a3c; border-color: #254a3c; }
}

/* Phone: the clock folded behind an icon (solar-controls.mjs). */
.vc .vc-time[aria-expanded="true"] { background: #254a3c; border-color: #254a3c; color: #fff; }
@media (max-width: 44rem), (max-height: 30rem) {
  .solar-view:not([data-time-ouvert]) .solar-time { display: none; }
}

/* --- Site emblem before the name (header) ----------------------------------- */
.wordmark a { display: inline-flex; align-items: center; gap: .45rem; }
.wordmark a::before { content: ""; flex: none; width: 1.7em; height: 1.7em; margin-block: -.3em;
  background: url("../brand/embleme-encre-128.png") center / contain no-repeat; }
@media (prefers-color-scheme: dark) {
  .wordmark a::before { background-image: url("../brand/embleme-128.png"); }
}
@media print { .wordmark a::before { display: none; } }

/* --- Plane flyover on phone and tablet (17/11/2026) ------------------------ */
/* Touch screen: Pause and Speed are 44 px; list in 16 px (no automatic
   iOS zoom on opening). */
@media (pointer: coarse) {
  .solar-flyover button, .solar-flyover select { min-height: 2.75rem; }
  .solar-flyover select { font-size: 1rem; }
}
/* Phone, phone in landscape, tablet: compact banner at the top left,
   stopping before the right-edge buttons (full screen, ☰); the instruction
   fits on the controls line when there is room. */
@media (max-width: 64rem), (max-height: 30rem) {
  .solar-view[data-flyover] .solar-flyover { top: .75rem; left: .5rem; gap: .4rem .6rem; padding: .5rem .6rem;
    max-width: min(38rem, calc(100% - var(--gutter, 1rem) - 4rem)); }
  .solar-view[data-flyover] .solar-flyover button, .solar-view[data-flyover] .solar-flyover select { min-height: 2.75rem; }
  .solar-view[data-flyover] .solar-flyover > span { white-space: nowrap; }
  .solar-view[data-flyover] .solar-flyover p { width: auto; flex: 0 1 auto; line-height: 1.3; }
}
/* Tablet: the column of controls is expanded ("Go to…", 12rem at most);
   the banner stops before it. */
@media (min-width: 44.001rem) and (max-width: 64rem) and (min-height: 30.001rem) {
  .solar-view[data-flyover] .solar-flyover { max-width: min(38rem, calc(100% - var(--gutter, 1rem) - 13rem)); }
}
/* The clock is hidden in flyover at these widths (site.css): its round
   button no longer opened anything, so it goes with it. */
@media (max-width: 64rem) {
  .solar-view[data-flyover] .vc > .vc-time { display: none; }
}
/* Phone (portrait or landscape): Pause / Resume becomes a 44 px icon;
   its text, at zero size, remains its name for screen readers. */
@media (max-width: 44rem), (max-height: 30rem) {
  .solar-view[data-flyover] .solar-flyover > button { position: relative; flex: none; width: 2.75rem; padding: 0; font-size: 0; }
  .solar-view[data-flyover] .solar-flyover > button::before { content: ""; position: absolute; left: 50%; top: 50%;
    width: .8rem; height: .9rem; transform: translate(-50%, -50%); box-sizing: border-box; border-inline: .26rem solid currentColor; }
  .solar-view[data-flyover="paused"] .solar-flyover > button::before { width: .85rem; border: 0; background: currentColor;
    clip-path: polygon(0 0, 100% 50%, 0 100%); }
}
/* Phone in portrait: the speed list alone (its aria-label names it). */
@media (max-width: 44rem) {
  .solar-view[data-flyover] .solar-flyover { gap: .35rem .4rem; padding: .45rem; }
  .solar-view[data-flyover] .solar-flyover label { gap: 0; font-size: 0; }
  .solar-view[data-flyover] .solar-flyover select { padding-inline: .5rem; font-size: 1rem; }
  .solar-view[data-flyover] .solar-flyover > span { font-size: .75rem; }
}
/* Phone: in flyover, the body panel fits on one line, its name and
   "Leave flyover" (44 px); the entry and the way back are in the ☰ menu. */
@media (max-width: 44rem), (max-height: 30rem) {
  .solar-view[data-flyover] .solar-focus { right: auto; max-width: calc(100% - 2 * var(--gutter)); flex-wrap: nowrap;
    gap: .6rem; padding: .35rem .4rem .35rem 1rem; border-radius: 999px; }
  .solar-view[data-flyover] .solar-focus a, .solar-view[data-flyover] .solar-focus button:not([aria-pressed="true"]) { display: none; }
  .solar-view[data-flyover] .solar-focus p { min-width: 0; overflow: hidden; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
  .solar-view[data-flyover] .solar-focus button[aria-pressed="true"] { display: inline-flex; align-items: center; flex: none;
    min-height: 2.75rem; white-space: nowrap; }
}
/* Tablet: in flyover, the body panel no longer slips under the rotation
   pad (bottom right). */
@media (min-width: 44.001rem) and (max-width: 64rem) and (min-height: 30.001rem) {
  .solar-view[data-flyover] .solar-focus { right: auto; max-width: calc(100% - 2 * var(--gutter) - 9.5rem); }
}
