@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;650;700;750;800&family=Roboto:wght@400;450;500;600;700&display=swap');
:root {
  --paper:#fff;
  --ink:#242a32;
  --body:#38434e;
  --muted:#626d78;
  --blue:#163f73;
  --green:#245b49;
  --red:#813d3d;
  --line:#dce2e8;
  --tint:#f4f7fa;
  --radius:12px;
  --heading:'Montserrat',Arial,sans-serif;
  --text:'Roboto',Arial,sans-serif
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:100px
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:16px/1.65 var(--text);
  -webkit-font-smoothing:antialiased
}
a {
  color:inherit;
  text-decoration:none
}
button,input {
  font:inherit
}
button,a {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
a:focus-visible,button:focus-visible {
  outline:3px solid var(--blue);
  outline-offset:5px
}
svg {
  display:block
}
h1,h2,h3,p {
  margin:0
}
h1,h2,h3 {
  font-family:var(--heading);
  line-height:1.18;
  letter-spacing:-.045em
}
h1 {
  font-size:clamp(42px,5.2vw,70px);
  font-weight:750
}
h2 {
  font-size:clamp(28px,3vw,38px);
  font-weight:700
}
h3 {
  font-size:21px;
  font-weight:650;
  letter-spacing:-.03em
}
p {
  color:var(--body)
}
.wrap {
  width:min(1160px,calc(100% - 80px));
  margin:auto
}
.skip {
  position:fixed;
  left:20px;
  top:-80px;
  background:var(--blue);
  color:white;
  padding:12px;
  z-index:30
}
.skip:focus {
  top:10px
}
.site-header {
  height:94px;
  border-bottom:1px solid var(--line);
  background:#fff;
  position:relative;
  z-index:10
}
.header-inner {
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between
}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  font:700 20px var(--heading);
  letter-spacing:-.7px
}
.brand-mark {
  width:35px;
  height:35px;
  background:var(--blue);
  color:#fff;
  display:grid;
  place-items:center;
  border-radius:5px;
  font-size:15px;
  letter-spacing:-1px
}
.brand-dot {
  color:var(--blue)
}
.nav {
  display:flex;
  align-items:center;
  gap:32px;
  font-size:14px;
  font-weight:500
}
.nav a {
  position:relative;
  padding:10px 0;
  color:#535e69
}
.nav a:hover,.nav a[aria-current=page] {
  color:var(--blue)
}
.nav a[aria-current=page]:after {
  content:'';
  position:absolute;
  bottom:1px;
  left:0;
  right:0;
  height:2px;
  background:var(--blue)
}
.nav .nav-github {
  border-left:1px solid var(--line);
  padding-left:27px;
  display:flex;
  gap:8px;
  align-items:center;
  color:var(--ink)
}
.arrow {
  font-size:20px;
  line-height:1
}
.menu-toggle {
  display:none;
  border:1px solid var(--line);
  border-radius:5px;
  background:white;
  padding:6px 12px;
  color:var(--blue)
}
.eyebrow {
  font-size:11px;
  font-weight:700;
  letter-spacing:1.65px;
  text-transform:uppercase;
  color:var(--blue);
  display:flex;
  align-items:center;
  gap:10px
}
.eyebrow:before {
  content:'';
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--blue)
}
.hero {
  padding:78px 0 62px;
  display:grid;
  grid-template-columns:1.12fr 1fr;
  align-items:center;
  gap:62px
}
.hero h1 {
  margin:21px 0 22px
}
.blue {
  color:var(--blue)
}
.hero .intro {
  font-size:18px;
  line-height:1.8;
  max-width:490px
}
.hero .name-line {
  margin-top:22px;
  color:var(--muted);
  font-size:13px
}
.name-line strong {
  color:var(--ink);
  font-weight:600
}
.actions {
  display:flex;
  align-items:center;
  gap:24px;
  margin-top:30px;
  flex-wrap:wrap
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:25px;
  border:1px solid var(--blue);
  padding:12px 20px;
  background:var(--blue);
  color:white;
  border-radius:5px;
  font-size:13px;
  font-weight:600;
  min-height:46px;
  transition:background .18s,transform .18s
}
.button:hover {
  background:#0f315b;
  transform:translateY(-2px)
}
.button.secondary {
  background:white;
  color:var(--blue)
}
.text-link {
  display:inline-flex;
  align-items:center;
  gap:13px;
  font-size:13px;
  font-weight:600;
  color:var(--blue)
}
.text-link:hover {
  text-decoration:underline;
  text-underline-offset:5px
}
.hero-art {
  border:1px solid var(--line);
  border-radius:var(--radius);
  position:relative;
  margin-top:12px;
  background:white;
  overflow:hidden
}
.art-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding:15px 20px;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:1.4px;
  color:var(--muted)
}
.live-label {
  display:flex;
  gap:7px;
  align-items:center;
  color:var(--green)
}
.live-label:before {
  content:'';
  width:5px;
  height:5px;
  background:var(--green);
  border-radius:50%
}
.hero-art svg {
  width:100%;
  height:auto
}
.art-bottom {
  padding:13px 20px;
  border-top:1px solid var(--line);
  display:flex;
  gap:9px;
  align-items:center;
  font-size:11px;
  color:var(--muted)
}
.art-bottom .step {
  margin-left:auto;
  border:1px solid var(--line);
  background:white;
  border-radius:4px;
  color:var(--blue);
  padding:4px 10px;
  font-size:11px
}
.art-bottom .step:hover {
  border-color:var(--blue)
}
.art-bottom .step:disabled {
  cursor:default;
  opacity:.5
}
.hero-tree .node circle {
  fill:#fff;
  stroke:#a3b1c1;
  stroke-width:1.4;
  transition:fill .25s,stroke .25s
}
.hero-tree .node text {
  font-family:var(--text);
  font-size:15px;
  fill:var(--ink);
  text-anchor:middle;
  dominant-baseline:middle
}
.hero-tree .node.active circle {
  fill:var(--blue);
  stroke:var(--blue)
}
.hero-tree .node.active text {
  fill:white
}
.hero-tree .node.visited circle {
  fill:#eff5f1;
  stroke:var(--green)
}
.hero-tree .node.visited text {
  fill:var(--green)
}
.hero-tree .edge {
  stroke:#b4bfca;
  stroke-width:1.4;
  fill:none
}
.hero-tree .diagram-note {
  font-size:10px;
  fill:var(--muted);
  letter-spacing:1px
}
.hero-tree .diagram-small {
  font-size:11px;
  fill:var(--muted)
}
.hero-tree .caption {
  font-size:12px;
  fill:var(--blue);
  font-family:var(--text)
}
.pathways {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:23px 0
}
.pathway {
  display:flex;
  align-items:center;
  gap:15px;
  padding:0 26px;
  border-right:1px solid var(--line)
}
.pathway:first-child {
  padding-left:0
}
.pathway:last-child {
  border:0
}
.pathway-icon {
  width:36px;
  height:36px;
  color:var(--blue);
  flex:none
}
.pathway strong {
  font-size:13px;
  font-weight:600;
  display:block
}
.pathway span {
  display:block;
  font-size:12px;
  color:var(--muted)
}
.pathway>.arrow {
  margin-left:auto;
  color:var(--muted)
}
.pathway:hover strong {
  color:var(--blue)
}
.section {
  padding:66px 0
}
.section-header {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:25px;
  margin-bottom:28px
}
.section-header .eyebrow {
  margin-bottom:12px
}
.section-header p {
  margin-top:12px;
  font-size:15px;
  max-width:650px
}
.project-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px
}
.project-card {
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
  transition:transform .2s,border-color .2s;
  display:flex;
  flex-direction:column;
  min-width:0
}
.project-card:hover {
  transform:translateY(-4px);
  border-color:#a4b4c5
}
.project-art {
  height:182px;
  border-bottom:1px solid var(--line);
  padding:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fafcfd;
  position:relative;
  overflow:hidden
}
.project-art svg {
  width:100%;
  height:100%;
  max-width:280px
}
.project-art.green {
  background:#f8fbf9
}
.project-art.red {
  background:#fcfaf9
}
.project-art .art-index {
  position:absolute;
  top:12px;
  left:15px;
  font:10px monospace;
  letter-spacing:1px;
  color:var(--muted)
}
.card-body {
  padding:24px;
  display:flex;
  flex-direction:column;
  flex:1
}
.card-meta {
  display:flex;
  gap:9px;
  align-items:center;
  margin-bottom:13px;
  font-size:10px;
  letter-spacing:1.1px;
  text-transform:uppercase;
  font-weight:700;
  color:var(--blue)
}
.status {
  color:var(--green);
  font-size:10px;
  letter-spacing:.3px;
  text-transform:none;
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:5px
}
.status:before {
  content:'';
  width:5px;
  height:5px;
  background:currentColor;
  border-radius:50%
}
.status.placeholder {
  color:var(--red)
}
.card-body h3 {
  font-size:20px;
  margin-bottom:12px
}
.card-body p {
  font-size:14px;
  line-height:1.7
}
.tags {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:20px 0 24px
}
.tag {
  font-size:10px;
  line-height:1.4;
  border:1px solid var(--line);
  color:var(--muted);
  border-radius:4px;
  padding:5px 8px
}
.card-actions {
  margin-top:auto;
  padding-top:15px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center
}
.card-actions a {
  font-size:12px;
  font-weight:600;
  color:var(--blue);
  display:inline-flex;
  align-items:center;
  gap:8px
}
.card-actions a:hover {
  text-decoration:underline;
  text-underline-offset:4px
}
.card-actions .source-link {
  color:var(--muted);
  font-weight:400
}
.teaching-section {
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:53px 0 57px
}
.teaching-layout {
  display:grid;
  grid-template-columns:.85fr 1.5fr;
  gap:85px
}
.teaching-intro .eyebrow {
  margin-bottom:16px
}
.teaching-intro h2 {
  margin-bottom:17px
}
.teaching-intro p {
  font-size:15px;
  margin-bottom:22px
}
.teaching-links {
  display:flex;
  flex-direction:column
}
.teaching-row {
  padding:19px 0;
  border-bottom:1px solid var(--line);
  display:flex;
  gap:20px;
  align-items:center
}
.teaching-row:first-child {
  padding-top:2px
}
.teaching-row:last-child {
  border:0;
  padding-bottom:0
}
.teaching-row .num {
  font:11px monospace;
  color:var(--muted)
}
.teaching-row h3 {
  font-size:18px;
  margin-bottom:4px
}
.teaching-row p {
  font-size:13px
}
.teaching-row .arrow {
  color:var(--blue);
  margin-left:auto
}
.teaching-row:hover h3 {
  color:var(--blue)
}
.about-strip {
  display:grid;
  grid-template-columns:120px 1fr auto;
  gap:33px;
  align-items:center;
  padding:50px 0
}
.monogram {
  height:100px;
  width:100px;
  border:1px solid var(--line);
  border-radius:50%;
  display:grid;
  place-items:center;
  color:var(--blue);
  font:600 32px var(--heading);
  position:relative
}
.monogram:after {
  content:'';
  position:absolute;
  width:11px;
  height:11px;
  background:var(--green);
  border:4px solid white;
  border-radius:50%;
  right:1px;
  bottom:7px;
  box-sizing:content-box
}
.about-strip h2 {
  font-size:23px;
  letter-spacing:-.035em;
  margin-bottom:10px
}
.about-strip p {
  font-size:14px;
  max-width:650px
}
.site-footer {
  border-top:1px solid var(--line);
  padding:24px 0 30px
}
.footer-inner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  font-size:11px;
  color:var(--muted)
}
.footer-inner strong {
  font-weight:600;
  color:var(--ink)
}
.footer-links {
  display:flex;
  gap:23px
}
.footer-links a:hover {
  color:var(--blue)
}
.page-intro {
  padding:62px 0 38px;
  max-width:810px
}
.page-intro h1 {
  font-size:clamp(38px,4.7vw,58px);
  margin:19px 0
}
.page-intro p {
  font-size:18px;
  line-height:1.8
}
.page-intro .eyebrow {
  font-size:10px
}
.page-content {
  padding-bottom:70px
}
.filter-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:27px;
  padding:18px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  gap:20px
}
.filters {
  display:flex;
  gap:9px;
  flex-wrap:wrap
}
.filter {
  border:1px solid transparent;
  background:white;
  color:var(--muted);
  padding:7px 15px;
  border-radius:5px;
  font-size:12px
}
.filter[aria-pressed=true] {
  background:var(--blue);
  color:white
}
.filter:hover {
  border-color:var(--blue)
}
.result-count {
  font-size:12px;
  color:var(--muted);
  white-space:nowrap
}
.project-card[hidden] {
  display:none
}
.catalog-note {
  font-size:13px;
  color:var(--muted);
  margin-top:25px;
  max-width:760px
}
.category-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:23px;
  margin:5px 0 46px
}
.category-card {
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px;
  display:flex;
  flex-direction:column;
  align-items:start
}
.category-icon {
  color:var(--blue);
  width:40px;
  height:40px;
  margin-bottom:26px
}
.category-card .eyebrow:before {
  display:none
}
.category-card h2 {
  font-size:25px;
  margin:12px 0 17px
}
.category-card p {
  font-size:14px;
  margin-bottom:23px
}
.category-card .text-link {
  margin-top:auto
}
.topics {
  border-top:1px solid var(--line);
  padding-top:32px
}
.topics h2 {
  font-size:25px;
  margin-bottom:18px
}
.topics .tag {
  font-size:12px;
  padding:8px 12px
}
.detail-layout {
  display:grid;
  grid-template-columns:1.6fr 1fr;
  gap:70px;
  padding-bottom:75px
}
.detail-body h2 {
  font-size:26px;
  margin:32px 0 18px
}
.detail-body p {
  margin-bottom:20px
}
.detail-list {
  list-style:none;
  margin:0;
  padding:0
}
.detail-list li {
  border-bottom:1px solid var(--line);
  padding:16px 0;
  display:flex;
  gap:20px;
  justify-content:space-between
}
.detail-list li span {
  color:var(--muted);
  font-size:12px
}
.detail-aside {
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:25px;
  align-self:start
}
.detail-aside h2 {
  font-size:18px;
  margin-bottom:16px
}
.detail-aside p {
  font-size:13px
}
.detail-aside .button {
  margin-top:23px;
  display:flex
}
.notice {
  border-left:3px solid var(--blue);
  padding:15px 20px;
  background:var(--tint);
  font-size:13px;
  margin-bottom:25px
}
.notice strong {
  display:block;
  color:var(--blue);
  margin-bottom:4px
}
.about-page {
  display:grid;
  grid-template-columns:1.6fr 1fr;
  gap:80px;
  padding-bottom:80px
}
.about-page h2 {
  font-size:26px;
  margin:25px 0 15px
}
.about-page p {
  margin-bottom:20px
}
.principle {
  border-top:1px solid var(--line);
  padding:20px 0
}
.principle span {
  font:11px monospace;
  color:var(--blue)
}
.principle h3 {
  font-size:18px;
  margin:10px 0
}
.principle p {
  font-size:14px;
  margin:0
}
.breadcrumb {
  font-size:12px;
  color:var(--muted);
  margin-bottom:25px
}
.breadcrumb a {
  color:var(--blue)
}
.catalog-grid {
  grid-template-columns:repeat(2,minmax(0,1fr))
}
.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
@media(max-width:760px) {
  .catalog-grid {
    grid-template-columns:1fr
  }
}
@media(min-width:1500px) {
  .hero {
    padding-top:92px;
    padding-bottom:78px
  }
}
@media(max-width:1000px) {
  .wrap {
    width:calc(100% - 56px)
  }
  .hero {
    gap:30px;
    padding-top:55px
  }
  .hero h1 {
    font-size:52px
  }
  .hero .intro {
    font-size:16px
  }
  .nav {
    gap:24px
  }
  .teaching-layout {
    gap:45px
  }
  .card-body {
    padding:20px
  }
  .project-grid {
    gap:16px
  }
  .project-art {
    height:160px
  }
  .pathway {
    padding:0 18px
  }
  .about-strip {
    gap:20px;
    grid-template-columns:100px 1fr
  }
  .about-strip>.text-link {
    grid-column:2
  }
  .category-card {
    padding:22px
  }
  .detail-layout {
    gap:35px
  }
}
@media(max-width:760px) {
  .wrap {
    width:calc(100% - 40px)
  }
  .site-header {
    height:76px
  }
  .brand {
    font-size:18px
  }
  .menu-toggle {
    display:block
  }
  .nav {
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:75px;
    border-bottom:1px solid var(--line);
    padding:20px;
    background:white;
    align-items:stretch;
    gap:8px
  }
  .nav.open {
    display:flex;
    flex-direction:column
  }
  .nav a {
    padding:10px
  }
  .nav .nav-github {
    border:0;
    padding-left:10px
  }
  .nav a[aria-current=page]:after {
    display:none
  }
  .hero {
    grid-template-columns:1fr;
    gap:35px;
    padding:43px 0 35px
  }
  .hero h1 {
    font-size:clamp(43px,9vw,62px)
  }
  .hero .intro {
    font-size:17px;
    max-width:560px
  }
  .hero-art {
    max-width:520px;
    width:100%;
    justify-self:center
  }
  .hero-art svg {
    max-height:310px
  }
  .pathways {
    grid-template-columns:1fr;
    padding:0
  }
  .pathway {
    padding:18px 0;
    border:0;
    border-bottom:1px solid var(--line)
  }
  .pathway:last-child {
    border:0
  }
  .project-grid,.category-grid {
    grid-template-columns:1fr
  }
  .project-art {
    height:205px
  }
  .section {
    padding:45px 0
  }
  .section-header {
    align-items:start
  }
  .section-header>.text-link {
    white-space:nowrap;
    margin-top:7px
  }
  .section-header h2 {
    font-size:28px
  }
  .section-header .eyebrow {
    font-size:10px
  }
  .teaching-layout,.detail-layout,.about-page {
    grid-template-columns:1fr;
    gap:30px
  }
  .teaching-section {
    padding:40px 0
  }
  .teaching-intro p {
    max-width:520px
  }
  .teaching-row:first-child {
    padding-top:18px;
    border-top:1px solid var(--line)
  }
  .about-strip {
    grid-template-columns:65px 1fr;
    gap:20px;
    padding:35px 0
  }
  .monogram {
    width:65px;
    height:65px;
    font-size:22px
  }
  .about-strip h2 {
    font-size:20px
  }
  .about-strip p {
    font-size:13px
  }
  .footer-inner {
    align-items:start;
    flex-direction:column;
    gap:13px
  }
  .page-intro {
    padding-top:40px
  }
  .page-intro p {
    font-size:16px
  }
  .filter-bar {
    align-items:start;
    flex-direction:column;
    gap:10px
  }
  .filters {
    gap:4px
  }
  .filter {
    padding:7px 10px
  }
  .category-grid {
    gap:16px
  }
  .category-card {
    padding:26px
  }
  .category-icon {
    margin-bottom:15px
  }
  .detail-layout {
    padding-bottom:45px
  }
  .about-page {
    padding-bottom:45px
  }
  .card-body h3 {
    font-size:22px
  }
  .card-body p {
    font-size:15px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*:before,*:after {
    transition:none!important;
    animation:none!important
  }
}

/* Hugo content components; the approved prototype tokens remain above. */
.project-art img{width:100%;height:100%;max-width:280px;object-fit:contain}.note-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}.note-card{padding:24px 0;border-top:1px solid var(--line);display:flex;flex-direction:column}.note-meta{display:flex;gap:15px;flex-wrap:wrap;color:var(--muted);font-size:11px;margin:12px 0 17px}.note-meta span{color:var(--red)}.note-card h3{font-size:21px;margin-bottom:14px}.note-card h3 a:hover{color:var(--blue)}.note-card p{font-size:14px}.note-card .text-link{margin-top:auto}.notes-home{padding-bottom:30px}.personal-article{max-width:850px;padding-bottom:75px}.article-prose{max-width:740px}.article-prose p{margin:0 0 22px}.article-prose h2{font-size:28px;margin:34px 0 18px}.article-prose a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}.article-prose ul{padding-left:24px}.nav{gap:25px}@media(max-width:760px){.note-grid{grid-template-columns:1fr}.personal-article{padding-bottom:45px}}

/* Teaching reading layouts on the same visual foundation as personal-site. */
.teaching-shell{display:grid;grid-template-columns:230px minmax(0,1fr);gap:58px;padding-top:40px;padding-bottom:65px}.teaching-sidebar{align-self:start;position:sticky;top:24px;font-size:13px;max-height:calc(100vh - 50px);overflow:auto;padding-right:16px}.sidebar-home{display:block;font:700 16px var(--heading);color:var(--blue);margin-bottom:18px}.teaching-sidebar nav{display:flex;flex-direction:column;gap:8px;padding-bottom:22px;border-bottom:1px solid var(--line)}.teaching-sidebar a:hover{color:var(--blue);text-decoration:underline}.sidebar-related{margin-top:24px}.sidebar-related .eyebrow{font-size:9px;margin-bottom:16px}.sidebar-related ul{list-style:none;margin:8px 0 18px;padding:0}.sidebar-related li{margin:8px 0}.sidebar-related a[aria-current]{font-weight:700;color:var(--blue)}.article-heading{margin:20px 0 30px}.article-heading h1{font-size:clamp(32px,4vw,47px);margin:16px 0 20px;overflow-wrap:anywhere}.article-heading p{font-size:17px}.article-toc{padding:18px 22px;background:#f7f9fb;border:1px solid var(--line);border-radius:8px;font-size:13px;margin-bottom:32px}.article-toc summary{cursor:pointer;font-weight:700;color:var(--blue)}.article-toc ul{padding-left:20px;margin:10px 0}.article-toc a:hover{text-decoration:underline}.teaching-prose{font-size:16px;line-height:1.8;overflow-wrap:break-word}.teaching-prose h2{font-size:29px;margin:40px 0 19px;scroll-margin-top:25px}.teaching-prose h3{font-size:23px;margin:30px 0 16px}.teaching-prose h4{font-size:18px;margin:25px 0 14px}.teaching-prose p{margin:0 0 18px}.teaching-prose ul,.teaching-prose ol{padding-left:25px;margin:15px 0 22px}.teaching-prose li{margin:5px 0}.teaching-prose li p{margin:6px 0}.teaching-prose a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}.teaching-prose code{font-size:.87em;background:#f3f6f9;padding:2px 5px;border-radius:3px}.teaching-prose pre{overflow:auto;max-width:100%;padding:20px;background:#f4f7fa;border:1px solid var(--line);border-radius:8px;font-size:14px;line-height:1.6;margin:22px 0}.teaching-prose pre code{background:none;padding:0}.teaching-prose img{max-width:100%;height:auto}.migration-image{margin:24px 0}.migration-image.align-center{text-align:center}.migration-image.align-right{text-align:right}.teaching-prose blockquote{margin:22px 0;padding:10px 20px;border-left:3px solid var(--line)}.teaching-prose table{border-collapse:collapse;width:100%;font-size:14px;margin:22px 0}.teaching-prose th,.teaching-prose td{border:1px solid var(--line);padding:10px 13px;text-align:left;vertical-align:top}.teaching-prose th{background:#f4f7fa}.teaching-prose .table-scroll{overflow:auto}.teaching-prose dt{font-weight:700;margin-top:18px}.teaching-prose dd{margin-left:22px}.callout{padding:17px 22px;border-left:3px solid var(--blue);background:#f5f8fb;margin:25px 0}.callout>strong{font-size:12px;text-transform:uppercase;letter-spacing:.8px;color:var(--blue);display:block;margin-bottom:8px}.callout p:last-child{margin-bottom:0}.callout-warning,.callout-important{border-color:var(--red)}.callout-warning>strong{color:var(--red)}.article-footer{border-top:1px solid var(--line);padding-top:20px;margin-top:45px;display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:11px}.article-footer a{color:var(--blue)}.course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.course-card{border:1px solid var(--line);border-radius:10px;padding:26px;display:flex;flex-direction:column;align-items:start;gap:16px}.course-card:hover{border-color:var(--blue)}.course-card h2{font-size:25px}.course-card h3{font-size:21px}.course-code{color:var(--blue);font-size:11px;font-weight:700;letter-spacing:1px}.course-card .text-link{margin-top:auto}.course-preview{padding-top:20px}.collection-links a{display:flex;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--line)}.search-label{display:block;font-size:13px;font-weight:600;margin-bottom:10px}.search-input{width:100%;max-width:800px;border:1px solid #9cabb9;border-radius:6px;padding:14px 16px;background:#fff;color:var(--ink)}.search-input:focus{outline:2px solid var(--blue);outline-offset:3px}.search-status{font-size:13px;margin:20px 0;color:var(--muted)}.search-results{max-width:850px}.search-results article{padding:20px 0;border-top:1px solid var(--line)}.search-results a{font:600 20px var(--heading);color:var(--blue)}.search-results p{font-size:14px;margin-top:10px}@media(max-width:900px){.teaching-shell{grid-template-columns:190px minmax(0,1fr);gap:30px}}@media(max-width:760px){.teaching-shell{grid-template-columns:1fr;gap:25px;padding-top:25px}.teaching-sidebar{position:static;max-height:none;padding:0}.teaching-sidebar nav{flex-direction:row;flex-wrap:wrap;gap:12px 20px}.sidebar-related{display:none}.article-heading{margin-top:10px}.article-heading h1{font-size:35px}.course-grid{grid-template-columns:1fr}.teaching-prose{font-size:15px}.teaching-prose h2{font-size:26px}.article-footer{flex-direction:column}.teaching-prose table{display:block;overflow:auto;max-width:100%}.article-toc{padding:15px}}
/* Allow article columns to shrink around long code lines on narrow screens. */
.teaching-article,.teaching-sidebar{min-width:0;width:100%}.teaching-prose mjx-container[display="true"]{max-width:100%;overflow-x:auto;overflow-y:hidden}@media(max-width:760px){.teaching-shell{grid-template-columns:minmax(0,1fr)}}

/* Course context and availability labels. */
.course-context{border-left:3px solid var(--blue);padding:15px 20px;margin:0 0 27px;background:#f6f8fb;font-size:14px}.course-context strong{display:block;font-size:12px;color:var(--blue);margin-bottom:8px}.course-context p{margin:0 0 9px}.course-context a{font-size:12px;color:var(--blue)}.course-status{margin-left:14px;color:var(--green);font-size:10px;letter-spacing:.2px}.course-material-label{color:var(--muted);font-size:12px}.course-code{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.topics>.text-link{margin-bottom:22px}

/* Teaching article reading rhythm: larger text, tighter vertical gaps, shorter lines. */
.teaching-prose{max-width:72ch;font-size:18px;line-height:1.65}
.teaching-prose h2{margin:34px 0 16px}
.teaching-prose h3{margin:24px 0 12px}
.teaching-prose h4{margin:20px 0 10px}
.teaching-prose p{margin:0 0 14px}
.teaching-prose ul,.teaching-prose ol{margin:12px 0 16px}
.teaching-prose li{margin:3px 0}
.teaching-prose table{font-size:15px}
@media(max-width:760px){.teaching-prose{font-size:17px;line-height:1.62}.teaching-prose h2{font-size:26px}.teaching-prose p{margin-bottom:13px}}

.course-card-art{display:block;width:100%;height:144px;object-fit:contain;padding:8px 14px;background:#f7f9fb;border-radius:7px}
.course-page-art{float:right;width:min(240px,34%);margin:0 0 20px 28px}
.course-page-art img{display:block;width:100%;height:auto;max-height:150px;object-fit:contain}
@media(max-width:760px){.course-page-art{float:none;width:min(280px,100%);margin:0 auto 24px}}
