/* TechCap Intelligence — Policy & Capital Intelligence page. Builds on style.css tokens; nothing here changes the main page. */
body.policy .lockup { text-decoration: none; color: inherit; }
.top-links { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.btn.is-here { cursor: default; }
.ptabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.ptabs a { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 8px 8px 0 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ptabs a:hover { color: var(--fg); background: var(--soft); }
.ptabs a.on { color: var(--fg); border-bottom-color: var(--label); }
.ptabs .count:not(:empty) { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px; border-radius: 999px; background: var(--soft); font-size: 11px; text-align: center; color: var(--fg); }
.pbar { top: env(safe-area-inset-top, 0px); }
.pbar label.off { opacity: .45; }
#view { display: grid; gap: 18px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }

/* status and evidence badges */
.st { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; white-space: nowrap; letter-spacing: .01em; }
.st.announced, .st.forthcoming { background: color-mix(in srgb, var(--c4) 30%, transparent); }
.st.proposed { background: color-mix(in srgb, var(--c2) 22%, transparent); }
.st.adopted { background: color-mix(in srgb, var(--c3) 28%, transparent); }
.st.in-force, .st.open, .st.rolling, .st.continuous { background: color-mix(in srgb, var(--good) 20%, transparent); color: var(--good); }
.st.under-implementation { background: color-mix(in srgb, var(--c1) 22%, transparent); }
.st.completed, .st.closed { background: var(--soft); color: var(--muted); }
.st.new { background: color-mix(in srgb, var(--c1) 22%, transparent); }
.st.update { background: color-mix(in srgb, var(--c2) 22%, transparent); }
.st.unverified { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.st.historical { background: var(--soft); color: var(--muted); }
.ev { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 1px 7px; border-radius: 4px; white-space: nowrap; }
.ev.direct { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.ev.documented { background: color-mix(in srgb, var(--c2) 18%, transparent); }
.ev.association { background: color-mix(in srgb, var(--c4) 30%, transparent); }
.ev.influence { background: color-mix(in srgb, var(--c3) 26%, transparent); }
.ev.fact { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.ev.calc { background: color-mix(in srgb, var(--c2) 18%, transparent); }
.ev.interp { background: color-mix(in srgb, var(--c3) 26%, transparent); }
.ev.hyp { background: color-mix(in srgb, var(--c4) 30%, transparent); }
.lv { font-size: 11px; color: var(--muted); }

/* lists and cards */
.plist { display: grid; gap: 10px; }
.pitem { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--panel); display: grid; gap: 6px; min-width: 0; }
.pitem h3 { margin: 0; font-size: 15px; font-weight: 700; }
.pitem h3 a { text-decoration: none; }
.pitem h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pitem .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12px; color: var(--muted); }
.pitem p { margin: 0; font-size: 14px; }
.pitem .an { font-size: 13.5px; }
.pitem .an b { color: var(--label); }
.save { all: unset; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.save:hover, .save.on { color: var(--fg); border-color: var(--fg); }
.save:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
a.tag { text-decoration: none; color: var(--fg); }
a.tag:hover { text-decoration: underline; }
.two { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.kv { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); gap: 6px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 6px; } }
.src { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; font-size: 13px; }
.src a { overflow-wrap: anywhere; }
.timeline { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; border-left: 2px solid var(--line); }
.timeline li { padding-left: 12px; position: relative; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--panel); border: 2px solid var(--c1); }
.timeline li.future::before { border-color: var(--c4); }
.timeline .d { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; margin-right: 6px; }
.box { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--soft); font-size: 13.5px; }
.box h3 { margin: 0 0 6px; font-size: 13px; }
.box ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 4px; }
.box.warn { background: color-mix(in srgb, var(--bad) 7%, transparent); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.legend-ev { display: grid; gap: 6px; font-size: 13px; }
.legend-ev div { display: flex; gap: 8px; align-items: baseline; }
.search-in { width: 100%; }
.claim { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: baseline; font-size: 14px; }
.claim + .claim { margin-top: 8px; }
.claim .cite { font-size: 12px; color: var(--muted); }
.claim .cite a { color: var(--muted); }
.ins-sec { margin: 14px 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.aud { display: grid; gap: 12px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.aud h4 { margin: 0 0 4px; font-size: 13px; }
.aud p { margin: 0; font-size: 14px; }
.bars { display: grid; gap: 6px; }
.bar2 { display: grid; grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr) 4.5rem; gap: 8px; align-items: center; font-size: 13px; }
.bar2 .t { height: 10px; background: var(--soft); border-radius: 5px; overflow: hidden; position: relative; }
.bar2 .t span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; }
.bar2 .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.small { font-size: 12px; }
.loading { color: var(--muted); font-size: 13px; padding: 12px 0; }
.pitem .tag { white-space: normal; }
.chart svg { max-height: 320px; }
.pitem p, .pitem h3 { overflow-wrap: anywhere; }
.src .lv, .meta .lv, .claim .lv { white-space: normal; }

/* ---------- v2: three sections, two main filters, scorecard, methodology ---------- */
.ptabs { align-items: end; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.ptabs > a { font-size: 16px; padding: 10px 16px 9px; border-bottom-width: 3px; white-space: nowrap; }
.ptabs > a small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.ptabs-end { margin-left: auto; display: flex; gap: 2px; }
.ptabs .minor { font-size: 14px; padding: 8px 10px; white-space: nowrap; }
.ptabs a.on small { color: var(--fg); }
.pfilters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.pfilters select, .pfilters input { min-width: 12rem; min-height: 38px; }
.pmore { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.linkbtn { all: unset; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; padding: 8px 2px; }
.linkbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.fnote { margin: 0; width: 100%; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .pfilters label { flex: 1 1 100%; } .pfilters select, .pfilters input { min-width: 0; width: 100%; } .ptabs > a small { display: none; } }

/* scorecard */
.sc-top { display: grid; gap: 18px; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
@media (max-width: 860px) { .sc-top { grid-template-columns: 1fr; } }
.sc-top h2 { margin: 0 0 8px; font-size: 20px; }
.callout { border-left: 4px solid var(--label); padding: 4px 0 4px 12px; margin: 0 0 10px; font-size: 17px; line-height: 1.45; }
.callout b, .read b { color: var(--label); }
.tally { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 8px 0; }
.howto ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.howto li { counter-increment: s; position: relative; padding-left: 36px; font-size: 14px; }
.howto li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--head); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.howto li b { display: block; font-size: 15px; }
.vchip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 11px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.v-ahead { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.v-inline { background: var(--soft); color: var(--fg); }
.v-behind { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.v-early { background: color-mix(in srgb, var(--c4) 26%, transparent); color: var(--fg); }
.conf { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.conf b { color: var(--fg); }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--fg); }
.sgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.scard { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--panel); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.srow { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.scard h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.scard h3 a { text-decoration: none; }
.scard h3 a:hover { text-decoration: underline; }
.scard .when { font-size: 13px; font-weight: 500; color: var(--muted); }
.scard .goal, .scard .measure { margin: 0; font-size: 14px; }
.scard .goal { color: var(--muted); }
.scard .goal b { color: var(--fg); }
.scard .measure { border-top: 1px solid var(--line); padding-top: 10px; }
.scard .measure b { color: var(--label); }
.fit { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: var(--soft); white-space: nowrap; cursor: help; }
.sbars { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; align-items: center; font-size: 12px; padding-right: 3.5rem; }
.sbars .lab { color: var(--muted); white-space: nowrap; }
.sbars > div { display: grid; gap: 3px; }
.sbar { height: 12px; border-radius: 3px; position: relative; min-width: 2px; }
.sbar em { position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sbar.t1 em, .sbar.c1 em { font-weight: 700; }
.t0 { background: color-mix(in srgb, var(--head) 30%, var(--panel)); } .t1 { background: var(--head); }
.c0 { background: color-mix(in srgb, var(--c3) 35%, var(--panel)); } .c1 { background: var(--c3); }
@media (prefers-color-scheme: dark) { .t1 { background: #C9C0FD; } .t0 { background: #5A4F80; } .c1 { background: var(--c5); } .c0 { background: #2D5A53; } }
.slegend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.slegend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.read { margin: 0; font-size: 14.5px; }
.scard details { margin-top: auto; border-top: 1px solid var(--line); padding-top: 8px; font-size: 13.5px; }
.scard summary, .method summary { cursor: pointer; font-weight: 600; }
.scard details dl { display: grid; grid-template-columns: minmax(6.5rem, 8rem) minmax(0, 1fr); gap: 5px 12px; margin: 10px 0 6px; }
.scard details dt { color: var(--muted); }
.scard details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .scard details dl { grid-template-columns: 1fr; } .scard details dt { margin-top: 4px; } }
.fo { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); margin-bottom: 10px; }
.fo > div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; }
.fo-l { font-size: 13px; color: var(--muted); }
.fo-n { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.fo-n .big { font-size: 28px; font-weight: 700; color: var(--label); font-variant-numeric: tabular-nums; min-width: 4.5rem; }
.fo-n.dim .big { color: var(--muted); }
.ns { display: grid; gap: 12px 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); font-size: 14px; }
.ns b { display: block; }
.explore { margin: 0; font-size: 14px; color: var(--muted); }
.explore a { font-weight: 700; color: var(--fg); }

/* policies & funding */
.ptools { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; justify-content: space-between; margin-bottom: 8px; }
.segs { display: flex; flex-wrap: wrap; gap: 6px; }
.seg { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--panel); color: var(--fg); border-radius: 999px; padding: 6px 13px; cursor: pointer; }
.seg[aria-pressed="true"] { background: var(--head); border-color: var(--head); color: #fff; }
.psearch input { min-width: 16rem; min-height: 38px; }
@media (max-width: 560px) { .psearch, .psearch input { width: 100%; min-width: 0; } }
.plist2 { display: grid; }
.pol { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; min-width: 0; }
.pol:last-child { border-bottom: 0; }
.pol-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pol h3 { margin: 0; font-size: 17px; }
.pol h3 a { text-decoration: none; } .pol h3 a:hover { text-decoration: underline; }
.pol p { margin: 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.pchip { display: grid; font-size: 12.5px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: var(--bg); text-decoration: none; color: var(--muted); max-width: 100%; }
.pchip b { font-size: 13.5px; color: var(--fg); }
.pchip:hover { border-color: var(--fg); }
.pchip .open { color: var(--good); font-weight: 700; } .pchip .soon { font-weight: 700; color: var(--fg); }

/* methodology */
.method { max-width: 920px; }
.method h3 { margin: 26px 0 8px; font-size: 18px; scroll-margin-top: 12px; }
.method p, .method li { font-size: 15px; max-width: 78ch; }
.method ul, .method ol { padding-left: 1.2rem; display: grid; gap: 6px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.toc a { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; text-decoration: none; }
.toc a:hover { border-color: var(--fg); }
.formula { font-weight: 700; padding: 12px 14px; border-radius: 10px; background: var(--soft); border-left: 4px solid var(--label); }
.worked { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-top: 10px; }
.worked h4 { margin: 0 0 6px; font-size: 15px; }
.method code { font-size: 13px; background: var(--soft); padding: 1px 5px; border-radius: 4px; }
.stack { display: grid; gap: 10px; align-content: start; }
@media (max-width: 560px) {
  .ptabs { flex-wrap: wrap; overflow: visible; }
  .ptabs > a { font-size: 15px; padding: 8px 10px; }
  .ptabs-end { margin-left: 0; width: 100%; border-top: 1px solid var(--line); }
}
