/* ============================================================
   caprops.org
   Plain CSS — no framework, no dependencies
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink:        #1a1a1a;
  --ink-light:  #555;
  --paper:      #faf8f4;
  --rule:       #ddd;
  --yes-bg:     #f0f7f0;
  --yes-border: #2d7a2d;
  --no-bg:      #fdf3f0;
  --no-border:  #c0392b;
  --badge-bg:   #fff3cd;
  --badge-text: #7d5a00;
  --warning-bg: #fff8e1;
  --warning-border: #f0a500;
  --max-width:  780px;
  --serif:      Georgia, 'Times New Roman', serif;
  --sans:       system-ui, -apple-system, sans-serif;
}

html {
  font-size: 18px;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: var(--sans);
  line-height: 1.6;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Header ---- */

header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 2px solid var(--ink);
}

header h1 {
  font-family: var(--serif);
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

header p {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- History banner ---- */

.history-banner {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--ink);
  background: #f0ece4;
}

.history-banner p {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.7;
  font-style: italic;
}

/* ---- Timeline ---- */

.timeline-section {
  margin: 2.5rem 0;
}

.timeline-section h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.timeline {
  list-style: none;
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: var(--rule);
}

.timeline li {
  position: relative;
  padding: 0 0 1.5rem 1.25rem;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -0.45rem;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-light);
  border: 2px solid var(--paper);
}

.timeline li.inflection::before {
  background: var(--no-border);
}

.timeline-year {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-light);
}

.timeline-event {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: bold;
  margin: 0.15rem 0 0.25rem;
}

.timeline-detail {
  font-size: 0.88rem;
  color: var(--ink-light);
  line-height: 1.5;
}

/* ---- Propositions section ---- */

.propositions-section h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

/* ---- Proposition card ---- */

.prop-card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.prop-card-header {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.prop-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  background: var(--badge-bg);
  color: var(--badge-text);
  margin-bottom: 0.6rem;
}

.prop-status.on-ballot {
  background: #e8f5e9;
  color: #1b5e20;
}

.prop-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
}

.prop-subtitle {
  font-size: 0.88rem;
  color: var(--ink-light);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.prop-card-body {
  padding: 1.25rem 1.5rem;
}

.prop-summary {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.prop-what-it-means {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-light);
  border-left: 3px solid var(--rule);
  padding-left: 0.9rem;
  margin-bottom: 1rem;
}

.prop-ballot-date {
  font-size: 0.82rem;
  color: var(--ink-light);
  margin-bottom: 1.25rem;
}

/* Collapsible ballot cards */

.ballot-section {
  margin: 2.5rem 0;
}

details.prop-card {
  margin-bottom: 1rem;
}

details.prop-card > summary {
  list-style: none;
  cursor: pointer;
  border-bottom: none;
}

details.prop-card > summary::-webkit-details-marker { display: none; }

details.prop-card > summary:hover {
  background: #f0ece4;
}

details.prop-card[open] > summary {
  border-bottom: 1px solid var(--rule);
}

.prop-placed-by {
  font-size: 0.88rem;
  color: var(--ink-light);
  margin-top: 0.6rem;
  line-height: 1.45;
}

.prop-placed-by strong {
  color: var(--ink);
}

.prop-money {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.prop-money strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0;
  margin-left: 0.2rem;
}

.money.yes { color: var(--yes-border); }
.money.no  { color: var(--no-border); }

.prop-expand {
  margin-left: auto;
  color: var(--ink-light);
}

.prop-expand::after {
  content: " ▸";
}

details.prop-card[open] .prop-expand::after {
  content: " ▾";
}

/* Kicker labels */

.kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-light);
  margin-bottom: 0.1rem;
}

/* Vote means */

.vote-means {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .vote-means { grid-template-columns: 1fr; gap: 0.5rem; }
}

.vote-means > div {
  padding-left: 0.6rem;
}

.vote-means .yes { border-left: 3px solid var(--yes-border); }
.vote-means .no  { border-left: 3px solid var(--no-border); }

.vote-means dt {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.vote-means .yes dt { color: var(--yes-border); }
.vote-means .no dt  { color: var(--no-border); }

/* What the funders get / cost */

.funder-stake {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-border);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.prop-cost {
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* At a glance */

.glance-label {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.glance {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .glance { grid-template-columns: 1fr; }
}

.g {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.65rem 0.8rem 0.7rem;
  font-size: 0.82rem;
  line-height: 1.4;
  background: #fff;
}

.g-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 0.3rem;
}

.g-head:hover .g-title { text-decoration: underline; }

.g-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
}

.g-title {
  font-family: var(--serif);
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.2;
}

.g-yes {
  margin-bottom: 0.35rem;
}

.g-yes b { color: var(--yes-border); }

.g-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.5rem;
  margin-bottom: 0.35rem;
}

.g-facts dt {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-light);
  padding-top: 0.15rem;
}

.g-facts dt.plus  { color: var(--yes-border); }
.g-facts dt.minus { color: var(--no-border); }

.g-flag {
  background: var(--warning-bg);
  border-left: 3px solid var(--warning-border);
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.g-flag::before { content: "⚑ "; }

.g-bar-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: center;
  gap: 0.4rem;
}

.g-amt {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.g-amt.yes { color: var(--yes-border); }
.g-amt.no  { color: var(--no-border); }

.g-track {
  height: 0.5rem;
  background: #f0ece4;
  border-radius: 2px;
  overflow: hidden;
}

.bar {
  display: block;
  height: 100%;
}

.bar.yes { background: var(--yes-border); }
.bar.no  { background: var(--no-border); }

.g-note {
  font-size: 0.75rem;
  color: var(--ink-light);
  margin-top: 0.5rem;
}

/* Special interest score */

.si {
  border-top: 1px dashed var(--rule);
  padding-top: 0.35rem;
  margin: 0.35rem 0 0.45rem;
}

.si-row {
  display: grid;
  grid-template-columns: 4.2rem auto 3.4rem 1fr;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.si-side {
  font-size: 0.7rem;
  font-weight: 700;
}

.si-side.yes { color: var(--yes-border); }
.si-side.no  { color: var(--no-border); }

.si-hits {
  font-size: 0.72rem;
  color: var(--ink-light);
  line-height: 1.3;
}

.si-full .si-checks { margin-top: 0.2rem; }

.si-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-light);
}

.si-dots { display: inline-flex; gap: 3px; }

.si-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink-light);
}

.si-dot.on { background: var(--ink); border-color: var(--ink); }
.si-3 .si-dot.on { background: var(--warning-border); border-color: var(--warning-border); }

.si-level {
  font-size: 0.75rem;
  font-weight: 700;
}

.si-3 .si-level { color: #9a6700; }

.si-checks {
  list-style: none;
  font-size: 0.74rem;
  line-height: 1.35;
  margin-top: 0.15rem;
  color: var(--ink-light);
}

.si-checks li.yes { color: var(--ink); }
.si-checks li.yes b { color: var(--no-border); }

.si-key {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--ink-light);
  margin-bottom: 0.6rem;
}

.si-key b { color: var(--ink); }

/* Who's who */

a.grp {
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}

a.grp:hover { text-decoration-style: solid; }

.who-intro { margin: 0 0 0.75rem; }

.who-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .who-list { grid-template-columns: 1fr; }
}

.who {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.65rem 0.8rem;
  font-size: 0.82rem;
  line-height: 1.45;
  background: #fff;
  scroll-margin-top: 1rem;
}

.who:target {
  border-color: var(--warning-border);
  box-shadow: 0 0 0 3px var(--warning-bg);
}

.who h4 {
  font-family: var(--serif);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.who p + p { margin-top: 0.3rem; }

.who-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-light);
}

.who-meta {
  font-size: 0.76rem;
  color: var(--ink-light);
}

.who-meta a { color: var(--ink-light); }

/* Endorsements */

.endorse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
}

@media (max-width: 560px) {
  .endorse-grid { grid-template-columns: 1fr; }
}

.endorse-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.3rem;
}

.endorse.yes .endorse-label { color: var(--yes-border); }
.endorse.no  .endorse-label { color: var(--no-border); }

.endorse ul {
  list-style: none;
}

.endorse li {
  padding: 0.15rem 0;
  border-bottom: 1px solid #f0ece4;
}

.endorse-none,
.funding-empty {
  color: var(--ink-light);
  font-size: 0.8rem;
}

.funding-empty {
  padding: 0 0.75rem 0.75rem;
}

.summary-lede {
  font-size: 0.92rem;
  margin: 0.5rem 0 0.4rem;
}

/* ---- Ad warning ---- */

.ad-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 3px;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.ad-warning::before {
  content: "Note: ";
  font-weight: 700;
}

/* ---- Funding table ---- */

.funding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 560px) {
  .funding-grid {
    grid-template-columns: 1fr;
  }
}

.funding-side {
  border-radius: 3px;
  overflow: hidden;
}

.funding-side.yes {
  border: 1px solid var(--yes-border);
}

.funding-side.no {
  border: 1px solid var(--no-border);
}

.funding-side-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.45rem 0.75rem;
}

.funding-side.yes .funding-side-label {
  background: var(--yes-border);
  color: #fff;
}

.funding-side.no .funding-side-label {
  background: var(--no-border);
  color: #fff;
}

.funding-side-total {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: bold;
  padding: 0.5rem 0.75rem 0.25rem;
}

.funding-funders {
  list-style: none;
  border-top: 1px solid var(--rule);
}

.funding-funder {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.82rem;
  line-height: 1.45;
}

.funding-funder:last-child {
  border-bottom: none;
}

.funder-name {
  font-weight: 600;
}

.funder-amount {
  color: var(--ink-light);
  font-size: 0.78rem;
}

.funder-note {
  color: var(--ink-light);
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

/* ---- Sources ---- */

.prop-sources {
  font-size: 0.8rem;
  color: var(--ink-light);
}

.prop-sources span {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
}

.prop-sources a {
  color: var(--ink-light);
  margin-right: 1rem;
}

.prop-sources a:hover {
  color: var(--ink);
}

.prop-sources a.source-primary {
  color: var(--ink);
  font-weight: 600;
}

.prop-sources a.source-primary::before {
  content: "★ ";
  font-size: 0.7rem;
}

/* ---- Section intros ---- */

.section-intro {
  font-size: 0.9rem;
  color: var(--ink-light);
  margin: -0.75rem 0 1.25rem;
}

/* ---- Scorecard section ---- */

.scorecard-section {
  margin: 2.5rem 0;
}

.scorecard-section h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.scorecard-intro {
  font-size: 0.9rem;
  color: var(--ink-light);
  margin: 0.25rem 0 1.25rem;
}

/* Summary stats */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 560px) {
  .summary-grid { grid-template-columns: 1fr; }
}

.summary-stat {
  background: #f0ece4;
  border-radius: 3px;
  padding: 1rem;
  text-align: center;
}

.summary-number {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.summary-label {
  font-size: 0.78rem;
  color: var(--ink-light);
  line-height: 1.4;
}

.summary-note {
  font-size: 0.78rem;
  color: var(--ink-light);
  margin-bottom: 1.5rem;
}

.summary-note a {
  color: var(--ink-light);
}

/* Scorecard table */

.scorecard {
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.sc-row {
  border-bottom: 1px solid var(--rule);
}

.sc-row:last-child {
  border-bottom: none;
}

.sc-summary {
  display: grid;
  grid-template-columns: 3rem 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.sc-summary::-webkit-details-marker { display: none; }

.sc-summary:hover {
  background: #f0ece4;
}

.sc-row[open] .sc-summary {
  background: #f0ece4;
  border-bottom: 1px solid var(--rule);
}

.sc-year {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-light);
  white-space: nowrap;
}

.sc-name {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sc-plain {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-prop-num {
  font-size: 0.72rem;
  color: var(--ink-light);
}

.sc-funder {
  font-size: 0.78rem;
  color: var(--ink-light);
  white-space: nowrap;
  text-align: right;
}

.sc-outcome {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  white-space: nowrap;
}

.outcome-passed    { background: #e8f5e9; color: #1b5e20; }
.outcome-failed    { background: #fde8e8; color: #8b0000; }
.outcome-overturned{ background: #fff3cd; color: #7d5a00; }
.outcome-mixed     { background: #e8e4dc; color: var(--ink-light); }

@media (max-width: 560px) {
  .sc-summary {
    grid-template-columns: 2.5rem 1fr auto;
  }
  .sc-funder { display: none; }
}

/* Expanded detail */

.sc-detail {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--rule);
  background: #fff;
}

.sc-official-title {
  font-size: 0.78rem;
  color: var(--ink-light);
  margin-bottom: 0.6rem;
}

.sc-description {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sc-funders {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.sc-funders th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.sc-funders td {
  padding: 0.4rem 0.5rem;
  vertical-align: top;
  border-bottom: 1px solid #f0ece4;
}

.funder-row.yes td:first-child { color: var(--yes-border); font-weight: 700; font-size: 0.7rem; }
.funder-row.no  td:first-child { color: var(--no-border);  font-weight: 700; font-size: 0.7rem; }

.funder-note-inline {
  color: var(--ink-light);
  font-size: 0.78rem;
}

.funder-amount-cell {
  white-space: nowrap;
  font-weight: 600;
  text-align: right;
}

.sc-got {
  font-size: 0.88rem;
  line-height: 1.55;
  border-left: 3px solid var(--rule);
  padding-left: 0.9rem;
  margin-bottom: 0.75rem;
}

.verify-note {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
}

.verify-note a {
  color: var(--ink-light);
}

/* ---- Footer ---- */

footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  color: var(--ink-light);
  line-height: 1.6;
}

/* ---- Cheat sheet link ---- */

.sheet-link {
  font-size: 0.85rem;
  margin: -0.25rem 0 0.6rem;
}

.sheet-link a {
  font-weight: 700;
  color: var(--ink);
}

/* ---- Start here: typical household ---- */

.typical-section {
  margin: 2rem 0 2.5rem;
  padding: 1.1rem 1.25rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: #fff;
}

.typical-section h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.t-profile {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
}

.t-lede {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.t-list {
  list-style: none;
  border-top: 1px solid var(--rule);
}

.t-row {
  display: grid;
  grid-template-columns: 13rem 6.2rem 1fr;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.85rem;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .typical-section { padding: 0.9rem 0.9rem 0.8rem; }
  .t-row { grid-template-columns: 1fr auto; gap: 0.15rem 0.5rem; }
  .t-text { grid-column: 1 / 3; }
}

.t-prop {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.t-prop:hover { text-decoration: underline; }

.t-num {
  font-family: var(--serif);
  font-weight: bold;
  display: inline-block;
  min-width: 1.6rem;
}

.t-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.12rem 0.4rem;
  border-radius: 2px;
  white-space: nowrap;
  justify-self: start;
}

.t-none  { background: #eeeeee; color: #555; }
.t-cost  { background: var(--warning-bg); color: #7d5a00; }
.t-maybe { background: #e8f0fb; color: #1d4f91; }
.t-rules { background: #f0ece4; color: var(--ink); }

.t-close {
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 0.75rem;
}

.t-close a { color: var(--ink); font-weight: 700; }

.t-sources {
  font-size: 0.72rem;
  color: var(--ink-light);
  margin-top: 0.5rem;
}

.t-sources a { color: var(--ink-light); }

.t-why {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-light);
  margin-bottom: 0.6rem;
}

.t-why b { color: var(--ink); }

.t-leg {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-light);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0 0.3rem;
  vertical-align: 1px;
}

/* ---- Quiz ---- */

.quiz-section {
  margin: 2rem 0;
}

.quiz-section h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.quiz-intro {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.quiz-privacy {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-light);
  background: #f0ece4;
  border-radius: 3px;
  padding: 0.5rem 0.7rem;
  margin-bottom: 1rem;
}

.quiz-privacy b { color: var(--ink); }

.q {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.6rem 0.75rem 0.7rem;
  margin-bottom: 0.6rem;
  background: #fff;
}

.q legend {
  font-size: 0.92rem;
  line-height: 1.4;
  padding: 0;
  float: left;
  width: 100%;
  margin-bottom: 0.5rem;
}

.q-num {
  font-family: var(--serif);
  font-weight: bold;
  margin-right: 0.25rem;
}

.q-scale {
  clear: both;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.3rem;
}

.q-scale label {
  position: relative;
  cursor: pointer;
}

.q-scale input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.q-scale span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 2.4rem;
  padding: 0.2rem 0.25rem;
  font-size: 0.72rem;
  line-height: 1.15;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
}

.q-scale input:focus-visible + span { outline: 2px solid var(--ink); }
.q-scale input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }

.quiz-results {
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
  background: #fff;
  margin-top: 0.75rem;
}

.qr-empty {
  font-size: 0.85rem;
  color: var(--ink-light);
}

.qr-head {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.qr-head button {
  font: inherit;
  font-size: 0.8rem;
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
  color: var(--ink-light);
  padding: 0;
}

.qr-list { list-style: none; }

.qr-row {
  display: grid;
  grid-template-columns: 6.8rem 1fr;
  gap: 0.1rem 0.6rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  line-height: 1.35;
}

.qr-lean {
  grid-row: span 3;
  align-self: start;
  justify-self: start;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
}

.qr-yes   { background: var(--yes-bg); color: var(--yes-border); border: 1px solid var(--yes-border); }
.qr-no    { background: var(--no-bg);  color: var(--no-border);  border: 1px solid var(--no-border); }
.qr-mixed { background: #eeeeee; color: var(--ink); }
.qr-skip  { color: var(--ink-light); border: 1px dashed var(--rule); }

.qr-prop { color: var(--ink); text-decoration: none; }
.qr-prop:hover { text-decoration: underline; }

.qr-why, .qr-money {
  font-size: 0.76rem;
  color: var(--ink-light);
}

.qr-note {
  font-size: 0.74rem;
  color: var(--ink-light);
  margin-top: 0.5rem;
}

/* ---- Origins grid ---- */

.origins-section { margin: 1.5rem 0 2rem; }

.origins-section h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.o-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

@media (max-width: 640px) {
  .o-grid { grid-template-columns: 1fr; }
}

.o-col h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.25;
}

.o-col h3 span { color: var(--ink-light); font-weight: normal; }

.o-sub {
  font-size: 0.76rem;
  color: var(--ink-light);
  line-height: 1.4;
  margin: 0.15rem 0 0.4rem;
}

.o-list {
  list-style: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.o-cell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.05rem 0.5rem;
  padding: 0.4rem 0.6rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  line-height: 1.35;
}

.o-cell:first-child { border-top: 0; }

.o-flag { background: var(--warning-bg); box-shadow: inset 3px 0 0 var(--warning-border); }

.o-prop { color: var(--ink); text-decoration: none; }
.o-prop:hover { text-decoration: underline; }
.o-prop b { font-family: var(--serif); margin-right: 0.15rem; }

.o-who { grid-column: 1 / 2; font-size: 0.74rem; }
.o-why { color: var(--ink-light); }

.o-money {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 0.72rem;
  text-align: right;
  white-space: nowrap;
  color: var(--ink-light);
}

.o-money b { color: #9a6700; display: block; }

.o-type {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 0.3rem;
  border-radius: 2px;
  border: 1px solid var(--rule);
  color: var(--ink);
}

.o-note {
  font-size: 0.76rem;
  color: var(--ink-light);
  line-height: 1.45;
  margin-top: 0.5rem;
}

.o-note b { color: #9a6700; }

.o-sub a, .o-why a, .t-why a, .law-cite a { color: inherit; }
.law-cite { display: block; margin-top: 0.2rem; font-size: 0.8rem; }

.o-deal { border-color: var(--warning-border); color: #7d5a00; background: var(--warning-bg); }

.o-rule {
  font-size: 0.8rem;
  line-height: 1.45;
  margin-top: 0.5rem;
  padding-left: 0.6rem;
  border-left: 3px solid var(--rule);
}

.o-rule a { color: var(--ink-light); }

.o-rule-lead { border-left-color: var(--ink); font-size: 0.86rem; }
