: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; }
.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; }
.bill-text-section, .documents-section { max-width: 840px; margin-bottom: 42px; }
.version-note { margin-bottom: 12px; color: #667572; font-size: .9rem; }
.bill-text { max-height: 44rem; padding: 30px; overflow: auto; 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; }
.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; }
@media (max-width: 620px) { .site-shell { padding: 20px 18px 52px; } .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; } }
