@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #17221d;
  --muted: #66716b;
  --paper: #f6f4ed;
  --card: #fffef9;
  --line: #d9d8cf;
  --forest: #173e32;
  --forest-2: #265d4c;
  --lime: #c9f06a;
  --amber: #f3b95f;
  --blue: #7eb8d8;
  --rose: #e89a91;
  --shadow: 0 18px 50px rgba(23, 34, 29, .08);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { max-width: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; overflow-wrap: anywhere; }
button, select, input { max-width: 100%; font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
p, li, h1, h2, h3, td, th { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
:where(a, button, select, input, summary):focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; }
.skip-link:focus { left: 8px; background: white; padding: 10px 14px; border-radius: 8px; }
.site-shell { min-height: 100vh; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 237, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(23, 34, 29, .10);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: max-content; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--paper); background: var(--forest); font: 800 15px/1 Georgia, serif; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 17px; }
.brand-copy span { margin-top: 5px; color: var(--muted); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { text-decoration: none; padding: 9px 11px; border-radius: 999px; color: #46504b; font-size: 14px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: #e5e6dd; color: var(--ink); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }

.hero { padding: 84px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 56px; align-items: end; }
.eyebrow { margin: 0 0 16px; color: var(--forest-2); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .serif { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
h1 { max-width: 830px; margin-bottom: 24px; font-size: clamp(48px, 8vw, 94px); line-height: .96; font-weight: 500; }
h2 { margin-bottom: 18px; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; font-weight: 500; }
h3 { font-size: 18px; line-height: 1.3; }
.lede { max-width: 700px; margin-bottom: 30px; color: #535d58; font-size: clamp(18px, 2vw, 22px); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; max-width: 100%; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 11px 17px; border: 1px solid var(--forest); border-radius: 999px; background: var(--forest); color: white; text-align: center; text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.3; cursor: pointer; }
.button.secondary { color: var(--forest); background: transparent; }
.button.ghost { color: var(--ink); background: var(--card); border-color: var(--line); }
.hero-note { position: relative; padding: 28px; border: 1px solid #bbc1b8; background: #ecece3; box-shadow: 18px 18px 0 var(--lime); }
.hero-note::before { content: ""; position: absolute; width: 46px; height: 46px; top: -18px; right: 24px; border-radius: 50%; background: var(--amber); }
.hero-note .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.hero-note strong { display: block; margin: 8px 0 18px; font: 500 29px/1.14 Georgia, serif; }
.hero-note p:last-child { margin-bottom: 0; }

.section { padding: 82px 0; border-top: 1px solid var(--line); }
.section.soft { background: #ecece3; }
.section.dark { color: white; background: var(--forest); border: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.section-head p { max-width: 580px; margin-bottom: 5px; color: var(--muted); }
.roadmap-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  padding: 7px 0;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.roadmap-link span:last-child {
  color: var(--blue);
  font-size: 18px;
  transition: transform .18s ease;
}
.roadmap-link:hover span:last-child { transform: translate(3px, -3px); }
.dark .section-head p { color: #c5d0ca; }
.kicker { color: var(--forest-2); font-weight: 800; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
.dark .kicker { color: var(--lime); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--card); }
.stat { padding: 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; margin-bottom: 4px; font: 500 40px/1 Georgia, serif; }
.stat span { color: var(--muted); font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.card-number { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 38px; border-radius: 50%; background: var(--lime); font-weight: 800; }
.card p { color: var(--muted); }
.card a.text-link { margin-top: auto; padding-top: 20px; color: var(--forest-2); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { min-height: 260px; padding: 32px; border: 1px solid var(--line); background: var(--card); }
.feature:nth-child(2) { background: #dbe9ee; }
.feature:nth-child(3) { background: #ece5d5; }
.feature:nth-child(4) { background: #e7e1eb; }
.feature .meta { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.feature h3 { max-width: 420px; margin: 36px 0 14px; font: 500 clamp(26px, 4vw, 42px)/1.06 Georgia, serif; letter-spacing: -.03em; }

.page-hero { padding: 68px 0 42px; }
.page-hero h1 { max-width: 900px; font-size: clamp(45px, 7vw, 78px); }
.breadcrumbs { display: flex; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { text-underline-offset: 3px; }
.source-note { padding: 16px 18px; border-left: 4px solid var(--amber); background: #fffaf0; color: #5c594f; font-size: 14px; }

.resume-hero { padding-bottom: 68px; }
.resume-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 54px; align-items: end; }
.resume-status { padding: 28px; color: white; border: 0; border-top: 6px solid var(--lime); border-radius: 4px; background: var(--ink); box-shadow: none; }
.resume-status .label, .resume-contact-strip span, .resume-label, .service-card > span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.resume-status .label { color: var(--lime); font-family: "DM Mono", Consolas, monospace; font-weight: 500; }
.resume-status > strong { display: block; margin: 14px 0 30px; font: 800 30px/1.02 Manrope, Arial, sans-serif; letter-spacing: -.055em; }
.resume-status > strong em { color: var(--lime); font-style: normal; }
.resume-status dl, .service-card dl { display: grid; gap: 12px; margin: 0; }
.resume-status dl div, .service-card dl div { display: flex; justify-content: space-between; gap: 18px; padding-top: 11px; border-top: 1px solid rgba(23,34,29,.18); }
.resume-status dl div { border-color: #454954; }
.resume-status dt, .service-card dt { color: var(--muted); font-size: 12px; }
.resume-status dt { color: #b6bac7; }
.resume-status dd, .service-card dd { margin: 0; text-align: right; font-size: 13px; font-weight: 800; }
.resume-status dd { color: white; }
.resume-contact-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--card); }
.resume-contact-strip-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.resume-contact-strip > div { min-width: 0; padding: 22px; border-right: 1px solid var(--line); }
.resume-contact-strip > div:last-child { border-right: 0; }
.resume-contact-strip span { display: block; margin-bottom: 7px; }
.resume-contact-strip strong, .resume-contact-strip a { font-size: 15px; font-weight: 700; text-underline-offset: 4px; }
.resume-timeline { border-top: 1px solid var(--line); }
.resume-timeline-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.resume-year { color: var(--blue); font: 800 28px/1 Manrope, Arial, sans-serif; }
.resume-timeline-item h3 { margin: 5px 0 7px; font: 800 clamp(22px, 3vw, 32px)/1.05 Manrope, Arial, sans-serif; letter-spacing: -.045em; }
.resume-timeline-item p:last-child { margin: 0; color: var(--muted); }
.resume-label { margin-bottom: 0; }
.resume-two-column { display: grid; grid-template-columns: minmax(270px, .7fr) minmax(0, 1.3fr); gap: 70px; align-items: start; }
.resume-section-intro { max-width: 430px; color: var(--muted); }
.credential-list { border-top: 1px solid var(--line); }
.credential-list article { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 20px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.credential-list article > span { color: var(--blue); font: 800 21px/1 Manrope, Arial, sans-serif; letter-spacing: -.035em; }
.credential-list h3 { margin: 0 0 5px; font-size: 17px; }
.credential-list p { margin: 0; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card { display: flex; min-width: 0; min-height: 330px; flex-direction: column; padding: 27px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.055); }
.service-card.featured { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.service-card > span { color: #b9c9c1; }
.service-card.featured > span, .service-card.featured dt { color: #52613a; }
.service-card h3 { margin: 34px 0 15px; font: 800 27px/1.04 Manrope, Arial, sans-serif; letter-spacing: -.045em; }
.service-card p { color: #d2ddd7; }
.service-card.featured p { color: #36412d; }
.service-card ul { margin: 0; padding-left: 19px; color: #d2ddd7; }
.service-card li + li { margin-top: 12px; }
.service-card dl { margin-top: auto; }

/* High-contrast résumé variant of the site's cobalt section. */
.section.resume-education { color: white; background: var(--blue); }
.resume-education .section-head p { color: #f0f2ff; }
.resume-education .kicker { color: var(--lime); }
.resume-education .resume-timeline { border-color: rgba(255,255,255,.5); }
.resume-education .resume-timeline-item { border-color: rgba(255,255,255,.5); }
.resume-education .resume-year {
  display: inline-flex;
  width: max-content;
  height: max-content;
  align-items: center;
  padding: 7px 11px;
  color: var(--ink);
  background: var(--lime);
  font: 800 13px/1 "DM Mono", monospace;
  letter-spacing: .04em;
}
.resume-education .resume-label { color: #e4e8ff; }
.resume-education .resume-timeline-item h3 { color: white; }
.resume-education .resume-timeline-item p:last-child { color: #f5f6ff; }

.filters { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; margin: 26px 0; }
.field { display: grid; gap: 7px; min-width: 210px; }
.field label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field select { min-height: 46px; padding: 0 42px 0 14px; border: 1px solid #c8cbc4; border-radius: 12px; background: var(--card); color: var(--ink); }
.table-shell { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 800px; }
th { padding: 14px 16px; color: #dce8e2; background: var(--forest); text-align: left; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f4f5ee; }
.code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 27px; padding: 3px 10px; border: 1px solid #cad0c8; border-radius: 999px; background: #f7f7f2; font-size: 12px; white-space: nowrap; }
.pill.fixed::before, .pill.open::before, .pill.pending::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.pill.fixed::before { background: var(--forest-2); }
.pill.open::before { background: #be8225; }
.pill.pending::before { background: #9a665f; }
.view-link { font-weight: 800; color: var(--forest-2); text-underline-offset: 3px; }
.empty-note { padding: 34px; text-align: center; color: var(--muted); }

.selector-bar { display: block; margin: 28px 0 34px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.semester-tabs { display: flex; max-width: 100%; gap: 8px; justify-content: flex-start; flex-wrap: wrap; }
.semester-tabs button, .day-tabs button, .view-tabs button { min-height: 42px; padding: 8px 15px; border: 1px solid #c7cbc4; border-radius: 999px; background: transparent; cursor: pointer; }
.semester-tabs button[aria-selected="true"], .day-tabs button[aria-selected="true"], .view-tabs button[aria-selected="true"] { color: white; background: var(--forest); border-color: var(--forest); }
.semester-panel[hidden], .day-panel[hidden], .view-panel[hidden] { display: none; }
.semester-panel { animation: reveal .28s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } }
.semester-summary { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 20px; }
.semester-summary.compact { grid-template-columns: minmax(0, 1fr); }
.course-stack { display: grid; gap: 12px; }
.course-block { display: grid; grid-template-columns: 94px minmax(0,1fr) auto; gap: 18px; align-items: start; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.course-block .type { font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.course-block h3 { margin: 0 0 4px; }
.course-block p { margin: 0; color: var(--muted); font-size: 13px; }
.credits { text-align: right; white-space: nowrap; }
.credits strong { display: block; font: 500 25px/1 Georgia, serif; }
.side-card { padding: 24px; border-radius: 18px; background: var(--forest); color: white; }
.side-card h3 { font: 500 28px/1.1 Georgia, serif; }
.side-card p { color: #cdd8d2; }
.side-card .field label { color: #ced9d3; }
.side-card .field select { width: 100%; }
.choice-result { margin-top: 14px; padding: 12px 14px; border-radius: 10px; color: var(--ink); background: var(--lime); font-size: 13px; font-weight: 800; }
.roadmap { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.road-step { min-height: 175px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.42); }
.road-step .week { color: var(--forest-2); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.road-step h3 { margin: 18px 0 7px; font: 500 22px/1.15 Georgia, serif; }
.road-step p { margin-bottom: 0; color: var(--muted); font-size: 13px; }

.view-tabs, .day-tabs { display: flex; max-width: 100%; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.class-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.class-card .time { color: var(--forest-2); font-size: 12px; font-weight: 900; letter-spacing: .05em; }
.class-card h3 { margin: 16px 0 5px; }
.class-card p { margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.class-card .where { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.routine-frame { overflow: auto; max-height: 72vh; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.routine-frame img { width: 100%; min-width: 980px; }
.routine-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0 0; }

.placeholder { min-height: 58vh; display: grid; place-items: center; padding: 80px 20px; }
.placeholder-card { width: min(760px, 100%); padding: 46px; border: 1px solid var(--line); background: var(--card); text-align: center; box-shadow: var(--shadow); }
.placeholder-mark { display: grid; width: 54px; height: 54px; margin: 0 auto 24px; place-items: center; border-radius: 50%; background: var(--lime); font-size: 22px; }
.placeholder-card h1 { margin: 0 auto 18px; font-size: clamp(38px, 6vw, 64px); }
.placeholder-card p { max-width: 580px; margin: 0 auto 26px; color: var(--muted); }

.site-footer { padding: 38px 0; color: #cbd4cf; background: #102b23; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: end; }
.site-footer strong { color: white; font-family: Georgia, serif; font-size: 20px; }
.site-footer p { margin: 10px 0 0; max-width: 520px; font-size: 13px; }
.footer-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 18px; }
.footer-links a { font-size: 13px; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links { display: none; position: absolute; left: 20px; right: 20px; top: 68px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
  .nav-links.open { display: grid; }
  .nav-links a { padding: 12px 14px; }
  .hero-grid, .semester-summary, .footer-grid { grid-template-columns: 1fr; }
  .hero-note { max-width: 520px; }
  .cards, .schedule-grid { grid-template-columns: repeat(2, 1fr); }
  .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .wrap, .narrow { width: min(100% - 24px, 1180px); }
  .brand-copy span { display: none; }
  .hero { padding: 54px 0 46px; }
  h1 { font-size: clamp(43px, 15vw, 64px); }
  .section { padding: 58px 0; }
  .section-head { display: block; }
  .section-head .button { margin-top: 10px; }
  .section-head .roadmap-link { width: max-content; max-width: 100%; margin-top: 18px; }
  .cards, .feature-grid, .schedule-grid, .roadmap { grid-template-columns: 1fr; }
  .cards.four { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(3) { border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .selector-bar { grid-template-columns: 1fr; }
  .semester-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .semester-tabs button { min-width: max-content; }
  .course-block { grid-template-columns: 1fr auto; gap: 10px; }
  .course-block .type { grid-column: 1 / -1; }
  .course-block h3 { font-size: 16px; }
  .routine-toolbar { align-items: flex-start; flex-direction: column; }
  .routine-frame { margin-inline: -12px; border-radius: 0; }
  .placeholder-card { padding: 34px 22px; }
}

@media (max-width: 480px) {
  .button-row { display: grid; grid-template-columns: 1fr; }
  .button-row .button { width: 100%; }
  .page-hero h1 { font-size: clamp(40px, 13vw, 56px); line-height: 1; }
  h2 { font-size: clamp(32px, 11vw, 46px); line-height: 1; }
  .lede { font-size: 17px; }
  .nav { gap: 12px; }
  .brand { min-width: 0; }
  .brand-copy { min-width: 0; }
  .brand-copy strong { font-size: 14px; }
  .nav-toggle { flex: 0 0 42px; }
  .course-block { padding: 17px; }
  .credits strong { font-size: 24px; }
  .view-tabs, .day-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
  .view-tabs button, .day-tabs button { flex: 0 0 auto; white-space: nowrap; }
  .footer-links { gap: 12px 16px; }
}

@media print {
  .site-header, .site-footer, .filters, .selector-bar, .view-tabs, .day-tabs, .button { display: none !important; }
  body { background: white; }
  .section, .page-hero { padding: 20px 0; }
  .wrap { width: 100%; }
  .card, .table-shell, .routine-frame { box-shadow: none; }
}

/* Visual system aligned with the original SKBU/01 roadmap */
:root {
  --ink: #171b24;
  --muted: #646875;
  --paper: #f5f2e9;
  --card: rgba(255, 255, 255, .44);
  --line: #c9c4b7;
  --forest: #171b24;
  --forest-2: #2146d0;
  --lime: #cfff46;
  --amber: #ff6a55;
  --blue: #2146d0;
  --rose: #ff6a55;
  --shadow: 0 18px 45px rgba(23, 27, 36, .09);
  --radius: 4px;
}

body {
  font-family: Manrope, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, .serif {
  font-family: Manrope, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -.06em;
}

h1 { line-height: .91; }
h2 { line-height: .95; }
h3 { letter-spacing: -.025em; }
.hero h1 em { color: var(--blue); font-style: normal; }

.eyebrow, .kicker, .label, .meta, .field label, th, .code, .type, .week, .time, .breadcrumbs {
  font-family: "DM Mono", Consolas, monospace;
}

.site-header {
  position: relative;
  background: var(--paper);
  backdrop-filter: none;
  border-bottom: 0;
}

.nav { min-height: 72px; border-bottom: 1px solid var(--line); }
.brand { gap: 15px; }
.brand-mark {
  width: auto;
  height: auto;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border-radius: 0;
  font: 800 17px/1 Manrope, Arial, sans-serif;
  letter-spacing: -.06em;
}
.brand-mark::after { content: "/CS"; color: var(--blue); }
.brand-copy strong { font: 800 15px/1 Manrope, Arial, sans-serif; letter-spacing: -.025em; }
.brand-copy span { color: var(--muted); font: 500 9px/1.2 "DM Mono", monospace; }
.nav-links { gap: 7px; }
.nav-links a { padding: 9px 10px; border-radius: 0; font-size: 13px; font-weight: 700; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); background: transparent; }
.nav-toggle { border-color: var(--ink); border-radius: 99px; background: transparent; }

.hero { padding: 92px 0 68px; }
.hero-grid { grid-template-columns: 1.3fr .7fr; gap: 58px; align-items: end; }
.eyebrow, .kicker { color: var(--blue); font-size: 10px; font-weight: 500; letter-spacing: .08em; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 {
  max-width: 880px;
  margin-bottom: 30px;
  font-size: clamp(58px, 8vw, 108px);
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.lede { color: #4f5360; font-size: 18px; }
.button {
  min-height: 46px;
  padding: 10px 17px;
  border-color: var(--ink);
  border-radius: 99px;
  background: var(--ink);
}
.button.secondary { color: var(--ink); background: transparent; }
.button.ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.button:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.hero-note {
  padding: 30px;
  color: white;
  border: 0;
  border-radius: 5px;
  background: var(--ink);
  box-shadow: var(--shadow);
}
.hero-note::before { display: none; }
.hero-note .label { color: var(--lime); font-size: 10px; }
.hero-note strong { margin: 13px 0 26px; font: 800 clamp(34px, 4vw, 55px)/.98 Manrope, Arial, sans-serif; letter-spacing: -.06em; }
.hero-note p { padding-top: 20px; color: #b6bac7; border-top: 1px solid #454954; font-size: 12px; }

.section { padding: 90px 0; }
.section.soft { color: white; background: var(--blue); }
.section.soft .section-head p { color: #dbe2ff; }
.section.soft .card p { color: var(--muted); }
.section.soft .kicker { color: var(--lime); }
.section.dark { background: var(--ink); }
.section-head h2 { max-width: 680px; }

.stats { border-color: var(--ink); background: transparent; }
.stat { min-height: 150px; padding: 24px; border-color: var(--ink); }
.stat:nth-child(1) { color: white; background: var(--ink); }
.stat:nth-child(2) { background: var(--lime); }
.stat strong { font: 800 48px/1 Manrope, Arial, sans-serif; letter-spacing: -.06em; }
.stat span { font: 500 10px/1.45 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .05em; }
.stat:nth-child(1) span { color: #b6bac7; }

.cards { gap: 16px; }
.card {
  padding: 24px;
  border-color: rgba(255,255,255,.42);
  border-radius: 4px;
  background: white;
  color: var(--ink);
  box-shadow: none;
}
.card-number {
  width: auto;
  height: auto;
  margin-bottom: 46px;
  place-items: start;
  border-radius: 0;
  color: var(--blue);
  background: transparent;
  font: 500 10px/1 "DM Mono", monospace;
}
.card h3 { font-size: 24px; }
.card a.text-link { color: var(--blue); }
.feature-grid { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { min-height: 285px; padding: 30px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent !important; }
.feature .meta { color: var(--blue); font-size: 10px; }
.feature h3 { font: 800 clamp(28px, 4vw, 44px)/1 Manrope, Arial, sans-serif; }

.page-hero { padding: 84px 0 54px; border-bottom: 1px solid var(--line); }
.page-hero h1 {
  font-size: clamp(52px, 7vw, 92px);
  line-height: 1.06;
  text-wrap: balance;
}
.breadcrumbs { font-size: 10px; text-transform: uppercase; }
.source-note { padding: 18px 20px; border-left: 5px solid var(--coral); background: rgba(255,255,255,.48); }

.field select { border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background-color: transparent; }
.table-shell { border-color: var(--line); border-radius: 0; background: transparent; box-shadow: none; }
th { padding: 15px 16px; color: var(--lime); background: var(--ink); font-size: 9px; font-weight: 500; }
td { border-color: var(--line); }
tbody tr:hover { background: white; }
.pill { border-color: var(--line); border-radius: 99px; background: transparent; }
.pill.fixed::before { background: var(--blue); }
.pill.open::before { background: var(--lime); outline: 1px solid var(--ink); }
.pill.pending::before { background: var(--coral); }
.view-link { color: var(--blue); }

.selector-bar {
  padding: 24px;
  color: white;
  border: 0;
  border-radius: 0;
  background: var(--blue);
}
.selector-bar .field label { color: var(--lime); }
.selector-bar .field select { padding-left: 14px; color: var(--ink); border: 0; background: white; }
.semester-tabs button, .day-tabs button, .view-tabs button { color: inherit; border-color: currentColor; border-radius: 99px; background: transparent; }
.semester-tabs button[aria-selected="true"] { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.view-tabs button[aria-selected="true"], .day-tabs button[aria-selected="true"] { color: white; background: var(--blue); border-color: var(--blue); }
.course-block { border-radius: 0; background: rgba(255,255,255,.38); }
.course-block .type { color: var(--blue); font-size: 10px; }
.credits strong { font: 800 28px/1 Manrope, Arial, sans-serif; letter-spacing: -.05em; }
.side-card { border-radius: 4px; background: var(--ink); }
.side-card h3 { font: 800 32px/1.05 Manrope, Arial, sans-serif; letter-spacing: -.045em; }
.side-card .kicker { color: var(--lime); }
.side-card .field select { padding-inline: 12px; color: var(--ink); background: white; }
.choice-result { border-radius: 0; background: var(--lime); }
.roadmap { gap: 0; border-color: #454954; background: var(--ink); }
.road-step { min-height: 210px; color: white; border-color: #454954; background: var(--ink); }
.road-step .week { color: var(--lime); }
.road-step h3 { font: 700 21px/1.12 Manrope, Arial, sans-serif; }
.road-step p { color: #aeb2bf; }

.schedule-grid { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.class-card { min-height: 220px; padding: 22px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.class-card .time { color: var(--blue); font-size: 10px; }
.class-card h3 { margin-top: 30px; font-size: 21px; }
.routine-frame { padding: 10px; border-radius: 0; background: white; box-shadow: none; }

.placeholder-card { border-radius: 0; background: transparent; box-shadow: none; }
.placeholder-mark { width: auto; height: auto; color: var(--blue); border-radius: 0; background: transparent; font: 500 14px/1 "DM Mono", monospace; }
.site-footer { color: #aeb2bf; background: var(--ink); }
.site-footer strong { font: 800 19px/1 Manrope, Arial, sans-serif; }

@media (max-width: 900px) {
  .nav-links { border-radius: 0; background: var(--paper); }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-note { max-width: 560px; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  h1 { font-size: clamp(48px, 15vw, 66px); }
  .hero h1 {
    margin-bottom: 26px;
    font-size: clamp(48px, 14vw, 64px);
    line-height: 1.06;
    letter-spacing: -.045em;
  }
  .page-hero { padding: 54px 0 36px; }
  .page-hero h1 { font-size: clamp(44px, 14vw, 62px); }
  .hero-note strong { font-size: 40px; }
  .section { padding: 62px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 136px; border-right: 1px solid var(--ink); }
  .stat:nth-child(even) { border-right: 0; }
  .stat:nth-child(3) { border-bottom: 0; }
  .feature { min-height: 230px; }
  .selector-bar { margin-inline: -12px; padding: 18px 12px; }
  .semester-tabs { color: white; }
  .road-step { min-height: 0; }
  .class-card { min-height: 190px; }
}

/* Structured B.Sc. routine */
.routine-filterbar {
  display: grid;
  grid-template-columns: minmax(190px, .55fr) minmax(280px, 1.45fr);
  gap: 18px;
  align-items: end;
  margin: 22px 0 30px;
  padding: 22px;
  color: white;
  background: var(--ink);
}
.routine-filterbar .field label { color: var(--lime); }
.routine-filterbar select,
.routine-filterbar input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  outline: 0;
  background: white;
}
.routine-filterbar input:focus,
.routine-filterbar select:focus { box-shadow: inset 0 -4px 0 var(--lime); }
.sr-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.html-routine-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}
.html-routine-heading h3 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
}
.html-routine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.routine-period {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .34);
}
.routine-period > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: white;
  background: var(--blue);
}
.routine-period > header span {
  color: var(--lime);
  font: 500 10px/1 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.routine-period > header strong { font-size: 13px; white-space: nowrap; }
.routine-period-body { min-height: 190px; }
.routine-semester-block + .routine-semester-block { border-top: 1px solid var(--line); }
.routine-semester-label {
  padding: 9px 14px 5px;
  color: var(--blue);
  font: 500 9px/1.2 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.routine-entry {
  position: relative;
  padding: 12px 14px 14px;
  background: rgba(255,255,255,.30);
}
.routine-entry + .routine-entry { border-top: 1px dashed var(--line); }
.routine-entry.is-pkd {
  background: var(--lime);
  box-shadow: inset 5px 0 0 var(--ink);
}
.routine-entry-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.routine-type,
.routine-sem {
  color: var(--blue);
  font: 500 8.5px/1.2 "DM Mono", monospace;
  letter-spacing: .04em;
}
.routine-entry.is-pkd .routine-type,
.routine-entry.is-pkd .routine-sem { color: var(--ink); }
.routine-entry > strong {
  display: block;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.routine-full-name {
  display: block;
  min-height: 32px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}
.routine-entry.is-pkd .routine-full-name { color: #3e461e; }
.routine-entry-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid rgba(23,27,36,.17);
  color: var(--muted);
  font: 500 9px/1.25 "DM Mono", monospace;
}
.routine-entry-meta span { min-width: 0; }
.routine-entry-meta small {
  display: block;
  margin-bottom: 4px;
  color: inherit;
  font: inherit;
  font-size: 8px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.routine-entry-meta b {
  display: block;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
}
.routine-room { text-align: right; }
.routine-empty {
  display: grid;
  min-height: 190px;
  place-items: center;
  color: #999b98;
  font: 500 10px/1 "DM Mono", monospace;
  text-transform: uppercase;
}
.global-block .routine-entry {
  color: white;
  background: var(--coral);
}
.global-block .routine-entry .routine-type,
.global-block .routine-entry .routine-sem,
.global-block .routine-entry .routine-full-name,
.global-block .routine-entry .routine-entry-meta,
.global-block .routine-entry .routine-entry-meta b { color: white; }
.definition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.definition-card { min-height: 220px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.definition-card h3 { margin: 34px 0 10px; font-size: 24px; }
.definition-card p { color: var(--muted); }
.abbreviation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.abbreviation-grid span { display: grid; grid-template-columns: 58px 1fr; gap: 10px; min-height: 68px; align-items: center; padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; }
.abbreviation-grid b { color: var(--blue); font: 500 11px/1 "DM Mono", monospace; }

@media (max-width: 900px) {
  .html-routine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .routine-filterbar { grid-template-columns: 1fr; margin-inline: -12px; padding: 18px 12px; }
  .html-routine-heading { align-items: flex-start; flex-direction: column; }
  .html-routine-grid { grid-template-columns: 1fr; }
  .routine-period-body { min-height: 0; }
  .routine-empty { min-height: 96px; }
  .routine-entry > strong { font-size: 20px; }
  .definition-grid, .abbreviation-grid { grid-template-columns: 1fr; }
  .definition-card { min-height: 0; }
}

/* SVMCM guidance and student directory */
.svmcm-hero { padding-bottom: 72px; }
.svmcm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 56px; align-items: end; }
.svmcm-hero h1 { max-width: 850px; text-wrap: balance; }
.officer-card { padding: 30px; color: white; background: var(--ink); border-top: 7px solid var(--lime); }
.officer-card .label { color: var(--lime); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.officer-card strong { display: block; margin: 20px 0 32px; font-size: clamp(34px, 4vw, 52px); line-height: .96; letter-spacing: -.055em; }
.officer-card p { color: #d7d9df; }
.officer-card span { display: block; padding-top: 17px; color: #adb1bc; border-top: 1px solid #454954; font: 500 10px/1.45 "DM Mono", monospace; text-transform: uppercase; }
.official-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: start; margin-bottom: 30px; }
.official-band h2 { max-width: 760px; }
.official-band p:not(.kicker) { max-width: 720px; color: var(--muted); font-size: 17px; }
.official-band .text-link { align-self: start; margin-top: 34px; padding-bottom: 4px; color: var(--blue); font-weight: 800; line-height: 1.35; text-underline-offset: 5px; }
.scheme-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.scheme-stat { display: flex; min-height: 245px; flex-direction: column; padding: 26px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.scheme-stat > span { color: var(--blue); font: 500 10px/1.3 "DM Mono", monospace; letter-spacing: .06em; }
.scheme-stat strong { display: block; margin: 34px 0 16px; font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -.055em; }
.scheme-stat p { margin: 0; color: var(--muted); font-size: 14px; }
.svmcm-rates { background: var(--blue) !important; }
.rate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rate-card { display: flex; min-height: 230px; flex-direction: column; padding: 28px; color: var(--ink); background: white; }
.rate-card.featured { background: var(--lime); }
.rate-card span { font: 500 10px/1 "DM Mono", monospace; letter-spacing: .08em; }
.rate-card strong { display: block; margin-top: auto; padding-top: 54px; font-size: clamp(42px, 5vw, 64px); line-height: .9; letter-spacing: -.06em; }
.rate-card p { margin: 12px 0 0; color: #555b68 !important; }
.scheme-footnote { max-width: 700px; margin: 24px 0 0; color: #e8ecff; font-size: 14px; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.process-step { display: flex; min-height: 300px; flex-direction: column; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-step > span { color: var(--blue); font: 500 11px/1 "DM Mono", monospace; }
.process-step h3 { margin: 56px 0 14px; font-size: 24px; }
.process-step p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.document-section { background: #ebe8de; }
.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.document-grid article { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; min-height: 145px; align-items: start; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.32); }
.document-grid article > span { color: var(--blue); font: 500 10px/1 "DM Mono", monospace; }
.document-grid h3 { margin-bottom: 8px; font-size: 19px; }
.document-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.renewal-section { color: white; background: var(--ink); }
.renewal-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(330px, 1.2fr); gap: 54px; align-items: start; }
.renewal-section .lede { color: #c6c9d2; }
.renewal-rule { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-top: 38px; padding-top: 26px; border-top: 1px solid #484c57; }
.renewal-rule strong { color: var(--lime); font-size: 50px; letter-spacing: -.055em; }
.renewal-rule span { color: #c6c9d2; font-size: 14px; }
.renewal-card { padding: 30px; color: var(--ink); background: white; }
.renewal-card h3 { font-size: 25px; }
.renewal-card ul { padding-left: 21px; }
.renewal-card li { margin: 12px 0; }
.renewal-card p { margin: 24px 0 0; padding-top: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
.caution-section { background: #fffdf7; }
.caution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.caution-card { display: flex; min-height: 210px; flex-direction: column; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.caution-card > span { color: var(--blue); font: 500 10px/1 "DM Mono", monospace; }
.caution-card h3 { margin: 34px 0 10px; font-size: 21px; }
.caution-card p { margin: 0; color: var(--muted); font-size: 14px; }
.caution-card.critical { color: white; background: var(--coral, #ff6a55); }
.caution-card.critical > span, .caution-card.critical p { color: white; }
.help-section { background: var(--lime); }
.help-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .82fr); gap: 48px; align-items: start; }
.help-grid p:not(.kicker) { max-width: 570px; }
.help-card { padding: 24px 28px; background: var(--paper); }
.help-row { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.help-row:first-child { padding-top: 4px; }
.help-row:last-child { padding-bottom: 4px; border-bottom: 0; }
.help-card span { color: var(--blue); font: 500 9px/1.5 "DM Mono", monospace; }
.help-card a { min-width: 0; overflow-wrap: anywhere; font-size: clamp(16px, 1.6vw, 20px); font-weight: 800; line-height: 1.3; text-underline-offset: 4px; }
.student-notice { display: grid; grid-template-columns: 170px 1fr; gap: 20px; margin-bottom: 26px; padding: 20px; color: white; background: var(--ink); }
.student-notice strong { color: var(--lime); font: 500 10px/1.4 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.student-notice p { margin: 0; color: #d5d7de; font-size: 14px; }
.student-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr); gap: 22px; align-items: end; margin-bottom: 26px; padding: 22px; background: var(--blue); }
.student-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.student-tabs button { min-height: 46px; padding: 9px 14px; color: white; border: 1px solid white; border-radius: 99px; background: transparent; cursor: pointer; }
.student-tabs button[aria-selected="true"] { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.student-tabs small { margin-left: 5px; font: 500 9px/1 "DM Mono", monospace; }
.student-search { display: grid; gap: 6px; }
.student-search label { color: var(--lime); font: 500 9px/1.3 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .04em; }
.student-search input { width: 100%; min-height: 48px; padding: 0 14px; color: var(--ink); border: 0; background: white; font: inherit; }
.student-search span { color: #e6eaff; font-size: 11px; }
.student-panel-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 36px 0 18px; }
.student-panel-head span { color: var(--blue); font: 500 10px/1 "DM Mono", monospace; }
.student-panel-head h3 { margin: 8px 0 0; font-size: 28px; }
.student-panel-head p { max-width: 430px; margin: 0; color: var(--muted); font-size: 14px; }
.student-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.student-card { display: grid; grid-template-columns: 40px 1fr; gap: 13px; min-height: 80px; align-items: center; padding: 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.26); }
.student-card:hover { background: white; }
.student-number { color: var(--blue); font: 500 10px/1 "DM Mono", monospace; }
.student-card strong { font-size: 15px; line-height: 1.35; }
.directory-source { margin: 20px 0 0; color: var(--muted); font-size: 12px; }
.directory-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 28px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.directory-summary > div { min-height: 155px; padding: 24px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.directory-summary span { display: block; margin-bottom: 18px; font-size: clamp(34px, 5vw, 52px); font-weight: 800; line-height: 1; letter-spacing: -.055em; }
.directory-summary p { margin: 0; color: var(--muted); font: 500 10px/1.4 "DM Mono", monospace; text-transform: uppercase; }
.student-notice.privacy { margin-top: -25px; color: var(--ink); border: 1px solid var(--line); background: rgba(255,255,255,.42); }
.student-notice.privacy strong { color: var(--blue); }
.student-notice.privacy p { color: var(--muted); }

/* Curated learning resources */
.resources-hero { padding-bottom: 72px; }
.resources-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(310px, .7fr); gap: 54px; align-items: end; }
.resources-hero h1 { max-width: 860px; }
.resume-hero h1 { line-height: 1.08; }
.resource-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); color: white; background: var(--ink); border-top: 6px solid var(--lime); }
.resource-summary > div { min-width: 0; min-height: 176px; padding: 22px 16px; border-right: 1px solid #454954; }
.resource-summary > div:last-child { border-right: 0; }
.resource-summary strong { display: block; margin: 24px 0 9px; font-size: clamp(34px, 4vw, 52px); line-height: .9; letter-spacing: -.06em; }
.resource-summary span { display: block; color: #c8ccd5; font: 500 9px/1.45 "DM Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.resource-guidance { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .7fr); gap: 54px; align-items: end; margin-bottom: 34px; }
.resource-guidance p:last-child { max-width: 520px; margin-bottom: 7px; color: var(--muted); }
.resource-toolbar { margin-bottom: 26px; padding: 22px; color: white; background: var(--blue); }
.resource-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; align-items: center; }
.resource-search label { color: var(--lime); font: 500 9px/1.3 "DM Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.resource-search input { grid-column: 1 / -1; width: 100%; min-height: 52px; padding: 0 16px; color: var(--ink); border: 0; background: white; font: inherit; }
.resource-search span { color: #eef0ff; font: 500 10px/1 "DM Mono", monospace; }
.resource-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.45); }
.resource-filters button { min-height: 38px; padding: 7px 12px; color: white; border: 1px solid rgba(255,255,255,.8); border-radius: 99px; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.resource-filters button:hover, .resource-filters button[aria-pressed="true"] { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.resource-card { display: flex; min-width: 0; min-height: 300px; flex-direction: column; padding: 24px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: rgba(255,255,255,.24); }
.resource-card:hover { background: white; }
.resource-card-top { display: flex; justify-content: space-between; gap: 18px; color: var(--blue); font: 500 9px/1 "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.resource-card h3 { margin: 48px 0 12px; font-size: 25px; line-height: 1.05; letter-spacing: -.045em; }
.resource-card > p { margin-bottom: 28px; color: #4f5360; font-size: 14px; }
.resource-card-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); }
.resource-card-bottom span { color: var(--muted); font: 500 9px/1.35 "DM Mono", monospace; text-transform: uppercase; }
.resource-card-bottom a { color: var(--blue); font-size: 12px; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 4px; white-space: nowrap; }
.resource-empty { grid-column: 1 / -1; min-height: 240px; padding: 48px; text-align: center; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.resource-empty strong { font-size: 24px; }
.resource-empty p { margin: 8px 0 0; color: var(--muted); }
.resource-note { margin: 24px 0 0; padding: 18px 20px; color: #4f5360; border-left: 5px solid var(--coral); background: rgba(255,255,255,.48); font-size: 13px; }

@media (max-width: 900px) {
  .svmcm-hero-grid, .renewal-grid, .help-grid { grid-template-columns: 1fr; gap: 34px; }
  .officer-card { max-width: 560px; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-step { min-height: 255px; }
  .student-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-toolbar { grid-template-columns: 1fr; }
  .resources-hero-grid, .resource-guidance { grid-template-columns: 1fr; gap: 34px; }
  .resource-summary { max-width: 620px; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .svmcm-hero { padding-bottom: 48px; }
  .official-band, .scheme-stats, .rate-grid, .process-grid, .document-grid, .caution-grid, .student-grid { grid-template-columns: 1fr; }
  .official-band { align-items: start; gap: 10px; }
  .scheme-stat { min-height: 0; }
  .rate-card { min-height: 190px; }
  .rate-card strong { margin-top: 48px; }
  .process-step { min-height: 0; }
  .process-step h3 { margin-top: 34px; }
  .document-grid article { min-height: 0; }
  .renewal-rule { grid-template-columns: 1fr; }
  .help-row { grid-template-columns: 1fr; gap: 5px; align-items: start; }
  .student-notice { grid-template-columns: 1fr; }
  .student-toolbar { margin-inline: -12px; padding: 18px 12px; }
  .student-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .student-tabs button { min-width: max-content; }
  .student-panel-head { align-items: flex-start; flex-direction: column; }
  .student-card { min-height: 72px; }
  .directory-summary { grid-template-columns: 1fr; }
  .directory-summary > div { min-height: 120px; }
  .student-notice.privacy { margin-top: -25px; }
  .resources-hero { padding-bottom: 50px; }
  .resource-summary { grid-template-columns: 1fr; }
  .resource-summary > div { min-height: 112px; border-right: 0; border-bottom: 1px solid #454954; }
  .resource-summary > div:last-child { border-bottom: 0; }
  .resource-summary strong { margin-top: 6px; }
  .resource-toolbar { width: calc(100% + 24px); margin-inline: -12px; padding: 18px 12px; }
  .resource-filters { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: 5px; -webkit-overflow-scrolling: touch; }
  .resource-filters button { flex: 0 0 auto; min-width: max-content; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 250px; }
  .resource-card h3 { margin-top: 34px; }
}

/* Final responsive safeguards shared by every primary page */
@media (max-width: 900px) {
  .nav { position: relative; }
  .nav-links { max-height: calc(100vh - 88px); overflow-y: auto; }
  .section-head { align-items: flex-start; }
  .hero-grid, .svmcm-hero-grid, .resume-hero-grid { align-items: start; }
  .resume-hero-grid, .resume-two-column { grid-template-columns: 1fr; gap: 34px; }
  .resume-status { max-width: 570px; }
  .resume-contact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resume-contact-strip-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .resume-contact-strip > div:nth-child(2) { border-right: 0; }
  .resume-contact-strip-compact > div:nth-child(2) { border-right: 1px solid var(--line); }
  .resume-contact-strip-compact > div:nth-child(-n+2) { border-bottom: 0; }
  .resume-contact-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: calc(100% - 24px); }
  .nav { min-height: 66px; }
  .brand { min-width: 0; gap: 10px; }
  .brand-mark { flex: 0 0 auto; }
  .brand-copy { min-width: 0; }
  .brand-copy strong { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  .nav-toggle { flex: 0 0 42px; }
  .hero h1, .page-hero h1 { max-width: 100%; font-size: clamp(40px, 13vw, 58px); line-height: 1.1; letter-spacing: -.045em; }
  h2 { max-width: 100%; font-size: clamp(32px, 11vw, 46px); line-height: 1.02; letter-spacing: -.045em; }
  .lede { font-size: 17px; }
  .button-row { display: grid; width: 100%; grid-template-columns: 1fr; }
  .button-row .button { width: 100%; white-space: normal; }
  .section-head > * { max-width: 100%; }
  .section-head .button { width: 100%; margin-top: 16px; }
  .source-note { font-size: 13px; }
  .course-block, .document-grid article, .caution-card, .process-step { min-width: 0; }
  .view-tabs, .day-tabs, .semester-tabs, .student-tabs { max-width: 100%; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: 5px; -webkit-overflow-scrolling: touch; }
  .view-tabs button, .day-tabs button, .semester-tabs button, .student-tabs button { flex: 0 0 auto; min-width: max-content; }
  .table-shell { margin-inline: 0; }
  .routine-filterbar, .selector-bar, .student-toolbar { width: calc(100% + 24px); margin-inline: -12px; }
  .html-routine-grid, .student-grid, .document-grid, .caution-grid, .process-grid, .rate-grid, .scheme-stats { min-width: 0; }
  .help-card a { word-break: break-word; }
  .resume-hero { padding-bottom: 54px; }
  .resume-status { max-width: 100%; box-shadow: none; }
  .resume-contact-strip { grid-template-columns: 1fr; }
  .resume-contact-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .resume-contact-strip > div:last-child { border-bottom: 0; }
  .resume-timeline-item { grid-template-columns: 1fr; gap: 10px; }
  .credential-list article { grid-template-columns: 58px minmax(0, 1fr); gap: 14px; }
  .service-card h3 { margin-top: 24px; }
  .footer-grid { gap: 24px; }
  .footer-links { gap: 12px 16px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 118px; border-right: 0 !important; border-bottom: 1px solid var(--ink) !important; }
  .stat:last-child { border-bottom: 0 !important; }
  .officer-card, .renewal-card, .help-card { padding: 22px; }
  .directory-summary > div { min-height: 104px; }
  .student-card { grid-template-columns: 34px minmax(0, 1fr); padding: 14px 12px; }
}
