/* GYAN Idea Insights
   Shape system: panels 22px, inner tiles 14px, inputs 12px, buttons and chips are pills.
   Colour: one brand accent (GYAN orange). Chart colours come from the validated
   tokens below (categorical --c1..c5, ordinal readiness --trl-1..3). */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --bg: #fcf6ee;
  --bg-2: #f7ede0;
  --surface: #fffdfa;
  --surface-2: #faf3ea;
  --ink: #141a2b;
  --ink-2: #4a5164;
  --ink-3: #7f8595;
  --line: rgba(20, 26, 43, .09);
  --line-2: rgba(20, 26, 43, .16);
  --accent: #e8590c;
  --accent-ink: #b9400a;
  --accent-soft: #fde6d3;
  --grad: linear-gradient(135deg, #f7a21b 0%, #f26a1b 48%, #ea3a2c 100%);
  --btn: #141a2b;
  --btn-ink: #fffdfa;
  --grid: #ece3d7;
  --track: #f3e9dc;

  --c1: #2f5bd3; --c2: #e8590c; --c3: #0f9d84; --c4: #e9a100; --c5: #c2185b; --c0: #a3a8b4;
  --trl-1: #f29a5a; --trl-2: #e0570e; --trl-3: #9a3412;
  --seq-lo: #fde9d8; --seq-hi: #a63a10;
  --tile-ink-lo: #141a2b; --tile-ink-hi: #fffdfa;
  --trl-ink-1: #141a2b; --trl-ink-2: #fffdfa; --trl-ink-3: #fffdfa;

  --shadow-sm: 0 1px 2px rgba(122, 64, 16, .06);
  --shadow: 0 1px 2px rgba(122, 64, 16, .05), 0 18px 40px -22px rgba(122, 64, 16, .28);
  --shadow-lg: 0 30px 80px -30px rgba(80, 36, 6, .35);

  --r-panel: 22px; --r-tile: 14px; --r-input: 12px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Outfit", var(--font);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 88px;   /* tall enough for the large GYAN mark */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; line-height: 1.05; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
.num { font-family: var(--display); font-variant-numeric: proportional-nums; }

/* z-index scale: content 1, nav 40, tooltip 60, scrim 70, drawer 80, skip 100 */

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 40; transition: background-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s; }
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 1px 0 var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav .nav__inner.wrap { max-width: 1440px; }   /* a little wider than the page so the large GYAN mark and all items fit on one line */
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.brand__logo img { height: 36px; width: auto; }
.brand__logo--gyan img { height: 76px; }     /* GYAN leads and is by far the largest mark */
.brand__logo--amrita img { height: 42px; }
.brand__logo--iic img { height: 34px; }
.brand__sep { width: 1px; height: 30px; background: var(--line-2); }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topnav__item { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 80%, transparent); font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; white-space: nowrap; transition: border-color .2s, background-color .2s, transform .2s var(--ease), box-shadow .25s var(--ease); }
.topnav__item:hover { border-color: var(--line-2); background: var(--surface); }
.topnav__item:active { transform: scale(.97); }
.topnav__item i { font-size: 18px; }
.topnav__item--soon { color: var(--ink-2); cursor: default; }
.topnav__item--soon:hover { background: color-mix(in srgb, var(--surface) 80%, transparent); border-color: var(--line); }
.soon { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.topnav__item.is-nudged .soon { animation: nudge .5s var(--ease); }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-3px); } 50% { transform: translateX(3px); } 75% { transform: translateX(-2px); } }
.topnav__item--idea { gap: 9px; padding-left: 12px; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--ink); text-decoration: none; }
.topnav__item--idea img { height: 24px; width: auto; }
.topnav__item--idea:hover { background: var(--accent-soft); border-color: var(--accent); transform: translateY(-1px); }
.topnav__item--idea.is-pending { cursor: default; }
.topnav__item--idea.is-pending:hover { transform: none; border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.topnav__item--portal { background: var(--btn); color: var(--btn-ink); border-color: transparent; box-shadow: 0 10px 22px -12px rgba(20, 26, 43, .55); }
.topnav__item--portal:hover { background: var(--btn); border-color: transparent; transform: translateY(-1px); }
.topnav__item--portal .caret { font-size: 14px; transition: transform .3s var(--ease); }
.portal { position: relative; }
.portal.is-open .caret { transform: rotate(180deg); }

/* Events menu: three logo tiles in one row */
.portal__menu { position: absolute; top: calc(100% + 12px); right: 0; width: min(520px, calc(100vw - 32px)); padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-lg); transform-origin: top right; animation: menu-in .35s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.portal__quick { display: none; }
/* when the bar is tight (shell.js adds .is-compact), LMS, Idea Submission and R&D Cell move into the Events menu */
.nav.is-compact .topnav__quick { display: none; }
.nav.is-compact .portal__quick { display: grid; gap: 8px; margin-bottom: 4px; }
.portal__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; border-radius: var(--r-tile); background: var(--surface-2); border: 1px solid var(--line); font-weight: 500; color: var(--ink); text-decoration: none; transition: border-color .2s, background-color .2s; }
a.portal__row:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--surface); }
.portal__row > span:first-child { display: inline-flex; gap: 10px; align-items: center; }
.portal__row img { height: 26px; width: auto; }
.portal__row i { font-size: 18px; color: var(--ink-3); }
.portal__row.is-soon { color: var(--ink-2); cursor: default; }
.portal__row.is-nudged .soon { animation: nudge .5s var(--ease); }
.portal__label { margin: 10px 4px 2px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.portal__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.portal__item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; height: 100%; padding: 16px 10px 14px; border-radius: var(--r-tile); border: 1px solid var(--line); background: var(--surface-2); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s var(--ease), background-color .3s; }
.portal__item::after { content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0; background: var(--grad); clip-path: polygon(0 0, 100% 0, 100% 100%); transition: width .3s var(--ease), height .3s var(--ease); }
.portal__item:hover, .portal__item:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--surface); box-shadow: var(--shadow); }
.portal__item:hover::after, .portal__item:focus-visible::after { width: 26px; height: 26px; }
.portal__logo { display: grid; place-items: center; width: 100%; height: 78px; }
.portal__logo img { max-width: 100%; max-height: 78px; width: auto; height: auto; object-fit: contain; }
.portal__text { display: grid; gap: 2px; }
.portal__text b { font-family: var(--display); font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.portal__text small { font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.portal__go { position: absolute; top: 10px; left: 10px; font-size: 14px; color: var(--ink-3); opacity: 0; transition: opacity .25s; }
.portal__item:hover .portal__go { opacity: 1; }
.portal__item.is-pending { cursor: default; }
.portal__item.is-pending .portal__go { display: none; }
.portal__item.is-pending small { color: var(--accent-ink); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 19px; transition: transform .2s var(--ease), background-color .2s, border-color .2s; }
.icon-btn:hover { border-color: var(--line-2); background: var(--surface-2); }
.icon-btn:active { transform: scale(.95); }
.icon-btn--sm { width: 32px; height: 32px; font-size: 16px; }
.icon-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 500; font-size: 16px; text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary { background: var(--btn); color: var(--btn-ink); box-shadow: 0 10px 24px -12px rgba(20, 26, 43, .6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(20, 26, 43, .6); }
.btn--primary i { transition: transform .25s var(--ease); }
.btn--primary:hover i { transform: translateX(3px); }
.btn--ghost { background: color-mix(in srgb, var(--surface) 70%, transparent); border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.link-btn { background: none; border: 0; color: var(--accent-ink); font-weight: 500; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 6px 0; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100dvh, 900px); padding-top: calc(var(--nav-h) + 24px); padding-bottom: 32px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero__glow { position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(242, 106, 27, .20), rgba(234, 58, 44, .08) 55%, transparent 72%);
  filter: blur(10px); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
.hero__title { font-size: clamp(40px, 4.7vw, 74px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; margin: 18px 0 22px; }
.hero__title .line { display: block; }
.hero__title .accent { color: var(--accent); }
.hero__sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 30ch; line-height: 1.5; }
.hero__sub strong { color: var(--ink); font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__viz { margin: 0; display: grid; justify-items: center; gap: 18px; }
.bloom { width: min(100%, 560px); aspect-ratio: 1; position: relative; }
.bloom svg { width: 100%; height: 100%; overflow: visible; }
.bloom .spin { transform-origin: 300px 300px; animation: spin 240s linear infinite; }
.bloom:hover .spin { animation-play-state: paused; }
.bloom circle.dot { cursor: pointer; transition: r .2s var(--ease); }
.bloom__core { position: absolute; inset: 50% auto auto 50%; width: 15.5%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; }
.bloom__core img { width: 54%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* legends (identity is never colour alone: swatch + label + count) */
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--ink-2); }
.legend .key { display: inline-flex; align-items: center; gap: 8px; }
.legend .sw { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px var(--surface); }
.legend .key b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.legend--sm { font-size: 12.5px; gap: 6px 14px; }

/* ---------- KPI band ---------- */
.kpis { margin-top: -8px; position: relative; z-index: 2; }
.kpis__grid { display: grid; grid-template-columns: repeat(6, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow); overflow: hidden; }
.kpi { padding: 26px 24px 24px; position: relative; }
.kpi + .kpi::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.kpi__val { font-family: var(--display); font-size: clamp(34px, 3.4vw, 46px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.kpi__val small { font-size: .55em; margin-left: 2px; font-weight: 500; }
.kpi__label { margin-top: 10px; font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.kpi__label i { color: var(--accent); font-size: 17px; }
.kpi--accent .kpi__val { color: var(--accent); }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0 0; }
.section__head { margin-bottom: 32px; max-width: 760px; }
.section__head h2 { font-size: clamp(34px, 4.4vw, 56px); }
.section__head .eyebrow { margin-bottom: 16px; }
.lede { margin-top: 14px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 60ch; }
.lede b { color: var(--ink); font-weight: 600; }

.panel { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 26px; box-shadow: var(--shadow-sm); }
.panel--flush { padding: 0; overflow: hidden; }
.panel__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.panel__head--pad { padding: 22px 26px 0; }
.panel__head h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-right: auto; }
.panel__head .legend { margin-right: 4px; }
.panel__note { font-size: 13.5px; color: var(--ink-3); }
.panel--warm { background: linear-gradient(160deg, color-mix(in srgb, var(--accent-soft) 70%, var(--surface)) 0%, var(--surface) 62%); }
.hint { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.bento { display: grid; gap: 20px; }
.bento > *, .panel { min-width: 0; }

/* table view (accessible alternative to every chart) */
.table-view { overflow-x: auto; }
.table-view--pad { padding: 0 26px 26px; }
.table-view table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-view th, .table-view td { text-align: left; padding: 9px 10px; }
.table-view thead th { font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.table-view td.n, .table-view th.n { text-align: right; font-variant-numeric: tabular-nums; }
.table-view tbody tr + tr td { border-top: 1px solid var(--line); }
.panel.show-table .chart-body, .panel.show-table [data-chart] { display: none; }

/* ---------- galaxy ---------- */
.galaxy { padding: 22px 22px 18px; overflow: hidden; }
.galaxy__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; position: relative; }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: color .25s; }
.seg button[aria-checked="true"] { color: var(--btn-ink); }
.seg__thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--btn); transition: transform .45s var(--ease), width .45s var(--ease); }
.galaxy__stage { position: relative; }
.galaxy__stage svg { display: block; width: 100%; overflow: visible; transition: height .7s var(--ease); }
.galaxy .glabel { font-size: 13px; fill: var(--ink-2); font-weight: 500; }
.galaxy .gnum { fill: var(--ink); font-family: var(--display); font-weight: 600; letter-spacing: -.02em; }
.galaxy .halo { fill: var(--surface-2); stroke: var(--line); }
.galaxy circle.dot { cursor: pointer; stroke: var(--surface); stroke-width: 1.5px; }
.galaxy circle.dot:hover, .bloom circle.dot:hover { stroke: var(--ink); stroke-width: 2px; }

/* ---------- sources ---------- */
.bento--sources { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.bars { display: grid; gap: 4px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 16px; align-items: center; padding: 6px 8px; margin: 0 -8px; border-radius: 10px; cursor: pointer; transition: background-color .2s; border: 0; background: none; text-align: left; width: calc(100% + 16px); }
.bar-row:hover, .bar-row:focus-visible { background: var(--surface-2); }
.bar-row__label { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row__track { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bar { height: 16px; border-radius: 0 4px 4px 0; background: var(--accent); transform-origin: left center; flex-shrink: 0; min-width: 3px; }
.bar--muted { background: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
.bar-row:hover .bar--muted { background: var(--accent); }
.bar-row__val { font-family: var(--display); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }

.hero-fig { font-family: var(--display); font-size: clamp(56px, 6vw, 84px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.hero-fig + p { margin-top: 8px; color: var(--ink-2); font-size: 15px; max-width: 30ch; }
.segbar { display: flex; gap: 2px; height: 28px; margin: 26px 0 14px; }
.segbar > div { border-radius: 4px; display: flex; align-items: center; padding: 0 9px; font-size: 12.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: visible; transform-origin: left; cursor: default; min-width: 4px; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.levels div { display: grid; gap: 2px; }
.levels b { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.levels span { font-size: 13px; color: var(--ink-2); }

/* ---------- readiness ---------- */
.trl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; align-items: end; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 24px 24px 0; overflow: hidden; display: grid; grid-template-rows: auto auto 1fr; box-shadow: var(--shadow-sm); }
.step__top { display: flex; justify-content: space-between; align-items: baseline; }
.step__lvl { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--ink-3); }
.step__count { font-size: 14px; color: var(--ink-2); }
.step__pct { font-family: var(--display); font-size: clamp(48px, 5.4vw, 76px); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin-top: 10px; }
.step__name { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.step__col { margin: 22px auto 0; width: 64%; border-radius: 10px 10px 0 0; transform-origin: bottom; align-self: end; }
.step--peak { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow); }

.stack-rows { display: grid; gap: 10px; }
.srow { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) 44px; gap: 16px; align-items: center; }
.srow__label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); min-width: 0; }
.srow__label i { font-size: 18px; color: var(--ink-3); flex-shrink: 0; }
.srow__label span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow__bar { display: flex; gap: 2px; height: 22px; transform-origin: left; }
.srow__bar > div { border-radius: 4px; min-width: 3px; display: flex; align-items: center; justify-content: flex-start; padding-left: 7px; font-size: 11.5px; font-weight: 600; color: #fff; cursor: default; transition: filter .2s, opacity .2s; }
.srow__bar:hover > div { opacity: .55; }
.srow__bar > div:hover { opacity: 1; filter: saturate(1.15); }
.srow__n { font-family: var(--display); font-weight: 600; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.on-light { color: #141a2b !important; }

/* ---------- themes ---------- */
.bento--themes { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.treemap { position: relative; height: 460px; margin: 18px 12px 12px; }
.tile { position: absolute; border-radius: var(--r-tile); padding: 14px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; border: 0; text-align: left; transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .25s; color: var(--tile-ink-lo); }
.tile.hi { color: var(--tile-ink-hi); }
.tile:hover, .tile:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); z-index: 2; }
.tile i { font-size: 24px; opacity: .9; }
.tile__name { display: block; font-size: 14px; font-weight: 500; line-height: 1.25; margin-top: 6px; }
.tile__n { display: block; font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.tile__n small { font-size: 13px; font-weight: 500; opacity: .75; margin-left: 4px; letter-spacing: 0; }
.tile.small .tile__name { font-size: 12.5px; }
.tile.small .tile__n { font-size: 22px; }
.tile.tiny i, .tile.tiny .tile__name { display: none; }

.tech { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tech li { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 8px 0; }
.tech li + li { border-top: 1px solid var(--line); }
.tech svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.tech .ring-track { stroke: var(--track); }
.tech .ring { stroke: var(--accent); stroke-linecap: round; }
.tech li:first-child .ring { stroke: var(--trl-3); }
.tech__name { font-size: 15px; font-weight: 500; }
.tech__sub { font-size: 13px; color: var(--ink-3); }
.tech__pct { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }

/* ---------- builders ---------- */
.bento--builders { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.panel--wide { grid-column: 1 / -1; }
.schools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 26px; }
.school-list { display: grid; gap: 6px; align-content: start; }
.school-btn { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-tile); border: 1px solid transparent; background: none; text-align: left; cursor: pointer; transition: background-color .2s, border-color .2s; }
.school-btn:hover { background: var(--surface-2); }
.school-btn[aria-pressed="true"] { background: var(--surface-2); border-color: var(--line-2); }
.school-btn .sw { width: 12px; height: 12px; border-radius: 50%; }
.school-btn__name { font-size: 14.5px; font-weight: 500; line-height: 1.25; }
.school-btn__n { font-family: var(--display); font-weight: 600; font-size: 20px; }
.school-btn__n small { font-size: 12px; color: var(--ink-3); font-family: var(--font); font-weight: 400; margin-left: 4px; }
.progs { display: grid; gap: 8px; align-content: start; }
.progs__title { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.prog { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; }
.prog__top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.prog__top span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog__top b { font-variant-numeric: tabular-nums; font-weight: 600; }
.prog__bar { height: 8px; border-radius: 0 4px 4px 0; transform-origin: left; }

.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; height: 300px; align-items: end; }
.col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; gap: 8px; cursor: default; }
.col__val { font-family: var(--display); font-weight: 600; font-size: 22px; align-self: end; }
.col__barwrap { display: flex; align-items: flex-end; justify-content: center; }
.col__bar { width: min(100%, 24px); border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--accent) 55%, var(--surface)); transform-origin: bottom; }
.col--peak .col__bar { background: var(--accent); }
.col__label { font-size: 14px; font-weight: 600; border-top: 1px solid var(--line-2); padding-top: 10px; }
.col__label small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12.5px; }

.sankey-scroll { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.sankey { min-width: 680px; }
.sankey svg { display: block; width: 100%; height: auto; overflow: visible; }
.sankey .link { fill: none; stroke-opacity: .28; transition: stroke-opacity .25s; }
.sankey.is-hover .link { stroke-opacity: .07; }
.sankey.is-hover .link.on { stroke-opacity: .7; }
.sankey .node rect { rx: 3px; }
.sankey .nlabel { font-size: 13px; fill: var(--ink-2); }
.sankey .nlabel .n { fill: var(--ink); font-weight: 600; }

/* ---------- explorer ---------- */
.section--explorer .section__head { margin-bottom: 24px; }
.filters { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 5; display: grid; grid-template-columns: minmax(220px, 2fr) repeat(5, minmax(0, 1fr)); gap: 10px; padding: 10px; background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow); }
.field { position: relative; display: block; }
.field select, .field input { width: 100%; height: 46px; border-radius: var(--r-input); border: 1px solid var(--line-2); background: var(--surface); padding: 0 14px; font-size: 14.5px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; padding-right: 34px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; text-overflow: ellipsis; }
.field select.is-set { border-color: var(--accent); background-color: var(--accent-soft); }
.field input::placeholder { color: var(--ink-3); }
.field select:focus, .field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field--search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 18px; pointer-events: none; }
.field--search input { padding-left: 42px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin: 20px 2px 14px; font-size: 14.5px; color: var(--ink-2); min-height: 32px; }
.results-bar b { color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; min-height: 196px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; overflow: hidden; }
.card::after { /* GYAN corner fold, revealed on hover */
  content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0; background: var(--grad);
  clip-path: polygon(0 0, 100% 0, 100% 100%); transition: width .35s var(--ease), height .35s var(--ease); }
.card:hover, .card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card:hover::after, .card:focus-visible::after { width: 38px; height: 38px; }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chip i { font-size: 14px; color: var(--accent); }
.pips { display: inline-flex; gap: 2px; align-items: center; flex-shrink: 0; }
.pips span { width: 5px; height: 12px; border-radius: 2px; background: var(--track); }
.pips span.on { background: var(--accent); }
.pips b { font-size: 11.5px; color: var(--ink-3); font-weight: 600; margin-left: 7px; letter-spacing: .04em; }
.card__title { font-family: var(--display); font-size: 18.5px; font-weight: 500; line-height: 1.28; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__title.is-pending { color: var(--ink-3); font-style: italic; }
.card__meta { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; font-size: 13px; color: var(--ink-3); }
.card__who { display: grid; gap: 1px; min-width: 0; }
.card__who b { color: var(--ink); font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__event { text-align: right; max-width: 48%; }
.empty { text-align: center; padding: 64px 16px; color: var(--ink-2); display: grid; justify-items: center; gap: 14px; }
.empty i { font-size: 40px; color: var(--accent); }
.more { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- tooltip ---------- */
.tip { position: fixed; z-index: 60; left: 0; top: 0; pointer-events: none; max-width: 300px; padding: 12px 14px; background: var(--btn); color: var(--btn-ink); border-radius: 12px; font-size: 13.5px; line-height: 1.4; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.tip.is-on { opacity: 1; transform: none; }
.tip b { display: block; font-family: var(--display); font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.tip .t-sub { opacity: .72; font-size: 12.5px; }
.tip ul { margin: 6px 0 0; padding-left: 16px; }
.tip li { margin: 2px 0; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(12, 17, 27, .4); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s var(--ease); }
.scrim.is-on { opacity: 1; }
.drawer { position: fixed; z-index: 80; top: 12px; right: 12px; bottom: 12px; width: min(460px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-lg); transform: translateX(calc(100% + 24px)); transition: transform .5s var(--ease); display: flex; flex-direction: column; overflow: hidden; }
.drawer.is-on { transform: none; }
.drawer__close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.drawer__body { overflow-y: auto; padding: 28px 28px 32px; }
.drawer__fold { position: absolute; top: 0; left: 0; width: 84px; height: 84px; background: var(--grad); clip-path: polygon(0 0, 100% 0, 0 100%); opacity: .95; }
.d-chip { margin: 36px 0 16px; }
.d-title { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; font-weight: 600; padding-right: 20px; }
.d-trl { margin: 24px 0; padding: 18px; border-radius: var(--r-tile); background: var(--surface-2); }
.d-trl__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.d-trl__top b { font-family: var(--display); font-size: 20px; font-weight: 600; }
.d-trl__top span { font-size: 13.5px; color: var(--ink-2); }
.d-trl__bar { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; }
.d-trl__bar span { height: 8px; border-radius: 4px; background: var(--track); }
.d-trl__bar span.on { background: var(--accent); }
.d-trl__scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin: 0; }
.facts div { min-width: 0; }
.facts dt { font-size: 12.5px; color: var(--ink-3); margin-bottom: 3px; }
.facts dd { margin: 0; font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.d-similar { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.d-similar h4 { margin: 0 0 12px; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.d-similar button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 0; cursor: pointer; font-size: 14.5px; color: var(--ink); border-bottom: 1px solid var(--line); transition: color .2s, padding .25s var(--ease); }
.d-similar button:hover { color: var(--accent-ink); padding-left: 6px; }

/* ---------- login ---------- */
.topnav__item--login { padding: 0 16px; }
.topnav__item--login.is-in { color: var(--ink-2); }

.locked { position: relative; min-height: 360px; border-radius: var(--r-panel); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.locked__ghost { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 20px; filter: blur(3px); opacity: .7; }
.locked__ghost span { border-radius: var(--r-tile); background:
  linear-gradient(var(--track), var(--track)) 20px 22px / 40% 12px no-repeat,
  linear-gradient(var(--track), var(--track)) 20px 54px / 80% 14px no-repeat,
  linear-gradient(var(--track), var(--track)) 20px 78px / 62% 14px no-repeat,
  linear-gradient(var(--track), var(--track)) 20px calc(100% - 24px) / 30% 10px no-repeat,
  var(--surface-2); min-height: 150px; }
.locked__card { position: relative; z-index: 1; margin: 64px auto; width: min(440px, calc(100% - 32px)); padding: 32px 28px; text-align: center; display: grid; justify-items: center; gap: 10px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.locked__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: 26px; margin-bottom: 6px; }
.locked__card h3 { font-size: 22px; letter-spacing: -.02em; }
.locked__card p { color: var(--ink-2); font-size: 15px; margin-bottom: 10px; }

.scrim--login { z-index: 85; }
.login { position: fixed; z-index: 90; left: 50%; top: 50%; width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 36px 32px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-lg); transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .45s var(--ease), opacity .3s var(--ease); }
.login.is-on { transform: translate(-50%, -50%); opacity: 1; }
.login.is-shake { animation: shake .45s var(--ease); }
@keyframes shake { 0%, 100% { margin-left: 0; } 20% { margin-left: -8px; } 40% { margin-left: 7px; } 60% { margin-left: -5px; } 80% { margin-left: 3px; } }
.login__close { position: absolute; top: 14px; right: 14px; }
.login__fold { position: absolute; top: 0; left: 0; width: 70px; height: 70px; background: var(--grad); clip-path: polygon(0 0, 100% 0, 0 100%); }
.login__mark { height: 64px; width: auto; margin: 0 auto 14px; }
.login__title { text-align: center; font-size: 26px; letter-spacing: -.02em; margin-bottom: 22px; }
.login__form { display: grid; gap: 16px; }
.lf { display: grid; gap: 7px; }
.lf label { font-size: 14px; font-weight: 500; color: var(--ink); }
.lf input { width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r-input); border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.lf input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.lf__pw { position: relative; }
.lf__pw input { padding-right: 48px; }
.lf__eye { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--ink-3); font-size: 19px; cursor: pointer; display: grid; place-items: center; }
.lf__eye:hover { color: var(--ink); background: var(--surface-2); }
.lf__error { margin-top: -4px; font-size: 13.5px; color: #b42318; display: flex; gap: 6px; align-items: center; }
.login__submit { width: 100%; justify-content: center; margin-top: 4px; }
.login__sso { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--ink-3); display: flex; gap: 7px; justify-content: center; align-items: center; }

/* ---------- footer ---------- */
.footer { position: relative; margin-top: clamp(88px, 12vw, 150px); padding: 64px 0 48px; border-top: 1px solid var(--line); overflow: hidden; background: linear-gradient(to bottom, transparent, var(--bg-2)); }
.footer__mark { position: absolute; left: 50%; bottom: -0.34em; transform: translateX(-50%); font-family: var(--display); font-weight: 700; font-size: clamp(140px, 26vw, 360px); letter-spacing: -.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line); pointer-events: none; user-select: none; white-space: nowrap; }
.footer__inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.contact { display: flex; align-items: center; gap: 28px; padding: 22px 30px 22px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow); max-width: 640px; }
.contact__photo { flex-shrink: 0; width: 132px; height: 132px; padding: 4px; border-radius: 50%; background: var(--grad); }
.contact__photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); background: #fff; }
.contact__body { min-width: 0; }
.contact__body .eyebrow { font-size: 12px; }
.contact__name { font-size: clamp(22px, 2.2vw, 27px); font-weight: 600; letter-spacing: -.02em; margin: 8px 0 8px; line-height: 1.15; }
.contact__role { display: grid; gap: 1px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.contact__role span:first-child { color: var(--ink); font-weight: 500; }
.contact__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill-link { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; transition: border-color .2s, color .2s, transform .2s var(--ease); }
.pill-link i { font-size: 17px; color: var(--accent); }
.pill-link:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.footer__logos { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer__logos img { height: 44px; width: auto; }
.footer__logos .footer__gyan { height: 58px; }
.footer__logos .footer__amrita { height: 64px; }

/* ---------- reveal (JS adds .is-in) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .kpis__grid { grid-template-columns: repeat(3, 1fr); }
  .kpi:nth-child(4)::before { display: none; }
  .kpi:nth-child(n+4) { border-top: 1px solid var(--line); }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field--search { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .brand { gap: 12px; }
  .brand__logo img { height: 32px; }
  .brand__logo--gyan img { height: 64px; }
  .brand__logo--amrita img { height: 36px; }
  .brand__logo--iic img { height: 30px; }
  .footer__inner { justify-content: center; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 32px); }
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__viz { order: 2; }
  .bloom { width: min(100%, 440px); }
  .bento--sources, .bento--themes, .bento--builders { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schools { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --nav-h: 72px; }
  .wrap { padding-inline: 16px; }
  .brand { gap: 10px; }
  .brand__logo img { height: 28px; }
  .brand__logo--gyan img { height: 56px; }
  .brand__logo--amrita img { height: 30px; }
  .brand__logo--iic img { height: 26px; }
  .brand__sep { height: 22px; }
  .icon-btn { width: 38px; height: 38px; font-size: 18px; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .kpis__grid { grid-template-columns: repeat(2, 1fr); }
  .kpi { padding: 20px 18px; }
  .kpi::before { display: none; }
  .kpi:nth-child(even)::before { display: block !important; top: 18px; bottom: 18px; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .panel { padding: 20px 16px; }
  .panel__head--pad { padding: 18px 16px 0; }
  .galaxy { padding: 16px 12px 14px; }
  .seg { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg button { padding: 8px 13px; font-size: 13.5px; flex: 1 0 auto; }
  .bar-row { grid-template-columns: 1fr; gap: 6px; }
  .trl-steps { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; padding: 18px 18px 0; }
  .step__col { display: none; }
  .step { padding-bottom: 18px; }
  .srow { grid-template-columns: 1fr 36px; gap: 6px 10px; }
  .srow__label { grid-column: 1 / -1; }
  .treemap { height: 520px; margin: 14px 8px 8px; }
  .cols { height: 240px; gap: 8px; }
  .filters { position: static; grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .drawer { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 88dvh; transform: translateY(calc(100% + 24px)); }
  .footer__logos { gap: 20px; }
  .footer__logos img { height: 32px; }
  .footer__logos .footer__gyan { height: 44px; }
  .footer__logos .footer__amrita { height: 50px; }
}

/* Small screens: the Events menu becomes a full-width sheet with list rows */
@media (max-width: 760px) {
  .portal { position: static; }
  .portal__menu { position: fixed; top: calc(var(--nav-h) + 4px); left: 12px; right: 12px; width: auto; max-height: calc(100dvh - var(--nav-h) - 20px); overflow-y: auto; padding: 10px; }
  .portal__grid { grid-template-columns: 1fr; gap: 8px; }
  .portal__item { flex-direction: row; text-align: left; gap: 14px; padding: 10px 14px 10px 10px; }
  .portal__logo { width: 72px; height: 56px; flex-shrink: 0; background: var(--surface); border-radius: 10px; padding: 6px; }
  .portal__logo img { max-height: 44px; }
  .portal__go { position: static; opacity: 1; margin-left: auto; font-size: 16px; }
}

@media (max-width: 680px) {
  .locked__ghost { grid-template-columns: 1fr; }
  .locked__card { margin: 40px auto; padding: 28px 20px; }
  .login { padding: 32px 22px 24px; }
  .contact { flex-direction: column; text-align: center; padding: 26px 20px; }
  .contact__role { justify-items: center; }
  .contact__links { justify-content: center; }
  .footer__logos { justify-content: center; gap: 20px; }
}

@media (max-width: 600px) {
  .nav__inner { gap: 12px; }
  .topnav { gap: 4px; }
  .topnav__item--login { width: 44px; padding: 0; justify-content: center; }
  .topnav__item--login .login__text { display: none; }
  .topnav__item--portal { padding: 0 12px; }
  .topnav__item--portal > .ph-calendar-star { display: none; }
}

@media (max-width: 480px) {
  .brand__logo--iic, .brand__sep--iic { display: none; }
  .brand__logo img { height: 26px; }
  .brand__logo--gyan img { height: 50px; }
  .brand__logo--amrita img { height: 28px; }
}

@media (max-width: 360px) {
  .brand { gap: 8px; }
  .brand__logo--gyan img { height: 42px; }
  .brand__logo--amrita img { height: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (forced-colors: active) {
  .bar, .col__bar, .segbar > div, .srow__bar > div, .prog__bar { forced-color-adjust: none; }
}

/* support card (Idea Submission footer): icon in place of a photo */
.contact__photo--icon span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--surface); background: var(--accent-soft); color: var(--accent-ink); font-size: 52px; }

/* student convener row inside the support card */
.contact__person { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.contact__initials { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--display); font-weight: 600; font-size: 15px; flex-shrink: 0; }
.contact__who { display: grid; gap: 1px; margin-right: auto; min-width: 0; }
.contact__who b { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.contact__who small { font-size: 13.5px; color: var(--ink-2); }
.contact--support .contact__name { margin-bottom: 12px; }
.contact--support .contact__links { margin-top: 0; }
@media (max-width: 680px) {
  .contact__person { justify-content: center; text-align: left; }
  .contact__who { margin-right: 0; }
}

/* slim support card (Idea Submission footer): no icon, two compact lines */
.contact--slim { display: grid; gap: 0; padding: 16px 20px; max-width: 580px; }
.contact--slim .contact__line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.contact--slim .contact__name { font-size: 17px; margin: 0; letter-spacing: -.01em; }
.contact--slim .contact__person { margin-top: 12px; padding-top: 12px; gap: 8px 12px; }
.contact--slim .contact__initials { width: 32px; height: 32px; font-size: 12.5px; }
.contact--slim .contact__who b { font-size: 14.5px; }
.contact--slim .contact__who small { font-size: 13px; }
.contact--slim .pill-link { height: 34px; padding: 0 12px; font-size: 13.5px; }
/* R&D Cell page: student convener card, text only */
.contact--plain { padding: 20px 24px; max-width: 520px; }
.contact--plain .contact__kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.contact--plain .contact__name { font-size: 22px; margin: 6px 0 2px; }
.contact--plain .contact__links { margin-top: 12px; }
@media (max-width: 680px) {
  .contact--slim { text-align: left; padding: 14px 16px; width: 100%; }
  .contact--slim .contact__person { justify-content: flex-start; }
  .contact--slim .contact__who { margin-right: auto; }
}

/* the top-bar item for the page you are on */
.topnav__item.is-current { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* "Signed in as admin" strip above the unlocked explorer */
.signed-in { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }
.signed-in i { color: var(--c3); font-size: 18px; }
.signed-in .link-btn { margin-left: 6px; }
