/* A House member's or senator's page, led by the Transparency score (Lane PR2, from design/mockups/profile/). Site tokens from
   site.css. No inline style: every width and position here is a class; the range line is SVG. */
.pf-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pf .top>.lead{font-size:18px;line-height:27px;max-width:720px}

/* the score strip */
.ps{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:stretch}
.ps-card,.ps-slot{background:var(--raised);border:1px solid var(--line);border-radius:8px;padding:18px 20px;display:flex;flex-direction:column;gap:10px;min-width:0}
.ps-t{border:2px solid var(--brand);padding:17px 19px}
.ps-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.ps-h{font-family:var(--text);font-size:13px;line-height:18px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--brand)}
.ps-q{font-size:15px;line-height:22px;color:var(--muted)}
.ps-small{font-size:14px;line-height:21px;color:var(--ink)}
.ps-feeds{margin-top:auto;padding-top:10px;border-top:1px solid var(--inset);font-size:14px;line-height:21px;color:var(--muted)}
.ps-feeds a{font-weight:500}
.ps-dev{display:inline-flex;align-items:center;min-height:26px;padding:1px 10px;border:1px solid var(--edge);border-radius:999px;background:var(--raised);color:var(--muted);font-family:var(--data);font-size:13px;line-height:18px;font-weight:500;white-space:nowrap}
.ps-slots{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
.ps-slot{padding:12px 16px;gap:6px;background:var(--ground);border-style:dashed;border-color:#9aa5a1}
.ps-t .sbx-num{font-size:clamp(36px,9vw,48px);line-height:56px}
.ps-t .sbx-num.mark{padding:2px 10px;font-size:clamp(36px,9vw,48px);line-height:56px}
.ps-t .sbx-of{font-family:var(--data);font-size:16px}
.ps-range{display:block;width:100%;max-width:340px;height:auto}
.ps-track{fill:var(--inset)}.ps-band{fill:#9cc2b6}.ps-dot{fill:var(--ink)}
.ps-lbl{font-family:var(--data);font-size:11px;fill:var(--muted)}
.ps-why{border:1px solid var(--line);border-left:4px solid var(--edge);border-radius:4px;padding:10px 14px;font-size:15px;line-height:23px}
.ps-t .ps-more{max-width:none}
.ps-panel{gap:16px}
.ps-pa,.ps-pb{display:flex;flex-direction:column;gap:8px;min-width:0}
.ps-d .mq-dia-fig{margin:0;max-width:340px;align-self:center;width:100%}
.ps-d .mq-dia{width:100%;height:auto}
/* phone: the two slots read as one line each */
@media (max-width:599px){
  .ps-wide{display:none}
  .ps-slot{padding:10px 14px}
  .ps-slot .ps-top{justify-content:flex-start;gap:12px}
}
@media (min-width:600px){.ps-slots{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:700px){
  .ps{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .ps-slots{grid-column:1/-1;order:3}
}
@media (min-width:1180px){
  .ps{grid-template-columns:minmax(0,1.25fr) minmax(0,.8fr) minmax(0,1fr)}
  .ps-slots{grid-column:auto;order:0;grid-template-columns:minmax(0,1fr);align-content:start}
}
/* the panel open: the Transparency card takes the whole row, and its panel two columns on a wide screen */
.ps:has(.ps-t details[open]) .ps-t{grid-column:1/-1}
@media (min-width:1180px){.ps:has(.ps-t details[open]){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media (min-width:900px){.ps:has(.ps-t details[open]) .ps-panel{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:8px 32px;align-items:start}}

/* the groups below */
.pf-grp{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding-top:32px;border-top:1px solid var(--line)}
.pf-side{display:flex;flex-direction:column;gap:8px;max-width:680px}
.pf-side p{margin:0}
.pf-gname{font-size:24px;line-height:30px;font-weight:600}
.pf-main{display:flex;flex-direction:column;gap:16px;min-width:0}
.pf-card{background:var(--raised);border:1px solid var(--line);border-radius:8px;padding:14px 20px 18px;display:flex;flex-direction:column;gap:6px;min-width:0}
@media (max-width:599px){.pf-card{padding:12px 14px 16px}}
.pf-card>.sec>h2,.pf-card>.sec>.headrow h2,.pf-card>.sec>.sbx-headrow h2{font-size:22px;line-height:28px;font-weight:600}
.pf-feeds{font-size:13px;line-height:20px;color:var(--muted)}
.pf-feeds a{font-weight:600}
@media (min-width:1180px){
  .pf-grp{grid-template-columns:220px minmax(0,1fr);gap:32px}
  .pf-side{position:sticky;top:16px;align-self:start}
}
.pf-tallybox{display:flex;flex-direction:column;gap:8px;margin:4px 0 8px}
.pf-tally{display:inline-flex;align-self:flex-start;font-family:var(--data);font-weight:500;font-variant-numeric:tabular-nums;color:var(--ink);background:var(--inset);border-radius:2px}
.pf-nc{list-style:none;padding:0;margin:0}
.pf-nc li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;padding:8px 0;border-top:1px solid var(--inset);font-size:15px}

/* the three records (lib/records.js) */
.rec-none{font-size:16px;color:var(--ink)}
.rec-facts{display:grid;grid-template-columns:minmax(0,1fr);gap:0;margin:0;max-width:640px}
.rec-facts div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;padding:8px 0;border-top:1px solid var(--inset)}
.rec-facts dt{font-size:15px;color:var(--muted)}
.rec-facts dd{margin:0;font-size:15px;font-weight:500}
.rec-t{min-width:440px}
.rec-t caption{text-align:left;padding:8px 16px 0}
.rec-t thead th{font-size:12px;line-height:16px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.rec-t td{white-space:nowrap}
.rec-keys{list-style:none;padding:0;margin:0;display:grid;gap:0}
.rec-keys li{padding:10px 0;border-top:1px solid var(--inset);display:flex;flex-direction:column;gap:4px}
.rec-kl{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 16px;font-size:15px}
.rec-yes{font-family:var(--data);font-weight:500;color:var(--brand)}
.rec-no{font-family:var(--data);font-weight:500;color:var(--no)}
.rec-acc{list-style:none;padding:0;margin:0}
.rec-acc li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 16px;padding:6px 0;border-top:1px solid var(--inset);font-size:15px}
@media print{.ps-more .sbx-panel{display:flex}}
