:root {
  color: #171717;
  background: #fff;
  font: 14px/1.45 Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 1120px; padding: 16px 20px 32px; }
a { color: #075c9e; }
a:visited { color: #6a3e86; }
a:hover { color: #b02a19; }
.masthead { border-bottom: 1px solid #aaa; padding: 3px 0 12px; margin-bottom: 16px; }
.brand { color: #a42b20; font: bold 30px Georgia, "Times New Roman", serif; text-decoration: none; }
.tagline { color: #555; margin-left: 14px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid #ccc; padding: 0 0 12px; }
.toolbar h1 { font-size: 18px; margin: 0 auto 0 0; }
label { color: #444; }
select { font: inherit; border: 1px solid #888; background: white; padding: 4px 7px; }
.summary { margin: 12px 0 18px; color: #444; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
section { min-width: 0; margin-bottom: 22px; }
h2 { font-size: 17px; border-bottom: 1px solid #999; margin: 0 0 8px; padding-bottom: 4px; }
h3 { font-size: 15px; margin: 0 0 7px; }
.bill { padding: 7px 0 8px; border-bottom: 1px dotted #bbb; }
.bill-title { font-weight: bold; }
.meta { color: #555; font-size: 12px; margin-top: 3px; }
.score { color: #333; white-space: nowrap; }
.score b { color: #a42b20; }
.sponsor { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted #bbb; padding: 5px 0; }
.sponsor span:last-child { color: #555; white-space: nowrap; }
.recent { grid-column: 1 / -1; }
.detail-head { border-bottom: 1px solid #aaa; padding-bottom: 12px; margin-bottom: 15px; }
.detail-head h1 { font-size: 21px; margin: 0 0 5px; line-height: 1.3; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 30px; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 145px minmax(0, 1fr); padding: 5px 0; border-bottom: 1px dotted #ccc; }
.facts dt { color: #555; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.rating { border-bottom: 1px dotted #ccc; padding: 7px 0; }
.rating strong { display: block; font-size: 17px; color: #a42b20; }
.rating small { color: #555; }
.back { display: inline-block; margin: 0 0 12px; }
.error { color: #9b2118; }
footer { border-top: 1px solid #aaa; color: #555; margin-top: 16px; padding-top: 9px; font-size: 12px; }
@media (max-width: 680px) {
  body { padding: 12px 14px 24px; }
  .columns, .detail-grid { grid-template-columns: 1fr; gap: 8px; }
  .recent { grid-column: auto; }
  .tagline { display: block; margin: 1px 0 0; }
}
