/* Nacia Forge brand: Playfair Display headings, Lato body, teal #06B188, charcoal #333030.
   Layout: fixed white header, charcoal hero holding the finder sentence, off-white list band, white methodology band. */
:root {
  --teal: #06B188;
  --teal-ink: #037a5f;        /* teal dark enough for small text on light backgrounds */
  --teal-btn: #04876a;        /* button fill that keeps white text readable */
  --teal-light: #e6f9f4;
  --charcoal: #333030;
  --charcoal-deep: #2a2727;
  --ink: #333030;
  --ink-mid: #4a4646;
  --ink-soft: #6b6868;
  --page: #f8f7f5;
  --surface: #ffffff;
  --header: rgba(255,255,255,0.97);
  --rule: rgba(51,48,48,0.12);
  --active: #17663a;  --active-bg: #dff3e7;
  --upcoming: #1d4b99; --upcoming-bg: #e3ebfa;
  --unknown: #7a5b00; --unknown-bg: #fbf0cc;
  --closed: #9b2c2c;  --closed-bg: #f9e3e3;
  --focus: #037a5f;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --teal-ink: #3fd1ab; --teal-btn: #06B188; --teal-light: #173a32;
    --charcoal-deep: #151313; --ink: #f1efec; --ink-mid: #d6d2cd; --ink-soft: #a9a39d;
    --page: #1d1b1b; --surface: #262323; --header: rgba(30,28,28,0.97); --rule: rgba(255,255,255,0.12);
    --active: #8fe0ad; --active-bg: #173826; --upcoming: #a6c2f5; --upcoming-bg: #1b2b47;
    --unknown: #f0d175; --unknown-bg: #3a3015; --closed: #f2a7a7; --closed-bg: #431f22; --focus: #3fd1ab;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --teal-ink: #3fd1ab; --teal-btn: #06B188; --teal-light: #173a32;
  --charcoal-deep: #151313; --ink: #f1efec; --ink-mid: #d6d2cd; --ink-soft: #a9a39d;
  --page: #1d1b1b; --surface: #262323; --header: rgba(30,28,28,0.97); --rule: rgba(255,255,255,0.12);
  --active: #8fe0ad; --active-bg: #173826; --upcoming: #a6c2f5; --upcoming-bg: #1b2b47;
  --unknown: #f0d175; --unknown-bg: #3a3015; --closed: #f2a7a7; --closed-bg: #431f22; --focus: #3fd1ab;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.7; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--teal); }
a { color: var(--teal-ink); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section-label { display: block; font-size: .72rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 14px; }

/* ── Header (matches naciaforge.com) ── */
.nf-header { position: sticky; top: 0; z-index: 50; background: var(--header); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.nf-header-inner { max-width: 1200px; margin: 0 auto; height: 68px; display: flex; align-items: center; gap: 16px;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.nf-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.nf-logo { height: 40px; width: auto; display: block; }
.logo-on-dark { display: none; }
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-on-light { display: none; }
  :root:not([data-theme="light"]) .logo-on-dark { display: block; }
}
.nf-wordmark { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.nf-wordmark em { font-style: italic; color: var(--teal); }
.nf-product { font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  padding-left: 12px; margin-left: 2px; border-left: 1px solid var(--rule); white-space: nowrap; }
.nf-nav { display: flex; gap: 4px; margin-left: auto; }
.nf-nav-tab { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft);
  text-decoration: none; padding: 8px 12px; border-radius: 3px; white-space: nowrap; transition: color .2s, background .2s; }
.nf-nav-tab:hover { color: var(--teal-ink); background: var(--teal-light); }
.nf-theme { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 3px;
  border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; }
.nf-theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ── Hero (charcoal band with teal glow, as on the main site) ── */
.hero { position: relative; overflow: hidden; background: var(--charcoal); color: #fff; padding-block: 64px 56px; }
:root[data-theme="dark"] .hero { background: var(--charcoal-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero { background: var(--charcoal-deep); } }
.hero-glow { position: absolute; inset: 0; background:
  radial-gradient(ellipse 80% 60% at 75% 40%, rgba(6,177,136,0.14) 0%, transparent 70%),
  radial-gradient(ellipse 40% 80% at 8% 95%, rgba(6,177,136,0.08) 0%, transparent 60%); }
.hero-line { position: absolute; top: 0; right: 16%; width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(6,177,136,0.28) 30%, rgba(6,177,136,0.28) 70%, transparent); }
.hero-inner { position: relative; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; font-size: .72rem; font-weight: 900; letter-spacing: .22em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 22px; }
.hero-eyebrow::before { content: ""; width: 32px; height: 1.5px; background: var(--teal); }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); font-weight: 700; letter-spacing: -0.02em; max-width: 20ch; color: #fff; }
.hero-sub { margin: 20px 0 0; max-width: 62ch; font-size: clamp(1rem, .95rem + .3vw, 1.12rem); font-weight: 300; color: rgba(255,255,255,0.74); }

.finder { margin-top: 40px; padding: 28px 28px 24px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  border-left: 3px solid var(--teal); border-radius: 3px; }
.sentence { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 1rem + 1.5vw, 2.05rem); line-height: 1.55; color: #fff; }
.pick select {
  font: inherit; font-style: italic; color: var(--teal); background: transparent; cursor: pointer;
  border: 0; border-bottom: 2px solid rgba(6,177,136,0.7); border-radius: 0; padding: 0 1.05em 0 .08em; margin: 0 .04em;
  appearance: none; -webkit-appearance: none; max-width: 100%;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - .5em) 60%, calc(100% - .3em) 60%; background-size: .2em .2em; background-repeat: no-repeat;
}
.pick select:hover { border-bottom-color: var(--teal); background-color: rgba(6,177,136,0.1); }
.pick select option { color: #333030; background: #fff; font-family: var(--sans); font-style: normal; font-size: 1rem; }
.finder-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.search { flex: 1 1 22rem; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 3px; padding: 0 14px; }
.search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #6b6868; stroke-width: 2; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: #333030; font: inherit; padding: .8rem 0; }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--teal); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: rgba(255,255,255,0.78); cursor: pointer; }
.check input { width: 1.05rem; height: 1.05rem; accent-color: var(--teal); }

.hero-stats { display: flex; flex-wrap: wrap; margin: 40px 0 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stats div { flex: 1 1 10rem; padding-right: 28px; margin-right: 28px; border-right: 1px solid rgba(255,255,255,0.1); }
.hero-stats div:last-child { border-right: 0; margin-right: 0; }
.hero-stats dt { order: 2; font-size: .8rem; color: rgba(255,255,255,0.55); }
.hero-stats dd { margin: 0; font-family: var(--serif); font-size: 1.85rem; font-weight: 700; color: var(--teal); line-height: 1.2; font-variant-numeric: tabular-nums; }
.hero-stats div { display: flex; flex-direction: column-reverse; }

/* ── Programs band ── */
.programs { padding-block: 40px 72px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.summary { margin: 0; color: var(--ink-soft); }
.summary strong { color: var(--ink); font-family: var(--serif); font-size: 1.2rem; }
.toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.sort select { font: inherit; font-size: .95rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule); border-radius: 3px; padding: .5rem .7rem; }
.btn-outline, .btn-primary, .btn-secondary { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: .8rem;
  font-weight: 900; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-radius: 3px; cursor: pointer; padding: .75rem 1.2rem; }
.btn-outline { color: var(--teal-ink); background: transparent; border: 1.5px solid var(--teal); }
.btn-outline:hover { background: var(--teal-btn); border-color: var(--teal-btn); color: #fff; }
.btn-primary { color: #fff; background: var(--teal-btn); border: 0; }
.btn-primary:hover { filter: brightness(.92); }
.btn-secondary { color: var(--ink); background: transparent; border: 1.5px solid var(--rule); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-ink); }

.list-head, .row-main { display: grid; grid-template-columns: minmax(0, 1fr) 9.5rem 11.5rem 10rem; gap: 1.25rem; align-items: start; }
.list-head { padding: 0 22px 10px 25px; font-size: .7rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.row { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid transparent; border-radius: 3px; transition: border-color .2s, box-shadow .2s; }
.row:hover { border-left-color: var(--teal); box-shadow: 0 4px 18px rgba(0,0,0,0.06); }
.row.is-open { border-left-color: var(--teal); box-shadow: 0 6px 24px rgba(0,0,0,0.07); }
.row-main { width: 100%; text-align: left; background: none; border: 0; color: inherit; font: inherit; padding: 20px 22px; cursor: pointer; }
.name { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.14rem; line-height: 1.3; color: var(--ink); }
.org { display: block; color: var(--ink-soft); font-size: .92rem; margin-top: 4px; line-height: 1.45; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: .18rem .55rem; border-radius: 3px; background: var(--teal-light); color: var(--teal-ink); }
.tag.muted { background: transparent; border: 1px solid var(--rule); color: var(--ink-soft); font-weight: 400; letter-spacing: 0; }
.amount { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; line-height: 1.45; display: block; }
.amount.long { font-weight: 400; font-size: .92rem; }
.amount.none { font-weight: 400; color: var(--ink-soft); }
.where { color: var(--ink-soft); font-size: .92rem; line-height: 1.45; display: block; }
.cell-label { display: none; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 900; letter-spacing: .04em; padding: .22rem .6rem; border-radius: 3px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-active { color: var(--active); background: var(--active-bg); }
.s-upcoming { color: var(--upcoming); background: var(--upcoming-bg); }
.s-unknown { color: var(--unknown); background: var(--unknown-bg); }
.s-closed { color: var(--closed); background: var(--closed-bg); }

.detail { padding: 4px 22px 24px; border-top: 1px solid var(--rule); margin: 0 22px; padding-left: 0; padding-right: 0; }
.note { margin: 18px 0; padding: 12px 16px; border-left: 3px solid var(--teal); background: var(--teal-light); color: var(--ink-mid); font-size: .95rem; line-height: 1.6; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 16px 32px; margin: 0; }
.detail-grid div { min-width: 0; }
.detail dt { font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.detail dd { margin: 4px 0 0; color: var(--ink-mid); overflow-wrap: anywhere; line-height: 1.6; }
.detail .wide { grid-column: 1 / -1; }
.cell-muted { color: var(--ink-soft); font-style: italic; }
.stale { color: var(--unknown); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.empty { padding: 40px 28px; background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--teal); border-radius: 3px; }
.empty h2 { font-size: 1.4rem; }
.empty p { color: var(--ink-mid); margin: 10px 0 20px; }

/* ── Methodology ── */
.method { background: var(--surface); border-top: 1px solid var(--rule); padding-block: 72px; }
.method-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.method h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
.method-lead { margin: 18px 0 0; color: var(--ink-mid); font-size: 1.05rem; max-width: 52ch; }
.method-note { margin: 22px 0 0; padding-left: 18px; border-left: 3px solid var(--teal); color: var(--ink-soft); font-style: italic; max-width: 52ch; }
.statuses { margin: 0; display: grid; gap: 14px; }
.statuses div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; align-items: start; padding: 14px 16px; background: var(--page); border-radius: 3px; }
.statuses dd { margin: 0; color: var(--ink-mid); font-size: .95rem; line-height: 1.55; }

/* ── Footer ── */
.nf-footer { background: var(--charcoal); color: rgba(255,255,255,0.62); padding-block: 40px 48px; font-size: .88rem; }
:root[data-theme="dark"] .nf-footer { background: var(--charcoal-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nf-footer { background: var(--charcoal-deep); } }
.footer-inner { display: grid; gap: 8px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 10px; }
.nf-footer p { margin: 0; max-width: 72ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px !important; }
.footer-links a { color: var(--teal); text-decoration: none; font-weight: 700; }
.footer-links a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .nf-nav { display: none; }
  .nf-theme { margin-left: auto; }
  .method-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .list-head { display: none; }
  .row-main { grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 18px; }
  .row-main > :first-child { grid-column: 1 / -1; }
  .cell-label { display: block; font-size: .66rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
  .detail { margin: 0 18px; }
  .finder { padding: 20px 18px; }
  .hero { padding-block: 44px 40px; }
  .hero-stats div { padding-right: 16px; margin-right: 16px; }
  .hero-stats dd { font-size: 1.45rem; }
  .statuses div { grid-template-columns: 1fr; gap: 6px; }
  .toolbar-actions { width: 100%; justify-content: space-between; }
}
@media (max-width: 480px) {
  .nf-product { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .detail { animation: open .2s ease-out; }
  @keyframes open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}
