/* bet-strategies.online — magazine template. Change only this :root block to restyle. */
:root {
  --primary: #0f766e;
  --accent: #f97316;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --text: #1c1917;
  --muted: #6b6560;
  --border: #e7e4dc;
  --link: #0f766e;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --radius: 14px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 var(--font-body);
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.masthead { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--text); text-decoration: none; }

/* Home hero */
.hero { padding: 56px 0 40px; }
.kicker { display: inline-block; font: 600 12px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--link); margin-bottom: 14px; }
.hero-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.hero-card .art { aspect-ratio: 16 / 10; background: radial-gradient(circle at 30% 30%, var(--primary), transparent 60%), radial-gradient(circle at 80% 70%, var(--accent), transparent 55%), var(--surface-2); }
.hero-card .body { padding: 32px 36px 32px 0; }
.hero-card h1 { font-size: clamp(28px, 4vw, 42px); }
.hero-card h1 a { color: var(--text); }
.dek { color: var(--muted); font-size: 18px; margin: 0 0 18px; }
.meta { color: var(--muted); font-size: 14px; }

/* Article grid */
.section-title { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 10px; margin: 48px 0 24px; }
.section-title h2 { font-size: 22px; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--primary); }
.card .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--primary), var(--accent)); opacity: .85; }
.card .thumb.alt { background: linear-gradient(135deg, var(--accent), var(--surface-2)); }
.card .thumb.alt2 { background: linear-gradient(135deg, var(--surface-2), var(--primary)); }
.card .body { padding: 20px 22px 24px; }
.card h3 { font-size: 20px; }
.card h3 a { color: var(--text); }
.card p { color: var(--muted); font-size: 15px; margin: 0 0 12px; }

/* Topics */
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.topic { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.topic strong { display: block; font-family: var(--font-head); font-size: 18px; color: var(--text); margin-bottom: 6px; }
.topic span { color: var(--muted); font-size: 14px; }

/* Article page */
.article-head { padding: 56px 0 28px; max-width: 760px; }
.article-head h1 { font-size: clamp(32px, 5vw, 48px); }
.prose { max-width: 720px; padding-bottom: 64px; }
.page-head { padding: 56px 0 20px; max-width: 760px; }
.page-head h1 { font-size: clamp(30px, 4.5vw, 44px); }
.empty { color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); padding: 28px; text-align: center; grid-column: 1 / -1; }
.prose h2 { font-size: 28px; margin-top: 1.8em; }
.prose h3 { font-size: 21px; margin-top: 1.5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--primary); color: var(--muted); }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose th { color: var(--text); font-family: var(--font-head); }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 18px 22px; margin: 1.6em 0; }
.byline-box { display: flex; gap: 16px; align-items: center; border-top: 1px solid var(--border); padding-top: 24px; margin-top: 40px; color: var(--muted); font-size: 15px; }
.byline-box img { width: 48px; height: 48px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 14px; margin-top: 40px; }
.footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer h4 { color: var(--text); font: 600 14px var(--font-head); margin: 0 0 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 6px; }
.footer a { color: var(--muted); }
.footer .note { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 18px; }

@media (max-width: 900px) {
  .hero-card { grid-template-columns: minmax(0, 1fr); }
  .hero-card .body { padding: 0 24px 28px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .masthead .wrap { height: auto; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 16px; }
  .wrap { padding: 0 16px; }
  .grid, .topics { grid-template-columns: minmax(0, 1fr); }
}

/* Long words and URLs wrap instead of widening the page on phones */
h1, h2, h3, p, li, td, th, dd, blockquote { overflow-wrap: break-word; }

/* ===== SITE IDENTITY: Bet Strategies — friendly course ===== */
:root { --radius: 18px; --max: 1120px; --cream: #f3efe6; --teal-50: #e7f3f1; --orange-100: #ffedd5; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.01em; }
.masthead { background: rgba(251, 250, 247, .92); border-bottom: 0; box-shadow: 0 1px 0 var(--border); }
.masthead::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--primary) 0 70%, var(--accent) 70%); }
.nav { gap: 8px; }
.nav a { color: var(--primary); font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: var(--teal-50); color: var(--primary); }

.bs-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding: 64px 0 40px; }
.bs-hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; margin-bottom: 20px; }
.bs-hero mark { background: linear-gradient(transparent 62%, #fed7aa 62% 92%, transparent 92%); color: inherit; padding: 0 .06em; font-style: italic; }
.bs-hero .dek { font-size: 19px; max-width: 540px; }
.bs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.btn { display: inline-block; background: var(--primary); color: #fff; font-weight: 600; padding: 13px 22px; border-radius: 999px; box-shadow: 0 6px 18px -8px rgba(15, 118, 110, .7); }
.btn:hover { text-decoration: none; background: #0b5f59; }
.btn.ghost { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.btn.ghost:hover { background: var(--teal-50); }
.bs-path { list-style: none; counter-reset: step; margin: 0; padding: 26px; background: var(--surface); border-radius: var(--radius); box-shadow: 0 24px 48px -28px rgba(28, 25, 23, .35); position: relative; }
.bs-path::before { content: "Your learning path"; display: block; font: 600 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px 4px; }
.bs-path li { counter-increment: step; position: relative; }
.bs-path li + li { margin-top: 6px; }
.bs-path a { display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; padding: 12px; border-radius: 12px; color: var(--text); }
.bs-path a::before { content: counter(step); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-50); color: var(--primary); font: 700 18px/1 var(--font-head); }
.bs-path li:first-child a::before { background: var(--primary); color: #fff; }
.bs-path a:hover { background: var(--cream); text-decoration: none; }
.bs-path b { font-family: var(--font-head); font-size: 18px; }
.bs-path span { color: var(--muted); font-size: 14.5px; }

.section-title { border-bottom: 0; margin: 40px 0 20px; }
.section-title h2 { font-size: 30px; }
.grid { gap: 24px; }
.card { border: 0; box-shadow: 0 1px 2px rgba(28,25,23,.06), 0 12px 32px -18px rgba(28,25,23,.3); }
.card:hover { transform: translateY(-4px); }
.card .body { padding: 26px 26px 28px; }
.card h3 { font-size: 22px; line-height: 1.25; margin-top: 12px; }
.bs-chip { display: inline-block; background: var(--orange-100); color: #9a3412; font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.card .meta { font-size: 13.5px; }

.bs-chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bs-chapter { background: var(--surface); border-radius: var(--radius); padding: 26px 28px; border: 1px solid var(--border); }
.bs-num { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.bs-chapter h3 { font-size: 24px; margin: 6px 0 4px; }
.bs-chapter > p { color: var(--muted); margin: 0 0 12px; font-size: 15px; }
.bs-lessons { margin: 0; padding-left: 22px; }
.bs-lessons li { padding: 6px 0; }
.bs-lessons li::marker { color: var(--primary); font-weight: 700; }
.bs-lessons a { color: var(--text); font-weight: 600; }
.bs-lessons span { color: var(--muted); font-size: 13px; }
.bs-soon { font-size: 14px; font-style: italic; color: var(--muted); margin: 0; }
a.bs-chapter { display: block; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
a.bs-chapter:hover { border-color: var(--primary); transform: translateY(-2px); }
.bs-go { display: inline-block; margin-top: 4px; color: var(--primary); font-weight: 600; font-size: 15px; }
.bs-rg { margin: 32px 0 0; padding: 16px 20px; background: var(--cream); border-radius: 12px; font-size: 15px; color: var(--muted); }

.footer { background: var(--cream); border-top: 0; border-radius: 28px 28px 0 0; margin-top: 64px; }
.footer h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .1em; font-size: 12.5px; }

.article-head { max-width: 760px; padding-top: 56px; }
.article-head .kicker { background: var(--teal-50); color: var(--primary); padding: 7px 12px; border-radius: 999px; letter-spacing: .08em; }
.article-head h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; }
.prose { font-size: 18px; line-height: 1.75; }
.prose h2 { font-size: 30px; }
.prose h2::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--accent); margin-top: 10px; }
.prose table { background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--border); }
.prose th { background: var(--teal-50); color: var(--primary); font-family: var(--font-body); font-weight: 700; }
.prose td { font-variant-numeric: tabular-nums; }
.key-idea, .example { border-radius: 14px; padding: 18px 22px; margin: 1.6em 0; }
.key-idea { background: var(--teal-50); }
.example { background: var(--surface); border: 2px dashed #fdba74; }
.key-idea > strong, .example > strong { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.key-idea > strong { color: var(--primary); }
.example > strong { color: #c2410c; }
.key-idea p:last-child, .example p:last-child { margin-bottom: 0; }
.takeaways { list-style: none; padding: 0; }
.takeaways li { position: relative; padding-left: 34px; }
.takeaways li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 14px; display: grid; place-items: center; }
.rg { font-size: 15px; color: var(--muted); }
.sources { font-size: 15px; }

@media (max-width: 900px) {
  .bs-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; }
  .bs-chapters { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .nav { flex-wrap: wrap; gap: 4px; overflow: visible; }
  .nav a { padding: 6px 10px; }
}

/* ===== TOOLS + READ NEXT (shared, uses the site's colours) ===== */
.tool { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; margin: 1.2em 0 1.6em; }
.tool-h { font-size: 17px; margin: 4px 0 12px; }
.tool-h ~ .tool-h { margin-top: 20px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.tool-grid.two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tool label, .tool legend { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); font-family: var(--font-body); }
.tool input, .tool textarea { font: 400 16px/1.4 var(--font-body); color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; width: 100%; min-width: 0; }
.tool textarea { resize: vertical; }
.tool select { font: 400 16px/1.4 var(--font-body); color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; width: 100%; }
.tool input:focus, .tool textarea:focus { outline: 2px solid var(--link); outline-offset: 1px; }
.tool input.bad, .tool textarea.bad { border-color: #dc2626; background: #fef2f2; color: #7f1d1d; }
.tool fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px 14px; margin: 0; min-width: 0; }
.tool legend { padding: 0 6px; color: var(--text); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tool button { font: 600 15px/1 var(--font-body); border: 0; border-radius: 8px; padding: 11px 16px; background: var(--primary); color: #fff; cursor: pointer; }
.tool button.secondary { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1.5px var(--link); }
.tool-result { margin-top: 16px; }
.tool-result .table-wrap { margin-bottom: 0; }
.tool-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 14px; }
.tool-big > div { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.tool-big b { display: block; font: 700 26px/1.15 var(--font-head); color: var(--text); font-variant-numeric: tabular-nums; }
.tool-big span { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); }
.tool-big .up { color: #b91c1c; } .tool-big .down { color: #047857; }
.tool-note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.tool-verdict { font-weight: 600; margin: 0 0 12px; }
.tool .bar { display: block; height: 6px; margin-top: 4px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.tool .bar i { display: block; height: 100%; background: var(--primary); }
.tool td b { color: var(--text); }
.sg-matches { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 16px; }
.sg-match { display: grid; grid-template-columns: 1fr 52px 14px 52px 1fr; align-items: center; gap: 6px; font-size: 14px; }
.sg-match span:first-child { text-align: right; }
.sg-match input { text-align: center; padding: 8px 4px; }
.sg-match em { text-align: center; color: var(--muted); font-style: normal; }
.sg-table td:last-child { font-weight: 600; white-space: nowrap; }
.cp-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.cp-teams fieldset .tool-grid { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }

.tool-teaser { display: flex; align-items: center; gap: 16px; margin: 20px 0 6px; padding: 16px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.tool-teaser:hover { border-color: var(--link); text-decoration: none; }
.tool-teaser .ico { flex: none; width: 46px; height: 46px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; font: 700 17px/1 var(--font-head); }
.tool-teaser b { display: block; font-family: var(--font-head); font-size: 19px; line-height: 1.25; }
.tool-teaser .t { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; }
.tool-teaser::after { content: "→"; margin-left: auto; padding-left: 8px; color: var(--link); font-size: 22px; }
@media (max-width: 480px) {
  .tool-teaser { gap: 12px; padding: 14px 16px; align-items: flex-start; }
  .tool-teaser::after { display: none; }
  .tool-teaser .ico { width: 40px; height: 40px; font-size: 15px; }
  .tool-teaser b { font-size: 17px; }
}

.related { margin: 40px 0 8px; padding-top: 22px; border-top: 2px solid var(--border); }
.prose .related-h { font-size: 20px; margin: 0 0 8px; padding: 0; border: 0; text-transform: none; }
.prose .related-h::before, .prose .related-h::after { content: none; }
.related-list { list-style: none; padding: 0; margin: 0 0 18px; }
.related-list li { padding: 9px 0; border-bottom: 1px dashed var(--border); line-height: 1.4; }
.related-list a { font-weight: 600; }
.related-list span { color: var(--muted); font-size: 14px; }
.tool-cta { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); color: var(--text); text-decoration: none; }
.tool-cta:hover { text-decoration: none; border-color: var(--link); }
.tool-cta b { font-family: var(--font-head); font-size: 18px; }
.tool-cta b::after { content: " →"; color: var(--link); }
.tool-cta span { color: var(--muted); font-size: 15px; }

/* breadcrumbs + section pages */
.trail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 26px 0 -4px; font-size: 14px; color: var(--muted); font-family: var(--font-body); }
.trail a { color: var(--muted); text-decoration: none; }
.trail a:hover { color: var(--link); text-decoration: underline; }
.trail .sep { opacity: .55; }
.trail + .article-head, .trail + .page-head, .trail + .post-head, .trail + .entry-head { padding-top: 22px; }
.trail + .doc-title { margin-top: 18px; }
.prose:has(+ .hub-body) { padding-bottom: 0; }
.hub-body { margin: 6px 0 56px; }
.hub-h { font-size: 22px; margin: 30px 0 14px; }
.hub-empty { color: var(--muted); font-style: italic; padding: 10px 0; }
.hub-body .tool-cta { margin-top: 26px; }
.prose figure.chart { margin: 1.7em 0; }
.prose figure.chart img { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; border-radius: 10px; border: 1px solid var(--border); }
.prose figure.chart figcaption { max-width: 560px; margin: 8px auto 0; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* Reviewed old-article navigation and accessible reading controls */
.article-map{margin-block:1.5rem;padding:1.1rem 1.25rem;border:1px solid currentColor;border-radius:var(--radius,8px);font:inherit}
.article-map summary{cursor:pointer;font-weight:700;line-height:1.5}
.article-map ul{margin-block:1rem 0;padding-inline-start:1.25rem;display:grid;gap:.55rem}
.article-map a{color:inherit;text-decoration:underline;text-underline-offset:.18em;overflow-wrap:anywhere}
main h2[id],main h3[id]{scroll-margin-top:5rem}
main pre{max-width:100%;overflow-x:auto}main table{display:block;max-width:100%;overflow-x:auto}
main img{max-width:100%;height:auto}
main a:focus-visible,main summary:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(max-width:600px){.article-map{padding:.9rem}.article-map ul{gap:.75rem}}

/* studio-featured-v1 */
.featured-image{margin:24px 0 30px}.featured-image img{display:block;width:100%;height:auto;border-radius:16px}.featured-image figcaption{font-size:12px;line-height:1.6;color:var(--muted);margin-top:8px}.card .thumb{position:relative;overflow:hidden;aspect-ratio:16/9}.card .thumb>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.card .thumb>span{position:relative;z-index:1}

/* studio-listing-covers-v2: current article cover on home, hubs and related rows */
.card>.thumb{display:block;position:relative;overflow:hidden;aspect-ratio:16/9}
.card>.thumb>img,.post>.img>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.post>.img{position:relative;overflow:hidden}
li.has-listing-picture{display:grid;grid-template-columns:minmax(88px,24%) minmax(0,1fr);gap:1rem;align-items:start}
.listing-picture{display:block;min-width:0;overflow:hidden;border-radius:var(--radius,4px)}
.listing-picture>img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.listing-copy{min-width:0}.listing-copy>a{display:block}.listing-copy>span,.listing-copy>time{display:block}
.listing-copy p{margin-block:.5rem}.guide-card-image img{display:block;width:100%;height:auto;object-fit:cover}
@media(max-width:480px){li.has-listing-picture{grid-template-columns:88px minmax(0,1fr);gap:.75rem}}

.rows li.has-listing-picture,.guides li.has-listing-picture,.hub-panel .rows li.has-listing-picture,.hub-body li.has-listing-picture,.related-list li.has-listing-picture{grid-template-columns:clamp(88px,22%,180px) minmax(0,1fr)}
@media(max-width:480px){.rows li.has-listing-picture,.hub-panel .rows li.has-listing-picture{grid-template-columns:minmax(0,1fr)}.guides li.has-listing-picture,.hub-body li.has-listing-picture,.related-list li.has-listing-picture{grid-template-columns:88px minmax(0,1fr)}}

/* sd-release:bet-strategies.online-refresh-v1 — study-guide workbook: dotted paper, numbered guide sections, lesson syllabus lists, labelled callout boxes, hard-edged tools; teal and orange kept */
:root { --ink-soft: #44403c; --paper-dot: #e6e1d3; --teal-700: #0b5f59; }
body { background-image: radial-gradient(var(--paper-dot) 1.1px, transparent 1.3px); background-size: 24px 24px; }
.masthead { background: var(--bg); box-shadow: none; border-bottom: 2px solid var(--primary); }
.masthead::before { height: 3px; background: var(--accent); }
.nav a { border-radius: 4px; padding: 6px 12px; border-bottom: 2px solid transparent; }
.nav a:hover { background: transparent; border-bottom-color: var(--accent); }

/* page heads: a margin rule and a label tab, like a workbook chapter opener */
.page-head { max-width: 820px; margin-top: 18px; padding: 8px 0 10px 22px; border-left: 6px solid var(--primary); }
.page-head .kicker { background: var(--primary); color: #fff; padding: 6px 10px; border-radius: 3px; letter-spacing: .14em; }
.page-head h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; }
.page-head .dek { color: var(--ink-soft); font-size: 18px; max-width: 62ch; }

/* guide text: numbered sections, serif lede */
.prose { font-size: 17.5px; line-height: 1.72; counter-reset: guide; }
.prose .sd-lede { font: 600 19px/1.6 var(--font-head); color: var(--ink-soft); margin-bottom: 1.2em; }
.prose > h2 { counter-increment: guide; display: flex; align-items: baseline; gap: 12px; font-size: 27px; padding-top: 14px; border-top: 2px solid var(--text); }
.prose > h2::before { content: counter(guide, decimal-leading-zero); flex: none; position: relative; top: -3px; background: var(--primary); color: #fff; font: 700 14px/1 var(--font-body); letter-spacing: .06em; padding: 5px 7px; border-radius: 3px; }
.prose > h2::after { display: none; }
.prose .related-h { display: block; }

/* numbered steps */
.prose ol.sd-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.6em; }
.sd-steps > li { counter-increment: step; position: relative; margin: 0 0 12px; padding: 14px 16px 14px 66px; background: var(--surface); border: 2px solid var(--text); border-radius: 6px; box-shadow: 4px 4px 0 var(--primary); }
.sd-steps > li::before { content: counter(step); position: absolute; left: 14px; top: 13px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--accent); color: #1c1917; border-radius: 50%; font: 700 20px/1 var(--font-head); }
.sd-steps > li > strong:first-child { display: inline; font-family: var(--font-head); font-size: 18px; }

/* callout boxes with a label tab */
.example, .key-idea, .sd-care { position: relative; border-radius: 6px; padding: 28px 20px 16px; margin: 1.9em 0 1.6em; }
.example > strong, .key-idea > strong, .sd-care > strong { position: absolute; top: -13px; left: 14px; display: inline-block; margin: 0; padding: 4px 10px; border-radius: 3px; font-size: 12px; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; }
.example { background: #fff8f0; border: 2px solid var(--accent); }
.example > strong { background: var(--accent); color: #1c1917; }
.key-idea { background: var(--teal-50); border: 2px solid var(--primary); }
.key-idea > strong { background: var(--primary); color: #fff; }
.sd-care { background: #1c1917; border: 2px solid #1c1917; color: #f5f3ee; }
.sd-care > strong { background: var(--accent); color: #1c1917; }
.sd-care a { color: #fdba74; text-decoration: underline; }
.sd-care ul { margin: 0 0 1em; padding-left: 20px; }
.sd-care p:last-child, .sd-care ul:last-child { margin-bottom: 0; }
.example p:last-child, .key-idea p:last-child { margin-bottom: 0; }
.prose .callout { border: 2px solid var(--text); border-left: 8px solid var(--accent); border-radius: 6px; }

/* checklist with empty tick boxes */
.prose ul.sd-check { list-style: none; padding: 0; margin: 0 0 1.4em; }
.sd-check li { position: relative; padding-left: 36px; margin-bottom: .7em; }
.sd-check li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 20px; height: 20px; background: var(--surface); border: 2px solid var(--primary); border-radius: 4px; }

/* formula block */
.sd-formula { background: var(--surface); border: 2px dashed var(--text); border-radius: 6px; padding: 14px 18px; margin: 0 0 1.4em; font: 600 15.5px/1.8 ui-monospace, Consolas, "Courier New", monospace; overflow-wrap: anywhere; }
.sd-formula span { display: block; }

/* tables and tools: hard edges, solid heads */
.prose table { border-radius: 6px; box-shadow: 0 0 0 2px var(--text); }
.prose th { background: var(--primary); color: #fff; font: 700 13.5px/1.3 var(--font-body); letter-spacing: .04em; }
.prose tbody tr:nth-child(even) td { background: #faf8f2; }
.tool { background: var(--surface); border: 2px solid var(--text); border-radius: 6px; box-shadow: 5px 5px 0 var(--primary); }
.tool input, .tool select, .tool textarea { border: 2px solid var(--text); border-radius: 4px; }
.tool input:focus, .tool textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; }
.tool input.bad, .tool textarea.bad { border-color: #b91c1c; }
.tool-big > div { border: 2px solid var(--text); border-radius: 4px; }
.tool-big b { color: var(--primary); }
.tool button { border-radius: 4px; }
.tool .sd-offer { width: 96px; padding: 6px 8px; font-size: 15px; }
.sd-dc th, .sd-dc td { padding: 9px 8px; font-size: 14.5px; }
.sd-dc td:nth-child(2) { min-width: 120px; }
.sd-dc td small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.sd-dc td[id] { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.tool-cta { border: 2px solid var(--text); border-left: 8px solid var(--accent); border-radius: 6px; background: var(--surface); }
.tool-cta:hover { box-shadow: 4px 4px 0 var(--accent); border-color: var(--text); }
.tool-cta + .tool-cta { margin-top: 12px; }

/* hub lessons read as a numbered syllabus */
.hub-h { font-size: 24px; border-top: 2px solid var(--text); padding-top: 14px; }
.hub-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; counter-reset: lesson; }
.hub-grid .card { counter-increment: lesson; flex-direction: row; border: 2px solid var(--text); border-radius: 6px; box-shadow: none; background: var(--surface); }
.hub-grid .card:hover { transform: none; border-color: var(--text); box-shadow: 5px 5px 0 var(--accent); }
.hub-grid .card > .thumb { flex: 0 0 32%; aspect-ratio: auto; min-height: 150px; opacity: 1; }
.hub-grid .card .body { padding: 18px 22px 20px; min-width: 0; }
.hub-grid .card .body::before { content: "Lesson " counter(lesson); display: inline-block; margin: 0 10px 0 0; color: var(--primary); font: 700 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.hub-grid .card h3 { font-size: 21px; }
.bs-chip { border-radius: 3px; }

.footer { background: var(--cream); border-top: 4px solid var(--primary); border-radius: 0; }
.footer .note { border-top: 2px solid var(--text); color: var(--text); }
.prose .rg { border-top: 2px solid var(--text); padding-top: 12px; color: var(--ink-soft); }

@media (max-width: 600px) {
  .page-head { padding-left: 16px; border-left-width: 5px; }
  .prose { font-size: 17px; }
  .prose .sd-lede { font-size: 17.5px; }
  .prose > h2 { font-size: 23px; gap: 10px; }
  .sd-steps > li { padding: 12px 12px 12px 58px; }
  .sd-steps > li::before { left: 10px; top: 11px; width: 34px; height: 34px; }
  .hub-grid .card { flex-direction: column; }
  .hub-grid .card > .thumb { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .hub-grid .card .body { padding: 16px 16px 18px; }
  .tool .sd-offer { width: 84px; }
}

/* sd-release:bet-strategies.online-identity-v1 — study-guide workbook identity: compass-in-speech-tag logo, Bricolage + Literata + Caveat margin notes, speech-tag corners on cards, buttons and tabs */
:root { --font-head: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif; --font-body: "Literata", Georgia, "Times New Roman", serif; --font-note: "Caveat", "Segoe Print", "Comic Sans MS", cursive; --tag: 18px 18px 18px 3px; --paper-dot: #e2dccb; }
body { font-size: 17.5px; line-height: 1.72; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; }
.nav a, .btn, .kicker, .tool label, .tool legend, .tool button, .tool-big span, .prose th, .footer h4, .bs-path::before, .bs-chip, .bs-num, .bs-go { font-family: var(--font-head); }
.kicker, .bs-num, .bs-go { font-family: var(--font-note); font-size: 20px; font-weight: 700; letter-spacing: .01em; text-transform: none; line-height: 1.1; }
.page-head .kicker { font-size: 19px; padding: 5px 12px 4px; border-radius: 12px 12px 12px 2px; background: var(--accent); color: #1c1917; letter-spacing: .01em; }
.article-head .kicker { border-radius: 12px 12px 12px 2px; }
.bs-num { color: #c2410c; }

/* header: stitched rule, tab-like speech-tag nav */
.masthead { border-bottom: 0; box-shadow: none; background: var(--bg); }
.masthead::before { height: 0; }
.masthead::after { content: ""; display: block; height: 0; border-bottom: 3px dashed var(--primary); opacity: .8; }
.masthead .wrap { height: 72px; }
.logo img { height: 36px; width: auto; }
.nav { gap: 6px; }
.nav a { border: 2px solid transparent; border-radius: 14px 14px 14px 3px; padding: 6px 14px; color: var(--text); font-weight: 700; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { background: var(--teal-50); border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* hero: faint compass dial behind the learning path */
.bs-hero { position: relative; isolation: isolate; overflow-x: clip; }
.bs-hero::before { content: ""; position: absolute; z-index: -1; right: -70px; top: -6px; width: 440px; height: 440px; background: url(/img/identity-hero.svg) no-repeat center / contain; pointer-events: none; }
.bs-hero h1 { font-size: clamp(38px, 5.6vw, 62px); font-weight: 800; }
.bs-hero mark { font-style: normal; background: linear-gradient(transparent 58%, #fdba74 58% 90%, transparent 90%); border-radius: 2px; }
.btn { border-radius: var(--tag); font-weight: 700; background: var(--primary); box-shadow: 4px 4px 0 var(--accent); }
.btn:hover { background: var(--teal-700); box-shadow: 2px 2px 0 var(--accent); }
.btn.ghost { box-shadow: inset 0 0 0 2px var(--primary), 4px 4px 0 var(--accent); }
.bs-path { border: 2px solid var(--primary); border-radius: 22px 22px 22px 4px; box-shadow: 6px 6px 0 var(--primary); background: var(--surface); }
.bs-path::before { color: var(--primary); letter-spacing: .1em; }
.bs-path a::before { border-radius: 12px 12px 12px 3px; background: var(--teal-50); font-family: var(--font-head); }
.bs-path li:first-child a::before { background: var(--accent); color: #1c1917; }
.bs-path a { border-radius: 14px 14px 14px 3px; }
.bs-path a:hover { background: var(--teal-50); }
.tool-teaser { border: 2px solid var(--primary); border-radius: 20px 20px 20px 4px; background: var(--surface); box-shadow: 4px 4px 0 var(--accent); }
.tool-teaser:hover { border-color: var(--primary); box-shadow: 2px 2px 0 var(--accent); }
.tool-teaser .ico { border-radius: 12px 12px 12px 3px; background: var(--accent); color: #1c1917; }

/* cards: speech-tag corners, teal outline, orange tail marker */
.card, .hub-grid .card { border: 2px solid var(--primary); border-radius: 24px 24px 24px 4px; box-shadow: none; background: var(--surface); }
.card:hover, .hub-grid .card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 0 0 0 transparent; }
.card .thumb { border-bottom: 2px solid var(--primary); }
.hub-grid .card > .thumb { border-bottom: 0; border-right: 2px solid var(--primary); }
.card h3 { font-weight: 800; }
.bs-chip { background: var(--teal-50); color: var(--teal-700); border-radius: 10px 10px 10px 2px; font-weight: 700; letter-spacing: .02em; }
.bs-chapter { border: 2px solid var(--primary); border-radius: 22px 22px 22px 4px; }
.bs-chapter:hover { border-color: var(--accent); }
.bs-chapter h3 { font-weight: 800; }
.section-title h2 { font-size: 32px; display: inline-block; background: linear-gradient(transparent 62%, #fed7aa 62% 90%, transparent 90%); padding: 0 .12em; }
.bs-rg { border: 2px dashed var(--primary); background: var(--surface); border-radius: 18px 18px 18px 3px; }

/* guide text: margin-note quotes, teal head rows with an orange base line */
.prose blockquote { font-family: var(--font-note); font-size: 24px; line-height: 1.3; color: var(--teal-700); border-left: 4px solid var(--accent); }
.prose th { background: var(--teal-50); color: var(--teal-700); border-bottom: 3px solid var(--accent); letter-spacing: .02em; }
.prose table { box-shadow: 0 0 0 2px var(--primary); border-radius: 12px 12px 12px 3px; }
.prose tbody tr:nth-child(even) td { background: #f3f8f6; }
.prose > h2::before { border-radius: 10px 10px 10px 2px; background: var(--teal-700); font-family: var(--font-head); }
.prose > h2 { border-top: 3px dashed var(--primary); }
.example, .key-idea, .sd-care { border-radius: 18px 18px 18px 3px; }
.example > strong, .key-idea > strong, .sd-care > strong { border-radius: 10px 10px 10px 2px; font-family: var(--font-head); }
.sd-steps > li { border-radius: 18px 18px 18px 3px; border-color: var(--primary); box-shadow: 4px 4px 0 var(--accent); }
.sd-steps > li::before { border-radius: 12px 12px 12px 3px; background: var(--primary); color: #fff; }
.tool { border-color: var(--primary); border-radius: 20px 20px 20px 4px; box-shadow: 5px 5px 0 var(--accent); }
.tool input, .tool select, .tool textarea { border-color: var(--primary); border-radius: 10px 10px 10px 2px; }
.tool-big > div { border-color: var(--primary); border-radius: 12px 12px 12px 2px; }
.tool button { border-radius: 12px 12px 12px 2px; background: var(--primary); }
.tool-cta { border-color: var(--primary); border-left: 8px solid var(--accent); border-radius: 16px 16px 16px 3px; }

/* footer */
.footer { background: var(--cream); border-top: 3px dashed var(--primary); }
.footer h4 { color: var(--teal-700); }

@media (max-width: 900px) {
  .bs-hero::before { width: 300px; height: 300px; right: -90px; top: 0; opacity: .6; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .masthead .wrap { height: auto; gap: 6px; }
  .nav a { padding: 5px 10px; font-size: 14px; }
  .kicker, .bs-num, .bs-go { font-size: 18px; }
  .prose blockquote { font-size: 21px; }
  .bs-hero::before { width: 240px; height: 240px; right: -80px; opacity: .45; }
  .bs-path { box-shadow: 4px 4px 0 var(--primary); }
}


/* studio-topic-chips-v1 */
.article-topics{display:flex;flex-wrap:wrap;gap:.5rem;margin-block:1.5rem}.article-topics a{padding:.35rem .7rem;border:1px solid currentColor;border-radius:var(--radius,4px);font:inherit;font-size:.85em}

/* studio-featured-article-v2 */
.featured-image{margin:1.5rem 0}.featured-image img{display:block;max-width:100%;height:auto;border-radius:var(--radius,12px)}.card .thumb,.post .img{position:relative;overflow:hidden}.card .thumb>img,.post .img>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.card .thumb>span,.post .img>span{position:relative;z-index:1}
