/* The Million Dollar Project — shared styles
   Colors live here. Change them once and the whole site updates. */
:root {
  --paper: #F4F7FC;      /* page background */
  --card: #FFFFFF;
  --ink: #14294D;        /* main text, navy */
  --muted: #55627A;
  --pine: #1F5FBF;       /* primary blue */
  --pine-dark: #174A96;
  --stamp: #1F5FBF;      /* "PAID" stamp blue */
  --sun: #FF7A21;        /* highlight orange */
  --sky: #E6F0FC;        /* ad placeholder wash */
  --orange: #FF7A21;
  --orange-soft: #FFE8D6;
  --blue-soft: #DCE8FB;
  --confetti: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22520%22%20height%3D%22320%22%20viewBox%3D%220%200%20520%20320%22%3E%3Crect%20x%3D%2240%22%20y%3D%2230%22%20width%3D%2226%22%20height%3D%2212%22%20rx%3D%226%22%20fill%3D%22%23FF7A21%22%20transform%3D%22rotate%2820%2053%2036%29%22/%3E%3Crect%20x%3D%22150%22%20y%3D%2290%22%20width%3D%2226%22%20height%3D%2212%22%20rx%3D%226%22%20fill%3D%22%23FFFFFF%22%20transform%3D%22rotate%28-30%20163%2096%29%22/%3E%3Crect%20x%3D%22260%22%20y%3D%2224%22%20width%3D%2226%22%20height%3D%2212%22%20rx%3D%226%22%20fill%3D%22%23FFA552%22%20transform%3D%22rotate%2845%20273%2030%29%22/%3E%3Crect%20x%3D%22380%22%20y%3D%2270%22%20width%3D%2226%22%20height%3D%2212%22%20rx%3D%226%22%20fill%3D%22%234A9BFF%22%20transform%3D%22rotate%28-15%20393%2076%29%22/%3E%3Crect%20x%3D%22470%22%20y%3D%2220%22%20width%3D%2226%22%20height%3D%2212%22%20rx%3D%226%22%20fill%3D%22%23FF7A21%22%20transform%3D%22rotate%2860%20483%2026%29%22/%3E%3Crect%20x%3D%22320%22%20y%3D%22170%22%20width%3D%2226%22%20height%3D%2212%22%20rx%3D%226%22%20fill%3D%22%23FFFFFF%22%20transform%3D%22rotate%2815%20333%20176%29%22/%3E%3Crect%20x%3D%22450%22%20y%3D%22200%22%20width%3D%2226%22%20height%3D%2212%22%20rx%3D%226%22%20fill%3D%22%23FFA552%22%20transform%3D%22rotate%28-40%20463%20206%29%22/%3E%3Crect%20x%3D%2290%22%20y%3D%22210%22%20width%3D%2226%22%20height%3D%2212%22%20rx%3D%226%22%20fill%3D%22%234A9BFF%22%20transform%3D%22rotate%2830%20103%20216%29%22/%3E%3Crect%20x%3D%22200%22%20y%3D%22270%22%20width%3D%2226%22%20height%3D%2212%22%20rx%3D%226%22%20fill%3D%22%23FF7A21%22%20transform%3D%22rotate%28-10%20213%20276%29%22/%3E%3Crect%20x%3D%22480%22%20y%3D%22290%22%20width%3D%2226%22%20height%3D%2212%22%20rx%3D%226%22%20fill%3D%22%23FFFFFF%22%20transform%3D%22rotate%2825%20493%20296%29%22/%3E%3C/svg%3E");
  --line: #D4DDEB;
  --radius-lg: 24px;
  --radius-sm: 12px;
  --display: "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  --ui: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--stamp); }
a:hover { color: var(--pine); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; text-wrap: balance; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: #fff; color: var(--ink); border-bottom: 5px solid var(--orange); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.brand img { height: 84px; width: auto; }
@media (max-width: 760px) { .brand img { height: 64px; } }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--sun); display: grid; place-items: center; font-size: .8rem; color: var(--sun); }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-family: var(--ui); font-size: .98rem; font-weight: 700; }
.nav a { color: var(--ink); text-decoration: none; padding: 4px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--sun); }
.menu-btn { display: none; background: none; border: 2px solid var(--ink); color: var(--ink); font-weight: 800; border-radius: var(--radius-sm); padding: 6px 12px; font-family: var(--ui); font-size: 1rem; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; padding-top: 8px; }
  .nav.open { display: flex; }
}

/* Buttons */
.btn { display: inline-flex; font-weight: 800; align-items: center; justify-content: center; text-align: center; gap: 8px; font-family: var(--ui); font-size: 1.05rem; padding: 14px 24px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-dark); color: #fff; }
.btn-gold { background: var(--sun); color: var(--ink); }
.btn-gold:hover { background: #EE6A12; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn-ghost:hover { background: var(--pine); color: #fff; }
.btn-white { background: #fff; color: var(--pine); }
.btn-white:hover { background: var(--blue-soft); color: var(--pine-dark); }

/* Home layout: 30 ad spots around the center
   top strip 6 + left side 12 + right side 12 = 30 */
.home-grid { display: grid; grid-template-columns: 170px 1fr 170px; grid-template-areas: "top top top" "left main right"; gap: 14px; padding: 18px 16px 30px; max-width: 1400px; margin: 0 auto; }
.ads-top { grid-area: top; }
.ads-left { grid-area: left; }
.ads-right { grid-area: right; }
.home-main { grid-area: main; min-width: 0; }
.ads-top { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ads-left, .ads-right { display: grid; grid-template-rows: repeat(12, minmax(96px, 1fr)); gap: 10px; align-content: stretch; }
/* Medium screens: keep ads on all four sides, just slimmer side columns */
@media (max-width: 1100px) {
  .home-grid { grid-template-columns: 118px 1fr 118px; gap: 10px; }
  .ads-top { grid-template-columns: repeat(3, 1fr); }
  .ad { font-size: .78rem; padding: 8px; }
  .ad strong { font-size: .84rem; }
}
/* Phones: no room for side columns, so the ads are spread between the sections
   (top, after the hero, after "how it works", and bottom) instead of piling up in one place */
@media (max-width: 760px) {
  .home-grid { grid-template-columns: 1fr; grid-template-areas: none; }
  .home-main { display: contents; }
  .ads-top, .ads-left, .ads-right { grid-area: auto; grid-template-columns: repeat(3, 1fr); grid-template-rows: none; grid-auto-rows: auto; gap: 8px; }
  .home-main > *, .home-grid > aside { margin-top: 0; }
  .ads-top { order: 0; }
  .home-main > .hero { order: 1; }
  .ads-left { order: 2; }
  .home-main > .tally { order: 3; }
  .home-main > .section:nth-of-type(3) { order: 4; }
  .ads-right { order: 5; }
  .home-main > .two-col { order: 6; }
  .home-main > .live-simple { order: 7; }
  .home-main > .section:last-child { order: 7; }
  .ad { min-height: 78px; }
}

.ad { display: flex; flex-direction: column; justify-content: center; min-height: 96px; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); font-family: var(--ui); font-size: .85rem; line-height: 1.3; overflow: hidden; }
.ad strong { font-size: .95rem; }
.ad img { max-height: 64px; object-fit: contain; margin: 0 auto 4px; }
.ad.open { background: #fff; border: 2px dashed #F6B98A; color: var(--muted); align-items: center; text-align: center; }
.ad.open strong { color: var(--ink); }
.ad.open:hover { border-color: var(--orange); background: var(--orange-soft); color: var(--ink); }

/* Hero */
.hero { background: var(--pine) var(--confetti) right -40px top -30px / 520px no-repeat; color: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 56px); position: relative; overflow: hidden; }
.hero h1 { color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 1100px) { .hero-inner { grid-template-columns: 1fr; } .bill { max-width: 380px; } }
.hero p.lead { font-size: 1.2rem; color: var(--blue-soft); max-width: 34em; }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; max-width: 560px; }
.hero-actions .btn { padding: 20px 18px; font-size: 1.15rem; flex-direction: column; border-radius: var(--radius-lg); }
.hero-actions .btn small { font-weight: 500; font-size: .85rem; opacity: .85; }
@media (max-width: 480px) { .hero-actions { grid-template-columns: 1fr; } }

/* The memorable thing: a bill stamped PAID */
.bill { background: #fff; border: none; border-radius: 6px; padding: 22px 22px 26px; font-family: var(--ui); font-size: .9rem; color: var(--muted); position: relative; transform: rotate(1.5deg); box-shadow: 0 22px 40px -20px #0b1a3a99; }
.bill .row { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--line); padding: 7px 0; }
.bill .row b { color: var(--ink); }
.bill .total { font-size: 1.1rem; color: var(--ink); font-weight: 700; border-bottom: none; padding-top: 12px; }
.stamp { position: absolute; right: 8%; top: 34%; border: 5px solid var(--orange); color: var(--orange); font-family: var(--display); font-weight: 800; font-size: 2.6rem; letter-spacing: .08em; padding: 2px 16px; border-radius: 10px; transform: rotate(-14deg) scale(1); opacity: .88; mix-blend-mode: multiply; animation: stamp .55s cubic-bezier(.2,.9,.3,1.4) .5s both; }
@keyframes stamp { from { transform: rotate(-14deg) scale(2.4); opacity: 0; } to { transform: rotate(-14deg) scale(1); opacity: .88; } }
@media (prefers-reduced-motion: reduce) { .stamp { animation: none; } }

/* Progress toward one million */
.tally { margin-top: 18px; background: var(--orange); color: var(--ink); border-radius: var(--radius-lg); padding: 26px clamp(20px, 4vw, 40px); }
.tally-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; font-family: var(--ui); }
.tally-count { font-family: var(--display); font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.tally-goal { color: var(--ink); font-weight: 700; }
.bar { height: 16px; background: #ffffff66; border-radius: 999px; margin: 14px 0 22px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--ink); border-radius: 999px; min-width: 6px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; font-family: var(--ui); }
.stats div { background: #fff; border-radius: var(--radius-sm); padding: 12px 14px; }
.stats b { display: block; font-family: var(--display); font-weight: 900; font-size: 1.6rem; color: var(--pine); }
.stats span { color: var(--muted); font-size: .9rem; font-weight: 600; }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* Sections */
.section { margin-top: 18px; background: var(--card); border: none; box-shadow: 0 1px 0 var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); }
.section > h2:first-child { margin-top: 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { counter-increment: s; font-size: .98rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; font-family: var(--display); font-weight: 900; margin-bottom: 8px; }
.steps b { font-family: var(--ui); display: block; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fine { margin: 14px 0 0; font-size: .92rem; color: var(--blue-soft); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li { padding-left: 16px; border-left: 4px solid var(--orange); }
.facts b { display: block; }
.live-simple { background: var(--blue-soft); box-shadow: none; }
.live-simple .sub { color: var(--muted); max-width: 40em; }
.live-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: 8px; }
@media (max-width: 900px) { .live-grid { grid-template-columns: 1fr; } }
.live-books, .live-tools { background: #fff; border-radius: var(--radius-lg); padding: 22px; min-width: 0; }
.home-books { display: grid; gap: 12px; }
.home-book { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.home-book:last-child { border-bottom: none; padding-bottom: 0; }
.home-book .mini-cover { padding: 6px; gap: 4px; font-size: .55rem; border-bottom-width: 6px; }
.home-book .mini-cover img { width: 80%; }
.home-book-text { min-width: 0; }
.home-book-text b { display: block; font-size: 1.05rem; color: var(--ink); }
.home-book-text > span { display: block; color: var(--muted); font-size: .92rem; line-height: 1.4; margin: 2px 0 8px; }
.home-book-buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.home-book-buy .price-line { font-size: 1.2rem; margin: 0; }
.see-all { display: inline-block; margin-top: 14px; font-weight: 800; }
.shop-book { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.shop-book h3 { margin: 6px 0 0; }
.shop-book p { margin: 0; color: var(--muted); }
.shop-book h3 + p { flex-grow: 1; }
.shop-book .price-line { color: var(--pine); margin: 6px 0 10px; }
.shop-book .btn { align-self: flex-start; }
.book-cover.has-img, .mini-cover.has-img { padding: 0; overflow: hidden; }
.book-cover.has-img img, .mini-cover.has-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-cover { aspect-ratio: 3/4; border-radius: 8px; background: #fff; border: 2px solid var(--line); border-bottom: 10px solid var(--orange); color: var(--ink); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 8px; padding: 12px; font-family: var(--display); font-weight: 900; font-size: .95rem; line-height: 1.1; max-width: 160px; }
.price-line { font-family: var(--display); font-weight: 900; font-size: 1.6rem; color: var(--pine); margin: 0 0 10px; }
.tool-link { display: block; text-decoration: none; color: var(--muted); background: var(--paper); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 10px; font-size: .95rem; }
.tool-link b { display: block; color: var(--pine); font-size: 1.05rem; }
.tool-link:hover { background: var(--orange-soft); }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.winner { border-left: 6px solid var(--orange); padding: 4px 0 4px 18px; margin-bottom: 18px; }
.winner .amt { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--stamp); }
.winner .meta { font-family: var(--ui); color: var(--muted); font-size: .9rem; }
.empty { color: var(--muted); font-style: italic; }

/* Inner pages */
.page-band { background: var(--pine) var(--confetti) right -60px top -40px / 520px no-repeat; color: #fff; padding: 52px 0 70px; }
.page-band h1 { color: #fff; }
.page-band p { color: var(--blue-soft); font-size: 1.15rem; max-width: 36em; margin: 0; }
.page-body { padding-bottom: 60px; margin-top: -36px; position: relative; }
.page-body .section:first-child, .page-body > .notice:first-child { margin-top: 0; }
.page-body > .notice { margin: 0 0 4px; }
form .notice + .notice { margin-top: 10px; }

table.report { width: 100%; border-collapse: collapse; font-family: var(--ui); font-size: .95rem; }
table.report th, table.report td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.report td.num, table.report th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

/* Forms */
form .field { margin-bottom: 16px; }
label { display: block; font-family: var(--ui); font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=url], select, textarea { width: 100%; font: inherit; font-family: var(--ui); padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--pine); outline: none; box-shadow: 0 0 0 3px #1f5fbf33; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { accent-color: var(--orange); }
.check input { margin-top: 6px; width: 18px; height: 18px; flex: none; }
.hint { font-size: .9rem; color: var(--muted); font-family: var(--ui); margin-top: 4px; }
.notice { background: var(--orange-soft); border: 1px solid #F6B98A; border-radius: var(--radius-sm); padding: 14px 16px; font-family: var(--ui); font-size: .95rem; }
.hidden { display: none; }

/* Price cards (donate / advertise) */
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
@media (max-width: 680px) { .choices { grid-template-columns: 1fr; } }
.choice { border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.choice .price { font-family: var(--display); font-weight: 900; font-size: 2.2rem; color: var(--pine); }
.choice .price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.choice.featured { border-color: var(--orange); border-width: 3px; }
.choice .btn { margin-top: auto; }
.choices-4 { grid-template-columns: repeat(2, 1fr); }
.choices-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 680px) { .choices-4, .choices-2 { grid-template-columns: 1fr; } }
.spots { background: #fff; border-radius: var(--radius-sm); padding: 14px 18px; margin: 0; box-shadow: 0 1px 0 var(--line); }
.tag { align-self: flex-start; background: var(--orange); color: #fff; font-family: var(--ui); font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 999px; }

/* Tools */
.tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .tool-row { grid-template-columns: 1fr; } }
.result { margin-top: 16px; padding: 16px 18px; background: var(--blue-soft); border-radius: var(--radius-sm); font-family: var(--ui); }
.result b { font-family: var(--display); font-weight: 900; font-size: 1.4rem; color: var(--pine); }
.debt-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr auto; gap: 8px; margin-bottom: 8px; align-items: end; }
.debt-row label { font-size: .8rem; }
.debt-row button { height: 46px; }
@media (max-width: 680px) { .debt-row { grid-template-columns: 1fr 1fr; } .debt-row button { grid-column: span 2; } }
.btn-small { padding: 10px 16px; font-size: .95rem; }
.link-btn { background: none; border: none; color: var(--stamp); font-family: var(--ui); cursor: pointer; text-decoration: underline; font-size: .9rem; }

/* Shop */
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .books { grid-template-columns: 1fr; } }
.book-cover { aspect-ratio: 3/4; max-width: 100%; border-radius: 10px; background: #fff; border: 2px solid var(--line); border-bottom: 18px solid var(--orange); color: var(--ink); gap: 14px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 18px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.15; margin-bottom: 12px; }
.book-cover img { width: 55%; height: auto; }
.mini-cover img { width: 70%; height: auto; }
.book-cover.b2 { background: var(--stamp); }
.book-cover.b3 { background: var(--sun); color: var(--ink); }

/* Rules */
.rules ol { padding-left: 1.3em; }
.rules li { margin-bottom: .6em; }

/* Footer */
.site-footer { border-top: 5px solid var(--orange); background: #fff; color: var(--muted); font-family: var(--ui); font-size: .92rem; padding: 34px 0; }
.site-footer a { color: var(--pine); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: flex-start; }
.footer-logo { height: 72px; width: auto; margin-bottom: 8px; }

/* Phones: confetti would sit on top of the words, so the blue bands go plain */
@media (max-width: 760px) {
  .hero, .page-band { background-image: none; }
}

.ad-steps { list-style: none; counter-reset: a; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ad-steps li { counter-increment: a; background: #fff; border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: 0 1px 0 var(--line); font-size: .95rem; }
.ad-steps li::before { content: counter(a); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 900; margin-bottom: 6px; }
.ad-steps b { display: block; }
@media (max-width: 680px) { .ad-steps { grid-template-columns: 1fr; } }
input[type=file] { width: 100%; font: inherit; padding: 10px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); background: #fff; }

/* Rules page */
.rules-toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; font-family: var(--ui); font-weight: 700; }
.rules-toc li { margin-bottom: .4em; break-inside: avoid; }
.rules h3 { margin-top: 1.4em; }
.rules ul { padding-left: 1.3em; }
.rules .table-scroll { margin: 4px 0 8px; }
.rules-table th { width: 50%; }
.rules .notice { margin-top: 1em; }
.page-body section[id] { scroll-margin-top: 16px; }
@media (max-width: 560px) { .rules-toc ol { columns: 1; } }

/* Free printables */
.downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.dl { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); background: var(--paper); border-radius: var(--radius-sm); padding: 12px; transition: transform .15s ease, box-shadow .15s ease; }
.dl:hover, .dl:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(20, 41, 77, .12); }
.dl:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.dl img { width: 100%; height: auto; aspect-ratio: 8.5 / 11; border-radius: 4px; box-shadow: 0 1px 4px rgba(20, 41, 77, .18); background: #fff; }
.dl-text { display: flex; flex-direction: column; gap: 3px; font-size: .93rem; line-height: 1.35; }
.dl-text b { font-family: var(--display); font-size: 1.02rem; }
.dl-text small { color: var(--muted); font-family: var(--ui); font-weight: 700; font-size: .8rem; margin-top: 2px; }
@media (max-width: 820px) { .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .downloads { grid-template-columns: 1fr; } .dl { flex-direction: row; align-items: flex-start; } .dl img { width: 96px; flex: none; } }
@media (prefers-reduced-motion: reduce) { .dl { transition: none; } .dl:hover { transform: none; } }

/* Launch banner */
.launch-banner { background: var(--orange-soft); border-bottom: 1px solid #F6B98A; color: var(--pine); font-family: var(--ui); font-weight: 700; font-size: .95rem; text-align: center; padding: 10px 16px; }
.launch-banner a { color: var(--pine); margin-left: 6px; }

/* Newsletter issues */
.issue { border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: #fff; margin-bottom: 16px; }
.issue .meta { font-family: var(--ui); font-weight: 800; font-size: .85rem; color: var(--orange); text-transform: uppercase; letter-spacing: .04em; }
.issue h3 { margin: 4px 0 8px; }
.issue h4 { margin: 14px 0 4px; font-family: var(--ui); }
.issue p { margin: 0 0 6px; }

.form-note { font-family: var(--ui); font-size: .9rem; color: var(--muted); margin: 0 0 16px; }
