/* Compact navigation keeps every destination available on small/zoomed screens. */
.camus-menu-toggle, .camus-menu-secondary { display: none; }
.technical-contents { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 28px; }
.technical-contents a { text-underline-offset: 4px; }
.technical-panel[id] { scroll-margin-top: 100px; }
/* Older theme layers paired pale secondary buttons with white text. */
html[data-camus-theme="dark"] .site-root .hero-actions .btn-secondary,
html[data-camus-theme="dark"] .camus-page .camus-page-actions .btn-secondary {
  background: #252a33 !important; color: #f3f5f7 !important; border-color: #586576 !important;
  transition: border-color .15s ease;
}
html:not([data-camus-theme="dark"]) .site-root .hero-actions .btn-secondary,
html:not([data-camus-theme="dark"]) .camus-page .camus-page-actions .btn-secondary {
  background: #f6f7f9 !important; color: #173256 !important; border-color: #9caabd !important;
  transition: border-color .15s ease;
}
@media (max-width: 1365px) {
  .site-header.camus-adaptive-header .header-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: 64px;
    padding-block: 9px !important;
  }
  .site-header.camus-adaptive-header .brand { gap: 7px; flex-shrink: 0; }
  .site-header.camus-adaptive-header .brand img { width: 30px; height: 30px; }
  .site-header.camus-adaptive-header .camus-header-actions {
    width: auto !important; margin-left: auto; flex-wrap: nowrap; gap: 6px;
  }
  .site-header.camus-adaptive-header .camus-header-link { display: none !important; }
  .site-header.camus-adaptive-header .camus-theme-toggle { margin: 0; padding: 3px; min-height: 40px; }
  .site-header.camus-adaptive-header .camus-theme-toggle span { padding: 5px 7px; font-size: 12px; }
  .site-header.camus-adaptive-header .camus-menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 8px; border: 1px solid #75808e;
    border-radius: 8px; background: transparent; color: inherit; font: inherit; cursor: pointer;
  }
  .site-header.camus-adaptive-header .main-nav { display: none !important; }
  .site-header.camus-adaptive-header[data-menu-open] .main-nav {
    display: flex !important; position: absolute; inset: 100% 0 auto;
    z-index: 20; flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px 20px; background: #f6f7f9; color: #15243b;
    border-bottom: 1px solid #b8c1ce; box-shadow: 0 12px 24px #0002;
    max-height: min(70vh, 440px); max-height: min(70dvh, 440px); overflow-y: auto;
  }
  .site-header.camus-adaptive-header .main-nav a {
    display: flex; align-items: center; min-height: 44px; padding: 8px 4px;
    color: inherit; font-size: 14px; white-space: normal;
  }
  html[data-camus-theme="dark"] .site-header.camus-adaptive-header[data-menu-open] .main-nav {
    background: #1c1e23; color: #edf2f9; border-color: #3d4551;
  }
  .camus-adaptive-header :focus-visible { outline: 2px solid #578de8; outline-offset: 3px; }
}
/* Let short laptop and zoomed layouts scroll without a permanently tall header. */
@media (max-height: 650px) {
  .site-root .site-header { position: relative !important; top: auto; }
  .camus-page-hero { padding-top: 32px; }
}

/* A 1366×768 viewport is the desktop reference. Smaller or shorter windows
   reflow at readable sizes, including browser zoom and the Windows taskbar. */
@media (max-width: 1365px), (max-height: 767px) {
  .site-root .hero-section { padding-block: clamp(28px, 6vh, 64px); }
  .site-root .hero-grid { gap: clamp(24px, 4vw, 48px); }
  .site-root .hero-section h1 {
    max-width: 24ch;
    font-size: clamp(2rem, 4.4vw, 3.25rem);
    line-height: 1.05;
  }
  .site-root .hero-subtitle { margin-top: 18px; font-size: 1rem; line-height: 1.6; }
  .site-root .hero-actions { margin-top: 20px; }
  .site-root .hero-actions .btn { min-height: 44px; padding-inline: 18px; }
  .site-root .hero-facts { margin-top: 24px; }
  .camus-page-hero { padding-block: clamp(24px, 5vh, 40px); }
  .camus-page-section { padding-block: clamp(24px, 5vh, 48px); }
  .subscription-entry { gap: 28px; }
  .subscription-auth, .subscription-otp { padding: 24px; }
  .subscription-intro h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
}

@media (max-width: 950px) {
  .subscription-entry { grid-template-columns: minmax(0, 1fr); }
  .subscription-entry .subscription-auth { order: -1; }
  .subscription-features { gap: 18px; margin-block: 22px; }
}
