/* Match homepage/src/styles/global.css, scoped to the shared blog header. */
.brand-header {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: 1376px;
  margin-inline: auto;
  color: #fff;
  background: var(--red);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  line-height: 1.6;
}
html[data-overview] .brand-header,
html[data-page="post"] .brand-header {
  background: rgba(163, 43, 53, .72);
}
.header-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-inline: var(--gutter);
}
.brand-header .wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark span { color: #fff4dc; }
.brand-header a { text-underline-offset: 6px; }
.brand-header a:hover { color: inherit; }
.brand-header :focus-visible { outline: 3px solid currentColor; outline-offset: 6px; }
.main-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(18px, 2.8vw, 38px); margin-left: auto; }
.main-navigation a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; }
.main-navigation a:hover, .main-navigation [aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.menu-toggle { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.language-switcher { position: relative; font-size: 13px; }
.language-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 96px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 100px; font-weight: 700; cursor: pointer; list-style: none; }
.language-toggle::-webkit-details-marker { display: none; }
.language-toggle:hover, .language-switcher[open] > summary { background: rgba(255,255,255,.1); }
.language-chevron { transition: transform .2s ease; }
.language-switcher[open] .language-chevron { transform: rotate(180deg); }
.language-options { position: absolute; top: calc(100% + 10px); right: 0; z-index: 25; min-width: 160px; padding: 6px; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 12px 30px rgba(70,20,20,.2); }
.language-options a { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; padding: 8px 14px; border-radius: 6px; }
.language-options a:hover, .language-options [aria-current="true"] { background: #f7eee0; }
.language-options [aria-current="true"] { color: var(--red); font-weight: 700; }
.language-check { min-width: 14px; }
@media (max-width: 900px) {
  .header-inner { gap: 20px; }
  .brand-header .wordmark { font-size: 22px; }
  .main-navigation { gap: 18px; }
  .main-navigation a { font-size: 13px; }
}
@media (max-width: 700px) {
  .header-inner { min-height: 84px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding-block: 16px; }
  .header-actions { grid-column: 2; grid-row: 1; gap: 8px; }
  .js-enabled .menu-toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px 0 12px; border: 0; background: none; font-size: 13px; font-weight: 700; }
  .menu-symbol { font-size: 24px; line-height: 1; transition: transform .2s ease; }
  .menu-open .menu-symbol { transform: rotate(45deg); }
  .main-navigation { display: flex; grid-column: 1 / -1; grid-row: 2; width: 100%; max-height: calc(100svh - 84px); overflow-y: auto; padding-block: 20px 8px; flex-direction: column; align-items: stretch; gap: 8px; margin-left: 0; }
  .js-enabled .main-navigation { display: none; }
  .js-enabled .menu-open .main-navigation { display: flex; }
  .main-navigation a { padding: 4px 0; width: fit-content; font-size: 18px; }
}
@media (max-width: 450px) {
  .menu-label { display: none; }
  .js-enabled .menu-toggle { justify-content: center; min-width: 44px; padding: 0; }
}
@media (max-width: 380px) {
  .brand-header .wordmark { font-size: 18px; }
  .language-globe { display: none; }
  .language-toggle { min-width: 64px; gap: 6px; padding-inline: 8px; }
}
