/* win-formulas.site — dashboard template. Change only this :root block to restyle. */
:root {
  --primary: #047857;
  --accent: #facc15;
  --bg: #f7faf8;
  --surface: #ffffff;
  --surface-2: #e9f3ee;
  --text: #102a1f;
  --muted: #587064;
  --border: #d8e6df;
  --link: #047857;
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 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.15; margin: 0 0 .5em; letter-spacing: .01em; }

.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }

/* Sidebar */
.side { background: var(--surface); border-right: 1px solid var(--border); padding: 24px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo img { height: 32px; width: auto; margin: 0 6px 28px; }
.side-label { font: 700 11px/1 var(--font-head); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 22px 8px 10px; }
.side-nav { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: 15px; }
.side-nav a::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--primary); opacity: .7; }
.side-nav a:hover { background: var(--surface-2); text-decoration: none; }
.side-foot { margin-top: 28px; font-size: 13px; color: var(--muted); padding: 0 8px; }

/* Main column */
.main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 32px; border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.crumbs { color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); }
.pill { background: var(--primary); color: #fff; font: 700 12px/1 var(--font-head); padding: 7px 12px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }
.content { padding: 32px; max-width: 1080px; }

/* Home */
.intro h1 { font-size: clamp(34px, 5vw, 52px); text-transform: uppercase; }
.intro p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 0 28px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 36px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: 10px; padding: 16px 18px; }
.tile:nth-child(even) { border-top-color: var(--accent); }
.tile b { display: block; font: 700 22px/1.2 var(--font-head); }
.tile span { color: var(--muted); font-size: 13px; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 28px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.panel-head h2 { font-size: 20px; margin: 0; text-transform: uppercase; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.rows li:last-child { border-bottom: 0; }
.rows .tag { font: 700 12px/1 var(--font-head); text-transform: uppercase; color: var(--link); letter-spacing: .06em; }
.rows a { color: var(--text); font-weight: 600; }
.rows .when { color: var(--muted); font-size: 13px; white-space: nowrap; }
.empty { padding: 26px 20px; color: var(--muted); text-align: center; }

/* Article & pages */
.doc-head { margin-bottom: 26px; max-width: 760px; }
.doc-head h1 { font-size: clamp(30px, 4.5vw, 44px); }
.doc-head .dek { color: var(--muted); font-size: 18px; margin: 0 0 12px; }
.meta { color: var(--muted); font-size: 14px; }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: start; }
.doc.single { grid-template-columns: minmax(0, 760px); }
.prose h2 { font-size: 26px; margin-top: 1.6em; text-transform: uppercase; }
.prose h3 { font-size: 20px; margin-top: 1.4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose li { margin-bottom: .35em; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--border); border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.prose th { background: var(--surface-2); font-family: var(--font-head); text-transform: uppercase; font-size: 13px; letter-spacing: .05em; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.prose tr:last-child td { border-bottom: 0; }
.facts { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; position: sticky; top: 84px; }
.facts h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts ul { margin: 0; padding-left: 18px; }
.facts li { margin-bottom: 8px; }

.foot { border-top: 1px solid var(--border); padding: 24px 32px 40px; color: var(--muted); font-size: 13px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.foot a { color: var(--muted); }

@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .facts { position: static; }
}
@media (max-width: 800px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--border); }
  .side .logo img { margin: 0 0 12px; }
  .side-label, .side-foot { display: none; }
  .side-nav { display: flex; gap: 6px; overflow-x: auto; }
  .side-nav a { white-space: nowrap; }
  .topbar { position: static; padding: 12px 16px; }
  .content { padding: 22px 16px; }
  .rows li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .foot { padding: 20px 16px 32px; }
}

/* 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: Win Formulas — bankroll app ===== */
:root { --deep: #064e3b; --mint: #d1fae5; --mint-2: #ecfdf5; }
body { font-size: 16.5px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.015em; }
.side-nav a { border-radius: 999px; padding: 9px 14px; }
.side-nav a::before { border-radius: 50%; opacity: 1; }
.side-nav a:hover { background: var(--mint); color: var(--deep); }
.pill { background: var(--deep); }
.topbar { background: rgba(247, 250, 248, .9); backdrop-filter: blur(6px); }
.topbar .pill { white-space: nowrap; }

.wf-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center; margin: 6px 0 26px; }
.wf-eyebrow { display: inline-block; font: 700 12.5px/1.4 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.wf-hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.02; margin: 12px 0 14px; color: var(--deep); }
.wf-hero p { color: var(--muted); font-size: 18px; margin: 0; max-width: 560px; }
.wf-hero .wf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.wf-btn { background: var(--primary); color: #fff; font-weight: 700; padding: 12px 20px; border-radius: 999px; }
.wf-btn:hover { text-decoration: none; background: var(--deep); }
.wf-btn.ghost { background: #fff; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.wf-card { position: relative; border-radius: 22px; padding: 24px 24px 20px; color: #ecfdf5;
  background: radial-gradient(circle at 90% 10%, rgba(250, 204, 21, .35), transparent 40%), linear-gradient(140deg, var(--deep), var(--primary));
  box-shadow: 0 30px 50px -30px rgba(6, 78, 59, .7); }
.wf-card-label { position: absolute; top: 18px; right: 20px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 255, 255, .15); padding: 4px 9px; border-radius: 999px; }
.wf-card-title { font-size: 13px; opacity: .8; text-transform: uppercase; letter-spacing: .1em; }
.wf-card-amount { display: block; font: 800 38px/1.1 var(--font-head); margin: 6px 0 16px; color: #fff; }
.wf-card-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 14.5px; }
.wf-card-row b { color: var(--accent); }
.wf-card-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .18); margin: 12px 0 8px; overflow: hidden; }
.wf-card-bar i { display: block; height: 100%; background: var(--accent); }
.wf-card small { font-size: 12px; opacity: .75; }

.tile { border-top: 0; border-radius: 16px; position: relative; padding: 16px 16px 16px 58px; box-shadow: 0 1px 2px rgba(16, 42, 31, .06); transition: box-shadow .15s, transform .15s; }
.tile::before { content: ""; position: absolute; left: 16px; top: 17px; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle, var(--primary) 0 34%, var(--mint) 36%); }
.tile:nth-child(even)::before { background: radial-gradient(circle, #ca8a04 0 34%, #fef9c3 36%); }
.tile b { color: var(--deep); font-size: 20px; }
.tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(6, 78, 59, .5); }
@media (max-width: 480px) { .tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

.panel { border-radius: 18px; }
.panel-head { border-bottom-color: var(--mint); }
.panel-head h2 { text-transform: none; font-size: 20px; color: var(--deep); }
.rows li { grid-template-columns: 140px 1fr auto; }
.rows li:hover { background: var(--mint-2); }
.rows .tag { background: var(--mint); color: var(--deep); padding: 5px 9px; border-radius: 999px; text-align: center; text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.rows .when { font-variant-numeric: tabular-nums; }
.hub-panel .rows li { grid-template-columns: 1fr auto; }
.wf-rg { margin: 2px 0 0; font-size: 14.5px; color: var(--muted); }

.doc-head h1 { color: var(--deep); }
.prose h2 { text-transform: none; color: var(--deep); }
.prose td { font-variant-numeric: tabular-nums; }
.prose th { background: var(--mint); color: var(--deep); }
.prose .note { background: var(--mint-2); border-left: 4px solid var(--primary); padding: 14px 18px; border-radius: 0 12px 12px 0; font-size: 15.5px; }
.facts { background: var(--deep); border: 0; color: #d1fae5; border-radius: 18px; }
.facts h3 { color: var(--accent); }
.facts li::marker { color: var(--accent); }
.facts strong { color: #fff; }
.sources { font-size: 15px; }

@media (max-width: 1000px) { .wf-hero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 800px) {
  .rows li { grid-template-columns: minmax(0, 1fr); }
  .rows .tag { justify-self: start; }
  .side-nav { flex-wrap: wrap; gap: 4px; overflow: visible; }
  .side-nav a { white-space: nowrap; padding: 5px 11px; font-size: 13.5px; gap: 7px; }
  .side-nav a::before { width: 6px; height: 6px; }
}

/* layout: the sidebar floats as a card */
@media (min-width: 801px) {
  .shell { grid-template-columns: 270px minmax(0, 1fr); }
  .side { margin: 16px 0 16px 16px; height: calc(100vh - 32px); top: 16px; border: 1px solid var(--mint); border-radius: 22px; background: linear-gradient(180deg, #ffffff, var(--mint-2)); box-shadow: 0 20px 40px -32px rgba(6, 78, 59, .5); }
  .topbar { border-bottom: 0; }
}

/* ===== 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:win-formulas.site-refresh-v1 — cuaderno de fórmulas: formula cards, chalk-style section headers, worked-example boxes */
:root { --chalk: #0b3b2e; --chalk-text: #f1f7f3; --paper-line: rgba(4, 120, 87, .09); }
.doc.single .prose { background-image: linear-gradient(var(--paper-line) 1px, transparent 1px); background-size: 100% 1.65em; background-position: 0 .3em; }
.prose h2 { display: inline-block; margin-top: 1.9em; padding: 7px 14px 6px; border-radius: 6px; background: var(--chalk); color: var(--chalk-text); font-size: 21px; letter-spacing: .01em; box-shadow: 0 2px 0 var(--accent); }
.prose h2 + * { margin-top: .9em; }
.hub-h { display: inline-block; padding: 5px 12px; border-radius: 6px; background: var(--chalk); color: var(--chalk-text); font-size: 17px; }
.wf-formula { margin: 1.4em 0; padding: 14px 18px 12px; border-radius: 12px; background: #fff; border: 2px solid var(--deep); box-shadow: 5px 5px 0 var(--mint); }
.wf-formula span { display: inline-block; font: 800 11.5px/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.wf-formula p { margin: 0; font: 700 17px/1.5 var(--font-head); color: var(--deep); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wf-ejemplo { margin: 1.4em 0; padding: 14px 18px; border-radius: 12px; background: #fffbe6; border: 1.5px dashed #ca8a04; }
.wf-ejemplo p:last-child, .wf-ejemplo ul:last-child { margin-bottom: 0; }
.prose .note { border-left-style: dashed; }
.tool { border-radius: 14px; border: 2px solid var(--deep); box-shadow: 5px 5px 0 var(--mint); }
.tool-cta { border-radius: 14px; border-style: dashed; }
.sb-cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 12px; }
.sb-cifras div { background: var(--mint-2); border-radius: 12px; padding: 12px 14px; border: 1px solid var(--mint); }
.sb-cifras b { display: block; font: 800 22px/1.2 var(--font-head); color: var(--deep); font-variant-numeric: tabular-nums; }
.sb-cifras span { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 3px; }
.sb-nota { font-size: 15px; margin: 0 0 10px; }
.sb-grafico { width: 100%; height: auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.sb-grafico polyline { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.sb-grafico .sb-p50 { stroke: var(--deep); }
.sb-grafico .sb-p95 { stroke: var(--primary); stroke-opacity: .55; }
.sb-grafico .sb-p5 { stroke: #b45309; stroke-opacity: .8; }
.sb-grafico .sb-base { stroke: #94a3b8; stroke-dasharray: 5 5; }
.sb-grafico text { font: 600 12px var(--font-body); fill: var(--muted); }
.sb-leyenda { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.sb-leyenda span::before { content: ""; display: inline-block; width: 14px; height: 3px; margin-right: 5px; vertical-align: middle; }
.sb-l95::before { background: rgba(4, 120, 87, .55); } .sb-l50::before { background: var(--deep); } .sb-l5::before { background: #b45309; }
.sb-aviso { margin: 0; padding: 10px 14px; border-radius: 10px; background: #fef2f2; color: #7f1d1d; border: 1px solid #fecaca; font-size: 14.5px; }
.sb-pie { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 480px) {
  .prose h2 { display: block; font-size: 19px; }
  .wf-formula p { font-size: 15.5px; }
}

/* sd-release:win-formulas.site-identity-v1 — formula-board identity: sigma-in-a-square chalkboard plaque logo, Kalam chalk headings with Atkinson Hyperlegible text, binder-spine sidebar with math-symbol bullets, chalkboard hero card and panel heads */
:root { --font-head: "Kalam", "Segoe Print", "Comic Sans MS", cursive; --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif; --chalk: #0b3b2e; --chalk-text: #f1f7f3; --grid: rgba(4, 120, 87, .09); --yellow-100: #fef9c3; }
body { font-size: 17px; line-height: 1.65; }
h1, h2, h3 { font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.tool-big b, .wf-card-amount, .wf-card-row b, .sb-cifras b, .tile b, .prose th, .rows .tag, .pill, .wf-eyebrow, .side-label, .wf-btn, .tool label, .tool legend, .tool button, .tool-teaser b, .tool-cta b, .facts h3 { font-family: var(--font-body); }
.tile b, .tool-teaser b, .tool-cta b { font-weight: 700; }

/* sidebar: binder spine, math-symbol bullets */
.side .logo img { height: 34px; margin-bottom: 26px; }
@media (min-width: 801px) {
  .side { margin: 14px 0 14px 14px; height: calc(100vh - 28px); top: 14px; border: 2px solid var(--chalk); border-left-width: 16px; border-radius: 6px 20px 20px 6px; background: #fff linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 28px; box-shadow: 5px 5px 0 var(--accent); }
}
.side-label { color: var(--primary); font-weight: 700; letter-spacing: .12em; }
.side-nav a { border-radius: 6px; padding: 8px 10px; font-weight: 700; }
.side-nav a::before { content: "Σ"; width: 22px; height: auto; flex: none; border-radius: 0; background: none; opacity: 1; color: var(--primary); font: 700 17px/1 var(--font-body); text-align: center; }
.side-nav li:nth-child(2) a::before { content: "π"; }
.side-nav li:nth-child(3) a::before { content: "≈"; }
.side-nav li:nth-child(4) a::before { content: "%"; }
.side-nav li:nth-child(5) a::before { content: "÷"; }
.side-nav li:nth-child(6) a::before { content: "√"; }
.side-nav li:nth-child(7) a::before { content: "±"; }
.side-nav li:nth-child(8) a::before { content: "∞"; }
.side-nav a:hover { background: var(--yellow-100); color: var(--chalk); }
.side-foot { border-top: 2px dashed var(--accent); padding-top: 12px; color: #3f5a4d; }
.topbar { background: var(--bg); border-bottom: 2px solid var(--chalk); }
.topbar .pill { background: var(--chalk); color: var(--accent); border: 2px solid var(--accent); border-radius: 6px; letter-spacing: .05em; }

/* hero: graph paper behind, chalkboard card */
.wf-hero { position: relative; isolation: isolate; }
.wf-hero::before { content: ""; position: absolute; z-index: -1; inset: -14px -32px -14px -32px; background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 28px 28px; -webkit-mask-image: radial-gradient(ellipse at 40% 45%, #000 30%, transparent 78%); mask-image: radial-gradient(ellipse at 40% 45%, #000 30%, transparent 78%); }
.wf-eyebrow { color: #065f46; border-bottom: 3px solid var(--accent); padding-bottom: 4px; letter-spacing: .1em; }
.wf-hero h1 { font-weight: 700; line-height: 1.1; color: var(--chalk); }
.wf-btn { border-radius: 6px; background: var(--chalk); color: var(--chalk-text); border: 2px solid var(--chalk); box-shadow: 4px 4px 0 var(--accent); font-family: var(--font-body); }
.wf-btn:hover { background: var(--primary); border-color: var(--primary); }
.wf-btn.ghost { background: #fff; color: var(--chalk); box-shadow: 4px 4px 0 var(--accent); }
.wf-card { border-radius: 6px; border: 5px solid #e3ece6; background: url(/img/identity-hero.svg) no-repeat right 6px bottom 4px / 78% auto, linear-gradient(160deg, #0b3b2e, #064e3b); box-shadow: 0 7px 0 #b9c9bf, 0 18px 30px -16px rgba(6, 40, 30, .6); outline: 2px dashed rgba(250, 204, 21, .5); outline-offset: -15px; padding: 28px 30px 24px; }
.wf-card-label { border-radius: 4px; background: var(--accent); color: var(--chalk); font-weight: 700; }
.wf-card-amount { font-weight: 700; letter-spacing: -.01em; }
.wf-card-row { border-top: 1px dashed rgba(255, 255, 255, .3); }

/* tiles: symbol squares */
.tile { border: 2px solid var(--chalk); border-radius: 6px; box-shadow: 3px 3px 0 var(--mint); background: #fff; padding: 14px 14px 14px 62px; }
.tile::before { content: "Σ"; border-radius: 4px; width: 34px; height: 34px; left: 14px; top: 13px; background: var(--chalk); color: var(--accent); display: grid; place-items: center; font: 700 19px/1 var(--font-body); }
.tile:nth-child(2)::before { content: "%"; }
.tile:nth-child(3)::before { content: "≈"; }
.tile:nth-child(4)::before { content: "σ"; }
.tile:hover { box-shadow: 5px 5px 0 var(--accent); transform: translate(-2px, -2px); }
.tool-teaser { border: 2px solid var(--chalk); border-radius: 6px; background: #fff; box-shadow: 4px 4px 0 var(--accent); }
.tool-teaser:hover { border-color: var(--chalk); box-shadow: 2px 2px 0 var(--accent); }
.tool-teaser .ico { border-radius: 4px; background: var(--chalk); color: var(--accent); font-family: var(--font-body); }

/* latest articles: chalkboard panel head */
.panel { border: 2px solid var(--chalk); border-radius: 6px 18px 18px 18px; }
.panel-head { background: var(--chalk); border-bottom: 4px solid var(--accent); }
.panel-head h2 { color: var(--chalk-text); font-weight: 700; font-size: 22px; }
.rows .tag { background: var(--yellow-100); color: #5b3a06; border: 1px solid #eab308; border-radius: 4px; font-weight: 700; }
.rows li:hover { background: var(--yellow-100); }
.listing-picture { border: 2px solid var(--chalk); border-radius: 4px; }

/* article text */
.doc-head h1 { font-weight: 700; color: var(--chalk); }
.doc-head h1::after { content: ""; display: block; width: 90px; height: 5px; margin-top: 10px; background: repeating-linear-gradient(90deg, var(--accent) 0 12px, transparent 12px 18px); }
.prose h2 { font-weight: 700; font-size: 23px; border-radius: 4px; }
.table-wrap { border: 2px solid var(--chalk); border-radius: 4px; }
.prose th { background: var(--chalk); color: var(--chalk-text); font-weight: 700; letter-spacing: .04em; border-bottom: 3px solid var(--accent); border-right: 1px solid rgba(255, 255, 255, .15); }
.prose td { border-right: 1px solid var(--mint); }
.prose th:last-child, .prose td:last-child { border-right: 0; }
.prose tbody tr:nth-child(even) td { background: var(--mint-2); }
.prose .note { border-radius: 0 6px 6px 0; background: var(--yellow-100); border-left: 5px solid var(--accent); }
.wf-formula { border-radius: 6px; border: 2px solid var(--chalk); box-shadow: 4px 4px 0 var(--accent); }
.wf-formula span { font-family: var(--font-body); }
.wf-formula p { font-family: var(--font-body); font-weight: 700; }
.wf-ejemplo { border-radius: 6px; }
.facts { background: var(--chalk); border-radius: 6px 18px 18px 18px; outline: 2px dashed rgba(250, 204, 21, .5); outline-offset: -9px; padding: 22px 24px; }
.tool { border: 2px solid var(--chalk); border-radius: 6px; box-shadow: 4px 4px 0 var(--accent); }
.tool input, .tool select, .tool textarea { border: 2px solid var(--chalk); border-radius: 4px; background: #fff; }
.tool button { border-radius: 4px; background: var(--chalk); color: var(--accent); }
.tool-big > div { border-radius: 6px; border: 2px solid var(--chalk); }
.tool-cta { border: 2px solid var(--chalk); border-left: 8px solid var(--accent); border-radius: 0 6px 6px 0; }
.hub-h { border-radius: 4px; font-weight: 700; box-shadow: 0 2px 0 var(--accent); }

/* footer: chalk ledge */
.foot { background: var(--chalk); color: #cfe5da; border-top: 6px solid var(--accent); }
.foot a { color: var(--chalk-text); text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 800px) {
  .side { border-bottom: 3px solid var(--chalk); background: #fff; }
  .side-nav a::before { width: 16px; height: auto; font-size: 14px; background: none; border-radius: 0; }
  .topbar { border-bottom: 2px solid var(--chalk); }
  .wf-hero::before { inset: -10px -16px; }
  .doc-head h1::after { width: 70px; height: 4px; }
}
@media (max-width: 480px) {
  .wf-card { padding: 24px 22px 20px; outline-offset: -11px; background-size: 90% auto; }
  .tile::before { top: 12px; }
}


/* 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}
