/* MercantileMonopoly.com — shared stylesheet */
/* Ink and tea theme — 1773 broadside, red for the monopoly, green for the remedy */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #1c1917; line-height: 1.7; background: #faf8f4; }
a { color: #9b1c1c; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.container ul, .container ol { margin: 12px 0 12px 32px; }
.container li { margin-bottom: 6px; font-size: 1.02em; color: #44403c; }
.container p { margin-bottom: 16px; }

/* ── Hero ── */
.hero { background: linear-gradient(160deg, #0f172a 0%, #1e293b 45%, #3b1d12 100%); color: #fff; text-align: center; padding: 64px 24px 48px; }
.hero h1 { font-family: Georgia, serif; font-size: 2.7em; font-weight: 700; margin-bottom: 12px; line-height: 1.15; }
.hero h1 span { color: #f87171; }
.hero .tagline { font-size: 1.1em; font-weight: 300; color: rgba(255,255,255,0.85); max-width: 720px; margin: 0 auto 20px; }
.hero .chain { font-family: Georgia, serif; font-size: 1em; color: #fbbf24; letter-spacing: 1px; }

/* ── Tabs ── */
.tabs { display: flex; background: #0f172a; border-bottom: 2px solid rgba(248,113,113,0.3); padding: 0 24px; overflow-x: auto; position: sticky; top: 0; z-index: 100; }
.tab { padding: 12px 16px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.55); border-bottom: 3px solid transparent; white-space: nowrap; }
.tab:hover { color: #fff; text-decoration: none; border-bottom-color: #f87171; }

/* ── Sections ── */
section { padding: 48px 0; border-bottom: 1px solid #e7e5e4; scroll-margin-top: 48px; }
section:last-of-type { border-bottom: none; }
section .year { font-family: Georgia, serif; font-size: 0.95em; font-weight: 700; color: #9b1c1c; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px; }
section h2 { font-family: Georgia, serif; font-size: 1.8em; font-weight: 400; margin-bottom: 14px; }
section h2 span { color: #9b1c1c; }
section h2 .green { color: #15803d; }
section p.lead { font-size: 1.06em; color: #44403c; max-width: 740px; margin-bottom: 24px; }

/* ── Quote ── */
.quote-block { background: #fef2f2; border-left: 4px solid #9b1c1c; padding: 22px 30px; margin: 26px 0; border-radius: 0 8px 8px 0; }
.quote-block.green { background: #f0fdf4; border-left-color: #15803d; }
.quote-block.ink { background: #f1f5f9; border-left-color: #1e293b; }
.quote-block p { font-style: italic; font-family: Georgia, serif; font-size: 1.08em; color: #1c1917; margin-bottom: 8px; }
.quote-block .attr { font-style: normal; font-size: 0.88em; color: #57534e; }

/* ── Roll call ── */
.rollcall { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin: 20px 0 8px; }
.rollcall div { text-align: center; padding: 10px 4px; border-radius: 6px; font-size: 0.85em; font-weight: 600; }
.rollcall .no { background: #1e293b; color: #fff; }
.rollcall .ay { background: #fde68a; color: #1c1917; }
.rollcall small { display: block; font-weight: 400; opacity: 0.8; }
.rollcall-total { font-family: Georgia, serif; font-size: 1.2em; text-align: center; margin: 12px 0 0; }

/* ── Cards ── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 24px 0; }
.card { border-radius: 10px; padding: 22px; background: #fff; border: 1px solid #e7e5e4; }
.card h3 { font-size: 1.08em; font-weight: 700; margin-bottom: 8px; color: #9b1c1c; }
.card.green h3 { color: #15803d; }
.card p { font-size: 0.94em; line-height: 1.6; color: #44403c; margin-bottom: 8px; }
.card .src { font-size: 0.82em; color: #78716c; }

/* ── State constitutions ── */
.states { width: 100%; border-collapse: collapse; margin: 20px 0; }
.states th { text-align: left; padding: 10px 12px; font-size: 0.78em; letter-spacing: 1px; text-transform: uppercase; color: #9b1c1c; border-bottom: 2px solid #9b1c1c; }
.states td { padding: 10px 12px; font-size: 0.93em; border-bottom: 1px solid #e7e5e4; vertical-align: top; }
.states td:first-child { font-weight: 700; white-space: nowrap; }
.states td em { font-family: Georgia, serif; }

/* ── 5X5 box ── */
.standard { border: 2px solid #15803d; border-radius: 10px; padding: 24px 28px; background: #f0fdf4; margin: 24px 0; }
.standard h3 { color: #15803d; margin-bottom: 10px; }
.standard ol { margin-left: 22px; }

/* ── Footer ── */
footer { background: #0f172a; color: rgba(255,255,255,0.7); padding: 36px 24px; text-align: center; font-size: 0.9em; }
footer a { color: #fbbf24; }
footer .links { margin-bottom: 12px; }
footer .links a { margin: 0 10px; }

@media (max-width: 600px) {
  .hero h1 { font-size: 2em; }
  .quote-block { padding: 18px 18px; }
  .states td:first-child { white-space: normal; }
}

/* ── Figures ── */
figure { margin: 24px 0; }
figure img { width: 100%; height: auto; display: block; border-radius: 8px; }
figure figcaption { font-size: 0.85em; color: #78716c; margin-top: 8px; }

/* ── Footnotes ── */
sup a { text-decoration: none; }
ol.notes { font-size: 0.85em; color: #57534e; max-width: 740px; margin: 16px 0 0 20px; }
ol.notes li { margin-bottom: 6px; }

/* ── Veto list ── */
details.veto-list { margin: 24px 0 0; }
details.veto-list summary { cursor: pointer; font-weight: 600; color: #9b1c1c; }
details.veto-list .src { font-size: 0.82em; color: #78716c; }
@media (max-width: 600px) { .states td:first-child { white-space: normal; } }
section p.src { font-size: 0.82em; color: #78716c; }
