:root {
  --ink: #111113;
  --muted: #67676d;
  --paper: #ffffff;
  --soft: #f5f5f7;
  --line: #dcdce1;
  --accent: #b3122d;
  --accent-dark: #870b21;
  --max: 1280px;
  --header-height: 82px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.6; }
body.menu-open { overflow: hidden; }
button, input, textarea { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.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 { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: .75rem 1rem; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid #4c8bf5; outline-offset: 3px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: white; transition: background .3s ease, color .3s ease, box-shadow .3s ease; }
.site-header.is-condensed, body:not([data-page="about"]) .site-header { background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.1); backdrop-filter: blur(18px); }
.nav-wrap { width: min(calc(100% - 48px), var(--max)); height: var(--header-height); margin: 0 auto; display: flex; align-items: center; gap: 2rem; transition: height .3s ease; }
.is-condensed .nav-wrap { height: 64px; }
.brand { width: 150px; flex: 0 0 auto; }
.brand img { width: 100%; height: 46px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); transition: filter .3s ease; }
.site-header.is-condensed .brand img, body:not([data-page="about"]) .brand img { filter: none; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 2vw, 2.25rem); margin-left: auto; }
.nav-link { position: relative; border: 0; background: none; color: inherit; text-decoration: none; padding: .75rem 0; font-size: .9rem; font-weight: 600; cursor: pointer; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: .45rem; height: 1px; background: currentColor; transition: right .2s ease; }
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: .25rem; }
.icon-button { width: 38px; height: 38px; border: 0; background: transparent; color: inherit; display: grid; place-items: center; border-radius: 999px; text-decoration: none; font-weight: 700; cursor: pointer; }
.icon-button:hover { background: rgba(127,127,127,.14); }
.icon-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.menu-button { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 12px 9px; cursor: pointer; }
.menu-button span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; }

.hero { position: relative; min-height: 100svh; background: #17171a; overflow: hidden; display: flex; align-items: end; color: white; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 112%; object-fit: cover; object-position: center 44%; transform: translateY(var(--hero-shift, 0)); }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.18) 48%, rgba(0,0,0,.78)); }
.hero-content { position: relative; width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 10rem 0 6rem; }
.eyebrow, .section-kicker { margin: 0 0 1.5rem; font-size: .75rem; line-height: 1.2; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.light { color: rgba(255,255,255,.72); }
.hero h1 { max-width: 980px; margin: 0; font-size: clamp(3.5rem, 8vw, 8rem); line-height: .92; letter-spacing: -.065em; font-weight: 750; }
.hero-link { display: inline-flex; align-items: center; gap: .75rem; margin-top: 2.5rem; text-decoration: none; font-weight: 650; }
.hero-link span { transition: transform .2s ease; }
.hero-link:hover span { transform: translateY(4px); }

.section { padding: clamp(6rem, 10vw, 10rem) max(24px, calc((100% - var(--max)) / 2)); }
.content-grid { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 2fr); gap: clamp(2rem, 8vw, 8rem); }
.prose { max-width: 880px; }
.prose p { margin: 0 0 1.5rem; }
.lead-copy { font-size: clamp(1.45rem, 2.4vw, 2.35rem); line-height: 1.35; letter-spacing: -.025em; }
.statement-section { padding: clamp(7rem, 12vw, 12rem) 24px; }
.statement-inner { width: min(100%, 1120px); margin: 0 auto; }
.statement-inner h2 { margin: 0; font-size: clamp(2.3rem, 5vw, 5.4rem); line-height: 1.05; letter-spacing: -.05em; font-weight: 650; }
.dark-section { background: var(--ink); color: white; }
.red-rule-section { border-top: 8px solid var(--accent); background: var(--soft); }
.section-heading { max-width: 900px; margin-bottom: clamp(3rem, 7vw, 6rem); }
.section-heading h2 { margin: 0; font-size: clamp(2.8rem, 6vw, 6rem); line-height: .98; letter-spacing: -.06em; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--line); }
.stat-card { min-height: 260px; padding: 3rem 0; border-bottom: 1px solid var(--line); }
.stat-card:nth-child(odd) { padding-right: clamp(2rem, 6vw, 6rem); border-right: 1px solid var(--line); }
.stat-card:nth-child(even) { padding-left: clamp(2rem, 6vw, 6rem); }
.stat-value { display: block; color: var(--accent); font-size: clamp(3.5rem, 7vw, 7.4rem); line-height: 1; letter-spacing: -.07em; font-weight: 720; }
.stat-label { display: block; max-width: 430px; margin-top: 1.4rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.25rem); }
.committee-preview { padding-top: clamp(7rem, 12vw, 12rem); }

.site-footer { background: var(--ink); color: white; padding: 5rem 24px 2rem; }
.footer-inner { width: min(100%, var(--max)); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: end; padding-bottom: 4rem; }
.footer-mark { max-width: 280px; font-size: clamp(2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.05em; font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; padding: 2rem 0; border-block: 1px solid rgba(255,255,255,.16); }
.footer-links a { color: rgba(255,255,255,.76); text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 2rem; color: rgba(255,255,255,.55); font-size: .9rem; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .desktop-nav, .desktop-social { display: none; }
  .nav-wrap { width: calc(100% - 32px); }
  .nav-actions { margin-left: auto; }
  .menu-button { display: block; }
  .hero-content { width: calc(100% - 40px); padding-bottom: 4rem; }
  .content-grid { grid-template-columns: 1fr; gap: 1rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card, .stat-card:nth-child(odd), .stat-card:nth-child(even) { min-height: 0; padding: 2.75rem 0; border-right: 0; }
  .footer-top { align-items: start; flex-direction: column; gap: 2rem; }
}

@media (max-width: 560px) {
  :root { --header-height: 68px; }
  .brand { width: 132px; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .section { padding-inline: 20px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-image { transform: none !important; }
}

/* Shared navigation overlays */
.mega-menu { position: absolute; inset: 100% 0 auto; background: rgba(255,255,255,.98); color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.12); }
.mega-menu-inner { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 2.5rem 0 3rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.mega-menu h2 { margin: 0 0 1rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.mega-menu a { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; text-decoration: none; font-size: .95rem; line-height: 1.4; }
.mega-menu a:hover { color: var(--accent); }
.mega-menu[hidden], .mobile-panel[hidden] { display: none; }
.mobile-panel { position: fixed; inset: 0; z-index: 100; background: white; color: var(--ink); padding: 1rem 24px 2rem; overflow-y: auto; }
.mobile-panel-head { display: flex; align-items: center; justify-content: space-between; min-height: 58px; border-bottom: 1px solid var(--line); font-weight: 700; }
.mobile-panel nav { display: grid; padding-top: 1rem; }
.mobile-panel nav > a, .mobile-panel summary { padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 1.45rem; font-weight: 650; cursor: pointer; }
.mobile-panel details a { display: block; padding: .7rem 1rem; color: var(--muted); text-decoration: none; }
.mobile-socials { display: flex; gap: 1.5rem; margin-top: 2rem; }
.mobile-socials a { color: var(--accent); text-decoration: none; font-weight: 650; }

.search-dialog, .member-dialog { width: min(calc(100% - 32px), 760px); border: 0; border-radius: 20px; padding: 0; box-shadow: 0 35px 90px rgba(0,0,0,.28); }
.search-dialog[open], .member-dialog[open] { display: block; position: fixed; inset: 50% auto auto 50%; z-index: 110; max-height: 90vh; margin: 0; transform: translate(-50%, -50%); overflow-y: auto; }
body.dialog-open { overflow: hidden; }
body.dialog-open::before { content: ""; position: fixed; inset: 0; z-index: 109; background: rgba(10,10,12,.58); backdrop-filter: blur(6px); }
.search-dialog::backdrop, .member-dialog::backdrop { background: rgba(10,10,12,.58); backdrop-filter: blur(6px); }
.search-head, .member-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--line); }
.search-head label, .member-dialog-head p { margin: 0; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 750; }
.search-head button, .member-dialog-head button { border: 0; background: transparent; font-size: 1.8rem; cursor: pointer; }
.search-dialog > input { width: calc(100% - 3rem); margin: 1.5rem; border: 0; border-bottom: 2px solid var(--ink); padding: 1rem 0; font-size: 1.5rem; outline: 0; }
.search-results { padding: 0 1.5rem 1.5rem; }
.search-results a { display: grid; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.search-results a:hover strong { color: var(--accent); }
.search-results span { color: var(--muted); font-size: .9rem; }

/* Inner pages */
.page-hero { padding: calc(var(--header-height) + 7rem) 24px 7rem; background: var(--soft); }
.page-hero-inner { width: min(100%, var(--max)); margin: 0 auto; }
.breadcrumb { margin: 0 0 4.5rem; color: var(--muted); font-size: .88rem; }
.breadcrumb a { text-underline-offset: 3px; }
.page-hero h1 { max-width: 1050px; margin: 0; font-size: clamp(3.7rem, 8vw, 8rem); line-height: .92; letter-spacing: -.065em; }
.page-lead { max-width: 850px; margin: 2rem 0 0; color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.5; }
.compact-hero { background: var(--ink); color: white; }
.compact-hero .breadcrumb { color: rgba(255,255,255,.55); }
.guide-note { margin-bottom: 4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem; color: var(--muted); }
.guide-note p { margin: 0; }
.guide-note a, .body-copy a { color: var(--accent); font-weight: 650; text-underline-offset: 4px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.guide-card { min-height: 280px; padding: 2.5rem; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s ease, color .2s ease; }
.guide-card:nth-child(odd) { border-right: 1px solid var(--line); }
.guide-card span { color: var(--accent); font-size: .8rem; font-weight: 750; }
.guide-card h2 { max-width: 480px; margin: 3.75rem 0 .75rem; font-size: clamp(1.65rem, 3vw, 2.8rem); line-height: 1.08; letter-spacing: -.035em; }
.guide-card p { margin: 0; color: var(--muted); }
.guide-card:hover { background: var(--ink); color: white; }
.guide-card:hover p { color: rgba(255,255,255,.62); }

.split-section { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8vw; }
.split-aside h2 { margin: 0; max-width: 420px; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.05; letter-spacing: -.045em; }
.body-copy { font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.45; }
.pulse-section { background: var(--soft); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.info-grid article { padding: 2.5rem 0; }
.info-grid article + article { padding-left: 2.5rem; border-left: 1px solid var(--line); }
.info-grid span, .info-grid strong { display: block; }
.info-grid span { margin-bottom: .75rem; color: var(--muted); }
.info-grid strong { font-size: clamp(1.8rem, 3vw, 3.2rem); letter-spacing: -.04em; }
.quiet-note { margin: 1.5rem 0 0; color: var(--muted); }
.rules-list { margin: 0; padding: 0; list-style: none; counter-reset: rules; border-top: 1px solid var(--line); }
.rules-list li { counter-increment: rules; display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--line); font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.rules-list li::before { content: counter(rules, decimal-leading-zero); color: var(--accent); font-weight: 750; }

/* Committee directory */
.committee-cell { padding: clamp(4rem, 8vw, 8rem) 0; border-top: 1px solid var(--line); }
.cell-intro { display: grid; grid-template-columns: .7fr 2fr; gap: 8vw; margin-bottom: 3.5rem; }
.cell-intro p:last-child { max-width: 880px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.35rem); }
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem) 1.25rem; }
.member-photo { aspect-ratio: .82; overflow: hidden; background: #e7e7ea; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88); transition: transform .45s ease, filter .45s ease; }
.member-card:hover .member-photo img { transform: scale(1.025); filter: saturate(1); }
.member-photo.is-placeholder { display: grid; place-items: center; align-content: center; gap: 1rem; padding: 1rem; color: var(--muted); text-align: center; font-size: .8rem; }
.member-photo.is-placeholder svg { width: 64px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.member-meta { padding-top: 1.25rem; }
.member-meta h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.member-meta p { min-height: 2.5em; margin: .35rem 0 .65rem; color: var(--muted); font-size: .85rem; line-height: 1.35; }
.member-meta a { display: block; overflow-wrap: anywhere; color: var(--muted); font-size: .82rem; text-underline-offset: 3px; }
.member-meta button { margin-top: .9rem; padding: 0; border: 0; background: none; color: var(--ink); font-weight: 650; cursor: pointer; }
.member-meta button:hover { color: var(--accent); }
.member-dialog-body { padding: clamp(2rem, 6vw, 4rem); }
.member-dialog-body h2 { margin: 0 0 1.5rem; font-size: clamp(2.3rem, 6vw, 4.8rem); line-height: .95; letter-spacing: -.055em; }
.member-dialog-body p:not(.section-kicker) { color: var(--muted); font-size: 1.15rem; }
.member-dialog-body a { color: var(--accent); }

/* Contact */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; }
.faq-item button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem 0; border: 0; background: none; color: var(--ink); text-align: left; font-size: clamp(1.05rem, 1.7vw, 1.4rem); font-weight: 550; cursor: pointer; }
.faq-item button:hover span { color: var(--accent); }
.faq-item i { font-style: normal; font-size: 1.8rem; font-weight: 300; }
.faq-answer { max-width: 850px; padding: 0 0 2rem; color: var(--muted); }
.faq-answer p { margin: 0; }
.contact-section { background: var(--soft); padding: clamp(6rem, 10vw, 10rem) 24px; }
.contact-layout { width: min(100%, var(--max)); margin: 0 auto; display: grid; grid-template-columns: .85fr 1.4fr; gap: 8vw; }
.contact-copy h2, .location-copy h2 { margin: 0; font-size: clamp(3rem, 6vw, 6rem); line-height: .95; letter-spacing: -.06em; }
.contact-copy > p:last-child { color: var(--muted); }
.contact-form { display: grid; gap: 1.25rem; }
.contact-form label:not(.checkbox-label) { display: grid; gap: .55rem; color: var(--muted); font-size: .85rem; font-weight: 650; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); padding: 1rem; font-size: 1rem; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 24%, transparent); }
.checkbox-label { display: flex; align-items: flex-start; gap: .65rem; color: var(--muted); font-size: .9rem; }
.checkbox-label input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--accent); }
.form-status { min-height: 1.5rem; margin: 0; color: var(--accent); }
.primary-button { justify-self: start; display: inline-flex; align-items: center; gap: 1rem; border: 0; border-radius: 999px; padding: 1rem 1.5rem; background: var(--accent); color: white; font-weight: 700; cursor: pointer; }
.primary-button:hover { background: var(--accent-dark); }
.location-section { display: grid; grid-template-columns: 1fr 1.5fr; min-height: 620px; }
.location-copy { padding: clamp(5rem, 9vw, 8rem) max(24px, calc((100vw - var(--max)) / 2)); padding-right: clamp(2rem, 5vw, 5rem); }
.location-copy address { margin-top: 2rem; color: var(--muted); font-size: 1.2rem; font-style: normal; }
.map-frame { width: 100%; min-height: 620px; border: 0; filter: grayscale(1) contrast(.9); }

@media (max-width: 1100px) {
  .member-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 920px) {
  .mega-menu { display: none; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card:nth-child(odd) { border-right: 0; }
  .split-section, .contact-layout, .location-section { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .info-grid article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .cell-intro { grid-template-columns: 1fr; gap: 1rem; }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .location-copy { padding-inline: 24px; }
  .map-frame { min-height: 420px; }
}

@media (max-width: 560px) {
  .page-hero { padding: calc(var(--header-height) + 4rem) 20px 4rem; }
  .breadcrumb { margin-bottom: 3rem; }
  .page-hero h1 { font-size: clamp(3.2rem, 15vw, 5.3rem); }
  .guide-card { min-height: 230px; padding: 2rem 0; }
  .member-grid { grid-template-columns: 1fr; }
  .member-photo { aspect-ratio: 4 / 5; }
  .rules-list li { grid-template-columns: 46px 1fr; }
}

/* Bizipedia library */
.bizipedia-hero { background: linear-gradient(135deg, #f5f5f7 0%, #fff 55%, #f7e9ec 100%); }
.course-directory { padding-top: 5rem; }
.course-tools { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 1rem; padding-bottom: 2.25rem; border-bottom: 1px solid var(--line); }
.course-tools label { display: grid; gap: .6rem; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.course-tools input, .course-tools select { min-width: 0; width: 100%; height: 54px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); padding: 0 1rem; font-size: 1rem; letter-spacing: 0; text-transform: none; }
.course-tools input:focus, .course-tools select:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 18%, transparent); }
.course-count { padding: 2rem 0 1rem; color: var(--muted); font-size: .9rem; }
.course-list { border-top: 1px solid var(--line); }
.course-row { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(180px, .8fr) 36px; align-items: center; gap: 1.5rem; min-height: 98px; border-bottom: 1px solid var(--line); text-decoration: none; transition: color .2s ease, padding .2s ease; }
.course-row:hover { color: var(--accent); padding-left: .65rem; }
.course-row strong { font-size: clamp(1.05rem, 1.7vw, 1.4rem); line-height: 1.3; }
.course-row span { color: var(--muted); font-size: .9rem; }
.course-row b { font-size: 1.5rem; font-weight: 400; text-align: right; }
.resource-section { padding-top: 5rem; }
.resource-layout { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(0, 2fr); gap: clamp(2.5rem, 8vw, 8rem); }
.resource-aside { align-self: start; position: sticky; top: 100px; }
.resource-aside p { margin: 2rem 0 0; color: var(--muted); }
.back-link { color: var(--accent); font-weight: 700; text-underline-offset: 4px; }
.resource-content, .document-stack { min-width: 0; }
.document-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.document-card + .document-card { margin-top: 2rem; }
.document-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 58px; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: white; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.document-toolbar a { color: var(--accent); text-decoration: none; }
.document-frame { display: block; width: 100%; height: min(78vh, 900px); min-height: 620px; border: 0; background: white; }
.legacy-content { margin-top: 3rem; font-size: 1.05rem; }
.legacy-content:first-child { margin-top: 0; }
.legacy-content h1, .legacy-content h2, .legacy-content h3 { margin: 2.5rem 0 1rem; line-height: 1.15; letter-spacing: -.03em; }
.legacy-content h2 { font-size: clamp(2rem, 4vw, 3.8rem); }
.legacy-content h3 { font-size: clamp(1.35rem, 2.4vw, 2rem); }
.legacy-content p, .legacy-content li { color: #444449; }
.legacy-content a { color: var(--accent); font-weight: 650; text-underline-offset: 3px; }
.legacy-content img { width: auto; max-width: 100%; height: auto; margin: 2rem auto; border-radius: 10px; }
.legacy-content figure { margin: 2rem 0; }
.legacy-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.legacy-content td, .legacy-content th { padding: .8rem; border: 1px solid var(--line); }
.empty-state { padding: clamp(2.5rem, 6vw, 5rem); background: var(--soft); text-align: center; }
.empty-state h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.04em; }
.empty-state p { color: var(--muted); }
.empty-state button { border: 0; border-radius: 999px; padding: .8rem 1.2rem; background: var(--ink); color: white; font-weight: 700; cursor: pointer; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.story-card { min-height: 260px; padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s ease, color .2s ease; }
.story-card:nth-child(3n) { border-right: 0; }
.story-card > span { color: var(--accent); font-size: .8rem; font-weight: 750; }
.story-card h2 { margin: 4rem 0 1rem; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.08; letter-spacing: -.035em; }
.story-card p { margin: 0; color: var(--muted); }
.story-card:hover { background: var(--ink); color: white; }
.story-card:hover p { color: rgba(255,255,255,.68); }

@media (max-width: 920px) {
  .course-tools { grid-template-columns: repeat(2, 1fr); }
  .resource-layout { grid-template-columns: 1fr; }
  .resource-aside { position: static; }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .story-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .story-card:nth-child(2n) { border-right: 0; }
}

@media (max-width: 620px) {
  .course-tools { grid-template-columns: 1fr; }
  .course-row { grid-template-columns: 1fr 28px; gap: .35rem 1rem; padding: 1.25rem 0; }
  .course-row span { grid-column: 1; }
  .course-row b { grid-column: 2; grid-row: 1 / span 2; }
  .document-frame { min-height: 480px; height: 70vh; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card, .story-card:nth-child(2n), .story-card:nth-child(3n) { border-right: 0; }
}
