/* =====================================================================
   Winter Ball Updates · mlbc.css · Discover › MLB by country (page-mlbc.js)
   The house look: the paper/night cards, the vintage serif for kickers and lists, the Caribbean red rule on the active
   tab. Two tab rows (countries, decades) that scroll inside their own box on a phone; the page never scrolls sideways.
   ===================================================================== */
.mlbc { min-width: 0; }
.mlbc-h { margin-bottom: 10px; }
.mlbc-tabs { display: flex; gap: 4px; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--vt-ink, var(--ink)); margin: 0 0 12px; padding: 0 2px; }
.mlbc-tabs::-webkit-scrollbar { display: none; }
.mlbc-tabs [role="tab"] { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px 8px; color: var(--ink); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-bottom: 0; border-radius: 4px 4px 0 0; margin-bottom: -1px; }
.mlbc-tabs [role="tab"]:hover { color: var(--vt-red, #9B1C1F); }
.mlbc-tabs [role="tab"].on { background: var(--card); border-color: var(--vt-ink, var(--ink)); box-shadow: inset 0 3px 0 var(--vt-red, #9B1C1F); }
.mlbc-tabs [role="tab"]:focus-visible { outline: 2px solid var(--vt-red, #9B1C1F); outline-offset: -2px; }
.mlbc-cc [role="tab"] { font: 600 15px/1 var(--vt-serif, Georgia, serif); letter-spacing: .04em; text-transform: uppercase; }
.mlbc-cc .flag3 { width: 24px; height: 16px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgb(15 35 64 / .25); }
.mlbc-dec { border-bottom-color: var(--line); }
.mlbc-dec [role="tab"] { font: 600 14px/1 var(--fb); padding: 7px 10px 6px; }
.mlbc-dec [role="tab"].on { border-color: var(--line); }
.mlbc-dec small { font: 500 11px/1 var(--fb); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mlbc-dec [role="tab"].on small { color: var(--ink-2); }

/* the stats panel: six figures, newspaper style */
.mlbc-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 4px 0 12px; background: var(--card); border: 1px solid var(--line);
  border-top: 3px double var(--vt-ink, var(--ink)); border-radius: 4px; }
.mlbc-st { padding: 14px 14px 12px; border-left: 1px solid var(--line); min-width: 0; }
.mlbc-st:first-child { border-left: 0; }
.mlbc-st b { display: block; font: var(--fdw, 700) calc(38px * var(--fdk, 1))/1 var(--fd); letter-spacing: var(--fdt, 0); color: var(--ink); font-variant-numeric: tabular-nums; }
.mlbc-st span { display: block; margin-top: 6px; font: 500 13px/1.35 var(--fb); color: var(--ink-2); }
.mlbc-first { margin: 0 0 14px; font: 400 16px/1.5 var(--vt-serif, Georgia, serif); }

/* the country story (a short newspaper column) and its firsts, between the stats and the lists */
.mlbc .mlbc-story { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 0; margin: 0 0 12px; padding: 0; border-top: 3px double var(--vt-ink, var(--ink)); }
.mlbc-story.solo { grid-template-columns: minmax(0, 1fr); }
.mlbc-story-t { padding: 16px 20px 14px; min-width: 0; }
.mlbc-sp { margin: 0; font: 400 16.5px/1.6 var(--vt-serif, Georgia, serif); color: var(--ink); columns: 2 280px; column-gap: 28px; column-rule: 1px solid var(--line); }
.mlbc-ssrc { margin: 10px 0 0; max-width: 92ch; font: 400 12.5px/1.45 var(--fb); color: var(--ink-3); overflow-wrap: anywhere; }
.mlbc-ssrc a { color: var(--ink-2); }
.mlbc-firsts { padding: 16px 18px 14px; border-left: 1px solid var(--line); min-width: 0; }
.mlbc-firsts h2 { margin: 0 0 10px; font: var(--fdw, 700) calc(22px * var(--fdk, 1))/1.1 var(--fd); letter-spacing: var(--fdt, 0); color: var(--ink); }
.mlbc-firsts ol { list-style: none; margin: 0; padding: 0; }
.mlbc-firsts li { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 10px; padding: 6px 0 7px; border-bottom: 1px solid var(--rule-2, var(--line)); }
.mlbc-firsts li:last-child { border-bottom: 0; }
.mlbc-firsts .y { grid-row: span 2; font: 700 15px/1.3 var(--vt-serif, Georgia, serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.mlbc-firsts .k { font: 600 11px/1.3 var(--fb); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.mlbc-firsts .n { font: 400 15.5px/1.35 var(--vt-serif, Georgia, serif); }
.mlbc-firsts .mlbc-rm { margin-top: 8px; }
.mlbc-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.mlbc-sec { padding: 14px 16px 14px; min-width: 0; margin: 0; }
.mlbc-panel > .mlbc-sec { margin-top: 4px; }
.mlbc .mlbc-two > .mlbc-sec { margin: 0; }
.mlbc-st b small { display: block; margin-top: 3px; font-size: .45em; letter-spacing: 0; }
.mlbc-sec h2, .mlbc-dh, .mlbc-src h2 { margin: 0 0 10px; font: var(--fdw, 700) calc(22px * var(--fdk, 1))/1.1 var(--fd); letter-spacing: var(--fdt, 0); color: var(--ink); }
.mlbc-dh { font-size: calc(26px * var(--fdk, 1)); margin: 6px 0 12px; }
.mlbc-hofl, .mlbc-earn { margin: 0; padding: 0 0 0 1.3em; font: 400 15.5px/1.45 var(--vt-serif, Georgia, serif); }
.mlbc-hofl { list-style: none; padding: 0; }
.mlbc-hofl li, .mlbc-earn li { margin: 0 0 7px; }
.mlbc-rm { display: block; font: 500 12.5px/1.35 var(--fb); color: var(--ink-3); }
.mlbc-none, .mlbc-note { margin: 0; font: 400 13.5px/1.45 var(--fb); color: var(--ink-2); }
.mlbc-note { margin: 8px 0 12px; }
.mlbc a.mlbc-p { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mlbc a.mlbc-p:hover { color: var(--vt-red, #9B1C1F); text-decoration-color: currentColor; }

/* debuts per decade: thin ink bars, each a link to its decade */
.mlbc-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.mlbc-bars a { display: grid; grid-template-columns: 52px minmax(0, 1fr) 40px; gap: 8px; align-items: center; padding: 3px 0; color: var(--ink); text-decoration: none; font: 500 13px/1 var(--fb); font-variant-numeric: tabular-nums; }
html[lang="es"] .mlbc-bars a { grid-template-columns: 76px minmax(0, 1fr) 40px; } /* "Años 1950" */
.mlbc-bars .l { white-space: nowrap; }
.mlbc-bars a:hover .l, .mlbc-bars a:focus-visible .l { color: var(--vt-red, #9B1C1F); text-decoration: underline; }
.mlbc-bars .bar { height: 12px; background: var(--card-2); border-radius: 2px; overflow: hidden; }
.mlbc-bars .bar i { display: block; height: 100%; min-width: 2px; background: var(--ink-2); }
.mlbc-bars .v { text-align: right; }

/* top 3 of the decade */
.mlbc-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mlbc-card { position: relative; display: flex; flex-direction: row; background: var(--card); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; min-width: 0; }
.mlbc-rk { position: absolute; top: 8px; left: 8px; z-index: 6; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--vt-paper, #F2E0C4); color: var(--vt-ink, #14213D); border: 1.5px solid var(--vt-ink, #14213D); font: 700 15px/1 var(--vt-serif, Georgia, serif); }
.mlbc-card.no-ph .mlbc-rk { position: static; flex: none; margin: 12px 0 0 12px; }
.mlbc-ph { position: relative; flex: 0 0 200px; aspect-ratio: 4 / 5; align-self: flex-start; background: var(--card-2); overflow: hidden; }
.mlbc-ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.mlbc-ph .wb-credit { --cr-fs: 9.5px; }
.mlbc-cb { flex: 1 1 auto; padding: 12px 14px 14px; min-width: 0; }
.mlbc-cb h3 { margin: 0 0 4px; font: var(--fdw, 700) calc(24px * var(--fdk, 1))/1.05 var(--fd); letter-spacing: var(--fdt, 0); }
.mlbc-cb h3 a.mlbc-p { font-weight: inherit; }
.mlbc-meta { font: 500 13px/1.35 var(--fb); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mlbc-hon { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.mlbc-hon li { font: 600 11.5px/1.2 var(--fb); padding: 3px 7px; border: 1px solid var(--line); border-radius: 3px; background: var(--card-2); color: var(--ink); }
.mlbc-hon li.hof { border-color: var(--vt-red, #9B1C1F); }

/* the decade's full list: two columns on a wide screen */
.mlbc-list { margin: 0; padding: 0; list-style: none; columns: 2 340px; column-gap: 28px; }
.mlbc-list li { break-inside: avoid; padding: 6px 0 7px; border-bottom: 1px solid var(--rule-2, var(--line)); font: 400 15.5px/1.3 var(--vt-serif, Georgia, serif); }
.mlbc-list .mlbc-rm { display: block; margin-top: 2px; }
.mlbc-m { display: inline-block; margin-left: 6px; padding: 1px 5px; vertical-align: 2px; border-radius: 3px; font: 700 10.5px/1.3 var(--fb); letter-spacing: .03em; border: 1px solid var(--line); color: var(--ink-2); }
.mlbc-m.hof { border-color: var(--vt-red, #9B1C1F); color: var(--vt-red, #9B1C1F); }

/* the sources line (the method lives on Calculations › MLB by country) */
.mlbc-src { max-width: 120ch; margin: 18px 0 6px; padding: 12px 0 0; border-top: 3px double var(--rule, var(--line)); font: 400 13px/1.55 var(--fb); color: var(--ink-2); overflow-wrap: anywhere; }
.mlbc-src a { color: inherit; }
.mlbc-src a.mlbc-how { color: var(--ink); font-weight: 600; white-space: nowrap; }
/* a section header never hides under the sticky bar when it is scrolled to */
.mlbc-sec, .mlbc-card, .mlbc-method { scroll-margin-top: calc(var(--tbh-px, 64px) + 16px); }
/* Calculations › MLB by country */
.mlbc-method h2 { margin: 18px 0 8px; font: var(--fdw, 700) calc(21px * var(--fdk, 1))/1.1 var(--fd); }
.mlbc-method h2:first-child { margin-top: 0; }
.mlbc-method p { max-width: 86ch; }
.mlbc-xt { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; margin: 4px 0 12px; }
.mlbc-xt table { border-collapse: collapse; font: 400 14px/1.4 var(--fb); font-variant-numeric: tabular-nums; }
.mlbc-xt th, .mlbc-xt td { padding: 6px 14px 6px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule, var(--line)); }
.mlbc-xt thead th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.mlbc-xt td:nth-child(2), .mlbc-xt td:nth-child(3) { text-align: right; white-space: nowrap; }
.mlbc-xt td:last-child { min-width: 260px; }
/* phone: one block per country (name, the two counts, then the difference on its own line) */
@media (max-width: 599px) {
  .mlbc-xt thead { display: none; }
  .mlbc-xt table, .mlbc-xt tbody { display: block; }
  .mlbc-xt tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 14px; padding: 9px 0; border-bottom: 1px solid var(--rule, var(--line)); }
  .mlbc-xt th, .mlbc-xt td { padding: 0; border: 0; }
  .mlbc-xt td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
  .mlbc-xt td:last-child { grid-column: 1 / -1; min-width: 0; color: var(--ink-2); }
}

:root[data-theme="dark"] .mlbc-hon li.hof, :root[data-theme="dark"] .mlbc-m.hof { border-color: #E8615F; color: #E8615F; }
:root[data-theme="dark"] .mlbc-tabs [role="tab"].on { box-shadow: inset 0 3px 0 #E8615F; border-color: var(--line); }
:root[data-theme="dark"] .mlbc-tabs, :root[data-theme="dark"] .mlbc-stats { border-color: var(--line); }
:root[data-theme="dark"] .mlbc-stats, :root[data-theme="dark"] .mlbc .mlbc-story { border-top-color: var(--ink-3); }
:root[data-theme="dark"] .mlbc a.mlbc-p:hover, :root[data-theme="dark"] .mlbc-tabs [role="tab"]:hover { color: #E8615F; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mlbc-hon li.hof, :root:not([data-theme="light"]) .mlbc-m.hof { border-color: #E8615F; color: #E8615F; }
  :root:not([data-theme="light"]) .mlbc-tabs [role="tab"].on { box-shadow: inset 0 3px 0 #E8615F; border-color: var(--line); }
  :root:not([data-theme="light"]) .mlbc-tabs, :root:not([data-theme="light"]) .mlbc-stats { border-color: var(--line); }
  :root:not([data-theme="light"]) .mlbc-stats, :root:not([data-theme="light"]) .mlbc .mlbc-story { border-top-color: var(--ink-3); }
}

@media (max-width: 1199px) { .mlbc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mlbc-st:nth-child(4) { border-left: 0; } .mlbc-st:nth-child(n+4) { border-top: 1px solid var(--line); }
  .mlbc-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .mlbc-two > :nth-child(2) { grid-row: span 2; } }
@media (max-width: 1299px) { .mlbc-ph { flex-basis: 160px; } }
@media (max-width: 999px) { .mlbc-top { grid-template-columns: minmax(0, 1fr); } .mlbc-ph { flex-basis: 180px; } }
@media (max-width: 899px) { .mlbc .mlbc-story { grid-template-columns: minmax(0, 1fr); } .mlbc-firsts { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 599px) { .mlbc-story-t { padding: 14px 14px 12px; } .mlbc-firsts { padding: 14px 14px 12px; } .mlbc-sp { font-size: 16px; } }
@media (max-width: 699px) { .mlbc-two { grid-template-columns: minmax(0, 1fr); } .mlbc-two > :nth-child(2) { grid-row: auto; } }
@media (max-width: 599px) {
  .mlbc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mlbc-st { padding: 12px 12px 10px; } .mlbc-st b { font-size: calc(32px * var(--fdk, 1)); }
  .mlbc-st:nth-child(4) { border-left: 1px solid var(--line); } .mlbc-st:nth-child(odd) { border-left: 0; } .mlbc-st:nth-child(n+3) { border-top: 1px solid var(--line); }
  .mlbc-cc [role="tab"] { font-size: 13.5px; padding: 8px 10px 7px; gap: 6px; }
  .mlbc-ph { flex-basis: 44%; }
  .mlbc-list { columns: 1; }
  .mlbc-bars a { min-height: 28px; } /* tap targets: the decade bars were 19 px tall on a 22 px pitch */
}
