/* futureofindia.in menu: the ONLY place the menu is styled. Every page links this after its own styles.
   Desktop rules as live on 2026-10-13 (from handbooks.html @ 329a10fb); narrow-screen menu below. */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 24px 48px; display: flex; justify-content: space-between; align-items: center; transition: background 0.3s ease, padding 0.3s ease; background: rgba(10,10,10,0.75); backdrop-filter: blur(10px); }
.nav.scrolled { background: rgba(255,255,255,0.97); padding: 16px 48px; box-shadow: 0 1px 0 rgba(0,0,0,0.08); }
.nav-logo { height: 36px; transition: opacity 0.2s; }
.nav-logo:hover { opacity: 0.8; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 14px; color: var(--white); text-decoration: none; transition: opacity 0.2s; cursor: pointer; background: none; border: none; font-family: var(--font-sans); }
.nav.scrolled .nav-link { color: var(--dark); }
.nav-link:hover { opacity: 0.7; }
.nav-link.active { opacity: 1; font-weight: 500; }
.nav-cta { font-size: 14px; font-weight: 500; color: var(--white); text-decoration: none; padding: 12px 24px; border: 1px solid rgba(255,255,255,0.5); transition: all 0.2s; cursor: pointer; background: none; font-family: var(--font-sans); }
.nav.scrolled .nav-cta { color: var(--dark); border-color: var(--dark); }
.nav-cta:hover { background: var(--white); color: var(--dark); }
.nav.scrolled .nav-cta:hover { background: var(--dark); color: var(--white); }
.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.3s; }
.nav.scrolled .hamburger span { background: var(--black); }
@media (max-width: 1200px) {
  .nav { padding: 16px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav-links { gap: 20px; }
  .nav-link { font-size: 13px; }
  .nav-cta { padding: 10px 18px; font-size: 13px; }
}
.nav-link, .nav-cta { white-space: nowrap; }
@media (max-width: 1480px) and (min-width: 961px) {
  .nav-links { gap: 20px; }
  .nav-link { font-size: 13px; }
  .nav-cta { padding: 10px 18px; font-size: 13px; }
}
@media (max-width: 1200px) and (min-width: 961px) {
  .nav { padding-left: 20px; padding-right: 20px; }
  .nav-links { gap: 14px; }
  .nav-logo { height: 30px; }
}
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd-menu { display: none; position: absolute; top: 100%; left: -18px; padding-top: 12px; min-width: 180px; }
.nav-dd-menu-inner { background: rgba(10,10,10,0.96); padding: 8px 0; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.nav.scrolled .nav-dd-menu-inner { background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.nav-dd-menu a { display: block; padding: 10px 18px; font-size: 14px; color: #fff; text-decoration: none; white-space: nowrap; font-family: var(--font-sans); }
.nav.scrolled .nav-dd-menu a { color: var(--dark); }
.nav-dd-menu a:hover, .nav-dd-menu a:focus-visible { color: var(--accent); }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { display: block; }

/* ── Narrow screens (960px and below): the menu icon, on every page ──────────────────────────────────────────── */
:root { --menu-bar-h: 68px; }
@media (max-width: 960px) {
  .nav, .nav.scrolled { height: var(--menu-bar-h); padding: 0 16px; justify-content: space-between; }
  .nav { background: rgba(10,10,10,0.95); }
  .nav.scrolled { background: rgba(255,255,255,0.97); }
  .nav-logo { height: 28px; }
  .hamburger { display: flex; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 16px;
               padding: 20px; background: rgba(10,10,10,0.98);
               max-height: calc(100vh - var(--menu-bar-h)); max-height: calc(100dvh - var(--menu-bar-h));
               overflow-y: auto; overscroll-behavior: contain; }
  .nav.scrolled .nav-links { background: rgba(255,255,255,0.98); }
  .nav-links.active { display: flex; }
  /* The open menu's own styles live here, inside the narrow-screen range only: an open menu carried past 960px
     (rotating a tablet) must not change the desktop bar (Codex foif-shared-menu r1). menu.js also closes it there. */
  .nav-links.active .nav-dd { flex-direction: column; }
  .nav-links.active .nav-dd-menu { display: block; position: static; padding-top: 4px; min-width: 0; }
  .nav-links.active .nav-dd-menu-inner { background: none; box-shadow: none; padding: 0; }
  .nav-links.active .nav-dd-menu a { font-size: 13px; padding: 6px 0; text-align: center; opacity: 0.8; }
  .nav-link { font-size: 14px; text-align: center; }
  .nav-cta { padding: 12px 20px; font-size: 14px; text-align: center; }
  /* Pages that start their content below the fixed bar (.page): exactly the bar's height. */
  .page { padding-top: var(--menu-bar-h); }
}
