:root { color: #172223; background: #f7f6f1; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
.site-shell { max-width: 960px; margin: 0 auto; padding: 28px 24px 72px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #d7d9d2; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #123c32; font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: white; background: #1b6d55; }
.site-kicker, .back-link { margin: 0; color: #60706e; font-size: .9rem; }
.back-link { text-underline-offset: 3px; }
.page-intro, .bill-detail { max-width: 760px; padding: 68px 0 38px; }
.bill-detail { max-width: none; }
.eyebrow { margin: 0 0 12px; color: #1b6d55; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 16px; color: #123c32; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 6vw, 4.5rem); font-weight: 500; line-height: 1.04; letter-spacing: -.045em; }
.page-intro > p:last-child { max-width: 580px; color: #53615f; font-size: 1.12rem; line-height: 1.6; }
.bill-search { display: flex; max-width: 680px; margin-top: 26px; }
.bill-search input { flex: 1 1 auto; min-width: 0; padding: 12px 14px; border: 1px solid #aebbb4; border-right: 0; border-radius: 4px 0 0 4px; color: #183e35; background: #fffef9; font: inherit; }
.bill-search input:focus { position: relative; outline: 2px solid #1b6d55; outline-offset: -2px; }
.bill-search input::placeholder { color: #71807d; }
.bill-search input[type="submit"] { flex: 0 0 auto; padding: 12px 18px; border: 0; border-radius: 0 4px 4px 0; color: #fff; background: #1b6d55; font: inherit; font-weight: 700; cursor: pointer; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 22px 0 12px; }
.section-heading h2 { margin: 0; font-size: 1rem; }
.section-heading span { color: #667572; font-size: .85rem; }
.bill-list { border-top: 1px solid #cfd4cc; }
.bill-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 14px 16px; margin: 0 0 22px; padding: 16px; border: 1px solid #d7d9d2; background: #fcfbf7; }
.control-field { display: grid; flex: 1 1 220px; gap: 6px; }
.control-field label { color: #53615f; font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.control-field select { width: 100%; min-width: 155px; padding: 8px 28px 8px 10px; border: 1px solid #aebbb4; border-radius: 4px; color: #183e35; background: #fffef9; font: inherit; font-size: .9rem; }
.control-actions { display: flex; align-items: center; gap: 12px; min-height: 38px; }
.clear-filters { color: #1b6d55; font-size: .88rem; text-underline-offset: 3px; }
.bill-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 23px 2px; border-bottom: 1px solid #cfd4cc; color: inherit; text-decoration: none; transition: background-color .15s ease, padding .15s ease; }
.bill-card:hover, .bill-card:focus-visible { margin: 0 -12px; padding-right: 14px; padding-left: 14px; outline: 0; background: #edf4ef; }
.bill-meta, .bill-status { margin-bottom: 7px; color: #667572; font-size: .86rem; }
.bill-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.status-badge { display: inline-block; padding: 3px 8px; border-radius: 999px; color: #15513f; background: #dcece2; font-size: .75rem; font-weight: 800; line-height: 1.2; }
.status-third-reading, .status-royal-assent { color: #4e3810; background: #f8e8b7; }
.status-rejected, .status-withdrawn, .status-lapsed, .status-discharged { color: #793b36; background: #f4ddda; }
.bill-detail-meta { margin-bottom: 24px; font-size: .95rem; }
.bill-status { margin: 0; }
.bill-summary { max-width: 650px; margin-bottom: 10px; color: #40514d; line-height: 1.5; }
.bill-card h3 { margin: 0 0 8px; color: #183e35; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 500; line-height: 1.18; }
.bill-card h3 { text-decoration: none; }
.text-link { flex: 0 0 auto; color: #1b6d55; font-size: .92rem; font-weight: 700; text-decoration: none; }
.text-link::after { content: " →"; }
.bill-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 42px 0 56px; border-top: 1px solid #cfd4cc; border-bottom: 1px solid #cfd4cc; }
.bill-facts div { min-height: 105px; padding: 18px 18px 18px 0; border-right: 1px solid #cfd4cc; }
.bill-facts div + div { padding-left: 18px; }
.bill-facts div:last-child { border-right: 0; }
.bill-facts dt { margin-bottom: 8px; color: #667572; font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.bill-facts dd { margin: 0; line-height: 1.45; }
.bill-facts a { color: #1b6d55; text-underline-offset: 3px; }
.source-content { max-width: 840px; }
.bill-summary-section { max-width: 760px; margin-bottom: 42px; }
.bill-summary-section > p { margin: 0; padding: 20px 22px; border-left: 3px solid #1b6d55; background: #edf4ef; color: #31413e; line-height: 1.6; }
.legislation-reader { display: grid; gap: 42px; margin-bottom: 42px; }
.reader-pane { min-width: 0; max-width: none; }
.bill-text-section, .documents-section { max-width: 840px; margin-bottom: 42px; }
.legislation-reader .bill-text-section { max-width: none; margin-bottom: 0; }
.version-note { margin-bottom: 12px; color: #667572; font-size: .9rem; }
.reader-preview, .reader-text { padding: 30px; border: 1px solid #d7d9d2; background: #fffef9; color: #253631; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.8; white-space: pre-wrap; }
.reader-preview { max-height: 19rem; overflow: hidden; mask-image: linear-gradient(to bottom, black 78%, transparent); }
.reader-expander { margin-top: 12px; }
.reader-expander summary { width: fit-content; color: #1b6d55; font-weight: 750; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.reader-expander .reader-text { margin-top: 16px; }
.hansard-picker { display: flex; gap: 8px; margin-bottom: 12px; padding-bottom: 2px; overflow-x: auto; }
.hansard-choice { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #aebbb4; border-radius: 999px; color: #1b6d55; background: #fffef9; font-size: .78rem; text-decoration: none; }
.hansard-choice-active { border-color: #1b6d55; color: #fff; background: #1b6d55; }
.hansard-title { min-height: 1.35em; }
.hansard-title a { color: #1b6d55; text-underline-offset: 3px; }
.document-links { display: grid; gap: 9px; margin: 0; padding: 18px 22px 18px 40px; border: 1px solid #d7d9d2; background: #fffef9; }
.document-links + .document-links { margin-top: 10px; }
.document-links a { color: #1b6d55; text-underline-offset: 3px; }
.markdown-source { padding: 26px; overflow-wrap: anywhere; border: 1px solid #d7d9d2; background: #fffef9; color: #31413e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88rem; line-height: 1.7; white-space: pre-wrap; }
.empty-state { padding: 30px; border: 1px dashed #afb9b3; color: #53615f; background: #fcfbf7; }
.empty-state h2 { color: #183e35; }
.empty-state p { margin-bottom: 0; line-height: 1.5; }
.search-error { margin-top: 14px; color: #793b36; font-size: .9rem; }
.hansard-report-detail { padding: 68px 0 38px; }
.report-contents { max-width: 760px; margin: 42px 0; padding: 24px; border: 1px solid #d7d9d2; background: #fffef9; }
.report-contents h2 { font-size: 1.1rem; }
.report-contents ol { display: grid; gap: 8px; margin-bottom: 0; }
.report-contents a, .report-section a { color: #1b6d55; text-underline-offset: 3px; }
.report-section { margin: 0 0 50px; padding-top: 20px; border-top: 1px solid #cfd4cc; scroll-margin-top: 20px; }
.report-section > h2 { color: #183e35; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 500; }
.report-section-text { max-height: 38rem; padding: 26px; overflow: auto; border: 1px solid #d7d9d2; background: #fffef9; font-family: Georgia, "Times New Roman", serif; line-height: 1.75; white-space: pre-wrap; }
.vote-summary { margin-top: 14px; padding: 18px 20px; border: 1px solid #b8cbbf; background: #edf4ef; }
.vote-heading { display: flex; justify-content: space-between; gap: 16px; }
.vote-heading span { color: #60706e; font-size: .85rem; }
.vote-summary p:last-child { margin-bottom: 0; }
.vote-totals { margin: 12px 0; }
.vote-casts { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.vote-casts li { display: flex; justify-content: space-between; gap: 20px; padding-top: 6px; border-top: 1px solid #c8d8ce; }
.bill-votes-section, .bill-arguments-section { margin: 0 0 48px; }
.bill-votes-section > .vote-summary { margin-top: 0; }
.vote-source { margin: 8px 0 0; color: #1b6d55; font-size: .86rem; }
.prior-votes { margin-top: 18px; padding: 14px 18px; border: 1px solid #d7d9d2; background: #fcfbf7; }
.prior-votes summary { color: #183e35; font-weight: 750; cursor: pointer; }
.vote-date { margin: 18px 0 6px; color: #60706e; font-size: .85rem; }
.argument-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.argument-group { padding: 20px; border: 1px solid #d7d9d2; background: #fffef9; }
.argument-group-for { border-top: 4px solid #1b6d55; }
.argument-group-against { border-top: 4px solid #9b4c43; }
.argument-group-nuance { margin-top: 18px; border-top: 4px solid #b48a2c; }
.argument-group h3 { color: #183e35; font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; font-weight: 500; }
.argument-point { padding: 14px 0; border-top: 1px solid #d7d9d2; }
.argument-point p { margin-bottom: 9px; line-height: 1.55; }
.argument-evidence { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.argument-evidence a { display: inline-block; padding: 4px 8px; border-radius: 999px; color: #15513f; background: #e5f0e9; font-size: .72rem; text-decoration: none; }
.admin-shell { max-width: 1180px; }
.admin-header { margin: 46px 0 30px; }
.admin-header h1 { margin: 16px 0 10px; }
.admin-header p { max-width: 680px; margin-bottom: 0; color: #53615f; line-height: 1.55; }
.admin-shell h1 { margin-top: 46px; font-size: clamp(2rem, 5vw, 3.5rem); }
.admin-button, .admin-form input[type="submit"], .admin-inline-form input[type="submit"], .admin-actions button { padding: 9px 13px; border: 0; border-radius: 4px; color: #fff; background: #1b6d55; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.admin-list { display: grid; border-top: 1px solid #cfd4cc; }
.admin-list-item { display: flex; justify-content: space-between; gap: 20px; padding: 18px 4px; border-bottom: 1px solid #cfd4cc; text-decoration: none; }
.admin-list-item > div { display: grid; gap: 4px; }
.admin-list-item a { color: #183e35; }
.admin-list-item span { color: #60706e; }
.admin-form { display: grid; gap: 14px; max-width: 900px; }
.admin-form > label { display: grid; gap: 6px; font-weight: 700; }
.admin-form input, .admin-form textarea, .admin-form select, .admin-inline-form select, .admin-cast-row input, .admin-cast-row select { max-width: 100%; padding: 9px; border: 1px solid #aebbb4; background: #fff; font: inherit; }
.admin-form input[type="submit"] { justify-self: start; }
.admin-actions { display: flex; align-items: center; gap: 12px; }
.admin-actions form { display: inline; }
.admin-section { margin: 32px 0; }
.review-card { margin: 12px 0; padding: 18px; border: 1px solid #d7d9d2; background: #fcfbf7; }
.review-card form { display: grid; gap: 10px; }
.review-card textarea, .review-card select { width: 100%; padding: 9px; border: 1px solid #aebbb4; background: #fff; font: inherit; }
.review-card blockquote { margin: 14px 0; padding: 12px 16px; border-left: 3px solid #1b6d55; background: #fff; line-height: 1.5; }
.review-card blockquote footer { margin-top: 7px; color: #60706e; font-size: .8rem; }
.review-error { padding: 12px 16px; color: #793b36; background: #f4ddda; }
.admin-notice, .admin-errors { padding: 12px 16px; background: #edf4ef; }
.admin-errors { color: #793b36; background: #f4ddda; }
.admin-review-card { margin: 34px 0; padding: 24px; border: 1px solid #d7d9d2; background: #fcfbf7; scroll-margin-top: 20px; }
.admin-source-preview { max-height: 24rem; padding: 18px; overflow: auto; white-space: pre-wrap; background: #fff; }
.admin-inline-form { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.admin-vote { margin-top: 24px; padding-top: 20px; border-top: 2px solid #1b6d55; }
.admin-cast-row { display: grid; grid-template-columns: 2fr 1fr .7fr 1.5fr 1.5fr auto; gap: 8px; }
.bill-chat { position: fixed; right: 24px; bottom: 24px; z-index: 30; display: grid; justify-items: end; gap: 12px; }
.bill-chat-launcher { display: inline-flex; align-items: center; gap: 9px; padding: 13px 18px; border: 0; border-radius: 999px; box-shadow: 0 10px 30px rgb(18 60 50 / 22%); color: #fff; background: #1b6d55; font: inherit; font-weight: 750; cursor: pointer; }
.bill-chat-launcher:hover, .bill-chat-launcher:focus-visible { background: #155541; }
.bill-chat-panel { width: min(390px, calc(100vw - 32px)); overflow: hidden; border: 1px solid #b8c8bf; border-radius: 14px; box-shadow: 0 18px 55px rgb(23 34 35 / 24%); background: #fffef9; }
.bill-chat-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; color: #fff; background: #123c32; }
.bill-chat-header div { display: grid; gap: 2px; }
.bill-chat-header strong { font-size: .98rem; }
.bill-chat-header span { color: #cfe0d9; font-size: .76rem; }
.bill-chat-close { padding: 2px 6px; border: 0; color: #fff; background: transparent; font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.bill-chat-messages { display: grid; align-content: start; gap: 10px; height: min(390px, 50vh); padding: 16px; overflow-y: auto; background: #f4f3ed; }
.bill-chat-message { max-width: 88%; padding: 10px 12px; border-radius: 12px; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.bill-chat-message a { color: inherit; font-weight: 700; text-underline-offset: 2px; }
.bill-chat-message-assistant { justify-self: start; border: 1px solid #d8ddd7; border-bottom-left-radius: 3px; color: #293936; background: #fff; }
.bill-chat-message-user { justify-self: end; border-bottom-right-radius: 3px; color: #fff; background: #1b6d55; }
.bill-chat-message-error { justify-self: start; border: 1px solid #e5b8b3; color: #793b36; background: #f9e8e5; }
.bill-chat-sources { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; padding-top: 8px; border-top: 1px solid currentColor; }
.bill-chat-sources a { padding: 2px 6px; border: 1px solid #aebbb4; border-radius: 999px; color: #1b6d55; background: #f7faf8; font-size: .7rem; font-weight: 700; text-decoration: none; }
.bill-chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 12px 8px; border-top: 1px solid #d7d9d2; }
.bill-chat-form textarea { min-height: 45px; max-height: 120px; resize: vertical; padding: 10px 11px; border: 1px solid #aebbb4; border-radius: 8px; color: #172223; background: #fff; font: inherit; font-size: .9rem; }
.bill-chat-form textarea:focus { outline: 2px solid #1b6d55; outline-offset: 1px; }
.bill-chat-form button { align-self: stretch; padding: 0 14px; border: 0; border-radius: 8px; color: #fff; background: #1b6d55; font: inherit; font-weight: 750; cursor: pointer; }
.bill-chat-form button:disabled { cursor: wait; opacity: .65; }
.bill-chat-note, .bill-chat-unavailable { margin: 0; padding: 0 14px 12px; color: #667572; font-size: .7rem; line-height: 1.4; }
.bill-chat-unavailable { padding: 18px; font-size: .85rem; }
@media (max-width: 760px) { .argument-columns { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .site-shell { padding: 20px 18px 90px; } .site-header, .bill-card { align-items: flex-start; flex-direction: column; gap: 12px; } .bill-controls { align-items: stretch; } .control-field, .control-field select, .control-actions { width: 100%; } .page-intro, .bill-detail { padding-top: 45px; } .bill-facts { grid-template-columns: 1fr; } .bill-facts div, .bill-facts div + div { min-height: auto; padding: 16px 0; border-right: 0; border-bottom: 1px solid #cfd4cc; } .bill-facts div:last-child { border-bottom: 0; } .reader-preview, .reader-text { padding: 22px; } .admin-cast-row { grid-template-columns: 1fr; } .admin-actions { align-items: flex-start; flex-direction: column; } .vote-heading, .vote-casts li, .admin-list-item { flex-direction: column; } .bill-chat { right: 12px; bottom: 12px; } .bill-chat-panel { width: calc(100vw - 24px); } .bill-chat-messages { height: min(380px, 52vh); } }
