/* Copyright The DeviceChain Authors */
/* SPDX-License-Identifier: Apache-2.0 */

/* Header nav wrap for narrow screens. Loaded AFTER locales.css, which stays byte-identical
   to the legacy site (URL parity). Overrides its 1040px hide and 480px header height. */
@media (max-width: 1040px) {
  :root { --header-h: 116px; }
  header { flex-wrap: wrap; align-content: center; row-gap: .5rem; }
  header > nav { display: flex; order: 4; flex-basis: 100%; justify-content: flex-start; }
}

/* The blog link (src/components/page/SectionNav.astro): beside the section disclosure on a wide
   header, inside it once the nav wraps onto its own row. That row sits under the language picker,
   whose open menu covers the row's right-hand side; with the blog link on it, Docs lands there and
   fails WCAG 2.2 target size (2.5.8) as an obscured target. Inside the disclosure the row is
   "Platform, Docs" again and stays clear of the menu. */
.section-links .blog-narrow { display: none; }
@media (max-width: 1040px) {
  header > nav > .blog-wide { display: none; }
  .section-links .blog-narrow { display: block; }
}
@media (max-width: 480px) {
  :root { --header-h: 148px; }
  header { row-gap: .1rem; }
}
