@import url("fonts/cormorant-inter.css");
/* Site layout stylesheet (28 Nov 2026), from the approved site design round; the lion emblem is kept.
   Loaded last on every page, after book-look.css. Layout only: no text, no data. Palette unchanged:
   Union blue #1c2a3f, gold #d8b366, bronze #8a6420, paper #f6f1e7, card #fffaf0, cream #f6ebd2. */

/* ---- 1. Nav: emblem shield 32px, then "Charles Gannsen" ---- */
.site-nav-shared .nav-crest img { height: 32px !important; width: auto !important; }
.site-nav-shared .nav-crest .nav-name { font-size: 18px; font-weight: 600; letter-spacing: 0.01em; }

/* ---- 2. Homepage hero: portrait left; name, dates, signature, hook, buttons right; emblem 120px top right ---- */
@media (min-width: 761px) {
  body.home main.splash {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px minmax(0, 660px) 120px minmax(0, 1fr);
    column-gap: 0;
    align-items: start;
    padding-left: 24px; padding-right: 24px;
  }
  body.home main.splash > * { grid-column: 1 / -1; }
  body.home main.splash > header.mast { display: contents; }
  body.home .mast .portrait {
    grid-column: 2; grid-row: 1 / span 3; width: 240px !important; height: auto;
    margin: 0 !important; border: 3px solid #d8b366; box-sizing: border-box; align-self: start;
  }
  body.home .mast .mast-text { grid-column: 3; grid-row: 1; text-align: left; padding-left: 48px; margin: 0; }
  body.home .mast .mast-text h1 { text-align: left; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; margin: 0; }
  body.home .mast .mast-text .dates { text-align: left; font-size: 20px; letter-spacing: 0.12em; margin: 0.5rem 0 0; }
  body.home .mast .mast-text .signature { width: 320px !important; margin: 1.4rem 0 0 !important; display: block; }
  body.home .mast .mast-text .sig-note { text-align: left; font-size: 13px; margin: 0.4rem 0 0; }
  body.home .mast .mast-text .spell-turn { text-align: left; }
  body.home .mast .family-logo { grid-column: 4; grid-row: 1; width: 120px !important; height: auto; margin: 0.3rem 0 0 !important; justify-self: end; }
  body.home main.splash > p.standfirst:not(.latest) {
    grid-column: 3 / span 2; grid-row: 2; text-align: left; margin: 1.6rem 0 0; padding-left: 48px;
    max-width: 34em; font-size: 20px; line-height: 1.55;
  }
  body.home main.splash > p.hero-go {
    grid-column: 3 / span 2; grid-row: 3; justify-content: flex-start; margin: 1.6rem 0 0; padding-left: 48px;
  }
  /* the doors keep the clear space below the hero */
  body.home main.splash > .doors { margin-top: 4.5rem; }
}

/* ---- 5 and 6. Phone header and phone hero ---- */
.d54-menu-btn { display: none; }
@media (max-width: 760px) {
  .site-nav-shared { padding-left: 16px !important; padding-right: 16px !important; flex-wrap: nowrap; }
  .site-nav-shared .nav-crest { min-width: 0; }
  .site-nav-shared .nav-crest img { height: 28px !important; }
  .site-nav-shared .nav-crest .nav-name { display: inline !important; font-size: 17px; white-space: nowrap; }
  .site-nav-shared > .tab-group, .site-nav-shared > .theme-toggle-fab { display: none !important; }
  .site-nav-shared.d54-open { flex-wrap: wrap !important; height: auto !important; padding-bottom: 12px !important; }
  .site-nav-shared.d54-open > .tab-group { display: block !important; flex: 1 1 100% !important; width: 100% !important; max-width: none !important; }
  .site-nav-shared.d54-open > .tab-group .group-btn { width: 100%; text-align: left; justify-content: flex-start; min-height: 44px; }
  .site-nav-shared.d54-open > .theme-toggle-fab { display: inline-flex !important; }
  .d54-menu-btn {
    display: inline-flex; align-items: center; margin-left: auto; margin-right: 52px; min-height: 44px; padding: 0 14px;
    font: inherit; font-size: 16px; font-weight: 600; color: #f6ebd2; background: transparent;
    border: 1px solid rgba(216,179,102,0.6); border-radius: 4px; cursor: pointer;
  }
  .d54-menu-btn:focus-visible { outline: 3px solid #e8cd8a; outline-offset: 2px; }

  body.home header.mast { display: grid !important; grid-template-columns: 120px minmax(0, 1fr); column-gap: 18px; align-items: start; }
  body.home .mast .portrait { width: 120px !important; margin: 0 !important; grid-column: 1; grid-row: 1; }
  body.home .mast .mast-text { display: contents; }
  body.home .mast .mast-text h1 { grid-column: 2; grid-row: 1; align-self: start; }
  body.home .mast .mast-text .dates { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  body.home .mast .mast-text .signature, body.home .mast .mast-text .sig-note, body.home .mast .mast-text .spell-turn {
    grid-column: 1 / -1;
  }
  body.home .mast .mast-text .signature { width: 100% !important; max-width: 340px; margin: 1.2rem 0 0 !important; }
  body.home .mast .family-logo { display: none !important; }
  body.home .mast .d54-shield { height: 44px; width: auto; flex: none; }
  body.home main.splash > p.standfirst:not(.latest) { font-size: 17px; }
  body.home main.splash { display: flex; flex-direction: column; }
  body.home main.splash > p.standfirst:not(.latest) { order: 1; }
  body.home main.splash > p.hero-go { order: 2; }
  body.home main.splash > p.hero-go a.go.go-primary { flex: 1 1 100%; justify-content: center; }
  body.home main.splash > *:not(header.mast):not(.standfirst):not(.hero-go) { order: 3; }
}
@media (min-width: 761px) { body.home .mast .d54-shield { display: none; } }

/* ---- 3. Chapter page: one control bar ---- */
nav.chx-pillbar {
  position: sticky; top: 0; z-index: 50; min-height: 48px; padding-top: 4px !important; padding-bottom: 4px !important;
  background: #1c2a3f; border-bottom: 1px solid #d8b366;
  display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
}
nav.chx-pillbar > ul { display: none !important; }
nav.chx-pillbar .d54-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-right: 16px; }
nav.chx-pillbar .d54-tools button { font-family: 'Source Serif 4', Georgia, serif !important; border-radius: 999px; padding: 0 14px; }
nav.chx-pillbar .d54-tools .brx-sizer { display: inline-flex; gap: 4px; }
nav.chx-pillbar .d54-tools .brx-sizer button { background: transparent !important; color: #f6ebd2 !important; border: 1px solid rgba(216,179,102,0.6) !important; padding: 0 !important; }
nav.chx-pillbar .d54-tools .brx-sizer button[disabled] { opacity: 0.5; }
@media (max-width: 760px) {
  nav.chx-pillbar { padding-left: 16px !important; padding-right: 16px !important; }
  nav.chx-pillbar .d54-tools { margin-right: 0; width: 100%; justify-content: space-between; }
  nav.chx-pillbar { position: static; }
  nav.chx-pillbar .d54-tools .brx-notes-btn { font-size: 14px; }
  nav.chx-pillbar .d54-tools .brx-notes-btn, nav.chx-pillbar .d54-tools .brx-sizer button { min-height: 44px; }
  nav.chx-pillbar .d54-tools .brx-sizer button { min-width: 44px; }
}
nav.chx-pillbar .d54-tools button:focus-visible { outline: 3px solid #e8cd8a; outline-offset: 2px; }
nav.chx-pillbar .chx-chapwrap { border-right: 0 !important; }
nav.chx-pillbar .d54-tools .brx-notes-btn {
  font-size: 15px; min-height: 36px; background: #d8b366; color: #1c2a3f; border: 1px solid #d8b366; font-weight: 600;
}
nav.chx-pillbar .d54-tools .brx-sizer button { min-height: 36px; min-width: 36px; }
main.chx .brx-bar { justify-content: flex-start; border-bottom: 0; }
main.chx .brx-bar:empty, main.chx .brx-bar .d54-moved { display: none; }
/* "In this chapter" sits before the opening paragraph, not between it and the first quotation */
main.chx details.chx-toc.d54-toc-top { margin: 0 0 1.6rem; }

/* ---- 4 (part). Notes panel: serif, 380px ---- */
.brx-panel { width: 380px !important; max-width: 100vw; font-family: 'Source Serif 4', Georgia, serif !important; }
.brx-panel * { font-family: inherit !important; }
.brx-panel .brx-pn-n, .brx-panel .brx-note-n { border-color: #8a6420; color: #8a6420; }

/* ---- 8. Two type families: Source Serif 4 for text and headings, Cormorant Garamond small caps for kickers ---- */
.kicker, .menu-label, .foot-group-label, .hd-part {
  font-family: 'Cormorant Garamond', 'Source Serif 4', Georgia, serif !important;
  font-variant: small-caps; text-transform: lowercase; font-weight: 600; letter-spacing: 0.08em;
}
h1, h2, h3, h4, .bkn-t { font-family: 'Source Serif 4', Georgia, serif; }
