* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --paper: #faf9f6; --ink: #1c1a17; --ink2: #3b3833; --muted: #8a857c; --line: #e5e2db; --line2: #efece6;
  --card: #fff; --accent: #35516b; --accent-soft: #eaf0f5; --seal: #b8543c; --ok: #3d7a4f; --warn: #a86a1f;
  --dem: #2f5f9e; --rep: #a8413a; --ind: #6b5b8a; --mark: #fbe7a6;
}
html { font-size: 15px; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--paper);
  color: var(--ink); -webkit-font-smoothing: antialiased; line-height: 1.45; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86em; background: #f1efe9; padding: 0 .25em; border-radius: 3px; }
.wordmark { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: .01em; }
.muted { color: var(--muted); } .sm { font-size: .82rem; } .strong { font-weight: 600; color: var(--ink); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.brk { word-break: break-all; }
mark { background: var(--mark); color: inherit; padding: 0 1px; border-radius: 2px; }

/* header */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { max-width: 1440px; margin: 0 auto; padding: .55rem 1.4rem; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand .wordmark { font-size: 1.3rem; }
nav { display: flex; gap: .25rem; flex: 1; }
nav a { color: var(--ink2); padding: .35rem .7rem; border-radius: 6px; font-size: .92rem; }
nav a:hover { background: #f4f2ed; text-decoration: none; }
nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.who { display: flex; gap: 1rem; font-size: .82rem; align-items: center; }
.live { color: var(--seal); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--seal); margin-right: 5px; vertical-align: 1px; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.wrap { max-width: 1440px; margin: 0 auto; padding: 1.4rem 1.4rem 3rem; }
.foot { max-width: 1440px; margin: 0 auto; padding: 1.2rem 1.4rem 2.4rem; color: var(--muted); font-size: .78rem; border-top: 1px solid var(--line); }

/* buttons + inputs */
.btn { display: inline-flex; align-items: center; gap: .3rem; padding: .45rem .85rem; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); border-radius: 7px; font: inherit; font-size: .88rem; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #cfcabf; text-decoration: none; box-shadow: 0 1px 3px rgba(28,26,23,.07); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #2b4459; }
.btn.sm { padding: .3rem .6rem; font-size: .8rem; }
.btn:disabled { opacity: .5; cursor: default; }
input[type=search], input[type=text], input[type=date], input[type=number], select {
  font: inherit; font-size: .9rem; padding: .42rem .6rem; border: 1px solid var(--line); border-radius: 7px; background: var(--card); color: var(--ink); }
input:focus, select:focus { outline: 2px solid #bcd0e0; border-color: var(--accent); }

/* search form */
.searchform { margin-bottom: 1rem; }
.qrow { display: flex; gap: .5rem; }
.qrow input[type=search] { flex: 1; font-size: 1.05rem; padding: .7rem .9rem; border-radius: 9px; }
.qrow select { max-width: 13rem; }
.qrow .btn { padding: .6rem 1.3rem; font-size: .95rem; }
.filters { margin-top: .6rem; }
.filters summary { cursor: pointer; font-size: .86rem; color: var(--accent); font-weight: 600; width: max-content; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem 1rem; margin-top: .7rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }
.fgrid label { display: flex; flex-direction: column; gap: .25rem; font-size: .76rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.fgrid label.chk { flex-direction: row; align-items: center; gap: .45rem; text-transform: none; letter-spacing: 0; font-size: .86rem; color: var(--ink2); font-weight: 500; }
.factions { margin-top: .6rem; display: flex; gap: 1rem; align-items: center; font-size: .86rem; }
.chips { margin: -.2rem 0 1rem; display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.chip { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: .25rem .4rem .25rem .8rem; font-size: .86rem; }
.chip a { display: inline-block; width: 1.3rem; text-align: center; color: var(--accent); font-weight: 700; }
.alert { background: #fbf1e6; border: 1px solid #efd9bd; padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; }

/* results layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 1.6rem; }
.resbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; flex-wrap: wrap; }
.summary { font-size: .93rem; } .dot { color: #c9c4ba; margin: 0 .35rem; }
.tools { display: flex; gap: .4rem; align-items: center; }
.sortlab { font-size: .8rem; color: var(--muted); display: flex; gap: .35rem; align-items: center; margin-right: .3rem; }
.sortlab select { font-size: .84rem; padding: .3rem .5rem; }
.intro { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1rem; font-size: .92rem; }
.intro p + p { margin-top: .5rem; }
.empty { padding: 2rem; text-align: center; color: var(--muted); }

table.grid { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: .88rem; }
.grid th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600;
  padding: .6rem .7rem; border-bottom: 1px solid var(--line); background: #fcfbf8; }
.grid th.num { text-align: right; }
.grid td { padding: .62rem .7rem; border-bottom: 1px solid var(--line2); vertical-align: top; }
.grid tr.res { cursor: pointer; }
.grid tr.res:hover td { background: #fbfaf6; }
.grid tr.superseded td { opacity: .55; }
.grid tr.snip td { padding-top: 0; border-bottom: 1px solid var(--line2); }
.grid tr.res:has(+ tr.snip) td { border-bottom: none; }
.grid tr.snip a { display: block; color: var(--ink2); font-size: .82rem; line-height: 1.5; padding: .1rem 0 .1rem .7rem; border-left: 2px solid var(--mark); }
.grid tr.snip a:hover { text-decoration: none; background: #fffcf0; }
.pg { font-weight: 700; color: var(--muted); font-size: .72rem; margin-right: .3rem; }
.grid.compact td { padding: .45rem .7rem; }
.c-date { width: 9.5rem; white-space: nowrap; }
.c-trav { width: 13rem; } .c-off { width: 13rem; } .c-cost { width: 7.5rem; }
.c-spon div + div, .c-dest div + div { margin-top: .15rem; }
.role { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .05rem .4rem; border-radius: 4px; margin-right: .3rem; }
.role-member { background: #f6e8e3; color: var(--seal); }
.role-staff { background: #eef0ef; color: #5d655f; }
.chamber { font-size: .74rem; color: var(--muted); }
.party { display: inline-block; font-size: .72rem; font-weight: 700; padding: .02rem .35rem; border-radius: 4px; color: #fff; background: #888; letter-spacing: .02em; }
.party.big { font-size: .95rem; vertical-align: middle; }
.p-D { background: var(--dem); } .p-R { background: var(--rep); } .p-I { background: var(--ind); }
.tag { display: inline-block; font-size: .7rem; padding: .03rem .4rem; border-radius: 4px; background: #efece6; color: var(--ink2); }
.tag.foreign { background: #e8f1ec; color: #2e6a48; }
.tag.amend { background: #fbf1e6; color: var(--warn); }
.tag.gone { background: #f7e6e3; color: #9c3b2c; }
.ok { color: var(--ok); margin-left: .25rem; font-weight: 700; }
.warn { color: var(--warn); margin-left: .25rem; font-weight: 700; }
.pager { display: flex; justify-content: center; gap: 1.4rem; padding: 1.2rem; font-size: .9rem; }

/* facets */
.facets { font-size: .86rem; }
.facet { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .75rem .8rem; margin-bottom: .8rem; }
.facet h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .4rem; }
.facet a { display: flex; justify-content: space-between; gap: .5rem; padding: .22rem .35rem; border-radius: 5px; color: var(--ink2); }
.facet a:hover { background: #f4f2ed; text-decoration: none; }
.facet a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.facet .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.facet .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facet a.more { color: var(--accent); justify-content: flex-start; margin-top: .2rem; }

/* filing page */
.crumbs { font-size: .85rem; margin-bottom: .6rem; }
.fhead { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; margin-bottom: .8rem; flex-wrap: wrap; }
.kicker { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: .2rem; }
.kicker .tag { text-transform: none; letter-spacing: 0; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 2rem; line-height: 1.2; }
h2 { font-family: Georgia, serif; font-weight: 400; font-size: 1.35rem; margin: 1.6rem 0 .7rem; }
h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.3rem 0 .5rem; }
h3 .sm { text-transform: none; letter-spacing: 0; font-weight: 400; }
.subhead { margin-top: .35rem; display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; font-size: 1rem; }
.fbtns { display: flex; gap: .45rem; flex-wrap: wrap; }
.lede { font-size: 1.02rem; max-width: 70rem; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: .8rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.aitag { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 .3rem; margin-left: .3rem; white-space: nowrap; }
.cols { display: grid; grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.facts { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .4rem 1.1rem 1.2rem; }
.facts h3:first-child { margin-top: .8rem; }
dl.kv { display: grid; grid-template-columns: 7.2rem 1fr; gap: .45rem .8rem; margin-top: .8rem; font-size: .9rem; }
dl.kv dt { color: var(--muted); font-size: .8rem; padding-top: .08rem; }
table.costs { width: 100%; border-collapse: collapse; font-size: .9rem; }
.costs td { padding: .3rem 0; border-bottom: 1px solid var(--line2); }
.costs tr.tot td { font-weight: 700; border-bottom: none; border-top: 1px solid var(--line); }
.okline { color: var(--ok); margin-top: .4rem; } .warnline { color: var(--warn); margin-top: .4rem; }
.lob-yes { color: #9c3b2c; font-weight: 600; } .lob-de_minimis { color: var(--warn); font-weight: 600; }
.orgs { display: flex; flex-wrap: wrap; gap: .3rem; }
.orgs a { font-size: .8rem; background: #f4f2ed; color: var(--ink2); padding: .15rem .5rem; border-radius: 999px; }
.orgs a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.note { font-size: .82rem; color: var(--ink2); background: #fcfbf5; border: 1px solid var(--line2); padding: .5rem .7rem; border-radius: 6px; margin-top: 1rem; }
ul.plain { list-style: none; font-size: .88rem; }
.doc { position: sticky; top: 4.2rem; }
.doctabs { display: flex; gap: .3rem; align-items: center; margin-bottom: .5rem; }
.doctabs button { font: inherit; font-size: .86rem; padding: .35rem .8rem; border: 1px solid var(--line); background: var(--card); border-radius: 7px; cursor: pointer; color: var(--ink2); }
.doctabs button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.insearch { margin-left: auto; } .insearch input { width: 15rem; font-size: .84rem; padding: .32rem .55rem; }
.hitnav { font-size: .82rem; margin-bottom: .5rem; color: var(--muted); }
.hitnav a { display: inline-block; min-width: 1.6rem; text-align: center; background: var(--mark); color: var(--ink); border-radius: 4px; margin: 0 .1rem; padding: 0 .2rem; }
.tabpane { display: none; } .tabpane.on { display: block; }
#tab-text { max-height: calc(100vh - 9rem); overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: #fdfdfb; }
.page { border-bottom: 1px solid var(--line); padding: .9rem 1.1rem 1.1rem; }
.page.hit { background: #fffdf4; }
.pno { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin-bottom: .4rem; display: flex; gap: .6rem; }
.pno a { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }
.page pre { white-space: pre-wrap; word-wrap: break-word; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .76rem; line-height: 1.5; color: var(--ink2); }
#tab-pdf iframe { width: 100%; height: calc(100vh - 9rem); border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* profiles + leaderboards */
.phead { margin-bottom: 1rem; }
.phead p { margin-top: .3rem; max-width: 60rem; }
.phead .fbtns { margin-top: 1rem; }
.stats { display: flex; gap: .7rem; margin-top: 1rem; flex-wrap: wrap; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .9rem; min-width: 7.5rem; }
.stats b { display: block; font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stats span { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
form.inline { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; align-items: center; }
form.inline input[type=search] { min-width: 18rem; }
form.inline label { display: flex; gap: .3rem; align-items: center; color: var(--muted); }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .3rem 1rem 1rem; margin-bottom: 1rem; }
.card > h3:first-child { margin-top: .8rem; }
table.mini { width: 100%; border-collapse: collapse; font-size: .85rem; }
.mini td { padding: .28rem 0; border-bottom: 1px solid var(--line2); vertical-align: top; }
.mini td + td { padding-left: .6rem; }
.signer { font-size: .88rem; padding: .35rem 0; border-bottom: 1px solid var(--line2); }
.split { display: inline-flex; width: 60px; height: 7px; border-radius: 4px; overflow: hidden; background: #eee; vertical-align: middle; }
.split i { display: block; height: 100%; } .split .sd { background: var(--dem); } .split .sr { background: var(--rep); }
.trip { margin-bottom: 1rem; }
.triphead { font-size: .9rem; margin-bottom: .35rem; }
.w40 { width: 40%; }
.prose { max-width: 52rem; }
.prose p, .prose li { font-size: .95rem; margin-bottom: .55rem; }
.prose ul { padding-left: 1.2rem; }
.prose table { margin: .5rem 0; }

/* landing */
body.landing { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.landing .box { text-align: center; padding: 2rem; max-width: 24rem; }
.landing .logo { width: 70px; height: 70px; margin-bottom: 1rem; }
.landing h1 { font-size: 2rem; }
.landing .sub { color: var(--muted); margin: .4rem 0 2rem; font-size: .95rem; }
.signin { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.4rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--ink); font-size: .95rem; box-shadow: 0 1px 2px rgba(28,26,23,.05); }
.signin:hover { text-decoration: none; border-color: #cfcabf; box-shadow: 0 2px 6px rgba(28,26,23,.08); }
.err { margin-top: 1.4rem; font-size: .84rem; color: #a04b3c; }

@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; } .facets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
  .cols { grid-template-columns: 1fr; } .doc { position: static; } .cols3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  nav { display: none; } .top-in { gap: 1rem; } .qrow { flex-wrap: wrap; } .qrow select { max-width: none; flex: 1; }
  .grid thead { display: none; } .grid tr.res { display: grid; grid-template-columns: 1fr 1fr; } .grid td { border: none; }
  .c-date, .c-trav, .c-off, .c-cost { width: auto; }
}
@media print { .top, .foot, .searchform, .facets, .tools, .doc { display: none; } }
