/* mandamus.com — header + site menu (drawer). Loaded after the inline page styles.
   Colours come from the page's own :root variables so the drawer matches the parchment/gold theme. */
nav.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-right { display: flex; align-items: center; gap: 26px; }
.nav-inline { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-inline a { font-family: 'Josefin Sans', sans-serif; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--steel); text-decoration: none; white-space: nowrap; padding: 6px 0; transition: color 0.2s; }
.nav-inline a:hover, .nav-inline a[aria-current="page"] { color: var(--gold); }

.menu-btn { -webkit-appearance: none; appearance: none; background: none; border: 1px solid var(--border); border-radius: 2px; margin: 0; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 42px; min-width: 44px; flex: none; color: var(--steel); font-family: 'Josefin Sans', sans-serif; font-size: 0.66rem; letter-spacing: 0.15em; text-transform: uppercase; transition: color 0.2s, border-color 0.2s; }
.menu-btn:hover { color: var(--gold); border-color: var(--gold); }
.menu-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.menu-bars { position: relative; display: block; width: 20px; height: 12px; }
.menu-bars i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.22s ease, opacity 0.16s ease; }
.menu-bars i:nth-child(1) { top: 0; }
.menu-bars i:nth-child(2) { top: 50%; margin-top: -0.75px; }
.menu-bars i:nth-child(3) { bottom: 0; }
.menu-btn[aria-expanded="true"] .menu-bars i:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-bars i:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }

.menu-scrim { position: fixed; inset: 0; z-index: 150; background: rgba(20, 16, 8, 0.55); visibility: hidden; opacity: 0; transition: opacity 0.25s ease, visibility 0s linear 0.25s; }
.menu-scrim.is-open { visibility: visible; opacity: 1; transition: opacity 0.25s ease, visibility 0s; }

nav.sitemenu { display: block; height: auto; padding: 0; border-bottom: 0; will-change: auto; }
.sitemenu { position: fixed; top: 0; right: 0; bottom: 0; z-index: 160; width: min(400px, 100%); background: var(--parchment); border-left: 1px solid var(--border); box-shadow: -8px 0 32px var(--shadow); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; visibility: hidden; transform: translateX(100%); transition: transform 0.28s ease, visibility 0s linear 0.28s; }
.sitemenu.is-open { visibility: visible; transform: translateX(0); transition: transform 0.28s ease, visibility 0s; }
.sitemenu-inner { padding: 24px 28px 40px; }
.sitemenu ul { list-style: none; margin: 0; padding: 0; }
.sm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.sm-head .sm-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; color: var(--ink); letter-spacing: 0.04em; text-decoration: none; }
.sm-close { -webkit-appearance: none; appearance: none; background: none; border: 1px solid var(--border); border-radius: 2px; width: 40px; height: 40px; cursor: pointer; color: var(--steel); font-size: 1.3rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.sm-close:hover { color: var(--gold); border-color: var(--gold); }
.sm-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sm-label { font-family: 'Josefin Sans', sans-serif; font-size: 0.62rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-accessible, #8a6d2b); margin: 22px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.sm-home a { display: block; text-decoration: none; padding: 12px 0; font-family: 'Josefin Sans', sans-serif; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--steel); border-bottom: 1px solid rgba(212, 201, 176, 0.45); }
.sm-home a:hover, .sm-home a[aria-current="page"] { color: var(--gold); }
.sm-toggle { -webkit-appearance: none; appearance: none; background: none; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; text-align: left; padding: 13px 0; font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 600; line-height: 1.25; color: var(--ink); border-bottom: 1px solid rgba(212, 201, 176, 0.45); }
.sm-toggle:hover { color: var(--gold); }
.sm-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sm-chev { flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg); transition: transform 0.2s ease; }
.sm-toggle[aria-expanded="true"] .sm-chev { transform: rotate(-135deg); margin-top: 4px; }
.sm-sub { display: none; padding: 6px 0 12px; }
.sm-sub.is-open { display: block; }
.sm-sub a { display: block; text-decoration: none; padding: 9px 0 9px 14px; border-left: 1px solid var(--border); font-family: 'Josefin Sans', sans-serif; font-size: 0.78rem; letter-spacing: 0.06em; line-height: 1.45; color: var(--steel); }
.sm-sub a:hover { color: var(--gold); border-left-color: var(--gold); }
.sm-sub a[aria-current="page"] { color: var(--gold); border-left-color: var(--gold); }
.sm-sub .sm-hub { font-style: italic; }
.sm-cta { display: block; margin-top: 26px; padding: 15px 16px; background: var(--ink); color: var(--gold-light); text-decoration: none; text-align: center; font-family: 'Josefin Sans', sans-serif; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; }
.sm-cta:hover { background: var(--gold); color: #fff; }
.sm-contact { margin-top: 16px; font-family: 'Josefin Sans', sans-serif; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: center; line-height: 2; }
.sm-contact a { color: var(--steel); text-decoration: none; white-space: nowrap; }
.sm-contact a:hover { color: var(--gold); }

/* The header stays above the scrim so the hamburger can always close the drawer; the page does not scroll while it is open. */
html.menu-open { overflow: hidden; }
html.menu-open nav.site-nav { transform: none; }
html.menu-open .nav-inline, html.menu-open .wa-float { opacity: 0; pointer-events: none; transition: opacity 0.18s ease; }

@media (max-width: 1100px) { .nav-inline { display: none; } }
@media (max-width: 900px) {
  nav.site-nav { flex-direction: row; align-items: center; height: 64px; padding: 0 16px; gap: 10px; }
  .logo-icon { width: 38px; height: 38px; }
  .logo-text .main-title { font-size: 1.1rem; }
  .logo-text .sub-title { font-size: 0.52rem; }
  .menu-word { display: none; }
  .menu-btn { padding: 0; width: 44px; justify-content: center; }
  .sitemenu-inner { padding: 18px 22px 40px; }
}
@media (prefers-reduced-motion: reduce) { .sitemenu, .menu-scrim, .menu-bars i, .sm-chev { transition: none; } }
