/* AP & TS NIT Marks-to-Branch Estimator — vishnusmartinfo.com */
:root {
  --bg: #FAF9F6;
  --card: #FFFFFF;
  --ink: #1E293B;
  --ink-2: #475569;
  --ink-3: #64748B;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --safe: #15803D;   --safe-bg: #F0FDF4;   --safe-line: #BBF7D0;
  --amber: #B45309;  --amber-bg: #FFFBEB;  --amber-line: #FDE68A;
  --slate: #475569;  --slate-bg: #F8FAFC;  --slate-line: #CBD5E1;
  --red: #B91C1C;    --red-bg: #FEF2F2;    --red-line: #FECACA;
  --blue: #1D4ED8;   --blue-bg: #EFF6FF;   --blue-line: #BFDBFE;
  --accent: #1E293B;
  --brand-navy: #1E3A8A;     /* from logo.png */
  --brand-gold: #C9A227;     /* from logo.png */
  --brand-gold-ink: #7C5A00; /* gold text, AA contrast on its tint */
  --brand-gold-bg: #FDF8E7;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(30, 41, 59, .05), 0 4px 14px rgba(30, 41, 59, .04);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
small { font-size: .86em; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--card); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid #2563EB; outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { padding: 22px 0 18px; border-bottom: 1px solid var(--line); background: var(--bg); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-navy); max-width: 100%; }
.brand-logo { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgba(30, 41, 59, .08); }
.brand-text { display: grid; gap: 3px; min-width: 0; justify-items: start; }
.brand-name { font-family: var(--serif); font-weight: 800; font-size: 19px; line-height: 1; letter-spacing: .06em; color: var(--brand-navy); white-space: nowrap; }
.brand-sub { font-family: var(--sans); font-weight: 800; font-size: 11.5px; line-height: 1; letter-spacing: .16em; color: var(--brand-gold-ink); background: var(--brand-gold-bg); border: 1px solid var(--brand-gold); padding: 4px 8px 3px; border-radius: 999px; white-space: nowrap; }
.brand:hover .brand-name { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.site-header h1 { font-size: clamp(25px, 4.4vw, 38px); margin-top: 10px; letter-spacing: -.01em; }
.h1-target { color: var(--ink-2); font-weight: 600; }
.lede { margin-top: 8px; color: var(--ink-2); max-width: 760px; }
.trust-label { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--amber); background: var(--amber-bg); border: 1px solid var(--amber-line); padding: 4px 10px; border-radius: 999px; }

/* ---------- Tabs ---------- */
.tabs { position: sticky; top: 0; z-index: 20; background: rgba(250, 249, 246, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.tabs-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding-top: 8px; padding-bottom: 8px; }
.tabs button {
  min-height: 48px; border: 1px solid transparent; background: transparent; border-radius: 10px; cursor: pointer;
  font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 6px 8px; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: left; line-height: 1.2;
}
.tabs button:hover { background: var(--card); border-color: var(--line); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-num { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 12px; }

/* ---------- Layout ---------- */
main { padding-top: 18px; padding-bottom: 32px; }
.panel { display: grid; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card-title { font-size: 21px; margin-bottom: 12px; }
.loading { text-align: center; color: var(--ink-2); padding: 28px; }
.results { display: grid; gap: 16px; }

/* ---------- Inputs ---------- */
.input-card { display: grid; gap: 14px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .field > label { font-weight: 650; font-size: 16px; margin-bottom: 8px; padding: 0; color: var(--ink); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { width: 100%; float: left; }
.seg legend + * { clear: both; }
.seg label { position: relative; flex: 1 1 auto; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg label > span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; padding: 8px 14px;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--card); font-weight: 600; font-size: 16px; line-height: 1.25; gap: 4px; flex-wrap: wrap;
  transition: background .12s, border-color .12s;
}
.seg label:hover > span { border-color: var(--ink-3); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid #2563EB; outline-offset: 2px; }
.seg small { font-weight: 500; opacity: .85; }
.seg-wide label { flex: 1 1 260px; }
.helper { width: 100%; font-size: 15px; color: var(--ink-2); background: var(--slate-bg); border-left: 3px solid var(--ink-3); padding: 8px 10px; border-radius: 6px; }
.field { display: grid; }
.field-row { display: grid; gap: 12px; }
.field input[type="number"], .field select {
  min-height: 52px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 14px; background: var(--card); width: 100%; font-size: 20px; font-weight: 600;
}
.field select { font-size: 17px; font-weight: 500; appearance: auto; }
.field input:focus, .field select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .25); }
.toggles { display: grid; gap: 10px; }
.switch { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 600; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { flex: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked + .switch-ui { background: var(--safe); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid #2563EB; outline-offset: 2px; }
.switch small { font-weight: 500; color: var(--ink-2); }

/* ---------- Boost ---------- */
.boost-card { display: grid; gap: 8px; }
.boost-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; }
.boost-head output { font-weight: 700; color: var(--safe); }
input[type="range"] { width: 100%; height: 44px; accent-color: var(--safe); cursor: pointer; margin: 0; }
.boost-scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); margin-top: -6px; }
.pill-wrap:empty { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1.3; }
.pill-safe { background: var(--safe-bg); color: var(--safe); border: 1px solid var(--safe-line); }
.pill-slate { background: var(--slate-bg); color: var(--slate); border: 1px solid var(--slate-line); }

/* ---------- Banners ---------- */
.banner { border-radius: var(--radius); padding: 14px 16px; border: 1px solid; display: grid; gap: 8px; }
.banner strong { font-size: 17px; }
.banner-warn { background: var(--amber-bg); color: #78350F; border-color: var(--amber-line); }
.banner-safe { background: var(--safe-bg); color: #14532D; border-color: var(--safe-line); }
.banner-info { background: var(--blue-bg); color: #1E3A8A; border-color: var(--blue-line); }
.banner-red { background: var(--red-bg); color: #7F1D1D; border-color: var(--red-line); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink); background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; font-size: 16px; text-decoration: none;
}
.btn:hover { filter: brightness(1.15); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); filter: none; }
.btn-amber { background: var(--amber); border-color: var(--amber); justify-self: start; }
.btn-wa { background: var(--safe); border-color: var(--safe); }

/* ---------- Summary strip ---------- */
.summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.stat-label { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.stat-value { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.15; margin-top: 2px; overflow-wrap: anywhere; }
.stat-sub { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.quota-badge { display: inline-block; margin-top: 6px; font-weight: 700; font-size: 15px; padding: 4px 10px; border-radius: 8px; background: var(--blue-bg); color: var(--blue); border: 1px solid var(--blue-line); }
.quota-badge.os { background: var(--slate-bg); color: var(--slate); border-color: var(--slate-line); }

.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.query-line { font-weight: 600; color: var(--ink-2); font-size: 15.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-inline { font-size: 14px; font-weight: 600; color: var(--amber); }

/* ---------- Institutes ---------- */
.inst-switch { display: none; }
.inst-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.inst { display: grid; gap: 12px; min-width: 0; }
.inst-head { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.inst-head h3 { font-size: 22px; }
.inst-head .quota-badge { margin-top: 6px; }
.tier { display: grid; gap: 10px; }
.tier-title { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 17px; font-weight: 800; letter-spacing: .01em; padding: 4px 2px; }
.tier-title .count { font-weight: 700; letter-spacing: 0; font-size: 14px; padding: 1px 9px; border-radius: 999px; }
.tier-safe .tier-title { color: var(--safe); } .tier-safe .count { background: var(--safe-bg); border: 1px solid var(--safe-line); }
.tier-border .tier-title { color: var(--amber); } .tier-border .count { background: var(--amber-bg); border: 1px solid var(--amber-line); }
.tier-stretch .tier-title { color: var(--slate); } .tier-stretch .count { background: var(--slate-bg); border: 1px solid var(--slate-line); }
.tier-empty { color: var(--ink-3); font-size: 15px; padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--card); }
.more-btn { justify-self: start; }

/* ---------- Branch card ---------- */
.bcard { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--slate-line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 8px; min-width: 0; }
.bcard.t-safe { border-left-color: var(--safe); background: linear-gradient(90deg, var(--safe-bg), #fff 55%); }
.bcard.t-border { border-left-color: var(--amber); background: linear-gradient(90deg, var(--amber-bg), #fff 55%); }
.bcard.t-stretch { border-left-color: var(--slate); background: linear-gradient(90deg, var(--slate-bg), #fff 55%); }
.marks-lead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.marks-big { font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
.marks-of { font-weight: 700; color: var(--ink-2); font-size: 17px; }
.marks-null { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink-2); }
.shift-chip { font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--slate-bg); border: 1px solid var(--line-2); color: var(--ink-2); }
.marks-range { font-size: 14.5px; color: var(--ink-2); }
.bname { font-family: var(--sans); font-size: 18px; font-weight: 700; line-height: 1.3; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); line-height: 1.3; }
.badge-pool-f { background: #FDF2F8; color: #9D174D; border-color: #FBCFE8; }
.badge-pool-gn { background: var(--slate-bg); }
.badge-fallback { background: var(--blue-bg); color: var(--blue); border-color: var(--blue-line); font-weight: 600; }
.badge-vacancy { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-line); }
.badge-near { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-line); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.facts > div { background: rgba(248, 250, 252, .8); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; min-width: 0; }
.facts dt { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.facts dd small { display: block; font-weight: 600; color: var(--ink-2); font-size: 13px; }
.csab-line { font-size: 15px; color: var(--ink-2); border-top: 1px dashed var(--line-2); padding-top: 8px; }
.csab-line b { color: var(--ink); }
.csab-note { color: var(--ink-3); font-size: 13.5px; }
.status { font-weight: 700; font-size: 16px; }
.t-safe .status { color: var(--safe); }
.t-border .status { color: var(--amber); }
.t-stretch .status { color: var(--slate); }

/* ---------- Tab 2 blueprint ---------- */
.blueprint { border: 2px solid var(--ink); border-radius: 18px; padding: 20px; background: #fff; display: grid; gap: 14px; box-shadow: var(--shadow); }
.bp-kicker { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.bp-title { font-size: clamp(22px, 3.6vw, 30px); }
.bp-sub { color: var(--ink-2); font-weight: 600; }
.shift-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.shift-cell { border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; text-align: center; background: var(--slate-bg); min-width: 0; }
.shift-cell.hl { background: var(--safe-bg); border-color: var(--safe-line); }
.shift-cell .lbl { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.shift-cell .val { font-family: var(--serif); font-size: clamp(26px, 6vw, 38px); font-weight: 700; line-height: 1.1; }
.shift-cell .of { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.shift-cell .val.null { font-size: 16px; font-family: var(--sans); line-height: 1.3; padding: 6px 0; }
.target-banner { background: var(--safe); color: #fff; border-radius: 12px; padding: 14px 16px; font-size: clamp(18px, 3vw, 22px); font-weight: 700; text-align: center; line-height: 1.35; }
.target-banner.null { background: var(--slate); }
.bp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.bp-facts > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.bp-facts dt { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.bp-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.bp-facts dd small { display: block; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.csab-card { border: 1px solid var(--amber-line); background: var(--amber-bg); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.csab-card.none { background: var(--slate-bg); border-color: var(--line-2); }
.csab-card h4 { font-family: var(--sans); font-size: 16px; }
.session-callout { border: 1px solid var(--blue-line); background: var(--blue-bg); color: #1E3A8A; border-radius: 12px; padding: 12px 14px; font-size: 15.5px; }
.bp-foot { font-size: 13.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
.bp-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-navy); }
.bp-brand img { border-radius: 50%; flex: none; }

/* ---------- Tab 3 compare ---------- */
.cmp-inst { display: grid; gap: 12px; }
.cmp-inst > h3 { font-size: 22px; }
.cmp-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.cmp-block h4 { font-family: var(--sans); font-size: 17px; }
.cmp-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cmp-side { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; background: var(--slate-bg); }
.cmp-side.win { background: var(--safe-bg); border-color: var(--safe-line); }
.cmp-who { font-weight: 800; font-size: 15px; }
.cmp-quota { font-size: 13px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
.cmp-row { display: flex; justify-content: space-between; gap: 8px; font-size: 14.5px; border-top: 1px solid var(--line); padding: 4px 0; flex-wrap: wrap; }
.cmp-row span:first-child { color: var(--ink-3); }
.cmp-row span:last-child { font-weight: 700; text-align: right; }
.cmp-prog { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.adv-pill { display: inline-block; justify-self: start; padding: 8px 14px; border-radius: 999px; background: var(--safe-bg); color: var(--safe); border: 1px solid var(--safe-line); font-weight: 700; font-size: 15px; line-height: 1.35; }
.adv-pill.eq { background: var(--slate-bg); color: var(--slate); border-color: var(--slate-line); }
.cmp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }

/* ---------- Tab 4 ---------- */
.progress { display: grid; gap: 6px; margin-bottom: 14px; }
.progress-text { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.progress-text strong { font-size: 18px; }
.progress-text span { color: var(--ink-3); font-size: 14.5px; }
.progress-bar { height: 12px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--safe); border-radius: 999px; transition: width .25s; }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chk { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; align-content: start; background: var(--card); }
.chk.pass { border-color: var(--safe-line); background: var(--safe-bg); }
.chk.alert { border-color: var(--amber-line); background: var(--amber-bg); }
.chk.red { border-color: var(--red-line); background: var(--red-bg); }
.chk h3 { font-family: var(--sans); font-size: 17px; }
.chk-opts { display: grid; gap: 8px; }
.chk-opts button { min-height: 48px; text-align: left; padding: 10px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-2); background: #fff; cursor: pointer; font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.chk-opts button[aria-pressed="true"].opt-pass { border-color: var(--safe); background: var(--safe); color: #fff; }
.chk-opts button[aria-pressed="true"].opt-alert { border-color: var(--amber); background: var(--amber); color: #fff; }
.chk-opts button[aria-pressed="true"].opt-red { border-color: var(--red); background: var(--red); color: #fff; }
.chk-msg { font-size: 15px; font-weight: 600; }
.chk.pass .chk-msg { color: var(--safe); }
.chk.alert .chk-msg { color: var(--amber); }
.chk.red .chk-msg { color: var(--red); }
.accordion { display: grid; gap: 10px; }
.accordion details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.accordion summary { cursor: pointer; padding: 14px 16px; min-height: 48px; display: grid; gap: 2px; list-style: none; position: relative; padding-right: 44px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 16px; top: 12px; font-size: 24px; font-weight: 400; color: var(--ink-3); }
.accordion details[open] summary::after { content: "–"; }
.acc-kicker { font-size: 13px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.acc-sum { font-weight: 700; font-size: 17px; }
.acc-body { padding: 0 16px 16px; color: var(--ink); }
.acc-body ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.disclaimer { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); background: var(--slate-bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #F4F2EC; padding: 24px 0 32px; font-size: 15px; color: var(--ink-2); }
.site-footer h2 { font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.site-footer ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.footer-brand { margin-top: 14px; font-weight: 600; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--safe); color: #fff; font-weight: 700; padding: 12px 18px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); z-index: 60; }

/* ---------- Responsive ---------- */
@media (min-width: 760px) {
  .summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .field-row { grid-template-columns: minmax(0, 360px); }
  .input-card { padding: 22px; }
}
@media (max-width: 899px) {
  .inst-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; position: sticky; top: 66px; z-index: 10; background: var(--bg); padding: 4px 0; }
  .inst-switch button { min-height: 46px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-2); background: #fff; font-weight: 700; cursor: pointer; }
  .inst-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
  .inst-grid { grid-template-columns: minmax(0, 1fr); }
  .inst-grid[data-show="WGL"] .inst[data-inst="NITAP"],
  .inst-grid[data-show="NITAP"] .inst[data-inst="WGL"] { display: none; }
  .cmp-grid { grid-template-columns: minmax(0, 1fr); }
  .checklist { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .site-header { padding: 12px 0 12px; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-name { font-size: 17px; letter-spacing: .05em; }
  .site-header h1 { font-size: 22px; margin-top: 10px; }
  .site-header .lede { display: none; }
  .trust-label { margin-top: 8px; font-size: 13px; }
  .tabs-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs button { font-size: 14.5px; justify-content: flex-start; }
  .inst-switch { top: 120px; }
  .card { padding: 14px; }
  .bp-facts { grid-template-columns: minmax(0, 1fr); }
  .blueprint { padding: 14px; }
  .seg label { flex: 1 1 40%; }
  .seg-wide label { flex: 1 1 100%; }
}
@media (max-width: 350px) {
  .facts, .cmp-pair { grid-template-columns: minmax(0, 1fr); }
  .shift-grid { gap: 5px; }
}

/* ---------- Print ---------- */
@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff; font-size: 11pt; }
  .no-print, .tabs, .skip, .toast, .inst-switch, .more-btn, .actions, #loading, .site-footer ul li:nth-child(n+3) { display: none !important; }
  .panel[hidden] { display: none !important; }
  .site-header { padding: 0 0 6px; border: 0; border-bottom: 1.5px solid var(--brand-navy); margin-bottom: 4px; }
  .site-header .lede { display: none; }
  .site-header h1 { font-size: 15pt; margin-top: 6px; }
  .trust-label { margin-top: 4px; font-size: 8.5pt; padding: 1px 8px; }
  /* Print lockup: logo + "VISHNU SMART INFO — JEE ANALYTICS" on one line */
  .brand { gap: 8px; }
  .brand-logo { width: 34px; height: 34px; box-shadow: none; }
  .brand-text { display: block; }
  .brand-name, .brand-sub { display: inline; font-size: 11.5pt; letter-spacing: .08em; background: none; border: 0; padding: 0; font-family: var(--serif); color: var(--brand-navy); }
  .brand-sub { color: var(--brand-gold-ink); }
  .brand-sub::before { content: " — "; color: var(--brand-navy); }
  main { padding: 6px 0; }
  .wrap { max-width: none; padding: 0; }
  .card, .bcard, .stat, .inst-head, .cmp-block, .blueprint { box-shadow: none; break-inside: avoid; }
  .inst-grid, .cmp-grid { grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .inst-grid .inst { display: grid !important; }
  .summary { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .stat { padding: 6px 8px; } .stat-value { font-size: 15pt; }
  .bcard { padding: 6px 8px; gap: 3px; border-left-width: 4px; background: #fff !important; }
  .marks-big { font-size: 15pt; } .bname { font-size: 10.5pt; }
  .facts { gap: 3px; } .facts > div { padding: 2px 6px; } .facts dd { font-size: 10pt; }
  .csab-line, .status, .badge, .marks-range { font-size: 8.5pt; }
  .tier-title { font-size: 9.5pt; }
  .print-extra { display: none !important; }
  .banner { padding: 6px 10px; }
  .site-footer { background: #fff; padding: 6px 0; font-size: 8pt; border-top: 1px solid #ccc; }
  .site-footer h2 { font-size: 9.5pt; margin-bottom: 2px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
