/* College · "Graph-paper lab": blue grid paper, ink lines, highlighter marks, IBM Plex type */
.t-college {
  --ink: #1e2a55; --blue: #2f5bea; --hi: #e9ff70; --magenta: #d6336c; --green: #12a47a; --paper: #f8faff; --gridc: #e1e8f6;
  --bg: var(--paper); --surface: #ffffff; --surface-2: #eef2fb; --text: var(--ink); --muted: #56608a; --line: rgba(30, 42, 85, .18);
  --primary: var(--blue); --primary-ink: #fff; --accent: var(--magenta); --accent-ink: #fff; --good: #12a47a; --bad: #d6336c;
  --radius: 8px; --radius-sm: 6px; --btn-radius: 6px;
  --font-body: 'IBM Plex Sans', 'Lexend', system-ui, sans-serif; --font-head: 'IBM Plex Sans', 'Lexend', system-ui, sans-serif; --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --card-border: 1.5px solid rgba(30, 42, 85, .28); --card-shadow: 0 1px 0 rgba(30, 42, 85, .08); --card-radius: 6px;
  --top-bg: rgba(248, 250, 255, .92); --stage-bg: var(--paper); --stage-head-bg: #fff;
  --plot-bg: #ffffff; --plot-grid: rgba(47, 91, 234, .14); --plot-grid2: rgba(47, 91, 234, .05); --plot-axis: rgba(30, 42, 85, .75); --plot-label: rgba(30, 42, 85, .75);
  background-image: linear-gradient(var(--gridc) 1px, transparent 1px), linear-gradient(90deg, var(--gridc) 1px, transparent 1px); background-size: 24px 24px;
}
.t-college .mu-mark { background: #fff; color: var(--blue); border: 2px solid var(--blue); border-radius: 6px; }
.t-college .mu-stage { background-image: linear-gradient(var(--gridc) 1px, transparent 1px), linear-gradient(90deg, var(--gridc) 1px, transparent 1px); background-size: 24px 24px; }
.t-college h1, .t-college h2, .t-college h3 { font-weight: 600; letter-spacing: -.01em; }
.hl-mark { background: linear-gradient(transparent 58%, var(--hi) 58%, var(--hi) 92%, transparent 92%); padding: 0 .1em; }

/* hero */
.c-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2rem; align-items: center; padding-top: 2.6rem; padding-bottom: 1.6rem; }
.c-tag { display: inline-block; margin: 0 0 .6rem; font-family: var(--font-mono); font-size: .85rem; color: var(--magenta); border: 1.5px solid var(--magenta); padding: .1rem .5rem; border-radius: 4px; }
.c-hero h1 { display: inline-block; font-size: clamp(2.8rem, 7vw, 4.8rem); margin: 0 0 .6rem; line-height: 1; }
.c-hero h1::after { content: ''; display: block; width: 100%; height: .32em; margin-top: -.18em; background: var(--hi); position: relative; z-index: -1; }
.c-lede { font-size: 1.18rem; color: var(--muted); max-width: 44ch; margin-bottom: 1.3rem; }
.c-hero-plot { margin: 0; background: #fff; border: 1.5px solid rgba(30, 42, 85, .3); border-radius: 8px; padding: .6rem; box-shadow: 6px 6px 0 rgba(47, 91, 234, .12); }
.c-hero-plot canvas { width: 100%; height: 260px; display: block; }
.c-hero-plot figcaption { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); padding: .3rem .2rem 0; }
.c-subnav { background: rgba(248, 250, 255, .94); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.c-subnav button { font-family: var(--font-body); border-color: rgba(30, 42, 85, .25); border-radius: 4px; }
.c-subnav button:hover { background: var(--hi); }

/* cards: index cards with a coloured tab */
.t-college .act-section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.2rem); }
.t-college .act-section-head h2 > span:last-child, .t-college .act-section-head h2 { background: none; }
.t-college .sec-icon { font-size: 1.5rem; }
.t-college .act-card { padding-top: 1.4rem; overflow: hidden; }
.t-college .act-card::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: var(--c, var(--blue)); }
.t-college .act-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 4px 4px 0 rgba(47, 91, 234, .15); }
.t-college .act-icon { font-size: 1.7rem; }
.t-college .act-title { font-weight: 600; }
.t-college .act-tag { background: var(--hi); color: var(--ink); border: 1px solid var(--ink); }
.t-college .panel { border-radius: 8px; border: 1.5px solid rgba(30, 42, 85, .22); }
.t-college .note { background: #fbffe0; border-left-color: var(--blue); }
.t-college .mcq-choice, .t-college .speed-input { font-family: var(--font-mono); }
.quiz-q { font-size: 1.25rem; font-weight: 600; max-width: 40ch; }

/* shared lab widgets */
.lab { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 1.2rem; align-items: start; }
.lab-side { display: grid; gap: .7rem; }
.lab-side .panel { padding: .9rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--font-mono); font-weight: 600; word-break: break-word; }
.mono-big { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 600; }
@media (max-width: 860px) { .lab { grid-template-columns: 1fr; } .c-hero { grid-template-columns: 1fr; } }
.lab-svg { width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; touch-action: none; }
.lab-svg text { font-family: var(--font-body); }
.doors-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 1rem 0; }
.mh-door { width: 130px; height: 190px; border-radius: 10px 10px 4px 4px; border: 3px solid var(--ink); background: linear-gradient(#c8553d, #9e3b28); color: #fff; font-size: 2.4rem; font-weight: 700; display: grid; place-items: center; position: relative; transition: transform .2s; }
.mh-door:hover:not(:disabled) { transform: translateY(-4px); }
.mh-door.picked { outline: 4px solid var(--hi); outline-offset: 3px; }
.mh-door.open { background: #fff7e0; color: var(--ink); font-size: 3.6rem; }
.mh-door::after { content: ''; position: absolute; right: 14px; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: #f2c14e; }
.mh-door.open::after { display: none; }
.bars { display: grid; gap: .5rem; }
.barrow { display: grid; grid-template-columns: 7rem 1fr 4.5rem; gap: .6rem; align-items: center; font-size: .95rem; }
.barrow .track2 { height: 18px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.barrow .track2 i { display: block; height: 100%; background: var(--blue); transition: width .4s; }
.pascal svg text { font-family: var(--font-mono); }
.tt { border-collapse: collapse; font-family: var(--font-mono); }
.tt th, .tt td { border: 1px solid var(--line); padding: .3rem .7rem; text-align: center; }
.tt td.T { color: var(--green); font-weight: 600; } .tt td.F { color: var(--magenta); }
.tt th { background: var(--surface-2); }
.fsheet { background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 1.2rem 1.4rem; margin-bottom: 1.2rem; }
.fsheet header h2 { margin: 0; font-size: 1.4rem; } .fsheet header p { margin: 0 0 .6rem; color: var(--muted); }
.fsheet h3 { font-size: 1.05rem; margin: 1rem 0 .3rem; color: var(--blue); }
.fsheet table { width: 100%; border-collapse: collapse; }
.fsheet th { text-align: left; font-weight: 500; color: var(--muted); width: 28%; padding: .25rem .5rem .25rem 0; vertical-align: top; font-size: .92rem; }
.fsheet td { font-family: var(--font-mono); padding: .25rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.fsheet footer { display: none; }
.careers { margin-top: 3rem; }
.careers h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.career-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.6rem; margin-top: 1rem; }
.career-grid p { color: var(--muted); margin: .2rem 0 0; }
@media (max-width: 760px) { .career-grid { grid-template-columns: 1fr; } }
@media print { .mu-print-root .fsheet { border: 0; page-break-after: always; font-family: 'IBM Plex Sans', sans-serif; color: #000; } .mu-print-root .fsheet footer { display: block; margin-top: 1rem; font-size: .8rem; color: #555; } }
