/* Federal bills pages (bill.php, bill-vote.php, bills-index.php, bills-mp-votes.php, bills-review.php).
   Builds on country.css and immigration.css using theme colour variables only. */

/* Shared LMIA hero classes when lmia.css is not loaded */
.pt-bills-page .pt-lmia-crumb { color: var(--accent); font-size: 10px; letter-spacing: 0.22em; margin-bottom: 10px; }
.pt-bills-page .pt-lmia-crumb a { color: inherit; }
.pt-bills-page .pt-lmia-h { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.pt-bills-page .pt-lmia-lede { color: var(--ink-1); font-size: 13px; line-height: 1.6; max-width: 780px; }
.pt-bills-page .pt-lmia-h4 { margin: 14px 0 6px; font-size: 12px; color: var(--ink-1); letter-spacing: 0.04em; }
.pt-bills-page .pt-lmia-h4:first-child { margin-top: 0; }
.pt-bills-page .pt-cty-table td a { overflow-wrap: break-word; }

/* Immigration label banner */
.pt-bills-label { border: 1px solid var(--line); border-left: 3px solid var(--warn); background: var(--bg-1); padding: 10px 14px; margin-bottom: 14px; }
.pt-bills-label.is-reviewed { border-left-color: var(--pos); }
.pt-bills-label-text { font-size: 13px; font-weight: 600; color: var(--ink-1); line-height: 1.5; }
.pt-bills-evidence { margin: 6px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.5; font-style: italic; }

/* KPI text values (dates and status labels) */
.pt-bills-kpi-text { font-size: 17px; line-height: 1.25; overflow-wrap: break-word; }

/* Status metadata definition list */
.pt-bills-meta-dl { display: grid; grid-template-columns: minmax(120px, 160px) minmax(0, 1fr); gap: 6px 14px; margin: 0 0 12px; font-size: 12px; }
.pt-bills-meta-dl dt { color: var(--ink-2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 1px; }
.pt-bills-meta-dl dd { margin: 0; color: var(--ink-1); overflow-wrap: break-word; }
.pt-bills-meta-dl dd a { color: var(--accent); text-decoration: none; }
.pt-bills-meta-dl dd a:hover { text-decoration: underline; }

/* Stages timeline */
.pt-bills-stages { list-style: none; margin: 6px 0 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.pt-bills-stages li { position: relative; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 4px 0 8px; font-size: 12px; color: var(--ink-1); }
.pt-bills-stages li::before { content: ""; position: absolute; left: -21px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg-1); }
.pt-bills-stages time { color: var(--ink-2); font-size: 11px; min-width: 118px; }

/* AI-written text blocks */
.pt-bills-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 600; margin: 0 0 6px; }
.pt-bills-ai { border-left: 3px solid var(--accent); padding: 2px 0 2px 12px; margin: 0 0 12px; font-size: 13px; line-height: 1.6; color: var(--ink-1); }
.pt-bills-ai p { margin: 0 0 8px; }
.pt-bills-ai p:last-child { margin-bottom: 0; }
.pt-bills-changes { margin: 4px 0 8px; font-size: 12px; line-height: 1.6; color: var(--ink-1); }
.pt-bills-note-ai { font-size: 10px; color: var(--ink-3); line-height: 1.5; margin: 6px 0 0; }
.pt-bills-official.has-ai { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }

/* Vote breakdown block (parts/bill-vote.php) */
.pt-bills-vote { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.pt-bills-vote:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.pt-bills-vote-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--ink-1); }
.pt-bills-vote-tally { font-size: 11px; color: var(--ink-2); }
.pt-bills-vote-desc { margin-top: 6px; }
.pt-bills-vote-links { margin: 6px 0 10px; }
.pt-bills-party-wrap { margin-top: 8px; max-height: none; }
.pt-bills-members { margin-top: 10px; }

/* Index filter form (bills-index.php) */
.pt-bills-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 12px; align-items: end; margin-bottom: 12px; }
.pt-bills-form label { display: flex; flex-direction: column; gap: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); min-width: 0; }
.pt-bills-form input[type="search"],
.pt-bills-form input[type="text"],
.pt-bills-form select { width: 100%; max-width: 100%; box-sizing: border-box; margin: 0; padding: 6px 8px; background: var(--bg-1); color: var(--ink-1); border: 1px solid var(--line); font: inherit; font-size: 12px; text-transform: none; letter-spacing: normal; }
.pt-bills-form button,
.pt-bills-form .pt-cty-tag { cursor: pointer; }

/* Server-side sort links in table headers */
.pt-bills-sortlink { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.pt-bills-sortlink:hover,
.pt-bills-sortlink:focus { color: var(--accent); }

/* Pagination row */
.pt-bills-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 12px; font-size: 12px; color: var(--ink-2); }
.pt-bills-pager a { padding: 4px 10px; border: 1px solid var(--line); background: var(--bg-1); color: var(--ink-1); text-decoration: none; }
.pt-bills-pager a:hover,
.pt-bills-pager a:focus { border-color: var(--accent); color: var(--accent); }

/* Staff review cards and form controls (bills-review.php) */
.pt-bills-card { border: 1px solid var(--line); background: var(--bg-1); padding: 14px; margin-bottom: 14px; min-width: 0; }
.pt-bills-card textarea { width: 100%; max-width: 100%; box-sizing: border-box; padding: 7px 9px; background: var(--bg-2); color: var(--ink-1); border: 1px solid var(--line); font: inherit; font-size: 12px; }
.pt-bills-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 10px 0; }
.pt-bills-actions label { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-1); }
.pt-bills-actions select { max-width: 100%; padding: 5px 8px; background: var(--bg-2); color: var(--ink-1); border: 1px solid var(--line); font: inherit; font-size: 12px; }

/* Mobile adjustments: prevent horizontal scroll at 375px */
.pt-bills-page .pt-cty-scroll { max-width: 100%; }
@media (max-width: 700px) {
	.pt-bills-page .pt-lmia-h { font-size: 21px; }
	.pt-bills-page .hd .meta { display: none; }
	.pt-bills-meta-dl { grid-template-columns: 1fr; gap: 2px; }
	.pt-bills-meta-dl dd { margin-bottom: 6px; }
}
@media (max-width: 520px) {
	.pt-bills-form { grid-template-columns: 1fr; }
	.pt-bills-actions { flex-direction: column; align-items: flex-start; }
}

/* Long chip labels (for example the MP votes view switch) wrap on phones instead of widening the page. */
.pt-bills-page .pt-cty-tag { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
