/* QuestionTheBill.com — Follow the company (js/companies.js). Uses the variables and components of css/site.css. */

/* ---- header strip: the organization's name on the amber field ---- */
.page-head.co-wait > * { visibility: hidden; }
.page-head.co-head h1 { font-size: clamp(44px, 6.6vw, 96px); overflow-wrap: anywhere; margin-bottom: 16px; }
.co-head .crumb { line-height: 1.6; }
.co-head .co-type { margin: 0 0 12px; }
.co-head a.stage { margin: 0; text-decoration: none; background: #fff; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; font-size: 12.5px; }
.co-head a.stage:hover { background: #14110f; color: #fff; }
.page-head.co-head p.co-pacs { font: 500 14px/1.6 var(--mono); max-width: 60em; margin: 0 0 8px; }
.co-pacs a { font-weight: 700; display: inline-block; padding: 13px 0; margin: -13px 0; }
.co-id { font: 400 12.5px/1.4 var(--mono); opacity: .85; white-space: nowrap; }
.page-head.co-head p.co-note { font-size: 16px; max-width: 52em; margin: 0; }

/* ---- the list of organizations ---- */
.co-find { margin-bottom: 26px; border-top-width: 10px; box-shadow: var(--lift); padding-top: clamp(14px, 2.2vw, 24px); padding-bottom: clamp(14px, 2.2vw, 24px); }
.co-find .field { max-width: 560px; margin-bottom: 20px; }
.co-find .picks { margin-bottom: 0; }
.co-find .pick { display: inline-flex; align-items: center; gap: 8px; }
.pick i { font: 600 11.5px/1 var(--mono); font-style: normal; letter-spacing: 0; padding: 4px 6px 3px; border-radius: 2px; background: var(--stk-y); color: #14110f; }
.co-lab { font: 600 14px/1.45 var(--sans); margin: 0 0 6px; }
.co-foot { margin-top: 18px; max-width: 56em; }

/* tables on this page: every column sorts, so the last header keeps its button */
.co-table thead th:last-child { padding: 0; }
.co-table td.num .fig-v { font-weight: 600; }
.co-index tbody th { min-width: 280px; }
.co-table thead th:nth-child(n+3), .co-index td.num { text-align: right; }
.co-index thead th:nth-child(n+3) button, .co-mt thead th:last-child button { text-align: right; }
.co-mt td.num { text-align: right; }
.co-mt thead th:nth-child(n+3) { text-align: left; } .co-mt thead th:last-child { text-align: right; }
@media (max-width: 900px) {
  .co-table thead th:last-child { display: block; }
  .co-table thead th button { text-align: left !important; padding: 14px 12px; }
  .co-table td.num, .co-index td.num { text-align: left; }
  .co-table tbody th { min-width: 0; }
  .co-mt tbody tr, .co-index tbody tr { grid-template-columns: 1fr 1fr; }
  .co-mt td:nth-child(n+4), .co-index td { grid-column: 1 / -1; }
  .co-table td.num { white-space: normal; }
  .co-table td::before { margin-right: 4px; }
}

/* ---- jump stickers ---- */
.co-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(22px, 3vw, 34px); }
.co-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; border-radius: 2px; background: var(--stk-b); color: #14110f; text-decoration: none; font: 600 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 1px 0 rgba(20, 17, 15, .35); }
.co-jump a:nth-child(2) { background: var(--stk-y); } .co-jump a:nth-child(3) { background: var(--stk-g); } .co-jump a:nth-child(4) { background: #fff; outline: 2px solid #14110f; outline-offset: -2px; box-shadow: none; }
.co-jump a:hover { background: #14110f; color: #fff; }
.h2.first { margin-top: 0; }
.h2[id], .co-mh { scroll-margin-top: 84px; }

/* ---- who it funded ---- */
.co-sum { display: flex; flex-wrap: wrap; gap: 10px clamp(28px, 6vw, 80px); align-items: flex-end; margin: 0 0 18px; }
.co-sum .bignum { margin: 0; font-size: clamp(50px, 7vw, 92px); }
.co-sum .k { margin-bottom: 4px; }
.co-sum .note { flex: 1 1 100%; margin: 4px 0 0; max-width: 60em; }

.co-map { border: 2px solid var(--ink); }
.m0 { fill: #dfe2e6; background: #dfe2e6; }
.co-map .usmap .st.on { stroke: #14110f; stroke-width: 3.5; }
.co-map .legend i { outline: 1px solid rgba(20, 17, 15, .25); }
.co-states .amt small { display: inline-block; min-width: 26px; text-align: right; font: 500 12px/1 var(--mono); color: var(--muted); }
.co-states a[aria-current="true"] { background: #14110f; color: #fff; padding-left: 8px; padding-right: 8px; border-radius: 2px; }
.co-states a[aria-current="true"] small { color: #fff; }
.co-states li:first-child a span:first-child { font-weight: 700; }
.co-listnote { margin: 12px 0 0; max-width: 56em; }

.co-mh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 34px 0 14px; border-top: 3px solid var(--ink); padding-top: 14px; }
.co-mh h3 { font-size: clamp(34px, 4.4vw, 54px); font-stretch: 62%; font-weight: 900; }
.co-mh h3:focus { outline: none; }
.co-mh p { margin: 0; font: 500 14.5px/1.4 var(--mono); flex: 1 1 260px; }
.co-mh .btn { min-height: 46px; font-size: 16px; }
.co-all { margin: 14px 0 0; }
.co-refunds { margin: 16px 0 0; max-width: 60em; }
.co-refunds a, .co-foot a, .co-empty a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.co-empty { padding: 18px 0; }

/* ---- the "how they make money" card: one label, four fields ---- */
.co-card { display: grid; grid-template-columns: 1.3fr 1fr 1.12fr 1fr; gap: 2px; background: var(--ink); border: 2px solid var(--ink); border-top-width: 10px; border-radius: var(--r); overflow: hidden; box-shadow: var(--lift); }
.co-f { background: var(--card); padding: 16px clamp(14px, 1.6vw, 22px) 20px; min-width: 0; }
.co-no { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.co-no .stage { margin: 0; letter-spacing: .05em; font-size: 10.5px; padding: 6px 7px 5px; }
.co-no .stage.g { background: var(--stk-g); } .co-no .stage.y { background: var(--stk-y); }
.co-f h3 { font-size: clamp(27px, 2.5vw, 33px); font-stretch: 62%; font-weight: 900; padding-bottom: 11px; border-bottom: 3px solid var(--ink); margin-bottom: 14px; }
.co-f h3 { overflow-wrap: anywhere; }
:lang(es) .co-f h3 { font-size: clamp(23px, 2vw, 26px); }
.co-l { font: 600 11.5px/1.35 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.co-l b { color: var(--ink); font-weight: 700; white-space: nowrap; }
.co-big { font: 900 clamp(34px, 3.3vw, 46px)/1 var(--serif); font-stretch: 64%; text-transform: uppercase; margin: 0 0 10px; }
.co-big .fig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; white-space: normal; } .co-big .fig-v { font-weight: 900; }
.co-big button.src { margin-left: -3px; }
.co-big button.src, .co-rows button.src { vertical-align: middle; }
.co-big.sm { font-size: 20px; line-height: 1.3; }
.co-sub { font-size: 13.5px; line-height: 1.45; color: var(--muted); margin: 0 0 14px; }
.co-sub:last-child, .co-none:last-child { margin-bottom: 0; }
.co-sub .co-id { display: block; white-space: normal; margin-top: 2px; }
.co-sub a { display: inline-block; padding: 9px 0; margin: -9px 0; font-weight: 600; }
.co-none { font: 500 14px/1.5 var(--mono); color: var(--ink); background: var(--wash); border-left: 4px solid var(--ink); padding: 11px 12px; margin: 0 0 12px; }
.co-rows { margin: 4px 0 14px; border-top: 2px solid var(--ink); }
.co-rows > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.co-rows dt { font: 600 11.5px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.co-rows dd { margin: 0 0 0 auto; font: 600 15px/1.3 var(--mono); text-align: right; }
.co-rows .fig { white-space: normal; } .co-rows .fig-v { font-weight: 600; }
.co-side { margin: 14px 0 0; max-width: 56em; font-size: 15px; color: var(--ink); border-left: 4px solid var(--amber); padding-left: 12px; }
@media (min-width: 1081px) { .co-f h3 { display: flex; align-items: flex-end; min-height: calc(1.96em + 11px); } }
@media (max-width: 1080px) { .co-card { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .co-card { grid-template-columns: 1fr; } .co-big { font-size: 40px; } }

/* ---- former members and staff; bills; more ---- */
.co-door, .co-bills, .co-more { list-style: none; margin: 0; padding: 0; }
.co-door { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.co-door > li { border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); padding: 14px 18px 8px; min-width: 0; }
.co-door h3 { font-size: 28px; font-stretch: 64%; font-weight: 900; margin-bottom: 10px; overflow-wrap: anywhere; }
.co-door dl { margin: 0; border-top: 2px solid var(--ink); }
.co-door dl > div { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.co-door dl > div:last-child { border-bottom: 0; }
.co-door dt { font: 600 11px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.co-door dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.co-pos { font: 500 14px/1.5 var(--mono); }
.co-door dd a, .co-bills .co-sub a { display: inline-block; padding: 10px 2px; margin: -10px 0; font: 600 13px/1.3 var(--mono); }
@media (max-width: 800px) { .co-door { grid-template-columns: 1fr; } }
.co-bills > li { border-top: 1px solid var(--rule); padding: 14px 0; }
.co-bills > li:first-child { border-top: 0; padding-top: 0; }
.co-bills h3 { font-size: 26px; font-stretch: 66%; margin-bottom: 6px; }
.co-bills h3 a { color: var(--ink); display: inline-block; padding: 8px 0; margin: -8px 0; }
.co-bills h3 .num { font: 600 13px/1 var(--mono); letter-spacing: .04em; background: var(--ink); color: #fff; padding: 5px 7px 4px; border-radius: 2px; vertical-align: 4px; margin-right: 6px; }
.co-bills p { margin: 0 0 6px; }
.co-more { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.co-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
