/* ——— Swiss International Typographic Style ——— */
:root {
  --ink: #111111;
  --paper: #ffffff;
  --red: #e30613;
  --grey: #6b6b6b;
  --hair: #d9d9d9;
  --soft: #f4f4f2;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --type-page-title: clamp(36px, 5vw, 64px);
  --type-section-title: clamp(26px, 3vw, 36px);
  --type-card-title: 18px;
  --type-lede: clamp(16px, 1.5vw, 18px);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-size: 16px;
}
button, input, select, textarea { font: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav { background: var(--paper); border-bottom: 1px solid var(--hair); }
.navbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 72px; padding: 12px 24px; }
.navbar .brand { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.navbar .brand span { color: var(--red); }
.navlinks { display: flex; justify-content: center; align-items: center; gap: 16px; min-width: 0; }
.navlinks a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: 0;
  text-decoration: none; color: var(--grey); white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.navlinks a:hover { color: var(--red); }
.navlinks a.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--red); }
.navbar a:focus-visible, .subnav a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (max-width: 1120px) {
  .navbar { grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; }
  .navlinks { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 24px; overflow-x: auto; max-width: 100%; padding: 0 2px 3px; scrollbar-width: thin; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .navbar { padding: 10px 16px; gap: 4px 12px; }
  .navbar .brand { font-size: 14px; }
  .navlinks { gap: 20px; }
}

/* Hero */
header.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--hair); }
.kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--red); font-weight: 700; margin-bottom: 20px; }
h1 { font-size: var(--type-page-title); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; }
h1 .thin { font-weight: 400; }
.lede { margin-top: 28px; font-size: var(--type-lede); line-height: 1.6; max-width: 62ch; font-weight: 400; }
.lede strong { font-weight: 700; }
.herometa { margin-top: 32px; display: flex; gap: 48px; flex-wrap: wrap; }
.herometa div { font-size: 12px; }
.herometa .lab { text-transform: uppercase; letter-spacing: 0.14em; color: var(--grey); font-size: 10px; margin-bottom: 4px; }
.herometa .val { font-weight: 700; font-size: 14px; }

/* Sections */
section { padding: 56px 0; border-bottom: 1px solid var(--hair); }
.sechead { display: grid; grid-template-columns: 90px 1fr; gap: 24px; margin-bottom: 36px; align-items: baseline; }
.secnum { font-size: 34px; font-weight: 700; color: var(--red); letter-spacing: -0.02em; }
.sechead h2 { font-size: var(--type-section-title); letter-spacing: -0.025em; line-height: 1.15; font-weight: 700; }
.secsub { grid-column: 2; margin-top: 10px; color: var(--grey); font-size: 15px; max-width: 68ch; }
.body-copy { max-width: 70ch; font-size: 16px; }
.body-copy p + p { margin-top: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
h3 { font-size: var(--type-card-title); letter-spacing: -0.01em; margin-bottom: 10px; font-weight: 700; }
h3 .idx { color: var(--red); margin-right: 8px; }

/* Tables */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--grey); font-weight: 700; padding: 0 14px 10px 0;
  border-bottom: 2px solid var(--ink); white-space: nowrap;
}
tbody td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
tbody tr.hl td { background: var(--soft); }
td .sub { color: var(--grey); font-size: 12.5px; display: block; margin-top: 2px; }
td a, .body-copy a, .note a, li a, .cell a, .herometa a, .secsub a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
td a:hover, .body-copy a:hover, li a:hover { color: var(--red); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rankcell { font-size: 26px; font-weight: 700; color: var(--red); }
.score { font-weight: 700; font-size: 17px; }

/* Score bars */
.bar { height: 8px; background: var(--soft); position: relative; min-width: 90px; margin-top: 6px; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.bar.red i { background: var(--red); }

/* Cards / grids */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.cell { background: var(--paper); padding: 24px; }
.cell .lab { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--grey); font-weight: 700; margin-bottom: 8px; }
.cell .big { font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.cell .big small { font-size: 0.45em; font-weight: 400; color: var(--grey); letter-spacing: 0; }
.cell p { font-size: 13.5px; color: var(--grey); margin-top: 8px; }
.cell.accent { border-top: 4px solid var(--red); }

/* Lists */
ul.rule, ol.rule { list-style: none; }
ul.rule li, ol.rule li { padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 15px; max-width: 75ch; }
ul.rule li strong { font-weight: 700; }
ul.rule li:first-child, ol.rule li:first-child { border-top: 2px solid var(--ink); }

/* Callouts */
.verdict { border-left: 6px solid var(--red); padding: 6px 0 6px 24px; margin: 8px 0; font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; max-width: 34em; }
.note { background: var(--soft); padding: 20px 24px; font-size: 14px; max-width: 80ch; }
.note strong { font-weight: 700; }
.warn { border-left: 6px solid var(--ink); padding-left: 24px; font-size: 15px; max-width: 70ch; }

/* Cost chart */
.chart { display: grid; gap: 14px; }
.chartrow { display: grid; grid-template-columns: 190px 1fr 110px; gap: 16px; align-items: center; font-size: 13.5px; }
.chartrow .cl { font-weight: 700; }
.chartrow .cl .sub { display: block; font-weight: 400; color: var(--grey); font-size: 11.5px; }
.chartrow .track { background: var(--soft); height: 26px; position: relative; }
.chartrow .track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.chartrow .track i.r { background: var(--red); }
.chartrow .cv { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }

/* Footer */
footer { padding: 40px 0 64px; }
footer .foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 12px; color: var(--grey); }
footer .foot b { color: var(--ink); }
.pagenav { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--hair); flex-wrap: wrap; }
.pagenav a { font-size: 13px; font-weight: 700; text-decoration: none; color: var(--ink); }
.pagenav a:hover { color: var(--red); }

@media (max-width: 760px) {
  .sechead { grid-template-columns: 1fr; gap: 6px; }
  .secsub { grid-column: 1; }
  .two-col, .grid3, .grid2 { grid-template-columns: 1fr; }
  .chartrow { grid-template-columns: 110px 1fr 80px; }
  header.hero { padding: 48px 0 40px; }
}
@media print {
  nav, .pagenav { display: none; }
  section { page-break-inside: avoid; }
}

/* ——— Globe navigation (index) ——— */
.globefig { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.has-globe .globefig { grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr); gap: 48px; }

.globe-stage { display: none; position: relative; width: 100%; aspect-ratio: 1 / 1; }
.has-globe .globe-stage { display: block; }
.globe-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.globe-stage canvas.dragging { cursor: grabbing !important; }
.globe-dots { position: absolute; inset: 0; pointer-events: none; }

.gdot { position: absolute; left: 0; top: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; display: flex; align-items: center; justify-content: center; }
.gdot::before {
  content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink); transition: width .18s ease, height .18s ease, background .18s ease;
}
.gdot.on::before { width: 28px; height: 28px; background: var(--red); }
.gdot i { position: relative; z-index: 1; font-style: normal; font-weight: 700; font-size: 11px; color: #fff; opacity: 0; transition: opacity .18s ease; }
.gdot.on i { opacity: 1; }

.glabel {
  position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700;
  background: var(--paper); padding: 3px 5px; transition: opacity .18s ease;
}
.glabel.on { opacity: 1; }
.glabel.l { transform-origin: left center; margin-left: -22px; translate: -100% -50%; }
.glabel.r { margin-left: 22px; translate: 0 -50%; }

.globe-caption { margin-top: 12px; min-height: 76px; border-top: 1px solid var(--hair); padding-top: 12px; }
.globe-caption .cn { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--red); }
.globe-caption .cd { font-size: 14px; color: var(--grey); margin-top: 6px; max-width: 46ch; }

/* Ranked list — the accessible equivalent of the globe */
.globelist { display: block; }
.globelist .hd {
  display: grid; grid-template-columns: 34px 1fr 58px 92px; gap: 14px; align-items: baseline;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--grey);
  font-weight: 700; padding-bottom: 10px; border-bottom: 2px solid var(--ink);
}
a.globerow {
  display: grid; grid-template-columns: 34px 1fr 58px 92px; gap: 14px; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--ink);
  transition: background .15s ease;
}
a.globerow .r { font-size: 22px; font-weight: 700; color: var(--red); letter-spacing: -0.02em; line-height: 1; }
a.globerow .n { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; }
a.globerow .n span { display: block; font-size: 11px; font-weight: 400; letter-spacing: 0.05em; color: var(--grey); text-transform: uppercase; margin-top: 3px; }
a.globerow .s { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
a.globerow .b { height: 8px; background: var(--soft); position: relative; }
a.globerow .b i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
a.globerow:hover, a.globerow.on, a.globerow:focus-visible { background: var(--soft); outline: none; }
a.globerow:hover .n, a.globerow.on .n, a.globerow:focus-visible .n { color: var(--red); }
a.globerow:hover .b i, a.globerow.on .b i, a.globerow:focus-visible .b i { background: var(--red); }
.globehint { margin-top: 14px; font-size: 12px; color: var(--grey); }

@media (max-width: 900px) {
  .has-globe .globefig { grid-template-columns: 1fr; gap: 32px; }
  .globe-stage { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .globelist .hd, a.globerow { grid-template-columns: 28px 1fr 48px; }
  .globelist .hd .bh, a.globerow .b { display: none; }
}
@media print {
  .globe-stage, .globe-caption { display: none !important; }
}

/* ——— Two-tier navigation ——— */
.subnav { display: flex; align-items: baseline; gap: 8px 20px; padding: 11px 24px; border-top: 1px solid var(--hair); flex-wrap: wrap; }
.subnav .subnav-lab { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--grey); font-weight: 700; margin-right: 4px; }
.subnav a { font-size: 12px; letter-spacing: -0.005em; text-decoration: none; color: var(--grey); }
.subnav a:hover { color: var(--red); }
.subnav a.active { color: var(--ink); font-weight: 700; }
.subnav a b { color: var(--red); font-weight: 700; margin-right: 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .subnav { padding-left: 16px; padding-right: 16px; } }

/* ——— Domain matrix (index) ——— */
.matrix table { font-size: 12.5px; }
.matrix thead th { padding-right: 10px; }
.matrix tbody td { padding: 11px 10px 11px 0; }
.matrix tbody td strong { white-space: nowrap; }

/* ——— Misc additions ——— */
.tag { display: inline-block; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; padding: 2px 6px; border: 1px solid var(--ink); margin-right: 6px; vertical-align: 2px; }
.tag.red { border-color: var(--red); color: var(--red); }
.tag.soft { border-color: var(--hair); color: var(--grey); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
@media (max-width: 900px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } }
.steps { counter-reset: s; list-style: none; }
.steps > li { position: relative; padding: 18px 0 18px 58px; border-bottom: 1px solid var(--hair); max-width: 78ch; }
.steps > li:first-child { border-top: 2px solid var(--ink); }
.steps > li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 16px; font-size: 26px; font-weight: 700; color: var(--red); letter-spacing: -0.02em; line-height: 1;
}
.steps > li h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 6px; }
.steps > li p { font-size: 14.5px; }
.steps > li p + p { margin-top: 8px; }

/* Earnings-first catalog */
.catalog-filters { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(110px, 1fr)) auto; gap: 12px; align-items: end; }
.catalog-filters label { display: grid; gap: 6px; color: var(--grey); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.catalog-filters input, .catalog-filters select, .catalog-filters button { width: 100%; min-height: 42px; border: 1px solid var(--hair); border-radius: 0; background: var(--paper); color: var(--ink); padding: 10px 12px; font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.4; }
.catalog-filters input:focus, .catalog-filters select:focus, .catalog-filters button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.catalog-filters button { width: auto; cursor: pointer; font-weight: 700; border-color: var(--ink); }
.catalog-filters button:hover { color: var(--red); border-color: var(--red); }
.catalog-count { margin: 18px 0 8px; color: var(--grey); font-size: 12px; font-variant-numeric: tabular-nums; }
.catalog-list { border-top: 2px solid var(--ink); }
.program-card { border-bottom: 1px solid var(--hair); position: relative; }
.program-card[hidden] { display: none; }
.program-card summary { display: grid; grid-template-columns: minmax(190px, 2.4fr) minmax(90px, 1fr) minmax(110px, 1fr) minmax(160px, 1.5fr); align-items: start; gap: 18px; padding: 16px 92px 16px 0; cursor: pointer; list-style: none; position: relative; min-height: 76px; }
.program-card summary::-webkit-details-marker { display: none; }
.program-card summary::after { content: "+"; position: absolute; right: 64px; top: 23px; font-weight: 700; font-size: 20px; color: var(--red); }
.program-card details[open] summary::after { content: "−"; }
.program-card summary:hover, .program-card details[open] summary { background: var(--soft); }
.program-card summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.program-name strong { display: block; font-size: var(--type-card-title); line-height: 1.25; }
.program-name span { display: block; color: var(--grey); font-size: 13px; margin-top: 3px; }
.program-place, .program-signal, .program-date { font-size: 12px; line-height: 1.35; }
.program-place small, .program-signal small, .program-date small { display: block; font-size: 11px; color: var(--grey); margin-top: 3px; }
.program-signal b { color: var(--red); }
.program-detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 28px; padding: 12px 24px 20px; background: var(--soft); font-size: 13px; }
.program-detail h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.program-detail p + p { margin-top: 9px; }
.program-detail .caveat { border-left: 3px solid var(--red); padding-left: 10px; }
.program-links { grid-column: 1 / -1; display: flex; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--hair); padding-top: 10px; }
.program-detail a, .program-links a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.india-evidence { min-width: 1040px; }
.india-evidence td:first-child { min-width: 175px; }
.india-evidence td:nth-child(2) { min-width: 230px; font-weight: 700; }
.india-evidence td:nth-child(3) { min-width: 140px; }
.india-evidence td:nth-child(4) { min-width: 190px; }
.india-evidence td:nth-child(5) { min-width: 250px; }
.shortlist-heart { position: absolute; right: 8px; top: 14px; z-index: 1; width: 42px; height: 42px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 13.5px; line-height: 1; cursor: pointer; }
.shortlist-heart:hover, .shortlist-heart.is-selected { color: var(--red); }
.shortlist-heart:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.shortlist-heart:disabled { opacity: .5; cursor: wait; }
.catalog-toolbar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.catalog-toolbar .catalog-count { margin: 0; }
.catalog-toolbar a { font-size: 13px; color: var(--red); text-underline-offset: 3px; }
.shortlist-status { font-size: 12px; color: var(--grey); margin: 8px 0 16px; line-height: 1.5; }
.shortlist-status.is-error { color: var(--red); border-left: 3px solid var(--red); padding-left: 10px; }
@media (max-width: 900px) {
  .catalog-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-filters button { width: 100%; }
  .program-card summary { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .program-detail { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .catalog-filters { grid-template-columns: 1fr; }
  .program-card summary { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .program-name { grid-column: 1 / -1; padding-right: 12px; }
  .program-date { grid-column: 1 / -1; }
  .program-detail { grid-template-columns: 1fr; }
}
