:root {
  --bg:        #ffffff;
  --bg-soft:   #f7f7f5;
  --bg-card:   #ffffff;
  --border:    rgba(0,0,0,.08);
  --border2:   rgba(0,0,0,.14);
  --teal:      #00b890;
  --teal-dark: #009a7a;
  --green:     #39e84e;
  --blue:      #1a6fd4;
  --grad:      linear-gradient(135deg,#1a6fd4,#00b890,#39e84e);
  --text:      #0d0d0d;
  --text-2:    #444444;
  --text-3:    #888888;
  --text-4:    #bbbbbb;
  --r-bg:      rgba(220,38,38,.06);
  --r-bd:      rgba(220,38,38,.2);
  --r-tx:      #dc2626;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Figtree", "Inter", sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}

/* NAV */
nav {
  background: #0F1F2E;
  border-bottom: 1px solid rgba(255,255,255,.08);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo-img { height: 40px; border-radius: 4px; display: block; }
.nav-link { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.55); text-decoration: none; letter-spacing: .01em; transition: color .15s; }
.nav-link:hover { color: #fff; }

/* BANNER */
.banner { max-width: 720px; margin: 0 auto; padding: 2.5rem 2rem 2rem; border-bottom: 1px solid var(--border); }
.banner-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .65rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: .6rem; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: blink 2s ease infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.banner-h { font-size: clamp(1.75rem,4vw,2.5rem); font-weight: 700; line-height: 1.15; color: var(--text); margin-bottom: .5rem; letter-spacing: -.02em; }
.banner-h span { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.banner-sub { font-size: .95rem; color: var(--text-2); line-height: 1.65; max-width: 520px; }

/* FORM WRAP */
.wrap { max-width: 720px; margin: 0 auto; padding: 2rem 2rem 5rem; }

/* SECTION HEADERS */
.sh { display: flex; align-items: center; gap: .65rem; margin: 2rem 0 1.1rem; }
.sh:first-child { margin-top: 0; }
.snum { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; background: var(--text); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 700; }
.stitle { font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--text-3); }
.sline { flex: 1; height: 1px; background: var(--border); }

/* TYPE CARDS */
.tgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; margin-bottom: 1.25rem; }
.tcard { background: var(--bg-soft); border: 1.5px solid var(--border); border-radius: 10px; padding: 1rem .9rem; cursor: pointer; text-align: center; position: relative; transition: border-color .2s, background .2s; }
.tcard.on { border-color: var(--teal); background: rgba(0,184,144,.06); }
.tcard:hover:not(.on) { border-color: rgba(0,184,144,.4); }
.ticon { font-size: 1.3rem; display: block; margin-bottom: .4rem; }
.tname { font-size: .82rem; font-weight: 700; letter-spacing: .03em; color: var(--text); text-transform: uppercase; }
.tcard.on .tname { color: var(--teal-dark); }
.tnote { font-size: .65rem; color: var(--text-3); margin-top: .2rem; line-height: 1.35; }
.tdot { position: absolute; top: .55rem; right: .55rem; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .5rem; font-weight: 800; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.tcard.on .tdot { opacity: 1; }

/* TOGGLES */
.tog-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .35rem; }
.tog { font-size: .8rem; font-weight: 600; padding: .45rem 1.1rem; border-radius: 100px; border: 1.5px solid var(--border2); background: var(--bg); color: var(--text-2); cursor: pointer; transition: all .15s; user-select: none; }
.tog:hover { border-color: var(--teal); color: var(--teal-dark); }
.tog.on { border-color: var(--teal); background: rgba(0,184,144,.08); color: var(--teal-dark); }

/* CONDITIONAL */
.cond { display: none; }
.cond.show { display: block; }

/* INPUTS */
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1rem; }
.r2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
label { font-size: .85rem; font-weight: 600; color: var(--text-2); letter-spacing: .01em; }
.opt { font-weight: 400; color: var(--text-3); }
input[type=text], input[type=email], textarea, select {
  background: var(--bg);
  border: 1.5px solid var(--border2);
  border-radius: 8px;
  color: var(--text);
  font-family: "Figtree", "Inter", sans-serif;
  font-size: .95rem;
  padding: .75rem 1rem;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,184,144,.12); }
input::placeholder, textarea::placeholder { color: var(--text-4); }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.25rem; cursor: pointer; }
select option { background: #fff; color: var(--text); }
textarea { resize: vertical; line-height: 1.65; }

/* UPLOAD */
.upload-zone { background: var(--bg-soft); border: 1.5px dashed var(--border2); border-radius: 8px; padding: 1.25rem 1rem; text-align: center; cursor: pointer; position: relative; transition: all .2s; }
.upload-zone:hover { border-color: var(--teal); background: rgba(0,184,144,.04); }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-main { font-size: .88rem; color: var(--text-2); margin-bottom: .3rem; }
.upload-main strong { color: var(--teal-dark); }
.upload-hint { font-size: .75rem; color: var(--text-3); line-height: 1.5; }
.upload-ok { font-size: .78rem; color: var(--teal-dark); margin-top: .4rem; font-weight: 600; min-height: 1.2em; }
.upload-meta { font-size: .65rem; color: var(--text-3); margin-top: .4rem; margin-bottom: .85rem; }

/* CHIPS */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip { font-size: .78rem; font-weight: 500; padding: .38rem .9rem; border-radius: 100px; border: 1.5px solid var(--border2); background: var(--bg); color: var(--text-2); cursor: pointer; transition: all .15s; user-select: none; }
.chip:hover { border-color: var(--teal); }
.chip.on { border-color: var(--teal); background: rgba(0,184,144,.08); color: var(--teal-dark); font-weight: 600; }

/* SUBMIT */
.btn-submit { width: 100%; padding: .95rem; border: none; border-radius: 8px; font-family: "Figtree","Inter",sans-serif; font-size: 1rem; font-weight: 700; cursor: pointer; background: var(--text); color: #fff; transition: all .2s; margin-top: 1.5rem; display: block; letter-spacing: .01em; }
.btn-submit:hover { background: #222; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.btn-submit:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.submit-note { text-align: center; font-size: .72rem; color: var(--text-3); margin-top: .65rem; }
.err { display: none; margin-top: .75rem; padding: .8rem 1rem; border-radius: 8px; background: var(--r-bg); border: 1px solid var(--r-bd); color: var(--r-tx); font-size: .82rem; }
.err.show { display: block; }

/* LOADER — animated step list */
.loader { display: none; text-align: center; padding: 4rem 1rem; }
.loader.show { display: block; }
.spin { width: 40px; height: 40px; border: 2px solid var(--border2); border-top-color: var(--teal); border-radius: 50%; animation: spin .75s linear infinite; margin: 0 auto 1.25rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-h { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 1.5rem; }
.step-list { display: flex; flex-direction: column; gap: .65rem; max-width: 400px; margin: 0 auto; text-align: left; }
.step-item { display: flex; align-items: flex-start; gap: .75rem; font-size: .88rem; color: var(--text-3); transition: color .3s; }
.step-item.active { color: var(--text); }
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border2); flex-shrink: 0; margin-top: .35rem; transition: background .3s, transform .3s; }
.step-item.active .step-dot { background: var(--teal); transform: scale(1.3); }
.step-item.done .step-dot { background: var(--teal-dark); }
.step-item.done { color: var(--text-3); }

/* TEASER OUTPUT */
.teaser { display: none; }
.teaser.show { display: block; }
.teaser-header { text-align: center; padding: 1.5rem 0 2rem; }
.th-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: .6rem; }
.th-name { font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: .25rem; letter-spacing: -.02em; }
.th-sub { font-size: .85rem; color: var(--text-3); }
.rcard { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1rem; position: relative; overflow: hidden; }
.rcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.rlabel { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 1rem; }

/* SNAPSHOT: two sentences styled differently */
.snapshot-text { line-height: 1.8; }
.snapshot-text p { margin-bottom: .65rem; }
.snapshot-text p:last-child { margin-bottom: 0; }
#snapS1 { font-size: 1rem; color: var(--text-2); }
#snapS2.snap-sting {
  font-size: 1.02rem;
  color: var(--text);
  font-weight: 600;
  border-left: 3px solid var(--teal);
  padding-left: .85rem;
  margin-left: -.05rem;
}

/* GAPS + QUESTIONS */
.q-item { display: flex; gap: .9rem; align-items: flex-start; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.q-item:first-child { padding-top: 0; }
.q-item:last-child { border-bottom: none; padding-bottom: 0; }
.q-num { font-size: 1.1rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; flex-shrink: 0; line-height: 1.2; min-width: 16px; }
.q-text { font-size: .92rem; color: var(--text-2); line-height: 1.7; font-style: italic; }
.gap-item { padding: .85rem 0; border-bottom: 1px solid var(--border); }
.gap-item:first-child { padding-top: 0; }
.gap-item:last-child { border-bottom: none; padding-bottom: 0; }
.gap-tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--r-tx); background: var(--r-bg); border: 1px solid var(--r-bd); padding: .22rem .65rem; border-radius: 4px; margin-bottom: .4rem; }
.gap-detail { font-size: .92rem; color: var(--text-2); line-height: 1.7; }

/* BLUR / GATE */
.blur-wrap { position: relative; margin-top: .75rem; border-radius: 8px; }
.blur-items { filter: blur(5px); pointer-events: none; user-select: none; opacity: .55; padding: .5rem 0; min-height: 60px; }
.blur-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; background: rgba(247,247,245,.7); }
.blur-lock { font-size: 1.25rem; }
.blur-msg { font-size: .8rem; font-weight: 700; color: var(--text); letter-spacing: .02em; }

/* CTA */
.cta { background: var(--bg-soft); border: 1.5px solid var(--border); border-radius: 14px; padding: 2.5rem 2rem; text-align: center; margin-top: 1rem; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.cta-title { font-size: 1.7rem; font-weight: 700; color: var(--text); letter-spacing: -.02em; line-height: 1.2; margin-bottom: .75rem; }
.cta-hook-inline { font-weight: 700; color: var(--text); display: block; margin-bottom: .35rem; font-style: normal; }
.cta-hook-inline:empty { display: none; }
.cta-sub { font-size: .95rem; color: var(--text-2); line-height: 1.7; max-width: 420px; margin: 0 auto 1.75rem; }
.cta-btn { display: inline-block; padding: 1rem 2.5rem; background: var(--text); color: #fff; font-family: "Figtree","Inter",sans-serif; font-size: 1rem; font-weight: 700; text-decoration: none; border-radius: 8px; transition: all .2s; letter-spacing: .01em; }
.cta-btn:hover { background: #222; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.cta-meta { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.1rem; }
.cta-meta-item { font-size: .72rem; color: var(--text-3); }

/* EXPLORE CHIP */
.chip-explore {
  background: var(--bg-soft);
  border: 1.5px dashed var(--teal);
  color: var(--teal-dark);
  font-weight: 600;
  letter-spacing: .01em;
  width: 100%;
  text-align: center;
  margin-bottom: .25rem;
  transition: background .15s, color .15s, border-color .15s;
}
.chip-explore.on {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  border-style: solid;
}
.chip-explore.on ~ .chip { opacity: .45; pointer-events: none; }

.explore-hint {
  margin-top: .75rem;
  padding: .75rem 1rem;
  background: rgba(0,184,144,.06);
  border: 1px solid rgba(0,184,144,.2);
  border-radius: 8px;
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.65;
}
.explore-hint span { margin-right: .35rem; }

/* RESUME TIPS */
.rtip { padding: .85rem 0; border-bottom: 1px solid var(--border); }
.rtip:last-child { border-bottom: none; padding-bottom: 0; }
.rtip:first-child { padding-top: 0; }
.rtip-label { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dark); background: rgba(0,184,144,.08); border: 1px solid rgba(0,184,144,.25); padding: .22rem .65rem; border-radius: 4px; margin-bottom: .5rem; }
.rtip-obs { font-size: .92rem; color: var(--text-2); line-height: 1.7; margin-bottom: .5rem; }
.rtip-rewrite { font-size: .88rem; color: var(--text); background: var(--bg-soft); border-left: 3px solid var(--teal); padding: .65rem .85rem; border-radius: 0 6px 6px 0; line-height: 1.65; margin-bottom: .5rem; }
.rtip-bridge { font-size: .82rem; color: var(--text-3); font-style: italic; line-height: 1.6; }

/* SECTOR FOCUS */
.sfocus { padding: .5rem 0; }
.sfocus-headline { font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.5; margin-bottom: .5rem; }
.sfocus-rationale { font-size: .92rem; color: var(--text-2); line-height: 1.7; margin-bottom: .5rem; }
.sfocus-action { font-size: .88rem; color: var(--text); background: rgba(0,184,144,.06); border: 1px solid rgba(0,184,144,.2); padding: .7rem .9rem; border-radius: 6px; line-height: 1.65; }
.sfocus-action::before { content: "→ "; font-weight: 700; color: var(--teal-dark); }

/* RETRY PATH */
.retry-wrap { text-align: center; padding: 1.5rem 0 .5rem; }
.retry-msg { font-size: .82rem; color: var(--text-3); margin-bottom: .5rem; }
.retry-btn { background: none; border: 1.5px solid var(--border2); border-radius: 6px; padding: .55rem 1.25rem; font-size: .82rem; font-weight: 600; color: var(--text-2); cursor: pointer; transition: all .15s; font-family: "Figtree","Inter",sans-serif; }
.retry-btn:hover { border-color: var(--teal); color: var(--teal-dark); }

/* FOOTER */
.foot { border-top: 1px solid var(--border); padding: 1.5rem 2rem; display: flex; align-items: center; justify-content: space-between; max-width: 720px; margin: 0 auto; }
.flogo img { height: 36px; border-radius: 4px; }
.fnote { font-size: .72rem; color: var(--text-3); }
.fnote a { color: var(--text-2); text-decoration: none; }
.fnote a:hover { color: var(--teal-dark); }

/* RESPONSIVE */
@media(max-width: 560px) {
  nav { padding: 0 1.25rem; }
  .banner, .wrap { padding-left: 1.25rem; padding-right: 1.25rem; }
  .tgrid { grid-template-columns: 1fr 1fr; }
  .r2 { grid-template-columns: 1fr; }
  .cta { padding: 2rem 1.25rem; }
  .banner-h { font-size: 1.6rem; }
}

/* ═══════════════════════════════════════════════════
   STUDENT INTAKE — ADDITIONAL STYLES
   ═══════════════════════════════════════════════════ */

/* NAV school badge */
.nav-school {
  font-size: .75rem;
  font-weight: 600;
  color: var(--teal-dark);
  background: rgba(0,184,144,.08);
  border: 1px solid rgba(0,184,144,.25);
  padding: .25rem .75rem;
  border-radius: 100px;
  letter-spacing: .04em;
}
.nav-school:empty { display: none; }

/* 2-column type grid */
.tgrid-2 { grid-template-columns: repeat(2, 1fr); }

/* Section sub-label */
.sh-sub {
  font-size: .78rem;
  color: var(--text-3);
  margin: -.6rem 0 .9rem;
}

/* ── INTEREST CARDS (3-col grid) ── */
.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  margin-bottom: 1.25rem;
}
.icard {
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .85rem .75rem;
  cursor: pointer;
  text-align: center;
  transition: all .2s;
  user-select: none;
}
.icard.on {
  border-color: var(--teal);
  background: rgba(0,184,144,.07);
}
.icard:hover:not(.on) { border-color: rgba(0,184,144,.4); }
.icard-icon { font-size: 1.4rem; display: block; margin-bottom: .3rem; }
.icard-label { font-size: .75rem; font-weight: 600; color: var(--text-2); line-height: 1.3; }
.icard.on .icard-label { color: var(--teal-dark); }

/* ── STYLE CARDS (2x2 grid) ── */
.style-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.scard {
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1rem;
  cursor: pointer;
  position: relative;
  transition: all .2s;
  user-select: none;
}
.scard.on {
  border-color: var(--teal);
  background: rgba(0,184,144,.07);
}
.scard:hover:not(.on) { border-color: rgba(0,184,144,.4); }
.scard-icon { font-size: 1.3rem; display: block; margin-bottom: .35rem; }
.scard-name { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: .25rem; }
.scard.on .scard-name { color: var(--teal-dark); }
.scard-desc { font-size: .73rem; color: var(--text-3); line-height: 1.45; }

/* ── STUDENT TEASER OUTPUT ── */
.student-teaser { display: none; }
.student-teaser.show { display: block; }

/* Match intro line */
.match-intro {
  font-size: .88rem;
  color: var(--text-3);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* ── PRIMARY MATCH CARD ── */
.primary-match-wrap { margin-bottom: 1rem; }
.primary-match-card {
  background: rgba(0,184,144,.05);
  border: 2px solid var(--teal);
  border-radius: 12px;
  padding: 1.5rem;
}
.match-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .85rem;
}
.match-badge {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .28rem .7rem;
  border-radius: 4px;
}
.badge-primary   { background: rgba(0,184,144,.15); color: var(--teal-dark); border: 1px solid rgba(0,184,144,.3); }
.badge-adjacent  { background: rgba(26,111,212,.1);  color: var(--blue);      border: 1px solid rgba(26,111,212,.25); }
.badge-consider  { background: var(--bg-soft);        color: var(--text-3);   border: 1px solid var(--border2); }
.badge-stretch   { background: var(--bg-soft);        color: var(--text-4);   border: 1px solid var(--border); }

.match-stars { font-size: .9rem; letter-spacing: .1em; color: var(--teal); }
.secondary-match-card .match-stars { color: var(--text-3); font-size: .8rem; }

.match-sector {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: .65rem;
}
.match-rationale {
  font-size: .92rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: .9rem;
}
.match-meta {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: 1.1rem;
  padding-top: .65rem;
  border-top: 1px solid rgba(0,184,144,.2);
}
.match-role {
  font-size: .83rem;
  font-weight: 600;
  color: var(--teal-dark);
}
.match-skill {
  font-size: .78rem;
  color: var(--text-3);
}
.match-cta-btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  background: var(--teal-dark);
  color: #fff;
  font-family: "Figtree","Inter",sans-serif;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all .2s;
  letter-spacing: .01em;
}
.match-cta-btn:hover {
  background: #007a60;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,154,122,.25);
}

/* ── SECONDARY MATCHES (3-col grid) ── */
.secondary-matches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.secondary-match-card {
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
}
.secondary-match-card .match-top { margin-bottom: .6rem; }
.secondary-match-card .match-sector {
  font-size: 1rem;
  margin-bottom: .5rem;
}
.secondary-match-card .match-rationale {
  font-size: .8rem;
  margin-bottom: .65rem;
  flex: 1;
  color: var(--text-3);
}
.secondary-match-card .match-meta {
  padding-top: .5rem;
  border-top: 1px solid var(--border);
  margin-bottom: .75rem;
}
.secondary-match-card .match-role { font-size: .75rem; color: var(--text-2); }
.secondary-match-card .match-skill { font-size: .7rem; }
.secondary-cta-btn {
  display: block;
  text-align: center;
  padding: .65rem .75rem;
  background: #0F1F2E;
  border: 1.5px solid #0F1F2E;
  color: #fff;
  font-family: "Figtree","Inter",sans-serif;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: all .18s;
  margin-top: auto;
  letter-spacing: .01em;
}
.secondary-cta-btn:hover {
  background: #009a7a;
  border-color: #009a7a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,154,122,.2);
}

/* ── ACTION PLAN ── */
.action-plan {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.action-step {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: .9rem 1rem;
  background: var(--bg-soft);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}
.step-text {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.65;
}
.step-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: .2rem;
}

/* ── NARROW FOCUS TIP ── */
.focus-tip-card {
  background: rgba(26,111,212,.04);
  border-color: rgba(26,111,212,.2);
}
.focus-tip-card .rlabel { color: var(--blue); }
.focus-tip-text {
  font-size: .92rem;
  color: var(--text-2);
  line-height: 1.8;
}

/* ── RESPONSIVE ── */
@media(max-width: 600px) {
  .interest-grid { grid-template-columns: repeat(2, 1fr); }
  .style-grid { grid-template-columns: 1fr 1fr; }
  .secondary-matches { grid-template-columns: 1fr; }
  .match-sector { font-size: 1.2rem; }
  .primary-match-card { padding: 1.1rem; }
}
@media(max-width: 400px) {
  .tgrid-2 { grid-template-columns: 1fr; }
  .interest-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Back / cancel button */
.back-btn {
  background: none;
  border: 1.5px solid rgba(0,0,0,.15);
  color: var(--text-3);
  font-family: "Figtree","Inter",sans-serif;
  font-size: .82rem;
  font-weight: 600;
  padding: .5rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
  display: block;
  margin: 1rem auto 0;
}
.back-btn:hover { border-color: var(--teal); color: var(--teal-dark); }

/* ═══════════════════════════════════════════════════
   OUTPUT ACTION BUTTONS (Email + Print)
   ═══════════════════════════════════════════════════ */

.output-actions {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.4rem;
  font-family: "Figtree","Inter",sans-serif;
  font-size: .84rem;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  letter-spacing: .01em;
}

.action-btn-email {
  background: #0F1F2E;
  border: 1.5px solid #0F1F2E;
  color: #fff;
}
.action-btn-email:hover {
  background: #009a7a;
  border-color: #009a7a;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,154,122,.22);
}

.action-btn-print {
  background: #fff;
  border: 1.5px solid #d0d0cc;
  color: #444;
}
.action-btn-print:hover {
  border-color: #0F1F2E;
  color: #0F1F2E;
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════
   PRINT / EXPORT STYLES
   ═══════════════════════════════════════════════════ */

@media print {
  /* Hide everything except the output */
  nav, .banner, #formArea, #loader,
  .output-actions, .retry-wrap, .cta,
  .no-print { display: none !important; }

  body { background: #fff !important; font-family: Georgia, serif; color: #000; }

  .wrap { max-width: 100% !important; padding: 0 !important; }

  .student-teaser { display: block !important; }

  /* Print header */
  .teaser-header { border-bottom: 2px solid #000; padding-bottom: 12pt; margin-bottom: 16pt; }
  .th-eyebrow { font-size: 8pt; letter-spacing: 2px; text-transform: uppercase; color: #666; }
  .th-name { font-size: 22pt; font-weight: 700; margin: 4pt 0; color: #000; }
  .th-sub { font-size: 9pt; color: #555; }

  /* Cards */
  .rcard { border: 1px solid #ccc !important; border-radius: 0 !important;
           padding: 12pt !important; margin-bottom: 10pt !important;
           background: #fff !important; break-inside: avoid; }
  .rlabel { font-size: 8pt !important; letter-spacing: 2px; color: #009a7a !important; margin-bottom: 8pt !important; }

  /* Snapshot */
  .snapshot-text p { font-size: 11pt; line-height: 1.5; margin: 0 0 6pt; color: #000; }
  .snap-sting { font-weight: 700 !important; border-left: 3pt solid #009a7a; padding-left: 8pt; }

  /* Primary match */
  .primary-match-card { border: 2pt solid #009a7a !important; background: #f9fdfb !important;
                        padding: 10pt !important; break-inside: avoid; }
  .match-top { display: flex; justify-content: space-between; margin-bottom: 6pt; }
  .match-badge { font-size: 7pt; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
  .match-stars { font-size: 10pt; color: #009a7a; }
  .match-sector { font-size: 14pt !important; font-weight: 700; margin-bottom: 6pt; }
  .match-rationale { font-size: 10pt !important; line-height: 1.5; margin-bottom: 6pt; color: #222; }
  .match-meta { border-top: 1pt solid #ccc; padding-top: 6pt; margin-top: 4pt; margin-bottom: 0 !important; }
  .match-role, .match-skill { font-size: 9pt; }
  .match-cta-btn { display: none !important; }

  /* Secondary matches */
  .secondary-matches { display: grid; grid-template-columns: repeat(3,1fr); gap: 6pt; }
  .secondary-match-card { border: 1pt solid #ccc !important; padding: 8pt !important;
                           background: #fff !important; break-inside: avoid; }
  .secondary-match-card .match-sector { font-size: 10pt !important; }
  .secondary-match-card .match-rationale { font-size: 9pt !important; color: #444; }
  .secondary-cta-btn { display: none !important; }

  /* Action plan */
  .action-plan { display: flex; flex-direction: column; gap: 4pt; }
  .action-step { background: #f5f5f5 !important; padding: 8pt !important;
                 border: 1pt solid #ddd !important; break-inside: avoid; }
  .step-num { background: #0F1F2E !important; color: #fff !important;
              -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .step-label { font-size: 7pt; color: #888; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
  .step-text { font-size: 10pt; line-height: 1.45; color: #222; }

  /* Focus tip */
  .focus-tip-card { background: #f5f8ff !important; border: 1pt solid #b0c8ff !important; break-inside: avoid; }
  .focus-tip-text { font-size: 10pt; line-height: 1.5; color: #222; }

  /* Footer */
  .foot { display: block !important; border-top: 1pt solid #ccc; padding: 8pt 0 0; margin-top: 12pt; }
  .fnote { font-size: 8pt; color: #666; text-align: center; }
  .flogo { display: none; }

  /* Page setup */
  @page { margin: 1.5cm 1.8cm; size: A4 portrait; }
}
