/* Site design, all-pages follow-up (28 Nov 2026). Loaded last, after the six-items sheet. Layout only. */

/* ---------- 1. The pages that still had the old centred band (header.auto-hero, header.nr-hero) get the shared band ---------- */
html:not(#_):not(#__):not(#___):not(#____) body:not(.home) :is(header.auto-hero, header.nr-hero):not(#_):not(#__) {
  background: #1c2a3f !important; background-image: none !important; text-align: left !important; min-height: 0 !important; position: relative !important;
  box-sizing: border-box !important; width: 100vw !important; max-width: 100vw !important;
  margin: 0 calc(50% - 50vw) 32px !important;
  padding: 24px max(24px, calc((100vw - var(--d55-col, 1080px)) / 2)) 20px !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
html:not(#_):not(#__):not(#___):not(#____) body:not(.home) :is(header.auto-hero, header.nr-hero):not(#_):not(#__)::before,
html:not(#_):not(#__):not(#___):not(#____) body:not(.home) :is(header.auto-hero, header.nr-hero):not(#_):not(#__)::after,
html:not(#_):not(#__):not(#___):not(#____) body:not(.home) :is(header.auto-hero, header.nr-hero):not(#_):not(#__) h1::before,
html:not(#_):not(#__):not(#___):not(#____) body:not(.home) :is(header.auto-hero, header.nr-hero):not(#_):not(#__) h1::after { display: none !important; content: none !important; }
html:not(#_):not(#__):not(#___):not(#____) body:not(.home) :is(header.auto-hero, header.nr-hero):not(#_):not(#__) > *:not(#_):not(#__):not(#___) {
  max-width: min(100%, 84ch) !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important;
  text-align: left !important; text-indent: 0 !important; text-shadow: none !important; opacity: 1 !important;
}
html:not(#_):not(#__):not(#___):not(#____) body:not(.home) :is(header.auto-hero, header.nr-hero):not(#_):not(#__) h1:not(#_):not(#__):not(#___) {
  font-family: 'Source Serif 4', Georgia, serif !important; font-size: 40px !important; line-height: 1.1 !important; font-weight: 600 !important; font-style: normal !important;
  color: #f6ebd2 !important; -webkit-text-fill-color: #f6ebd2 !important; letter-spacing: 0 !important; max-width: none !important; margin-top: 6px !important; margin-bottom: 8px !important;
}
html:not(#_):not(#__):not(#___):not(#____) body:not(.home) :is(header.auto-hero, header.nr-hero):not(#_):not(#__) .crumbs:not(#_):not(#__):not(#___) {
  font-family: 'Cormorant Garamond', 'Source Serif 4', Georgia, serif !important; font-variant: small-caps !important; text-transform: lowercase !important;
  font-weight: 600 !important; font-size: 17px !important; line-height: 1.2 !important; letter-spacing: 0.08em !important; color: #d8b366 !important; margin-top: 0 !important; margin-bottom: 0 !important; white-space: normal !important;
}
html:not(#_):not(#__):not(#___):not(#____) body:not(.home) :is(header.auto-hero, header.nr-hero):not(#_):not(#__) .crumbs:not(#_):not(#__) :is(a, span):not(#_) {
  color: #d8b366 !important; -webkit-text-fill-color: #d8b366 !important; text-decoration: none !important; border-bottom: 0 !important; background: none !important;
}
html:not(#_):not(#__):not(#___):not(#____) body:not(.home) :is(header.auto-hero, header.nr-hero):not(#_):not(#__) .sub:not(#_):not(#__):not(#___) {
  font-size: 18px !important; line-height: 1.5 !important; font-style: italic !important; color: #f6ebd2 !important; margin-top: 0 !important; margin-bottom: 0 !important; width: auto !important;
}
html:not(#_):not(#__):not(#___):not(#____) body:not(.home) :is(header.auto-hero, header.nr-hero):not(#_):not(#__) .sub:not(#_) :is(i, em) { font-style: normal !important; }
html:not(#_):not(#__):not(#___):not(#____) body:not(.home) :is(header.auto-hero, header.nr-hero):not(#_):not(#__) .sub:not(#_) a:not(#_) { color: #e8cd8a !important; -webkit-text-fill-color: #e8cd8a !important; }
/* no paper strip between the nav and the band */
html:not(#_):not(#__) body:not(.home) :is(main, article, .page-column, header.fs-head):has(:is(header.auto-hero, header.nr-hero)):not(#_):not(#__) { padding-top: 0 !important; margin-top: 0 !important; }
/* The search in five minutes is a dark page: a gold line closes the band */
html:not(#_):not(#__):not(#___):not(#____) body:not(.home) main.fs-story header.auto-hero:not(#_):not(#__) { border-bottom: 1px solid rgba(216,179,102,0.5) !important; }
@media (max-width: 760px) {
  html:not(#_):not(#__):not(#___):not(#____) body:not(.home) :is(header.auto-hero, header.nr-hero):not(#_):not(#__) { padding: 18px 16px 14px !important; margin-bottom: 24px !important; }
  html:not(#_):not(#__):not(#___):not(#____) body:not(.home) :is(header.auto-hero, header.nr-hero):not(#_):not(#__) h1:not(#_):not(#__):not(#___) { font-size: 30px !important; }
  html:not(#_):not(#__):not(#___):not(#____) body:not(.home) :is(header.auto-hero, header.nr-hero):not(#_):not(#__) .sub:not(#_):not(#__):not(#___) { font-size: 16px !important; }
}

/* ---------- 2. Text moved out of a band by the companion script ---------- */
body:not(.home) .d57-moved { font-size: 17px; line-height: 1.6; font-style: normal; max-width: 46rem; margin: 0 auto 24px; color: inherit; box-sizing: border-box; }
body:not(.home) main:not([class]) > .d57-moved:first-child, body:not(.home) main.note-wrap > .d57-moved { margin-top: 28px; }
body:not(.home) .d57-asof { font-size: 14px; line-height: 1.5; font-style: italic; color: #5a5140; max-width: 62ch; margin: 24px 0 0; }
html.theme-dark body:not(.home) .d57-asof { color: #c8b896; }
body:not(.home) main.stx-main > .d57-asof.d57-top { margin: 20px 0 -16px; }
body:not(.home) main:not(#_) > .callout.d57-out { max-width: 46rem; margin: 28px auto 24px !important; box-sizing: border-box; }
/* the menu-page template's moved text: no double gap above, a gap below */
body:not(.home) main.stx-main:not(#_) section.stx-sec > .d55-moved-stand:first-child { margin: 0 0 28px; }

/* ---------- 3. Band details on the record pages (header.cinema-section-hero) ---------- */
/* kicker: one style, the same as the template pages */
html:not(#_):not(#__):not(#___):not(#____) body:not(.home) header.cinema-section-hero:not(#_):not(#__) .crumbs:not(#_):not(#__):not(#___) { line-height: 1.2 !important; max-width: none !important; }
/* the row of tags under the standfirst: left, on the column, one size */
html:not(#_):not(#__):not(#___) body:not(.home) header.cinema-section-hero:not(#_):not(#__) .meta-row:not(#_):not(#__) {
  display: flex !important; flex-wrap: wrap !important; justify-content: flex-start !important; align-items: center !important; gap: 6px 8px !important;
  text-align: left !important; margin: 12px 0 0 !important; padding: 0 !important; max-width: none !important;
}
html:not(#_):not(#__):not(#___) body:not(.home) header.cinema-section-hero:not(#_):not(#__) .meta-row:not(#_) > :is(.pill, .badge):not(#_) {
  display: inline-flex !important; align-items: center !important; min-height: 24px !important; padding: 0 10px !important; margin: 0 !important;
  border: 1px solid rgba(216,179,102,0.6) !important; border-radius: 12px !important; background: transparent !important;
  color: #f6ebd2 !important; -webkit-text-fill-color: #f6ebd2 !important; font-family: 'Source Serif 4', Georgia, serif !important; font-size: 13px !important; font-weight: 400 !important;
  letter-spacing: 0.02em !important; text-transform: none !important; white-space: normal !important; box-shadow: none !important;
}
html:not(#_):not(#__):not(#___) body:not(.home) header.cinema-section-hero:not(#_):not(#__) .meta-row:not(#_) > :is(.pill.confirmed, .pill.primary, .badge):not(#_) { border-color: #d8b366 !important; color: #e8cd8a !important; -webkit-text-fill-color: #e8cd8a !important; font-weight: 600 !important; }
html:not(#_):not(#__):not(#___) body:not(.home) header.cinema-section-hero:not(#_):not(#__) .meta-row:not(#_) > .date:not(#_) { font-size: 14px !important; font-style: italic !important; color: #e8cd8a !important; margin: 0 !important; }

/* ---------- 4. Ten pages kept the browser's 8px page margin: the nav and footer stopped short of the edges ---------- */
html:not(#_) body:not(.home):not(#_) { margin: 0 !important; }
/* on those pages the picture rows ran edge to edge: give them the page gutter */
body:not(.home) main:not([class]) > .img-gallery:not(#_) { box-sizing: border-box !important; padding-left: 24px !important; padding-right: 24px !important; }
body:not(.home) main:not([class]) > .img-gallery:not(#_) img { box-sizing: border-box !important; }
@media (max-width: 760px) { body:not(.home) main:not([class]) > .img-gallery:not(#_) { padding-left: 16px !important; padding-right: 16px !important; } }

/* ---------- 5. Phones: pages with the EN/DE switch. Menu button and search sit where they sit on every other page ---------- */
@media (max-width: 760px) {
  html:not(#_):not(#__):not(#___) body nav.site-nav-shared.nav-has-lang:not(#_) { padding-right: 16px !important; }
  html:not(#_):not(#__):not(#___) body:has(.nav-has-lang) .cknz-q:not(#_) { top: 3px !important; right: 6px !important; }
}

/* ---------- 6. Page fixes ---------- */
/* How sure are we?, What was searched: no medallions beside the section heads (they sat on the opening text) */
html:not(#_):not(#__) body:not(.home) :is(main.gkx-main, main[data-built-by="build-site-pages"]):not(#_) > section.stx-sec:not(#_)::before { display: none !important; content: none !important; }
html:not(#_):not(#__) body:not(.home) :is(main.gkx-main, main[data-built-by="build-site-pages"]):not(#_) > section.stx-sec:not(#_) > :is(.stx-kicker, h2):not(#_):not(#__) { padding-left: 0 !important; }
/* How sure are we?: the four words two by two in the 740px column (four across was one word per line) */
@media (min-width: 900px) { html:not(#_) body.d55-read:not(.home) main.gkx-main:not(#_):not(#__) .gkx-cards:not(#_) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
/* Karl Ludwig Hofedietz: the status line under the band was unstyled and at the window edge */
body:not(.home) > .ttl { box-sizing: content-box; max-width: var(--d55-col, 1080px); margin: 24px auto -8px; padding: 0 24px; font-family: 'Source Serif 4', Georgia, serif; }
body:not(.home) > .ttl .pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border: 1px solid #d8b366; border-radius: 14px; background: #f6ebd2; color: #1c2a3f; font-size: 14px; font-weight: 600; }
html.theme-dark body:not(.home) > .ttl .pill { background: #1f2c40; color: #f6ebd2; }
@media (max-width: 760px) { body:not(.home) > .ttl { padding: 0 16px; margin-top: 16px; } }
/* FamilySearch IDs: one column on phones */
@media (max-width: 760px) { body:not(.home) .fs-ids:not(#_) { columns: 1 !important; } }
/* The Köster letters, page by page: paper ground in the light theme, like the two pages around it */
html:not(.theme-dark) body:not(.home):has(.kp-row):not(#_) { background: #f6f1e7 !important; color: #2a2620 !important; }
html:not(.theme-dark) body:not(.home):has(.kp-row) :is(.kp-header, .kp-meta a, .kp-legend h2):not(#_) { color: #8a6420 !important; }
html:not(.theme-dark) body:not(.home):has(.kp-row) .kp-text h4:not(#_) { color: #5a5140 !important; opacity: 1 !important; }
body:not(.home):has(.kp-row):not(#_) { font-family: 'Source Serif 4', Georgia, serif !important; }
html:not(.theme-dark) body:not(.home):has(.kp-row) .kp-legend:not(#_) { background: #fffaf0 !important; border: 1px solid #e2d3ac !important; border-top: 3px solid #d8b366 !important; border-radius: 6px !important; }
html:not(.theme-dark) body:not(.home):has(.kp-row) :is(.kp-row, .kp-note):not(#_) { border-color: #e2d3ac !important; }
html:not(.theme-dark) body:not(.home):has(.kp-row) .kp-img img:not(#_) { border-color: #e2d3ac !important; }
