/*
 * chrome-2026.css: the shared header (.vh) and footer (.vf), October 2026 design.
 * Linked on EVERY page after the page's own CSS, so it works on both stacks:
 * the v3 pages (css/v3/site.css) and the legacy library pages (crops, regions,
 * glossary, blog), whose stylesheets force a transparent floating header.
 * Selectors therefore start at #site-header / #site-footer and the few layout
 * properties the legacy files force are set with !important. Colours are
 * literal (no tokens) because the two stacks define different variables.
 */

/* ── Header shell ───────────────────────────────────────────────────── */
html body #site-header {
  position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important;
  width: 100% !important; max-width: none !important; margin: 0 !important;
  height: 72px !important; padding: 0 !important; display: block !important;
  z-index: 9000 !important; border-radius: 0 !important; transform: none !important; filter: none !important;
  background: #FBF7EE !important;
  /* No backdrop-filter, filter or transform here: any of them makes the header the
     containing block of the fixed-position drawer, which then gets clipped to 72px. */
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; contain: none !important;
  border-bottom: 1px solid #E3D9C7 !important; box-shadow: none !important;
}
html body #site-header::before, html body #site-header::after { display: none !important; content: none !important; }
html body #site-header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(22, 35, 27, .45) !important; }
body.v3 { padding-top: 72px; }

#site-header .vh {
  height: 72px; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px);
  display: flex; align-items: center; gap: 28px;
  font-family: "Source Sans 3", "Source Sans 3 Fallback", "Noto Sans Devanagari", "Nirmala UI", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #16231B;
}
#site-header .vh-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
#site-header .vh-logo img { width: 40px; height: auto; display: block; }
#site-header .vh-word, #site-footer .vf-logo { font-family: "Source Serif 4", "Source Serif 4 Fallback", Georgia, serif; font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.vh-word__a { color: #1E3A5F; }
.vh-word__b { color: #1F5D3A; }

#site-header .vh-nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 1080px) { #site-header .vh-nav { display: flex; } }
#site-header .vh-nav__link {
  position: relative; padding: 8px 12px; border-radius: 8px; text-decoration: none;
  color: #3F4D44; font-size: 1rem; font-weight: 400; line-height: 1.2;
}
#site-header .vh-nav__link:hover { color: #16231B; background: rgba(31, 93, 58, .07); }
#site-header .vh-nav__link[aria-current="page"] { color: #1F5D3A; font-weight: 600; }
#site-header .vh-nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: #1F5D3A; }

#site-header .vh-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
#site-header .vh-lang { display: none; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: #F1E9DA; }
@media (min-width: 720px) { #site-header .vh-lang { display: inline-flex; } }
#site-header .vh-lang__item { padding: 4px 10px; border-radius: 999px; font-size: .9rem; color: #3F4D44; text-decoration: none; line-height: 1.4; }
#site-header .vh-lang__item[aria-current="true"], #site-header .vh-lang__item.is-active { background: #fff; color: #16231B; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
#site-header .vh-call {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px;
  background: #F29A2E; color: #16231B; text-decoration: none; font-weight: 600; font-size: 1rem; white-space: nowrap;
}
#site-header .vh-call:hover { background: #E2861A; color: #16231B; }
#site-header .vh-call svg { width: 18px; height: 18px; flex: none; }
#site-header .vh-cta {
  display: none; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid #1F5D3A; color: #1F5D3A; text-decoration: none; font-weight: 600; font-size: 1rem; white-space: nowrap;
}
#site-header .vh-cta:hover { background: #1F5D3A; color: #fff; }
@media (min-width: 1180px) { #site-header .vh-cta { display: inline-flex; } }
#site-header .vh-menu {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; margin: 0;
  border: 1px solid #D3C6AF; border-radius: 999px; background: #fff; color: #16231B;
  font: 600 .98rem/1 "Source Sans 3", "Source Sans 3 Fallback", system-ui, sans-serif; cursor: pointer;
}
#site-header .vh-menu:hover { border-color: #16231B; }
#site-header .vh-menu__icon { display: grid; gap: 4px; width: 18px; }
#site-header .vh-menu__icon span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease; }
#site-header .vh-menu[aria-expanded="true"] .vh-menu__icon span:first-child { transform: translateY(3px) rotate(45deg); }
#site-header .vh-menu[aria-expanded="true"] .vh-menu__icon span:last-child { transform: translateY(-3px) rotate(-45deg); }
#site-header .vh-menu [hidden] { display: none; }
@media (min-width: 1080px) { #site-header .vh-menu .nav-menu-btn__label { display: none; } }
@media (max-width: 560px) {
  #site-header .vh { gap: 12px; }
  #site-header .vh-call__label { display: none; }
  #site-header .vh-call { width: 44px; padding: 0; justify-content: center; }
  #site-header .vh-word { font-size: 1.25rem; }
  #site-header .vh-menu .nav-menu-btn__label { display: none; }
  #site-header .vh-menu { width: 44px; padding: 0; justify-content: center; }
}

/* ── Drawer ─────────────────────────────────────────────────────────── */
#site-header .vh-drawer {
  position: fixed; top: 72px; left: 0; right: 0; bottom: 0; z-index: 8999;
  overflow-y: auto; background: #FBF7EE; border-top: 1px solid #E3D9C7;
  padding: 20px clamp(16px, 4vw, 48px) 28px; overscroll-behavior: contain;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  font-family: "Source Sans 3", "Source Sans 3 Fallback", "Noto Sans Devanagari", "Nirmala UI", system-ui, sans-serif; color: #16231B;
}
#site-header .vh-drawer.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
#site-header .vh-drawer__grid { max-width: 1180px; margin: 0 auto; display: grid; gap: 22px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { #site-header .vh-drawer__grid { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
#site-header .vh-drawer__label { margin: 0 0 6px; font-size: .9rem; font-weight: 700; color: #1F5D3A; }
#site-header .vh-drawer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
#site-header .vh-drawer__link { display: block; padding: 5px 0; font-size: 1.02rem; line-height: 1.35; color: #16231B; text-decoration: none; }
@media (min-width: 900px) { #site-header .vh-drawer__link { padding: 7px 0; font-size: 1.12rem; } }
#site-header .vh-drawer__link:hover, #site-header .vh-drawer__link[aria-current="page"] { color: #1F5D3A; }
#site-header .vh-drawer__foot { max-width: 1180px; margin: 22px auto 0; padding-top: 18px; border-top: 1px solid #E3D9C7; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
#site-header .vh-drawer__btn { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid #1F5D3A; color: #1F5D3A; text-decoration: none; font-weight: 600; }
#site-header .vh-drawer__btn--act { background: #F29A2E; border-color: #F29A2E; color: #16231B; }
#site-header .vh-drawer__meta { width: 100%; margin: 6px 0 0; color: #66726A; font-size: .98rem; }
#site-header .vh-drawer__meta a { color: #3F4D44; }

/* ── Footer ─────────────────────────────────────────────────────────── */
html body #site-footer { background: #0F3324 !important; color: #C9D8CC; margin: 0; padding: 0; border: 0; }
#site-footer .vf { max-width: 1240px; margin: 0 auto; padding: clamp(44px, 6vw, 80px) clamp(20px, 4vw, 40px) 28px; font-family: "Source Sans 3", "Source Sans 3 Fallback", "Noto Sans Devanagari", "Nirmala UI", system-ui, sans-serif; font-size: 1rem; line-height: 1.6; }
#site-footer a { color: #E8F0E9; text-decoration: none; }
#site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
#site-footer .vf-cta { display: grid; gap: 22px; align-items: center; padding-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid rgba(255, 255, 255, .14); }
@media (min-width: 900px) { #site-footer .vf-cta { grid-template-columns: 1fr auto; } }
#site-footer .vf-cta__title { margin: 0 0 8px; font-family: "Source Serif 4", "Source Serif 4 Fallback", "Noto Serif Devanagari", Georgia, serif; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.18; font-weight: 600; color: #fff; }
#site-footer .vf-cta__sub { margin: 0; color: #B9CCBD; max-width: 60ch; font-size: 1.08rem; }
#site-footer .vf-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
#site-footer .vf-btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 1.05rem; text-decoration: none !important; }
#site-footer .vf-btn--act { background: #F29A2E; color: #16231B; }
#site-footer .vf-btn--act:hover { background: #FFB04F; color: #16231B; }
#site-footer .vf-btn--ghost { border: 1.5px solid rgba(255, 255, 255, .4); color: #fff; }
#site-footer .vf-btn--ghost:hover { border-color: #fff; color: #fff; }
#site-footer .vf-main { display: grid; gap: 36px; padding: clamp(36px, 5vw, 56px) 0; }
@media (min-width: 960px) { #site-footer .vf-main { grid-template-columns: 300px 1fr; gap: 64px; } }
#site-footer .vf-logo { display: inline-block; font-size: 1.6rem; margin-bottom: 12px; }
#site-footer .vf-logo .vh-word__a { color: #fff; }
#site-footer .vf-logo .vh-word__b { color: #9FD3AE; }
#site-footer .vf-tag { margin: 0 0 16px; color: #B9CCBD; }
#site-footer .vf-contact { margin: 0 0 16px; line-height: 1.9; }
#site-footer .vf-social { display: inline-flex; align-items: center; gap: 8px; color: #C9D8CC; }
#site-footer .vf-cols { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { #site-footer .vf-cols { grid-template-columns: repeat(4, 1fr); } }
#site-footer .vf-col__label { margin: 0 0 12px; font-weight: 700; color: #F8C77E; font-size: .95rem; }
#site-footer .vf-col__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#site-footer .vf-col__links a { color: #D3E0D5; }
#site-footer .vf-base { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 22px; display: grid; gap: 6px; font-size: .9rem; color: #9FB4A4; }
#site-footer .vf-base p { margin: 0; }
#site-footer .vf-legal a { color: #C9D8CC; }

/* Legacy pages: their body padding and heroes assume a 0-height floating header. */
@media print { #site-header, #site-footer .vf-cta { display: none !important; } body { padding-top: 0; } }

#site-header [lang="mr"], #site-header [lang="hi"], #site-footer [lang="mr"], #site-footer [lang="hi"] { font-family: "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", "Devanagari Sangam MN", system-ui, sans-serif; }
#site-header .vh-nav__link { white-space: nowrap; }
