/* Shared mobile navigation only; no page-body or desktop presentation rules. */
@media (max-width: 720px) {
  header.mobile-header:is(.site-header, .edit-header) {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 64px;
    margin: 0;
    padding: .35rem .75rem;
    gap: .25rem;
    overflow: visible;
  }
  .mobile-header:is(.site-header, .edit-header) > .wordmark {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 44px;
    gap: .2rem;
    font-size: .875rem;
    white-space: nowrap;
  }
  .mobile-header:is(.site-header, .edit-header) > .wordmark small { display: none; }
  .mobile-header:is(.site-header, .edit-header) .wordmark-leaf { width: 1.1rem; height: 1.25rem; }
  .mobile-header:is(.site-header, .edit-header) > .mobile-header-nav {
    position: static;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    gap: .2rem;
    order: initial;
    overflow: visible;
    white-space: nowrap;
  }
  .mobile-header:is(.site-header, .edit-header) > .mobile-header-nav > a {
    position: static;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    padding: .3rem .35rem;
    font-size: .75rem;
    line-height: 1.25;
  }
  .mobile-header:is(.site-header, .edit-header) > .mobile-header-nav > .mobile-header-language {
    position: static;
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: .25rem;
    border: 1px solid var(--line, #d8d6ce);
    border-radius: .6rem;
    background: var(--surface, #fcfbf7);
    font-size: .75rem;
    font-weight: 650;
  }
  .mobile-header:is(.site-header, .edit-header) > .mobile-header-nav > .mobile-header-saved {
    position: relative;
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: .25rem;
    border: 0;
    background: transparent;
    font-size: 1.15rem;
  }
  .mobile-header:is(.site-header, .edit-header) .saved-button > span:first-child { display: inline-flex; }
  .mobile-header .saved-button > span:nth-child(2) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .mobile-header .saved-button .count-badge,
  .mobile-header .edit-finds #edit-find-count {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    min-width: 1rem;
    height: 1rem;
    margin: 0;
    padding: 0 .15rem;
    font-size: .625rem;
    line-height: 1rem;
  }
  .mobile-header:is(.site-header, .edit-header) > .mobile-header-nav > .edit-finds { font-size: 0; }
  .mobile-header .edit-finds .edit-icon { width: 20px; height: 20px; }
  .mobile-header .mobile-header-menu { position: relative; display: block; flex: 0 0 auto; }
  .mobile-header .mobile-header-menu > summary {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: .3rem .4rem;
    border: 1px solid var(--line, #d8d6ce);
    border-radius: .6rem;
    background: var(--surface, #fcfbf7);
    color: var(--ink, #181a17);
    font: 600 .75rem/1.25 var(--sans, sans-serif);
    cursor: pointer;
    list-style: none;
  }
  .mobile-header .mobile-header-menu > summary::-webkit-details-marker { display: none; }
  .mobile-header .mobile-header-panel {
    box-sizing: border-box;
    position: absolute;
    display: grid;
    top: calc(100% + .4rem);
    left: auto;
    right: 0;
    z-index: 1000;
    width: max-content;
    min-width: 14rem;
    max-width: calc(100vw - 1.5rem);
    margin: 0;
    padding: .4rem;
    border: 1px solid var(--line, #d8d6ce);
    border-radius: .75rem;
    background: var(--surface, #fcfbf7);
    color: var(--ink, #181a17);
    box-shadow: 0 .5rem 1.5rem #0002;
    white-space: normal;
  }
  .mobile-header .mobile-header-menu:not([open]) > .mobile-header-panel { display: none; }
  .mobile-header .mobile-header-panel > :is(a, button) {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: .5rem .6rem;
    border-radius: .4rem;
    color: inherit;
    font-size: .875rem;
    line-height: 1.4;
    white-space: normal;
    text-align: left;
  }
  .mobile-header .mobile-header-panel > .mobile-header-duplicate { display: none !important; }
  .mobile-header :focus-visible { outline: 3px solid var(--focus, #9c2917); outline-offset: 3px; }
}
