@font-face {
  font-family: 'Source Serif 4';
  src: url('/fonts/source-serif-4.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --display: 'Source Serif 4', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --paper: #f5f7f3;
  --white: #fff;
  --ink: #152724;
  --muted: #465a54;
  --rule: #d4ddd6;
  --accent: #1b634d;
  --accent-dark: #174333;
  --night: #0b141b;
  --night-text: #eff5f0;
  --night-muted: #b2c5bc;
  --mint: #c5ebba;
  --radius: 1.05rem;
  --shell: 79rem;
  --gutter: clamp(1.25rem, 4.4vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-padding-top: 1rem; }
body { margin: 0; color: var(--ink); font: 1rem/1.62 var(--sans); overflow-wrap: break-word; }
main { min-height: 62vh; }
img { max-width: 100%; display: block; }
svg { flex: none; vertical-align: middle; }
p, dl, ol, ul { margin: 0 0 1rem; }
h1, h2, h3, h4, .brand { font-synthesis: none; }
h1, h2, h3 { font: 560 1em/1.1 var(--display); margin: 0; letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
h3 { font-size: clamp(1.45rem, 2.1vw, 2rem); }
h4 { font-size: 1rem; line-height: 1.4; letter-spacing: -.04em; }
a { color: var(--accent-dark); text-underline-offset: .24em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
button, select, input, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
button { color: inherit; }
input, select, textarea { min-width: 0; color: var(--ink); }
textarea { resize: vertical; }
button:disabled { cursor: not-allowed; opacity: .65; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #407f62; outline-offset: 4px; }
.top :focus-visible, .hero :focus-visible, .project-hero :focus-visible, .footer :focus-visible { outline-color: var(--mint); }
::selection { color: var(--night); background: var(--mint); }

.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: fixed; top: .7rem; left: .7rem; z-index: 20; padding: .65rem 1rem; color: var(--night); background: var(--mint); border-radius: .4rem; }
.shell { width: min(100% - 2 * var(--gutter), var(--shell)); margin-inline: auto; }
.section { padding-block: clamp(3.25rem, 7vw, 6.5rem); }
.section.compact { padding-block: clamp(2.5rem, 5.2vw, 4.9rem) clamp(3.5rem, 6vw, 6rem); }
.narrow { max-width: 54rem; }
.muted, .meta-note { color: var(--muted); }
.meta-note { margin: 1.3rem 0 .6rem; font-size: .875rem; }
.eyebrow {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .105em;
  line-height: 1.45;
  text-transform: uppercase;
  margin: 0 0 .7rem;
}
.eyebrow.light, .caret { color: var(--accent); }
.eyebrow.light { color: var(--mint); }
.caret, .button-row, .feature-meta { display: flex; align-items: center; gap: .55rem; }
.caret svg { width: 1.05rem; height: 1.05rem; }
.button-row, .feature-meta { flex-wrap: wrap; gap: .75rem; }
.feature-meta { color: var(--muted); font-size: .875rem; }
.feature-meta svg { width: 1.1rem; height: 1.1rem; }
.pin, .time-dot { display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.pin { margin-right: .45rem; vertical-align: .125rem; box-shadow: 0 0 12px #afe9af70; }

.top { color: var(--night-text); background: var(--night); border-bottom: 1px solid #98afa52a; }
.nav { display: grid; min-height: 4.65rem; grid-template-columns: minmax(10rem, 1fr) auto minmax(10rem, 1fr); gap: 1.25rem; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: .65rem; width: max-content; color: var(--night-text); font: 620 1.34rem/1 var(--display); letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--mint); }
.brand-mark { width: 1.35rem; height: 1.35rem; color: var(--mint); }
.nav nav, .nav-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(.9rem, 2.1vw, 2rem); }
.nav-end { justify-content: end; gap: clamp(.7rem, 1.5vw, 1.25rem); }
.nav nav a, .nav-end > a:not(.btn), .footer nav a { font-size: .9rem; color: var(--night-muted); text-decoration: none; }
.nav nav a:hover, .nav-end > a:hover:not(.btn), .footer nav a:hover { color: var(--night-text); text-decoration: underline; }
.nav nav a[aria-current='page'] { color: var(--mint); }
.menu-button, .mobile-support { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .58rem;
  min-height: 2.85rem;
  padding: .63rem 1rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  text-decoration: none;
  text-align: center;
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.32;
  background: transparent;
  transition: color .16s, background-color .16s, border-color .16s;
}
.btn svg { width: 1.1rem; height: 1.1rem; }
.btn.primary { color: #13251d; background: var(--mint); border-color: var(--mint); }
.btn.primary:hover { background: #ddf4d8; border-color: #ddf4d8; }
.btn.outline-dark, .btn.btn-nav { color: var(--night-text); border-color: #afc8b85c; }
.btn.outline-dark:hover, .btn.btn-nav:hover, .follow[aria-pressed='true'] { color: var(--mint); border-color: var(--mint); background: #b6d6c01a; }
.btn.btn-nav { font-size: .86rem; min-height: 2.4rem; padding: .48rem .78rem; white-space: nowrap; }
.btn.secondary { color: var(--accent-dark); border-color: #a8bcb2; background: var(--white); }
.btn.secondary:hover { background: #e5f0e8; border-color: var(--accent); }
.btn.solid { color: #fff; background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.solid:hover { background: var(--accent); }
.btn.small { min-height: 2.5rem; font-size: .875rem; }

.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--night-text); background: radial-gradient(ellipse at 73% 37%, #2a453e 0, #152922 20%, #102024 43%, var(--night) 70%); }
.hero-inner { display: flex; align-items: center; min-height: clamp(33rem, 48vw, 45rem); position: relative; padding-block: 5rem 6.9rem; }
.hero-copy { position: relative; z-index: 1; max-width: min(42rem, 61%); }
.hero h1 { font-size: clamp(3.75rem, 6.30vw, 6.125rem); line-height: .99; letter-spacing: -.04em; font-weight: 550; }
.hero-copy > p:not(.eyebrow) { font-size: clamp(1.05rem, 1.7vw, 1.25rem); max-width: 29rem; margin-block: 1.7rem 1.5rem; color: var(--night-muted); line-height: 1.55; }
.hero-visual { position: absolute; z-index: -1; inset: 0 0 0 clamp(20rem, 38vw, 46rem); pointer-events: none; }
.hero-visual img { position: absolute; width: clamp(29rem, 52vw, 55rem); max-width: none; top: 45%; left: 61%; transform: translate(-50%, -51%) rotate(-13deg); mix-blend-mode: screen; filter: brightness(.78) contrast(1.14); mask-image: linear-gradient(107deg, transparent, #000 29%, #000 75%, #0009 90%, transparent); }
.hero::after { position: absolute; inset: 0; z-index: 0; pointer-events: none; content: ''; background: linear-gradient(90deg, var(--night) 3%, #0b141b9e 35%, transparent 68%), linear-gradient(0deg, #0b141ba8, transparent 27%); }
.orbit-line { position: absolute; border: 1px solid #cae7c63a; border-radius: 50%; top: 50%; left: 58%; width: 115%; height: 43%; transform: translate(-50%, -50%) rotate(-24deg); }
.orbit-b { width: 140%; height: 53%; border-color: #cae7c622; }
.image-credit { z-index: 1; position: absolute; right: 0; bottom: 1.45rem; display: grid; gap: .15rem; text-align: right; font-size: .78rem; color: var(--night-muted); }
.image-credit span { color: var(--mint); letter-spacing: .14em; font-weight: 700; }
.image-credit a { color: #b8ccbf; text-decoration: none; }
.image-credit a:hover { color: var(--night-text); text-decoration: underline; }

.section-head { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: end; justify-content: space-between; margin-bottom: 1.55rem; }
.section-head > div { min-width: 0; }
.section-head p:last-child:not(.eyebrow) { margin: .6rem 0 0; color: var(--muted); }
.section-head > a:not(.btn) { font-size: .93rem; font-weight: 700; margin-bottom: .3rem; }
.feature { display: grid; min-height: 19rem; grid-template-columns: 1.06fr 1fr; border: 1px solid var(--rule); background: var(--white); border-radius: var(--radius); overflow: clip; }
.feature-image { display: flex; min-height: 19rem; isolation: isolate; overflow: hidden; align-items: end; position: relative; color: var(--night-text); text-decoration: none; background: #0b1518; }
.feature-image:hover { color: var(--mint); }
.feature-image:focus-visible { outline-color: var(--mint); outline-offset: -4px; }
.feature-image img { position: absolute; margin: 0; top: 50%; left: 60%; transform: translate(-50%, -52%) rotate(-23deg); width: min(92%, 35rem); max-width: none; z-index: -2; mix-blend-mode: screen; }
.feature-image::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(22deg, #0b1518 0%, transparent 72%); }
.feature-image > div { display: grid; padding: 1.6rem 1.85rem; gap: .4rem; }
.feature-image span { font-size: .8rem; font-weight: 700; color: var(--night-muted); letter-spacing: .07em; text-transform: uppercase; }
.feature-image strong { font: 540 clamp(2.15rem, 3.6vw, 3.35rem)/1.05 var(--display); letter-spacing: -.055em; }
.feature-progress { padding: clamp(1.5rem, 4vw, 3.4rem); }
.feature-progress h3 { font-size: clamp(1.85rem, 2.7vw, 2.65rem); max-width: 27rem; }
.feature-progress > p:not(.eyebrow) { color: var(--muted); margin: 1rem 0 1.25rem; max-width: 30rem; }
.feature-progress > a { display: inline-block; font-size: .93rem; font-weight: 700; margin-top: 1.15rem; }
.chip { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; min-height: 1.8rem; padding: .24rem .63rem; border-radius: 2rem; border: 1px solid #dbe4df; color: #354d43; background: #f1f5f2; font-size: .8rem; line-height: 1.25; font-weight: 700; }
.chip.green { color: #20533c; background: #e8f4e4; border-color: #d1e6ce; }
.project-hero .chip.green { color: #d8f0ce; background: #274739; border-color: #577761; }

.topic-section { border-block: 1px solid #d9e4d9; background: #edf3ec; }
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.topic-card { display: block; height: 100%; min-height: 12.25rem; padding: clamp(1rem, 2vw, 1.5rem); border: 1px solid var(--rule); border-radius: var(--radius); background: #fcfdfb; text-decoration: none; color: var(--ink); }
.topic-card:hover { border-color: #83ad92; color: var(--accent-dark); }
.topic-card h3 { margin-top: .95rem; }
.topic-card > p { color: var(--muted); font-size: .95rem; line-height: 1.45; margin: .6rem 0 0; }
.topic-icon { display: grid; place-items: center; color: #225e4c; background: #e3f0e6; border: 1px solid #d8ebdd; border-radius: .66rem; width: 2.65rem; height: 2.65rem; }
.topic-card.space .topic-icon { color: #29576c; border-color: #d8e8ef; background: #e6f0f5; }
.topic-card.math .topic-icon { color: #4c446c; border-color: #e6e2f3; background: #eeebf7; }
.topic-card.medicine .topic-icon { color: #8d4e52; border-color: #f1e2e3; background: #faeded; }
.callout, .line-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.callout { margin-block: clamp(2.7rem, 6vw, 5.9rem); padding: clamp(1.4rem, 4vw, 3.1rem); background: #e8efeb; border: 1px solid #d4e0d7; border-radius: var(--radius); }
.callout h2 { font-size: clamp(2rem, 3.35vw, 3.1rem); }
.callout p, .line-callout p { margin: .55rem 0 0; color: var(--muted); }
.callout svg { color: var(--accent); margin-bottom: .55rem; }
.line-callout { margin-top: 2rem; padding-block: 1.4rem; border-top: 1px solid var(--rule); }
.footer { padding-block: 2.5rem; background: var(--night); color: var(--night-text); }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.4rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; }

.page-title { margin: 0 0 clamp(1.75rem, 4vw, 2.65rem); }
.page-title h1, .project-hero h1 { font-size: clamp(2.65rem, 5.95vw, 5.65rem); line-height: 1.02; letter-spacing: -.063em; }
.page-title > p:not(.eyebrow), .project-hero p:not(.crumb) { max-width: 42rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.2rem); margin: 1rem 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1.2rem; }
.filter { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .45rem .9rem; border: 1px solid var(--rule); border-radius: 2rem; text-decoration: none; line-height: 1.35; font-size: .88rem; font-weight: 700; color: var(--muted); background: var(--white); }
.filter:hover { color: var(--accent-dark); background: #ecf3ed; border-color: #9db5a8; }
.filter.is-active, .filter[aria-current='page'] { color: #fff; background: var(--accent-dark); border-color: var(--accent-dark); }
.search-form { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(9rem, auto) auto; gap: .6rem; margin: 0 0 1.5rem; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: .7rem; top: .76rem; color: var(--muted); width: 1.3rem; height: 1.3rem; pointer-events: none; }
.search-form input[type='search'] { padding-left: 2.3rem; }
input:not([type='hidden']), select, textarea { width: 100%; min-height: 2.85rem; padding: .5rem .7rem; border: 1px solid #aabcb2; border-radius: .5rem; background: var(--white); }
input:not([type='hidden']):hover, select:hover, textarea:hover { border-color: var(--accent); }
select { appearance: none; padding-right: 2.1rem; background-image: linear-gradient(45deg, transparent 50%, #385349 50%), linear-gradient(135deg, #385349 50%, transparent 50%); background-repeat: no-repeat; background-size: 5px 5px; background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; }
input[type='checkbox'], input[type='radio'] { width: 1rem; min-height: auto; accent-color: var(--accent); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.project-card { display: flex; flex-direction: column; overflow: clip; min-width: 0; min-height: 15rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); }
.project-card > div { display: flex; flex: 1; flex-direction: column; align-items: start; padding: clamp(1.3rem, 2.2vw, 1.65rem); }
.project-card img { width: 100%; max-height: 9rem; object-fit: cover; object-position: center 40%; background: var(--night); }
.project-card h2 { font-size: clamp(1.65rem, 2.45vw, 2.4rem); }
.project-card h2 a, .task-row h3 a { color: var(--ink); text-decoration: none; }
.project-card h2 a:hover, .task-row h3 a:hover { color: var(--accent); text-decoration: underline; }
.project-card p:not(.eyebrow) { color: var(--muted); margin: .65rem 0 1.15rem; }
.project-card .chip { margin-top: auto; }

.crumb { color: var(--muted); font-size: .875rem; margin-bottom: 1rem; }
.crumb span { margin-inline: .4rem; }
.project-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--night-text); background: linear-gradient(100deg, var(--night), #213e35); padding: clamp(2.2rem, 5vw, 4.8rem) 0 clamp(2.5rem, 5vw, 4.6rem); }
.project-hero .shell { position: relative; z-index: 1; }
.project-hero .crumb, .project-hero .crumb a, .project-hero p:not(.crumb) { color: var(--night-muted); }
.project-hero h1 { max-width: 70%; }
.project-hero p:not(.crumb) { max-width: min(42rem, 70%); }
.project-hero .button-row { margin-top: 1.25rem; }
.project-hero img { position: absolute; width: clamp(23rem, 43vw, 45rem); top: -40%; right: -5%; z-index: -1; mix-blend-mode: screen; filter: brightness(.55) contrast(1.2); mask-image: linear-gradient(90deg, transparent, #000 40%, #000); }
.tabs { background: #f9fcf9; border-bottom: 1px solid var(--rule); }
.tabs nav { display: flex; align-items: center; gap: clamp(1.05rem, 3vw, 2.4rem); overflow-x: auto; }
.tabs a { flex: none; padding: .82rem 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: .93rem; font-weight: 700; text-decoration: none; }
.tabs a[aria-current='page'], .tabs a:hover { color: var(--accent-dark); border-color: var(--accent); }
.tabs a:focus-visible { outline-offset: -3px; }
.project-brief { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-bottom: 1.1rem; }
.project-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.card, .empty, .notice { padding: clamp(1.1rem, 2.6vw, 2rem); border-radius: var(--radius); min-width: 0; }
.card { border: 1px solid var(--rule); background: var(--white); }
.card p:not(.eyebrow, .notice) { margin: .6rem 0 1rem; }
.card p:last-child { margin-bottom: 0; }
.card h2, .activity-tools h2 { font-size: clamp(1.85rem, 2.8vw, 2.75rem); }
.card h3 { font-size: clamp(1.55rem, 2.35vw, 2.15rem); }
.project-brief h2 { font-size: clamp(1.55rem, 2.35vw, 2rem); }
.aside-card + .aside-card { margin-top: 1rem; }
.progress-card .section-head { align-items: start; }
.progress-card time { color: var(--muted); font-size: .875rem; }
.progress { margin: 0; }
.progress > div { display: grid; grid-template-columns: minmax(8rem, 30%) minmax(0, 1fr); gap: .85rem; padding: .87rem 0; border-top: 1px solid var(--rule); }
.progress dt { font-weight: 700; color: var(--accent-dark); }
.progress dd { margin: 0; }
.details, .detail-sections { margin-block: 1.3rem; }
.detail-sections > section + section { margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.request-explanation { display: grid; gap: .65rem; margin: 1rem 0; padding: .9rem 0; border-block: 1px solid var(--rule); }
.request-explanation dt { font-weight: 700; }
.request-explanation dd { margin: .15rem 0 0; color: var(--muted); }
summary { font-size: .95rem; font-weight: 700; color: var(--accent-dark); }
summary:hover { text-decoration: underline; }
.source-list { display: grid; gap: .6rem; margin-top: .65rem; }
.source-list > div { display: flex; gap: .75rem; align-items: start; border-bottom: 1px solid var(--rule); padding: .5rem 0; }
.source-list > div:last-child { border-bottom: 0; }
.source-list svg { color: var(--accent); height: 1.15rem; width: 1.15rem; margin-top: .2rem; }
.source-list a { font-weight: 700; }
.source-list p, .card .source-list p { font-size: .875rem; color: var(--muted); margin: .1rem 0 0; }
.task-list { border-top: 1px solid var(--rule); }
.task-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 1.25rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.task-row .eyebrow { margin-bottom: .45rem; }
.task-row p:not(.eyebrow) { margin: .45rem 0 0; color: var(--muted); }
.mini-sep { margin-inline: .2rem; color: #587063; }
.result { margin: 1rem 0; }
.result .feature-meta { margin-bottom: .67rem; }
.empty { margin: 1rem 0; border: 1px dashed #aabfb3; color: var(--muted); background: #fcfdfb; }
.empty h2, .empty h3 { color: var(--ink); }
.empty p { margin: .6rem 0 0; }
.empty a { margin-top: .75rem; display: inline-flex; }
.notice { background: #e6f2e4; border: 1px solid #bfd8c1; color: #214b38; font-weight: 600; }
.activity-tools { display: flex; gap: .9rem; align-items: center; justify-content: space-between; margin: 1.5rem 0; }
.timeline { position: relative; list-style: none; border-left: 1px solid #b6c9bd; margin: 1.2rem 0 0 .3rem; padding: 0 0 0 1.25rem; }
.timeline > li { position: relative; padding: 0 0 1.65rem; }
.timeline > li:last-child { padding-bottom: .2rem; }
.timeline .time-dot { position: absolute; top: .62rem; left: -1.53rem; color: var(--accent); box-shadow: 0 0 0 .22rem var(--paper); }
.timeline h3 { margin-top: .55rem; }
.timeline p { color: var(--muted); margin: .55rem 0 .45rem; }
.timeline a { font-size: .93rem; font-weight: 700; }

.community-layout, .two-column { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.2rem); align-items: start; }
.request-list, .card-list { display: grid; gap: .85rem; }
.request-card { scroll-margin-top: 1rem; }
.request-card:target { border-color: var(--accent); outline: 2px solid #9bbca7; outline-offset: 3px; }
.request-title { font-family: var(--display); font-size: 1.85rem; }
.request-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: .5rem 0; }
.vote-button { min-height: 2.65rem; border: 1px solid #a8bcb2; border-radius: .55rem; background: #f3faf2; color: var(--accent-dark); padding: .35rem .8rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .38rem; }
.vote-button:hover, .vote-button[aria-pressed='true'] { border-color: #56816c; background: #e3f1e2; }
.vote-button svg { width: 1rem; height: 1rem; }
.form-grid { display: grid; gap: 1rem; }
.form-card form, .stack, .flow { display: grid; gap: .9rem; }
.field { display: grid; gap: .27rem; align-content: start; }
.field > span { font-size: .93rem; font-weight: 700; }
.field > small { font-size: .83rem; color: var(--muted); }
.form-card button[type='submit'], .form-grid button[type='submit'] { justify-self: start; }
.code-block, pre { max-width: 100%; overflow-x: auto; overflow-wrap: normal; border-radius: .55rem; color: #dbede1; background: var(--night); }
pre { font: .875rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; padding: .85rem 1rem; }
pre code { font: inherit; }
.code-block { position: relative; padding: 0 .2rem; }
.code-block pre { margin: 0; padding: .9rem; }
.code-block button { margin: 0 .7rem .65rem; }
.steps { padding-inline-start: 1.25rem; }
.steps > li { padding-left: .35rem; margin-bottom: .9rem; }
.steps > li::marker { color: var(--accent); font-weight: 700; }
.steps > li h2, .steps > li h3 { margin-bottom: .4rem; }

@media (max-width: 940px) {
  .nav { grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; }
  .nav-end { gap: .7rem; }
  .hero-inner { min-height: 34rem; }
  .hero h1 { font-size: clamp(3.2rem, 6.4vw, 4.6rem); }
  .hero-visual { left: 35%; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .top { position: relative; z-index: 2; }
  .nav { position: relative; grid-template-columns: auto minmax(0, 1fr) auto; min-height: 3.9rem; gap: 0 .55rem; }
  .nav .brand { font-size: 1.22rem; gap: .52rem; }
  .nav .brand-mark { width: 1.13rem; height: 1.13rem; }
  .nav-end { grid-column: 3; grid-row: 1; }
  .nav-end > a:not(.btn) { display: none; }
  .nav nav {
    grid-column: 1/-1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    margin-bottom: .7rem;
    padding: .3rem .6rem;
    border: 1px solid #3f554f;
    border-radius: .85rem;
    background: #14232a;
  }
  .nav nav a, .nav a.mobile-support {
    display: flex;
    align-items: center;
    min-height: 2.95rem;
    padding: .6rem .55rem;
    font-size: 1rem;
  }
  .nav nav a + a { border-top: 1px solid #a5cdb226; }
  .has-script .nav nav {
    position: absolute;
    inset-block-start: calc(100% + .35rem);
    inset-inline-end: 0;
    width: min(100%, 22rem);
    margin: 0;
    box-shadow: 0 1rem 2.4rem #0007;
  }
  .has-script .menu-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    color: var(--night-muted);
    background: transparent;
    border: 1px solid #91aca54d;
    border-radius: .6rem;
  }
  .menu-button[aria-expanded='true'] { color: var(--night-text); background: #22373b; }
  .menu-button svg { width: 1.15rem; height: 1.15rem; }
  .menu-button .menu-close-icon, .menu-button[aria-expanded='true'] .menu-open-icon { display: none; }
  .menu-button[aria-expanded='true'] .menu-close-icon { display: block; }
  .has-script .menu-button[aria-expanded='false'] + nav { display: none; }
}

@media (max-width: 760px) {
  .hero-inner { min-height: 33rem; padding-block: 3.9rem 6.5rem; }
  .hero-copy { max-width: 88%; }
  .hero-visual { left: 36%; }
  .hero-visual img { width: max(33rem, 82vw); left: 67%; }
  .hero::after { background: linear-gradient(90deg, var(--night) 0%, #0b141bcb 35%, #0b141b30 88%), linear-gradient(0deg, #0b141ba8, transparent 30%); }
  .hero h1 { font-size: clamp(2.75rem, 8.2vw, 4.15rem); }
  .feature { grid-template-columns: 1fr; }
  .feature-image { min-height: 14rem; }
  .feature-image img { width: min(65%, 30rem); }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-card { min-height: 10.5rem; }
  .project-brief, .project-layout, .community-layout, .two-column { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 460px) {
  .btn.btn-nav { font-size: .75rem; padding-inline: .46rem; }
  .hero-inner { min-height: 29.5rem; align-items: start; padding-block: 4.15rem 4.65rem; }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: clamp(2.38rem, 10.1vw, 3.15rem); }
  .hero-copy > p:not(.eyebrow) { margin-top: 1.4rem; }
  .hero-visual { left: 28%; }
  .hero-visual img { width: 27rem; top: 52%; left: 75%; opacity: .65; }
  .hero::after { background: linear-gradient(90deg, #0b141bf5, #0b141bac 44%, #0b141b38 100%), linear-gradient(0deg, #0b141bd6, transparent 40%); }
  .orbit-line { opacity: .65; }
  .image-credit { bottom: .85rem; }
  .section-head { align-items: start; gap: .8rem; }
  .feature-image { min-height: 12.5rem; }
  .feature-image img { width: min(92%, 25rem); }
  .feature-image > div { padding: 1.1rem 1.2rem; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 0; }
  .search-form { grid-template-columns: minmax(0, 1fr) auto; }
  .search-box { grid-column: 1 / -1; }
  .progress > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .project-hero p:not(.crumb), .project-hero h1 { max-width: 100%; }
  .project-hero img { top: -30%; right: -56%; opacity: .55; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.request-card .feature-meta { margin-bottom: .5rem; }
.request-card .feature-meta .eyebrow { margin: 0; }
.vote-row { display: flex; flex-wrap: wrap; gap: .5rem .85rem; align-items: center; color: var(--muted); font-size: .875rem; }
.vote-row > span:first-of-type { color: var(--accent-dark); font-weight: 700; }
.vote-button.is-voted { border-color: #56816c; background: #e3f1e2; }
.request-form { display: grid; gap: .85rem; margin-top: 1rem; }
.request-form > .btn { justify-self: start; }
.field-grid, .credits-grid { display: grid; gap: .8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.credits-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.code-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin: .85rem 0 .5rem; font-weight: 700; }
.code-head .btn { min-height: 2.45rem; }
.api-table > div { display: grid; gap: .55rem; border-top: 1px solid var(--rule); padding: .85rem 0; }
.api-table dt { color: var(--accent-dark); font-weight: 700; }
.api-table dd { margin: 0; }
.steps.task-list { display: grid; gap: .85rem; border: 0; padding: 0; }
.decision-row { margin-top: .85rem; }
.narrow > section + section { margin-top: 1.8rem; }

@media (min-width: 761px) {
  .community-layout > aside:not(:has(form)) { position: sticky; top: 1rem; }
}

@media (max-width: 520px) {
  .field-grid, .credits-grid { grid-template-columns: minmax(0, 1fr); }
}

.pagination { display: flex; gap: .85rem; align-items: center; flex-wrap: wrap; margin-top: 1.25rem; }

.connect-primary { border-color: #bdcfc2; background: #f1f7ef; }
.connect-primary > p { max-width: 41rem; }
.connect-primary .connect-link { padding: .85rem 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.connect-primary .connect-expiry, .connect-guide .connect-compute { color: var(--muted); }
.connect-guide h2 { font-size: clamp(1.85rem, 2.8vw, 2.75rem); }
.connect-steps { margin-block: .95rem; }
.connect-steps strong { color: var(--accent-dark); }
.connect-disclosure > summary { width: fit-content; }
.connect-api, .connect-token { border-top: 1px solid var(--rule); margin-top: 1rem; padding-top: 1rem; }

.expert-page .page-title { margin-bottom: 1.15rem; }
.expert-intro-actions { margin-bottom: clamp(1.4rem, 3vw, 2.25rem); }
.expert-page > .notice { position: sticky; top: .7rem; z-index: 2; padding: .75rem 1rem; }
.expert-page:has(> .notice) :is(#volunteer, #my-interest) { scroll-margin-top: 4rem; }
.expert-process {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) minmax(0, 2.7fr);
  gap: clamp(1.25rem, 5vw, 4rem);
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  padding-block: clamp(1.35rem, 2.75vw, 2.3rem);
  border-block: 1px solid var(--rule);
}
.expert-process-heading h2 { max-width: 13ch; font-size: clamp(1.75rem, 2.6vw, 2.35rem); text-wrap: balance; }
.expert-process-steps { margin: 0; padding-inline-start: 1.55rem; }
.expert-process-steps > li { padding: 0 0 .85rem .35rem; }
.expert-process-steps > li + li { border-top: 1px solid var(--rule); padding-top: .85rem; }
.expert-process-steps > li:last-child { padding-bottom: 0; }
.expert-process-steps > li::marker { color: var(--accent-dark); font-size: .9rem; font-weight: 700; }
.expert-process-steps h3 { display: inline; font: 700 1.05rem/1.4 var(--sans); letter-spacing: -.01em; }
.expert-process-steps p { margin: .2rem 0 0; color: var(--muted); line-height: 1.5; }
.expert-standards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.15rem 0 0; border: 1px solid var(--rule); border-radius: var(--radius); background: #eef4ec; }
.expert-standards > div { min-width: 0; padding: 1.1rem clamp(1rem, 2vw, 1.65rem); }
.expert-standards > div + div { border-left: 1px solid var(--rule); }
.expert-standards dt { font-weight: 700; color: var(--accent-dark); }
.expert-standards dd { margin: .25rem 0 0; color: var(--muted); }
.expert-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.4rem); align-items: start; }
.expert-section-head { margin-bottom: 1rem; }
.expert-section-head p { margin-top: .45rem; color: var(--muted); }
.expert-queues > section + section, .expert-inbox { margin-top: clamp(2rem, 4vw, 3rem); }
.expert-inbox > p { margin-top: .65rem; }
.expert-card-list { display: grid; gap: .8rem; }
.expert-method .feature-meta { margin-bottom: .7rem; }
.expert-method .button-row { margin-top: 1rem; }
.expert-method .button-row > a:not(.btn) { font-weight: 700; }
.expert-volunteer { background: #fbfdfa; }
.expert-volunteer:target, .expert-own:target { outline: 2px solid #9bbca7; outline-offset: 3px; }
.expert-signup > * + * { margin-top: 1rem; }
.expert-form .expert-consent { display: flex; align-items: start; gap: .65rem; margin-block: .3rem; }
.expert-form .expert-consent input { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin: .25rem 0 0; accent-color: var(--accent); }
.expert-form .expert-consent span { font-size: .9rem; }
.expert-form .btn { justify-self: start; }
.expert-interest-list > div { display: flex; align-items: start; justify-content: space-between; gap: .8rem; padding-block: .7rem; border-top: 1px solid var(--rule); }
.expert-own .expert-interest-list > div p:not(.eyebrow, .notice) { margin: .22rem 0 0; color: var(--muted); }
.expert-inbox-details { display: grid; gap: .45rem; margin: .85rem 0 0; }
.expert-inbox-details > div { display: grid; grid-template-columns: minmax(6.5rem, 10rem) minmax(0, 1fr); gap: .55rem; }
.expert-inbox-details dt { font-weight: 700; }
.expert-inbox-details dd { margin: 0; }
.expert-notes { white-space: pre-wrap; }
@media (max-width: 760px) {
  .expert-process, .expert-layout, .expert-standards { grid-template-columns: minmax(0, 1fr); }
  .expert-process-heading h2 { max-width: none; }
  .expert-standards > div + div { border-top: 1px solid var(--rule); border-left: 0; }
}

@media (max-width: 350px) {
  .nav { column-gap: .35rem; }
  .nav .brand { font-size: 1.1rem; gap: .35rem; }
}
