/* Public content pages (programs by state, each program, the IMG-friendly and visa guides). Same design as the home page
   (landing/index.html): soft grey canvas, white rounded cards, black pill buttons, pastel tiles, big tight headlines. */
:root {
  --bg: #f4f4f1; --card: #ffffff; --ink: #111214; --muted: #64666d; --line: #e6e6e1;
  --blue: #2445ff; --blue-soft: #e8ecff; --pill: #111214; --on-pill: #ffffff;
  --mint: #dff5e8; --peach: #ffe9dc; --lilac: #ece6ff; --sky: #dff0ff; --lemon: #fbf3cf; --rose: #ffe3ea;
  --good: #11804a; --warn: #b06a00; --bad: #cc2f2f;
  --shadow: 0 1px 2px rgba(17,18,20,.04), 0 12px 32px -12px rgba(17,18,20,.14);
  --font: "Plus Jakarta Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --r-lg: 28px; --r-md: 18px;
}
:root[data-theme="dark"] {
  --bg: #0f1012; --card: #18191c; --ink: #f3f3f1; --muted: #9a9ca3; --line: #2a2b30;
  --blue: #6f86ff; --blue-soft: #1c2142; --pill: #f3f3f1; --on-pill: #111214;
  --mint: #15291f; --peach: #2e2119; --lilac: #221d36; --sky: #152434; --lemon: #2a2614; --rose: #2f1a20;
  --good: #48d08a; --warn: #f0aa45; --bad: #ff7272;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; text-wrap: balance; }
h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 520px) { .wrap { padding-inline: 16px; } }
.muted { color: var(--muted); }
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding-inline: 24px; border-radius: 999px; font-weight: 600; font-size: 0.9375rem; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; transition: transform .15s; }
.pill:hover { transform: translateY(-1px); }
.pill-dark { background: var(--pill); color: var(--on-pill); }
.pill-light { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* Nav, as on the home page */
.sitenav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; padding-block: 14px; }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: color-mix(in srgb, var(--card) 85%, transparent); backdrop-filter: blur(14px); border-radius: 999px; padding: 8px 8px 8px 20px; box-shadow: var(--shadow); min-width: 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.03em; font-size: 1.0625rem; min-width: 0; }
.logo svg { flex: none; }
.navbar ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 0.9375rem; font-weight: 500; color: var(--muted); }
.navbar ul a:hover, .navbar ul a[aria-current] { color: var(--ink); }
.navbar .pill { height: 40px; padding-inline: 18px; }
.navbar .signin { font-size: 0.9375rem; font-weight: 600; padding-inline: 8px; white-space: nowrap; }
.nav-end { display: flex; align-items: center; gap: 6px; flex: none; }
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 999px; background: var(--bg); color: var(--ink); cursor: pointer; flex: none; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (max-width: 820px) {
  .navbar { flex-wrap: wrap; border-radius: 24px; row-gap: 2px; }
  .navbar .logo { flex: 1 1 0; }
  .navbar ul { order: 3; flex-basis: 100%; justify-content: center; gap: 20px; font-size: 0.8125rem; padding: 2px 0 4px; }
}
@media (max-width: 440px) {
  .navbar { padding-left: 14px; gap: 8px; }
  .logo { font-size: 0.9375rem; gap: 8px; }
  .navbar .pill { padding-inline: 14px; font-size: 0.875rem; }
  .theme-toggle { width: 36px; height: 36px; }
}
@media (max-width: 380px) { .navbar .signin { display: none; } }

/* Page head: breadcrumb, big headline, the answer in a sentence or two */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.8125rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.phead { padding-block: 44px 0; display: grid; gap: 18px; max-width: 900px; }
.phead.center { margin-inline: auto; text-align: center; justify-items: center; }
.phead.center .crumbs { justify-content: center; }
.phead h1 { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4rem); }
.phead .sub { font-size: 1.1875rem; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.phead .sub b { color: var(--ink); font-weight: 700; }
.phead.prog h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); }
.phead .where { font-size: 1.0625rem; color: var(--muted); font-weight: 600; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .phead { padding-top: 24px; } }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .stats, .stats.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { border-radius: var(--r-md); padding: 20px 22px; display: grid; gap: 2px; align-content: start; }
.stat b { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.9375rem; font-weight: 600; }
.stat small { font-size: 0.8125rem; color: var(--muted); line-height: 1.4; }
.bg-sky { background: var(--sky); } .bg-lilac { background: var(--lilac); } .bg-mint { background: var(--mint); } .bg-peach { background: var(--peach); }
.bg-lemon { background: var(--lemon); } .bg-rose { background: var(--rose); } .bg-card { background: var(--card); box-shadow: var(--shadow); }

/* Sections */
.sec { padding-top: 72px; }
@media (max-width: 640px) { .sec { padding-top: 56px; } }
.sec > h2, .sec-head h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sec > h2 { margin-bottom: 20px; }
.sec-head p, .sec > p.lead { color: var(--muted); font-size: 1.0625rem; max-width: 60ch; }

/* Filter bar over a list */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.search { flex: 1 1 260px; min-width: 0; height: 48px; border-radius: 999px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding-inline: 20px; font: inherit; font-size: 0.9375rem; color: var(--ink); }
.search:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.chip { height: 40px; padding-inline: 16px; border-radius: 999px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--pill); color: var(--on-pill); box-shadow: none; }
.count { font-size: 0.875rem; color: var(--muted); font-weight: 600; margin-left: auto; }
@media (max-width: 640px) { .count { margin-left: 0; flex-basis: 100%; } }

/* Program cards */
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
@media (max-width: 400px) { .plist { grid-template-columns: minmax(0, 1fr); } }
.pcard { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 18px 20px; display: grid; gap: 10px; align-content: start; transition: transform .15s, box-shadow .15s; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(17,18,20,.04), 0 18px 40px -14px rgba(17,18,20,.22); }
.pcard h3 { font-size: 1.0625rem; }
.pcard .city { font-size: 0.875rem; color: var(--muted); margin-top: -6px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.b { display: inline-flex; align-items: center; height: 26px; padding-inline: 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; background: var(--bg); color: var(--muted); }
.b-j1 { background: var(--sky); color: var(--ink); } .b-h1b { background: var(--lilac); color: var(--ink); } .b-f1 { background: var(--peach); color: var(--ink); }
.b-none { background: var(--rose); color: var(--ink); } .b-open { background: var(--mint); color: var(--ink); } .b-yog { background: var(--lemon); color: var(--ink); }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* State grid on the index */
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.scard { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 16px 18px; display: grid; gap: 6px; transition: transform .15s; }
.scard:hover { transform: translateY(-2px); }
.scard h3 { font-size: 1.0625rem; display: flex; justify-content: space-between; gap: 8px; }
.scard h3 span { color: var(--muted); font-weight: 600; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.scard p { font-size: 0.8125rem; color: var(--muted); }

/* A program's three rules */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
@media (max-width: 820px) { .rules { grid-template-columns: minmax(0, 1fr); } }
.rule { border-radius: var(--r-md); padding: 22px; display: grid; gap: 6px; align-content: start; }
.rule span { font-size: 0.9375rem; font-weight: 600; }
.rule b { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.rule small { font-size: 0.875rem; color: var(--muted); }
.rule small { margin-top: 2px; }
:root[data-theme="dark"] .rule small { color: color-mix(in srgb, var(--ink) 70%, transparent); }

/* Two columns: details card beside the call to action */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }
.facts { padding: 8px 24px; margin: 0; }
.facts div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.facts a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 480px) { .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.cta { border-radius: var(--r-md); background: var(--blue); color: #fff; padding: 26px; display: grid; gap: 14px; align-content: center; }
.cta h2 { font-size: 1.75rem; }
.cta p { opacity: .88; }
.cta .pill { background: #fff; color: #111214; justify-self: start; }

/* Long-form reading: guide pages */
.prose { padding: 40px; display: grid; gap: 16px; max-width: 860px; }
@media (max-width: 640px) { .prose { padding: 24px 20px; } }
.prose h2 { font-size: 1.75rem; margin-top: 18px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.25em; display: grid; gap: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.tablewrap { overflow-x: auto; border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow); }
.prose .tablewrap { box-shadow: inset 0 0 0 1px var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: 14px 18px 0; font-size: 0.8125rem; color: var(--muted); }
th, td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 0.8125rem; color: var(--muted); font-weight: 700; }
tbody th { font-weight: 600; }
tbody th a { text-decoration: underline; text-underline-offset: 2px; }
table.num td, table.num thead th:not(:first-child) { text-align: right; white-space: nowrap; }
tfoot th, tfoot td { font-weight: 800; border-bottom: 0; }

/* FAQ, as on the home page */
.faq { display: grid; gap: 10px; max-width: 860px; }
details { background: var(--card); border-radius: var(--r-md); padding: 4px 24px; box-shadow: var(--shadow); }
summary { cursor: pointer; list-style: none; padding-block: 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.375rem; line-height: 1; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 20px; }

.sources { margin-top: 48px; padding: 22px 26px; font-size: 0.875rem; color: var(--muted); display: grid; gap: 6px; max-width: 860px; }
.sources b { color: var(--ink); }
.sources a { text-decoration: underline; text-underline-offset: 2px; }

/* Closing call to action, as on the home page */
.final { margin-block: 88px 72px; border-radius: var(--r-lg); background: var(--blue); color: #fff; padding: 56px 32px; display: grid; justify-items: center; text-align: center; gap: 16px; }
@media (max-width: 640px) { .final { margin-block: 64px 56px; padding: 44px 22px; } }
.final h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); max-width: 18ch; }
.final p { opacity: .88; font-size: 1.0625rem; max-width: 46ch; }
.final .pill-dark { background: #fff; color: #111214; }
.final .pill-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }

footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: 0.9375rem; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px 24px; flex-wrap: wrap; color: var(--muted); }
.foot ul a:hover { color: var(--ink); }
.legal { margin-top: 24px; font-size: 0.8125rem; color: var(--muted); }
