/* ── Tablet and Mobile portrait ─────────────────────────────────────────────────── */
@media (max-width: 1366px) and (orientation: portrait) {

  .site-header__inner {
    position: relative;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    backdrop-filter: none;
    padding: 12px;
  }

  .site-header__actions {
    position: relative;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    width: auto;
    justify-content: flex-end;
  }

  .site-brand__mark {
  width: 38px;
  height: 38px;
}

  .site-brand__text {
    font-size: 0.9rem;
  }

  .site-brand__credit {
    font-size: 0.55rem;
  }

  .site-brand__subtext {
    font-size: 0.8rem;
  }

  .site-header[data-site-menu-ready="true"] .site-menu-toggle {
    display: inline-grid;
    order: 2;
    position: relative;
    z-index: 70;
  }

  .site-header[data-site-menu-ready="true"] .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    align-content: start;
    grid-template-columns: 1fr;
    width: min(200px, 80vw);
    height: 100vh;
    height: 100dvh;
    gap: 4px;
    overflow-y: auto;
    border: 0;
    border-left: 1px solid var(--site-header-border);
    border-radius: 0;
    background: var(--site-header-bg);
    box-shadow: -24px 0 50px rgba(30, 49, 71, 0.16);
    backdrop-filter: blur(18px);
    padding: 0 10px 14px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: opacity 0.18s ease, transform 0.22s ease;
  }

  .site-header[data-site-menu-ready="true"] .site-nav::before {
    content: "";
    position: sticky;
    top: 0;
    display: block;
    min-height: 70px;
    margin: 0 -10px 8px;
    background: var(--site-header-bg);
  }

  .site-header[data-site-menu-ready="true"] .site-nav[data-menu-open="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .site-header[data-site-menu-ready="true"] .site-nav__link {
    justify-content: flex-end;
    width: 100%;
    min-width: 0;
    min-height: 40px;
  }

  .site-header .site-theme-toggle {
    grid-template-columns: 1fr;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    gap: 0;
    order: 1;
    padding: 0;
  }

  .site-header .site-theme-toggle .site-theme-toggle__track {
    display: none;
  }

  .site-header .site-theme-toggle .site-theme-toggle__icon:first-of-type {
    display: none;
  }

  :root[data-theme="dark"] .site-header .site-theme-toggle .site-theme-toggle__icon:first-of-type,
  html[data-theme="dark"] .site-header .site-theme-toggle .site-theme-toggle__icon:first-of-type {
    display: inline-flex;
  }

  :root[data-theme="dark"] .site-header .site-theme-toggle .site-theme-toggle__icon:last-of-type,
  html[data-theme="dark"] .site-header .site-theme-toggle .site-theme-toggle__icon:last-of-type {
    display: none;
  }
}
 

/* ── Tablet landscape ────────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {

  .site-header__inner {
    position: relative;
    align-items: center;
    flex-direction: row;
    gap: 16px;
    backdrop-filter: none;
  }

  .site-brand {
    flex: 1 1 auto;
    width: auto;
  }

  .site-header__actions {
    position: relative;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    width: auto;
    justify-content: flex-end;
  }
}


