:root {
  color-scheme: dark;
  --canvas: #0a1826;
  --panel: #112637;
  --lifted: #152e42;
  --line: #2d4b60;
  --text: #eff6f5;
  --muted: #bbced9;
  --accent: #76e2c3;
  --accent-ink: #102c2a;
  --gold: #f0ce92;
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--text); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 5.3vw, 4.65rem); letter-spacing: -.055em; font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.035em; }
h3 { font-size: 1.25rem; letter-spacing: -.02em; }
a { color: var(--accent); text-underline-offset: .19em; }
a:hover { color: #a8f7e0; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.site-width { width: min(1240px, calc(100% - 72px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; inset: .75rem auto auto .75rem; transform: translateY(-180%); padding: .6rem 1rem; background: var(--accent); color: var(--accent-ink); }
.skip-link:focus { transform: none; color: var(--accent-ink); }

.site-header { background: #0b1e2e; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1.75rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; color: var(--text); text-decoration: none; line-height: 1.05; }
.brand strong { display: block; font-size: 1.2rem; letter-spacing: -.04em; }
.brand strong span { color: var(--accent); }
.brand small { display: block; margin-top: .22rem; color: var(--muted); font-size: .78rem; font-weight: 600; }
.brand-mark { display: grid; width: 39px; aspect-ratio: 1; place-items: center; border: 1px solid #42726f; border-radius: 12px; background: #183b47; color: var(--accent); font-size: 1.45rem; }
.header-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.85rem; }
.header-nav a, .footer-inner a { font-size: .93rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.header-nav a:hover, .header-nav a[aria-current], .footer-inner a:hover { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 46px; padding: .65rem 1.07rem; border: 1px solid transparent; border-radius: .65rem; font-size: .95rem; font-weight: 720; line-height: 1.25; text-align: center; text-decoration: none; }
.button-primary { color: var(--accent-ink); background: var(--accent); }
.button-primary:hover { color: var(--accent-ink); background: #a8f7e0; }
.button-secondary { color: var(--text); background: #172f41; border-color: #3e5e73; }
.button-secondary:hover { color: var(--text); background: #234257; }
.header-signin { min-height: 40px; min-width: 83px; }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); margin-top: 2.25rem; padding: clamp(2.1rem, 4vw, 3.6rem); border: 1px solid var(--line); border-radius: 1.6rem; background: radial-gradient(ellipse at 85% 0, #194655 0, #112b3d 45%, #112334 78%); }
.guide-type { color: var(--accent); font-size: .78rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.hero h1 { margin-block: .75rem 1.35rem; }
.hero h1, .article-hero h1 { text-wrap: initial; }
.lede { color: var(--muted); font-size: clamp(1.06rem, 1.62vw, 1.24rem); max-width: 54ch; }
.action-row { display: flex; align-items: stretch; flex-wrap: wrap; gap: .7rem; margin-top: 1.65rem; }
.hero-sample { min-width: 0; padding: .8rem; border: 1px solid #527280; border-radius: 1.05rem; background: #0b2231; box-shadow: 0 16px 40px #06111c80; }
.hero-sample .guide-figure { margin: 0; }
.hero-sample .screenshot img { width: 100%; height: auto; }
.hero-sample figcaption { margin: .75rem .3rem 0; color: var(--text); }
.college-sample { display: inline-block; margin: .45rem .3rem .15rem; font-size: .9rem; }

.guide-list { padding-block: 2.65rem 3.6rem; }
.section-head { display: flex; justify-content: space-between; gap: .75rem 1.4rem; align-items: baseline; flex-wrap: wrap; margin-bottom: 1.15rem; }
.section-head > a { font-size: .95rem; font-weight: 600; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.guide-card { display: grid; grid-template-rows: 144px 1fr; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; text-decoration: none; }
.guide-card:hover { color: var(--text); background: var(--lifted); border-color: #648b9a; }
.guide-card > img { width: 100%; height: 100%; object-fit: cover; object-position: top; background: #213c4e; border-bottom: 1px solid var(--line); }
.guide-card > div { position: relative; padding: 1.15rem 2.4rem 1.2rem 1.15rem; }
.guide-card h3 { margin: .35rem 0 .55rem; text-wrap: initial; }
.guide-card p:not(.guide-type) { color: var(--muted); font-size: .92rem; }
.card-arrow { position: absolute; top: 1.12rem; right: 1rem; color: var(--accent); }
.worked-college { margin-bottom: 3rem; padding: clamp(1.3rem, 4vw, 2.5rem); background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; }
.worked-college h2 { margin-top: .35rem; }
.worked-college .lede { max-width: 70ch; }
.college-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.college-gallery img { height: clamp(155px, 19vw, 245px); object-fit: cover; object-position: top left; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.7rem 2rem; background: #15363e; border: 1px solid #355762; border-radius: 1rem; margin-bottom: 3.6rem; }
.callout h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.callout p { color: var(--muted); margin-top: .45rem; }
.callout .button { flex: none; }

.crumb { margin-top: 1.5rem; color: var(--muted); font-size: .9rem; }
.crumb ol { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.crumb li+li::before { content: "/"; margin-right: .45rem; color: #8aacbc; }
.article-hero { padding: 2rem 0 2.2rem; border-bottom: 1px solid var(--line); }
.article-hero h1 { font-size: clamp(2.45rem, 5.3vw, 4.2rem); max-width: 22ch; margin: .45rem 0 .85rem; }
.article-hero .lede { max-width: 68ch; }
.article-grid { display: grid; grid-template-columns: minmax(0, 272px) minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3rem); padding: 2rem 0 3.5rem; }
.contents { position: sticky; top: 1.25rem; padding: 1.25rem; background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; }
.contents h2, .related h2 { font-size: 1.14rem; letter-spacing: -.01em; }
.contents ol { margin: .75rem 0 1.2rem; padding-inline-start: 1.25rem; color: var(--muted); }
.contents li+li { margin-top: .55rem; }
.contents ol a { color: var(--text); font-size: .94rem; }
.contents ol a:hover { color: var(--accent); }
.contents .button { width: 100%; }
.guide-article { min-width: 0; }
.guide-article section { scroll-margin-top: 1rem; }
.guide-article section+section { margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.guide-article h2, .guide-article h3 { margin-bottom: .65rem; text-wrap: initial; }
.guide-article h3 { margin-top: 1.2rem; }
.guide-article p, .guide-article ol, .guide-article ul, .guide-article table, .guide-article dl { margin: .85rem 0; color: var(--muted); }
.guide-article li+li { margin-top: .55rem; }
.guide-article ol, .guide-article ul { padding-inline-start: 1.45rem; }
.guide-article b { color: var(--text); }
.guide-article li::marker { color: var(--accent); font-weight: 700; }
.guide-article code { color: var(--gold); background: var(--panel); border-radius: .2rem; padding: .08rem .24rem; overflow-wrap: anywhere; }
.guide-article table { border-collapse: collapse; border: 1px solid var(--line); width: 100%; font-size: .95rem; }
.guide-article th, .guide-article td { padding: .7rem .85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.guide-article th, .guide-article td:first-child { color: var(--text); font-weight: 650; }
.guide-article th { background: var(--lifted); }
.guide-article td:first-child { width: 28%; }
.guide-article .document-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); border-top: 1px solid var(--line); }
.document-list dt, .document-list dd { margin: 0; padding: .65rem .75rem; border-bottom: 1px solid var(--line); }
.document-list dt { color: var(--text); font-weight: 700; }
.resource-list p { margin: .15rem 0 .7rem; }
.guide-figure { margin: 1.2rem 0 1rem; min-width: 0; }
.screenshot { display: block; overflow: hidden; border-radius: .65rem; border: 1px solid #4b6879; background: #1b3040; }
.screenshot:hover { border-color: var(--accent); }
.guide-figure img { width: 100%; }
.guide-figure figcaption { margin-top: .5rem; color: var(--muted); font-size: .86rem; }
.figure-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.related { margin-top: 2.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); }
.related ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1.1rem; margin: .7rem 0 0; padding: 0; list-style: none; }
.related a { display: inline-block; }
.site-footer { border-top: 1px solid var(--line); background: #0b1e2e; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; padding-block: 1.4rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .55rem 1.2rem; }

@media (max-width: 970px) {
  .site-width { width: calc(100% - 48px); }
  .hero { gap: 1.6rem; padding: 2rem; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: minmax(0, 215px) minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .site-width { width: calc(100% - 32px); }
  .header-inner { min-height: 0; padding-block: .8rem; flex-wrap: wrap; gap: .65rem; }
  .header-nav { order: 1; width: 100%; justify-content: flex-start; gap: .35rem 1rem; padding-top: .6rem; border-top: 1px solid var(--line); }
  .header-signin { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding: 1.4rem; margin-top: 1rem; border-radius: 1rem; }
  .hero h1 { margin-block: .5rem .8rem; }
  .guide-list { padding-block: 2.3rem; }
  .guide-card { grid-template-rows: 104px 1fr; }
  .guide-card > div { padding: .8rem; }
  .card-arrow { display: none; }
  .callout { flex-direction: column; align-items: flex-start; padding: 1.1rem; margin-bottom: 2.25rem; }
  .article-grid, .figure-pair { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
  .college-gallery { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .college-gallery img { height: auto; max-height: 315px; object-fit: contain; }
  .figure-pair { gap: 0; }
  .article-hero { padding: 1.3rem 0 1.5rem; }
  .article-grid { padding-top: 1.15rem; }
  .contents { position: static; }
  .guide-article td, .guide-article th { padding: .55rem .52rem; }
}
@media (max-width: 420px) {
  .guide-grid, .related ul { grid-template-columns: minmax(0, 1fr); }
  .guide-card { grid-template-rows: 122px 1fr; }
  .action-row .button { flex-grow: 1; }
}
