/* Mobile masthead: primary navigation above a quiet preferences rail. */
.ink-header .ink-mobile-preferences { display: contents; }
.ink-header .ink-mobile-currency-label { display: none; }

@media (max-width: 1080px) {
  .ink-header {
    --mobile-header-height: 120px;
    background: var(--paper);
    box-shadow: 0 8px 24px rgba(0, 10, 20, .08);
  }
  .ink-header .ink-header-inner {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px 44px;
    grid-template-rows: 44px 44px;
    align-items: center;
    gap: 8px;
    height: var(--mobile-header-height);
    padding: 12px 14px;
  }
  .ink-header .ink-header-tools { display: contents; }
  .ink-header .ink-nav { display: none; }
  .ink-header .ink-burger {
    grid-row: 1;
    grid-column: 1;
    display: inline-flex;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 14px;
    border-color: var(--line-soft);
    background: var(--surface);
    font-size: 16px;
  }
  .ink-header .ink-brand {
    grid-row: 1;
    grid-column: 2;
    min-width: 0;
    gap: 6px;
    justify-self: start;
    margin-inline: 2px;
  }
  .ink-header .ink-brand-shield { height: 26px; }
  .ink-header .ink-brand-word { display: inline; font-size: 14px; }
  .ink-header .ink-header-tools > .notif-menu {
    display: block;
    grid-row: 1;
    grid-column: 3;
    width: 44px;
  }
  .ink-header .notif-bell {
    display: inline-flex;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    font-size: 17px;
  }
  .ink-header .notif-dot {
    top: 2px;
    inset-inline-end: 1px;
    min-width: 16px;
    height: 16px;
    padding-inline: 3px;
    border: 2px solid var(--paper);
    font-size: 9px;
    line-height: 12px;
  }
  .ink-header .ink-header-tools > .user-chip {
    grid-row: 1;
    grid-column: 4;
    box-sizing: border-box;
    display: inline-flex;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 3px;
    gap: 0;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--act);
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(80, 227, 203, .06);
  }
  .ink-header .user-chip > .user-chip-copy,
  .ink-header .user-chip > .user-chip-arrow { display: none; }
  .ink-header .user-chip > .identity-avatar {
    box-sizing: border-box;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    margin: 0;
    border: 0;
  }
  .ink-header .ink-mobile-preferences {
    grid-row: 2;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
    gap: 0;
    min-width: 0;
    height: 44px;
    padding: 0 4px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: var(--surface);
  }
  .ink-header .ink-mobile-preferences > .utility-menu { min-width: 0; }
  .ink-header .ink-language-menu { grid-column: 1; grid-row: 1; }
  .ink-header .ink-currency-menu { grid-column: 2; grid-row: 1; border-inline: 1px solid var(--line-soft); }
  .ink-header .ink-mobile-preferences .utility-pill {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    width: 100%;
    height: 42px;
    min-height: 42px;
    padding: 0 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }
  .ink-header .ink-mobile-preferences .utility-pill > span { display: inline-flex; }
  .ink-header .ink-mobile-preferences .utility-pill > .ink-desktop-currency-label { display: none; }
  .ink-header .ink-mobile-preferences .utility-pill-caret { display: inline; font-size: 8px; }
  .ink-header .ink-mobile-preferences .utility-pill-icon { background: transparent; color: var(--act-deep); font-size: 13px; }
  .ink-header .ink-mobile-preferences .theme-toggle {
    grid-row: 1;
    grid-column: 3;
    width: 44px;
    height: 42px;
    min-width: 44px;
    min-height: 42px;
    max-width: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    font-size: 16px;
  }
  .ink-header .dropdown-panel {
    position: fixed;
    top: calc(var(--mobile-header-height) + 8px);
    inset-inline: 14px;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: calc(100dvh - var(--mobile-header-height) - 28px);
    overflow-y: auto;
    border-radius: 18px;
  }
  .ink-header .dropdown-link { min-height: 44px; }
  .ink-header .ink-burger:focus-visible,
  .ink-header .user-chip:focus-visible,
  .ink-header .utility-pill:focus-visible,
  .ink-header .theme-toggle:focus-visible {
    outline: 2px solid var(--act);
    outline-offset: 3px;
  }
}
@media (max-width: 360px) {
  .ink-header .ink-header-inner { padding-inline: 10px; column-gap: 5px; }
  .ink-header .ink-brand { gap: 4px; margin-inline: 0; }
  .ink-header .ink-brand-shield { height: 22px; }
  .ink-header .ink-brand-word { font-size: 12px; }
}
