:root {
  --fog: #f2f4f0;
  --paper: #ffffff;
  --evergreen: #12372a;
  --evergreen-deep: #0b281e;
  --ink: #17211c;
  --lichen: #dbe8b3;
  --signal: #df5a3c;
  --line: #bcc6be;
  --line-soft: #dce2dd;
  --muted: #5d6b63;
  --display: "Arial Narrow", "Aptos Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
  --body: Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --utility: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page: min(1240px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--fog); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
[hidden] { display: none !important; }

.site-header { width: var(--page); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 20px; font-weight: 900; letter-spacing: -.035em; white-space: nowrap; }
.brand em { color: var(--muted); font-style: normal; font-weight: 600; }
.brand-mark { width: 37px; height: 37px; border-radius: 3px; background: var(--evergreen); color: var(--paper); display: grid; place-items: center; position: relative; font-family: var(--display); font-weight: 900; }
.brand-mark span { position: absolute; top: 1px; right: 4px; color: var(--lichen); font-family: var(--utility); font-size: 10px; }
.site-header nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); font-size: 13px; font-weight: 700; }
.site-header nav a:not(.submit-nav) { border-bottom: 1px solid transparent; }
.site-header nav a:not(.submit-nav):hover { border-color: currentColor; }
.submit-nav { min-height: 44px; padding: 11px 16px; border: 1px solid var(--evergreen); background: var(--evergreen); color: var(--paper); display: inline-flex; align-items: center; }
.submit-nav:hover { background: var(--evergreen-deep); }

.intro { width: var(--page); min-height: 460px; margin: 0 auto; padding: clamp(56px, 6vw, 82px) 0 clamp(52px, 5vw, 68px); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .5fr); gap: clamp(50px, 10vw, 150px); align-items: end; }
.context-line, .section-index { margin: 0 0 21px; color: var(--muted); font-family: var(--utility); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.context-line::before, .section-index::before { content: ""; display: inline-block; width: 28px; height: 2px; margin: 0 10px 3px 0; background: var(--signal); }
.intro h1, .directory-heading h2, .method-lead h2, .submit-section h2, .detail-content h1 { margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: -.055em; line-height: .95; }
.intro h1 { max-width: 830px; font-size: clamp(52px, 6.2vw, 82px); }
.intro-copy { max-width: 720px; margin: 28px 0 31px; color: #405048; font-size: clamp(18px, 1.8vw, 23px); line-height: 1.48; }
.jump-link { min-height: 44px; display: inline-flex; align-items: center; gap: 34px; padding-bottom: 5px; border-bottom: 2px solid var(--ink); font-weight: 800; }
.jump-link span { color: var(--signal); }
.directory-brief { padding-left: 28px; border-left: 1px solid var(--line); }
.directory-brief p { margin: 0; color: var(--muted); font-size: 14px; }
.directory-brief .brief-count { display: flex; align-items: baseline; gap: 12px; margin-bottom: 13px; color: var(--ink); }
.brief-count strong { font-family: var(--utility); font-size: clamp(44px, 5vw, 68px); line-height: 1; letter-spacing: -.08em; }
.brief-count span { font-size: 13px; font-weight: 800; text-transform: uppercase; }
.directory-brief .kept-line { margin-top: 38px; color: var(--evergreen); font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.15; }

.opportunities-section { padding: clamp(70px, 8vw, 108px) max(24px, calc((100vw - 1240px) / 2)) 120px; background: var(--paper); border-top: 8px solid var(--evergreen); }
.directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 42px; }
.directory-heading h2, .method-lead h2, .submit-section h2 { font-size: clamp(40px, 5vw, 66px); }
.directory-heading > p { max-width: 390px; margin: 0 0 7px; color: var(--muted); }
.filter-bar { display: grid; grid-template-columns: minmax(230px, 1.35fr) .7fr .9fr auto auto; gap: 12px; align-items: end; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-bar label:not(.check-label) { display: grid; gap: 7px; }
.filter-bar label > span:first-child { color: var(--muted); font-family: var(--utility); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.filter-bar input[type="text"], .filter-bar input:not([type]), .filter-bar select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--ink); }
.filter-bar input:hover, .filter-bar select:hover { border-color: var(--evergreen); }
.check-label { min-height: 46px; display: flex; align-items: center; gap: 9px; padding: 0 4px; white-space: nowrap; cursor: pointer; }
.check-label input { width: 18px; height: 18px; accent-color: var(--evergreen); }
.check-label span { font-size: 13px; font-weight: 700; }
.reset-button, .empty-state button { min-height: 46px; padding: 10px 14px; border: 1px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink); font-weight: 800; cursor: pointer; }
.reset-button:disabled { color: #89938d; border-color: var(--line-soft); cursor: default; }
.reset-button:not(:disabled):hover, .empty-state button:hover { background: var(--ink); color: white; }
.result-summary { padding: 27px 0 16px; color: var(--muted); font-family: var(--utility); font-size: 12px; }
.result-summary strong { color: var(--ink); font-size: 18px; }

.opportunity-list { border-top: 1px solid var(--ink); }
.opportunity-row { display: grid; grid-template-columns: 126px minmax(0, 1fr) 190px; gap: clamp(24px, 4vw, 58px); padding: 32px 0 34px; border-bottom: 1px solid var(--line-soft); transition: background-color .15s ease; }
.opportunity-row:hover { background: linear-gradient(90deg, rgba(219, 232, 179, .27), transparent 70%); }
.date-rail { align-self: start; padding-top: 3px; font-family: var(--utility); }
.date-rail time { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.date-rail span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.row-main { min-width: 0; overflow-wrap: anywhere; }
.row-flags { min-height: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; margin-bottom: 11px; }
.status { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 7px; border-radius: 99px; background: #e5e9e6; color: var(--ink); font-family: var(--utility); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status-open { background: var(--lichen); }
.status-announced { background: #f6dfb7; }
.field-label, .beginner-label { color: var(--evergreen); font-family: var(--utility); font-size: 10px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.beginner-label { color: #315c70; }
.row-main h3 { max-width: 810px; margin: 0; font-family: var(--display); font-size: clamp(24px, 2.7vw, 34px); font-weight: 900; letter-spacing: -.035em; line-height: 1.05; }
.row-main h3 a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.row-main h3 a:hover { text-decoration: underline; }
.organizer { margin: 7px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.row-description { max-width: 800px; margin: 17px 0; color: #435149; font-size: 14px; line-height: 1.58; overflow-wrap: anywhere; }
.row-details { display: flex; flex-wrap: wrap; gap: 9px 26px; margin: 0; }
.row-details div { display: flex; gap: 6px; }
.row-details dt { color: var(--muted); font-family: var(--utility); font-size: 10px; text-transform: uppercase; }
.row-details dd { margin: 0; font-size: 11px; font-weight: 700; }
.eligibility { max-width: 800px; margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.eligibility strong { color: var(--ink); }
.row-action { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; min-width: 0; }
.deadline-note { margin: 0 auto auto 0; font-family: var(--utility); font-size: 13px; font-weight: 800; }
.deadline-note span { display: block; margin-bottom: 4px; color: var(--signal); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.official-link, .submit-link { width: 100%; min-height: 46px; padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--evergreen); color: var(--paper); font-size: 12px; font-weight: 800; }
.official-link:hover, .submit-link:hover { background: var(--evergreen-deep); }
.official-link span, .submit-link span { color: var(--lichen); font-family: var(--utility); }
.detail-link { margin: 10px 0 0; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 800; }
.verified { margin-top: 10px; color: var(--muted); font-family: var(--utility); font-size: 9px; }
.empty-state { padding: clamp(46px, 8vw, 100px) 0; border-bottom: 1px solid var(--line); }
.empty-state strong { font-family: var(--display); font-size: 34px; }
.empty-state p { color: var(--muted); }
.empty-state > div { display: flex; gap: 12px; flex-wrap: wrap; }
.empty-state a { min-height: 46px; padding: 11px 14px; display: inline-flex; align-items: center; background: var(--evergreen); color: white; font-weight: 800; }

.method-section { padding: clamp(76px, 9vw, 122px) max(24px, calc((100vw - 1240px) / 2)); display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(60px, 10vw, 150px); background: var(--evergreen); color: var(--paper); }
.method-section .section-index { color: #afc3b8; }
.method-lead h2 { max-width: 490px; }
.method-list { margin: 0; }
.method-list > div { display: grid; grid-template-columns: 125px 1fr; gap: 24px; padding: 20px 0 24px; border-top: 1px solid rgba(255, 255, 255, .24); }
.method-list > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, .24); }
.method-list dt { color: var(--lichen); font-family: var(--utility); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.method-list dd { max-width: 580px; margin: 0; color: #c5d2cb; font-size: 14px; line-height: 1.6; }
.submit-section { padding: clamp(70px, 8vw, 112px) max(24px, calc((100vw - 1240px) / 2)); display: grid; grid-template-columns: 1fr .75fr; gap: clamp(60px, 10vw, 150px); align-items: end; background: var(--lichen); }
.submit-section > div:last-child > p { max-width: 540px; margin: 0 0 26px; font-size: 16px; line-height: 1.65; }
.submit-link { width: max-content; min-width: 220px; }
footer { padding: 34px max(24px, calc((100vw - 1240px) / 2)); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; background: var(--evergreen-deep); color: white; }
.footer-brand em { color: #9eb0a6; }
footer > p { margin: 0; color: #9eb0a6; text-align: center; font-size: 12px; }
footer > div:last-child { display: flex; gap: 22px; font-size: 12px; font-weight: 700; }
footer a:hover { color: var(--lichen); }

.detail-page { width: var(--page); min-height: calc(100vh - 160px); margin: 0 auto; padding: 48px 0 100px; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: clamp(45px, 7vw, 90px); border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 800; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .55fr); gap: clamp(55px, 9vw, 135px); align-items: start; }
.detail-flags { display: flex; flex-wrap: wrap; gap: 10px 15px; align-items: center; margin-bottom: 22px; }
.detail-flags .verified { margin: 0 0 0 auto; }
.detail-content h1 { max-width: 900px; font-size: clamp(46px, 5.8vw, 74px); overflow-wrap: anywhere; }
.detail-organizer { margin: 18px 0 0; color: var(--evergreen); font-size: 16px; font-weight: 800; }
.detail-deck { max-width: 790px; margin: 31px 0; color: #405048; font-size: clamp(18px, 2vw, 23px); line-height: 1.55; }
.why-section { max-width: 720px; margin: 42px 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-section h2 { margin: 0 0 8px; font-family: var(--utility); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.why-section p { margin: 0; color: var(--muted); }
.detail-action { width: max-content; min-width: 235px; }
.source-note { max-width: 520px; margin-top: 15px; color: var(--muted); font-size: 11px; }
.detail-facts { position: sticky; top: 24px; padding: 25px 26px 28px; border-top: 6px solid var(--signal); background: var(--paper); }
.facts-heading { margin: 0 0 8px; font-family: var(--display); font-size: 24px; font-weight: 900; }
.detail-facts dl { margin: 0; }
.detail-facts dl div { padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.detail-facts dt { color: var(--muted); font-family: var(--utility); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.detail-facts dd { margin: 5px 0 0; font-size: 13px; line-height: 1.45; }

@media (max-width: 1024px) {
  :root { --page: min(100% - 40px, 940px); }
  .intro { grid-template-columns: 1fr 260px; gap: 55px; }
  .site-header nav a:not(.submit-nav) { display: none; }
  .filter-bar { grid-template-columns: 1.25fr .7fr .9fr; }
  .check-label, .reset-button { align-self: center; }
  .opportunity-row { grid-template-columns: 104px minmax(0, 1fr) 170px; gap: 28px; }
  .method-section, .submit-section { gap: 60px; }
}

@media (max-width: 768px) {
  :root { --page: calc(100% - 36px); }
  .intro { min-height: auto; grid-template-columns: 1fr; gap: 52px; }
  .intro h1 { max-width: 660px; }
  .directory-brief { max-width: 430px; }
  .directory-heading { align-items: start; flex-direction: column; gap: 15px; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .opportunity-row { grid-template-columns: 88px minmax(0, 1fr); gap: 22px; }
  .row-action { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
  .deadline-note { width: 100%; }
  .official-link { width: max-content; min-width: 205px; }
  .detail-link { margin: 0; }
  .verified { margin: 0; }
  .method-section, .submit-section { grid-template-columns: 1fr; gap: 48px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-facts { position: static; }
  footer { grid-template-columns: 1fr; gap: 18px; }
  footer > p { text-align: left; }
}

@media (max-width: 520px) {
  :root { --page: calc(100% - 28px); }
  .site-header { min-height: 68px; gap: 12px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 34px; height: 34px; }
  .site-header .submit-nav { min-height: 40px; padding: 9px 10px; font-size: 10px; }
  .intro { padding: 56px 0 62px; gap: 45px; }
  .intro h1 { font-size: clamp(43px, 14vw, 62px); }
  .intro-copy { font-size: 17px; }
  .directory-brief { padding-left: 19px; }
  .opportunities-section { padding: 62px 14px 85px; }
  .directory-heading h2, .method-lead h2, .submit-section h2 { font-size: 39px; }
  .filter-bar { grid-template-columns: 1fr; gap: 14px; }
  .search-field { grid-column: auto; }
  .check-label { min-height: 40px; }
  .reset-button { width: 100%; }
  .opportunity-row { grid-template-columns: 1fr; gap: 17px; padding: 27px 0 31px; }
  .date-rail { display: flex; align-items: baseline; gap: 8px; }
  .date-rail time { font-size: 18px; }
  .date-rail span { margin: 0; }
  .row-main h3 { font-size: 27px; }
  .row-description { font-size: 13px; }
  .row-details { gap: 8px 17px; }
  .row-action { grid-column: auto; display: grid; grid-template-columns: 1fr auto; }
  .deadline-note { grid-column: 1 / -1; }
  .official-link { width: 100%; min-width: 0; }
  .detail-link { justify-self: end; }
  .row-action .verified { grid-column: 1 / -1; }
  .method-section, .submit-section { padding-left: 18px; padding-right: 18px; }
  .method-list > div { grid-template-columns: 1fr; gap: 8px; }
  .submit-link { width: 100%; min-width: 0; }
  .detail-page { padding-top: 28px; }
  .detail-flags .verified { width: 100%; margin: 0; }
  .detail-content h1 { font-size: 44px; }
  .detail-action { width: 100%; min-width: 0; }
  .detail-facts { padding: 22px 18px; }
  footer > div:last-child { flex-wrap: wrap; }
}

@media (max-width: 340px) {
  :root { --page: calc(100% - 20px); }
  .brand > span:last-child { font-size: 16px; }
  .site-header .submit-nav { max-width: 104px; white-space: normal; line-height: 1.15; }
  .intro h1 { font-size: 42px; }
  .opportunities-section { padding-left: 10px; padding-right: 10px; }
  .row-action { grid-template-columns: 1fr; }
  .detail-link { justify-self: start; }
}

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