/* ==========================================================================
   Bangladeshi Student Research Initiative
   Palette: bottle green as ink, vermilion spent only on actions,
   neutrals biased green. Type: Newsreader / Public Sans / IBM Plex Mono.
   ========================================================================== */

/* --- Tokens: light is the base; both dark states redefine only tokens ----- */
:root {
  --paper:        #FAFBF8;
  --surface:      #FFFFFF;
  --sunk:         #F1F5F0;
  --ink:          #131E19;
  --ink-2:        #3D4E47;
  --ink-3:        #6B7C74;
  --rule:         #D9E1DB;
  --rule-strong:  #B7C5BD;
  --green:        #0A5C43;
  --green-deep:   #063B2C;
  --green-soft:   #E3EFE8;
  --flame:        #C8402C;
  --flame-ink:    #FFFFFF;
  --flame-soft:   #FBE9E5;
  --focus:        #0A5C43;
  --fb:           #1877F2;
  --yt:           #E62117;

  --font-display: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --font-body:    "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --measure: 34rem;
  --page-max: 74rem;
  --gutter: clamp(1rem, 4vw, 3.5rem);

  --step-0:  1.0625rem;
  --step-1:  1.1875rem;
  --step-2:  1.4rem;
  --step-3:  1.75rem;
  --step-4:  2.25rem;
  --step-5:  clamp(2.4rem, 1.5rem + 3.6vw, 4rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:       #0A120F;
    --surface:     #101A16;
    --sunk:        #16221D;
    --ink:         #E6EDE8;
    --ink-2:       #AEBEB6;
    --ink-3:       #7E8F87;
    --rule:        #23322B;
    --rule-strong: #35473E;
    --green:       #4FB08A;
    --green-deep:  #2E7A5D;
    --green-soft:  #15251E;
    --flame:       #EC8068;
    --flame-ink:   #1A0D09;
    --flame-soft:  #291611;
    --focus:       #4FB08A;
  --fb:          #5CA8FF;
  --yt:          #FF5B52;
  }
}

:root[data-theme="dark"] {
  --paper:       #0A120F;
  --surface:     #101A16;
  --sunk:        #16221D;
  --ink:         #E6EDE8;
  --ink-2:       #AEBEB6;
  --ink-3:       #7E8F87;
  --rule:        #23322B;
  --rule-strong: #35473E;
  --green:       #4FB08A;
  --green-deep:  #2E7A5D;
  --green-soft:  #15251E;
  --flame:       #EC8068;
  --flame-ink:   #1A0D09;
  --flame-soft:  #291611;
  --focus:       #4FB08A;
  --fb:          #5CA8FF;
  --yt:          #FF5B52;
}

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
  letter-spacing: -0.012em;
  margin: 0;
}

p { margin: 0; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: #fff; padding: .7rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* --- Shared type utilities ---------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

.lede {
  font-size: var(--step-2);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: var(--measure);
  font-weight: 300;
}

.prose { max-width: var(--measure); display: flex; flex-direction: column; gap: 1.1em; color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }

/* --- Header ------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  min-height: 4rem;
  padding-block: .6rem;
}

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex: 0 1 auto; min-width: 0; }
.brand__full {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@media (max-width: 74rem) { .brand__full { display: none; } }

.nav { display: flex; align-items: center; gap: 1.25rem; flex: 0 0 auto; }
.nav a {
  font-size: .875rem;
  white-space: nowrap;
  color: var(--ink-2);
  text-decoration: none;
  padding-block: .25rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--green); border-bottom-color: var(--green); }
/* Below the breakpoint the nav becomes a panel under the bar, opened by the
   menu button. Without this there is no navigation on a phone at all. */
.nav-toggle { display: none; }

@media (max-width: 58rem) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    background: transparent;
    color: var(--ink-2);
    border: 1px solid var(--rule);
    border-radius: 6px;
    cursor: pointer;
  }
  .nav-toggle:hover { color: var(--green); border-color: var(--green); }
  .nav-toggle svg { width: 1.35rem; height: 1.35rem; max-width: none; }
  .nav-toggle__x { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__x { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .35rem var(--gutter) 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 24px -18px rgba(0,0,0,.5);
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding-block: .85rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--rule);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a:hover { border-bottom-color: var(--rule); }
  .nav a.is-current { color: var(--green); }

}

.theme-toggle {
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .35rem .75rem;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--green); border-color: var(--green); }
.theme-toggle__icon { display: none; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  padding: .72rem 1.2rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--flame); color: var(--flame-ink); }
.btn--primary:hover { background: var(--ink); color: var(--paper); }
.btn--ghost { border-color: var(--rule-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }

/* --- Sections ----------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--rule); }
.section--plain { border-top: 0; }

.section__head {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-bottom: 2.75rem;
  max-width: 46rem;
}
.section__head h2 { font-size: var(--step-4); }

/* --- Hero: thesis on the left, the actual span of fields on the right ---- */
.hero { padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3rem, 6vw, 5rem); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 62rem) { .hero__grid { grid-template-columns: 1fr; } }

.hero__thesis { display: flex; flex-direction: column; gap: 1.5rem; }

.hero h1 {
  font-size: var(--step-5);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.06;
}
.hero h1 em {
  font-style: italic;
  color: var(--green);
}

.hero__mission {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 32rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }

.hero__note {
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1.6;
  color: var(--ink-3);
  letter-spacing: .01em;
}

/* The field index — the interdisciplinary span, shown rather than claimed */
.fieldindex {
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 1.5rem 1.6rem 1.7rem;
}
.fieldindex__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .9rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.fieldindex__count {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--green);
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.fieldindex__list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 1.6rem;
}
@media (max-width: 30rem) { .fieldindex__list { columns: 1; } }
.fieldindex__list li {
  font-family: var(--font-mono);
  font-size: .74rem;
  line-height: 1.5;
  color: var(--ink-2);
  padding-block: .3rem;
  break-inside: avoid;
  border-bottom: 1px solid var(--rule);
}
.fieldindex__list li:last-child { border-bottom: 0; }

/* --- Goals: a set, not a sequence — no numbering ------------------------ */
.goals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 48rem) { .goals { grid-template-columns: 1fr; } }

.goal {
  background: var(--paper);
  padding: 1.9rem 1.8rem 2.1rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.goal h3 { font-size: var(--step-2); }
.goal p { color: var(--ink-2); font-size: .95rem; line-height: 1.6; }

/* --- Who we are: facts rail -------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 58rem) { .about__grid { grid-template-columns: 1fr; } }

.facts { display: flex; flex-direction: column; border-top: 1px solid var(--rule-strong); }
.fact {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: .95rem;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
@media (max-width: 26rem) { .fact { grid-template-columns: 1fr; gap: .2rem; } }
.fact dt {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.fact dd { margin: 0; font-size: .95rem; color: var(--ink); }

/* --- Mentor roster: a typographic index, not avatar cards --------------- */
.roster { border-top: 1px solid var(--rule-strong); }
.roster__group { border-bottom: 1px solid var(--rule); }
.roster__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
}
@media (max-width: 52rem) { .roster__grid { grid-template-columns: 1fr; } }

.mentor {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--rule);
}
.mentor__name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}
.mentor__fields {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1.55;
  color: var(--ink-3);
  letter-spacing: .005em;
}

/* --- Code of conduct ---------------------------------------------------- */
.principles { display: flex; flex-direction: column; border-top: 1px solid var(--rule-strong); }
.principle {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: .35rem 2rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
@media (max-width: 46rem) { .principle { grid-template-columns: 1fr; } }
.principle__name { font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; }
.principle p { color: var(--ink-2); font-size: .95rem; }

/* --- Apply -------------------------------------------------------------- */
.apply { background: var(--green-soft); border-top: 1px solid var(--rule); }
.apply__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 48rem) { .apply__grid { grid-template-columns: 1fr; } }
.track {
  background: var(--paper);
  padding: 2rem 1.9rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  align-items: flex-start;
}
.track h3 { font-size: var(--step-3); }
.track p { color: var(--ink-2); font-size: .95rem; }
.track .btn { margin-top: .5rem; }

/* --- Footer ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--rule); padding-block: 2.75rem 3.5rem; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer p, .footer a { font-size: .82rem; color: var(--ink-3); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--green); }

/* --- Small structural helpers ------------------------------------------- */
.roster__label { padding-block: 1.4rem .8rem; }
.prose--after { margin-top: 2rem; }
.footer__name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
}

/* --- Mentor entry detail ------------------------------------------------ */
.mentor__affil {
  display: block;
  font-family: var(--font-body);
  font-size: .82rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.mentor__link {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  align-self: flex-start;
  margin-top: .25rem;
  padding-bottom: 1px;
}
.mentor__link:hover { color: var(--ink); border-bottom-color: var(--green); }

/* --- Cohorts: each year is its own object, never one merged band -------- */
.cohorts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
@media (max-width: 48rem) { .cohorts { grid-template-columns: 1fr; } }

.cohort {
  background: var(--paper);
  padding: 1.6rem 1.7rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.cohort__head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.cohort__year {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 500;
  line-height: 1;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.pill {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  padding: .28rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pill--done { background: var(--sunk); color: var(--ink-3); border: 1px solid var(--rule); }
.pill--live { background: var(--flame-soft); color: var(--flame); border: 1px solid var(--flame); }

.cohort__note {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--ink-2);
  flex: 1;
}
.cohort__figures {
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.figure { display: flex; flex-direction: column-reverse; gap: .1rem; }
.figure dt {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.figure dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Past mentors read as a footnote to the roster, not a second roster */
.roster__group--past { padding-bottom: 1.5rem; }
.pastmentors {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: var(--measure);
  margin: 0 0 .4rem;
}

/* --- Multi-page navigation --------------------------------------------- */
.nav a.is-current {
  color: var(--green);
  border-bottom-color: var(--green);
}

.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }

/* A link to another page reads as a destination, not a content card */
.cardlink {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--green);
  background: var(--surface);
  padding: 1.1rem 1.3rem;
  transition: border-color .15s ease, background-color .15s ease;
}
.cardlink + .cardlink { margin-top: -1px; }
.cardlink:hover { background: var(--green-soft); border-color: var(--rule-strong); border-left-color: var(--green); }
.cardlink__label {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--green);
  flex: 0 0 auto;
  min-width: 9rem;
}
.cardlink__text { flex: 1; font-size: .95rem; color: var(--ink-2); }
.cardlink__arrow { color: var(--green); font-size: 1.1rem; flex: 0 0 auto; }
@media (max-width: 34rem) {
  .cardlink { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .cardlink__arrow { display: none; }
}

/* Page-opening headline: same scale as a section h2, since there is no hero */
.section--plain .section__head h1 {
  font-size: var(--step-4);
  font-weight: 500;
  letter-spacing: -0.012em;
}

.mentor__badge {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: .2rem .55rem;
  align-self: flex-start;
  margin-top: .15rem;
}

/* --- Social links ------------------------------------------------------- */
.social { display: flex; gap: 1.1rem; margin-top: .9rem; }
.social__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--ink-3);
  text-decoration: none;
}
.social__link:hover { color: var(--green); }
.social__icon { width: 1.05em; height: 1.05em; flex: 0 0 auto; }

/* --- Episodes: a dated series, so the date is the structural device ------ */
.episodes {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule-strong);
  margin-top: 2.5rem;
}
.episode {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  align-items: flex-start;
  padding-block: 1.9rem;
  border-bottom: 1px solid var(--rule);
}
.episode__date {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}
.episode__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  max-width: 44rem;
}
.episode__title a { color: var(--ink); text-decoration: none; }
.episode__title a:hover { color: var(--green); text-decoration: underline; text-underline-offset: .16em; }
.episode__summary {
  margin: 0;
  max-width: var(--measure);
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.65;
}
.episode__watch {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  margin-top: .25rem;
}
.episode__watch:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }

/* --- Social in the masthead: present on every page, at every width ------- */
.masthead__end { display: flex; align-items: center; gap: .85rem; flex: 0 0 auto; }

.masthead__social {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding-right: .95rem;
  border-right: 1px solid var(--rule);
  flex: 0 0 auto;
}
/* Sized and coloured to sit level with the nav links, not below them */
.masthead__social a {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--ink-2);
  border-radius: 4px;
  transition: color .15s ease;
}
.masthead__social a:nth-child(1):hover { color: var(--fb); }
.masthead__social a:nth-child(2):hover { color: var(--yt); }
/* The global `svg { max-width: 100% }` would let a squeezed flex parent
   collapse these to a dot, so they opt out of it and refuse to shrink. */
.masthead__icon {
  width: 1.5rem;
  height: 1.5rem;
  max-width: none;
  flex: 0 0 auto;
  display: block;
}

/* --- Follow block ------------------------------------------------------- */
.sociallinks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 48rem) { .sociallinks { grid-template-columns: 1fr; } }

.sociallink {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--paper);
  padding: 1.7rem 1.7rem 1.8rem;
  text-decoration: none;
  color: var(--ink);
  border-left: 3px solid transparent;
  transition: background-color .15s ease, border-left-color .15s ease;
}
.sociallink--fb { border-left-color: var(--fb); }
.sociallink--yt { border-left-color: var(--yt); }
.sociallink:hover { background: var(--sunk); }

.sociallink__icon { width: 1.6rem; height: 1.6rem; flex: 0 0 auto; margin-top: .1rem; }
.sociallink--fb .sociallink__icon { color: var(--fb); }
.sociallink--yt .sociallink__icon { color: var(--yt); }

.sociallink__body { display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.sociallink__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.2;
}
.sociallink__text { font-size: .92rem; line-height: 1.6; color: var(--ink-2); }
.sociallink__arrow { color: var(--ink-3); font-size: 1.1rem; flex: 0 0 auto; }
.sociallink:hover .sociallink__arrow { color: var(--ink); }
@media (max-width: 30rem) { .sociallink__arrow { display: none; } }

/* --- Brand logo: one variant per theme, switched on the same tokens ------ */
.brand__logo {
  height: 2.5rem;
  width: auto;
  display: block;
  flex: 0 0 auto;
}
.brand__logo--dark { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__logo--light { display: none; }
  :root:not([data-theme="light"]) .brand__logo--dark  { display: block; }
}
:root[data-theme="dark"] .brand__logo--light { display: none; }
:root[data-theme="dark"] .brand__logo--dark  { display: block; }

.brand { gap: .7rem; }
@media (max-width: 26rem) { .brand__logo { height: 2.1rem; } }

/* --- Mobile control sizing ----------------------------------------------
   Must come after the base .theme-toggle / .masthead__social rules: at equal
   specificity the later declaration wins, and an earlier media query loses. */
@media (max-width: 58rem) {
  .theme-toggle {
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .theme-toggle__label { display: none; }
  .theme-toggle__icon {
    display: block;
    width: 1.3rem;
    height: 1.3rem;
    max-width: none;
  }

  .masthead__social { gap: .6rem; padding-right: .75rem; }
  .masthead__end { gap: .55rem; }
}

/* --- Application status: says whether a call is open, next to the call --- */
.status {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  max-width: 33rem;
  margin: 0;
  padding: .75rem .95rem;
  background: var(--sunk);
  border-left: 3px solid var(--rule-strong);
  font-size: .88rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.status strong { color: var(--ink); font-weight: 600; }
.status__dot {
  width: .5rem;
  height: .5rem;
  margin-top: .48rem;
  border-radius: 50%;
  background: var(--ink-3);
  flex: 0 0 auto;
}

.roster--spaced { margin-top: 2.5rem; }

/* --- Mentor profiles ------------------------------------------------------
   Portrait, name, one paragraph, keyword tags, links. A mentor without a
   photo on file gets their initials, so a gap never reads as a broken image. */
.profiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3rem);
}
@media (max-width: 58rem) { .profiles { grid-template-columns: 1fr; } }

.profile {
  display: flex;
  align-items: flex-start;
  gap: 1.05rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}

.profile__photo {
  width: 4.5rem;
  height: 4.5rem;
  flex: 0 0 auto;
  border-radius: 4px;
  overflow: hidden;
  background: var(--sunk);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile__img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}
.profile__initials {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: .02em;
}

.profile__body { display: flex; flex-direction: column; gap: .38rem; min-width: 0; }
.profile__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
}
.profile__affil { font-size: .82rem; line-height: 1.45; color: var(--ink-2); }
.profile__blurb { font-size: .9rem; line-height: 1.6; color: var(--ink-2); }

.profile__keywords {
  list-style: none;
  margin: .3rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}
.profile__keywords li {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: .22rem .45rem;
  white-space: nowrap;
}

.profile__links { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .35rem; }
.profile__links:empty { display: none; }
.profile__link {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 1px;
}
.profile__link:hover { color: var(--ink); border-bottom-color: var(--green); }

.profile__badge {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: .18rem .5rem;
  align-self: flex-start;
}

/* --- Mentee experiences ---------------------------------------------------
   The quotation leads; project and mentor sit under it as a small record.
   One column, because a testimonial needs a readable measure. */
.stories {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule-strong);
}

.story {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.1rem, 3vw, 1.8rem);
  padding-block: 2rem;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 34rem) { .story { flex-direction: column; gap: 1rem; } }

.story__photo {
  width: 5.25rem;
  height: 5.25rem;
  flex: 0 0 auto;
  border-radius: 4px;
  overflow: hidden;
  background: var(--sunk);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
}
.story__img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.story__initials {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink-3);
}

.story__body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.story__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}
.story__affil {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .04em;
  color: var(--ink-3);
  line-height: 1.5;
}

.story__quote {
  margin: .85rem 0 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--green);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  max-width: 44rem;
}

.story__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 2.5rem;
  margin: 1rem 0 0;
  max-width: 46rem;
}
.story__meta > div { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.story__meta dt {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.story__meta dd { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.story__meta > div:last-child dd { color: var(--ink); }

/* --- Organising team: the roster entry, with a portrait ------------------ */
.mentor--photo {
  flex-direction: row;
  align-items: flex-start;
  gap: .9rem;
}
.mentor__photo {
  width: 3.6rem;
  height: 3.6rem;
  flex: 0 0 auto;
  border-radius: 4px;
  overflow: hidden;
  background: var(--sunk);
  border: 1px solid var(--rule);
  display: block;
}
.mentor__photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.mentor__text { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }

/* --- A call that is not currently open ----------------------------------
   Sits where the button would, so the card does not look unfinished, but is
   plainly not something to click. */
.track__closed {
  margin-top: .5rem;
  padding: .6rem .9rem;
  border: 1px dashed var(--rule-strong);
  border-radius: 3px;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 24rem;
}

/* Three routes need three columns; two in a two-column grid left an orphan. */
.apply__grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 62rem) { .apply__grid--three { grid-template-columns: 1fr; } }
