/* Homepage: The Scout's Ledger, rebuilt around the data.
   Loaded only on "/" (seo.cjs). Everything is scoped to .ledger-home so legacy
   .home-* rules in styles.css / design-system.css never reach these elements.
   Type scale: 11 · 12 · 14 · 16 · 20 · 28 · 40 + display. Words: DM Sans.
   Numerals: Barlow Condensed, tabular. Radii: 4 (pills) · 8 (cards). */




main.home-page.ledger-home{max-width:1240px;margin:0 auto;padding:clamp(20px,4vw,56px) clamp(16px,4vw,40px) 40px;color:var(--lh-body);font-size:16px;line-height:1.55}
.ledger-home ::selection{background:color-mix(in srgb,#3B82F6 38%,var(--card));color:var(--lh-ink)}
.ledger-home a{color:var(--lh-link);text-underline-offset:3px;text-decoration-thickness:1px}
.ledger-home :focus-visible{outline:2px solid var(--lh-link);outline-offset:3px;border-radius:4px}

/* ---------- Hero ---------- */
.ledger-home .lh-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start;min-height:0;padding:0;background:none}
@media (min-width:980px){.ledger-home .lh-hero{grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-areas:"copy slate" "actions slate";grid-template-rows:auto 1fr;column-gap:clamp(40px,5vw,80px);row-gap:0}.ledger-home .lh-hero-copy{grid-area:copy}.ledger-home .lh-hero>.lh-slate{grid-area:slate}.ledger-home .lh-hero>.lh-actions{grid-area:actions;align-self:start}}
.ledger-home .lh-title{margin:0;color:var(--lh-ink);font-size:clamp(44px,6.2vw,80px);font-weight:500;line-height:.98;letter-spacing:-.035em;text-wrap:balance;max-width:9ch}
.ledger-home .lh-sub{margin:12px 0 0;max-width:40ch;color:var(--lh-body);font-size:16px;line-height:1.45}
@media (min-width:980px){.ledger-home .lh-sub{font-size:20px;line-height:1.45;margin-top:24px}}
.ledger-home .lh-actions{display:grid;gap:12px}
@media (min-width:980px){.ledger-home .lh-actions{margin-top:36px;gap:16px}}
.ledger-home a.lh-cta{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 18px;border-radius:8px;background:var(--lh-fill);color:var(--lh-fill-ink);font-size:16px;font-weight:600;text-decoration:none;transition:background-color 120ms ease-out}
.ledger-home a.lh-cta:hover{background:var(--lh-fill-hover)}

/* ---------- Slate (live strips) ---------- */
.ledger-home .lh-slate{display:grid;gap:10px;min-width:0}
.ledger-home .lh-slate-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding-bottom:8px;border-bottom:1px solid var(--lh-rule);color:var(--lh-dim);font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.ledger-home .lh-slate-head span:last-child{color:var(--lh-gold);text-transform:none;letter-spacing:.01em;font-size:12px}
.ledger-home .lh-slate-foot{margin:2px 0 0;color:var(--lh-dim);font-size:12px;line-height:1.5}
.ledger-home .lh-empty{margin:0;padding:18px 0;border-bottom:1px solid var(--lh-rule);color:var(--lh-body);font-size:14px}
@media (max-width:979px){.ledger-home .lh-slate .lh-strip.is-extra{display:none}}
.ledger-home .lh-slate .lh-strip.is-spare{display:none}
/* Desktop: the slate fills the hero row so the last card ends level with the
   left column (board list); spare height goes to the cards, not the gaps. */
@media (min-width:980px){
 .ledger-home .lh-hero>.lh-slate{display:flex;flex-direction:column;gap:10px;align-self:stretch}
 .ledger-home .lh-hero>.lh-slate>.lh-strip:not([hidden]):not(.is-spare){flex:1 1 auto;grid-template-rows:1fr auto auto;align-content:stretch}
 .ledger-home .lh-hero>.lh-slate>.lh-strip .lh-who{align-self:center}
 .ledger-home .lh-hero>.lh-slate>.lh-slate-foot{margin-top:auto}
 /* When the slate is the taller column, the board list grows instead so both
    columns end on the same line. */
 .ledger-home .lh-hero>.lh-actions{align-self:stretch;display:flex;flex-direction:column}
 .ledger-home .lh-hero>.lh-actions>.lh-ledger{flex:1 1 auto;display:flex;flex-direction:column}
 .ledger-home .lh-hero>.lh-actions>.lh-ledger>li{flex:1 1 auto;display:flex}
 .ledger-home .lh-hero>.lh-actions>.lh-ledger>li>a{flex:1 1 auto;align-content:center}
}

/* Wide strip (annotated example on desktop): one ruled row. */
@media (min-width:980px){
 .ledger-home .lh-strip--anno{grid-template-columns:minmax(200px,1.3fr) minmax(150px,.9fr) minmax(0,1.5fr) minmax(330px,2fr);grid-template-areas:"who prop books rates";align-items:center;padding:0 0 0 18px;column-gap:24px}
 .ledger-home .lh-strip--anno .lh-who{padding:18px 0}
 .ledger-home .lh-strip--anno .lh-books{align-self:center}
 .ledger-home .lh-strip--anno .lh-prop{justify-content:start;text-align:left}
 .ledger-home .lh-strip--anno .lh-prop>.lh-mark{justify-self:start}
 .ledger-home .lh-strip--anno .lh-rates{margin:0;border-top:0;border-left:1px solid var(--lh-rule);align-self:stretch}
 .ledger-home .lh-strip--anno .lh-rate{display:flex;flex-direction:column;justify-content:center;padding:14px 0}
 .ledger-home .lh-strip--anno .lh-rate:first-child{border-bottom-left-radius:0}
 .ledger-home .lh-strip--anno .lh-rate:last-child{border-top-right-radius:7px}
}

/* ---------- Sections ---------- */
.ledger-home .lh-section{margin-top:var(--lh-gap);padding-top:24px;border-top:1px solid var(--lh-rule)}
.ledger-home .lh-intro{display:grid;gap:8px;margin-bottom:20px}
@media (min-width:980px){.ledger-home .lh-intro{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(40px,5vw,80px);align-items:baseline;margin-bottom:36px}}
.ledger-home .lh-h2{margin:0;color:var(--lh-ink);font-size:28px;font-weight:500;line-height:1.1;letter-spacing:-.02em;text-wrap:balance}
@media (min-width:980px){.ledger-home .lh-h2{font-size:40px}}
.ledger-home .lh-h3{margin:0;color:var(--lh-ink);font-size:16px;font-weight:600;letter-spacing:-.005em}
@media (min-width:760px){.ledger-home .lh-h3{font-size:20px;font-weight:500;letter-spacing:-.01em}}
.ledger-home .lh-lede{margin:0;max-width:60ch;color:var(--lh-body);font-size:16px;line-height:1.55}

/* Read a prop */
.ledger-home .lh-started{margin:10px 0 0;color:var(--lh-gold);font-size:14px}
.ledger-home .lh-notes{display:grid;grid-template-columns:minmax(0,1fr);margin:16px 0 0}
@media (min-width:760px){.ledger-home .lh-notes{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:40px}}
.ledger-home .lh-notes>div{padding:12px 0;border-top:1px solid var(--lh-rule)}
.ledger-home .lh-notes dt{display:flex;align-items:center;gap:10px;color:var(--lh-ink);font-size:16px;font-weight:600}
.ledger-home .lh-notes dd{margin:4px 0 0 28px;max-width:58ch;color:var(--lh-body);font-size:14px;line-height:1.5}
@media (min-width:760px){.ledger-home .lh-notes dd{font-size:15px;line-height:1.55}}
.ledger-home .lh-fine{margin:20px 0 0;max-width:72ch;color:var(--lh-dim);font-size:14px;line-height:1.55}
.ledger-home a.lh-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-weight:600;text-decoration:none;white-space:nowrap}
.ledger-home a.lh-link:hover{text-decoration:underline}

/* FAQ */
.ledger-home .lh-faq .lh-h2{margin-bottom:20px}
.ledger-home .lh-faq details{max-width:820px;border-top:1px solid var(--lh-rule)}
.ledger-home .lh-faq details:last-child{border-bottom:1px solid var(--lh-rule)}
.ledger-home .lh-faq summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;padding:12px 0;color:var(--lh-ink);font-size:16px;font-weight:500;cursor:pointer;list-style:none}
.ledger-home .lh-faq summary::-webkit-details-marker{display:none}
.ledger-home .lh-faq summary::after{content:"";flex:0 0 10px;width:10px;height:10px;margin-right:4px;border-right:1.5px solid var(--lh-dim);border-bottom:1.5px solid var(--lh-dim);transform:translateY(-3px) rotate(45deg);transition:transform 160ms ease-out}
.ledger-home .lh-faq details[open] summary::after{transform:translateY(2px) rotate(-135deg)}
.ledger-home .lh-faq details>div{padding:0 0 18px}
.ledger-home .lh-faq details p{margin:0;max-width:65ch;color:var(--lh-body);font-size:15px;line-height:1.6}

/* Closing note (growth-pages.cjs moves it to the end of <main>) */
.ledger-home .home-note{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;justify-content:space-between;margin:40px 0 0;padding:0;color:var(--lh-dim);font-size:14px}
.ledger-home .home-note a{color:var(--lh-link)}

@media (prefers-reduced-motion:reduce){.ledger-home *{transition:none!important}}

/* Hero ledger: per-sport coverage under the call to action (real counts, expiring). */
.ledger-home .lh-ledger{margin:4px 0 0;padding:0;list-style:none;border-top:1px solid var(--lh-rule)}
.ledger-home .lh-ledger li{border-bottom:1px solid var(--lh-rule)}
.ledger-home .lh-ledger a{display:grid;grid-template-columns:minmax(64px,auto) minmax(0,1fr) 16px;grid-template-areas:"name count arrow" "name status arrow";align-items:center;column-gap:14px;row-gap:1px;min-height:52px;padding:8px 2px;color:var(--lh-ink);text-decoration:none;transition:background-color 120ms ease-out}
.ledger-home .lh-ledger a:hover{background:color-mix(in srgb,var(--lh-ink) 4%,transparent)}
.ledger-home .lh-l-name{grid-area:name;font-size:16px;font-weight:600}
.ledger-home .lh-l-count{grid-area:count;color:var(--lh-dim);font-size:13px}
.ledger-home .lh-l-count b{color:var(--lh-ink);font-size:18px;font-weight:600}
.ledger-home .lh-l-status{grid-area:status;color:var(--lh-dim);font-size:12px}
.ledger-home .lh-ledger li.is-idle .lh-l-status,.ledger-home .lh-ledger-live .lh-l-status{grid-row:1/3;align-self:center}
.ledger-home .lh-l-status time{color:var(--lh-gold)}
.ledger-home .lh-ledger .lh-arrow{grid-area:arrow;color:var(--lh-link)}
.ledger-home .lh-ledger li.is-stale .lh-l-count{color:var(--lh-dim)}

/* Notes disclosure (open on desktop; phones start closed). */
.ledger-home details.lh-notes-wrap{margin-top:16px;border-top:1px solid var(--lh-rule)}
.ledger-home details.lh-notes-wrap>summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;color:var(--lh-ink);font-size:15px;font-weight:600;cursor:pointer;list-style:none}
.ledger-home details.lh-notes-wrap>summary::-webkit-details-marker{display:none}
.ledger-home details.lh-notes-wrap>summary::after{content:"";width:9px;height:9px;margin-right:4px;border-right:1.5px solid var(--lh-dim);border-bottom:1.5px solid var(--lh-dim);transform:translateY(-3px) rotate(45deg);transition:transform 160ms ease-out}
.ledger-home details.lh-notes-wrap[open]>summary::after{transform:translateY(2px) rotate(-135deg)}
.ledger-home details.lh-notes-wrap .lh-notes{margin-top:0}

/* Free vs Premium: the real strip beside the plan table. */
.ledger-home .lh-price-line b{color:var(--lh-ink);font-size:20px;font-weight:600}
.ledger-home .lh-plans-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
.ledger-home .lh-plan-table{width:100%;border-collapse:collapse;font-size:14px}
.ledger-home .lh-plan-table th,.ledger-home .lh-plan-table td{padding:9px 6px;border-bottom:1px solid var(--lh-rule);text-align:left;vertical-align:middle}
.ledger-home .lh-plan-table thead th{color:var(--lh-dim);font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.ledger-home .lh-plan-table thead th+th,.ledger-home .lh-plan-table td{width:76px;text-align:center}
.ledger-home .lh-plan-table tbody th{color:var(--lh-body);font-weight:400;line-height:1.35}
.ledger-home .lh-plan-table td{color:var(--lh-ink);font-weight:600}
.ledger-home .lh-plan-table td:last-child{background:color-mix(in srgb,#3B82F6 6%,transparent)}
.ledger-home .lh-check{width:16px;height:16px;fill:none;stroke:var(--lh-ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3px}
.ledger-home .lh-dash{color:var(--lh-dim)}
@media (max-width:520px){.ledger-home .lh-plan-table thead th+th,.ledger-home .lh-plan-table td{width:74px}.ledger-home .lh-plan-table th,.ledger-home .lh-plan-table td{padding:8px 4px;font-size:13px}}
.ledger-home .lh-name a{color:var(--lh-ink)}
.ledger-home .lh-plan-table{display:table;min-width:0;max-width:100%;table-layout:fixed;margin:0;background:none;border:0;border-radius:0;box-shadow:none}
.ledger-home .lh-plan-table :is(th,td){position:static;min-width:0;height:auto;background:none;text-transform:none;letter-spacing:normal;white-space:normal;font-family:'DM Sans',system-ui,sans-serif}
.ledger-home .lh-plan-table thead th{text-transform:uppercase;letter-spacing:.08em}
.ledger-home .lh-plan-table td:last-child{background:color-mix(in srgb,#3B82F6 6%,transparent)}
.ledger-home .lh-plan-table tbody th{padding-left:0}
.ledger-home .lh-plan-table thead th:first-child{padding-left:0}
.ledger-home .lh-plan-table tbody th,.ledger-home .lh-plan-table td{font-size:14px}
.ledger-home .lh-plan-table thead th{font-size:11px}
@media (max-width:520px){.ledger-home .lh-plan-table tbody th,.ledger-home .lh-plan-table td{font-size:13px}}
/* Finished props (no open lines): a Final row and a label above them. */
.ledger-home .lh-slate-sub{margin:18px 0 0;color:var(--lh-dim);font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.ledger-home .lh-final{display:flex;align-items:baseline;gap:8px;margin:0;color:var(--lh-dim);font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.ledger-home .lh-final b{color:var(--lh-ink);font-size:22px;letter-spacing:0}
.ledger-home .lh-final-side{letter-spacing:.02em;text-transform:none;font-size:13px}
.ledger-home .lh-final-side.is-over{color:var(--lh-win)}
.ledger-home .lh-final-side.is-under{color:var(--lh-loss)}
/* Centered closing sections: Free vs Premium and Questions. */
.ledger-home .lh-plans .lh-intro{display:block;max-width:760px;margin-left:auto;margin-right:auto;text-align:center}
.ledger-home .lh-plans .lh-intro .lh-lede{margin:12px auto 0}
.ledger-home .lh-plans .lh-plans-grid{max-width:720px;margin-left:auto;margin-right:auto}
.ledger-home .lh-plans .lh-fine{max-width:72ch;margin-left:auto;margin-right:auto;text-align:center}
.ledger-home .lh-faq{display:flex;flex-direction:column;align-items:center}
.ledger-home .lh-faq .lh-h2{text-align:center}
.ledger-home .lh-faq details{width:100%;max-width:820px}
.ledger-home .lh-final-side.is-pending{color:var(--lh-dim)}

/* Live Props: a small pulsing red dot marks in-game lines. */
/* Live row: name, dot and description share one baseline; the dot is centred on the name's capitals. */
.ledger-home .lh-ledger-live .lh-l-name,.ledger-home .lh-ledger-live .lh-l-status{grid-row:1/3;align-self:center;line-height:1.2}
.ledger-home .lh-ledger-live .lh-l-name{display:inline-flex;align-items:center}
.ledger-home .lh-live-dot{position:relative;display:inline-block;flex:none;width:8px;height:8px;margin-left:8px;border-radius:50%;background:#e5484d}
.ledger-home .lh-live-dot::after{content:"";position:absolute;inset:0;border-radius:50%;background:#e5484d;pointer-events:none;transform:scale(1);opacity:.5;will-change:transform,opacity;animation:lh-live-pulse 1.8s cubic-bezier(.2,.6,.35,1) infinite}
@keyframes lh-live-pulse{0%{transform:scale(1);opacity:.5}80%,100%{transform:scale(2.6);opacity:0}}
@media (prefers-reduced-motion:reduce){.ledger-home .lh-live-dot::after{animation:none;display:none}}
