/* Shared page template for the menu pages (28 Nov 2026), from the approved site design round.
   Loaded after the site layout stylesheet. Layout only. Pages keep their own text; the companion script changes only
   the kicker's first link (menu name), title case where the title matches its menu label, and adds menu descriptions. */

:root { --d55-blue: #1c2a3f; --d55-gold: #d8b366; --d55-bronze: #8a6420; --d55-paper: #f6f1e7; --d55-card: #fffaf0; --d55-cream: #f6ebd2; --d55-line: #e2d3ac; --d55-link: #24497a; }

/* ---------- 1. Title band: at most about 200px, left-aligned to the column ---------- */
body:not(.home) header.stx-hero:not(#_),
body:not(.home) header.case-hero:not(#_),
body:not(.home) header.cinema-section-hero:not(#_) {
  background: var(--d55-blue) !important; text-align: left !important; min-height: 0 !important;
  padding: 28px 24px 24px !important; margin: 0 !important; background-image: none !important;
}
body:not(.home) header.stx-hero:not(#_) > *,
body:not(.home) header.case-hero:not(#_) > *,
body:not(.home) header.cinema-section-hero:not(#_) .csh__inner > * {
  max-width: var(--d55-col, 1080px) !important; margin-left: auto !important; margin-right: auto !important; text-align: left !important;
  padding-left: 0 !important; padding-right: 0 !important; text-indent: 0 !important; text-shadow: none !important; filter: none !important; opacity: 1 !important; transform: none !important;
}
body:not(.home) header.cinema-section-hero:not(#_) .csh__inner { max-width: none !important; padding: 0 !important; text-align: left !important; }
body:not(.home) header.stx-hero:not(#_) h1, body:not(.home) header.case-hero:not(#_) h1, body:not(.home) header.cinema-section-hero:not(#_) h1 {
  font-family: 'Source Serif 4', Georgia, serif !important; font-size: 40px !important; line-height: 1.1 !important; font-weight: 600 !important;
  color: var(--d55-cream) !important; margin-top: 6px !important; margin-bottom: 8px !important; letter-spacing: 0 !important;
}
body:not(.home) header.stx-hero:not(#_) .stx-stand, body:not(.home) header.case-hero:not(#_) .sub, body:not(.home) header.cinema-section-hero:not(#_) .csh__sub {
  font-size: 18px !important; line-height: 1.5 !important; font-style: italic !important; color: var(--d55-cream) !important;
  margin-top: 0 !important; margin-bottom: 0 !important; width: auto !important;
}
body:not(.home) header.stx-hero:not(#_) .stx-stand { max-width: min(62ch, var(--d55-col, 1080px)) !important; margin-left: max(0px, calc((100% - var(--d55-col, 1080px)) / 2)) !important; }
body:not(.home) header.stx-hero:not(#_) :is(.stx-asof, .stx-who) { color: var(--d55-cream) !important; font-style: italic !important; font-size: 16px !important; }
body:not(.home) header.stx-hero:not(#_) .stx-asof { font-size: 14px !important; color: #e8cd8a !important; margin-top: 6px !important; }
/* the gold rule and diamond go */
body:not(.home) header.stx-hero:not(#_)::before, body:not(.home) header.stx-hero:not(#_)::after,
body:not(.home) header.case-hero:not(#_)::after, body:not(.home) header.cinema-section-hero:not(#_)::after,
body:not(.home) header.case-hero:not(#_)::before, body:not(.home) header.cinema-section-hero:not(#_)::before, body:not(.home) header.cinema-section-hero:not(#_) .csh__inner::before,
body:not(.home) header:not(#_) h1::after, body:not(.home) header:not(#_) h1::before,
body:not(.home) header.stx-hero:not(#_) .stx-rule, body:not(.home) header.stx-hero:not(#_) hr { display: none !important; }

/* kicker: menu name / page, gold small caps */
body:not(.home) header:not(#_) .stx-brow, body:not(.home) header:not(#_) .crumbs, body:not(.home) header:not(#_) .csh__crumbs {
  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; letter-spacing: 0.08em !important; color: var(--d55-gold) !important; margin-top: 0 !important; margin-bottom: 0 !important;
  white-space: normal !important;
}
body:not(.home) header:not(#_) .stx-brow a, body:not(.home) header:not(#_) .crumbs a, body:not(.home) header:not(#_) .csh__crumbs a { color: var(--d55-gold) !important; -webkit-text-fill-color: var(--d55-gold) !important; text-decoration: none !important; }
body:not(.home) header:not(#_) .stx-brow > *, body:not(.home) header:not(#_) .stx-brow > span:not([class]) {
  position: static !important; width: auto !important; height: auto !important; clip-path: none !important; -webkit-text-fill-color: currentColor !important; opacity: 1 !important;
}
body:not(.home) header:not(#_) .stx-brow > span:not([class])::after { content: none !important; }
body:not(.home) header:not(#_) .stx-brow > a:not(:first-child)::before { content: none !important; }


/* ---------- 1b. Full-width band and bar, also when the page puts them inside its main column ---------- */
html body:not(.home) :is(header.stx-hero, header.case-hero, header.cinema-section-hero, nav.stx-pills, nav.case-jump):not(#_):not(#__):not(#___) {
  box-sizing: border-box !important; width: 100vw !important; max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important;
  padding-left: max(24px, calc((100vw - var(--d55-col, 1080px)) / 2)) !important; padding-right: max(24px, calc((100vw - var(--d55-col, 1080px)) / 2)) !important;
}
html body:not(.home) :is(header.stx-hero, header.case-hero, header.cinema-section-hero):not(#_) :is(h1, .stx-brow, .crumbs, .csh__crumbs, .stx-stand, .sub, .csh__sub, .stx-asof, .stx-who, p):not(#_):not(#__):not(#___) {
  max-width: 62ch !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; text-indent: 0 !important; text-align: left !important;
}
html body:not(.home) header:not(#_) h1:not(#_):not(#__):not(#___) { max-width: none !important; }
html body:not(.home) nav.stx-pills:not(#_):not(#__) ul { max-width: none !important; margin: 0 !important; }
@media (max-width: 760px) {
  html body:not(.home) :is(header.stx-hero, header.case-hero, header.cinema-section-hero, nav.stx-pills, nav.case-jump):not(#_):not(#__):not(#___) { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ---------- 2. One section-button bar ---------- */
body:not(.home) nav.stx-pills:not(#_), body:not(.home) nav.case-jump:not(#_) {
  position: sticky !important; top: 0 !important; z-index: 40 !important; background: var(--d55-blue) !important;
  border-top: 1px solid rgba(216,179,102,0.3) !important; border-bottom: 1px solid var(--d55-gold) !important;
  margin: 0 !important; padding: 7px 24px !important; box-shadow: none !important; border-radius: 0 !important; max-width: none !important; width: auto !important;
}
body:not(.home) nav.stx-pills:not(#_) ul { max-width: var(--d55-col, 1080px) !important; margin: 0 auto !important; padding: 0 !important; justify-content: flex-start !important; flex-wrap: wrap !important; gap: 8px !important; }
body:not(.home) nav.case-jump:not(#_) { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; justify-content: flex-start !important;
  padding-left: max(24px, calc((100% - var(--d55-col, 1080px)) / 2)) !important; padding-right: max(24px, calc((100% - var(--d55-col, 1080px)) / 2)) !important; }
body:not(.home) nav.stx-pills:not(#_):not(#__) a, body:not(.home) nav.case-jump:not(#_):not(#__) a {
  display: inline-flex !important; align-items: center !important; min-height: 34px !important; padding: 0 14px !important; border-radius: 17px !important;
  border: 1px solid rgba(216,179,102,0.6) !important; background: transparent !important; color: var(--d55-cream) !important; -webkit-text-fill-color: var(--d55-cream) !important;
  font-family: 'Source Serif 4', Georgia, serif !important; font-size: 15px !important; font-weight: 400 !important; text-decoration: none !important; box-shadow: none !important; white-space: nowrap !important;
}
body:not(.home) nav.stx-pills:not(#_):not(#__) a[aria-current="true"], body:not(.home) nav.case-jump:not(#_):not(#__) a[aria-current="true"] {
  background: var(--d55-gold) !important; color: var(--d55-blue) !important; -webkit-text-fill-color: var(--d55-blue) !important; font-weight: 600 !important;
}
body:not(.home) nav.stx-pills:not(#_) a:focus-visible, body:not(.home) nav.case-jump:not(#_) a:focus-visible { outline: 3px solid #e8cd8a !important; outline-offset: 2px !important; }
@media (max-width: 760px) {
  body:not(.home) nav.stx-pills:not(#_), body:not(.home) nav.case-jump:not(#_) { position: static !important; padding: 6px 16px !important; }
  body:not(.home) nav.stx-pills:not(#_) ul, body:not(.home) nav.case-jump:not(#_) { flex-wrap: nowrap !important; overflow-x: auto !important; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  body:not(.home) nav.stx-pills:not(#_):not(#__) a, body:not(.home) nav.case-jump:not(#_):not(#__) a { min-height: 44px !important; }
  body:not(.home) header.stx-hero:not(#_), body:not(.home) header.case-hero:not(#_), body:not(.home) header.cinema-section-hero:not(#_) { padding: 22px 16px 18px !important; }
  body:not(.home) header.stx-hero:not(#_) h1, body:not(.home) header.case-hero:not(#_) h1, body:not(.home) header.cinema-section-hero:not(#_) h1 { font-size: 30px !important; }
  body:not(.home) header.stx-hero:not(#_) .stx-stand, body:not(.home) header.case-hero:not(#_) .sub, body:not(.home) header.cinema-section-hero:not(#_) .csh__sub { font-size: 16px !important; }
}

/* ---------- 3. Two widths: reading 740px, wide 1080px (the companion script sets the class from the page) ---------- */
body.d55-read { --d55-col: 740px; }
body.d55-wide { --d55-col: 1080px; }
body.d55-read main.stx-main:not(#_), body.d55-read main.case:not(#_) { max-width: 740px !important; margin-left: auto !important; margin-right: auto !important; padding-left: 24px !important; padding-right: 24px !important; box-sizing: content-box !important; }
body.d55-wide main.stx-main:not(#_) { max-width: 1080px !important; margin-left: auto !important; margin-right: auto !important; padding-left: 24px !important; padding-right: 24px !important; box-sizing: content-box !important; }
@media (max-width: 760px) { body.d55-read main.stx-main:not(#_), body.d55-wide main.stx-main:not(#_), body.d55-read main.case:not(#_) { padding-left: 16px !important; padding-right: 16px !important; } }

/* ---------- 4. Section heads and cards ---------- */
body:not(.home) main:not(#_) .stx-kicker { font-family: 'Cormorant Garamond', 'Source Serif 4', Georgia, serif !important; font-variant: small-caps; text-transform: lowercase; font-weight: 600; font-size: 16px !important; letter-spacing: 0.08em; color: var(--d55-bronze) !important; }
body:not(.home) main.stx-main:not(#_) section.stx-sec > h2 { font-size: 26px !important; padding-bottom: 10px; border-bottom: 1px solid var(--d55-gold); text-align: left !important; }
body:not(.home) main.stx-main:not(#_) section.stx-sec { padding-top: 48px !important; }
body:not(.home) main:not(#_) :is(.stx-card, .ppx-card, .evx-card, .chd-card, .bfx-card, .gkx-card, .wwx-card, .pm-card) {
  background: var(--d55-card) !important; border: 1px solid var(--d55-line) !important; border-top: 3px solid var(--d55-gold) !important;
  border-radius: 6px !important; box-shadow: none !important;
}
html.theme-dark body:not(.home) main:not(#_) :is(.stx-card, .ppx-card, .evx-card, .chd-card, .bfx-card, .gkx-card, .wwx-card, .pm-card) { background: #1f2c40 !important; border-color: #3a4a63 !important; border-top-color: var(--d55-gold) !important; }

/* ---------- 5. Dropdown menus: one 720px panel, two columns, a description under each item ---------- */
@media (min-width: 761px) {
  nav.site-nav-shared .tab-group { position: relative; }
  html body nav.site-nav-shared:not(#_):not(#__) .group-menu:not([hidden]) {
    width: 720px !important; max-width: calc(100vw - 32px) !important; box-sizing: border-box; right: 0; left: auto !important;
    background: var(--d55-card) !important; border: 1px solid var(--d55-line) !important; border-top: 3px solid var(--d55-gold) !important;
    border-radius: 0 0 6px 6px !important; box-shadow: 0 12px 32px rgba(28,42,63,0.18) !important; padding: 20px 24px 0 !important;
    display: flex !important; flex-wrap: wrap !important; flex-direction: row !important; column-gap: 32px !important; row-gap: 4px !important; grid-auto-flow: row !important;
  }
  html body nav.site-nav-shared:not(#_):not(#__) .group-menu .menu-col { display: flex !important; flex-direction: column !important; flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; }
  html body nav.site-nav-shared:not(#_):not(#__) .group-menu .menu-label { color: var(--d55-bronze) !important; font-size: 17px !important; margin: 0 0 6px !important; }
  html body nav.site-nav-shared:not(#_):not(#__) .group-menu a[role="menuitem"] {
    display: block !important; padding: 8px 10px !important; min-height: 44px; box-sizing: border-box; border-left: 3px solid transparent;
    color: var(--d55-blue) !important; -webkit-text-fill-color: var(--d55-blue) !important; font-size: 17px !important; font-weight: 600 !important; text-decoration: none !important; line-height: 1.3 !important;
  }
  html body nav.site-nav-shared:not(#_):not(#__) .group-menu a[role="menuitem"] strong { font-weight: 600; }
  html body nav.site-nav-shared:not(#_):not(#__) .group-menu a[role="menuitem"]:hover, html body nav.site-nav-shared:not(#_):not(#__) .group-menu a[role="menuitem"]:focus-visible { background: var(--d55-cream) !important; border-left-color: var(--d55-gold); color: var(--d55-blue) !important; -webkit-text-fill-color: var(--d55-blue) !important; }
  html body nav.site-nav-shared:not(#_):not(#__) .group-menu .d55-desc { display: block; font-size: 14px; font-weight: 400; color: #5a5140; margin-top: 2px; }
  html body nav.site-nav-shared:not(#_):not(#__) .group-menu .d55-foot { flex: 0 0 calc(100% + 48px) !important; order: 9; margin: 12px -24px 0; padding: 12px 24px; background: var(--d55-cream); border-top: 1px solid var(--d55-line); font-size: 15px; }
  html body nav.site-nav-shared:not(#_):not(#__) .group-menu .d55-foot a { color: var(--d55-link) !important; }
}
@media (max-width: 760px) { html body nav.site-nav-shared:not(#_):not(#__) .group-menu .d55-desc, html body nav.site-nav-shared:not(#_):not(#__) .group-menu .d55-foot { display: none; } }

/* ---------- 6. Page fixes ---------- */
/* Where was Charles? and How sure are we?: the band's long text moves out of the band (companion script) */
body:not(.home) .d55-moved-stand { font-size: 17px; line-height: 1.6; max-width: 62ch; margin: 24px 0 0; color: inherit; font-style: normal; }
/* How sure are we?: the four words as a 4-column key */
@media (min-width: 900px) { body:not(.home) main.gkx-main:not(#_) .gkx-cards { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 16px !important; } }
/* The seven children: no round badge in the card corners */
body:not(.home) main:not(#_) .chd-card .chd-badge, body:not(.home) main:not(#_) .chd-card [class*="badge"] { display: none !important; }
/* Help find Charles: the stray toggle outside the nav */
body:not(.home):not(#_) > .theme-toggle-fab:not(.ttf-nav) { display: none !important; }
/* You be the clerk, Work the case, The standard: no empty space under the band */
body:not(.home) main.case:not(#_) { padding-top: 24px !important; margin-top: 0 !important; }
body:not(.home) main.case:not(#_) > :first-child { margin-top: 0 !important; }
/* What was searched: no icon medallions beside headings */
body:not(.home) main.ppg-main:not(#_) .stx-sec img[src*="medallion"], body:not(.home) main.ppg-main:not(#_) .stx-sec h2 > img, body:not(.home) main.ppg-main:not(#_) .stx-sec .stx-medal { display: none !important; }
/* About: no tinted box */
body:not(.home) main.ppg-main:not(#_) .stx-note, body:not(.home) main.ppg-main:not(#_) blockquote.stx-box { background: transparent !important; border: 0 !important; padding: 0 !important; }
/* Common questions: 52px rows with a visible +/- */
body:not(.home) main.fqx-main:not(#_) details > summary { min-height: 52px; display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
body:not(.home) main.fqx-main:not(#_) details > summary::-webkit-details-marker { display: none; }
body:not(.home) main.fqx-main:not(#_) details > summary::before { content: "+"; flex: none; width: 24px; height: 24px; border: 1px solid var(--d55-gold); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--d55-bronze); font-weight: 600; }
body:not(.home) main.fqx-main:not(#_) details[open] > summary::before { content: "\2013"; }
/* Work the case: sticky step tracker */
body:not(.home) .d55-tracker { position: sticky; top: 0; z-index: 30; background: var(--d55-blue); color: var(--d55-cream); border-bottom: 1px solid var(--d55-gold); padding: 10px max(16px, calc((100% - 740px) / 2)); font-size: 15px; color: var(--d55-cream) !important; margin: 0 0 16px !important; }
