/* Desktop's existing masthead and controls are intentionally unchanged. */
[data-mobile-header-actions] { display: none; }

@media (max-width: 767px) {
  [data-header-top] > [data-header-actions] { display: none; }
  [data-header-brand] { width: 100%; min-width: 0; justify-content: center; }
  [data-header-brand] > [data-brand] { display: block; width: 100%; max-width: 420px; }
  [data-header-brand] [data-logo] { display: block; width: 100%; }
  [data-header-brand] [data-logo] img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }
  [data-header-bottom] { align-items: center; gap: 8px; }
  [data-header-bottom] > nav,
  [data-header-bottom] > hr { display: none; }
  [data-header-bottom] > [data-menu-toggle],
  [data-header-bottom] > [data-ghost-search] {
    flex: 0 0 44px;
    min-height: 44px;
  }
  [data-header-bottom] > [data-ghost-search] > span { display: none; }
  [data-mobile-header-actions] {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
    font-size: 14px;
    line-height: 1.3;
  }
  [data-mobile-header-actions] > a,
  [data-mobile-header-actions] > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    white-space: nowrap;
  }
  [data-mobile-header-actions] > .hg-mobile-subscribe {
    padding: 8px 12px;
    border: 1px solid var(--color-brand);
    border-radius: var(--radius-btn);
    background: var(--color-brand);
    color: var(--color-brand-contrast);
  }
  [data-mobile-header-actions] > .hg-mobile-signin {
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--color-typ);
  }
}
