/* AI Bridge site. Look and feel reused from the COMP 1100 course site (Auburn navy + orange);
   the light-blue panel tint comes from the AI Bridge slide. */
:root {
  --navy: #0c2340;
  --navy-2: #233750;
  --navy-3: #3a4d66;
  --orange: #e86f2a;        /* use on navy, or as a fill with navy text */
  --orange-ink: #b04812;    /* darker orange for text on light backgrounds (AA) */
  --cream: #f5f4f0;
  --peach: #fbe4d4;
  --ice: #e3eaf2;           /* the slide's core-course panel */
  --white: #ffffff;
  --ink: #0c2340;
  --muted: #4f5662;
  --line: #e2ded5;
  --sky: #8fb2e0;
  /* theme surfaces (light); dark values below, same palette as the COMP 1100 site */
  --bg: #f5f4f0;
  --surface: #ffffff;
  --row: #faf9f6;
  --exam: #e9eef5;
  --tbd-ink: #7a3207;
  --dot: #3a4d66;
  --core-line: #cfd9e6;
  --meter-off: rgba(12,35,64,.22);
  color-scheme: light;
  --radius: 14px;
  --maxw: 1080px;
  --font: "DM Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--orange-ink); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--navy); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }

/* ---------- Header / navigation ---------- */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 700; }
.brand:hover { color: var(--white); }
.brand-code { font-family: var(--mono); color: var(--orange); font-size: 1rem; letter-spacing: .02em; white-space: nowrap; }
.brand-name { font-size: .98rem; opacity: .95; white-space: nowrap; }
.nav-toggle { display: none; background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: .95rem; cursor: pointer; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.site-nav a { display: block; color: #dfe6ef; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 500; font-size: .97rem; white-space: nowrap; }
.site-nav a:hover { background: var(--navy-2); color: var(--white); }
.site-nav a.nav-cta { background: var(--orange); color: var(--navy); font-weight: 700; margin-left: 6px; }
.site-nav a.nav-cta:hover { background: #f08a4e; color: var(--navy); }

@media (max-width: 1100px) { .brand-name { display: none; } }
@media (max-width: 860px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-top: 1px solid rgba(255,255,255,.1); padding: 8px 12px 16px; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .no-js .site-nav ul { flex-direction: row; flex-wrap: wrap; }
  .site-nav a.nav-cta { margin: 6px 0 0; text-align: center; }
  .no-js .site-header .wrap { flex-wrap: wrap; padding-bottom: 8px; }
}

/* ---------- Buttons, pills ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 700; letter-spacing: .02em; text-decoration: none; border: 2px solid transparent; }
.btn-sm { padding: 8px 14px; font-size: .95rem; }
.btn-orange { background: var(--orange); color: var(--navy); }
.btn-orange:hover { background: #f08a4e; color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.pill { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pill-orange { background: var(--orange); color: var(--navy); }
.pill-plain { color: #f3a272; }
.pill-navy { background: var(--navy); color: var(--white); }
.eyebrow { color: var(--orange-ink); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; margin: 0 0 10px; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.tag-peach { background: var(--peach); color: var(--tbd-ink); }
.tag-navy { background: var(--navy); color: var(--white); }
.tag-ice { background: var(--ice); color: var(--ink); }

/* ---------- Landing hero ---------- */
.hero { background: var(--navy); color: var(--white); padding: 40px 0 96px; overflow: hidden; }
/* photo strip at the top of the hero, fading into the navy (his choice, Nov 21) */
.hero { padding-top: 0; }
.hero-photo { position: relative; height: 260px; margin-bottom: 32px; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 38% 16%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(12,35,64,0) 45%, var(--navy) 100%); }
.hero-top { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-bottom: 30px; }
.logo-tile { background: var(--white); border-radius: 14px; padding: 12px 16px; display: inline-flex; max-width: 100%; }
.logo-tile img { display: block; width: 340px; max-width: 100%; height: auto; }
.hero-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 36px; align-items: center; }
.headline { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.08; margin: 0 0 18px; }
.headline .accent { color: var(--orange); }
.headline .for { display: block; font-size: .5em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #d5dce6; margin-top: 16px; line-height: 1.3; }
.hero-sub { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 700; color: #f3a272; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fast-track { background: var(--surface); color: var(--ink); border-radius: 22px; padding: 26px 26px 24px; box-shadow: 0 18px 40px rgba(0,0,0,.25); position: relative; }
/* heading left, lightning icon right, centred on the heading's first line (his request, Nov 20) */
.ft-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 8px; }
/* Fast Track and Four AI Electives badges: 48px circles, 26px icons (his request, Nov 21) */
.ft-head .icon-badge { flex: none; width: 48px; height: 48px; margin-top: -11px; }
.ft-head .icon-badge .icon { width: 26px; height: 26px; }
.fast-track h2 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.fast-track p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.icon-badge { width: 44px; height: 44px; border-radius: 50%; background: var(--peach); color: var(--orange-ink); display: inline-flex; align-items: center; justify-content: center; }
.icon-badge .icon { width: 24px; height: 24px; }

/* Cream panel that overlaps the hero */
.course-card { background: var(--bg); border-radius: 28px 28px 0 0; margin-top: -56px; position: relative; padding: 44px 0 40px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 70ch; }
.lead strong { color: var(--ink); }
.section-head { max-width: 760px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.section-head .lead { margin-bottom: 0; }

/* ---------- Course cards and flow ---------- */
.course { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.course .code { font-family: var(--mono); color: var(--orange-ink); font-weight: 700; font-size: 1rem; margin: 0; }
.course h3 { font-size: 1.3rem; margin: 0; }
.course h3 a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.course h3 a:hover { color: var(--orange-ink); }
.course .levels { font-size: .92rem; color: var(--muted); margin: 0; }
.course .levels span, .nowrap { white-space: nowrap; }
.section-head .lead + .lead { margin-top: 8px; }
@media (max-width: 420px) {
  /* keep "View Syllabus" and "Download PDF" side by side inside the dotted groups on phones */
  .btn-sm { padding: 8px 10px; font-size: .92rem; }
  .bridge-flow .course, .core-grid .course { padding: 18px 14px; }
  .core-group { padding: 6px; }
}
.course .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fast-track p.fine { font-size: .95rem; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.start-here { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.start-here h3 { margin: 0 0 4px; }
.start-here p { margin: 0; color: var(--muted); }
.start-here p.eyebrow { color: var(--orange-ink); margin-bottom: 6px; }
.course .tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 2px; }
.course .leads-to { font-size: .92rem; color: var(--muted); margin: 0; }
.course .leads-to b { color: var(--ink); font-weight: 600; }
.course .actions { margin-top: auto; padding-top: 10px; }
.course p.desc { color: var(--muted); margin: 0; }

.flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--ink); }
.flow-arrow svg { width: 40px; height: 22px; }

.bridge-flow { display: grid; grid-template-columns: 1fr 56px 1fr; gap: 16px 8px; align-items: stretch; }
.bridge-flow .stack { display: grid; gap: 16px; }
/* Dotted outline grouping cards (his request, Nov 20): COMP 5230 + 5100 in the Bridge, COMP 5630 + 5130 in the core */
.bridge-flow .stack { border: 3px dotted var(--dot); border-radius: 20px; padding: 10px; }
.bridge-flow .third { align-self: center; }
.hint { display: flex; gap: 10px; align-items: center; margin: 22px 0 0; background: var(--ice); color: var(--ink); border-radius: 999px; padding: 10px 20px; font-weight: 600; width: fit-content; max-width: 100%; }

.section { padding: 56px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.core-panel { background: var(--ice); border-radius: 22px; padding: 22px; }
.core-grid { display: grid; grid-template-columns: 1fr 56px 1fr; grid-template-rows: auto auto; gap: 16px 8px; }
.core-grid .course { border-color: var(--core-line); }
/* Desktop: AI (top left) -> arrow -> dotted group with Machine Learning over Data Mining (right column);
   Four AI Electives bottom left. The group is a subgrid so its two cards line up with the two rows. */
.core-grid > .course:first-child { grid-column: 1; grid-row: 1; }
.core-grid > .flow-arrow { grid-column: 2; grid-row: 1; }
.core-grid > .electives { grid-column: 1; grid-row: 2; }
.core-group { grid-column: 3; grid-row: 1 / span 2; display: grid; grid-template-rows: subgrid; gap: 16px; border: 3px dotted var(--dot); border-radius: 20px; padding: 10px; }
.course.electives { background: var(--navy); color: var(--white); border-color: var(--navy); }
.course.electives h3 { color: var(--white); }
.course.electives p.desc { color: #d5dce6; }
.course.electives .icon-badge { background: var(--navy-2); color: #f3a272; }
.course.electives .ft-head { margin-bottom: 2px; }
.flow-note { font-size: .92rem; color: var(--muted); margin: 14px 0 0; }

/* Online band */
.online { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px 32px; }
.online { display: grid; grid-template-columns: 1fr minmax(260px, 38%); gap: 28px; align-items: center; }
.online-photo { display: block; width: 100%; height: 100%; max-height: 240px; object-fit: cover; object-position: 50% 45%; border-radius: 16px; }
/* "Step 3" label left, campus + laptop badge right on the same row; heading full width below (his request, Nov 20) */
.online-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 10px; }
.online-head p.eyebrow { margin: 0; }
.online h2 { margin-bottom: 8px; }
/* campus + laptop badge: 60px tall, 32px icons; 52px / 28px on phones (his request, Nov 21) */
.icon-badge.duo { width: auto; height: 60px; padding: 0 18px; gap: 6px; border-radius: 999px; flex: none; }
.icon-badge.duo .icon { width: 32px; height: 32px; }
.duo-plus { font-weight: 800; font-size: 1.15rem; line-height: 1; }
.online p { margin: 0; color: var(--muted); font-size: 1.1rem; max-width: 62ch; }
.online p.eyebrow { color: var(--orange-ink); font-size: .82rem; margin: 0 0 10px; }

/* Pathways: course blocks */
.pathways { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pathway { background: var(--navy); color: var(--white); border-radius: 22px; padding: 26px; }
.pathway .count { display: inline-block; background: var(--orange); color: var(--navy); font-weight: 800; border-radius: 999px; padding: 4px 16px; font-size: 1rem; }
.pw-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; }

/* Skill-level chip: 4-step meter (literacy -> advanced literacy -> proficiency -> fluency) */
.skill-row { margin: 0 0 12px; }
.skill { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--ice); color: var(--ink); }
.meter { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.meter i { display: block; width: 4px; border-radius: 1px; background: var(--meter-off); }
.meter i:nth-child(1) { height: 5px; } .meter i:nth-child(2) { height: 8px; } .meter i:nth-child(3) { height: 11px; } .meter i:nth-child(4) { height: 14px; }
.meter i.on { background: var(--orange-ink); }
.pathway .skill, .course.electives .skill, .page-hero .skill { background: var(--navy-2); color: var(--white); border: 1px solid #3d5170; }
.pathway .meter i, .course.electives .meter i, .page-hero .meter i { background: rgba(255,255,255,.25); }
.pathway .meter i.on, .course.electives .meter i.on, .page-hero .meter i.on { background: var(--orange); }
.course.electives .skill-row { margin: 2px 0 4px; }
.page-hero .skill-row { margin: 0 0 12px; }
.course .tags .skill { padding-top: 3px; padding-bottom: 3px; }
.start-here .skill-row { margin: 2px 0 8px; }
.pathway h3 { font-size: 1.35rem; margin-bottom: 6px; }
.pathway .formula { color: #d5dce6; margin: 0 0 16px; font-size: 1.05rem; }
.pathway .formula b { color: var(--white); }
.blocks { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.blocks li { flex: 0 1 30px; min-width: 0; aspect-ratio: 1 / 1; border-radius: 7px; }
@media (max-width: 420px) { .blocks { gap: 4px; } .blocks li { border-radius: 5px; } }
.blocks .b-bridge { background: var(--orange); }
.blocks .b-core { background: var(--sky); }
.blocks .b-elective { background: transparent; border: 2px solid #f3a272; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 18px 0 0; font-size: .95rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 16px; height: 16px; border-radius: 4px; }
.legend .b-bridge { background: var(--orange); }
.legend .b-core { background: var(--sky); }
.legend .b-elective { border: 2px solid var(--orange); }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.dl { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.dl img { width: 160px; border-radius: 6px; border: 1px solid var(--line); flex: none; }
.dl .file-icon { width: 92px; height: 72px; flex: none; border-radius: 8px; background: var(--navy); color: var(--white); display: flex; flex-direction: column; justify-content: center; align-items: center; font-family: var(--mono); font-weight: 700; }
.dl .file-icon small { color: var(--orange); font-size: .75rem; }
.dl h3 { margin: 0 0 4px; }
.dl p { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.dl .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.note { font-size: .95rem; color: var(--muted); }

.cta-band { background: var(--navy); color: var(--white); border-radius: 24px; padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.cta-band p { margin: 0; color: #d5dce6; }
.cta-band .accent { color: var(--orange); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .pathways { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero { padding: 0 0 84px; }
  .bridge-flow, .core-grid { grid-template-columns: 1fr; }
  .flow-arrow svg { transform: rotate(90deg); }
  .core-grid > * { grid-column: auto !important; grid-row: auto !important; }
  .core-group { grid-template-rows: none; padding: 8px; border-radius: 18px; }
  .bridge-flow .stack { padding: 6px; border-radius: 18px; }
  .online { padding: 24px 20px; }
  .online { grid-template-columns: 1fr; gap: 18px; }
  .online-photo { order: -1; height: 170px; }
  .hero-photo { height: 160px; margin-bottom: 24px; }
  .icon-badge.duo { height: 52px; padding: 0 14px; gap: 4px; }
  .icon-badge.duo .icon { width: 28px; height: 28px; }
  .hint { border-radius: 14px; }
  .dl { flex-direction: column; align-items: flex-start; }
  .dl img { width: 100%; max-width: 420px; }
}
@media (max-width: 420px) {
  .cta-band { padding: 26px 20px; }
  .fast-track { padding: 22px 20px; }
  .core-panel { padding: 14px; }
}

/* ---------- Syllabus pages (inner-page layout from the COMP 1100 site) ---------- */
.page-hero { background: var(--navy); color: var(--white); padding: 40px 0 36px; }
.page-hero .eyebrow { color: #f3a272; }
.page-hero .eyebrow a { color: #f3a272; }
.page-hero .eyebrow a:hover { color: var(--white); }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin: 0 0 12px; }
.page-hero .h1-code { display: block; font-family: var(--mono); color: var(--orange); font-size: .5em; letter-spacing: .02em; margin-bottom: 6px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.hero-facts li { background: var(--navy-2); border: 1px solid #3d5170; color: #dfe6ef; border-radius: 999px; padding: 4px 14px; font-size: .92rem; font-weight: 600; }
.page-hero .actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 40px 20px 64px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: .95rem; }
.toc h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc h2.toc-sub { margin-top: 24px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 12px; color: var(--ink); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { border-left-color: var(--orange); color: var(--orange-ink); }
.toc a[aria-current="page"] { border-left-color: var(--orange); font-weight: 700; }
.toc-code { display: block; font-family: var(--mono); font-size: .8rem; color: var(--orange-ink); }
.content { min-width: 0; }
.content section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 22px; }
.content section > h2 { font-size: 1.45rem; padding-bottom: 10px; border-bottom: 2px solid var(--bg); }
.content ul, .content ol { padding-left: 1.3em; margin: 0 0 1em; }
.content li { margin-bottom: .45em; }
.content .objectives li::marker { color: var(--orange-ink); font-weight: 700; }
.content a { overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
.kv dt { font-weight: 700; }
.kv dd { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: var(--white); border-top: 0; font-size: .9rem; letter-spacing: .04em; }
tbody tr:nth-child(even) { background: var(--row); }
tr.exam td { background: var(--exam); font-weight: 600; }
td.wk { font-family: var(--mono); font-weight: 700; white-space: nowrap; color: var(--orange-ink); width: 4.5em; }
.asg { display: inline-block; background: var(--peach); color: var(--tbd-ink); font-weight: 700; font-size: .85rem; padding: 0 9px; border-radius: 999px; white-space: nowrap; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pager a { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; text-decoration: none; color: var(--ink); font-weight: 700; }
.pager a:hover { border-color: var(--orange); color: var(--orange-ink); }
.pager a.next { margin-left: auto; text-align: right; }
.pager small { display: block; font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
  .toc ol { border-left: 0; }
  .toc a { padding: 4px 0; border-left: 0; margin-left: 0; }
  .toc a[aria-current="page"] { color: var(--orange-ink); }
}
@media (max-width: 760px) {
  .content section { padding: 20px 18px; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dd { margin-bottom: 10px; }
  th, td { padding: 9px 10px; }
  .pager a { flex: 1 1 100%; }
}

/* ---------- FAQ (his request, Nov 21; answers use only wording already on the page) ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--peach); color: var(--orange-ink); font-size: 1.2rem; line-height: 28px; text-align: center; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { margin: 0; padding: 14px 20px 18px; color: var(--muted); }

/* ---------- Contact cards (his request, Nov 21) ---------- */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 860px; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.contact .who { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); }
.contact h3 { margin: 0 0 2px; font-size: 1.2rem; }
.contact .role { margin: 0 0 8px; color: var(--muted); }
.contact a { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Back-to-top button (his request, Nov 21) ---------- */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange); color: var(--navy); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .2s, transform .2s; }
.to-top svg { width: 24px; height: 24px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #f08a4e; color: var(--navy); }
.no-js .to-top { display: none; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
@media print { .to-top { display: none !important; } }


/* ---------- Dark theme: follows the device setting; the header button overrides it (data-theme) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1420;
    --surface: #111e2f;
    --row: #0f1b2b;
    --exam: #16263b;
    --ink: #e6ebf2;
    --muted: #aab4c2;
    --line: #263548;
    --peach: #3b2618;
    --ice: #1a2c44;
    --tbd-ink: #f8c9a8;
    --orange-ink: #f3a272;
    --dot: #7d93b2;
    --core-line: #263548;
    --meter-off: rgba(255,255,255,.22);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .btn-navy, :root:not([data-theme="light"]) .tag-navy { border: 1px solid rgba(255,255,255,.28); }
  :root:not([data-theme="light"]) .dl img { border-color: #3a4d66; }
}
:root[data-theme="dark"] {
  --bg: #0a1420;
  --surface: #111e2f;
  --row: #0f1b2b;
  --exam: #16263b;
  --ink: #e6ebf2;
  --muted: #aab4c2;
  --line: #263548;
  --peach: #3b2618;
  --ice: #1a2c44;
  --tbd-ink: #f8c9a8;
  --orange-ink: #f3a272;
  --dot: #7d93b2;
  --core-line: #263548;
  --meter-off: rgba(255,255,255,.22);
  color-scheme: dark;
}
:root[data-theme="dark"] .btn-navy, :root[data-theme="dark"] .tag-navy { border: 1px solid rgba(255,255,255,.28); }
:root[data-theme="dark"] .dl img { border-color: #3a4d66; }

/* ---------- Header theme button (same as COMP 1100) ---------- */
.header-tools { display: flex; align-items: center; gap: 6px; }
.no-js .header-tools .icon-btn { display: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: var(--white); cursor: pointer; padding: 0; flex: none; }
.icon-btn:hover { background: var(--navy-2); }
.icon-btn svg { width: 20px; height: 20px; flex: none; }
.theme-btn .moon { display: none; }
.theme-btn[data-mode="dark"] .sun { display: none; }
.theme-btn[data-mode="dark"] .moon { display: block; }
/* hamburger menu button (his request, Nov 23): an icon instead of the word "Menu"; it becomes an X while open */
.nav-toggle.icon-btn { display: none; }
@media (max-width: 860px) { .js .nav-toggle.icon-btn { display: inline-flex; } }
.nav-toggle .close { display: none; }
.nav-toggle[aria-expanded="true"] .bars { display: none; }
.nav-toggle[aria-expanded="true"] .close { display: block; }
.nav-toggle.icon-btn svg { width: 22px; height: 22px; }
@media (max-width: 1320px) { .brand-name { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d3df; padding: 36px 0 28px; font-size: .95rem; }
.site-footer a { color: #f3a272; }
.site-footer a:hover { color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.15fr 1.4fr .8fr; gap: 24px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 4px; }
.foot-credit { margin: 22px 0 0; font-size: .9rem; color: #c9d3df; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .88rem; }
.au-bar { height: 6px; background: linear-gradient(90deg, var(--orange) 0 50%, var(--navy-3) 50% 100%); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

@media print {
  .site-header, .nav-toggle, .hero-cta, .au-bar { display: none !important; }
  body { background: #fff; }
  .hero, .pathway, .cta-band, .site-footer { background: #fff !important; color: #000 !important; }
  .headline .for, .hero-sub, .pathway .formula, .cta-band p { color: #000 !important; }
  .course-card { margin-top: 0; }
  .fast-track { box-shadow: none; border: 1px solid #999; }
  .toc, .pager, .page-hero .actions, .hero-facts { display: none !important; }
  .page-hero { background: #fff !important; color: #000 !important; padding: 0 0 12px; }
  .layout { display: block; padding: 0; }
  .content section { border: 0; padding: 0 0 8px; }
  thead th { background: #fff; color: #000; border-bottom: 2px solid #000; }
}
