/* Base tokens */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --ink: #0b1220;
  --ink-soft: rgba(11, 18, 32, 0.72);
  --page-bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.92);
  --border-soft: rgba(11, 18, 32, 0.08);
  --shadow-soft: 0 18px 40px -24px rgba(11, 18, 32, 0.16);
  --accent: #0b84ff;
}

/* Resets */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Visually hidden utility */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header / navigation */
.hdr {
  position: sticky;
  top: 20px;
  z-index: 100;
  width: min(1180px, calc(100% - 48px));
  margin: 24px auto;
  padding: 16px 0;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.7));
  box-shadow: var(--shadow-soft, 0 32px 64px -40px rgba(10, 20, 40, 0.55));
  backdrop-filter: saturate(180%) blur(26px);
  -webkit-backdrop-filter: saturate(180%) blur(26px);
}

.hdr .wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 28px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary, rgba(11, 18, 32, 0.68));
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.logo {
  width: 120px;
  height: auto;
  display: block;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-secondary, rgba(11, 18, 32, 0.68));
  box-shadow: 0 18px 32px -24px rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  transform: translateY(-2px);
  color: var(--accent, #0b84ff);
  border-color: rgba(11, 132, 255, 0.42);
}

body.mobile-nav-open {
  overflow: hidden;
}

/* REMOVED the global display:none that hid all mobile nav elements */

/* (intentionally left blank to preserve file structure) */

@media (max-width: 960px) {
  .theme-glass .hdr {
    top: 12px;
  }

  .theme-glass .hdr .wrap {
    padding: 0 18px;
  }

  .theme-glass .nav-left,
  .theme-glass .nav-right {
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .hdr .wrap {
    flex-direction: column;
    gap: 18px;
  }

  .nav-left,
  .nav-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .theme-glass .hdr {
    position: static;
    width: calc(100% - 32px);
    margin: 18px auto 0;
  }

  .theme-glass .hdr .wrap {
    width: 100%;
    margin: 0;
    padding: 0 18px;
  }

  .theme-glass .nav-left,
  .theme-glass .nav-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .hdr .wrap {
    flex-direction: row;
    justify-content: center;
    gap: 0;
    padding: 12px 16px;
  }

  .nav-logo {
    margin: 0 auto;
  }

  .nav-left,
  .nav-right {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 220;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink, #0b1220);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    box-shadow: 0 20px 40px -28px rgba(11, 18, 32, 0.5);
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  }

  .mobile-nav-toggle:focus-visible,
  .mobile-nav-toggle:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 44px -24px rgba(11, 18, 32, 0.52);
  }

  .mobile-nav-toggle-icon {
    position: relative;
    width: 20px;
    height: 14px;
  }

  .mobile-nav-toggle-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .mobile-nav-toggle-icon span:nth-child(1) {
    top: 0;
  }

  .mobile-nav-toggle-icon span:nth-child(2) {
    top: 6px;
  }

  .mobile-nav-toggle-icon span:nth-child(3) {
    bottom: 0;
  }

  /* CHANGED: tie the icon morph to aria-expanded for consistency */
  .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-icon span:nth-child(2) {
    opacity: 0;
  }
  .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 32, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 200;
  }

  /* CHANGED: .is-active -> .is-open */
  .mobile-nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-sheet {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 96px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 28px 64px -32px rgba(12, 25, 45, 0.55);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    transform: translateY(16px) scale(0.97);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s ease, opacity 0.32s ease;
    z-index: 205;
  }

  /* CHANGED: .is-active -> .is-open */
  .mobile-nav-sheet.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-inner {
    display: grid;
    gap: 14px;
    padding: 24px;
  }

  .mobile-nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft, rgba(11, 18, 32, 0.68));
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(11, 18, 32, 0.06);
    text-align: center;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .mobile-nav-link:focus-visible,
  .mobile-nav-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(11, 132, 255, 0.32);
    color: var(--accent, #0b84ff);
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hdr,
  .icon-btn {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.8);
  }
}

/* Footer */
.site-footer {
  background: transparent;
  color: var(--ink-soft);
  padding: clamp(32px, 8vw, 72px) 0 24px;
}

.footer-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  gap: clamp(24px, 6vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.86rem;
  color: var(--ink);
  opacity: 0.75;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  opacity: 1;
  color: var(--accent);
}

.footer-logo--mono {
  width: 120px;
  height: 32px;
  background: url("img/logo.svg") center/contain no-repeat;
  filter: brightness(0) invert(0.05);
  opacity: 0.9;
}

.footer-center {
  display: grid;
  gap: 16px;
}

.footer-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-form input {
  flex: 1 1 220px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.footer-form input::placeholder {
  color: rgba(11, 18, 32, 0.4);
}

.footer-form button {
  padding: 12px 20px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(120deg, #0b84ff, #60b2ff);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-form button:hover,
.footer-form button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -20px rgba(11, 132, 255, 0.75);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-2px);
  color: var(--accent);
}

.footer-legal {
  margin-top: clamp(20px, 5vw, 32px);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(11, 18, 32, 0.55);
}


.footer-centerStack {
  display: grid;
  gap: 16px;
}

.footer-leftGroup,
.footer-rightTall {
  display: grid;
  gap: 8px;
}

.footer-3col {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 720px) {
  .footer-form {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Glass theme footer overrides */
.theme-glass .site-footer {
  margin-top: auto;
  padding: clamp(48px, 8vw, 90px) 0;
  background: transparent;
}

.theme-glass .footer-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  border-radius: 36px;
  padding: clamp(36px, 6vw, 54px);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: clamp(32px, 6vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.theme-glass .footer-col h4 {
  margin: 0 0 16px;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary, var(--ink-soft));
}

.theme-glass .footer-col a {
  display: block;
  margin-bottom: 12px;
  color: var(--text-primary, var(--ink));
  font-size: 0.88rem;
  opacity: 0.78;
}

.theme-glass .footer-col a:hover,
.theme-glass .footer-col a:focus-visible {
  opacity: 1;
  color: var(--accent);
}

.theme-glass .footer-logo--mono {
  background-image: url("img/logo.png");
  margin: 0;
}

.theme-glass .footer-center {
  display: grid;
  gap: clamp(18px, 5vw, 28px);
  align-content: center;
  justify-items: center;
  text-align: center;
}

.theme-glass .footer-headline {
  margin: 0 0 18px;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text-primary, var(--ink));
}

.theme-glass .footer-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
  justify-content: center;
}

.theme-glass .footer-form input {
  flex: 1 1 220px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid rgba(11, 132, 255, 0.28);
  background: rgba(244, 248, 255, 0.92);
  color: var(--text-primary, var(--ink));
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.theme-glass .footer-form input::placeholder {
  color: rgba(11, 18, 32, 0.45);
}

.theme-glass .footer-form button {
  padding: 12px 22px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(120deg, #0b84ff, #60b2ff);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-glass .footer-form button:hover,
.theme-glass .footer-form button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -20px rgba(11, 132, 255, 0.75);
}

.theme-glass .footer-social {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.theme-glass .social-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-secondary, var(--ink-soft));
  transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.theme-glass .social-btn:hover,
.theme-glass .social-btn:focus-visible {
  transform: translateY(-2px);
  color: var(--accent);
  border-color: rgba(11, 132, 255, 0.35);
}

.theme-glass .footer-legal {
  margin-top: clamp(28px, 6vw, 42px);
  text-align: center;
  color: var(--text-secondary, var(--ink-soft));
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.theme-glass .footer-rightTall {
  display: grid;
  gap: 12px;
  text-align: right;
  justify-items: end;
  align-content: start;
}

@media (max-width: 720px) {
  .theme-glass .footer-wrap {
    width: calc(100% - 32px);
  }

  .theme-glass .footer-form {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 48px);
  background: rgba(11, 18, 32, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
}

.search-overlay.is-visible {
  display: flex;
}

body.search-open {
  overflow: hidden;
}

.search-dialog {
  width: min(640px, 100%);
  border-radius: 28px;
  padding: clamp(28px, 6vw, 40px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 26px 60px -32px rgba(11, 18, 32, 0.65);
  position: relative;
  display: grid;
  gap: 20px;
}

.search-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-soft);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.search-close:hover,
.search-close:focus-visible {
  transform: translateY(-2px);
  color: var(--accent);
  border-color: rgba(11, 132, 255, 0.32);
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.search-form input[type="search"] {
  flex: 1 1 280px;
  padding: 14px 20px;
  border-radius: 18px;
  border: 1px solid rgba(11, 132, 255, 0.28);
  background: rgba(244, 248, 255, 0.92);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.search-form input[type="search"]::placeholder {
  color: rgba(11, 18, 32, 0.45);
}

.search-form button[type="submit"] {
  padding: 14px 26px;
  border-radius: 18px;
  border: none;
  background: linear-gradient(120deg, #0b84ff, #60b2ff);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-form button[type="submit"]:hover,
.search-form button[type="submit"]:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 32px -20px rgba(11, 132, 255, 0.7);
}

.search-overlay p {
  margin: 0;
  color: rgba(11, 18, 32, 0.62);
  line-height: 1.7;
}

@media (max-width: 540px) {
  .search-dialog {
    padding: clamp(24px, 7vw, 32px);
  }

  .search-form {
    flex-direction: column;
  }

  .search-form button[type="submit"] {
    width: 100%;
  }
}

/* Search results */
.search-results-wrap {
  display: grid;
  gap: clamp(24px, 6vw, 36px);
}

.search-results-intro {
  display: grid;
  gap: 12px;
  text-align: center;
}

.search-results-intro h1 {
  margin: 0;
  font-family: "Merriweather", "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 52px);
}

.search-results-intro p {
  margin: 0 auto;
  max-width: 600px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.search-result-card {
  padding: clamp(28px, 6vw, 40px);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  display: grid;
  gap: 12px;
}

.search-result-card h3 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 32px);
}

.search-result-card a {
  color: var(--accent);
}

.search-result-card p {
  margin: 0;
  color: rgba(11, 18, 32, 0.72);
  line-height: 1.75;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-tags span {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(11, 132, 255, 0.12);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search-empty {
  text-align: center;
  color: rgba(11, 18, 32, 0.65);
}

/* --- Mobile nav: baseline hidden --- */
.mobile-nav-toggle {
  position: fixed; right: 16px; bottom: 16px; z-index: 1100;
  display: none; /* show only on mobile */
  padding: 12px 16px; border-radius: 999px; border: 1px solid var(--glass-border);
  background: var(--glass); box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.mobile-nav-toggle .mobile-nav-toggle-icon { display:inline-grid; gap:4px; margin-left:10px }
.mobile-nav-toggle .mobile-nav-toggle-icon > span {
  width:18px; height:2px; background: var(--ink); display:block; transition:transform .25s, opacity .25s;
}
.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-icon > span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-icon > span:nth-child(2){ opacity:0; }
.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-icon > span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }
/* Off-canvas sheet */
.mobile-nav-sheet {
  position: fixed; inset: 0 0 0 auto; width: 86vw; max-width: 420px;
  transform: translateX(100%); transition: transform .3s ease;
  background: rgba(255,255,255,.86); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-left: 1px solid var(--glass-border); z-index: 1050;
}
.mobile-nav-sheet.is-open { transform: translateX(0); }
.mobile-nav-inner { display:grid; gap:14px; padding: 28px; }
.mobile-nav-link { padding: 12px 6px; font-weight: 600; text-decoration:none; color: var(--ink); }
.mobile-nav-link:active, .mobile-nav-link:focus{ outline: none; text-decoration: underline; }
/* Dim overlay */
.mobile-nav-overlay {
  position: fixed; inset: 0; background: rgba(10,20,40,.35);
  opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 1040;
}
.mobile-nav-overlay.is-open { opacity: 1; pointer-events: auto; }
/* Show the FAB toggle only on small screens */
@media (max-width: 900px){
  .mobile-nav-toggle { display: inline-flex; align-items:center; }
  .hdr .wrap .nav-left, .hdr .wrap .nav-right { display: none; } /* optional: hide desktop nav on mobile */
}
/* --- Mobile Nav: bullet-proof visibility + stacking overrides --- */
.mobile-nav-sheet {
  position: fixed;
  inset: 0 0 0 auto;
  width: 86vw;
  max-width: 420px;
  height: 100vh;           /* ensure it occupies the viewport */
  overflow-y: auto;        /* scroll links if needed */
  display: block !important;      /* defeat legacy display:none */
  transform: translateX(100%);    /* off-canvas by default */
  transition: transform .3s ease;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-left: 1px solid var(--glass-border);
  z-index: 9999;           /* sit on top of header and content */
}
.mobile-nav-sheet.is-open {
  transform: translateX(0);        /* slide in */
}
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,20,40,.35);
  opacity: 0;
  pointer-events: none;
  display: block !important;       /* defeat any display:none */
  transition: opacity .3s ease;
  z-index: 9998;
}
.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
/* Mobile-only toggle visibility */
@media (max-width: 900px){
  .mobile-nav-toggle { display: inline-flex; }
  .hdr .wrap .nav-left, .hdr .wrap .nav-right { display: none; }
}

