/* ============================================================
   Charles Gannsen Research: site improvements, 14 Nov 2026
   Loaded LAST on every page (scripts/inject-site-nav.py; index.html
   links it by hand). Sections:
     1  Union blue and gold, to match the book's cover (light theme)
     2  Page headers: less empty space, sized for phones
     3  The book online (read/): header, dark theme, reading comfort
     4  Menu on phones
     5  Long addresses and wide tables stay inside the screen
     6  Keyboard focus, reduced motion
     7  Search box
     8  Print
   ============================================================ */

/* ---- 1 · Union blue (#1c2a3f) and gold -------------------------------- */
html:not(.theme-dark) {
  --union:        #1c2a3f;
  --union-deep:   #141f30;
  --union-soft:   #2a3c57;
  --bg-deep:      #1c2a3f;
  --bg-deep-grad: #141f30;
  --ink-night:    #1c2a3f;
  --atm-hesse:    radial-gradient(120% 100% at 30% 20%, #2a3c57 0%, #1c2a3f 60%);
  --atm-crossing: radial-gradient(120% 100% at 70% 30%, #26384f 0%, #141f30 60%);
  --atm-civilwar: radial-gradient(120% 100% at 50% 80%, #2a3c57 0%, #1c2a3f 60%);
  --atm-stlouis:  radial-gradient(120% 100% at 30% 70%, #2a3c57 0%, #1c2a3f 60%);
}
html:not(.theme-dark) header.cinema-section-hero[data-tone="default"]::before {
  background: radial-gradient(120% 100% at 50% 30%, #2a3c57 0%, #1c2a3f 60%);
}
html:not(.theme-dark) .site-nav-shared,
html:not(.theme-dark) .site-nav-shared .group-menu { background: #1c2a3f; }
html:not(.theme-dark) .site-nav-shared .group-btn,
html:not(.theme-dark) .site-nav-shared .group-menu a { color: #d9d2c0; }
html:not(.theme-dark) .site-foot-shared {
  background: linear-gradient(135deg, #141f30 0%, #1c2a3f 100%);
  color: #d9d2c0;
}
html:not(.theme-dark) .site-foot-shared a,
html:not(.theme-dark) .site-foot-shared .foot-blurb { color: #d9d2c0; }
html:not(.theme-dark) .site-foot-shared .foot-meta,
html:not(.theme-dark) .site-foot-shared .foot-meta a,
html:not(.theme-dark) .site-foot-shared .foot-updated { color: #b9b3a3; }

/* ---- 2 · Page headers --------------------------------------------------- */
header.cinema-section-hero {
  padding: clamp(1.6rem, 4vw, 3rem) clamp(1.1rem, 5vw, 5rem) clamp(1.4rem, 3vw, 2.4rem) !important;
}
header.cinema-section-hero .crumbs { margin-bottom: 0.7rem !important; }
@media (max-width: 640px) {
  header.cinema-section-hero .crumbs,
  header .crumbs { letter-spacing: 0.1em !important; font-size: 0.7rem !important; }
  header.cinema-section-hero .sub, header.bd-hero .sub, header.st-hero .sub,
  header.ch-hero .sub, header.nr-hero .sub, header .standfirst {
    font-size: 1.02rem !important; line-height: 1.5 !important;
  }
  main .lede, main > p.lede { font-size: 1.02rem !important; }
  main { padding-left: 1rem !important; padding-right: 1rem !important; }
}

/* ---- 3 · The book online (read/) ----------------------------------------- */
body:has(> main.bk-wrap) { margin: 0; }
.bk-wrap { font-size: 1.09rem; line-height: 1.68; }
.bk-wrap p { margin: 0 0 1em; }
.bk-wrap .bk-head { margin: 0 0 1.2rem; padding: 0 0 0.9rem; border-bottom: 1px solid rgba(216, 179, 102, 0.45); }
.bk-wrap .bk-head .bk-crumb { margin: 0 0 1rem; }
.bk-wrap .bk-head .bk-label { margin: 0; }
.bk-wrap .bk-head h1 { margin: 0.15rem 0 0 !important; }
.bk-wrap .bk-pager a { padding: 0.5rem 0; }
.bk-wrap .bk-toc li { margin: 0.4rem 0; }
.bk-wrap figure img { display: block; margin: 0 auto; }
@media (max-width: 640px) {
  .bk-wrap { padding: 1.2rem 1.05rem 3rem; }
  .bk-wrap .bk-pager { flex-direction: column; gap: 0.2rem; }
}
/* Dark theme: the page column was cream with pale text on it. */
html.theme-dark body:has(> main.bk-wrap) { background: #101823; }
html.theme-dark .bk-wrap { background: transparent; color: #e9dfc8; }
html.theme-dark .bk-wrap h1 { color: #f6f1e7; }
html.theme-dark .bk-wrap h2, html.theme-dark .bk-wrap h3, html.theme-dark .bk-wrap h4 { color: #e8cd8a; }
html.theme-dark .bk-wrap a, html.theme-dark .bk-wrap .bk-label { color: #e8cd8a; }
html.theme-dark .bk-wrap .bk-crumb, html.theme-dark .bk-wrap figcaption,
html.theme-dark .bk-wrap .credit, html.theme-dark .bk-fuller .fa-note { color: #c8b896; }
html.theme-dark .bk-wrap .bk-summary-note, html.theme-dark .bk-wrap .note,
html.theme-dark .bk-wrap th { background: #1f2e45; color: #e9dfc8; border-color: #33496b; }
html.theme-dark .bk-wrap td, html.theme-dark .bk-wrap th { border-color: #33496b; }
html.theme-dark .bk-wrap figure img { background: #fbf7ee; }

/* ---- 4 · Menu on phones --------------------------------------------------- */
@media (max-width: 640px) {
  .site-nav-shared { flex-wrap: nowrap; }
  .site-nav-shared .tab-group { position: static; flex: 1 1 0; min-width: 0; }
  .site-nav-shared .group-btn {
    width: 100%; min-height: 46px; white-space: normal; line-height: 1.2;
    padding: 0.55rem 0.4rem; font-size: 0.86rem; letter-spacing: 0.01em;
  }
  .site-nav-shared .group-menu,
  .site-nav-shared .tab-group:nth-last-child(-n+2) .group-menu {
    left: 0; right: 0; width: 100%; min-width: 0; box-sizing: border-box;
    max-height: calc(100vh - 3.4rem); max-height: calc(100dvh - 3.4rem);
    border-left: none; border-right: none;
  }
  .site-nav-shared .group-menu a { white-space: normal; padding: 0.72rem 1.1rem; font-size: 0.98rem; }
  .site-nav-shared .group-menu .menu-label { font-size: 0.72rem; margin-top: 0.7rem; }
}

/* ---- 5 · Nothing wider than the screen -------------------------------------- */
main, .page-column, .bk-wrap, .site-foot-shared { overflow-wrap: break-word; }
.page-column li, .page-column p, .page-column dd,
.bk-notes li, .fa-src li { overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline: 2px solid #1c2a3f; outline-offset: 2px; }
img, svg, video, iframe { max-width: 100%; }
pre { max-width: 100%; overflow-x: auto; }

/* ---- 6 · Keyboard focus, reduced motion ---------------------------------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid #1c2a3f; outline-offset: 2px;
  box-shadow: 0 0 0 4px #d8b366;
}
.site-nav-shared :focus-visible, .site-foot-shared :focus-visible,
header.cinema-section-hero :focus-visible, html.theme-dark :focus-visible {
  outline-color: #f1cf85; box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

/* ---- 7 · Search box ---------------------------------------------------------- */
html:not(.theme-dark) .cknz-q .cknz-toggle { background: #1c2a3f; }
.cknz-q .r .sec { display: block; font-size: 0.74rem; color: #6a5a42; margin-top: 0.1rem; }
.cknz-q .hint { padding: 0.5rem 0.85rem; font-size: 0.78rem; color: #5a4a32; background: #f6ebd2; border-bottom: 1px solid #ede4d0; }
body.home .cknz-q { top: 1rem; }
/* On phones the round search button sits at the top right: keep the breadcrumb clear of it. */
@media (max-width: 768px) {
  .bk-wrap .bk-head .bk-crumb, header .crumbs, header.auto-hero .crumbs { padding-right: 3.4rem; }
}
@media (max-width: 768px) { body.home .cknz-q { top: 0.7rem; } }

/* ---- 8 · Print ------------------------------------------------------------------ */
@media print {
  .site-nav-shared, .cknz-q, .theme-toggle-fab, .cite-widget, .skip-link, .bk-pager { display: none !important; }
  body, .bk-wrap { background: #fff !important; color: #000 !important; }
  .site-foot-shared { background: none !important; color: #000 !important; border-top: 1px solid #a88a4a; }
  a { color: #000 !important; }
}

/* ==== COLORS Nov15 ==========================================================
   One color scheme for the whole site, 15 Nov 2026. Sections:
     9   Colors in one place
     10  Links: one blue on light paper, one gold on dark grounds
     11  Headings in Union blue
     12  Status colors (confirmed, open, ruled out) dark enough to read
     13  Dark theme in Union blue; Copy buttons; captions
   ========================================================================== */

/* ---- 9 · Colors in one place ------------------------------------------- */
html {
  --link:        #24497a;   /* body links on paper: 8:1 on #f6f1e7 */
  --link-hover:  #16345c;
  --heading:     #1c2a3f;   /* Union blue, the book's cover */
  --st-ok:       #2f496b;   /* confirmed */
  --st-open:     #8a5a12;   /* open, working */
  --st-no:       #735338;   /* ruled out */
  --st-na:       #636363;
}
html:not(.theme-dark) {
  --status-confirmed: #2f496b;
  --status-open:      #8a5a12;
  --status-eliminated:#735338;
  --text-heading:     #1c2a3f;
}

/* ---- 10 · Links ---------------------------------------------------------- */
/* Running-text links on paper. Buttons, cards, tiles, chips and glossary terms keep their own look. */
html:not(.theme-dark) body:not(.home)
  :is(p, li, td, dd, dt, sup, figcaption, blockquote, small, cite, summary, aside, .crumbs, .bk-crumb, .note, .citation-block, .bk-pager, .more, .bio-card, span.term, span.desc, .de-topbar, .de-lag-note, .de-foot)
  a:not(.glossary-link):not(.map-link):not([class*="btn"]):not([class*="cta"]):not([class*="card"]):not([class*="tile"]):not([class*="chip"]):not([class*="pill"]):not([class*="badge"]):not([class*="person"]):not(:is(header:not(.auto-hero):not(.bk-head), .site-foot-shared, .site-nav-shared, .door, .find-strip, .cinema-chapter, .cinema-cover, .de-help, .book-note, .de-note, .email-card, .bg-deep, .cite-widget, .cite-foot, .skip-link, .mt-tight, [data-ground="dark"]) *) {
  color: var(--link) !important;
  text-decoration-color: rgba(36, 73, 122, 0.45);
}
html:not(.theme-dark) body:not(.home)
  :is(p, li, td, dd, dt, sup, figcaption, blockquote, small, cite, summary, aside, .crumbs, .bk-crumb, .note, .citation-block, .bk-pager, .more, .bio-card, span.term, span.desc, .de-topbar, .de-lag-note, .de-foot)
  a:not(.glossary-link):not(.map-link):not([class*="btn"]):not([class*="cta"]):not([class*="card"]):not([class*="tile"]):not([class*="chip"]):not([class*="pill"]):not([class*="badge"]):not([class*="person"]):not(:is(header:not(.auto-hero):not(.bk-head), .site-foot-shared, .site-nav-shared, .door, .find-strip, .cinema-chapter, .cinema-cover, .de-help, .book-note, .de-note, .email-card, .bg-deep, .cite-widget, .cite-foot, .skip-link, .mt-tight, [data-ground="dark"]) *):hover {
  color: var(--link-hover) !important;
}
/* Plain links that sit straight inside a box rather than a paragraph. */
html:not(.theme-dark) body:not(.home) div:not(.actions):not(.links):not(.ev-links):not(.method-actions):not(.controls) > a:not([class]):not([style]):not(.glossary-link):not(.map-link):not([class*="btn"]):not([class*="cta"]):not([class*="card"]):not([class*="tile"]):not([class*="chip"]):not([class*="pill"]):not([class*="badge"]):not([class*="person"]):not(:is(header:not(.auto-hero):not(.bk-head), .site-foot-shared, .site-nav-shared, .door, .find-strip, .cinema-chapter, .cinema-cover, .de-help, .book-note, .de-note, .email-card, .bg-deep, .cite-widget, .cite-foot, .skip-link, .mt-tight, [data-ground="dark"]) *) {
  color: var(--link) !important;
}
/* Links on Union blue page headers and panels: gold, never bronze or browser blue. */
html:not(.theme-dark) :is(header:not(.auto-hero):not(.bk-head), .book-note, .de-help, .bg-deep) :is(p, .sub, .crumbs, .csh__crumbs, .standfirst, li) > a:not([class*="btn"]):not([class*="cta"]) {
  color: #e6c47a !important;
}
/* Gold is for rules, ornaments and text on blue. On paper it was too faint to read. */
html:not(.theme-dark) header.auto-hero .crumbs,
html:not(.theme-dark) header.auto-hero .crumbs span { color: #5a4a32 !important; }
html:not(.theme-dark) .ev-see-also .sep { color: #7a6a4a; }

/* The German welcome page was drawn for a dark ground and lost its words on paper. */
html:not(.theme-dark) .de-note,
html:not(.theme-dark) .de-help { background: linear-gradient(135deg, #1c2a3f 0%, #141f30 100%) !important; color: #f1ead7 !important; }
html:not(.theme-dark) .de-note :is(p, li, span), html:not(.theme-dark) .de-help :is(p, li, span, strong) { color: #f1ead7 !important; }
html:not(.theme-dark) .de-note strong { color: #e6c47a !important; }
html:not(.theme-dark) .de-card p, html:not(.theme-dark) .de-foot, html:not(.theme-dark) .de-foot p { color: #4a3a22 !important; }
html:not(.theme-dark) .de-card .badge-en { color: #4a3a22 !important; border-color: #8a7858 !important; }
html:not(.theme-dark) .de-card h3 { color: var(--heading) !important; }

/* ---- 11 · Headings --------------------------------------------------------- */
html:not(.theme-dark) body:not(.home) :is(main, article, .page-column, .bk-wrap, .de-wrap, section, header.auto-hero, header.bk-head)
  :is(h1, h2, h3, h4):not(:is(header:not(.auto-hero):not(.bk-head), .site-foot-shared, .door, .find-strip, .cinema-chapter, .cinema-cover, .de-help, .de-note, .book-note, .bg-deep, [data-ground="dark"]) *) {
  color: var(--heading) !important;
}
html:not(.theme-dark) body:not(.home) :is(main, article, .page-column, .bk-wrap, section) :is(h2, h3) > :is(.num, .n, .sec-num) { color: #8a6420; }

/* ---- 12 · Status colors ----------------------------------------------------- */
/* One green, one amber, one red and one gray for labels, in both themes, each dark enough for white words. */
html:root:root:root .ev-card-v2 .ev-badge, html:root:root:root .conf.confirmed, html:root:root:root .conf-pill.confirmed, html:root:root:root .badge.b-confirmed,
html:root:root:root .pill.r-clear, html:root:root:root .pill.b-full, html:root:root:root .pill.c-swept,
html:root:root:root .site-search-result .ssr-type.person, html:root:root:root .site-search-result .ssr-type.child, html:root:root:root .site-search-result .ssr-type.germany,
html:root:root:root span[style*="background:#4a668a"], html:root:root:root span[style*="background: #4a668a"],
html:root:root:root .ev-card-v2 .ev-badge { background: var(--st-ok) !important; color: #fff !important; }
html:root:root:root .pill.s-gaps { background: #2f496b !important; color: #fff !important; }
html:root:root:root .chip.work, html:root:root:root .pill.r-part, html:root:root:root .pill.b-part, html:root:root:root .pill.r-carl, html:root:root:root .conf-pill.open { background: var(--st-open) !important; color: #fff !important; }
html:root:root:root .pill.c-bapt { background: #8a5a12 !important; color: #fff !important; }
html:root:root:root .type-tag.civil, html:root:root:root .site-search-result .ssr-type.civilwar, html:root:root:root .pill.r-cand { background: #805c3f !important; color: #fff !important; }
html:root:root:root .pill.c-na, html:root:root:root .pill.b-na { background: var(--st-na) !important; color: #fff !important; }
html:root:root:root .pill.c-folds, html:root:root:root .pill.b-folds { background: #33507a !important; color: #fff !important; }
html:root:root:root .badge.b-hypothesis { background: #33507a !important; color: #fff !important; }
/* Register tables: the status cell lost its color on the shaded rows, leaving white words on cream. */
table.regtab tr.ill td.st.dy { background: #636363; }
table.regtab tr.ill td.st.el { background: #805c3f; }
table.regtab tr.ill td.st.pt { background: #d8b366; }
table.regtab tr.ill td.st.ut { background: #d8b366; }
html:not(.theme-dark) .text-confirmed { color: var(--st-ok); }
html:not(.theme-dark) .ev-derivative { color: #7a4e08 !important; }
html:not(.theme-dark) .ev-tile-pin.surname { color: #3f6124 !important; }
html:not(.theme-dark) .ce-avatar.avatar-discovery { background: #8a5a12 !important; }
html:not(.theme-dark) .ce-avatar.avatar-offstage { background: #b89a5a !important; color: #1f2e45 !important; }
html:not(.theme-dark) .feature-eyebrow { color: #7a5200 !important; }
html:not(.theme-dark) .connector-note { color: #2f5f92 !important; }
html:not(.theme-dark) .died-young .surname-pill { color: #74420f !important; }
html:not(.theme-dark) .ev-links a.fsn { color: #74420f !important; }
html:not(.theme-dark) .ev-tells-label .ev-star { color: #a8791a; }
/* Life history: certainty words */
html:not(.theme-dark) .g.g-c  { color: #1f3b5f !important; }
html:not(.theme-dark) .g.g-vp { color: #1c3a62 !important; }
html:not(.theme-dark) .g.g-p  { color: #1f558a !important; }
html:not(.theme-dark) .g.g-o  { color: #6b5210 !important; }
html:not(.theme-dark) .g.g-k  { color: #1f3a5e !important; }
html:not(.theme-dark) .g.g-r  { color: #5f5142 !important; }
/* Family tree: FamilySearch numbers */
html:not(.theme-dark) .ft-pid { color: #2f5aa8 !important; }
html:not(.theme-dark) .ft-female .ft-pid { color: #8d692a !important; }

/* ---- 13 · Dark theme in Union blue ------------------------------------------- */
html.theme-dark:root {
  --union: #1c2a3f; --union-deep: #101823; --union-soft: #2a3c57;
  --bg-page: #131d2b; --bg-card: #1c2a3f; --bg-card-tint: #22324a; --bg-elevated: #24354e;
  --bg-deep: #0c121b; --bg-deep-grad: #111a26; --ink-night: #0c121b;
  --border-light: #2c3f5c; --border-medium: #55688a; --divider: #223149; --brand-tint: #2a3c57;
  --atm-hesse:    radial-gradient(120% 100% at 30% 20%, #1c2a3f 0%, #0c121b 60%);
  --atm-crossing: radial-gradient(120% 100% at 70% 30%, #1a2739 0%, #0a0f17 60%);
  --atm-civilwar: radial-gradient(120% 100% at 50% 80%, #1c2a3f 0%, #0c121b 60%);
  --atm-stlouis:  radial-gradient(120% 100% at 30% 70%, #1c2a3f 0%, #0c121b 60%);
}
html.theme-dark body { background-color: #131d2b; }
html.theme-dark header.cinema-section-hero[data-tone="default"]::before {
  background: radial-gradient(120% 100% at 50% 30%, #1c2a3f 0%, #0c121b 60%);
}
html.theme-dark .site-nav-shared,
html.theme-dark .site-nav-shared .group-menu { background: #0f1722; }
html.theme-dark .site-foot-shared { background: linear-gradient(135deg, #0c121b 0%, #111a26 100%); }
html.theme-dark body:has(> main.bk-wrap) { background: #131d2b; }
/* Dark theme: one gold for running-text links. */
html.theme-dark body:not(.home)
  :is(p, li, td, dd, dt, sup, figcaption, blockquote, small, cite, summary, aside, .crumbs, .bk-crumb, .note, .citation-block, .bk-pager, .more, .bio-card, span.term, span.desc, .de-topbar, .de-lag-note, .de-foot)
  a:not(.glossary-link):not(.map-link):not([class*="btn"]):not([class*="cta"]):not([class*="card"]):not([class*="tile"]):not([class*="chip"]):not([class*="pill"]):not([class*="badge"]):not([class*="person"]):not(:is(header:not(.auto-hero):not(.bk-head), .site-foot-shared, .site-nav-shared, .door, .find-strip, .cinema-chapter, .cinema-cover, .de-help, .book-note, .de-note, .email-card, .bg-deep, .cite-widget, .cite-foot, .skip-link, .mt-tight, figure.zoomable, #name-trail, [data-ground="light"]) *) {
  color: #e8cd8a !important;
}
html.theme-dark body:not(.home) div:not(.actions):not(.links):not(.ev-links):not(.method-actions):not(.controls) > a:not([class]):not([style]):not(.glossary-link):not(.map-link):not([class*="btn"]):not([class*="cta"]):not([class*="card"]):not([class*="tile"]):not([class*="chip"]):not([class*="pill"]):not([class*="badge"]):not([class*="person"]):not(:is(header:not(.auto-hero):not(.bk-head), .site-foot-shared, .site-nav-shared, .door, .find-strip, .cinema-chapter, .cinema-cover, .de-help, .book-note, .de-note, .email-card, .bg-deep, .cite-widget, .cite-foot, .skip-link, .mt-tight, figure.zoomable, #name-trail, [data-ground="light"]) *) {
  color: #e8cd8a !important;
}
/* Copy buttons: cream on gold could not be read. */
html.theme-dark .cite-row .cite-copy,
html.theme-dark .method-actions a[style*="background:var(--brand)"],
html.theme-dark .de-help a.de-cta,
html.theme-dark .ce-avatar.avatar-protagonist,
html.theme-dark button.pcard .ahn { color: #131d2b !important; }
html.theme-dark .cite-row .cite-copy.copied { color: #fff !important; }
/* Pictures and charts that keep a white ground need dark words under them. */
html.theme-dark:root:root figure.ev-surname-trail > figcaption[style],
html.theme-dark:root:root figure.ev-surname-trail > figcaption[style] :is(em, strong, b, span) { color: #1f2e45 !important; }
html.theme-dark figure.fig.fullpage > figcaption,
html.theme-dark figure.fig.fullpage > figcaption b { color: #d6c8a6 !important; }
/* darkcap40 (18 Nov 2026; ASSESS40 item 2): the web pages that the book build writes (military-record.html, the book-*
   reference pages, pension-file.html) set a bare figcaption{color:#333} in their own <style>: dark gray on the navy
   ground of the dark theme, 1.3 to 1. :where() keeps this rule at the weight of a bare element rule, so it overrides
   only such bare rules (this sheet loads after them) and every caption rule with a class or an id keeps its own color.
   inherit gives the caption the page's own dark-theme text color, as on the pages that set no caption color. The light
   theme does not match it. */
:where(html.theme-dark) figcaption { color: inherit; }
html.theme-dark .lt-seg.is-current .lt-label,
html.theme-dark .badge.badge-de { color: #131d2b !important; }
html.theme-dark figure.zoomable > figcaption, html.theme-dark figure.zoomable > figcaption :is(em, strong, b) { color: #1f2e45 !important; }
html.theme-dark figure.zoomable > figcaption a { color: #24497a !important; }
html.theme-dark #name-trail :is(.panel-intro, .note), html.theme-dark #name-trail :is(.panel-intro, .note) :is(em, strong) { color: #1f2e45 !important; }
html.theme-dark #name-trail :is(.panel-intro, .note) a { color: #24497a !important; }
/* Tables and callouts that kept a cream ground under pale words. */
html.theme-dark .note-body tr:nth-child(even) td, html.theme-dark .note-body blockquote { background: #1c2a3f; }
html.theme-dark tr[style*="background:#f3e7c9"] { background: #22324a !important; }
html.theme-dark table.regtab tr.ill td.st.pt, html.theme-dark table.regtab tr.ill td.st.ut { color: #1f2e45 !important; }
/* Small colored labels that were too dim on a dark ground. */
html.theme-dark .bio-card .role { color: #c8b896 !important; }
html.theme-dark .prov-callout .ttl { color: #e6c47a !important; }
html.theme-dark .legend .lg { color: #c8b896 !important; }
html.theme-dark .ev-see-also .sep { color: #8a9bb8; }
html.theme-dark li > span.full, html.theme-dark .body > .eyebrow { color: #7a99c2 !important; }
html.theme-dark .ev-card__top .chip { color: #a8c0e8 !important; }
html.theme-dark .ce-avatar.avatar-family { background: #2f496b !important; }
html.theme-dark .ce-avatar.avatar-scribal, html.theme-dark .ev-card__top .badge { background: #33507a !important; }
html.theme-dark .ce-avatar.avatar-discovery { background: #8a5a12 !important; }
html.theme-dark .ce-avatar.avatar-civilwar { background: #805c3f !important; }
html.theme-dark:root:root span[style*="background:#d4a017"], html.theme-dark:root:root span[style*="background: #d4a017"],
html.theme-dark:root:root button#go, html.theme-dark:root:root .controls > button:not(.secondary),
html.theme-dark:root:root a[style*="background:var(--brand)"] { color: #131d2b !important; }
html.theme-dark:root:root figure[style] > p[style*="--text-muted"] { color: inherit; }
html.theme-dark .connector-note { color: #8fb4e0 !important; }
html.theme-dark:root .ev-see-also .sep { color: #a3b3cc; }

/* ==== BOXES Nov15 — one box set for the whole site ==================
   The colors every box, tile, chip, badge and table uses. The page
   styles were rewritten to these values by scripts/recolor_boxes.py;
   the variables are here so new work uses the same set. */
:root {
  --box-paper: #f6f1e7;      /* quiet panel on the page */
  --box-card: #fffaf0;       /* card */
  --box-cream: #f6ebd2;      /* highlighted card, stat tile */
  --box-tint-green: #e0e6ee; /* proven / found */
  --box-tint-blue: #e6ecf4;  /* note / information */
  --box-tint-red: #f4ede2;   /* ruled out / warning */
  --box-gold: #d8b366;       /* gold chip, accent rule */
  --box-navy: #1c2a3f;       /* dark panel */
  --box-line: #d8c8a8;       /* light border */
  --box-line-strong: #a88a4a;/* medium border */
  --box-radius: 4px;
  --box-radius-lg: 6px;
}
/* Plain list links inside cards (the overview's "latest findings") take the link blue, gold in dark. */
html:root:root:root:not(.theme-dark) body:not(.home) .card ul.mt-tight a:not([class]):not([style]) { color: #24497a !important; }
html:root:root:root:not(.theme-dark) body:not(.home) .card ul.mt-tight a:not([class]):not([style]):hover { color: #16345c !important; }
@media (prefers-color-scheme: dark) {
  html:root:root:root:not(.theme-light) body:not(.home) .card ul.mt-tight a:not([class]):not([style]) { color: #e8cd8a !important; }
}
html.theme-dark:root:root:root body:not(.home) .card ul.mt-tight a:not([class]):not([style]) { color: #e8cd8a !important; }
/* Links on navy strips stay gold. */
html:not(#_) .de-lag-note a:not(#_):not(#_) { color: #e8cd8a !important; }
/* Gold chips keep dark text in both themes. */
html:root:root:root span[style*="background:#d8b366"], html:root:root:root span[style*="background: #d8b366"] { color: #1c2a3f !important; }
/* The small star beside a source's label reads clearly on cream. */
html:not(.theme-dark):not(#_) .ev-tells-label > .ev-star { color: #7a5818 !important; }
/* Record-card headers stay Union blue on the dark theme. */
@media (prefers-color-scheme: dark) {
  html:not(.theme-light):not(#_) header.card-hero { background: linear-gradient(135deg, #1c2a3f, #2a3c57) !important; }
}
html.theme-dark:not(#_) header.card-hero { background: linear-gradient(135deg, #1c2a3f, #2a3c57) !important; }

/* ==== BOXFIX Nov15 — register status: "Prob. traced" pale, "Untraced" gold, so the open boys stand out ==== */
html:not(#_) .st.pt:not(#_) { background: #f0e2bc !important; color: #2c2620 !important; }
html:not(#_) .st.ut:not(#_) { background: #d8b366 !important; color: #1c2a3f !important; }

/* ==== MASTHEAD Nov15 — inner pages in the opening page's style ==========
   One page header for the whole site: Union blue ground with the two cover
   scenes faint behind it, gold small-caps trail, centered title, gold rule,
   italic standfirst. Then the same card, pill and label manners below it. */
@media screen {
html:not(#_) { overflow-x: clip; }

/* ---- 15.1 the band ---- */
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) {
  position: relative; isolation: isolate; overflow: visible;
  background: none !important; color: #f6f1e7 !important;
  text-align: center !important;
  padding: clamp(2.6rem, 6vw, 3.6rem) 1.4rem clamp(2.2rem, 5vw, 3rem) !important;
  margin: 0 0 2.2rem !important;
  border: 0 !important; border-bottom: 1px solid rgba(216, 179, 102, 0.5) !important; border-radius: 0 !important;
  box-shadow: none !important; max-width: none !important;
}
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_)::before {
  content: ""; position: absolute; z-index: -2; top: 0; bottom: -1px; left: 50%; right: auto;
  width: 100vw; margin-left: -50vw; inset-inline: auto; opacity: 1;
  background: linear-gradient(160deg, #1c2a3f 0%, #141f30 100%);
  border-bottom: 1px solid rgba(216, 179, 102, 0.5);
}
body:not(.home) header.auto-hero:not(#_)::before { top: -96px; }
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_)::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; right: auto;
  width: min(100vw, 1500px); transform: translateX(-50%);
  background: url("brand/home-scenes.webp") center 22% / cover no-repeat;
  mix-blend-mode: screen; opacity: 0.17; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

/* ---- 15.2 what stands on the band ---- */
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) > *,
body:not(.home) header.cinema-section-hero:not(#_) .csh__inner > * {
  margin-left: auto !important; margin-right: auto !important; text-align: center !important; float: none !important;
}
body:not(.home) header.cinema-section-hero:not(#_) .csh__inner { max-width: 60rem; padding: 0 !important; }
/* the trail */
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) :is(.crumbs, .csh__crumbs, .bk-crumb, .eyebrow, .bk-label, .cardnum, .csh__chapter) {
  font-family: 'Source Serif 4', Georgia, serif !important; font-size: 0.74rem !important; font-weight: 600 !important;
  letter-spacing: 0.2em !important; text-transform: uppercase !important; font-style: normal !important; font-variant: normal !important;
  color: rgba(246, 241, 231, 0.72) !important; line-height: 1.7 !important;
  margin-top: 0 !important; margin-bottom: 0.9rem !important; padding: 0 !important; max-width: 46rem; border: 0 !important; background: none !important;
  display: block !important;
}
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) :is(.crumbs, .csh__crumbs, .bk-crumb) :is(a, span):not(#_) {
  color: #d8b366 !important; text-decoration: none !important; border: 0 !important; background: none !important;
}
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) :is(.crumbs, .csh__crumbs, .bk-crumb) a:not(#_):hover { color: #f1dca6 !important; }
body:not(.home) header:not(#_) .csh__chapter::before { display: none !important; }
/* the title */
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) h1:not(#_) {
  font-family: 'Source Serif 4', Georgia, serif !important; font-weight: 700 !important; font-style: normal !important;
  font-size: clamp(2.05rem, 4.6vw, 2.9rem) !important; line-height: 1.1 !important; letter-spacing: 0.012em !important;
  color: #f6f1e7 !important; -webkit-text-fill-color: #f6f1e7; text-wrap: balance;
  max-width: 22em !important; margin-top: 0 !important; margin-bottom: 0 !important; padding: 0 !important; border: 0 !important;
  text-shadow: 0 1px 10px rgba(20, 31, 48, 0.9), 0 0 2px rgba(20, 31, 48, 0.9);
}
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) h1:not(#_) em { font-style: italic !important; color: #e8cd8a !important; -webkit-text-fill-color: #e8cd8a; }
/* the gold rule under the title */
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) h1:not(#_)::after {
  content: ""; display: block; width: 150px; height: 9px; margin: 1rem auto 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 9'><path d='M0 4.5h64M86 4.5h64' stroke='%23d8b366' stroke-width='1'/><path d='M75 0.5l4 4-4 4-4-4z' fill='%23d8b366'/></svg>") center / contain no-repeat;
}
/* the standfirst */
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) :is(.sub, .csh__sub, .when, h1 ~ p):not(#_) {
  font-family: 'Source Serif 4', Georgia, serif !important; font-style: italic !important; font-size: 1.06rem !important; line-height: 1.65 !important;
  color: #ddd3bd !important; max-width: 40rem !important; margin-top: 1.05rem !important; margin-bottom: 0 !important; padding: 0 !important;
  text-shadow: 0 1px 10px rgba(20, 31, 48, 0.9);
}
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) :is(.sub, .csh__sub, .when, h1 ~ p):not(#_) :is(strong, b, em) { color: #f6f1e7 !important; }
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) :is(.sub, .csh__sub, .when, h1 ~ p) a:not(#_):not([class*="btn"]) {
  color: #e8cd8a !important; text-decoration: underline !important; text-decoration-color: rgba(232, 205, 138, 0.5) !important; text-underline-offset: 3px; border: 0 !important; background: none !important;
}
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) code { background: rgba(255, 250, 240, 0.1) !important; color: #f6f1e7 !important; border: 0 !important; }
/* facts under the standfirst (evidence, Germany) */
body:not(.home) header.cinema-section-hero:not(#_) .csh__meta {
  display: flex !important; flex-wrap: wrap; justify-content: center; gap: 0.6rem 2.4rem !important;
  margin-top: 1.5rem !important; padding-top: 1.1rem !important; border-top: 1px solid rgba(216, 179, 102, 0.28) !important; max-width: 46rem;
}
body:not(.home) header.cinema-section-hero:not(#_) .csh__meta > div { align-items: center; text-align: center; }
body:not(.home) header:not(#_) .method-actions { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 1.3rem !important; }

/* tags, dates and buttons under the standfirst */
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) :is(.meta-row, .ab-actions, .tags, .chips) {
  display: flex !important; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.45rem 0.5rem;
  margin-top: 1.15rem !important; margin-bottom: 0 !important; padding: 0 !important; max-width: 52rem; border: 0 !important; background: none !important;
}
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) .meta-row > :not([class]) { color: #ddd3bd !important; font-size: 0.86rem; }
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) .lifespan {
  font-family: 'Source Serif 4', Georgia, serif !important; font-size: 1rem !important; letter-spacing: 0.16em !important;
  color: #d8b366 !important; margin-top: 0.9rem !important; font-style: normal !important;
  background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; max-width: 46rem;
}
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) .lifespan :is(span, small, em):not(#_) { display: block; color: #ddd3bd !important; letter-spacing: 0.02em !important; font-style: italic; margin-top: 0.3rem; }
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) :is(.lifespan, .sub, .csh__sub) a.glossary-link:not(#_), body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) .lifespan a:not(#_) { color: #e8cd8a !important; background: none !important; border: 0 !important; text-decoration: underline !important; text-decoration-color: rgba(232, 205, 138, 0.5) !important; }

/* a notice set inside the band */
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) .callout:not(#_) {
  max-width: 46rem; margin-top: 1.3rem !important; padding: 0.9rem 1.2rem !important; text-align: left !important;
  background: rgba(255, 250, 240, 0.07) !important; border: 1px solid rgba(216, 179, 102, 0.45) !important; border-left: 4px solid #d8b366 !important;
  border-radius: 5px !important; box-shadow: none !important; color: #e9e1cf !important; font-size: 0.93rem; line-height: 1.55;
}
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) .callout:not(#_) :is(p, li, span, em, i, small, div) { color: #e9e1cf !important; text-align: left !important; background: none !important; }
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) .callout:not(#_) :is(strong, b, h2, h3, h4) { color: #f6f1e7 !important; }
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) .callout:not(#_) a:not(#_) { color: #e8cd8a !important; text-decoration: underline !important; border: 0 !important; background: none !important; }
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) :is(.sub, .csh__sub, .when):not(#_) { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) h1:not(#_) :is(small, span:not([class])) { display: block; font-size: 1.05rem !important; font-weight: 400 !important; font-style: italic !important; letter-spacing: 0 !important; color: #ddd3bd !important; margin-top: 0.5rem; }

body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) :is(span.town-pill, span.union-flag, .sub > span.pill, .meta-row > span.pill):not(#_) { background: rgba(216, 179, 102, 0.12) !important; border: 1px solid rgba(216, 179, 102, 0.6) !important; color: #e8cd8a !important; }
@media (max-width: 640px) {
  body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) { padding: 2.9rem 1rem 2rem !important; margin-bottom: 1.5rem !important; }
  body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) :is(.sub, .csh__sub, .when, h1 ~ p):not(#_) { font-size: 0.99rem !important; }
}

/* ---- 15.3 colors that change with the theme ---- */
html:not(#_) { --m-pill-bg: #fffaf0; --m-pill-line: #a88a4a; --m-pill-ink: #1c2a3f; --m-kicker: #8a6420; --m-lede: #2e2a22; --m-rule: #d8b366; }
@media (prefers-color-scheme: dark) { html:not(.theme-light):not(#_) { --m-pill-bg: rgba(255, 250, 240, 0.05); --m-pill-line: rgba(216, 179, 102, 0.5); --m-pill-ink: #f6f1e7; --m-kicker: #d8b366; --m-lede: #ddd3bd; } }
html.theme-dark:not(#_) { --m-pill-bg: rgba(255, 250, 240, 0.05); --m-pill-line: rgba(216, 179, 102, 0.5); --m-pill-ink: #f6f1e7; --m-kicker: #d8b366; --m-lede: #ddd3bd; }

/* ---- 15.4 "on this page" menus: one row of pills, as on the opening page ---- */
body:not(.home) :is(nav.case-jump, nav.page-toc, nav.toc, nav.quick-jump, p.places-jump, nav.lh-toc):not(#_) {
  display: flex !important; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem 0.55rem;
  max-width: 62rem; margin: 0 auto 2.2rem !important; padding: 0 !important; columns: auto !important;
  background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  font-size: 0 !important; line-height: 1.2 !important; text-align: center; position: static !important;
}
body:not(.home) :is(nav.case-jump, nav.page-toc, nav.toc, nav.quick-jump, p.places-jump, nav.lh-toc):not(#_) :is(ol, ul, li) { display: contents !important; list-style: none !important; }
body:not(.home) :is(nav.case-jump, nav.page-toc, nav.toc, nav.quick-jump, p.places-jump, nav.lh-toc):not(#_) :is(.toc-label, h3, h4, strong, b) {
  flex: 0 0 100%; display: block !important; margin: 0 0 0.25rem !important; padding: 0 !important; border: 0 !important; background: none !important;
  font-family: 'Source Serif 4', Georgia, serif !important; font-size: 0.74rem !important; font-weight: 600 !important;
  letter-spacing: 0.2em !important; text-transform: uppercase !important; color: var(--m-kicker) !important; text-align: center !important;
}
body:not(.home) :is(nav.case-jump, nav.page-toc, nav.toc, nav.quick-jump, p.places-jump, nav.lh-toc):not(#_) a:not(#_) {
  display: inline-block !important; padding: 0.42rem 0.95rem !important; margin: 0 !important;
  font-family: 'Source Serif 4', Georgia, serif !important; font-size: 0.93rem !important; font-weight: 500 !important; line-height: 1.25 !important;
  letter-spacing: 0 !important; text-transform: none !important; white-space: normal;
  color: var(--m-pill-ink) !important; background: var(--m-pill-bg) !important;
  border: 1px solid var(--m-pill-line) !important; border-radius: 999px !important; text-decoration: none !important; box-shadow: none !important;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
body:not(.home) :is(nav.case-jump, nav.page-toc, nav.toc, nav.quick-jump, p.places-jump, nav.lh-toc):not(#_) a:not(#_):is(:hover, :focus-visible) { background: #1c2a3f !important; color: #f6f1e7 !important; border-color: #d8b366 !important; }
html.theme-dark body:not(.home) :is(nav.case-jump, nav.page-toc, nav.toc, nav.quick-jump, p.places-jump, nav.lh-toc):not(#_) a:not(#_):is(:hover, :focus-visible) { background: rgba(216, 179, 102, 0.16) !important; }
body:not(.home) nav.quick-jump:not(#_) a:not(#_) { min-width: 2.3rem; padding: 0.38rem 0.5rem !important; text-align: center; }

/* ---- 15.5 the standfirst under the band ---- */
body:not(.home) main > p.lede:not(#_), body:not(.home) main > section > p.lede:not(#_) {
  max-width: 44rem !important; margin: 0.4rem auto 2.2rem !important; padding: 0 !important; border: 0 !important; background: none !important;
  text-align: left !important; font-style: italic !important; font-weight: 400 !important;
  font-size: 1.13rem !important; line-height: 1.65 !important; color: var(--m-lede) !important;
}
}

/* ==== TIDY Nov15 — below the header: one section heading, notices under the band, Help find Charles ==== */
@media screen {
html:not(#_) { --m-page: #f6f1e7; --m-ink: #2c2620; --m-strong: #1c2a3f; --m-link: #24497a; --m-note-bg: #fffaf0; --m-note-line: #d8c8a8; --m-h2-rule: #d8b366; }
@media (prefers-color-scheme: dark) { html:not(.theme-light):not(#_) { --m-page: #131d2b; --m-ink: #ece2cc; --m-strong: #f6f1e7; --m-link: #e8cd8a; --m-note-bg: #1c2a3f; --m-note-line: #33496b; --m-h2-rule: rgba(216, 179, 102, 0.5); } }
html.theme-dark:not(#_) { --m-page: #131d2b; --m-ink: #ece2cc; --m-strong: #f6f1e7; --m-link: #e8cd8a; --m-note-bg: #1c2a3f; --m-note-line: #33496b; --m-h2-rule: rgba(216, 179, 102, 0.5); }

/* ---- 16.1 section headings ---- */
body:not(.home) :is(main, article, .page-column) h2:not(#_):not(:is(header, nav, footer, figure, table, aside, details, [class*="card"], [class*="callout"], [class*="box"], [class*="glance"], [class*="panel"], [class*="tile"], [class*="hero"], [class*="toc"], [class*="modal"], [class*="banner"], [class*="feature"], [class*="strip"], .note, .notice, .cinema-chapter, .cinema-invitation, .door) *) {
  font-family: 'Source Serif 4', Georgia, serif !important; font-size: 1.45rem !important; font-weight: 700 !important; font-style: normal !important;
  line-height: 1.25 !important; letter-spacing: 0 !important; text-transform: none !important; text-align: left !important; font-variant: normal !important;
  border: 0 !important; border-bottom: 1px solid var(--m-h2-rule) !important; border-radius: 0 !important;
  padding: 0 0 0.35rem !important; background: none !important; box-shadow: none !important;
}

@supports selector(:has(a)) {
/* ---- 16.2 a notice written inside a header sits under the band, on the page ---- */
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):has(> .callout):not(#_) { display: flex !important; flex-direction: column; --m-pad-b: clamp(2.2rem, 5vw, 3rem); padding-bottom: var(--m-pad-b) !important; }
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):has(> .callout):not(#_):not(#_)::before { left: 50%; right: auto; }
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) > .callout:not(#_):not(#_) {
  order: 99; position: relative; z-index: 0; width: 100%; max-width: 52rem; box-sizing: border-box;
  margin: calc(var(--m-pad-b) + 1.8rem) auto calc(-1 * var(--m-pad-b)) !important; padding: 1rem 1.3rem 1rem 1.5rem !important;
  background: none !important; color: var(--m-ink) !important; text-shadow: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  font-size: 0.95rem; line-height: 1.6; text-align: left !important;
}
/* the page ground, drawn across the full width from just above the notice to the foot of the header */
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) > .callout:not(#_):not(#_)::before {
  content: ""; position: absolute; z-index: -2; top: -1.8rem; bottom: -2px; left: 50%; width: 100vw; margin-left: -50vw;
  background: var(--m-page); border-top: 1px solid rgba(216, 179, 102, 0.6);
}
/* the notice's own card */
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) > .callout:not(#_):not(#_)::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: var(--m-note-bg); border: 1px solid var(--m-note-line); border-left: 4px solid #d8b366; border-radius: 4px;
}
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) > .callout:not(#_):not(#_) :is(p, li, span, em, i, small, div) { color: var(--m-ink) !important; text-shadow: none !important; }
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) > .callout:not(#_):not(#_) :is(strong, b, h2, h3, h4) { color: var(--m-strong) !important; }
body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_) > .callout:not(#_):not(#_) a:not(#_):not(#_) { color: var(--m-link) !important; }

/* ---- 16.3 "Help find Charles" opens like every other page ---- */
body:not(.home) main:has(> .fc-hero):not(#_) { display: flex; flex-direction: column; }
body:not(.home) main:has(> .fc-hero):not(#_) > * { min-width: 0; }
body:not(.home) .fc-hero:not(#_) {
  order: -1; position: relative; isolation: isolate; display: flex !important; flex-direction: column !important; align-items: center !important;
  gap: 0.9rem !important; text-align: center !important; color: #f6f1e7 !important;
  padding: 1.4rem 1.4rem clamp(2.2rem, 5vw, 3rem) !important; margin: 0 0 2.2rem !important; max-width: none !important;
}
body:not(.home) .fc-hero:not(#_)::before {
  content: ""; position: absolute; z-index: -2; top: -96px; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw;
  background: linear-gradient(160deg, #1c2a3f 0%, #141f30 100%); border-bottom: 1px solid rgba(216, 179, 102, 0.5);
}
body:not(.home) .fc-hero:not(#_)::after {
  content: ""; position: absolute; z-index: -1; top: -40px; bottom: 0; left: 50%; width: min(100vw, 1500px); transform: translateX(-50%);
  background: url("brand/home-scenes.webp") center 22% / cover no-repeat; mix-blend-mode: screen; opacity: 0.17; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
body:not(.home) .fc-hero:not(#_) img { width: 84px !important; height: auto; }
body:not(.home) .fc-hero:not(#_) > div { flex: none !important; max-width: 46rem; }
body:not(.home) .fc-hero:not(#_) h1:not(#_) {
  font-family: 'Source Serif 4', Georgia, serif !important; font-size: clamp(2.05rem, 4.6vw, 2.9rem) !important; font-weight: 700 !important; line-height: 1.1 !important;
  letter-spacing: 0.012em !important; color: #f6f1e7 !important; -webkit-text-fill-color: #f6f1e7; text-align: center !important; margin: 0 !important; text-wrap: balance;
  text-shadow: 0 1px 10px rgba(20, 31, 48, 0.9), 0 0 2px rgba(20, 31, 48, 0.9);
}
body:not(.home) .fc-hero:not(#_) h1:not(#_)::after {
  content: ""; display: block; width: 150px; height: 9px; margin: 1rem auto 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 9'><path d='M0 4.5h64M86 4.5h64' stroke='%23d8b366' stroke-width='1'/><path d='M75 0.5l4 4-4 4-4-4z' fill='%23d8b366'/></svg>") center / contain no-repeat;
}
body:not(.home) .fc-hero:not(#_) :is(p, .lede):not(#_) {
  font-style: italic !important; font-size: 1.06rem !important; line-height: 1.65 !important; color: #ddd3bd !important;
  max-width: 40rem !important; margin: 1.05rem auto 0 !important; text-align: center !important; text-shadow: 0 1px 10px rgba(20, 31, 48, 0.9);
}
}
}

/* ==== 17 third pass: one text size, one line length, one table, one label, the footer ==== */
@media screen {
html:not(#_) { --m-th-bg: #f6ebd2; --m-th-ink: #4a3a22; --m-line: #d8c8a8; --m-line-strong: #a88a4a; }
@media (prefers-color-scheme: dark) { html:not(.theme-light):not(#_) { --m-th-bg: #1c2a3f; --m-th-ink: #e8cd8a; --m-line: #33496b; --m-line-strong: rgba(216, 179, 102, 0.55); } }
html.theme-dark:not(#_) { --m-th-bg: #1c2a3f; --m-th-ink: #e8cd8a; --m-line: #33496b; --m-line-strong: rgba(216, 179, 102, 0.55); }

/* ---- 17.1 running text: one size; 17.2 one line length ---- */
body:not(.home) :is(main, article, section, .page-column, div:not([class])) > :is(p:not([class]), :is(ul, ol, dl):not([class])):not(#_):not(:is(header, nav, footer, figure, table, aside, details, blockquote, form, [class*="card"], [class*="callout"], [class*="box"], [class*="glance"], [class*="panel"], [class*="tile"], [class*="hero"], [class*="toc"], [class*="modal"], [class*="banner"], [class*="feature"], [class*="strip"], [class*="grid"], [class*="note"], [class*="notice"], [class*="meta"], [class*="map"], [class*="timeline"], .bk-wrap, .cinema-chapter, .cinema-invitation, .door) *) {
  font-size: 1.0625rem !important; line-height: 1.65 !important;
}
body:not(.home) :is(main, article, section, .page-column, div:not([class])) > :is(ul, ol, dl):not([class]):not(#_) > :is(li, dt, dd):not([class]) { font-size: inherit !important; line-height: inherit !important; }
body:not(.home) :is(main, article, section, .page-column, div:not([class])) > :is(p:not([class]), :is(ul, ol, dl):not([class])):not(#_):not(:is(header, nav, footer, figure, table, aside, details, blockquote, form, [class*="card"], [class*="callout"], [class*="box"], [class*="glance"], [class*="panel"], [class*="tile"], [class*="hero"], [class*="toc"], [class*="modal"], [class*="banner"], [class*="feature"], [class*="strip"], [class*="grid"], [class*="note"], [class*="notice"], [class*="meta"], [class*="map"], [class*="timeline"], .bk-wrap, .cinema-chapter, .cinema-invitation, .door) *) { max-width: 46rem; }

/* ---- 17.3 tables ---- */
body:not(.home) :is(main, article, .page-column) table:not(#_):not(:is(.bk-wrap, [class*="map"], [class*="calendar"]) *) { border-collapse: collapse; }
body:not(.home) :is(main, article, .page-column) table:not(:is(.bk-wrap, [class*="map"], [class*="calendar"]) *) > thead > tr > th:not(#_) {
  background: var(--m-th-bg) !important; color: var(--m-th-ink) !important;
  font-family: 'Source Serif 4', Georgia, serif !important; font-size: 0.76rem !important; font-weight: 700 !important;
  text-transform: uppercase !important; letter-spacing: 0.05em !important; line-height: 1.35 !important;
  padding: 0.55rem 0.7rem !important; vertical-align: bottom;
  border: 0 !important; border-bottom: 2px solid var(--m-line-strong) !important; border-radius: 0 !important;
}
body:not(.home) :is(main, article, .page-column) table:not(:is(.bk-wrap, [class*="map"], [class*="calendar"]) *) > thead > tr > th:not(#_) :is(a, button) { color: inherit !important; }
body:not(.home) :is(main, article, .page-column) table:has(> thead):not(:is(.bk-wrap, [class*="map"], [class*="calendar"]) *) > tbody > tr > :is(td, th):not(#_) {
  font-size: 0.9rem !important; line-height: 1.5 !important; padding: 0.5rem 0.7rem !important; vertical-align: top;
  border: 0 !important; border-bottom: 1px solid var(--m-line) !important;
}

/* key and value tables (no header row): the same cell, with the key as a small label */
body:not(.home) :is(main, article, .page-column) table.kv:not(#_) { border-collapse: collapse; width: 100%; }
body:not(.home) :is(main, article, .page-column) table.kv > tbody > tr > :is(td, th):not(#_) {
  font-size: 0.9rem !important; line-height: 1.5 !important; padding: 0.5rem 0.7rem !important; vertical-align: top; text-align: left;
  border: 0 !important; border-bottom: 1px solid var(--m-line) !important; background: none !important;
}
body:not(.home) :is(main, article, .page-column) table.kv > tbody > tr > :is(td, th):first-child:not(:only-child):not(#_) {
  font-family: 'Source Serif 4', Georgia, serif !important; font-size: 0.76rem !important; font-weight: 700 !important; text-transform: uppercase !important;
  letter-spacing: 0.05em !important; color: var(--m-th-ink) !important; width: 11rem; padding-top: 0.62rem !important;
}
body:not(.home) :is(main, article, .page-column) table.kv > tbody > tr:last-child > :is(td, th):not(#_) { border-bottom: 0 !important; }
@media (max-width: 640px) { body:not(.home) :is(main, article, .page-column) table.kv > tbody > tr > :is(td, th):first-child:not(:only-child):not(#_) { width: 6.2rem; } }
/* lists that carry the page's main text are never smaller than the reading size of a note */
body:not(.home) :is(main, .page-column, article, section) > :is(ul, ol)[class]:not(#_):not([class*="src"], [class*="source"], [class*="note"], [class*="toc"], [class*="jump"], [class*="grid"], [class*="card"], [class*="pill"], [class*="tab"], [class*="chip"], [class*="nav"], [class*="crumb"]) { font-size: 1rem; line-height: 1.6; }

/* ---- 17.4 small status labels: one shape (colors stay as they are) ---- */
body:not(.home) :is(main, article, .page-column) :is(span, em, b, strong, i, a):is(.conf-pill, .badge, .pill, .status-pill, .severity, .rl-result, .vd, .st, .prio, .online, .tag):not(#_):not(header *) {
  display: inline-block; font-size: 0.7rem !important; font-weight: 700 !important; line-height: 1.4 !important;
  text-transform: uppercase !important; letter-spacing: 0.05em !important; padding: 0.12rem 0.5rem !important;
  border-radius: 4px !important; white-space: normal !important; max-width: 100%; vertical-align: baseline; text-decoration: none !important;
}

/* ---- 17.5 the footer, in the front page's voice ---- */
html:not(#_) .site-foot-shared { font-family: 'Source Serif 4', Georgia, serif !important; font-size: 0.9rem; border-top: 1px solid rgba(216, 179, 102, 0.5) !important; padding: 2rem 1.5rem 1.6rem !important; }
html:not(#_) .site-foot-shared .foot-blurb { font-style: normal !important; }
html:not(#_) .site-foot-shared :is(.foot-inner, .foot-meta) a:not(#_) { color: #e8cd8a !important; border-bottom: 0 !important; text-decoration: none !important; }
html:not(#_) .site-foot-shared :is(.foot-inner, .foot-meta) a:not(#_):hover { text-decoration: underline !important; }
html:not(#_) .site-foot-shared .foot-group-label { font-family: 'Source Serif 4', Georgia, serif !important; letter-spacing: 0.14em !important; }
html:not(#_) .site-foot-shared .foot-credit { max-width: 1100px; margin: 0.9rem auto 0; font-size: 0.78rem; line-height: 1.5; color: #b9b3a3; opacity: 0.9; }
html:not(#_) .site-foot-shared .foot-credit a { color: inherit !important; border-bottom: 0 !important; text-decoration: underline !important; }
html:not(#_) footer.fg-foot .foot-credit { font-size: 0.78rem; line-height: 1.5; margin: 0.6rem auto 0; max-width: 44rem; opacity: 0.85; }
html:not(#_) footer.fg-foot .foot-credit a { color: inherit !important; }

/* ---- 17.6 nothing wider than a phone ---- */
body:not(.home) :is(main, article, .page-column) :is(figure, [class*="hero"]) > img:not(#_) { max-width: 100% !important; height: auto; min-width: 0; }
body:not(.home) article.story .story-hero.dual:not(#_) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 540px) { body:not(.home) article.story .story-hero.dual:not(#_) { grid-template-columns: minmax(0, 1fr); } }
body:not(.home) article.story .story-hero figcaption:not(#_) { max-width: min(560px, 100%); }
@media (max-width: 640px) {
  body:not(.home) .ht-row:not(#_) { grid-template-columns: minmax(0, 1fr) !important; }
  body:not(.home) .ht-row:not(#_) > * { min-width: 0; }
}
}
/* ==== FINISH Nov15 — pictures and captions, wide tables on a phone, the German opening page ==== */
@media screen {
/* ---- 18.1 one frame for pictures, one caption ---- */
/* a plain figure carries no box of its own: the picture has the frame */
/* light theme only: in the dark theme a plain figure keeps its own ground, which its caption color relies on */
@media (prefers-color-scheme: light) {
  html:not(.theme-dark) body:not(.home) :is(main, article, .page-column) figure:not([class]):has(img):not(#_):not(.bk-wrap *) { background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; }
}
html.theme-light body:not(.home) :is(main, article, .page-column) figure:not([class]):has(img):not(#_):not(.bk-wrap *) { background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; }
body:not(.home) :is(main, article, .page-column) figure:not(.deep-zoom, .qr-fig, [class*="arms"], [class*="timeline"], [class*="tree"], [class*="chart"], [class*="portrait"], [class*="map"], [class*="trail"], [class*="lifespan"]):not(#_):not(.bk-wrap *) img:not([style*="radius"]):not([class*="dz-"]) {
  border: 1px solid var(--m-line, #d8c8a8) !important; border-radius: 4px !important; box-shadow: none !important;
  background: var(--m-note-bg, #fffaf0); padding: 0 !important; max-width: 100%; height: auto;
}
body:not(.home) :is(main, article, .page-column) figure:not(.bk-wrap *) > figcaption:not(#_) {
  font-family: 'Source Serif 4', Georgia, serif !important; font-size: 0.85rem !important; line-height: 1.5 !important; font-style: normal !important;
  text-align: left !important; margin-top: 0.5rem; max-width: 46rem;
}
/* caption color is set in the light theme only; in the dark theme each caption keeps the color
   its own page gave it, because some figures keep a cream ground there */
@media (prefers-color-scheme: light) {
  html:not(.theme-dark) body:not(.home) :is(main, article, .page-column) figure:not(.bk-wrap *) > figcaption:not(#_) { color: #5a4a30 !important; }
}
html.theme-light body:not(.home) :is(main, article, .page-column) figure:not(.bk-wrap *) > figcaption:not(#_) { color: #5a4a30 !important; }
body:not(.home) :is(main, article, .page-column) figure:not(.bk-wrap *) > figcaption:not(#_) :is(em, i, cite) { font-style: italic !important; }

/* ---- 18.2 a wide table scrolls inside its own frame on a phone ---- */
@media (max-width: 700px) {
  body:not(.home) :is(main, article, .page-column) table:has(> thead):not(.kv):not(#_):not(:is(.table-scroll, .tbl-wrap, [class*="scroll"], [class*="table-wrap"]) > *) {
    display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
}

/* ---- 18.3 the German opening page in Union blue, with the cover scenes ---- */
html:not(#_) header.cinema-cover:not(#_) { background: #1c2a3f !important; }
html:not(#_) header.cinema-cover:not(#_)::before { background: linear-gradient(160deg, #1c2a3f 0%, #141f30 100%) !important; animation: none !important; transform: none !important; }
html:not(#_) header.cinema-cover:not(#_)::after {
  background: url("brand/home-scenes.webp") center top / cover no-repeat !important; mix-blend-mode: screen !important; opacity: 0.2 !important;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
html:not(#_) header.cinema-cover:not(#_) :is(.cinema-cover__title, .cinema-cover__sub, .cinema-cover__dates) { text-shadow: 0 1px 10px rgba(20, 31, 48, 0.9), 0 0 2px rgba(20, 31, 48, 0.9); }
html:not(#_) nav.de-topbar:not(#_) { background: #141f30 !important; border-bottom: 1px solid rgba(216, 179, 102, 0.5) !important; }
html:not(#_) nav.de-topbar:not(#_) a { color: #e8cd8a !important; }
}
@media screen { html:not(#_) header.cinema-cover:not(#_) .cinema-cover__scroll { display: none !important; } }
/* ---- 18.4 source lists one size up ---- */
@media screen { body:not(.home) :is(main, .page-column, article, section) > :is(ul, ol):is([class*="src"], [class*="source"]):not(#_) { font-size: 0.94rem; line-height: 1.55; }
  body:not(.home) :is(main, .page-column, article, section) > :is(ul, ol):is([class*="src"], [class*="source"]):not(#_) > li { font-size: inherit; line-height: inherit; } }
/* ==== DEPORTRAIT Nov15 — 19. the German opening page shows the portrait as the book does ==== */
/* the whole cabinet card in a thin gold frame, as on the English opening page; no round crop, no zoom */
@media screen {
html:not(#_) header.cinema-cover:not(#_) .cinema-cover__portrait-frame {
  width: clamp(170px, 19vw, 250px) !important; aspect-ratio: 2 / 3 !important; border-radius: 3px !important;
  border: 3px solid #d8b366 !important; box-shadow: 0 6px 26px rgba(0, 0, 0, 0.55) !important; overflow: hidden !important; background: #141f30;
}
html:not(#_) header.cinema-cover:not(#_) .cinema-cover__portrait-frame :is(img, .portrait-img) {
  width: 100% !important; height: 100% !important; object-fit: cover !important; transform: none !important; filter: none !important; border-radius: 0 !important;
}
html:not(#_) header.cinema-cover:not(#_) .cinema-cover__portrait-rule { display: none !important; }
@media (max-width: 880px) {
  html:not(#_) header.cinema-cover:not(#_) .cinema-cover__portrait-frame { width: 150px !important; }
}
}
/* credit line under the German opening picture: readable in both themes */
html:not(#_) .credit-portrait { color: #5a4a30; }
html:not(#_) .credit-portrait a { color: #24497a; }
html.theme-dark:not(#_) .credit-portrait { color: #cbbd9c; }
html.theme-dark:not(#_) .credit-portrait a { color: #e8cd8a; }
@media (prefers-color-scheme: dark) { html:not(.theme-light):not(#_) .credit-portrait { color: #cbbd9c; } html:not(.theme-light):not(#_) .credit-portrait a { color: #e8cd8a; } }

/* ==== LOOK Nov15 — 20. one color set: dark-theme ink for the redrawn status colors ==== */
/* text set inline in a dark blue, bronze or umber is lifted in the dark theme so it reads on navy */
html.theme-dark:not(#_) [style^="color:#2a466a"],
html.theme-dark:not(#_) [style^="color: #2a466a"],
html.theme-dark:not(#_) [style*=";color:#2a466a"],
html.theme-dark:not(#_) [style*=";color: #2a466a"],
html.theme-dark:not(#_) [style*="; color:#2a466a"],
html.theme-dark:not(#_) [style*="; color: #2a466a"],
html.theme-dark:not(#_) [style*=" color:#2a466a"],
html.theme-dark:not(#_) [style*=" color: #2a466a"],
html.theme-dark:not(#_) [style^="color:#2e507d"],
html.theme-dark:not(#_) [style^="color: #2e507d"],
html.theme-dark:not(#_) [style*=";color:#2e507d"],
html.theme-dark:not(#_) [style*=";color: #2e507d"],
html.theme-dark:not(#_) [style*="; color:#2e507d"],
html.theme-dark:not(#_) [style*="; color: #2e507d"],
html.theme-dark:not(#_) [style*=" color:#2e507d"],
html.theme-dark:not(#_) [style*=" color: #2e507d"],
html.theme-dark:not(#_) [style^="color:#3a485a"],
html.theme-dark:not(#_) [style^="color: #3a485a"],
html.theme-dark:not(#_) [style*=";color:#3a485a"],
html.theme-dark:not(#_) [style*=";color: #3a485a"],
html.theme-dark:not(#_) [style*="; color:#3a485a"],
html.theme-dark:not(#_) [style*="; color: #3a485a"],
html.theme-dark:not(#_) [style*=" color:#3a485a"],
html.theme-dark:not(#_) [style*=" color: #3a485a"],
html.theme-dark:not(#_) [style^="color:#3a567a"],
html.theme-dark:not(#_) [style^="color: #3a567a"],
html.theme-dark:not(#_) [style*=";color:#3a567a"],
html.theme-dark:not(#_) [style*=";color: #3a567a"],
html.theme-dark:not(#_) [style*="; color:#3a567a"],
html.theme-dark:not(#_) [style*="; color: #3a567a"],
html.theme-dark:not(#_) [style*=" color:#3a567a"],
html.theme-dark:not(#_) [style*=" color: #3a567a"],
html.theme-dark:not(#_) [style^="color:#5a6f8a"],
html.theme-dark:not(#_) [style^="color: #5a6f8a"],
html.theme-dark:not(#_) [style*=";color:#5a6f8a"],
html.theme-dark:not(#_) [style*=";color: #5a6f8a"],
html.theme-dark:not(#_) [style*="; color:#5a6f8a"],
html.theme-dark:not(#_) [style*="; color: #5a6f8a"],
html.theme-dark:not(#_) [style*=" color:#5a6f8a"],
html.theme-dark:not(#_) [style*=" color: #5a6f8a"] { color: #a9c1e0 !important; }
html.theme-dark:not(#_) [style^="color:#725c35"],
html.theme-dark:not(#_) [style^="color: #725c35"],
html.theme-dark:not(#_) [style*=";color:#725c35"],
html.theme-dark:not(#_) [style*=";color: #725c35"],
html.theme-dark:not(#_) [style*="; color:#725c35"],
html.theme-dark:not(#_) [style*="; color: #725c35"],
html.theme-dark:not(#_) [style*=" color:#725c35"],
html.theme-dark:not(#_) [style*=" color: #725c35"],
html.theme-dark:not(#_) [style^="color:#745b31"],
html.theme-dark:not(#_) [style^="color: #745b31"],
html.theme-dark:not(#_) [style*=";color:#745b31"],
html.theme-dark:not(#_) [style*=";color: #745b31"],
html.theme-dark:not(#_) [style*="; color:#745b31"],
html.theme-dark:not(#_) [style*="; color: #745b31"],
html.theme-dark:not(#_) [style*=" color:#745b31"],
html.theme-dark:not(#_) [style*=" color: #745b31"] { color: #e0c078 !important; }
html.theme-dark:not(#_) [style^="color:#5c432e"],
html.theme-dark:not(#_) [style^="color: #5c432e"],
html.theme-dark:not(#_) [style*=";color:#5c432e"],
html.theme-dark:not(#_) [style*=";color: #5c432e"],
html.theme-dark:not(#_) [style*="; color:#5c432e"],
html.theme-dark:not(#_) [style*="; color: #5c432e"],
html.theme-dark:not(#_) [style*=" color:#5c432e"],
html.theme-dark:not(#_) [style*=" color: #5c432e"],
html.theme-dark:not(#_) [style^="color:#6d4e35"],
html.theme-dark:not(#_) [style^="color: #6d4e35"],
html.theme-dark:not(#_) [style*=";color:#6d4e35"],
html.theme-dark:not(#_) [style*=";color: #6d4e35"],
html.theme-dark:not(#_) [style*="; color:#6d4e35"],
html.theme-dark:not(#_) [style*="; color: #6d4e35"],
html.theme-dark:not(#_) [style*=" color:#6d4e35"],
html.theme-dark:not(#_) [style*=" color: #6d4e35"],
html.theme-dark:not(#_) [style^="color:#745339"],
html.theme-dark:not(#_) [style^="color: #745339"],
html.theme-dark:not(#_) [style*=";color:#745339"],
html.theme-dark:not(#_) [style*=";color: #745339"],
html.theme-dark:not(#_) [style*="; color:#745339"],
html.theme-dark:not(#_) [style*="; color: #745339"],
html.theme-dark:not(#_) [style*=" color:#745339"],
html.theme-dark:not(#_) [style*=" color: #745339"],
html.theme-dark:not(#_) [style^="color:#75543a"],
html.theme-dark:not(#_) [style^="color: #75543a"],
html.theme-dark:not(#_) [style*=";color:#75543a"],
html.theme-dark:not(#_) [style*=";color: #75543a"],
html.theme-dark:not(#_) [style*="; color:#75543a"],
html.theme-dark:not(#_) [style*="; color: #75543a"],
html.theme-dark:not(#_) [style*=" color:#75543a"],
html.theme-dark:not(#_) [style*=" color: #75543a"],
html.theme-dark:not(#_) [style^="color:#76553a"],
html.theme-dark:not(#_) [style^="color: #76553a"],
html.theme-dark:not(#_) [style*=";color:#76553a"],
html.theme-dark:not(#_) [style*=";color: #76553a"],
html.theme-dark:not(#_) [style*="; color:#76553a"],
html.theme-dark:not(#_) [style*="; color: #76553a"],
html.theme-dark:not(#_) [style*=" color:#76553a"],
html.theme-dark:not(#_) [style*=" color: #76553a"],
html.theme-dark:not(#_) [style^="color:#7c5d43"],
html.theme-dark:not(#_) [style^="color: #7c5d43"],
html.theme-dark:not(#_) [style*=";color:#7c5d43"],
html.theme-dark:not(#_) [style*=";color: #7c5d43"],
html.theme-dark:not(#_) [style*="; color:#7c5d43"],
html.theme-dark:not(#_) [style*="; color: #7c5d43"],
html.theme-dark:not(#_) [style*=" color:#7c5d43"],
html.theme-dark:not(#_) [style*=" color: #7c5d43"] { color: #d2b08e !important; }
html.theme-dark:not(#_) :is(.g.g-pr, .g.g-pb, .g.g-c, .g.g-k) { color: #a9c1e0 !important; border-color: #6083b0 !important; }
html.theme-dark:not(#_) :is(.g.g-cf, .g.g-x, .role.battery, .accent-surname) { color: #d2b08e !important; }
html.theme-dark:not(#_) .g.g-h { color: #e0c078 !important; }
html.theme-dark:not(#_) [style*="background:#f6ebd2"]:is(tr, td, th) { background: #22324a !important; }
html.theme-dark:not(#_) .ge-tile .icon { color: #a9c1e0 !important; }
/* map ground: OpenStreetMap tiles, quieted so the pins and labels lead */
html:not(#_) .leaflet-tile:not(#_) { filter: saturate(0.55) sepia(0.16) brightness(1.03) !important; }
html.theme-dark:not(#_) .leaflet-tile:not(#_) { filter: saturate(0.45) brightness(0.72) contrast(1.05) !important; }

/* ==== FOOTER Nov15 ==== section 21: the footer redrawn (Jed, 15 Nov: "seems like it needs a redesign").
   Same parts in English and German; the order is set here so both read alike. */
html:not(#_):not(#__) .site-foot-shared {
  display: flex; flex-direction: column; position: relative;
  margin-top: 4.5rem; padding: 3rem max(16px, 1.5rem) 1.6rem !important;
  background: #1c2a3f; color: #d9d2c0;
  border-top: 3px double #d8b366 !important;
  font-size: 0.92rem; line-height: 1.6;
}
html.theme-dark:not(#_):not(#__) .site-foot-shared { background: #0f1722; }
html:not(#_):not(#__) .site-foot-shared::before {
  content: "\25C6"; position: absolute; top: -0.78rem; left: 50%; transform: translateX(-50%);
  width: 2.4rem; text-align: center; font-size: 0.8rem; line-height: 1.4rem; color: #d8b366; background: inherit;
}
html:not(#_):not(#__) .site-foot-shared > * { width: 100%; max-width: 1100px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
html:not(#_):not(#__) .site-foot-shared .foot-inner { order: 1; display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 2rem 2.4rem; align-items: start; }
html:not(#_):not(#__) .site-foot-shared .foot-inner > div { min-width: 0; }
html:not(#_):not(#__) .site-foot-shared .foot-name,
html:not(#_):not(#__) .site-foot-shared .foot-blurb > strong:first-child {
  font-family: 'Playfair Display', 'Source Serif 4', Georgia, serif; font-size: 1.3rem; font-weight: 700; line-height: 1.25;
  color: #f6f1e7; margin: 0 0 0.7rem; padding-bottom: 0.7rem; letter-spacing: 0.01em;
  background: linear-gradient(#d8b366, #d8b366) left bottom / 3.2rem 2px no-repeat;
}
html:not(#_):not(#__) .site-foot-shared .foot-blurb > strong:first-child { display: block; }
html:not(#_):not(#__) .site-foot-shared .foot-name a:not(#_) { color: #f6f1e7 !important; }
html:not(#_):not(#__) .site-foot-shared .foot-blurb { margin: 0; color: #d9d2c0; max-width: 34rem; }
html:not(#_):not(#__) .site-foot-shared .foot-by,
html:not(#_):not(#__) .site-foot-shared .foot-blurb + p { margin: 0.8rem 0 0 !important; font-size: 0.86rem; color: #b9b3a3; }
html:not(#_):not(#__) .site-foot-shared .foot-group-label { font-size: 0.74rem; letter-spacing: 0.16em !important; color: #d8b366; margin: 0.35rem 0 0.7rem; }
html:not(#_):not(#__) .site-foot-shared li { margin: 0; }
html:not(#_):not(#__) .site-foot-shared .foot-inner li a { display: inline-block; padding: 0.22rem 0; }

/* citation: a quiet line that opens, not a box */
html:not(#_):not(#__) .site-foot-shared .cite-widget {
  order: 2; margin-top: 2.2rem; padding: 0.9rem 0 0; background: none; border: 0;
  border-top: 1px solid rgba(216, 179, 102, 0.28); font-size: 0.86rem;
}
html:not(#_):not(#__) .site-foot-shared .cite-widget summary { display: inline-flex; color: #e8cd8a; padding: 0.2rem 0; }
html:not(#_):not(#__) .site-foot-shared .cite-widget summary strong { font-weight: 600; }
html:not(#_):not(#__) .site-foot-shared .cite-widget summary:not(#_) { padding-left: 0 !important; align-items: baseline; gap: 0.45rem; }
html:not(#_):not(#__) .site-foot-shared .cite-widget summary:not(#_)::before {
  content: "\25B8" !important; position: static !important; display: inline-block; width: auto !important; height: auto !important; margin: 0 !important;
  border: 0 !important; background: none !important; font-size: 0.8rem !important; line-height: 1 !important; color: #d8b366 !important; transform: none; transition: transform 0.15s;
}
html:not(#_):not(#__) .site-foot-shared .cite-widget[open] summary:not(#_)::before { transform: rotate(90deg) !important; }
html:not(#_):not(#__) .site-foot-shared .cite-widget .cite-icon { display: none; }
html:not(#_):not(#__) .site-foot-shared .cite-widget .cite-hint { font-style: normal; color: #b9b3a3; font-size: 0.82rem; }
html:not(#_):not(#__) .site-foot-shared .cite-widget .cite-body { border-top: 0; margin-top: 0.4rem; padding-top: 0.2rem; }

html:not(#_):not(#__) .site-foot-shared .foot-meta {
  order: 3; margin-top: 0.7rem; padding-top: 0; border-top: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem;
  justify-content: flex-start; font-size: 0.8rem; color: #b9b3a3;
}
html:not(#_):not(#__) .site-foot-shared .foot-meta .foot-updated { margin: 0; font-size: inherit; letter-spacing: 0; color: #b9b3a3; width: 100%; }
html:not(#_):not(#__) .site-foot-shared .foot-meta .foot-updated time { color: #d9d2c0; }
html:not(#_):not(#__) .site-foot-shared .foot-meta > span:last-child { margin-left: auto; }
html:not(#_):not(#__) .site-foot-shared .foot-credit { order: 4; margin-top: 0.5rem; font-size: 0.78rem; color: #a7a294; opacity: 1; }

@media (max-width: 860px) {
  html:not(#_):not(#__) .site-foot-shared .foot-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html:not(#_):not(#__) .site-foot-shared .foot-inner > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  html:not(#_):not(#__) .site-foot-shared { padding-top: 2.4rem !important; }
  html:not(#_):not(#__) .site-foot-shared .foot-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.2rem; }
  html:not(#_):not(#__) .site-foot-shared .foot-inner li a { padding: 0.4rem 0; }
  html:not(#_):not(#__) .site-foot-shared .foot-meta > span:last-child { margin-left: 0; }
}
@media print { html:not(#_):not(#__) .site-foot-shared::before { display: none; } }

/* ---- section 22: the header bar and its menus redrawn (Jed, 15 Nov: "and the header as well", "and the menu").
   The site name is the way home; the search box sits in the bar; each menu is one panel of headed columns. */
html:not(#_):not(#__) .site-nav-shared { font-family: 'Source Serif 4', Georgia, serif; align-items: stretch; box-shadow: 0 1px 0 rgba(0,0,0,0.2); }
html:not(#_):not(#__) .site-nav-shared .nav-crest { gap: 0.65rem; text-decoration: none; border: 0; }
html:not(#_):not(#__) .site-nav-shared .nav-name { font-family: 'Playfair Display', 'Source Serif 4', Georgia, serif; font-size: 1.08rem; font-weight: 700; letter-spacing: 0.01em; color: #f6f1e7; white-space: nowrap; }
html:not(#_):not(#__) .site-nav-shared .nav-crest:is(:hover, :focus-visible) .nav-name { color: #e8cd8a; }
html:not(#_):not(#__) .site-nav-shared .group-btn { font-size: 0.97rem; font-weight: 600; letter-spacing: 0.02em; color: #d9d2c0; }
html:not(#_):not(#__) .site-nav-shared .group-btn:hover { background: none; color: #fff; }
html:not(#_):not(#__) .site-nav-shared .group-btn[aria-expanded="true"] { background: none; color: #fff; border-bottom-color: #d8b366; }
html:not(#_):not(#__) .site-nav-shared .group-menu a { font-size: 0.95rem; line-height: 1.35; white-space: normal; border-left: 0; border-radius: 4px; color: #d9d2c0; }
html:not(#_):not(#__) .site-nav-shared .group-menu a strong { color: #e8cd8a; font-weight: 600; }
html:not(#_):not(#__) .site-nav-shared .group-menu a:is(:hover, :focus-visible) { background: rgba(216, 179, 102, 0.14); color: #fff; }
html:not(#_):not(#__) .site-nav-shared .group-menu .menu-label { font-size: 0.72rem; letter-spacing: 0.16em; color: #d8b366; }

@media (min-width: 769px) {
  html:not(#_):not(#__) .site-nav-shared { justify-content: flex-start; flex-wrap: nowrap; padding: 0 276px 0 1.25rem; }
  html:not(#_):not(#__) .site-nav-shared .nav-crest { margin-right: auto; padding: 0 1rem 0 0; }
  html:not(#_):not(#__) .site-nav-shared .tab-group { position: static; }
  html:not(#_):not(#__) .site-nav-shared .group-btn { padding: 1.02rem 1.15rem 0.9rem; }
  html:not(#_):not(#__) .site-nav-shared .group-menu:not([hidden]) {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 1.5rem;
    left: 0; right: 0; margin: 0 auto; width: min(1080px, calc(100vw - 2rem)); min-width: 0; box-sizing: border-box;
    padding: 1.3rem 1.4rem 1.5rem; border: 1px solid rgba(216, 179, 102, 0.55); border-top: 0; border-radius: 0 0 8px 8px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  }
  html:not(#_):not(#__) .site-nav-shared .tab-group[data-group="story"] .group-menu:not([hidden]) { width: min(860px, calc(100vw - 2rem)); }
  html:not(#_):not(#__) .site-nav-shared .menu-col > .menu-label { margin: 0 0 0.45rem; padding: 0 0.55rem 0.5rem; border-top: 0; border-bottom: 1px solid rgba(216, 179, 102, 0.3); }
  html:not(#_):not(#__) .site-nav-shared .menu-col > a { padding: 0.4rem 0.55rem; }
  /* the search box sits in the bar, at the right */
  html:not(#_):not(#__) body:not(.home) .cknz-q { top: 0.52rem; right: 1rem; z-index: 1120; max-width: 250px; }
  html:not(#_):not(#__) body:not(.home) .cknz-q input { padding-top: 0.45rem; padding-bottom: 0.45rem; box-shadow: none; border-color: rgba(216, 179, 102, 0.6); }
}
@media (min-width: 769px) and (max-width: 980px) {
  html:not(#_):not(#__) .site-nav-shared .nav-name { display: none; }
  html:not(#_):not(#__) .site-nav-shared .group-btn { padding-left: 0.8rem; padding-right: 0.8rem; }
}
@media (max-width: 768px) {
  /* phones and small tablets: the two menus share the bar, the search button sits at its right end */
  html:not(#_):not(#__) .site-nav-shared { padding-right: 3.2rem; flex-wrap: nowrap; }
  html:not(#_):not(#__) .site-nav-shared .nav-name { display: none; }
  html:not(#_):not(#__) .site-nav-shared .tab-group { position: static; flex: 1 1 0; min-width: 0; }
  html:not(#_):not(#__) .site-nav-shared .group-btn { width: 100%; min-height: 46px; padding: 0.55rem 0.4rem; font-size: 0.9rem; white-space: normal; line-height: 1.2; }
  html:not(#_):not(#__) .site-nav-shared .group-btn::after { display: none; }
  html:not(#_):not(#__) .site-nav-shared .group-menu { left: 0; right: 0; width: 100%; min-width: 0; box-sizing: border-box; border-left: 0; border-right: 0; padding: 0.3rem 0.5rem 1rem; max-height: calc(100vh - 3.2rem); max-height: calc(100dvh - 3.2rem); }
  html:not(#_):not(#__) .site-nav-shared .group-menu a { padding: 0.7rem 0.6rem; font-size: 1rem; }
  html:not(#_):not(#__) .site-nav-shared .menu-col:first-child > .menu-label { border-top: 0; }
  html:not(#_):not(#__) body:not(.home) .cknz-q { top: 3px; right: 6px; z-index: 1120; }
  html:not(#_):not(#__) body:not(.home) .cknz-q .cknz-toggle { width: 40px; height: 40px; box-shadow: none; }
}

/* ---- section 22b (after the audit of 15 Nov): home link on phones, room for the Light/Dark button,
   the German pages' EN/DE switch, and headings that stop below the sticky bar ---- */
html:not(#_) :target, html:not(#_) :is(section, article, details, h2, h3, h4, li, tr, p, div)[id] { scroll-margin-top: 4.6rem; }
@media (max-width: 768px) {
  html:not(#_):not(#__) .site-nav-shared .nav-crest { display: flex !important; flex: 0 0 auto; align-items: center; padding: 0 0.1rem 0 0.55rem; }
  html:not(#_):not(#__) .site-nav-shared .nav-crest img { height: 26px; width: auto; }
  html:not(#_):not(#__) .site-nav-shared .group-menu { padding-bottom: 4.8rem; }
  html:not(#_):not(#__) .site-nav-shared.nav-has-lang { padding-right: 7.2rem; }
  html:not(#_):not(#__) body:not(.home):has(.nav-has-lang) .cknz-q { top: 3.5rem; right: 0.55rem; }
}
@media (min-width: 769px) {
  html:not(#_):not(#__) body:has(.cknz-q) .site-nav-shared.nav-has-lang { padding-right: calc(276px + 8.2rem); }
  html:not(#_):not(#__) body:not(.home):has(.nav-has-lang) .cknz-q { right: 8.8rem; }
}

/* ==== MENU Nov15 ==== section 23: the shorter menu (22 links) takes narrower panels, hung below their buttons */
@media (min-width: 769px) {
  html:not(#_):not(#__) .site-nav-shared .group-menu:not([hidden]) { left: auto; right: 1rem; margin: 0; }
  html:not(#_):not(#__) .site-nav-shared .tab-group[data-group="research"] .group-menu:not([hidden]) { width: min(820px, calc(100vw - 2rem)); }
  html:not(#_):not(#__) .site-nav-shared .tab-group[data-group="story"] .group-menu:not([hidden]) { width: min(580px, calc(100vw - 2rem)); right: max(1rem, min(276px, calc(100vw - 580px - 1rem))); }
}

/* ==== ADDON39 Nov17 ==== section 24: the German notice band (.de-lag-note, written by assets/site-nav.de.html)
   under the menu bar of the German pages. Faults found by the before/after pictures of NAVDE39. */
/* 24.1 The band lies above a page header whose ground reaches up under the menu bar (de/abstract.html). */
html:not(#_) .de-lag-note { position: relative; z-index: 2; }
/* 24.2 Light theme: the band is paper there, so its link takes the link color of paper, not the gold of the navy strips. */
html:not(#_):not(.theme-dark) .de-lag-note a:not(#_):not(#_) { color: var(--link, #24497a) !important; text-decoration-color: rgba(36, 73, 122, 0.45); }
html:not(#_):not(.theme-dark) .de-lag-note a:not(#_):not(#_):hover { color: var(--link-hover, #16345c) !important; }
/* 24.3 Phones: on a page with the language switch the search button sits under the menu bar at the right (section 22b),
   where the band's first line ended. The band keeps clear of it on both sides. */
@media (max-width: 768px) {
  html:not(#_):not(#__) body:has(.nav-has-lang):has(.cknz-q) .de-lag-note { padding-left: 3.5rem !important; padding-right: 3.5rem !important; }
}
/* ---- section 25: a page built with the page kit whose head stands inside <main> (the pages of the website ideas).
   assets/start-page.css takes the browser's margin off a kit page with "body:has(> .stx-hero)", which does not reach
   these. No margin around the page and no strip between the menu bar and the head, as on the kit's own pages. */
body:has(> main.stx-main > .stx-hero) { margin: 0; }
body:has(> main.stx-main > .stx-hero) > main.stx-main { padding-top: 0; }
/* ---- section 26: the round theme button (assets/theme-toggle.js: fixed, 14px from the foot of the screen on the right)
   lay on the Next button of the step bar of walk-his-streets.html (.wlk-step), which sticks to the foot of the screen.
   Where that bar is shown and the screen is not wider than 1320px, the theme button stands above the bar. On a wider
   screen the two do not meet. */
@media (max-width: 1320px) {
  html:not(#_) body:has(.wlk-step:not([hidden])) .theme-toggle-fab { bottom: calc(4.3rem + env(safe-area-inset-bottom, 0px)); }
}
/* ==== end ADDON39 Nov17 ==== */

/* ==== READ39 Nov17 ==== section 27: the reading page (read/index.html), and section 28: the cover scenes behind
   the header band. Jed, 17 Nov: the Part buttons "appear too dark"; the background "appears mirrored on the left
   and right". */
@media screen {
/* 27.1 The row of Part buttons. The rules above that give every link of a list the link color of running text
   (with !important) had taken the place of the buttons' own colors from assets/read-index.css: dark blue on the navy
   band in the light theme, and gold on the gold of the current button in the dark theme. The row takes its own colors
   back, the same as the row of the page kit (assets/start-page.css, .stx-pills). */
html:not(#_) nav.rx-pills:not(#_) a:not(#_) { color: #f6f1e7 !important; }
html:not(#_) nav.rx-pills:not(#_) a[aria-current="true"]:not(#_) { color: #141f30 !important; }
/* 27.2 The band follows the title page without a strip of the page between them. */
html:not(#_) body:not(.home) header.rx-hero:not(#_) { margin-bottom: 0 !important; }
/* 27.3 "Start reading" keeps its dark letters on gold in the dark theme too (they were gold on gold there). */
html:not(#_) header.rx-hero:not(#_) a.rx-btn-gold:not(#_) { color: #141f30 !important; }
/* 27.4 Found by the measurement of this page, light theme and dark: the chapter numbers and three thin outlines stood below
   the floor (4.5:1 for text, 3:1 for a line) on the page's ground. Each takes the nearest color of the page that clears it. */
html:not(#_):not(.theme-dark) .rx-main .rx-num { color: #8a6420; }
html:not(#_):not(.theme-dark) .rx-main .rx-tag-full { border-color: #94783c; }
html:not(#_):not(.theme-dark) .rx-main .rx-tag-sum { border-color: #94866c; }
html:not(#_):not(.theme-dark) .rx-main .rx-ref a { border-color: #94783c; }
html.theme-dark:not(#_) .rx-main .rx-tag-sum { border-color: rgba(200, 184, 150, 0.6); }
/* 28 The two scenes of the book's cover stay on the opening pages, where there is room to see them. On the header
   band of every other page they were cut to a strip of roofs, faint on the left and on the right of the title. The
   band is plain there. */
html:not(#_) body:not(.home) header:is([class*="-hero"], .cinema-section-hero):not(#_)::after,
html:not(#_) body:not(.home) .fc-hero:not(#_)::after { background-image: none; -webkit-mask-image: none; mask-image: none; }
}
/* ==== end READ39 Nov17 ==== */

/* ==== CHIPBAR40 Nov18 ==== section 29: the row of section buttons under a page header (nav.stx-pills of the page
   kit, nav.rx-pills of the reading page). Jed, 18 Nov, of "The People in His Life": "The buttons are cut off on both
   sides". */
@media screen {
/* 29.1 The row was a strip of fixed width (64rem; 60rem on the reading page; 76rem on a chapter) that slid sideways,
   with its buttons set in the middle. Six buttons are wider than the strip, so the first and the last stood half
   outside it, and the first could not be reached by sliding. On a wide screen the row now takes the width of the
   window and goes on to a second line when one line cannot hold it: every button shows in full. */
html:not(#_) nav:is(.stx-pills, .rx-pills):not(#_) ul:not(#_) { max-width: none; flex-wrap: wrap; justify-content: center; overflow-x: visible; row-gap: 0.45rem; }
/* 29.2 On a small screen the row stays one line that slides. It starts at its first button and ends at its last, with
   the same space before and after (the two empty ends take the place of the side padding, which a sliding row does
   not keep at its far end in every browser). A row that fits stays in the middle. */
@media (max-width: 860px) {
  html:not(#_) nav:is(.stx-pills, .rx-pills):not(#_) ul:not(#_) { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-left: 0; padding-right: 0; }
  html:not(#_) nav:is(.stx-pills, .rx-pills):not(#_) ul:not(#_)::before,
  html:not(#_) nav:is(.stx-pills, .rx-pills):not(#_) ul:not(#_)::after { content: ""; flex: 0 0 0.45rem; }
  html:not(#_) nav:is(.stx-pills, .rx-pills):not(#_) li:first-child { margin-left: auto; }
  html:not(#_) nav:is(.stx-pills, .rx-pills):not(#_) li:last-child { margin-right: auto; }
}
/* 29.3 A jump to a part of the page (a button of the row, a note's number, a link from another page) ends below the
   site menu and the row. Until now it ended 4.6rem down on every page (the rule for all pages above): below the menu,
   but behind the row. A section of the page kit (.stx-sec) and a Part of the reading page (.rx-part) begin with
   2.5rem of air, so their headings stood clear; on a chapter the heading that was asked for lay under the buttons.
   Every other target now ends below the row. Where the row can run to two lines (a window of middle width, or a row
   that stands inside the page's column) the jump leaves room for both lines. */
html:not(#_):not(#__) body:has(nav.stx-pills) [id]:not(.stx-sec, nav, header) { scroll-margin-top: calc(var(--stx-navh, 3.5rem) + 4.4rem); }
@media (min-width: 861px) and (max-width: 1240px) {
  html:not(#_):not(#__) body:has(nav.stx-pills) [id]:not(.stx-sec, nav, header) { scroll-margin-top: calc(var(--stx-navh, 3.5rem) + 7.15rem); }
  html:not(#_):not(#__) body:has(nav.stx-pills) .stx-sec[id] { scroll-margin-top: calc(var(--stx-navh, 3.5rem) + 5.5rem); }
}
@media (min-width: 861px) {
  html:not(#_):not(#__) body:has(main nav.stx-pills) [id]:not(.stx-sec, nav, header) { scroll-margin-top: calc(var(--stx-navh, 3.5rem) + 7.15rem); }
  html:not(#_):not(#__) body:has(main nav.stx-pills) .stx-sec[id] { scroll-margin-top: calc(var(--stx-navh, 3.5rem) + 5.5rem); }
}
}
/* ==== end CHIPBAR40 Nov18 ==== */

/* ==== MENU40 Nov18 ==== section 30: three menus in the bar (The story, The search, For researchers; assets/site-nav.html).
   Jed, 18 Nov: the idea pages were in no menu. Rests on sections 22, 22b and 23 above. */
@media screen {
/* 30.1 one panel, one width and one place for all three menus, so that the panel stays put from one menu to the next */
@media (min-width: 769px) {
  html:not(#_):not(#__) .site-nav-shared .tab-group:is([data-group="story"], [data-group="search"], [data-group="research"]) .group-menu:not([hidden]) { width: min(820px, calc(100vw - 2rem)); left: auto; right: 1rem; }
  html:not(#_):not(#__) .site-nav-shared:has([data-group="search"]) .group-btn { padding-left: 0.95rem; padding-right: 0.95rem; }
}
/* 30.2 three buttons beside the site name and the search box: the name gives way first, as it did below 981px */
@media (min-width: 769px) and (max-width: 1120px) {
  html:not(#_):not(#__) .site-nav-shared:has([data-group="search"]) .nav-name { display: none; }
}
@media (min-width: 769px) and (max-width: 1280px) {
  html:not(#_):not(#__) .site-nav-shared.nav-has-lang:has([data-group="search"]) .nav-name { display: none; }
}
@media (min-width: 769px) and (max-width: 900px) {
  html:not(#_):not(#__) .site-nav-shared:has([data-group="search"]) .group-btn { padding-left: 0.6rem; padding-right: 0.6rem; font-size: 0.93rem; }
  html:not(#_):not(#__) .site-nav-shared:has([data-group="search"]) .group-btn::after { margin-left: 0.2rem; }
}
/* 30.3 phones: three buttons share the bar; the longest label may take two lines and none is cut */
@media (max-width: 768px) {
  html:not(#_):not(#__) .site-nav-shared:has([data-group="search"]) .group-btn { padding-left: 0.2rem; padding-right: 0.2rem; overflow-wrap: normal; word-break: normal; hyphens: none; }
}
@media (max-width: 430px) {
  html:not(#_):not(#__) .site-nav-shared:has([data-group="search"]) .group-btn { font-size: 0.84rem; letter-spacing: 0; }
}
@media (max-width: 340px) {
  /* the narrowest phones, on a page that also carries the EN/DE switch: a long word may break sooner than be cut */
  html:not(#_):not(#__) .site-nav-shared.nav-has-lang:has([data-group="search"]) .group-btn { overflow-wrap: anywhere; hyphens: auto; }
}
}
/* ==== end MENU40 Nov18 ==== */
