/* GENERATED by tools/v55/build-pages.mjs from css/theme.css (tokens to footer). Edit theme.css, then run the tool. */
*, *::before, *::after { box-sizing: border-box; }
img, video, svg { max-width: 100%; }
[hidden] { display: none !important; }
:root {
  --navy: #13315C; --navy-dk: #0B2545; --navy-2: #1C4478;
  --orange: #C2570C; --orange-dk: #A3480A; --orange-lt: #FDF0E6;
  --bg: #FFFFFF; --tint: #F7F8FA; --text: #1F2933; --text-2: #5B6675; --rule: #E6E9EE; --rule-2: #C9D1DB;
  --ok: #1E7B45; --ok-lt: #E8F5EC; --link: #1D5FA8;
  --test: #7A5A00; --test-lt: #FFF6DB;
  --radius: 12px;
  --font: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --mono: "Source Code Pro", ui-monospace, Menlo, monospace;
  /* the type scale (docs/redesign/reviews/webdesign.md #5, enlarged in step A0): every size on the site pages is one
     of these tokens. Phone values here; tablet from 640px, desktop from 1024px and 1920px in the media rules below.
     Source Sans 3 has a small x-height, so the scale sits about one step above the usual course-site sizes.
     Type polish (Source Sans 3 at 18px, option A): xs 13 (nothing smaller), label 14 (uppercase kickers and table
     heads), sm 15 (meta lines, ticks, captions, notes), btn 17, base = running text, lg = lead, card = card titles,
     xl = section headings, 2xl = page titles, hero = the home heading. */
  --fs-xs: 13px; --fs-label: 14px; --fs-sm: 15px; --fs-btn: 17px; --fs-base: 17px; --fs-lg: 19px; --fs-card: 21px; --fs-xl: 23px; --fs-2xl: 29px; --fs-hero: 35px;
  /* app.css tokens mapped onto the theme, so pages that are not restyled yet still match it */
  --paper: var(--tint); --grid: var(--rule); --ink: var(--text); --ink-soft: var(--text-2);
  --line-soft: var(--rule); --line: var(--rule-2);
  --font-head: var(--font); --font-body: var(--font);
  color-scheme: light;
}

@media (min-width: 640px) { :root { --fs-lg: 20px; --fs-xl: 24px; --fs-2xl: 32px; --fs-hero: 40px; } }
@media (min-width: 1024px) { :root { --fs-base: 18px; --fs-lg: 21px; --fs-card: 23px; --fs-xl: 26px; --fs-2xl: 36px; --fs-hero: 47px; } }
@media (min-width: 1920px) { :root { --fs-base: 19px; } }

/* ---------- base ---------- */
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--fs-base); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { line-height: 1.2; text-wrap: balance; }
:where(main) :where(h1, h2, h3, h4) { color: var(--navy); }
h1, h2, h3 { letter-spacing: -.01em; }
h1 { font-size: var(--fs-2xl); } h2 { font-size: var(--fs-xl); } h3 { font-size: var(--fs-card); line-height: 1.25; } h4 { font-size: var(--fs-base); }
a { color: var(--link); }
a:hover { color: var(--navy); }
:not(pre) > code { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
/* ---------- layout: one fluid container (docs/redesign step 7a) ----------
   --page-max is the content width; --page-wide for the catalogue, the Student portal and admin; --read-max holds
   running text to a comfortable line (70ch, step A: ch grows with the A0 type; at 18px 760px is the cap).
   Phones and tablets keep their old layout: --read-max only applies from 1024px. */
:root { --gutter: 16px; --page-max: 1360px; --page-wide: 1600px; --read-max: none; }
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --read-max: min(760px, 70ch); } }
@media (min-width: 1440px) { :root { --gutter: 40px; } }
.wrap {
  box-sizing: border-box; width: 100%; max-width: calc(var(--page-max) + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
/* wide pages: the header and footer follow, so their content lines up with the page */
body.sim-catalog, body:has(main.v3portal), body:has(main.v3admin) { --page-max: var(--page-wide); }
.meta { font-size: var(--fs-sm); color: var(--text-2); }
html { scroll-padding-top: calc(var(--top-h, 65px) + 8px); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* skip link: the first element on every page */
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: #FFFFFF; color: var(--navy); padding: 8px 14px; border: 2px solid var(--navy); font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }

/* ---------- buttons: navy primary, white outlined secondary ---------- */
.btn, .btn-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px;
  border-radius: 8px; font: inherit; font-family: var(--font); font-weight: 600; font-size: var(--fs-btn); line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  background: var(--navy); color: #FFFFFF; border: 1px solid var(--navy); box-shadow: none; transform: none;
}
.btn:hover, .btn-main:hover { background: var(--navy-dk); border-color: var(--navy-dk); color: #FFFFFF; box-shadow: none; transform: none; }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-white, .btn-sec, .btn-google { background: #FFFFFF; color: var(--navy); border: 1px solid var(--rule-2); box-shadow: none; }
.btn-white:hover, .btn-sec:hover, .btn-google:hover { background: var(--tint); color: var(--navy); border-color: #9AA5B1; box-shadow: none; }
.btn-white:active { box-shadow: none; }
.btn-small { min-height: 36px; padding: 0 14px; font-size: var(--fs-btn); }
.btn-ghost { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, .7); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #FFFFFF; border-color: #FFFFFF; box-shadow: none; }
.btn-danger { background: #FFFFFF; color: #B42318; border-color: #E4B4AE; }
.btn-danger:hover { background: #FDF1F0; color: #B42318; border-color: #B42318; }
.btn[disabled], .btn[disabled]:hover { background: #E4E8ED; color: #5B6675; border-color: #E4E8ED; box-shadow: none; cursor: not-allowed; transform: none; }
.arrow { font-weight: 600; text-decoration: none; color: var(--link); white-space: nowrap; }
.arrow::after { content: " ›"; }
.arrow:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }

/* ---------- header: white, thin rule, quiet links ---------- */
.top { position: sticky; top: 0; z-index: 50; background: #FFFFFF; border-bottom: 1px solid var(--rule); backdrop-filter: none; }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; }
.top :focus-visible { outline-color: var(--navy); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; margin-right: 10px; text-decoration: none; color: var(--navy); font-family: var(--font); letter-spacing: 0; }
.brand img { width: 34px; height: 34px; border-radius: 8px; display: block; }
.brand span { display: block; line-height: 1.05; }
.brand b { display: block; font-size: var(--fs-lg); font-weight: 700; letter-spacing: .01em; }
.brand small { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--text-2); line-height: 1.2; }
.brand:hover { color: var(--navy); }
#nav { display: flex; align-items: center; flex: 1; gap: 4px; min-width: 0; }
#nav > ul { display: flex; list-style: none; margin: 0; padding: 0; }
#nav > ul > li > a {
  display: flex; align-items: center; min-height: 64px; padding: 0 11px; white-space: nowrap; position: relative;
  color: var(--text-2); font-weight: 500; font-size: var(--fs-base); text-decoration: none;
}
#nav > ul > li > a:hover { color: var(--navy); }
#nav > ul > li > a[aria-current="page"] { color: var(--navy); }
#nav > ul > li > a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 0; height: 2px; background: var(--navy); }
#nav .nav-reg { display: none; }
.search { margin-left: auto; display: flex; align-items: center; width: 200px; border: 1px solid var(--rule); border-radius: 8px; background: var(--tint); overflow: hidden; }
.search input { flex: 1; min-width: 0; min-height: 38px; border: 0; padding: 0 10px; background: transparent; font: inherit; font-size: var(--fs-sm); color: var(--text); }
.search button { display: flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; border: 0; background: transparent; color: var(--navy); cursor: pointer; }
#who { flex: none; display: flex; align-items: center; gap: 14px; margin-left: 8px; }
#who .login { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--navy); font-weight: 600; font-size: var(--fs-btn); text-decoration: none; }
#who .login:hover { text-decoration: underline; }
#who .btn { min-height: 40px; font-size: var(--fs-btn); padding: 0 16px; }
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-weight: 600; font-size: var(--fs-sm); color: var(--navy); cursor: pointer; }
.acct-btn i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-sm); flex: none; }
.acct-btn span { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 240px; background: #FFFFFF; border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 16px 32px -18px rgba(11, 37, 69, .45); padding: 8px 0; }
.acct-menu[hidden] { display: none; }
.acct-menu p { margin: 0; padding: 6px 16px 10px; border-bottom: 1px solid var(--rule); font-size: var(--fs-sm); color: var(--text-2); line-height: 1.35; overflow-wrap: anywhere; }
.acct-menu p b { display: block; color: var(--text); font-size: var(--fs-sm); }
.acct-menu a, .acct-menu button { display: flex; align-items: center; width: 100%; min-height: 40px; padding: 0 16px; border: 0; background: none; font: inherit; font-size: var(--fs-sm); color: var(--text); text-align: left; text-decoration: none; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--tint); color: var(--navy); }
.burger { display: none; margin-left: auto; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--rule); border-radius: 8px; background: none; color: var(--navy); cursor: pointer; }
@media (max-width: 1280px) { .search { width: 170px; } .brand small { display: none; } }
@media (max-width: 1120px) and (min-width: 961px) { .search { display: none; } }
@media (max-width: 960px) {
  .burger { display: inline-flex; }
  #who { margin-left: auto; }
  .burger { margin-left: 4px; }
  #nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: #FFFFFF; border-bottom: 1px solid var(--rule); box-shadow: 0 16px 24px -20px rgba(11, 37, 69, .4);
    padding: 4px max(16px, env(safe-area-inset-left, 0px)) 16px; max-height: calc(100vh - 64px); overflow-y: auto; }
  #nav.open { display: flex; }
  #nav > ul { flex-direction: column; }
  #nav > ul > li > a { min-height: 48px; padding: 0 4px; border-bottom: 1px solid var(--rule); }
  #nav > ul > li > a[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  #nav > ul > li > a[aria-current="page"] { padding-left: 12px; }
  .search { width: 100%; margin: 12px 0 0; display: flex; }
}
@media (max-width: 480px) {
  .top .wrap { gap: 8px; }
  .brand { margin-right: 0; }
  #who { gap: 8px; margin-left: auto; }
  #who .btn { display: none; }
  #nav .nav-reg { display: list-item; }
  .acct-btn span { display: none; }
}

/* ---------- footer: light, four columns ---------- */
.site-foot { background: var(--tint); color: var(--text-2); border-top: 1px solid var(--rule); font-size: var(--fs-sm); margin-top: 0; }
.site-foot .wrap { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 24px 32px; padding-top: 56px; padding-bottom: 28px; align-items: start; }
.site-foot .fh { color: var(--text); font-size: var(--fs-sm); font-weight: 700; margin: 0 0 8px; letter-spacing: 0; font-family: var(--font); }
.site-foot p { margin: 0 0 10px; font-size: var(--fs-sm); line-height: 1.55; }
.site-foot a { display: block; color: var(--text-2); text-decoration: none; padding: 3px 0; }
.site-foot a:hover { color: var(--navy); text-decoration: underline; }
.site-foot .chan { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-weight: 600; color: var(--navy); }
.site-foot .chan img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.site-foot .bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 12px; font-size: var(--fs-sm); }
@media (max-width: 960px) {
  .site-foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 40px; }
  .site-foot .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .site-foot a { padding: 9px 0; } }
