/* MIL South Asia — Chapter website
   South Asian Network for MIL Pedagogy, Resources and Assessment
   Plain CSS, no build step. Colours are defined once below. */

:root {
  --navy-900: #0b1626;
  --navy-800: #11213a;
  --navy-700: #1a2f50;
  --gold-500: #c99a2e;
  --gold-400: #ddb352;
  --gold-100: #f8efd9;
  --ink: #18202b;
  --ink-soft: #4a5566;
  --line: #e3e6eb;
  --paper: #ffffff;
  --paper-alt: #f6f5f1;

  /* focus-area accents */
  --ped: #1f7a6d;      /* pedagogy */
  --ped-bg: #e6f3f0;
  --res: #b5532a;      /* resources */
  --res-bg: #fbece4;
  --ass: #4a4fa3;      /* assessment */
  --ass-bg: #ebecf8;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 22, 38, .06), 0 8px 24px rgba(11, 22, 38, .06);
  --max: 1180px;
  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--gold-500); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.25; margin: 0 0 .5em; color: var(--navy-900); }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }

/* ---------- top strip & header ---------- */
.strip {
  background: var(--navy-900);
  color: #c6cfdc;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 16px;
}
.strip strong { color: var(--gold-400); font-weight: 600; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 33, 58, .97);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 42px; height: 42px; flex: none; border-radius: 10px;
  background: var(--gold-500); color: var(--navy-900);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-family: var(--serif); font-size: 1.05rem; }
.brand-text span { font-size: .72rem; color: #aab6c7; letter-spacing: .02em; }
/* header: full Chapter name, wrapped onto two lines */
.site-header .brand-text { max-width: 410px; }
.site-header .brand-text b { font-size: .98rem; line-height: 1.3; max-width: 330px; text-wrap: balance; }
.site-header .brand-text span { margin-top: 4px; letter-spacing: .01em; font-size: .73rem; text-wrap: balance; line-height: 1.35; color: var(--gold-400); }
.site-header .wrap { padding-block: 10px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #d9e0ea; text-decoration: none; font-size: .9rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover, .nav a.active { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a.nav-cta { background: var(--gold-500); color: var(--navy-900); font-weight: 600; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--gold-400); color: var(--navy-900); }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255, 255, 255, .25); color: #fff;
  border-radius: 8px; padding: 8px 12px; font: inherit; font-size: .9rem; cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(201, 154, 46, .18), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(31, 122, 109, .22), transparent 60%),
    var(--navy-800);
  color: #e6ebf2;
  padding: 84px 0 72px;
}
.hero h1 { color: #fff; max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero .lede { font-size: 1.15rem; max-width: 58ch; color: #c9d3e0; margin-bottom: 30px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); color: var(--navy-900); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); color: #fff; }
.btn-line { border-color: var(--line); color: var(--navy-800); background: #fff; }
.btn-line:hover { border-color: var(--navy-700); color: var(--navy-900); }

.hero-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px; padding: 26px;
}
.hero-card h2 { font-size: 1rem; font-family: var(--sans); color: #fff; letter-spacing: .02em; margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { background: rgba(11, 22, 38, .45); border-radius: 12px; padding: 16px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--gold-400); line-height: 1.1; }
.stat span { font-size: .82rem; color: #b8c3d3; }
.countries { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; font-size: .78rem; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: #e6ebf2;
}

/* ---------- sections ---------- */
section { padding: 88px 0; }
.alt { background: var(--paper-alt); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head .eyebrow { color: var(--gold-500); }
.section-head p { color: var(--ink-soft); font-size: 1.07rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.about-grid p { color: var(--ink-soft); }
.quote {
  border-left: 4px solid var(--gold-500); background: var(--gold-100);
  padding: 22px 26px; border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif); font-size: 1.15rem; color: var(--navy-900); line-height: 1.55;
}
.facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.facts li { display: flex; gap: 14px; align-items: baseline; font-size: .95rem; color: var(--ink-soft); }
.facts li b { color: var(--navy-900); min-width: 112px; font-weight: 600; }

/* focus areas */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.focus {
  background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  border-top: 5px solid var(--accent); display: flex; flex-direction: column;
}
.focus .num {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-bg); color: var(--accent); font-weight: 700; margin-bottom: 16px;
}
.focus p { color: var(--ink-soft); font-size: .96rem; }
.focus ul { margin: 0 0 16px; padding-left: 18px; color: var(--ink-soft); font-size: .93rem; }
.focus ul li { margin-bottom: 4px; }
.focus .served {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: .82rem; color: var(--ink-soft);
}
.focus .served b { color: var(--accent); }
.f-ped { --accent: var(--ped); --accent-bg: var(--ped-bg); }
.f-res { --accent: var(--res); --accent-bg: var(--res-bg); }
.f-ass { --accent: var(--ass); --accent-bg: var(--ass-bg); }
.crosscut {
  margin-top: 22px; background: var(--navy-800); color: #d4dbe6; border-radius: var(--radius);
  padding: 22px 28px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.crosscut b { color: var(--gold-400); font-family: var(--serif); font-size: 1.05rem; }

/* platforms */
.platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.platform {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px;
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.platform:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.platform-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.p-logo {
  font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--navy-900);
  display: flex; align-items: center; gap: 12px;
}
.p-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-bg); color: var(--accent);
}
.p-icon svg { width: 26px; height: 26px; }
.status {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.status.live { background: #e3f4e8; color: #1d6b37; }
.status.soon { background: var(--gold-100); color: #8a6512; }
.status.dev { background: var(--ass-bg); color: var(--ass); }
.platform .full { font-weight: 600; color: var(--navy-800); margin-bottom: 8px; font-size: .98rem; }
.platform p { color: var(--ink-soft); font-size: .95rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .88rem; margin: 4px 0 20px; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tag { font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-bg); color: var(--accent); }
.platform .btns { margin-top: auto; }
.platform .btn { padding: 10px 16px; font-size: .88rem; }

/* journal */
.journal {
  margin-top: 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 30px;
}
.journal .issn { font-size: .8rem; color: var(--ink-soft); letter-spacing: .05em; }
.journal h3 { margin-bottom: 4px; }
.journal p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.j-cover {
  width: 64px; height: 84px; border-radius: 6px; background: var(--navy-800); color: var(--gold-400);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: .9rem; text-align: center; line-height: 1.1;
}

/* roadmap */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.phase { padding: 0 26px 0 0; position: relative; }
.phase::before {
  content: ""; position: absolute; top: 15px; left: 34px; right: 0; height: 2px; background: var(--line);
}
.phase:last-child::before { display: none; }
.phase .dot {
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy-800); color: var(--gold-400);
  display: grid; place-items: center; font-weight: 700; font-size: .9rem; position: relative; z-index: 1; margin-bottom: 18px;
}
.phase.now .dot { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 0 0 6px var(--gold-100); }
.phase .when { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-500); }
.phase h3 { margin: 4px 0 10px; }
.phase ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: .93rem; }
.phase ul li { margin-bottom: 5px; }
.milweek {
  margin-top: 40px; padding: 20px 26px; border-radius: var(--radius); background: var(--gold-100);
  color: var(--navy-900); font-size: .97rem;
}

/* members */
.members-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; align-items: start; }
.chair {
  background: var(--navy-800); color: #d4dbe6; border-radius: 18px; padding: 30px;
}
.chair .role { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-400); }
.chair h3 { color: #fff; font-size: 1.35rem; margin: 8px 0 6px; }
.chair p { font-size: .93rem; color: #b8c3d3; }
.chair .note { font-size: .85rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; margin: 18px 0 0; }
.country { margin-bottom: 26px; }
.country h3 { font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.country h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.person b { display: block; color: var(--navy-900); font-size: .97rem; }
.person span { font-size: .85rem; color: var(--ink-soft); line-height: 1.45; display: block; }
.person.partner { border-style: dashed; }
.people.courses { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .people.courses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .people.courses { grid-template-columns: 1fr; } }

/* join */
.join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.join-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.join-card p { color: var(--ink-soft); font-size: .95rem; }
.join-card .btns { margin-top: auto; }
.join-card .btn { padding: 10px 16px; font-size: .88rem; }

.contact {
  margin-top: 44px; background: var(--navy-800); color: #d4dbe6; border-radius: 18px; padding: 36px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
}
.contact h2 { color: #fff; font-size: 1.6rem; }
.contact p { color: #b8c3d3; margin: 0; }
.contact address { font-style: normal; font-size: .95rem; line-height: 1.7; }
.contact address a { color: var(--gold-400); }

/* footer */
.site-footer { background: var(--navy-900); color: #9fabbd; padding: 56px 0 28px; font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { font-family: var(--sans); color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c6cfdc; text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer .brand { margin-bottom: 14px; }
.foot-base {
  border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem;
}

/* sub page (MILaiLAB) */
.page-hero { background: var(--navy-800); color: #d4dbe6; padding: 72px 0 60px; }
.page-hero h1 { color: #fff; }
.page-hero .lede { font-size: 1.12rem; max-width: 62ch; color: #c9d3e0; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tool p { color: var(--ink-soft); font-size: .93rem; margin: 0; }
.tool .status { display: inline-block; margin-bottom: 12px; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.principle { border-left: 3px solid var(--gold-500); padding: 4px 0 4px 16px; }
.principle b { display: block; color: var(--navy-900); }
.principle span { font-size: .9rem; color: var(--ink-soft); }

/* inner-page title band */
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 22ch; }
.crumb { font-size: .85rem; color: #aab6c7; margin-bottom: 22px; }
.crumb a { color: #d9e0ea; text-decoration: none; }
.crumb a:hover { color: var(--gold-400); }

/* inner-page title band: title on the left, key-facts panel on the right */
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hp-list > li, .hp-list a.row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: rgba(11, 22, 38, .45); border-radius: 10px; padding: 11px 14px;
  color: #d4dbe6; font-size: .9rem; line-height: 1.45;
}
.hp-list > li:has(> a.row) { padding: 0; background: none; }
.hp-list a.row { width: 100%; text-decoration: none; transition: background .15s; }
.hp-list a.row:hover { background: rgba(11, 22, 38, .8); color: #fff; }
.hp-list b { color: #fff; font-weight: 600; }
.hp-list a:not(.row) { color: var(--gold-400); overflow-wrap: anywhere; text-align: right; }
.hp-list .status { flex: none; }
.hp-count { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--gold-400); line-height: 1; }
.hp-steps > li { justify-content: flex-start; align-items: flex-start; }
.hp-steps a { text-align: left !important; }
.hp-num {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-500); color: var(--navy-900); font-weight: 700; font-size: .8rem;
}
.hp-note { margin: 14px 0 0; font-size: .85rem; line-height: 1.55; color: #b8c3d3; }
.hp-note b { color: #fff; }
.hp-note a { color: var(--gold-400); }
.hero-card .countries .chip { text-decoration: none; }
a.chip:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* home-page link cards */
.teasers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.teasers.three { grid-template-columns: repeat(3, 1fr); }
.teaser {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s;
}
.teaser:hover { color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.teaser h3 { margin: 0; }
.teaser p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.teaser .more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: .88rem; color: var(--navy-700); }
.teaser:hover .more { color: var(--gold-500); }
.crosscut .btn { flex: none; }

/* let grid cards shrink on narrow screens instead of pushing the page wider */
.platforms > *, .focus-grid > *, .join-grid > *, .teasers > *, .people > *, .tools > *,
.hero-grid > *, .about-grid > *, .members-grid > *, .contact > *, .journal > * { min-width: 0; }
.platform, .kv dd, .person span { overflow-wrap: break-word; }

/* ---------- responsive ---------- */
/* the menu folds into a "Menu" button once the full Chapter name and the links no longer fit side by side */
@media (max-width: 1120px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
         background: var(--navy-800); padding: 10px 16px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: inline-block; }
}
@media (max-width: 1040px) {
  .hero-grid, .about-grid, .members-grid, .contact { grid-template-columns: 1fr; gap: 36px; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .tools { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .teasers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .focus-grid, .platforms, .join-grid, .roadmap { grid-template-columns: 1fr; gap: 20px; }
  .phase { padding: 0 0 8px 50px; }
  .phase::before { top: 34px; bottom: -20px; left: 15px; right: auto; width: 2px; height: auto; }
  .phase .dot { position: absolute; left: 0; top: 0; }
  .journal { grid-template-columns: auto 1fr; }
  .journal .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 52px; }
  .people { grid-template-columns: 1fr; }
  .foot-grid, .tools, .principles, .teasers, .teasers.three { grid-template-columns: 1fr; }
  .brand-text span { display: none; }
  .site-header .brand-text { max-width: 240px; }
  .site-header .brand-text b { font-size: .84rem; }
  .site-header .brand-mark { width: 38px; height: 38px; font-size: 1.2rem; }
  .platform, .focus, .join-card, .chair, .contact { padding: 22px; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dd { margin-bottom: 8px; }
  .strip { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .platform, .btn { transition: none; }
}
