/* Historical Publications LLC — shared site header (masthead + main nav).
   One header for every page on historicalpublicationsllc.com, approved
   September 17, 2026. Markup is inserted between the HPLLC-HEADER comment
   markers by scripts/apply_site_header.py; change the header there and here,
   never on one page.
   Every class is prefixed hp- and every property the header relies on is set
   explicitly, so page stylesheets (archive, photo archive, magazine pages)
   cannot bleed into it. */

.hp-header {
    --hph-crimson: #7D1A1A; --hph-crimson-dark: #5C1010;
    --hph-gold: #B8942A; --hph-gold-light: #D4B056;
    --hph-parchment: #F5EFE0; --hph-parchment-2: #EDE5CE;
    --hph-ink: #1A1208; --hph-ink-mid: #3D2E1C;
    --hph-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    display: block; width: 100%; align-self: stretch; flex: none;
    position: relative; z-index: 1000;
    margin: 0; padding: 0; text-align: left;
    font-family: var(--hph-serif); font-size: 16px; line-height: 1.4;
    font-style: normal; letter-spacing: normal; text-transform: none;
}
.hp-header *, .hp-header *::before, .hp-header *::after { box-sizing: border-box; }

/* MASTHEAD — white bar so the wordmark sits on white */
.hp-masthead { display: block; margin: 0; padding: 0; background: #fff; border-bottom: 1px solid var(--hph-parchment-2); }
.hp-masthead-inner { max-width: 1200px; margin: 0 auto; padding: 12px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hp-logo { display: block; margin: 0; padding: 0; line-height: 0; }
.hp-logo img { display: block; height: 40px; width: auto; max-width: 100%; margin: 0; padding: 0; border: 0; }
.hp-contact { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; font-family: var(--hph-serif); font-size: 13.76px; line-height: 1.4; }
.hp-contact a { color: var(--hph-ink-mid); text-decoration: none; font-weight: 400; transition: color .2s; }
.hp-contact a:hover { color: var(--hph-crimson); text-decoration: none; }
.hp-contact a.hp-phone { font-weight: 700; color: var(--hph-crimson); }

/* NAV — one row; related links grouped in drop-down menus */
.hp-navbar { display: block; margin: 0; padding: 0; background: var(--hph-crimson); border-bottom: 3px solid var(--hph-gold); position: relative; z-index: 20; }
.hp-navbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px; display: flex; align-items: stretch; justify-content: center; }
.hp-nav-row { display: flex; align-items: stretch; flex-wrap: nowrap; margin: 0; padding: 0; }
.hp-nav-item, .hp-nav-group > button {
    color: rgba(255,255,255,.92); text-decoration: none; font-family: var(--hph-serif); font-size: 13.76px; font-weight: 700;
    font-style: normal; line-height: 1.75; letter-spacing: .2px; text-transform: none; padding: 13px 15px; margin: 0; white-space: nowrap;
    display: flex; align-items: center; background: none; border: 0; border-radius: 0; box-shadow: none; cursor: pointer;
    min-height: 0; height: auto; width: auto; transition: background .3s cubic-bezier(.4,0,.2,1), color .3s cubic-bezier(.4,0,.2,1);
}
.hp-nav-item:hover, .hp-nav-item:focus, .hp-nav-group:hover > button, .hp-nav-group:focus-within > button, .hp-nav-group.open > button { color: #fff; background: var(--hph-crimson-dark); text-decoration: none; }
.hp-nav-item.active, .hp-nav-group > button.active { color: #fff; background: var(--hph-crimson-dark); box-shadow: inset 0 -3px 0 var(--hph-gold-light); }
.hp-nav-group { position: relative; display: flex; margin: 0; padding: 0; }
.hp-nav-group > button { line-height: normal; }
.hp-nav-group > button::after { content: ""; margin-left: 7px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.hp-nav-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; margin: 0; background: #fff; border: 1px solid var(--hph-parchment-2); border-top: 3px solid var(--hph-gold); box-shadow: 0 4px 24px rgba(26,18,8,0.12); padding: 6px 0; text-align: left; }
.hp-nav-group:hover .hp-nav-menu, .hp-nav-group:focus-within .hp-nav-menu, .hp-nav-group.open .hp-nav-menu { display: block; }
.hp-nav-menu a { display: block; margin: 0; padding: 9px 18px; color: var(--hph-ink); text-decoration: none; font-family: var(--hph-serif); font-size: 13.76px; font-weight: 400; line-height: 1.75; white-space: nowrap; background: none; }
.hp-nav-menu a:hover, .hp-nav-menu a:focus, .hp-nav-menu a.active { background: var(--hph-parchment); color: var(--hph-crimson); text-decoration: none; }
.hp-nav-item.hp-nav-cta { margin: 7px 0 7px 10px; padding: 6px 16px; border-radius: 3px; background: var(--hph-gold); color: var(--hph-ink); }
.hp-nav-item.hp-nav-cta:hover, .hp-nav-item.hp-nav-cta:focus, .hp-nav-item.hp-nav-cta.active { background: var(--hph-gold-light); color: var(--hph-ink); box-shadow: none; }
.hp-nav-toggle { display: none; }
@media (min-width: 981px) {
    .hp-nav-group.dismissed .hp-nav-menu { display: none; }
}
/* The full row needs about 1,215px. Tighten it between 981 and 1,219px so it
   never pushes the page sideways before the phone Menu button takes over. */
@media (min-width: 981px) and (max-width: 1219px) {
    .hp-navbar-inner { padding: 0 16px; }
    .hp-nav-item, .hp-nav-group > button { padding-left: 10px; padding-right: 10px; }
}
@media (min-width: 981px) and (max-width: 1099px) {
    .hp-navbar-inner { padding: 0 12px; }
    .hp-nav-item, .hp-nav-group > button { padding-left: 8px; padding-right: 8px; font-size: 12.5px; }
    .hp-nav-item.hp-nav-cta { margin-left: 6px; }
}

@media (max-width: 980px) {
    .hp-navbar-inner { padding: 0 16px; justify-content: space-between; flex-wrap: wrap; }
    .hp-nav-toggle { display: flex; align-items: center; gap: 8px; margin: 0; color: #fff; font-family: var(--hph-serif); font-weight: 700; font-size: 15.2px; line-height: normal; padding: 12px 0; background: none; border: 0; border-radius: 0; cursor: pointer; }
    .hp-nav-toggle::before { content: "\2630"; font-size: 1.2rem; }
    .hp-nav-row { display: none; width: 100%; flex-direction: column; padding-bottom: 10px; }
    .hp-navbar.open .hp-nav-row { display: flex; }
    .hp-nav-item, .hp-nav-group > button { padding: 11px 4px; border-top: 1px solid rgba(255,255,255,.12); width: 100%; text-align: left; }
    .hp-nav-group { flex-direction: column; }
    .hp-nav-menu { position: static; display: block; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 14px; min-width: 0; }
    .hp-nav-menu a { color: rgba(255,255,255,.85); padding: 7px 4px; white-space: normal; }
    .hp-nav-menu a:hover, .hp-nav-menu a:focus, .hp-nav-menu a.active { background: transparent; color: #fff; }
    .hp-nav-group > button::after { display: none; }
    .hp-nav-item.hp-nav-cta { margin: 10px 0 0; justify-content: center; }
}

@media (max-width: 640px) {
    .hp-masthead-inner { padding: 10px 16px; gap: 12px; }
    .hp-logo img { height: 28px; }
    .hp-contact a:not(.hp-phone) { display: none; }
}

@media print { .hp-navbar { display: none; } }
