/*
 * pdai-edition.css — edition layout for tablet editions (diaries page.dtd and
 * every collection that uses the same grammar).
 *
 * Rendered by repro-xml.js (ed-* classes). The page reads like the printed
 * edition: a running head, the tablet number as title, one compact head card
 * (witnesses, copy, photo, date, preserved months), surface bands, and lines on
 * a fixed number gutter with hanging continuation lines. Section kinds are a
 * thin rule in the margin, not boxes.
 *
 * Palette from pdai-page.css: Oxford blue chrome, gold accents, warm paper.
 */

.pdai-page-structured {
  --ed-gutter: 2.6em;
  --ed-kind-width: 0px;
}

/* ── running head ─────────────────────────────────────────────────────── */
.pdai-page-structured .ed-running-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--serif);
  font-size: 0.82em;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  border-bottom: 0.5px solid var(--rule);
  padding-bottom: 0.25em;
  margin: 0 0 1.1em;
}
.pdai-page-structured .ed-rh-title { font-style: normal; }
.pdai-page-structured .ed-rh-folio { font-variant-numeric: oldstyle-nums; }

/* ── tablet number ────────────────────────────────────────────────────── */
.pdai-page-structured .ed-tablet-no {
  font-family: var(--serif);
  font-size: 1.35em;
  font-weight: 600;
  color: var(--oxford);
  text-align: center;
  margin: 1.2em 0 0.5em;
  letter-spacing: 0.01em;
}
.pdai-page-structured .ed-partial { color: var(--ink-faint); font-weight: 400; }

/* ── head card: witnesses, facts, months ──────────────────────────────── */
.pdai-page-structured .ed-head {
  margin: 0.4em 0 1.1em;
  padding: 0.55em 0.8em 0.6em;
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  font-size: 0.9em;
  line-height: 1.45;
}
.pdai-page-structured .ed-head-partial { border-left-style: dashed; }
.pdai-page-structured .ed-witnesses {
  border-collapse: collapse;
  margin: 0 0 0.35em;
  font-family: var(--serif);
}
.pdai-page-structured .ed-witnesses th.ed-siglum {
  font-weight: 700;
  color: var(--oxford);
  padding: 0 0.7em 0 0;
  text-align: left;
  vertical-align: baseline;
}
.pdai-page-structured .ed-witnesses td,
.pdai-page-structured .ed-witnesses th {
  padding: 0 0.9em 0 0;
  vertical-align: baseline;
  background: transparent !important;
  border: 0 !important;
  font-size: 1em;
}
.pdai-page-structured .ed-join { color: var(--ink-muted); }
.pdai-page-structured .ed-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15em 1.3em;
  margin: 0;
}
.pdai-page-structured .ed-facts > div { display: flex; gap: 0.4em; align-items: baseline; }
.pdai-page-structured .ed-facts dt {
  font-family: var(--sans);
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.pdai-page-structured .ed-facts dd { margin: 0; font-family: var(--serif); }
.pdai-page-structured .ed-months { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 0.45em; }
.pdai-page-structured .ed-month {
  font-family: var(--serif);
  font-size: 0.85em;
  min-width: 2.1em;
  text-align: center;
  padding: 0 0.3em;
  border: 1px solid var(--gold-border);
  border-radius: 2px;
  background: var(--paper-sheet);
  color: var(--oxford);
}
.pdai-page-structured .ed-month-gap {
  border-style: dashed;
  color: var(--ink-faint);
  background: transparent;
}
.pdai-page-structured .ed-month-note {
  font-size: 0.78em;
  color: var(--ink-faint);
  align-self: center;
  margin-left: 0.4em;
}

/* ── editorial note, surface band, rule ───────────────────────────────── */
.pdai-page-structured .ed-note {
  font-family: var(--serif);
  font-size: 0.92em;
  color: var(--ink-muted);
  margin: 0.4em 0 0.8em;
  text-align: left;
  text-indent: 0;
}
.pdai-page-structured .ed-surface {
  font-family: var(--sans);
  font-size: 0.74em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oxford);
  margin: 1.15em 0 0.35em;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rule);
}
.pdai-page-structured .ed-rule {
  border: 0;
  border-top: 1px solid var(--ink-faint);
  width: 40%;
  margin: 0.45em 0 0.45em var(--ed-gutter);
  opacity: 0.6;
}

/* ── sections: a thin margin rule with the kind ───────────────────────── */
.pdai-page-structured .ed-section { position: relative; margin: 0.2em 0; }
.pdai-page-structured .ed-section[data-kind]:not([data-kind="other"]) {
  border-left: 2px solid var(--rule-gold);
  padding-left: 0.6em;
  margin-left: -0.8em;
}
.pdai-page-structured .ed-kind {
  display: block;
  font-family: var(--sans);
  font-size: 0.64em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0.5em 0 0.1em;
}

/* ── edition lines: fixed gutter, hanging continuation ────────────────── */
.pdai-page-structured .ed-line {
  display: grid;
  grid-template-columns: var(--ed-gutter) 1fr;
  align-items: baseline;
  margin: 0;
  padding: 0.06em 0;
  line-height: 1.42;
  text-indent: 0;
  text-align: left;
}
.pdai-page-structured .ed-ln {
  font-family: var(--serif);
  font-size: 0.82em;
  color: var(--ink-faint);
  font-variant-numeric: lining-nums tabular-nums;
  text-align: left;
  user-select: none;
  cursor: pointer;
}
.pdai-page-structured .ed-txt {
  display: block;         /* an ordinary inline flow: spaces between words survive */
  white-space: normal;
  padding-left: 0;
}
.pdai-page-structured .ed-cont .ed-txt { padding-left: 1.4em; }
.pdai-page-structured .ed-tl .ed-txt {
  font-family: var(--serif);
  font-size: 0.97em;
  letter-spacing: 0.005em;
}
.pdai-page-structured .ed-tr .ed-txt { font-family: var(--serif); }
.pdai-page-structured .ed-line [data-el="hi"][data-rend="italic"] { font-style: italic; }
.pdai-page-structured .ed-line [data-el="hi"][data-rend="superscript"] {
  vertical-align: 0.42em;
  font-size: 0.68em;
  line-height: 0;
}
.pdai-page-structured .ed-line [data-el="hi"][data-rend="subscript"] {
  vertical-align: -0.2em;
  font-size: 0.68em;
  line-height: 0;
}
.pdai-page-structured .ed-line.active,
.pdai-page-structured .ed-line:hover { background: rgba(200, 162, 42, 0.07); }

/* ── comments keyed to lines ──────────────────────────────────────────── */
.pdai-page-structured .ed-comments {
  margin: 1.2em 0 0.6em;
  padding-top: 0.4em;
  border-top: 1px solid var(--rule);
  font-size: 0.9em;
}
.pdai-page-structured .ed-comments h4 {
  font-family: var(--sans);
  font-size: 0.72em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oxford);
  margin: 0 0 0.4em;
}
.pdai-page-structured .ed-comment {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 0 0.6em;
  margin: 0 0 0.3em;
  font-family: var(--serif);
}
.pdai-page-structured .ed-anchor {
  font-family: var(--sans);
  font-size: 0.78em;
  color: var(--oxford);
  white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
  .pdai-page-structured .ed-head { background: rgba(226, 186, 66, 0.08); }
  .pdai-page-structured .ed-month { background: transparent; }
}

/* ── Explication · Himmel (famulus-himmel.js) ─────────────────────────── */
.pdai-page-structured .hm-chip {
  display: inline-block;
  margin-left: 0.45em;
  padding: 0 0.35em;
  font-size: 0.78em;
  line-height: 1.35;
  border: 1px solid var(--gold-border, #d4b85c);
  border-radius: 9px;
  background: var(--gold-pale, #fbf5e6);
  color: var(--oxford, #002147);
  cursor: pointer;
  vertical-align: 0.1em;
}
.pdai-page-structured .hm-chip:hover { background: var(--gold, #c8a22a); color: #fff; }
.pdai-page-structured .hm-chip-warn { border-color: #b4553c; }
.fm-himmel .hm-kopf { display: grid; gap: 2px; }
.fm-himmel .hm-tafel { font-family: var(--serif, Georgia, serif); font-size: 1.15em; font-weight: 600; color: var(--oxford, #002147); }
.fm-himmel .hm-datierung { font-size: 0.9em; }
.fm-himmel .hm-liste { list-style: none; margin: 0; padding: 0; }
.fm-himmel .hm-obs { padding: 6px 8px; border-bottom: 1px solid var(--rule, #e0d8c4); cursor: pointer; }
.fm-himmel .hm-obs:hover { background: var(--gold-pale, #fbf5e6); }
.fm-himmel .hm-intervall { cursor: default; opacity: 0.8; }
.fm-himmel .hm-zitat { font-family: var(--serif, Georgia, serif); font-size: 0.92em; }
.fm-himmel .hm-wert { font-size: 0.8em; color: var(--ink-muted, #4a4a6a); margin-top: 2px; }
.fm-himmel .hm-karte svg { width: 100%; height: auto; display: block; margin: 8px 0; border: 1px solid var(--rule, #e0d8c4); }
.fm-himmel .hm-werte { width: 100%; border-collapse: collapse; font-size: 0.84em; }
.fm-himmel .hm-werte th { text-align: left; vertical-align: top; color: var(--ink-faint, #7a7a9a); font-weight: 500; padding: 3px 8px 3px 0; white-space: nowrap; }
.fm-himmel .hm-werte td { padding: 3px 0; }
/* the month starts with their sources (edition calendar beside the Famulus's own dates) */
.fm-himmel table.hm-monate { table-layout: fixed; width: 100%; }
.fm-himmel table.hm-monate th, .fm-himmel table.hm-monate td { white-space: normal; overflow-wrap: anywhere;
  padding: 3px 6px; vertical-align: top; }
.fm-himmel table.hm-monate th:first-child { width: 4.6em; }
/* a month whose own date differs from the edition's: the row stands out (over the panel's row striping) */
.fm-himmel table.hm-monate tr.hm-monat-abw td { background: rgba(200, 162, 42, .22) !important; }

/* ── Himmel · Szene (famulus-himmel-szene.js): the night of one observation, over the viewer ───────────── */
body.hs-offen { overflow: hidden; }
.hs-overlay { --hs-paper: var(--paper-sheet, #fbf8f1); --hs-ink: var(--ink, #1d2533); --hs-rule: var(--rule, #ddd3bf);
  --hs-oxford: var(--oxford, #002147); --hs-gold: var(--gold, #c8a22a); --hs-leise: #6b6457; --hs-gruen: #2f7d4f;
  --hs-rot: #b4553c; --hs-lon: #0d5c8c; --hs-lat: #8a3f8f;
  position: fixed; inset: 0; z-index: 20000; overflow-y: auto; background: var(--paper-sunken, #efe9dc); color: var(--hs-ink);
  font: 14px/1.45 var(--sans, system-ui, sans-serif); padding: 14px 18px 24px; display: flex; flex-direction: column; gap: 10px; }
.hs-laedt { align-items: center; justify-content: center; font-size: 1.05rem; color: var(--hs-oxford); }
.hs-kopf { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.hs-ort { font: 600 .82rem var(--sans, sans-serif); color: var(--hs-leise); letter-spacing: .02em; }
.hs-zitat { font: 1.18rem/1.4 var(--serif, Georgia, serif); color: var(--hs-oxford); margin: 2px 0 0; max-width: 70em; }
.hs-zu, .hs-knopf { font: 500 .85rem var(--sans, sans-serif); padding: .42rem .8rem; border-radius: 5px; cursor: pointer;
  border: 1px solid var(--hs-rule); background: var(--hs-paper); color: var(--hs-oxford); white-space: nowrap; }
.hs-knopf:hover, .hs-zu:hover { border-color: var(--hs-gold); }
.hs-knopf.an { background: var(--hs-oxford); color: #fff; border-color: var(--hs-oxford); }
.hs-klein { padding: .2rem .55rem; font-size: .78rem; }
.hs-play { background: var(--hs-oxford); color: #fff; border-color: var(--hs-oxford); min-width: 8.5em; }
.hs-best { border-color: var(--hs-gold); }
.hs-steuer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; position: sticky; top: -14px; z-index: 2;
  background: var(--paper-sunken, #efe9dc); padding: 6px 0; }
.hs-regler { flex: 1 1 240px; accent-color: var(--hs-gold); }
.hs-tempo { font: .85rem var(--sans, sans-serif); padding: .35rem; border-radius: 5px; border: 1px solid var(--hs-rule); background: var(--hs-paper); color: var(--hs-ink); }
.hs-zeit { font: .9rem var(--mono, ui-monospace, monospace); color: var(--hs-ink); }
.hs-zeit b { color: var(--hs-oxford); font-size: 1.05rem; }
.hs-geo { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; padding: 7px 12px; border-radius: 6px;
  border-left: 5px solid var(--hs-leise); background: var(--hs-paper); }
.hs-geo-art { font: 600 1rem var(--serif, Georgia, serif); color: var(--hs-oxford); }
.hs-geo.horizon { border-left-color: #b4783c; } .hs-geo.meridian { border-left-color: #3c6fb4; } .hs-geo.open { border-left-color: #7a8a9a; }
.hs-geo-gilt { margin-left: auto; color: var(--hs-leise); }
.hs-geo.gilt .hs-geo-gilt { color: var(--hs-gruen); font-weight: 600; }
.hs-haupt { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; }
.hs-rechts { display: grid; gap: 10px; align-content: start; }
.hs-feld { background: var(--hs-paper); border: 1px solid var(--hs-rule); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.hs-feldkopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hs-feld h3 { font: 600 .95rem var(--serif, Georgia, serif); color: var(--hs-oxford); margin: 0 0 4px; }
.hs-feld svg { display: block; width: 100%; height: auto; touch-action: none; }
.hs-legende { font-size: .78rem; color: var(--hs-leise); margin: 4px 0 0; }
.hs-umschalt { display: flex; gap: 4px; }
@media (max-width: 900px) { .hs-haupt { grid-template-columns: 1fr; } .hs-zitat { font-size: 1rem; } }
@media (max-width: 600px) {
  .hs-overlay { padding: 10px 10px 20px; gap: 8px; }
  .hs-zitat { font-size: .95rem; padding-left: 10px; }
  .hs-steuer { gap: 5px; top: -10px; }
  .hs-steuer .hs-knopf { padding: .32rem .5rem; font-size: .78rem; }
  .hs-regler { order: 9; flex-basis: 100%; }
  .hs-tempo { font-size: .78rem; padding: .25rem; }
  .hs-zeit { order: 10; font-size: .8rem; }
  .hs-geo { font-size: .85rem; padding: 6px 9px; }
}

/* A: the sky */
.hs-sphaere { stroke: #0b1b33; }
.hs-boden { fill: #2a2118; fill-opacity: .92; stroke: #6e5a3e; stroke-width: 1.2; }
.hs-horizontzone { fill-opacity: .9; }
.hs-schraffur { stroke: rgba(230, 180, 110, .22); stroke-width: 2; }
.hs-horizontzone-rand { fill: none; stroke: rgba(230, 180, 110, .45); stroke-dasharray: 3 4; }
.hs-hoehenkreis { fill: none; stroke: rgba(255, 255, 255, .13); }
.hs-meridian { fill: none; stroke: rgba(150, 190, 255, .55); stroke-width: 1; stroke-dasharray: 5 4; }
.hs-meridianzone { fill: rgba(110, 160, 255, .11); stroke: none; }
.hs-aequator { fill: none; stroke: rgba(200, 220, 255, .35); stroke-dasharray: 2 4; }
.hs-tierkreis-himmel { fill: rgba(200, 162, 42, .10); stroke: none; }
.hs-ekliptik { fill: none; stroke: #e0b84a; stroke-width: 2; }
.hs-ekl-tick { fill: #e0b84a; } .hs-ekl-label { fill: rgba(224, 184, 74, .85); font-size: 10px; }
.hs-himmelsrichtung { fill: #f0e2c0; font: 700 14px var(--sans, sans-serif); } .hs-himmelsrichtung.klein { font-size: 10px; font-weight: 500; fill: #c9b78f; }
.hs-zenit-label, .hs-hoehe-label, .hs-meridian-label { fill: rgba(220, 230, 255, .6); font-size: 10px; }
.hs-zone-label { fill: rgba(240, 200, 140, .8); font-size: 10px; }
.hs-stern { fill: #fff7e6; } .hs-stern.bezug { fill: #ffe9a8; stroke: #e0b84a; stroke-width: 1.5; }
.hs-stern-name { fill: rgba(255, 247, 230, .75); font-size: 10px; } .hs-stern-name.bezug { fill: #ffe9a8; font-size: 11.5px; font-weight: 600; }
.hs-planet { fill: #ffd7a0; stroke: #fff; stroke-width: .8; } .hs-planet.bezug { fill: #ffb870; }
.hs-planet-name { fill: #ffd7a0; font-size: 10.5px; }
.hs-sonne { fill: #ffcc33; } .hs-sonne.unten { fill: none; stroke: #ffcc33; stroke-dasharray: 3 2; }
.hs-bahn { fill: none; stroke: rgba(240, 240, 255, .35); stroke-width: 1.2; stroke-dasharray: 1 4; stroke-linecap: round; }
.hs-bahn-gelaufen { fill: none; stroke: rgba(240, 240, 255, .8); stroke-width: 1.6; }
.hs-mond-dunkel { fill: #3a4256; stroke: rgba(255, 255, 255, .4); stroke-width: .5; } .hs-mond-hell { fill: #f6f1df; }
.hs-mond-name { fill: #f6f1df; font: 600 12px var(--sans, sans-serif); }
.hs-zenitpfeil { stroke: #b9c4d6; stroke-width: 1.4; } .hs-zenitpfeil-label { fill: #b9c4d6; font-size: 10.5px; }
.hs-ekl-n { stroke: #e0b84a; stroke-width: 2; } .hs-ekl-n-label { fill: #e0b84a; font-size: 10.5px; font-weight: 600; }
.hs-ekl-o { stroke: #e0b84a; stroke-width: 2; stroke-dasharray: 5 2; } .hs-ekl-o-label { fill: #e0b84a; font-size: 10.5px; }
.hs-winkelbogen { fill: #e0b84a; } .hs-winkel-label { fill: #ffe9a8; font: 600 11px var(--sans, sans-serif); }

/* A′: the magnifier */
.hs-lupe-grund { fill: #0d1a30; }
.hs-l-hoehe { fill: none; stroke: rgba(255, 255, 255, .09); } .hs-l-horizont { fill: none; stroke: #b4783c; stroke-width: 2; }
.hs-l-ekliptik { fill: none; stroke: #e0b84a; stroke-width: 1.4; stroke-dasharray: 6 3; }
.hs-lupe-grund + .hs-dreh .hs-l-name, .hs-l-name { font: 600 11px var(--sans, sans-serif); }
.hs-l .hs-l-name { fill: #f0e2c0; } .hs-l .hs-winkel { fill: #ffe9a8; font: 600 11.5px var(--sans, sans-serif); }
.hs-l-bezug { fill: #ffe9a8; stroke: #e0b84a; }
.hs-leg-lon { fill: none; stroke: #4fb0e6; stroke-width: 2.4; } .hs-leg-lat { fill: none; stroke: #d184d6; stroke-width: 2.4; }
.hs-leg-label { font: 600 11.5px var(--mono, monospace); } .hs-leg-label.lon { fill: #4fb0e6; } .hs-leg-label.lat { fill: #d184d6; }
.hs-bericht { fill: none; stroke: #e0b84a; stroke-width: 6; stroke-opacity: .45; stroke-linecap: round; }
.hs-bericht.gilt { stroke: #5bd08a; } .hs-bericht-ende { fill: #e0b84a; } .hs-bericht-ende.gilt { fill: #5bd08a; }

/* B: the ecliptic frame, on paper */
.hs-papier { fill: var(--hs-paper); }
.hs-tierkreis { fill: rgba(200, 162, 42, .09); }
.hs-ekliptik-linie { stroke: var(--hs-gold); stroke-width: 1.6; }
.hs-achse { fill: var(--hs-leise); font-size: 10.5px; }
.hs-achsen text { fill: var(--hs-leise); font-size: 10px; } .hs-achsen path, .hs-achsen line { stroke: var(--hs-rule); }
.hs-spur { fill: none; stroke: var(--hs-oxford); stroke-opacity: .3; stroke-width: 1.5; stroke-dasharray: 2 3; }
.hs-spur-gilt { fill: none; stroke: var(--hs-gruen); stroke-width: 3; stroke-opacity: .55; }
.hs-stern-b { fill: var(--hs-oxford); fill-opacity: .55; } .hs-stern-label { fill: var(--hs-leise); font-size: 9.5px; }
.hs-b .hs-l-name { fill: var(--hs-oxford); }
.hs-b .hs-leg-lon { stroke: var(--hs-lon); } .hs-b .hs-leg-lat { stroke: var(--hs-lat); }
.hs-b .hs-leg-label.lon { fill: var(--hs-lon); } .hs-b .hs-leg-label.lat { fill: var(--hs-lat); }
.hs-b .hs-mond-dunkel { fill: #c9c4b6; stroke: #8a8478; } .hs-b .hs-mond-hell { fill: #fffdf2; stroke: #8a8478; stroke-width: .4; }
.hs-toleranz { fill: rgba(200, 162, 42, .16); }
.hs-klammer { fill: none; stroke: var(--hs-gold); stroke-width: 2.2; } .hs-klammer.gilt { stroke: var(--hs-gruen); }
.hs-klammer-label { fill: #8a6d12; font: 600 11px var(--sans, sans-serif); }

/* C: the night */
.hs-nacht { fill: rgba(0, 33, 71, .07); } .hs-genannt { fill: rgba(200, 162, 42, .16); stroke: var(--hs-gold); stroke-dasharray: 3 3; }
.hs-genannt-label { fill: #8a6d12; font-size: 10.5px; font-weight: 600; }
.hs-gilt-balken { fill: var(--hs-gruen); }
.hs-band { fill: rgba(200, 162, 42, .2); } .hs-band-mitte { stroke: var(--hs-gold); stroke-dasharray: 4 3; }
.hs-band-label { fill: #8a6d12; font-size: 10.5px; }
.hs-null { stroke: var(--hs-rule); }
.hs-kurve-lon { fill: none; stroke: var(--hs-lon); stroke-width: 2; } .hs-kurve-lat { fill: none; stroke: var(--hs-lat); stroke-width: 2; }
.hs-kurve-lon.leise, .hs-kurve-lat.leise { stroke-opacity: .3; stroke-width: 1.2; }
.hs-kurve-label { font: 600 10.5px var(--mono, monospace); } .hs-kurve-label.lon { fill: var(--hs-lon); } .hs-kurve-label.lat { fill: var(--hs-lat); }
.hs-kurve-label.a { fill: var(--hs-leise); font-family: var(--sans, sans-serif); font-weight: 400; }
.hs-horizontzone-c { fill: rgba(180, 120, 60, .13); }
.hs-hoehe-a { fill: none; stroke: var(--hs-oxford); stroke-width: 1.8; } .hs-hoehe-r { fill: none; stroke: var(--hs-oxford); stroke-width: 1.4; stroke-dasharray: 5 3; }
.hs-transit { stroke: #3c6fb4; stroke-width: 1.2; stroke-dasharray: 2 2; } .hs-transit-label { fill: #3c6fb4; font-size: 9.5px; }
.hs-su-label { fill: var(--hs-leise); font-size: 9.5px; }
.hs-best-raute { fill: var(--hs-gold); stroke: var(--hs-oxford); }
.hs-cursor { stroke: var(--hs-rot); stroke-width: 1.6; } .hs-cursor.gilt { stroke: var(--hs-gruen); stroke-width: 2.4; }
.hs-punkt.lon { fill: var(--hs-lon); } .hs-punkt.lat { fill: var(--hs-lat); } .hs-punkt.a, .hs-punkt.r { fill: var(--hs-oxford); }
.hs-c svg { cursor: ew-resize; }

/* findings, the Famulus's own notes (never the editors'), colophon */
.hs-notizen { display: grid; gap: 8px; }
.hs-befund { background: var(--hs-paper); border: 1px solid var(--hs-rule); border-radius: 8px; padding: 8px 12px; }
.hs-befund h4 { font: 600 .92rem var(--serif, Georgia, serif); color: var(--hs-oxford); margin: 0 0 3px; }
.hs-befund p { margin: 2px 0; } .hs-warn { color: var(--hs-rot); } .hs-leise { color: var(--hs-leise); font-size: .85em; }
.hs-famulus-anm, .ed-famulus-anm { background: #eef5f1; border: 1px solid #9cc5ad; border-left: 5px solid #2f7d4f; border-radius: 6px; padding: 7px 12px; color: #1f3a2b; }
.hs-anm-kopf, .ed-famulus-anm .hs-anm-kopf { font: 600 .85rem var(--sans, sans-serif); color: #2f7d4f; margin-bottom: 2px; }
.ed-famulus-anm { margin: 4px 0 6px 0; font-size: .86em; }
.ed-famulus-anm p { margin: 1px 0; }
.hs-kolophon { font-size: .76rem; color: var(--hs-leise); border-top: 1px solid var(--hs-rule); padding-top: 6px; }
.fm-himmel .hm-szene { margin-top: 4px; }
.fm-himmel .hm-befund { margin: 6px 0; font-size: .9em; }
.fm-himmel .hm-geochart { margin: 6px 0 10px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hs-overlay { --hs-paper: #1b2232; --hs-ink: #e6e1d4; --hs-rule: #3a4357; --hs-leise: #a59f90;
    --hs-oxford: #b9cdf0; --hs-lon: #6cbbe8; --hs-lat: #d39ad8; background: #121826; }
  :root:not([data-theme="light"]) .hs-steuer { background: #121826; }
  :root:not([data-theme="light"]) .hs-famulus-anm, :root:not([data-theme="light"]) .ed-famulus-anm { background: #16271e; color: #cfe6d8; border-color: #2f5e43; }
  :root:not([data-theme="light"]) .hs-klammer-label, :root:not([data-theme="light"]) .hs-band-label, :root:not([data-theme="light"]) .hs-genannt-label { fill: #e0c060; }
}
:root[data-theme="dark"] .hs-overlay { --hs-paper: #1b2232; --hs-ink: #e6e1d4; --hs-rule: #3a4357; --hs-leise: #a59f90;
  --hs-oxford: #b9cdf0; --hs-lon: #6cbbe8; --hs-lat: #d39ad8; background: #121826; }
:root[data-theme="dark"] .hs-steuer { background: #121826; }
.hs-overlay .hs-halo { paint-order: stroke; stroke: #0b1b33; stroke-width: 3px; stroke-linejoin: round; }
.hs-l-kompass { fill: rgba(11, 27, 51, .75); stroke: rgba(255, 255, 255, .15); }

/* Himmel: one chip per observation, coloured by the sky's verdict; the panel lists everything, grouped */
.pdai-page-structured .hm-chip-ok, .hm-chip-ok { border-color: #2f7d4f !important; color: #2f7d4f; }
.pdai-page-structured .hm-chip-nahe, .hm-chip-nahe { border-color: #c08a2a !important; color: #9a6b12; }
.pdai-page-structured .hm-chip-falsch, .hm-chip-falsch { border-color: #b4553c !important; color: #b4553c; }
.pdai-page-structured .hm-chip-offen, .hm-chip-offen { border-color: #b9b2a2 !important; color: #8a8478; opacity: .85; }
.fm-himmel .hm-gruppe { font: 600 .82rem var(--sans, sans-serif); color: var(--oxford, #002147); margin: 12px 0 4px;
  text-transform: uppercase; letter-spacing: .04em; }
.fm-himmel .hm-obs.hm-ok { border-left: 3px solid #2f7d4f; }
.fm-himmel .hm-obs.hm-nahe { border-left: 3px solid #c08a2a; }
.fm-himmel .hm-obs.hm-falsch { border-left: 3px solid #b4553c; }
.fm-himmel .hm-obs.hm-offen { border-left: 3px solid #cfc8b8; opacity: .9; }
.fm-himmel .hm-obs { padding-left: 8px; }
