/* =====================================================================
   PORTFOLIOS (portfolios.html) · page-scoped additions
   Two trails: students (.is-students) and academics (.is-academics).
   Everything here uses site.css tokens; no new colours.
   ===================================================================== */

/* ---------- 1 · Hero art: one browser card, light half + dark half ---------- */
.st-hero-art { width: 100%; max-width: 440px; }
.st-browser { width: 100%; height: auto; overflow: visible; }
.st-browser .st-ps1 { fill: var(--ps-1); }
.st-browser .st-ps2 { fill: var(--ps-2); }
.st-browser .st-ps3 { fill: var(--ps-3); }
.st-browser .st-ps4 { fill: var(--ps-4); }
.st-browser .st-keyline { fill: var(--keyline); }
.st-browser .st-tape { fill: var(--fx-ice); stroke: var(--leader); stroke-width: 1; opacity: .9; } /* leader edge keeps it visible on the pale light-theme hero ground */
.st-browser .st-hand { font: 400 21px var(--f-hand); fill: var(--accent); }
.st-browser .st-lead { fill: none; stroke: var(--leader); stroke-width: 1.8; stroke-linecap: round; }
/* the mock page inside the card is a printed object: fox palette in both themes */
.st-half--light { --pg-ink: var(--fx-navy); --pg-soft: var(--fx-steel); --pg-accent: var(--fx-teal); --pg-card: var(--fx-cream); --pg-wash: var(--fx-ice); --pg-line: var(--fx-ink); }
.st-half--dark  { --pg-ink: var(--fx-cream); --pg-soft: var(--fx-ice); --pg-accent: var(--fx-glint); --pg-card: var(--fx-navy); --pg-wash: var(--fx-steel); --pg-line: var(--fx-cream); }

@media (max-width: 980px) {
  .st-hero-art { max-width: 420px; justify-self: start; margin-top: 8px; }
}
@media (max-width: 720px) {
  .st-hero-art { max-width: 300px; margin: 6px 0 0 6px; }
}

/* ---------- 2 · Why ---------- */
.st-why { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.st-why__note { margin-top: 30px; max-width: 60ch; font-size: 1rem; }

/* ---------- 3 · Who it’s for: one card per trail ---------- */
.st-who { gap: 36px; align-items: stretch; }
.st-who__card {
  display: flex; flex-direction: column;
  padding: 24px 28px 28px;
  background: var(--surface); border: 1.5px solid var(--rule); border-top: 6px solid var(--aud-fill);
  border-radius: 0 0 var(--radius) var(--radius);
}
.st-who__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.st-who__head h3 { margin-top: 12px; font-size: clamp(1.8rem, 1.4rem + 1.1vw, 2.3rem); line-height: 1.1; }
.st-who__sub { margin-top: 4px; font-weight: 700; color: var(--aud); }
.st-who__art { flex: none; width: 60px; height: 60px; padding: 4px; background: var(--aud-ground); border: 1.5px solid var(--rule); border-radius: 50%; }
.st-who__lede { margin: 16px 0 16px; font: italic 400 1.25rem/1.4 var(--f-display); color: var(--ink); }
.st-who__go { margin-top: auto; padding-top: 24px; }
.st-who__go .action-note { margin-top: 10px; }
.st-who__note { max-width: 70ch; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--hair); color: var(--ink-2); }
.st-who__note strong { color: var(--ink); }
@media (max-width: 720px) {
  .st-who { gap: 24px; }
  .st-who__card { padding: 18px 18px 22px; }
  .st-who__art { width: 52px; height: 52px; }
  .st-who__go .btn { width: 100%; justify-content: center; }
  .st-who__lede { font-size: 1.125rem; }
}

/* ---------- 4 · What you get ---------- */
.st-gets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.st-gets > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 0 22px; border-top: 1px solid var(--hair); }
.st-gets h3 { font-size: 1.3rem; line-height: 1.25; }
.st-gets p { margin-top: 4px; color: var(--ink-2); }
.st-gets__mark {
  position: relative; width: 40px; height: 40px; border: 1.5px solid var(--rule); border-radius: 50%;
  background: var(--aud-ground);
}
.st-gets__mark::after {
  content: ""; position: absolute; inset: 9px; background: var(--aud);
  -webkit-mask: var(--mask-check) center / contain no-repeat; mask: var(--mask-check) center / contain no-repeat;
}
.st-gets > li.is-pending { align-items: center; }
.st-gets > li.is-pending p { margin-top: 0; }
.st-gets > li.is-pending .st-gets__mark { border-style: dashed; border-color: var(--ink-2); background: transparent; }
.st-gets > li.is-pending .st-gets__mark::after { content: none; }
@media (max-width: 720px) {
  .st-gets { grid-template-columns: minmax(0, 1fr); }
  .st-gets > li { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 16px 0 18px; }
  .st-gets__mark { width: 34px; height: 34px; }
  .st-gets__mark::after { inset: 8px; }
}

/* ---------- 5 · How it works ---------- */
.st-steps__end { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--hair); color: var(--ink-2); }
@media (max-width: 980px) { .st-steps__end { margin-top: 4px; } }

/* ---------- 6 · What we need: one panel per form, side by side ---------- */
.st-needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.st-need { position: relative; display: flex; flex-direction: column; padding: 30px 32px 32px; }   /* with .panel */
.st-need__title { margin-bottom: 16px; font-size: 1.5rem; }
.st-need__go { margin-top: auto; padding-top: 26px; }
.st-need__chips > li { background: var(--surface); }
.st-need__chips > li > span:first-child { background: var(--aud-fill); color: var(--aud-on); }
.st-need__tip { margin-top: 20px; max-width: 60ch; font-size: 1rem; color: var(--ink-2); }
@media (max-width: 900px) { .st-needs { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
@media (max-width: 720px) {
  .st-need { padding: 20px 16px 22px; }
  .st-need__chips { gap: 8px; }
  .st-need__chips > li { font-size: .9375rem; }
}

/* ---------- 7 · FAQ ---------- */
.st-faq { max-width: 820px; }
.st-faq .placeholder { font-size: .8125rem; line-height: 1.9; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.st-contact-links { display: inline-flex; flex-wrap: wrap; gap: 0 22px; }
.faq__answer .st-contact-links { display: flex; }
.st-faq__close { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 18px; max-width: 820px; margin-top: 24px; color: var(--ink-2); }

/* ---------- forced colours ---------- */
@media (forced-colors: active) {
  .st-hero-art { display: none; }
  .st-who__card, .st-gets__mark { border-color: CanvasText; }
  .st-gets__mark::after { forced-color-adjust: none; background: CanvasText; }
}
