:root {
  color-scheme: light; font-family: "Aptos", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: #142441; background: #f6f8fc;
  --navy: #0a1940; --blue: #144dbb; --muted: #4d5d77; --line: #dbe3f0; --section-offset: 5rem;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
a { color: inherit; }
a:focus-visible, video:focus-visible { outline: 3px solid #236fec; outline-offset: 4px; }
img { display: block; max-width: 100%; }
figure, h1, h2, p { margin: 0; }
.wrap { width: min(100% - 4rem, 73rem); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: .7rem 1rem; background: white; border: 2px solid var(--blue); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.masthead { background: #fff; }
.masthead-inner { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { width: clamp(12.5rem, 26vw, 17.5rem); height: auto; }
.edition { color: var(--muted); font-size: .9rem; font-weight: 650; }
.edition span { color: #7e8eaa; margin-inline: .37rem; }
.hero {
  color: white; background: #081839;
  background-image: linear-gradient(90deg, #07142f 5%, #091940 45%, #101f50a3 100%), url("assets/course-background.webp");
  background-position: center, right 47%; background-size: cover, min(66rem, 90vw) auto;
  background-repeat: no-repeat; border-bottom: 1px solid #2c4481;
}
.hero-inner { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: clamp(2.25rem, 6vw, 5.5rem); min-height: 29rem; padding-block: clamp(2.75rem, 6vw, 4.75rem); }
.eyebrow { color: #a9d7ff; font-size: .86rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 1rem; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 5.3vw, 4.95rem); line-height: .99; letter-spacing: -.055em; font-weight: 760; }
.intro { max-width: 31rem; margin-top: 1.35rem; color: #dce6fc; font-size: 1.125rem; line-height: 1.6; }
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; padding: .68rem 1.22rem; border-radius: .62rem; font-weight: 730; text-decoration: none; }
.button-primary { margin-top: 1.7rem; background: #a8d5ff; color: #0a2453; }
.button-primary:hover { background: #d3eaff; }
.button-primary:focus-visible { outline-color: #fff; }
.hero-visual { padding: .55rem; border: 1px solid #7492d258; border-radius: 1.05rem; background: #a2b7f21a; box-shadow: 0 1.2rem 3rem #02091665; }
.hero-image { border-radius: .65rem; overflow: hidden; background: #071b42; }
.hero-image img { width: 100%; height: auto; aspect-ratio: 1.68; object-fit: cover; object-position: center top; }
.hero-visual figcaption { display: flex; align-items: center; gap: .6rem; padding: .5rem .5rem .12rem; color: #e5edff; font-size: .88rem; }
.caption-dot { width: .48rem; height: .48rem; border-radius: 50%; background: #a8d5ff; }
.guide-nav { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; gap: clamp(.25rem, 2vw, 1.45rem); }
.nav-inner a { display: inline-flex; align-items: center; justify-content: center; min-height: 3.65rem; padding: .65rem .85rem .52rem; border-bottom: .2rem solid transparent; color: #41516f; font-size: .95rem; font-weight: 650; text-align: center; text-decoration: none; }
.nav-inner a:hover { color: var(--blue); background-color: #f4f7fe; }
.nav-inner a[aria-current="location"] { color: #1145a4; border-color: #2c65d1; }
.content { padding-bottom: clamp(3rem, 6vw, 5rem); }
.chapter, .guidelines { scroll-margin-top: var(--section-offset); }
.chapter { display: grid; grid-template-columns: 1fr 1.06fr; align-items: start; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.8rem, 5.6vw, 4.65rem); border-bottom: 1px solid var(--line); }
h2 { color: var(--navy); font-size: clamp(1.85rem, 3.65vw, 3.15rem); letter-spacing: -.042em; line-height: 1.07; }
.chapter-intro { color: var(--muted); font-size: 1.07rem; margin-top: .75rem; }
.steps { display: grid; gap: .92rem; padding: 0; margin: 1.55rem 0 0; list-style: none; counter-reset: step; }
.steps li { position: relative; counter-increment: step; min-height: 1.8rem; padding-left: 2.6rem; color: #3c4b65; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: .02rem; width: 1.68rem; height: 1.68rem; display: grid; place-items: center; border-radius: .52rem; background: #e5edfd; color: #164aab; font-size: .88rem; font-weight: 800; }
.steps strong, .issue-list strong { color: #17284b; }
.demo { border: 1px solid #d5dfef; border-radius: .9rem; overflow: hidden; background: #fff; box-shadow: 0 .65rem 1.9rem #1026530d; }
.demo figcaption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; column-gap: .8rem; padding: .7rem 1rem; }
.demo figcaption strong { color: #253657; }
.demo figcaption span { color: #51617a; font-size: .875rem; }
.demo video, .demo picture img { display: block; aspect-ratio: 1218 / 898; width: 100%; height: auto; background: #0a1730; }
code { color: #174899; background: #e8eefb; font-size: .91em; padding: .13rem .27rem; border-radius: .26rem; }
.example { margin-top: 1.45rem; padding: .85rem 1rem; border-left: .2rem solid #3c75d9; border-radius: 0 .6rem .6rem 0; background: #e8effd; }
.example span { color: #19479b; font-size: .875rem; font-weight: 750; }
.example p { margin-top: .22rem; }
.guidelines { padding-top: clamp(2.8rem, 5.6vw, 4.65rem); }
.issue-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.issue-list li { padding: 1.1rem 1.25rem; background: white; border: 1px solid var(--line); border-top: .2rem solid #527bd0; border-radius: .65rem; }
.issue-list strong { font-size: 1.12rem; }
.issue-list p { margin-top: .4rem; color: #44546e; }
.guideline-note { color: #364864; margin-top: 1.3rem; }
.footer { background: #0c1b3f; color: #dce6fc; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem 1.5rem; padding-block: 1.1rem; font-size: .9rem; }
.footer a { color: #c6dfff; text-underline-offset: .2em; }
@media (max-width: 54rem) {
  .wrap { width: min(100% - 3rem, 73rem); }
  .hero-inner, .chapter { gap: 1.8rem; }
}
@media (max-width: 42rem) {
  :root { --section-offset: 6.9rem; }
  .wrap { width: min(100% - 2rem, 73rem); }
  .masthead-inner { min-height: 3.9rem; }
  .brand { width: min(53vw, 14rem); }
  .edition { font-size: .82rem; line-height: 1.3; text-align: right; }
  .edition span { display: none; }
  .hero { background-size: cover, auto 100%; }
  .hero-inner, .chapter { grid-template-columns: 1fr; }
  .hero-inner { gap: 1.6rem; padding-block: 2.4rem 1.65rem; }
  .hero-visual { max-width: 28rem; }
  .nav-inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 .45rem; }
  .nav-inner a { min-height: 2.8rem; justify-content: flex-start; text-align: left; font-size: .89rem; padding-inline: .25rem; }
  .issue-list { grid-template-columns: 1fr; }
}
