@font-face {
  font-family: Hindi Sans;
  src: url("fonts/NotoSansDevanagari-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Hindi Sans;
  src: url("fonts/NotoSansDevanagari-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Hindi Serif;
  src: url("fonts/NotoSerifDevanagari-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #172f2b;
  --muted: #49605a;
  --pine: #133b34;
  --pine-text: #e6efde;
  --link: #125943;
  --gold: #f3c37a;
  --cream: #faf8f1;
  --paper: #fffdf8;
  --line: #dce3d8;
  --sage: #e9eee2;
  --sans: "Hindi Sans", "Noto Sans Devanagari", system-ui, sans-serif;
  --serif: "Hindi Serif", "Noto Serif Devanagari", Georgia, serif;
  --page-width: 1300px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --radius: 10px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 108px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.7 var(--sans); }
img { display: block; max-width: 100%; }
figure, p, ul, ol, dl, dd, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.31; }
h1, h2 { font-family: var(--serif); }
a { color: var(--link); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button, select, input { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #306ebc; outline-offset: 4px; }
main:focus { outline: none; }
.wrap { width: min(var(--page-width), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: fixed; z-index: 30; inset: 12px auto auto 12px; padding: 12px 16px; transform: translateY(-180%); background: white; border: 1px solid var(--pine); border-radius: 4px; }
.skip:focus { transform: none; }

.topbar { position: sticky; z-index: 10; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead { display: flex; align-items: center; justify-content: space-between; min-height: 77px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; flex: 0 0 auto; line-height: 1.18; }
.brand-mark { display: grid; place-items: center; position: relative; width: 42px; height: 42px; color: white; background: var(--pine); border-radius: 7px; font: 700 27px/.9 Georgia, serif; }
.brand-mark span { position: absolute; bottom: 8px; right: 8px; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.brand-name { display: block; font: 700 1.08rem/1.18 system-ui, sans-serif; white-space: nowrap; }
.brand-language { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.top-nav, .site-tools { display: flex; align-items: center; gap: clamp(13px, 1.65vw, 26px); }
.top-nav { justify-content: center; flex: 1; }
.top-nav > a, .top-nav summary, .site-tools summary, .search-button, .mobile-nav-toggle {
  font-weight: 700; font-size: .88rem; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.top-nav > a, .top-nav summary, .site-tools summary { display: flex; align-items: center; min-height: 44px; gap: 8px; }
.top-nav > a:hover, .top-nav > a[aria-current="page"], .nav-dropdown[open] > summary { text-decoration: underline; }
.nav-dropdown { position: relative; }
.nav-dropdown summary { list-style: none; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: ""; inline-size: 6px; block-size: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.nav-dropdown[open] summary::after { transform: translateY(2px) rotate(225deg); }
.popup { position: absolute; z-index: 12; inset: calc(100% + 5px) auto auto 0; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 26px #142b2720; }
.visa-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; width: min(460px, 80vw); padding: 21px; }
.menu-topic { display: block; margin-bottom: 4px; color: var(--muted); font-size: .73rem; font-weight: 700; }
.popup a { display: block; padding-block: 5px; color: var(--ink); line-height: 1.4; text-decoration: none; }
.popup a:hover, .popup a[aria-current="page"] { color: var(--link); text-decoration: underline; }
.menu-topic, .route-code { line-height: 1.3; }
.route-code { padding-left: .34em; font: 700 .73em/1.3 system-ui, sans-serif; color: var(--link); white-space: nowrap; }
.language-panel { inset-inline: auto 0; min-width: 175px; }
.language-panel > * { display: block; padding: 7px 9px; font-size: .88rem; }
.language-panel > span { color: var(--link); font-weight: 700; background: var(--sage); border-radius: 5px; }
.search-button, .mobile-nav-toggle { display: flex; justify-content: center; align-items: center; min-height: 42px; gap: 9px; background: transparent; border: 1px solid var(--line); border-radius: 7px; padding: 5px 12px; }
.search-button:hover, .mobile-nav-toggle:hover { background: var(--sage); }
.search-icon { display: block; position: relative; width: 12px; height: 12px; border: 1.7px solid currentColor; border-radius: 50%; margin-right: 3px; }
.search-icon::after { content: ""; position: absolute; right: -4px; bottom: -3px; width: 6px; height: 1.7px; background: currentColor; transform: rotate(47deg); transform-origin: left; }
.mobile-nav-toggle { display: none; }

.home-hero { display: grid; grid-template-columns: 1.11fr 1fr; border-radius: var(--radius); overflow: hidden; margin-top: 24px; background: var(--pine); color: var(--paper); }
.hero-content { padding: clamp(35px, 5.5vw, 79px) clamp(24px, 5.2vw, 70px); align-self: center; }
.hero-label { color: var(--gold); font-weight: 700; line-height: 1.45; font-size: .91rem; margin-bottom: 18px; }
h1 { font-size: clamp(2.1rem, 5vw, 4.65rem); }
.hero-content h1 { max-width: 11em; }
.hero-deck { color: var(--pine-text); font-size: clamp(1rem, 1.8vw, 1.23rem); line-height: 1.8; margin-top: 23px; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 23px; margin-top: 31px; }
.button { display: inline-flex; gap: 10px; align-items: center; justify-content: center; line-height: 1.4; padding: 12px 17px; min-height: 48px; min-width: 44px; border-radius: 5px; font-weight: 700; text-decoration: none; }
.button-gold { background: var(--gold); color: #173630; }
.button-gold:hover { background: #f8d49a; }
.hero-jump { display: inline-flex; align-items: center; min-height: 44px; gap: 7px; color: var(--paper); font-size: .94rem; }
.hero-jump::after, .section-jump::after, .source-jump::after, .up-link::after,
.goal-card a::after, .text-action::after {
  content: "";
  display: inline-block;
  flex: none;
  inline-size: .38em;
  block-size: .38em;
  margin-inline-start: .5em;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg);
  vertical-align: .14em;
}
.hero-jump::after, .section-jump::after, .source-jump::after { transform: rotate(45deg); vertical-align: .25em; }
.hero-jump::after { margin-inline-start: 0; }
.up-link::after { transform: rotate(225deg); vertical-align: 0; }
.photo { min-width: 0; position: relative; background: #d8dfd1; }
.photo img { height: 100%; width: 100%; object-fit: cover; }
.photo figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 14px; background: var(--paper); padding: 7px 12px; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.photo figcaption a { color: inherit; }
.hero-photo { min-height: 460px; }
.hero-photo img { position: absolute; object-position: 50% 63%; }
.hero-photo figcaption { position: absolute; inset: auto 0 0 0; background: #16332ddb; color: white; }

.pathways { margin-block: clamp(38px, 5.7vw, 76px); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; gap: 14px; }
.section-heading h2, .life-copy h2 { font-size: clamp(1.65rem, 3vw, 2.7rem); }
.section-jump, .text-action { font-weight: 700; text-decoration: none; line-height: 1.6; }
.section-jump:hover, .text-action:hover { text-decoration: underline; }
.section-jump { white-space: nowrap; font-size: .92rem; }
.goal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; }
.goal-card { display: flex; flex-direction: column; gap: 9px; padding: clamp(16px, 2.4vw, 28px); border: 1px solid var(--line); border-top: 3px solid #84a192; border-radius: 7px; background: var(--paper); }
.goal-card h3 { font-size: clamp(1.08rem, 2vw, 1.48rem); }
.goal-card p { color: var(--muted); font-size: .93rem; line-height: 1.7; }
.goal-card > ul { display: flex; flex-wrap: wrap; gap: 5px 14px; list-style: none; padding: 0; margin-top: auto; padding-top: 7px; }
.goal-card a { display: inline-flex; align-items: center; min-height: 32px; gap: 5px; font-weight: 700; font-size: .86rem; text-decoration: none; }
.goal-card a:hover { text-decoration: underline; }
.goal-card a::after { margin-inline-start: 2px; }

.life-story { display: grid; grid-template-columns: 1.26fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--sage); margin-bottom: clamp(36px, 5.5vw, 72px); }
.coast-photo { display: flex; flex-direction: column; }
.coast-photo img { aspect-ratio: 16 / 10; height: 100%; min-height: 220px; object-position: 56% 59%; }
.life-copy { align-self: center; padding: clamp(25px, 5vw, 68px); }
.eyebrow { color: var(--link); font-size: .82rem; font-weight: 700; margin-bottom: 12px; }
.life-copy h2 { margin-bottom: 16px; }
.life-copy > p:not(.eyebrow) { color: var(--muted); margin-bottom: 20px; }

.page-intro { display: grid; gap: clamp(24px, 4.5vw, 62px); margin-block: 26px 34px; align-items: center; padding: clamp(22px, 3.6vw, 46px); background: var(--sage); border: 1px solid var(--line); border-radius: var(--radius); }
.page-intro.with-photo { grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); }
.breadcrumb { margin-bottom: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 7px; font-size: .82rem; }
.breadcrumb a { color: inherit; }
.intro-copy h1 { font-size: clamp(1.85rem, 4.1vw, 3.7rem); }
.page-deck { margin-top: 17px; font-size: clamp(1rem, 1.65vw, 1.19rem); line-height: 1.75; color: var(--muted); max-width: 58ch; }
.source-jump { display: inline-block; font-size: .86rem; font-weight: 700; margin-top: 17px; }
.guide-photo { border-radius: 7px; overflow: hidden; }
.guide-photo img { aspect-ratio: 4 / 3; max-height: 350px; object-position: 50% 50%; }

.reading-layout { display: grid; grid-template-columns: minmax(150px, 225px) minmax(0, 810px); gap: clamp(22px, 4.5vw, 65px); justify-content: center; margin-block: 46px 80px; }
.page-index { align-self: start; position: sticky; top: 102px; max-height: calc(100vh - 128px); overflow: auto; padding: 2px 14px 2px 0; }
.page-index h2 { font: 700 .88rem/1.4 var(--sans); margin-bottom: 12px; }
.page-index ul { display: grid; gap: 9px; list-style: none; padding: 0 0 0 12px; border-left: 1px solid #a7baac; }
.page-index a { font-size: .84rem; line-height: 1.58; text-decoration: none; display: block; color: var(--muted); }
.page-index a:hover, .page-index a[aria-current="location"] { color: var(--link); text-decoration: underline; }
.prose { min-width: 0; font-size: clamp(1.02rem, 1.2vw, 1.14rem); line-height: 1.94; overflow-wrap: anywhere; }
.prose p, .prose > ul, .prose > ol, .prose blockquote, .prose .table-scroll { margin: 0 0 1.16em; }
.prose > p:first-child::first-letter { font-weight: 700; }
.prose h2 { font-size: clamp(1.35rem, 2.3vw, 2.05rem); margin: 1.7em 0 .55em; }
.prose h3 { font: 700 1.18em/1.45 var(--sans); margin: 1.44em 0 .44em; }
.prose h4 { font-weight: 700; margin: 1.3em 0 .45em; }
.prose ul, .prose ol { padding-inline-start: 1.6em; }
.prose li + li { margin-top: .42em; }
.prose code { font-size: .87em; background: var(--sage); }
.prose a { text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose blockquote { border-inline-start: 3px solid #8aab96; background: var(--sage); padding: 12px 15px; }
.prose blockquote p:last-child { margin: 0; }
.prose #official-sources { border-top: 1px solid var(--line); padding-top: 22px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.prose table { min-width: 520px; table-layout: auto; width: 100%; border-collapse: collapse; font-size: .91em; line-height: 1.72; }
.prose th { background: var(--sage); text-align: start; font-weight: 700; }
.prose th, .prose td { padding: 12px 14px; vertical-align: top; border-block-end: 1px solid var(--line); }
.prose tr:last-child td { border-block-end: none; }
.prose td:first-child { min-width: 10em; }
.prose td a { font-weight: 700; }

.comparison { margin-top: 24px; }
.path-picker { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(230px, .9fr); overflow: hidden; }
.picker-main { padding: clamp(19px, 3vw, 39px); min-width: 0; }
.picker-main h2 { font-size: clamp(1.45rem, 2.65vw, 2rem); margin-bottom: 20px; }
.compare-selects, .comparison-result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.profile-panel { background: var(--sage); padding: clamp(17px, 2.4vw, 30px); }
.profile-panel h3 { margin-bottom: 18px; }
.field { display: grid; gap: 5px; font-size: .91rem; font-weight: 700; }
.field select, .field input { border: 1px solid #9db2a9; border-radius: 5px; background: var(--paper); color: var(--ink); width: 100%; padding: 9px 12px; min-height: 45px; font-weight: 400; }
.profile-panel .field + .field { margin-top: 14px; }
.profile-note { margin-block: 16px 13px; font-size: .9rem; color: var(--muted); }
.profile-panel .text-action { font-size: .87rem; }
.comparison-result { margin-top: 19px; }
.result-route { padding: 16px; border: 1px solid var(--line); border-radius: 5px; background: var(--cream); overflow-wrap: anywhere; }
.result-route h3 { margin-bottom: 9px; }
.result-route dl { font-size: .94rem; }
.result-route dt { color: var(--link); font-weight: 700; }
.result-route dl div { margin-bottom: 10px; }
.result-route > a { font-size: .89rem; }

.footer { background: var(--pine); color: #edf1de; }
.footer-main { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; padding-block: 27px; }
.footer .brand, .footer .brand-language, .footer a { color: #edf1de; }
.footer .brand-mark { background: #2c5448; }
.footer nav { display: flex; flex-wrap: wrap; gap: 9px 17px; }
.footer nav a, .up-link { font-size: .86rem; }
.search-dialog { width: min(630px, 100% - 28px); max-height: min(720px, calc(100vh - 42px)); padding: clamp(19px, 4vw, 32px); border: 1px solid var(--line); border-radius: 11px; margin: auto; background: var(--paper); color: var(--ink); }
.search-dialog::backdrop { background: #102621af; }
.search-dialog h2 { margin-bottom: 17px; padding-right: 38px; font-size: clamp(1.3rem, 4vw, 1.95rem); }
.dialog-close { position: absolute; right: 11px; top: 10px; display: grid; place-items: center; padding: 0; background: transparent; border: 1px solid var(--line); border-radius: 7px; min-width: 40px; min-height: 40px; }
.dialog-close::before, .dialog-close::after { content: ""; grid-area: 1 / 1; width: 14px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.dialog-close::after { transform: rotate(-45deg); }
.dialog-close:hover { background: var(--sage); }
.search-status { color: var(--muted); margin-block: 12px; font-size: .9rem; }
.search-results { display: grid; gap: 8px; list-style: none; padding: 0; }
.search-results a { display: block; padding: 11px 13px; border: 1px solid var(--line); border-radius: 5px; text-decoration: none; font-weight: 700; }
.search-results a:hover { background: var(--sage); }
.search-results small { display: block; color: var(--muted); margin-top: 3px; font-weight: 400; }

@media (max-width: 1080px) {
  .top-nav, .site-tools { gap: 14px; }
  .top-nav > a, .top-nav summary { font-size: .81rem; }
  .masthead { gap: 14px; }
  .search-text { display: none; }
}
@media (max-width: 920px) {
  .masthead { flex-wrap: wrap; justify-content: flex-start; min-height: 66px; padding-block: 9px; gap: 6px 12px; }
  .site-tools { order: 2; gap: 10px; }
  .mobile-nav-toggle:not([hidden]) { display: flex; order: 1; margin-left: auto; }
  .top-nav { order: 3; width: 100%; flex-basis: 100%; justify-content: flex-start; flex-wrap: wrap; border-top: 1px solid var(--line); gap: 0 15px; padding-top: 4px; }
  .top-nav[data-collapsed="true"] { display: none; }
  .top-nav .popup { width: min(450px, 95vw - 2 * var(--gutter)); }
  .top-nav > a, .top-nav summary { font-size: .87rem; }
  .hero-photo { min-height: 380px; }
  .reading-layout { gap: 20px; grid-template-columns: minmax(125px, 175px) minmax(0, 1fr); margin-top: 36px; }
}
@media (max-width: 760px) {
  .home-hero { grid-template-columns: 1fr; margin-top: 14px; }
  .hero-content { padding: 32px clamp(21px, 6vw, 42px) 27px; }
  .hero-content h1 { font-size: clamp(2.1rem, 7.5vw, 3.17rem); max-width: 14em; }
  .hero-deck { margin-top: 12px; max-width: 35ch; }
  .hero-label { margin-bottom: 12px; }
  .hero-actions { margin-top: 17px; gap: 8px 17px; }
  .hero-photo { min-height: clamp(240px, 61vw, 340px); }
  .hero-photo img { object-position: 50% 65%; }
  .goal-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .life-story, .page-intro.with-photo { grid-template-columns: 1fr; }
  .life-story .photo img { height: auto; min-height: 0; }
  .life-copy { padding: 23px 20px 28px; }
  .life-copy h2 { margin-bottom: 11px; }
  .life-copy > p:not(.eyebrow) { margin-bottom: 13px; }
  .page-intro { margin-block: 15px 20px; padding: 20px; }
  .guide-photo img { aspect-ratio: 16 / 9; }
  .reading-layout { display: block; margin-block: 24px 54px; }
  .page-index { position: static; max-height: none; padding: 12px 16px; margin-bottom: 23px; background: var(--sage); border-radius: 6px; }
  .page-index h2 { margin-bottom: 8px; }
  .page-index li a { min-height: 24px; padding-block: 2px; }
  .path-picker { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 465px) {
  :root { --gutter: 15px; }
  .brand { gap: 8px; }
  .brand-mark { width: 35px; height: 35px; font-size: 23px; }
  .brand-mark span { right: 7px; bottom: 7px; width: 5px; height: 5px; }
  .brand-name { font-size: .91rem; }
  .brand-language { font-size: .69rem; }
  .mobile-nav-toggle, .search-button { padding-inline: 8px; }
  .site-tools { gap: 7px; }
  .site-tools summary { font-size: .79rem; gap: 4px; }
  .top-nav { gap: 0 12px; }
  .top-nav > a, .top-nav summary { font-size: .81rem; }
  .goal-card { padding: 13px; gap: 7px; }
  .goal-card p { font-size: .83rem; }
  .goal-card > ul { padding-top: 3px; }
  .goal-card a { font-size: .79rem; }
  .compare-selects, .comparison-result { grid-template-columns: 1fr; }
  .footer-main { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 365px) {
  :root { --gutter: 12px; }
  .masthead { column-gap: 8px; }
  .brand { gap: 7px; }
  .brand-name { font-size: .86rem; }
  .site-tools { gap: 6px; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button, summary { transition: color 130ms, background-color 130ms; }
}
@media print {
  .topbar, .skip, .footer, .hero-actions, .pathways, .life-story, .page-index, .comparison { display: none; }
  body { background: white; color: black; }
  .reading-layout, .page-intro { display: block; width: 100%; }
  .home-hero { display: block; background: white; color: black; }
  .hero-content { padding: 0; }
  .hero-label, .hero-deck, .page-deck { color: black; }
  .hero-photo, .guide-photo { display: none; }
  .wrap { margin-inline: auto; }
  .table-scroll { overflow: visible; }
  .prose table { min-width: 0; }
}
