/* Compact sticky navigation on phones and small tablets. */
.mobile-menu-toggle { display: none; }
.mobile-menu-dialog:not([open]) { display: none; }
.mobile-menu-dialog {
  --clay: #ad5c1e;
  position: fixed; inset: 0; width: 100%; max-width: none;
  height: 100dvh; max-height: none; margin: 0; padding: 0;
  border: 0; background: var(--paper); color: var(--ink);
  overflow: auto; overscroll-behavior: contain;
  font-family: var(--interface); font-weight: 400;
}
.mobile-menu-dialog::backdrop { background: rgb(54 42 36 / .2); }
.mobile-menu-top {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; justify-items: center; gap: .75rem;
  min-height: 88px; padding: .65rem clamp(1rem, 4vw, 2rem);
  position: sticky; top: 0; z-index: 1; background: var(--paper);
  border-bottom: 1px solid #6e524426;
}
.mobile-menu-top .brand { grid-column: 2; grid-row: 1; }
.mobile-menu-toggle, .mobile-menu-close {
  appearance: none; border: 0; border-radius: 0; background: transparent; color: inherit;
  align-items: center; justify-content: flex-end; gap: .55rem;
  min-width: 44px; min-height: 44px; padding: 0;
  font-family: var(--interface); font-size: .875rem; font-weight: 400; line-height: 1;
  cursor: pointer; grid-column: 3; grid-row: 1; justify-self: end;
}
.mobile-menu-close { display: inline-flex; }
.mobile-menu-content { padding: clamp(1rem, 4vw, 2rem); }
.mobile-menu-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; text-align: left; }
.mobile-menu-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 58px; padding: .8rem 0; border-bottom: 1px solid #6e524426;
  font-family: var(--interface); font-size: clamp(1.45rem, 5.5vw, 1.75rem);
  font-weight: 400; line-height: 1.3; letter-spacing: 0;
  text-align: left; text-decoration: none; font-synthesis: none;
}
.mobile-menu-nav a[aria-current="page"] { color: var(--clay); }
.mobile-menu-nav a:is(:hover, :focus-visible) { color: var(--clay); font-style: italic; text-decoration: none; }
.mobile-link-arrow { flex: 0 0 auto; font-size: 1.2rem; color: #8b705c; }
.mobile-menu-email { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; margin-top: 1.5rem; padding: .5rem 0; font-size: 1.05rem; line-height: 1.4; text-decoration: none; color: var(--clay); overflow-wrap: anywhere; }
.mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible { outline: 2px solid #ad5c1e; outline-offset: 5px; }
body.mobile-nav-open { overflow: hidden; }
@media (max-width: 900px) {
  .has-mobile-menu .masthead, .has-mobile-menu.about-page .masthead {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    min-height: 88px; gap: .75rem; padding: .65rem clamp(1rem, 4vw, 2rem);
  }
  .has-mobile-menu .masthead .nav-left, .has-mobile-menu .masthead .nav-right { display: none; }
  .has-mobile-menu .mobile-menu-toggle { display: inline-flex; }
  .has-mobile-menu .masthead > .brand { grid-column: 2; grid-row: 1; }
}
@media (min-width: 901px) { .mobile-menu-dialog[open] { display: none; } }
