/* L'explorateur, dans le gabarit commun du site : ne contient que ce qui lui
   est propre (scène, menus, fiche). Couleurs et polices : celles de site.css. */

.is-explorer .content { max-width: none; padding: 0; min-height: 0; }
.x { --shadow: 0 2px 10px rgba(30, 36, 34, .10), 0 1px 2px rgba(30, 36, 34, .08); }
.x button, .x input { font: inherit; color: inherit; }
.x-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.x-pill, .x-modes button, .x-more a { text-decoration: none; }
.x-pill:hover, .x-modes button:hover { box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.x-modes button[aria-pressed="true"]:hover { box-shadow: var(--shadow); }

/* --- La scène -------------------------------------------------------------- */
.x-stage { position: relative; height: min(64vh, 40rem); min-height: 22rem; background: var(--paper-sunk); overflow: hidden; isolation: isolate; }
.x-view { position: absolute; inset: 0; }
.x-view > * { position: absolute; inset: 0; }
.x-stage.is-dark { background: #030508; }
.x-stage-title { position: absolute; left: 0; right: 0; top: 1.4rem; z-index: 3; text-align: center; pointer-events: none; padding: 0 1rem; }
.x-stage-kind { margin: 0; font: 400 .875rem/1.3 var(--sans); color: var(--ink-soft); }
.x-stage-name { margin: .1rem 0 0; font: 400 clamp(1.75rem, 1.2rem + 2vw, 2.75rem)/1.1 var(--serif); }
.x-stage.is-dark .x-stage-name, .x-stage.is-dark .x-stage-kind { color: #f3f0ea; text-shadow: 0 1px 8px #000; }
.x-modes { position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%); z-index: 4; display: flex; gap: .45rem; flex-wrap: wrap; justify-content: center; }
.x-modes button { cursor: pointer; padding: .5rem 1.05rem .55rem; border: 0; border-radius: 999px; background-color: var(--paper-up); box-shadow: var(--shadow);
                  font: 400 1rem/1.1 var(--serif); background-position: 1.05rem calc(100% - .38rem); }
.x-modes button[aria-pressed="true"] { background-color: var(--ink); color: var(--paper); background-size: 0 0; }
.x-hint { position: absolute; right: 1rem; bottom: 1.35rem; z-index: 3; margin: 0; max-width: 18rem; text-align: right;
          font: 400 .75rem/1.35 var(--sans); color: var(--ink-faint); pointer-events: none; }
.x-stage.is-dark .x-hint { color: #8b949e; }
@media (max-width: 52rem) { .x-hint { display: none; } .x-stage { height: 58vh; } }
.x-progress { position: absolute; left: 0; top: 0; height: 3px; width: 0; z-index: 9; background: var(--accent); transition: width .4s ease, opacity .3s; }
.is-loading .x-progress { width: 70%; }

/* --- Les outils ---------------------------------------------------------- */
.x-bar { max-width: var(--page); margin: 0 auto; padding: 1.4rem var(--gutter) .5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; }
.x-pill { cursor: pointer; padding: .45rem 1rem .5rem; border: 0; border-radius: 999px; background-color: var(--paper-up); box-shadow: var(--shadow);
          font: 400 1rem/1.2 var(--serif); background-position: 1rem calc(100% - .35rem); }
.x-pill:disabled { opacity: .4; cursor: default; }
.x-search { position: relative; }
.x-search input { width: min(24rem, 72vw); padding: .5rem 1.1rem; border: 0; border-radius: 999px; background: var(--paper-up); box-shadow: var(--shadow); }
.x-search input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.x-results { position: absolute; left: 0; right: 0; top: calc(100% + .4rem); z-index: 20; list-style: none; margin: 0; padding: .35rem; border-radius: 14px;
             background: var(--paper-up); box-shadow: 0 10px 30px rgba(40,30,20,.18); max-height: 22rem; overflow: auto; }
.x-results li { display: grid; padding: .45rem .7rem; border-radius: 9px; cursor: pointer; }
.x-results li[aria-selected="true"], .x-results li:hover { background: var(--paper-sunk); }
.x-results li small { font: 400 .75rem/1.3 var(--sans); color: var(--ink-faint); }
.x-results li small::before { content: ""; display: inline-block; width: .4rem; height: .4rem; margin-right: .35rem; border-radius: 50%; background: var(--c); }
.x-trail { display: flex; align-items: center; gap: .5rem; width: 100%; justify-content: center; font: 400 .8125rem/1.3 var(--sans); color: var(--ink-faint); }
.x-trail ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem; margin: 0; padding: 0; }
.x-trail li + li::before { content: "›"; margin: 0 .25rem; color: var(--rule); }
.x-trail a { text-decoration: none; color: var(--ink-soft); }
.x-trail a::before { content: ""; display: inline-block; width: .38rem; height: .38rem; margin-right: .3rem; border-radius: 50%; background: var(--c); vertical-align: .1em; }
.x-trail [aria-current] { color: var(--ink); }

/* --- La fiche ------------------------------------------------------------ */
.x-fiche { max-width: var(--page); margin: 0 auto; padding: 2.5rem var(--gutter) 5rem; display: grid; gap: 3rem 4rem;
           grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; outline: none; }
@media (max-width: 60rem) { .x-fiche { grid-template-columns: minmax(0, 1fr); } }
.x-kind { display: inline-flex; align-items: baseline; gap: .45rem; margin: 0 0 .4rem; font: 400 .9375rem/1.3 var(--sans); color: var(--ink-soft); }
.x-kind::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--c); }
.x-text h1 { margin: 0 0 .9rem; font: 400 clamp(2rem, 1.4rem + 2vw, 2.9rem)/1.1 var(--serif); letter-spacing: -.01em; }
.x-lede { margin: 0 0 1.75rem; font-size: 1.25rem; line-height: 1.55; color: var(--ink-soft); }
.x-reach { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: -.75rem 0 1.75rem; font: 400 .875rem/1.4 var(--sans); color: var(--ink-faint); }
.x-reach span[data-l]::before { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-right: .35rem; border-radius: 50%; background: var(--c); }
.x-body { font-size: 1.125rem; line-height: 1.75; }
.x-body h2 { margin: 2.25rem 0 .6rem; font: 400 1.5rem/1.25 var(--serif); }
.x-body h3 { margin: 1.75rem 0 .5rem; font: 400 1.2rem/1.3 var(--serif); }
.x-body p { margin: 0 0 1.1em; }
.x-body a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.x-body img { max-width: 100%; height: auto; }
.x-noarticle { color: var(--ink-faint); font-style: italic; }
.x-source { margin-top: 2.5rem; padding: .3rem 0 .3rem 1.1rem; border-left: 2px solid var(--rule); font-size: .9375rem; color: var(--ink-soft); }

/* Le Contexte : la chaîne du concept, puis ses groupes. */
.x-context h2 { margin: 0 0 1rem; font: 400 1.6rem/1.2 var(--serif); }
.x-context ul { list-style: none; margin: 0; padding: 0; }
.x-chain li, .x-group li { padding: .45rem 0 .4rem; border-bottom: 1px solid var(--rule); }
.x-chain li span { color: var(--ink-faint); }
.x-chain li.is-here strong { font-weight: 600; }
.x-chain li.is-here::after { content: ""; display: inline-block; width: .55rem; height: .55rem; margin-left: .5rem; border-radius: 50%; background: var(--seal); vertical-align: .05em; }
.x-chain li.x-jump span::before, .x-group h3 .x-layer::before { content: ""; display: inline-block; width: .42rem; height: .42rem; margin-right: .35rem; border-radius: 50%; background: var(--c); vertical-align: .1em; }
.x-context a { text-decoration: none; }
.x-context a:hover { color: var(--accent); }
.x-group { margin-top: 2rem; }
.x-group h3 { margin: 0 0 .3rem; font: 400 1.15rem/1.3 var(--serif); }
.x-group h3 .count, .count { color: var(--ink-faint); font: 400 .8125rem/1 var(--sans); margin-left: .3rem; }
.x-layer { display: block; font: 400 .8125rem/1.3 var(--sans); color: var(--ink-soft); }
.x-group.is-cross { padding: 1rem 1.1rem 1.1rem; border-radius: 14px; background: var(--paper-sunk); }
.x-group.is-cross h3 { color: var(--ink); }
.x-more { margin: .6rem 0 0; font-size: .9375rem; }
.x-classic { margin-top: 2.5rem; font-size: .9375rem; }
.x-classic a { color: var(--ink-soft); }
.is-loading .x-fiche { opacity: .55; transition: opacity .2s; }

/* --- Carte (explorer-map.mjs) ------------------------------------------- */
.xm { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.xm:active { cursor: grabbing; }
.xm-sphere { fill: #e3ecee; }
.xm[data-body="OB5"] .xm-sphere { fill: #ecd9cb; } .xm[data-body="OBA"] .xm-sphere { fill: #e6e4e0; }
.xm[data-body="OB2"] .xm-sphere { fill: #e4dfd8; } .xm[data-body="OB3"] .xm-sphere { fill: #ede3cc; }
.xm-limb { fill: none; stroke: #c9c3b6; stroke-width: 1; }
.xm-grat { fill: none; stroke: rgba(80, 75, 69, .13); stroke-width: .8; }
.xm-land { fill: #fbf8f1; stroke: #cbc2b0; stroke-width: .7; stroke-linejoin: round; }
.xm-shape { fill: color-mix(in srgb, var(--accent) 26%, transparent); stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; }
.xm-dots { fill: none; stroke: rgba(110, 60, 40, .55); stroke-linecap: round; stroke-width: 2.2; }
.xm[data-body="OBA"] .xm-dots, .xm[data-body="OB2"] .xm-dots { stroke: rgba(70, 70, 75, .5); }
.xm-pin { cursor: pointer; }
.xm-pin circle { fill: #fff; stroke: var(--c, var(--accent)); stroke-width: 2; }
.xm-pin text { font: 400 12px var(--sans); fill: var(--ink); paint-order: stroke; stroke: rgba(251, 250, 247, .9); stroke-width: 3.5px; stroke-linejoin: round; }
.xm-pin:hover circle, .xm-pin:focus-visible circle { fill: var(--c, var(--accent)); }
.xm-pin:focus-visible { outline: none; }
.xm-here circle { fill: var(--seal); stroke: #fff; stroke-width: 2.5; }
.xm-here text { font: 400 15px var(--serif); fill: var(--ink); paint-order: stroke; stroke: rgba(251, 250, 247, .92); stroke-width: 4px; }
.xm-legend { position: absolute; left: 1rem; bottom: 1.35rem; margin: 0; font: 400 .75rem/1.35 var(--sans); color: var(--ink-faint); inset: auto auto 1.35rem 1rem; }
.xm-tip { position: absolute; z-index: 5; padding: .25rem .6rem; border-radius: 8px; background: var(--paper-up); box-shadow: var(--shadow); font: 400 .8125rem/1.3 var(--sans); pointer-events: none; inset: auto; }

/* --- OpenStreetMap (explorer-osm.mjs) ------------------------------------ */
.xo { position: absolute; inset: 0; background: #e8eef0; font: 400 .875rem/1.3 var(--sans); }
.xo-legend { z-index: 900; background: rgba(251, 250, 247, .9); padding: .3rem .6rem; border-radius: 8px; color: var(--ink-soft) !important; left: 3.4rem !important; }
.xo-legend:empty { display: none; }
.leaflet-tooltip.xo-here { font: 400 1rem/1.2 var(--serif); padding: .25rem .6rem; border: 0; box-shadow: var(--shadow); }
.x-stage.is-osm .x-stage-title { top: .8rem; }
.x-stage.is-osm .x-stage-title p { display: table; margin-inline: auto; padding: 0 .8rem; border-radius: 10px; background: rgba(251, 250, 247, .9); }
.x-stage.is-osm .x-stage-name { margin-top: .25rem; }
.x-stage-title, .x-modes, .x-hint { z-index: 1000; }
/* Les vues : une bande centrée sur toute la largeur. Avec left: 50% et
   translateX(-50%), le bloc ne disposait que de la moitié de la scène et
   les boutons passaient un par ligne. Le titre laisse la place au bouton
   plein écran. */
.x-modes { left: 1rem; right: 1rem; transform: none; pointer-events: none; }
.x-modes button { pointer-events: auto; }
.x-stage-title { padding-inline: 4.25rem; }

/* --- Objet 3D (explorer-object.mjs) -------------------------------------- */
.xb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.xb-credit:empty { display: none; }

/* --- Frise ---------------------------------------------------------------- */
.xt { overflow: auto; padding: 5.5rem clamp(1rem, 4vw, 3rem) 4.5rem; }
.xt-root { margin: 0 0 .9rem; font: 400 1.1rem/1.3 var(--serif); }
.xt-lane { display: flex; gap: 4px; min-width: 40rem; }
.xt-step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.xt-step > button, .xt-sub button { all: unset; box-sizing: border-box; cursor: pointer; display: block; padding: .55rem .6rem .6rem; border-radius: 8px;
  background: var(--paper-up); box-shadow: var(--shadow); font: 400 .9375rem/1.25 var(--serif); overflow: hidden; text-overflow: ellipsis;
  border-top: 3px solid var(--l-chronology); }
.xt-sub button { font-size: .8125rem; border-top-width: 2px; background: var(--paper); box-shadow: none; outline: 1px solid var(--rule); }
.xt [aria-current] { background: var(--ink) !important; color: var(--paper); border-top-color: var(--seal); }
.xt-step > button:hover, .xt-sub button:hover { outline: 2px solid var(--accent); }
.xt-note { margin: .9rem 0 0; font: 400 .8125rem/1.4 var(--sans); color: var(--ink-faint); }
.xt-flat { display: flex; flex-wrap: wrap; gap: .4rem; }
.xt-flat button { all: unset; cursor: pointer; padding: .3rem .7rem; border-radius: 999px; background: var(--paper-up); box-shadow: var(--shadow); font: 400 .875rem/1.3 var(--serif); }
.xt-par { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: baseline; font: 400 .8125rem/1.3 var(--sans); color: var(--ink-faint); }
.xt-par button { all: unset; cursor: pointer; padding: .25rem .65rem; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-soft); }
.xt-par button:hover { border-color: var(--accent); }

/* --- Graphe --------------------------------------------------------------- */
.xg { width: 100%; height: 100%; display: block; }
.xg-edge { stroke: var(--c, #999); stroke-opacity: .45; stroke-width: 1.4; fill: none; }
.xg-node { cursor: pointer; }
.xg-node circle { fill: #fff; stroke: var(--c, #999); stroke-width: 2; transition: r .15s; }
.xg-node text { font: 400 13px var(--serif); fill: var(--ink); paint-order: stroke; stroke: var(--paper-sunk); stroke-width: 4px; stroke-linejoin: round; }
.xg-node:hover circle, .xg-node:focus-visible circle { fill: var(--c); }
.xg-node:focus-visible { outline: none; }
.xg-center circle { fill: var(--seal); stroke: #fff; stroke-width: 3; }
.xg-center text { font-size: 17px; }
.xg-group { font: 400 11px var(--sans); fill: var(--ink-faint); }

/* --- Espace 3D : la scène du système solaire (styles dans site.css) ------- */
.x-view .solar-view { position: absolute; inset: 0; width: auto; height: auto; min-height: 0; margin: 0; }
.x-view [hidden] { display: none !important; }
.x-view .solar-focus { display: none !important; }
.x-view .solar-time { left: auto; right: 1rem; top: auto; bottom: 1rem; }
@media (max-width: 70rem) { .x-view .solar-time { left: 1rem; right: 1rem; bottom: 4.6rem; justify-content: center; } }

/* --- Plein écran ----------------------------------------------------------- */
.x-stage-tools { position: absolute; top: 1rem; right: 1rem; z-index: 1002; display: flex; gap: .4rem; }
.x-stage-tools button { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: var(--paper-up); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; }
.x-stage-tools button:hover { box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.x-stage-tools button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.x-stage-tools svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.x-stage-tools .x-full-off, .x-stage.is-full .x-full-on { display: none; }
.x-stage.is-full .x-full-off { display: block; }
.x-stage.is-full { position: fixed; inset: 0; z-index: 2000; height: 100vh; height: 100dvh; max-height: none; }
html.x-noscroll { overflow: hidden; }

/* --- 2026 · lisibilité ------------------------------------------------------ */
.x-modes { bottom: 1rem; gap: .5rem; }
.x-modes button { min-height: 2.75rem; padding: .6rem 1.25rem; font-size: 1.0625rem; }
.x-modes button:focus-visible, .x-axis:focus-visible, .x-nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.x-hint { top: 4.25rem; bottom: auto; max-width: 15rem; padding: .35rem .6rem; border-radius: 8px; background: rgba(251, 250, 247, .88);
          font-size: .8125rem; color: var(--ink-soft); }
.x-stage.is-dark .x-hint { background: rgba(3, 5, 8, .7); color: #c9d1d9; }
.x-chain li small, .x-chain li.is-here small { font: 400 .8125rem/1.3 var(--sans); color: var(--ink-faint); }
.x-chain li.x-jump small::before { content: ""; display: inline-block; width: .42rem; height: .42rem; margin-right: .3rem; border-radius: 50%; background: var(--c); vertical-align: .1em; }

/* Repères : la fiche technique, même sans article. */
.x-facts { margin: 0 0 1.75rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--paper-sunk); }
.x-facts h2 { margin: 0 0 .5rem; font: 600 .8125rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.x-facts dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .6rem 1.4rem; }
.x-facts dt { font: 400 .8125rem/1.3 var(--sans); color: var(--ink-faint); }
.x-facts dd { margin: .1rem 0 0; font: 400 1.0625rem/1.35 var(--serif); }
.x-facts a { text-decoration: none; border-bottom: 2px solid var(--accent); }

/* --- Barre : les axes, puis les outils --------------------------------------- */
.x-bar { flex-direction: column; gap: .9rem; }
.x-axes { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .45rem; }
.x-axes-label { font: 400 .875rem/1.3 var(--sans); color: var(--ink-faint); margin-right: .25rem; }
.x-axis { cursor: pointer; min-height: 2.75rem; padding: .55rem 1.15rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper);
          font: 400 1.0625rem/1.1 var(--serif); color: var(--ink); }
.x-axis:hover { border-color: var(--accent); }
.x-axis[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.x-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; }
.x-tools .x-pill { min-height: 2.75rem; }
.x-search input { min-height: 2.75rem; }

/* --- Le menu : un panneau sur la scène, un niveau à la fois ------------------ */
.x-nav { position: absolute; z-index: 1003; left: 1rem; top: 1rem; bottom: 1rem; width: min(24rem, calc(100% - 2rem));
         display: flex; flex-direction: column; border-radius: 16px; background: var(--paper); box-shadow: 0 12px 36px rgba(40, 30, 20, .22); overflow: hidden; }
.x-nav[hidden] { display: none; }
.x-nav-head { display: flex; align-items: flex-start; gap: .35rem; padding: .55rem .55rem .5rem; border-bottom: 1px solid var(--rule); }
.x-nav-head > button { flex: none; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
                       font: 400 1.6rem/1 var(--sans); color: var(--ink-soft); }
.x-nav-head > button:hover:not(:disabled) { background: var(--paper-sunk); }
.x-nav-head > button:disabled { opacity: .25; cursor: default; }
.x-nav-path { flex: 1; min-width: 0; list-style: none; margin: 0; padding: .55rem 0 0; display: flex; flex-wrap: wrap; gap: .1rem .15rem;
              font: 400 .8125rem/1.35 var(--sans); }
.x-nav-path li + li::before { content: "›"; margin-right: .15rem; color: var(--ink-faint); }
.x-nav-path button { border: 0; padding: 0; background: none; cursor: pointer; font: inherit; color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--rule); }
.x-nav-path button[aria-current] { color: var(--ink); text-decoration: none; font: 400 1.125rem/1.3 var(--serif); }
.x-nav-body { flex: 1; overflow: auto; padding: .4rem .55rem 1rem; overscroll-behavior: contain; }
.x-nav-body ul { list-style: none; margin: 0; padding: 0; }
.x-nav-item { width: 100%; min-height: 2.75rem; display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding: .5rem .7rem;
              border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left; font: 400 1.0625rem/1.3 var(--serif); color: var(--ink); }
.x-nav-item:hover { background: var(--paper-sunk); }
.x-nav-item.is-current { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.x-nav-item.is-current .x-nav-name::after { content: " ●"; color: var(--seal); font-size: .7em; }
.x-nav-name { min-width: 0; }
.x-nav-type { flex: none; font: 400 .75rem/1.3 var(--sans); color: var(--ink-faint); }
.x-nav-type::before { content: ""; display: inline-block; width: .4rem; height: .4rem; margin-right: .3rem; border-radius: 50%; background: var(--c); vertical-align: .08em; }
.x-nav .count { font: 400 .8125rem/1.3 var(--sans); color: var(--ink-faint); margin-left: .4rem; }
.x-nav-group { padding: .7rem 0 .3rem; }
.x-nav-group + .x-nav-group { border-top: 1px solid var(--rule); }
.x-nav-group h3 { margin: 0 .7rem .25rem; font: 600 .8125rem/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.x-nav-sub { margin: .3rem .7rem 0; min-height: 2.75rem; padding: .45rem 1rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper-up);
             cursor: pointer; font: 400 1rem/1.2 var(--serif); color: var(--ink); }
.x-nav-sub:hover { border-color: var(--accent); }
.x-nav-filter { position: sticky; top: -.4rem; z-index: 1; margin: 0 0 .4rem; padding: .4rem .2rem; background: var(--paper); display: grid; gap: .25rem; }
.x-nav-filter input { width: 100%; min-height: 2.75rem; padding: .5rem .9rem; border: 1px solid var(--rule); border-radius: 999px; font: 400 1rem/1.2 var(--sans); }
.x-nav-filter input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.x-nav-filter .count { margin: 0 .6rem; }
.x-nav-wait { margin: 1rem .7rem; font: 400 .9375rem/1.4 var(--sans); color: var(--ink-faint); }
@media (max-width: 44rem) {
  .x-nav { left: .5rem; right: .5rem; top: .5rem; bottom: .5rem; width: auto; }
  .x-axes-label { width: 100%; text-align: center; margin: 0; }
}

/* --- Téléphone : barre des axes en une ligne qui défile, horloge sur deux lignes */
@media (max-width: 44rem) {
  .x-axes { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: 100%; padding: .2rem 0 .4rem;
            scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .x-axes::-webkit-scrollbar { display: none; }
  .x-axes .x-axes-label { display: none; }
  .x-axis { flex: none; }
  .x-view .solar-time { flex-wrap: wrap; row-gap: .35rem; }
  .x-view .solar-time time { width: 100%; margin: 0; text-align: center; }
  .x-view .solar-time { bottom: 4.4rem; }
  /* Les vues sur une seule ligne, qui défile si elles ne tiennent pas. */
  .x-modes { left: 0; right: 0; bottom: .7rem; padding: .3rem 1rem; flex-wrap: nowrap; justify-content: flex-start;
             overflow-x: auto; scrollbar-width: none; pointer-events: auto; }
  .x-modes::-webkit-scrollbar { display: none; }
  .x-modes button { flex: none; }
  .x-modes button:first-child { margin-left: auto; }
  .x-modes button:last-child { margin-right: auto; }
  .x-stage { height: 70vh; height: 70svh; }
  .x-tools, .x-search, .x-search input { width: 100%; }
}
