/* ---------------------------------------------------------------------
   The dossier layer - member tabs, the dossiers index, meetings, notes.

   Additive to room.css and never a reinterpretation of it: every selector
   below is prefixed .dz-, so nothing here can reach the Room's own
   furniture (the top half of room.css is a byte-for-byte copy of the
   engine's offline renderer and must not drift).

   Colours are room.css's: #0b0b14 page, #12121d panel, #2a2a3d rule,
   #e8e8f0 ink, #c8c8dc body, #8888a0 muted, #6a6a80 dim, #7b5cff accent,
   #c9b8ff accent-light, #ff5c5c red, #3ddc97 green, #ff9f43 amber.
   --------------------------------------------------------------------- */

/* ------------------------------------------------------------- tab strip */

.dz-tabs{display:flex;flex-wrap:wrap;gap:0;border-bottom:1px solid #2a2a3d;
 margin:0 0 18px}
.dz-tab{font-family:inherit;font-size:15px;background:none;border:0;
 border-bottom:2px solid transparent;color:#8888a0;padding:9px 15px 8px;
 cursor:pointer;white-space:nowrap}
.dz-tab:first-child{padding-left:0}
.dz-tab:hover{color:#c8c8dc}
.dz-tab.on{color:#c9b8ff;border-bottom-color:#7b5cff;font-weight:600}
.dz-tab:disabled{color:#4c4c60;cursor:default}
.dz-tab .n{font-size:12px;color:#6a6a80;margin-left:6px;font-weight:400}
.dz-tab.on .n{color:#8888a0}
.dz-pane{display:none}
.dz-pane.on{display:block}

/* ------------------------------------------------------- standing furniture */

.dz-meta{font-size:13px;color:#6a6a80;line-height:1.7;margin:-4px 0 14px}
.dz-note{font-size:13px;color:#8888a0;line-height:1.7;
 border-left:2px solid #2a2a3d;padding-left:12px;margin:0 0 18px}
.dz-note b{color:#c8c8dc;font-weight:600}
.dz-warn{border-left-color:#ff9f43}
.dz-h{font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
 color:#8888a0;margin:22px 0 8px}
.dz-h:first-child{margin-top:0}
.dz-empty{color:#6a6a80;font-size:15px;line-height:1.7;padding:8px 0}
.dz-err{color:#ff9f43;font-size:14px;line-height:1.7}

/* The two-card switch at the top of the Card tab. Segmented rather than a tab
   strip: the tab strip above it means "another kind of record about this
   person", this means "the same record, built twice". */
.dz-sw{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.dz-swb{font-family:inherit;font-size:13px;text-align:left;line-height:1.35;
 background:#15151f;border:1px solid #2a2a3d;color:#8888a0;border-radius:3px;
 padding:8px 12px;cursor:pointer}
.dz-swb .s{display:block;font-size:11.5px;color:#6a6a80;margin-top:2px}
.dz-swb:hover:not(:disabled){color:#c8c8dc;border-color:#3a3a52}
.dz-swb.on{background:#1c1830;border-color:#7b5cff;color:#c9b8ff;font-weight:600}
.dz-swb.on .s{color:#8f83b8}
.dz-swb:disabled{color:#4c4c60;cursor:default}
.dz-swb:disabled .s{color:#3d3d4e}
/* Red, not amber: an amber note on this page means "read this carefully", and
   two cards that disagree about which way a voter leans is a fact, not a
   caveat. */
.dz-diff{border-left-color:#ff5c5c;color:#c8c8dc}
.dz-diff b{color:#ff8a8a}

/* Chinese runs in the same size as the English body but needs its own
   fallback stack: 'Helvetica Neue' has no CJK, and on a machine without a
   system Chinese face the browser picks whatever it finds first. */
.dz-zh{font-family:'Helvetica Neue',Inter,-apple-system,'PingFang SC',
 'Hiragino Sans GB','Microsoft YaHei','Noto Sans CJK SC',sans-serif}

/* -------------------------------------------------------------- item lists */

.dz-item{border-top:1px solid #23233a;padding:13px 0}
.dz-item:first-child{border-top:0;padding-top:2px}
.dz-d{font-size:13px;color:#8888a0;letter-spacing:.06em}
.dz-t{font-size:16px;color:#e8e8f0;line-height:1.5;margin-top:3px}
.dz-t a{color:#e8e8f0;text-decoration:none;border-bottom:1px solid #3a3a52}
.dz-t a:hover{color:#c9b8ff;border-bottom-color:#7b5cff}
.dz-sub{font-size:14px;color:#8888a0;line-height:1.6;margin-top:3px}
.dz-body{font-size:15px;color:#c8c8dc;line-height:1.8;margin-top:6px}
.dz-q{font-size:15px;color:#c8c8dc;line-height:1.85;margin-top:7px;
 border-left:2px solid #7b5cff;padding-left:12px}
.dz-q+.dz-q{margin-top:6px}
.dz-tag{display:inline-block;font-size:11px;letter-spacing:.08em;padding:2px 7px;
 background:#2a2a3d;color:#a8a8c0;margin-left:8px;vertical-align:2px}
.dz-tag.acc{background:#7b5cff;color:#fff;font-weight:600}
.dz-topic{font-size:12px;letter-spacing:.1em;color:#8888a0;margin:10px 0 3px}

/* ------------------------------------------------------------------ tables */

/* Every wide thing on this layer scrolls inside its own box. The page body
   must never scroll sideways at 420px. */
.dz-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;
 border:1px solid #2a2a3d;background:#12121d}
table.dz{border-collapse:collapse;width:100%;font-size:14px}
table.dz th{text-align:left;font-size:12px;font-weight:600;letter-spacing:.1em;
 text-transform:uppercase;color:#8888a0;padding:10px 12px;
 border-bottom:1px solid #2a2a3d;white-space:nowrap;background:#171727}
table.dz td{padding:10px 12px;border-bottom:1px solid #1e1e30;color:#c8c8dc;
 vertical-align:top;line-height:1.6}
table.dz tr:last-child td{border-bottom:0}
table.dz td b{color:#e8e8f0;font-weight:600}
table.dz .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
table.dz .nw{white-space:nowrap}
.dz-bar{display:inline-block;height:9px;background:#7b5cff;vertical-align:1px;
 margin-right:7px;min-width:2px}
.dz-bar.base{background:#4c4c60}

/* ---------------------------------------------------------- the index page */

.dz-idx tr{cursor:pointer}
.dz-idx tr:hover td{background:#181828}
.dz-idx td.fig{width:52px;padding:6px 4px 6px 12px}
.dz-idx td.fig svg{display:block;width:40px;height:auto}
.dz-idx a{color:#e8e8f0;text-decoration:none}
.dz-idx tr:hover a{color:#c9b8ff}
.dz-st{font-size:12px;letter-spacing:.06em;padding:2px 8px;white-space:nowrap;
 background:#2a2a3d;color:#c8c8dc}
.dz-st.hawk{background:#ff5c5c;color:#0b0b14;font-weight:700}
.dz-st.lean_hawk{background:#ff9f43;color:#0b0b14;font-weight:700}
.dz-st.centrist{background:#4aa3ff;color:#0b0b14;font-weight:700}
.dz-st.lean_dove{background:#38cfd0;color:#0b0b14;font-weight:700}
.dz-st.dove{background:#3ddc97;color:#0b0b14;font-weight:700}
.dz-st.undocumented{background:#2a2a3d;color:#a8a8c0}

/* ----------------------------------------------------------- stance chart */

.dz-2col{display:flex;gap:22px;align-items:flex-start;flex-wrap:wrap}
.dz-2col>*{flex:1 1 360px;min-width:0}
.dz-chart{background:#0e0e19;border:1px solid #2a2a3d;padding:12px 12px 8px}
.dz-chart svg{display:block;width:100%;height:auto}
.dz-chart .dot{cursor:pointer}
.dz-chart .dot:hover{stroke:#fff;stroke-width:1.5}
.dz-hover{font-size:13px;color:#a8a8c0;line-height:1.75;margin-top:10px;
 border-top:1px solid #23233a;padding-top:10px;min-height:74px}
.dz-hover b{color:#e8e8f0;font-weight:600}
.dz-key{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:#8888a0;
 margin-top:8px}
.dz-key i{display:inline-block;width:9px;height:9px;border-radius:50%;
 margin-right:5px;vertical-align:0}

/* --------------------------------------------------------- meetings detail */

.dz-mrow{cursor:pointer}
.dz-mrow:hover td{background:#181828}
.dz-mrow.on td{background:#1c1c30}
.dz-mrow td.tw{width:16px;color:#6a6a80;padding-right:0}
.dz-mdet td{background:#0e0e19;padding:0}
.dz-mdet .in{padding:18px 20px 22px}
.dz-line{font-size:15px;line-height:1.8;padding:5px 0 5px 12px;margin:4px 0}
.dz-line.add{border-left:2px solid #3ddc97;color:#dff5e9}
.dz-line.rem{border-left:2px solid #ff5c5c;color:#f2c9c9;text-decoration:line-through;
 text-decoration-color:#7a3a3a}
.dz-roll{display:flex;gap:26px;flex-wrap:wrap;font-size:14px;line-height:1.9;
 color:#c8c8dc}
.dz-roll .col{flex:1 1 260px;min-width:0}
.dz-roll .col b{display:block;font-size:12px;letter-spacing:.1em;text-transform:uppercase;
 color:#8888a0;font-weight:600;margin-bottom:4px}
.dz-hit{font-size:12px;padding:2px 7px;letter-spacing:.06em}
.dz-hit.y{background:#3ddc97;color:#0b0b14;font-weight:700}
.dz-hit.n{background:#ff5c5c;color:#0b0b14;font-weight:700}
.dz-hit.u{background:#2a2a3d;color:#a8a8c0}

/* ------------------------------------------------------------- notes page */

.dz-filters{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-end;
 margin:0 0 18px}
.dz-filters .fl{display:flex;flex-direction:column;gap:5px}
.dz-filters label{font-size:12px;font-weight:600;letter-spacing:.12em;
 text-transform:uppercase;color:#8888a0}
.dz-filters select,.dz-filters input[type=text]{min-width:170px}
.dz-count{font-size:13px;color:#8888a0;align-self:flex-end;padding-bottom:8px}
.dz-more{margin-top:16px}
details.dz-w{border-top:1px solid #23233a;padding:11px 0}
details.dz-w>summary{cursor:pointer;list-style:none;font-size:15px;color:#e8e8f0;
 line-height:1.6}
details.dz-w>summary::-webkit-details-marker{display:none}
details.dz-w>summary:hover{color:#c9b8ff}
details.dz-w[open]>summary{color:#c9b8ff;font-weight:600}
details.dz-w .wbody{font-size:15px;color:#c8c8dc;line-height:1.9;margin-top:10px;
 white-space:pre-wrap;border-left:2px solid #2a2a3d;padding-left:13px}

/* --------------------------------------------------------------- narrow */

@media (max-width:860px){
  .dz-tab{font-size:14px;padding:8px 11px}
  .dz-tab:first-child{padding-left:0}
  .dz-2col{gap:16px}
  .dz-filters select,.dz-filters input[type=text]{min-width:0;width:100%}
  .dz-filters .fl{flex:1 1 150px}
}
