:root {
  --ink: #122033;
  --navy: #07284a;
  --navy-2: #0a3560;
  --blue: #0b4f8a;
  --blue-bright: #1463b0;
  --sky: #1c7ed6;
  --mist: #e7f1fb;
  --paper: #f4f8fb;
  --white: #ffffff;
  --line: #d3e2ef;
  --muted: #3a5168;
  --shadow: 0 14px 36px rgba(7, 40, 74, 0.08);
  --serif: Fraunces, Georgia, "Iowan Old Style", serif;
  --sans: Outfit, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--navy);
}
p { margin: 0 0 1rem; }
a { color: var(--blue-bright); }
:focus-visible { outline: 3px solid #1463b0; outline-offset: 2px; }
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: white;
  color: var(--navy);
  padding: 8px 12px;
  z-index: 30;
}
.skip:focus { top: 12px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 72px 0; }
.section-tight { padding-top: 28px; }
section[id], div[id] { scroll-margin-top: 108px; }

.topbar { background: var(--navy); color: #d7e8f8; font-size: 13px; }
.topbar a { color: #d7e8f8; text-decoration: none; }
.topbar-inner { display: flex; justify-content: space-between; gap: 12px; min-height: 36px; align-items: center; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 16px; min-height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.mark {
  width: 58px;
  height: 52px;
  flex: none;
  object-fit: contain;
  object-view-box: inset(16% 8% 4% 8%);
  background: #fff;
  border-radius: 8px;
}
.logo-text strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--navy); line-height: 1.1; }
.logo-text span { display: block; font-size: 12px; color: var(--muted); letter-spacing: 0.03em; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link, .drop-panel a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-link[aria-current="page"] { color: var(--blue); }
.drop { position: relative; }
.drop-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow);
}
.drop-panel a { display: block; }
.drop-panel a:hover, .nav-link:hover { background: var(--mist); }
.drop:hover .drop-panel, .drop:focus-within .drop-panel, .drop.is-open .drop-panel { display: block; }
.nav-cta { position: relative; margin-left: 12px; flex: none; }
.nav-cta > .btn {
  min-height: 42px;
  padding: 0 18px;
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-size: 14.5px;
  box-shadow: 0 8px 18px rgba(11, 79, 138, 0.22);
}
.nav-cta > .btn:hover,
.nav-cta > .btn[aria-current="page"],
.nav-cta.is-open > .btn {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  color: #fff;
}
.nav-cta .caret {
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid white;
}
.nav-cta .drop-panel { left: auto; right: 0; }
.nav-cta .drop-panel a { color: var(--ink); font-weight: 500; min-height: 0; box-shadow: none; }
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 12px;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  text-decoration: none;
  border: 1px solid var(--blue);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-small { min-height: 40px; margin-left: 8px; }
.btn-light { background: white; color: var(--navy); border-color: white; }
.btn-ghost { background: transparent; color: white; border-color: rgba(255, 255, 255, 0.65); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: white; border-color: white; }
.btn-line { background: white; color: var(--navy); border-color: var(--line); }
.btn-line:hover { background: var(--mist); color: var(--navy); border-color: #b7cbe0; }
.btn[disabled] { opacity: 0.7; cursor: wait; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(140, 198, 255, 0.28), transparent 55%),
    linear-gradient(165deg, #041526 0%, #0a3a6d 52%, #1567b0 100%);
  color: white;
  padding: 78px 0 108px;
}
.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border: 48px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  right: -140px;
  top: -180px;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 36px; align-items: end; }
.kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
}
.kicker-light { color: #c5e2ff; }
.hero h1, .page-hero h1 { color: white; font-size: clamp(2.4rem, 5vw, 4.15rem); margin: 0 0 14px; }
.hero-lead { font-size: 1.12rem; color: #e7f2fb; max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; }
.hero-meta { color: #c5dcf3; font-size: 14px; margin: 0; }
.hero-aside {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 18px;
}
.hero-aside p { margin: 0; color: #e7f2fb; font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; }

.path-grid, .grid-4, .grid-3, .grid-2, .footer-grid, .split, .person-grid, .pair { display: grid; gap: 16px; }
.path-grid { grid-template-columns: repeat(4, 1fr); margin-top: -52px; position: relative; z-index: 2; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2, .split { grid-template-columns: 1.15fr 0.85fr; gap: 28px; }
.split { align-items: start; gap: 36px; }
.split .grid-3, .split .grid-4, .pair { grid-template-columns: 1fr 1fr; }
.person-grid { grid-template-columns: 1fr 1fr; }

.path-card, .card, .person, .stat, .form, .note {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(7, 40, 74, 0.04);
}
.path-card, .card-link { display: flex; flex-direction: column; gap: 8px; padding: 20px; text-decoration: none; color: inherit; min-height: 168px; }
.path-card strong, .card h3, .person h3 { font-family: var(--serif); color: var(--navy); }
.path-card strong { font-size: 1.45rem; }
.path-card span, .card p, .muted { color: var(--muted); }
.path-card:hover, .card-link:hover { transform: translateY(-2px); border-color: #8eb6dc; }
.card, .stat, .note, .person { padding: 20px; }
.card h3, .stack-block h2 { margin: 0 0 8px; }
.card .tag { align-self: flex-start; }

.band { background: var(--navy); color: white; padding: 64px 0; }
.band h2, .band p { color: white; }
.band p { font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.35; max-width: 20em; margin: 0; }
.section-head { max-width: 42rem; margin-bottom: 22px; }
.section-head h2, .stack-block h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 8px; }
.lede { color: var(--muted); font-size: 1.05rem; }

.page-hero {
  background:
    radial-gradient(800px 280px at 100% 0%, rgba(140, 198, 255, 0.25), transparent 50%),
    linear-gradient(165deg, #04182e 0%, #0a3d73 60%, #0e5eab 100%);
  color: white;
  padding: 46px 0 40px;
}
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
.hero-lead { max-width: 44rem; }
.crumbs { font-size: 14px; color: #d5e8fa; margin-bottom: 10px; }
.crumbs a { color: white; }
.prose { max-width: 76ch; }
.prose li { margin: 0.35rem 0; }
.stack-block { margin-bottom: 28px; }
.link-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.subnav a {
  text-decoration: none;
  background: white;
  border: 1px solid var(--line);
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--mist);
  border-radius: 999px;
  padding: 4px 8px;
}
.callout {
  background: var(--mist);
  border-left: 4px solid var(--blue);
  padding: 14px 16px;
  border-radius: 0 12px 12px 0;
  margin: 0 0 22px;
  color: var(--navy);
}
.alert { background: #e7f6ee; border: 1px solid #b7e4c7; color: #0f3d28; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; }
.alert-error { background: #fdecee; border-color: #f3c2c8; color: #6d1522; }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); }
.person { display: flex; gap: 14px; align-items: flex-start; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: white;
  display: grid; place-items: center;
  font-weight: 600; flex: none;
}
.person h3 { margin: 0 0 4px; font-size: 1.2rem; }
.person p { margin: 0; color: var(--muted); }

.table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 14px; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); background: #f3f8fc; }

.form {
  position: sticky;
  top: 96px;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(7, 40, 74, 0.1);
}
.form > h2 {
  margin: 0;
  padding: 20px 22px 18px;
  background: linear-gradient(165deg, #07284a 0%, #0e5eab 100%);
  color: white;
  font-size: 1.45rem;
}
.form > .fine { margin: 0; padding: 14px 22px 0; }
.form form { padding: 18px 22px 22px; }
.form .btn { width: 100%; }
.form label, .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--navy); }
.field em, .fine { font-style: normal; font-weight: 500; color: var(--muted); }
.fine { font-size: 13px; }
.field input, .field select, .field textarea, .filter-bar input, .admin-login input {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid #c5d7e8;
  border-radius: 10px;
  background: #f5f9fc;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  background: white;
  border-color: var(--blue-bright);
  outline: 3px solid rgba(20, 99, 176, 0.18);
  outline-offset: 1px;
}
.filter-bar { margin: 0 0 18px; }
.filter-bar label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.filter-bar input { max-width: 440px; }
address { font-style: normal; }
.map { width: 100%; height: 280px; border: 0; border-radius: 12px; background: var(--mist); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.site-footer { background: #06182c; color: #d5e4f2; padding: 48px 0 20px; }
.site-footer h2 { color: white; font-size: 1.05rem; margin: 0 0 10px; }
.site-footer a, .site-footer p { color: #d5e4f2; }
.site-footer a { display: block; text-decoration: none; margin: 0 0 6px; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.logo-on-dark .logo-text strong, .logo-on-dark .logo-text span { color: white; }
.devanagari { margin-top: 10px; }
.disclaimer { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; color: #b7c9da; }
.disclaimer p { color: #b7c9da; }

.admin-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.admin-login { max-width: 440px; margin: 40px auto; }
.submission { border-top: 1px solid var(--line); padding: 12px 0; }
.submission h3 { margin: 0 0 4px; font-size: 1.05rem; }
.submission dl { display: grid; grid-template-columns: 140px 1fr; gap: 4px 10px; margin: 8px 0 0; }
.submission dt { color: var(--muted); }
.submission dd { margin: 0; }

@media (min-width: 981px) {
  .nav .drop:nth-child(n+6) .drop-panel { left: auto; right: 0; }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; margin-left: 8px; }
  .nav-cta { margin-left: auto; }
  #site-nav .drop-panel { display: grid; position: static; box-shadow: none; border: 0; padding: 0 0 8px 12px; }
  .nav-cta .drop-panel { display: none; position: absolute; right: 0; left: auto; top: calc(100% + 6px); min-width: 220px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: white;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 18px 16px;
    margin: 0;
  }
  .nav.is-open { display: flex; z-index: 30; }
  .btn-small { margin: 8px 0 0; }
  .hero-grid, .split, .grid-2, .footer-grid, .person-grid { grid-template-columns: 1fr; }
  .split .grid-3, .split .grid-4, .pair { grid-template-columns: 1fr; }
  .form { position: static; }
  .hero-grid > *, .split > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
  .path-grid, .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .header-bar { position: static; }
  h1, .hero-lead, .hero-meta { overflow-wrap: break-word; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .path-grid, .grid-4, .grid-3, .pair { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .topbar-inner { flex-direction: column; align-items: flex-start; padding: 6px 0; }
  .nav-cta > .btn { padding: 0 10px; font-size: 13px; min-height: 36px; }
  .submission dl { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .logo-text span { display: none; }
  .mark { width: 42px; height: 38px; }
  .header-bar { gap: 8px; }
  .nav-cta > .btn { font-size: 12px; padding: 0 8px; }
  .nav-toggle { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .path-card, .card-link { transition: none; }
}
@media print {
  .topbar, .site-header, .nav-toggle, .site-footer, .hero-actions, .form { display: none !important; }
  body { background: white; }
  .page-hero, .hero { background: white; color: black; }
  .page-hero h1, .hero h1, .kicker-light, .hero-lead { color: black; }
}
