:root { --sec-text-color: var(--muted); --text-color: var(--ink); --board-color: var(--panel); --post-heading-color: var(--ink); --link-hover-color: var(--ink); }
.article-header { padding-top: 72px; padding-bottom: 48px; }
.article-header h1 { max-width: 1030px; margin: 20px 0 24px; font-size: clamp(2.2rem, 4.6vw, 4.4rem); line-height: 1.12; letter-spacing: -.045em; overflow-wrap: break-word; }
.article-meta { color: var(--muted); font-size: .85rem; }
.article-intro { max-width: 680px; color: var(--muted); font-size: 1.2rem; line-height: 1.7; }
.article-layout { display: grid; grid-template-columns: minmax(0, 740px) 210px; justify-content: space-between; gap: 64px; align-items: start; padding-bottom: 90px; }
.article-layout.without-toc { grid-template-columns: minmax(0, 740px); }
.article-body { min-width: 0; font-size: 1.06rem; line-height: 1.78; overflow-wrap: break-word; }
.article-body p { margin: 0 0 1.4em; }
.article-body h2 { margin: 2.2em 0 .8em; font-size: 1.75rem; line-height: 1.3; letter-spacing: -.03em; scroll-margin-top: 100px; }
.article-body h3 { margin: 1.8em 0 .7em; font-size: 1.3rem; line-height: 1.4; letter-spacing: -.025em; scroll-margin-top: 100px; }
.article-body a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.article-body ul, .article-body ol { padding-left: 1.5em; }
.article-body li { margin: .4em 0; }
.article-body img { max-width: 100%; height: auto; }
.article-body blockquote { margin: 1.8em 0; padding: .25em 1.5em; border-left: 2px solid var(--muted); color: var(--muted); }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.article-body pre, .article-body figure.highlight { margin: 1.5em 0; padding: 18px; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; font-size: .86rem; line-height: 1.6; }
.article-body code { font-size: .88em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.article-body :not(pre) > code { padding: .15em .35em; background: var(--panel); border-radius: 3px; }
.article-body figure.highlight pre { margin: 0; border: 0; padding: 0; }
.article-body figure.highlight table { margin: 0; }
.article-body figure.highlight td { border: 0; }
.article-body .gutter { color: var(--muted); padding-right: 16px; user-select: none; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.5em 0; font-size: .9em; }
.article-body th, .article-body td { padding: .6em .85em; border-bottom: 1px solid var(--line); }
.article-body th { text-align: left; }
.article-toc { position: sticky; top: 110px; max-height: calc(100vh - 140px); overflow: auto; border-left: 1px solid var(--line); padding-left: 22px; font-size: .8rem; line-height: 1.55; }
.article-toc .eyebrow { font-size: .7rem; }
.article-toc ol { list-style: none; padding: 0; }
.article-toc li { margin: 12px 0; }
.article-toc ol ol { padding-left: 12px; }
.article-toc a { color: var(--muted); }
.article-toc a:hover, .article-toc a:focus-visible { color: var(--ink); }
.article-end { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); }
.standalone-page { max-width: 850px; padding-bottom: 90px; }
.about-header { max-width: 850px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.about-portrait { object-fit: cover; border-radius: 12px; width: 180px; height: 215px; }
.about-body > h2:first-child { margin-top: 0; }
.writing-list { padding-bottom: 40px; }
.writing-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 20px; gap: 20px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--line); }
.writing-row time { color: var(--muted); font-size: .8rem; }
.writing-row h2 { margin: 0; font-size: 1.25rem; line-height: 1.5; }
.pagination { display: flex; gap: 16px; padding-bottom: 80px; }
.pagination .current { border-bottom: 1px solid var(--ink); }
/* Exported data panels deliberately keep their original light palette. */
.legacy-html-block { background: #fafafa; color: #242424; border-radius: 12px; padding: 1px 16px; margin: 24px 0; overflow: hidden; color-scheme: light; }
.legacy-html-block table { display: table; max-width: none; margin: .7em 0; }
.legacy-html-block th, .legacy-html-block td { border-color: #dedede; }
.legacy-html-block a { color: #25496b; }
.legacy-html-block strong { color: inherit; }
.legacy-html-block img { max-width: 100%; }
@media (max-width: 900px) {
 .article-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
 .article-toc { position: static; grid-row: 1; max-height: 230px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 4px; }
 .article-toc > nav > ol { columns: 2; column-gap: 30px; }
 .article-toc li { break-inside: avoid; }
}
@media (max-width: 560px) {
 .article-header { padding-top: 42px; padding-bottom: 30px; }
 .article-header h1 { font-size: 2.15rem; }
 .article-body { font-size: .96rem; }
 .article-body h2 { font-size: 1.5rem; }
 .article-toc > nav > ol { columns: 1; }
 .legacy-html-block { padding: 1px 8px; margin-left: -4px; margin-right: -4px; font-size: .9em; }
 .legacy-html-block > div > div[style*="align-items: center"] { flex-wrap: wrap; }
 .about-header { align-items: flex-start; gap: 24px; }
 .about-portrait { width: 100px; height: 130px; }
 .about-body div[style*="justify-content: space-between"] { flex-wrap: wrap; gap: 6px; }
 .about-body div[style*="white-space: nowrap"] { margin-left: 0 !important; }
 .writing-row { grid-template-columns: minmax(0, 1fr) 20px; gap: 10px; }
 .writing-row time { grid-column: 1 / -1; }
}

/* ===== Stranger Stats blocks (ss-*) =====
   Generated by toolkit/ssblocks.py in the strangerStats analysis repo. Blocks carry
   content and class names only; all presentation lives here and follows the site theme.
   Blocks use <p>/<div>, never headings, so they stay out of the article TOC.
   Rules are scoped under .article-body so they outrank its generic p/ul/img rules. */
.article-body .ss-block { margin: 1.6em 0; }
.article-body .ss-block :where(p, ul) { margin: 0; padding: 0; }
.article-body .ss-block :where(ul) { list-style: none; }
.article-body .ss-block :where(li) { margin: 0; }
.article-body .ss-block img { max-width: none; }
.article-body .ss-surface { background: var(--panel); border-radius: 12px; box-shadow: 0 1px 2px #3b2c1e0f, 0 6px 20px #3b2c1e0d; }
:root[data-theme=dark] .article-body .ss-surface { box-shadow: 0 1px 2px #0003, 0 6px 20px #0002; }
.article-body .ss-avatar { display: block; flex: 0 0 auto; width: 88px; height: 64px; object-fit: cover; object-position: center bottom; border-radius: 10px; background: var(--panel-alt); }
.article-body .ss-avatar--sm { width: 44px; height: 32px; border-radius: 7px; }
.article-body .ss-logo { display: block; flex: 0 0 auto; width: 64px; height: 64px; object-fit: contain; padding: 8px; border-radius: 10px; background: #fff; }
.article-body .ss-logo--sm { width: 22px; height: 22px; padding: 0; background: none; border-radius: 0; }
.article-body .ss-name { font-weight: 650; font-size: 1.08rem; line-height: 1.25; letter-spacing: -.015em; }
.article-body .ss-meta { color: var(--muted); font-size: .86rem; line-height: 1.45; margin-top: 3px; }
.article-body .ss-rank { font: 600 .72rem/1.4 var(--mono); color: var(--accent); letter-spacing: .04em; margin-bottom: 2px; }

/* Card: one player-game, team-month or spotlight */
.article-body .ss-card { max-width: 600px; padding: 16px 18px; }
.article-body .ss-card-head { display: flex; gap: 14px; align-items: center; }
.article-body .ss-headline { margin-top: 12px; font-weight: 650; font-size: 1.02rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.article-body .ss-headline--accent { color: var(--accent); }
.article-body .ss-sub { color: var(--muted); font-size: .9rem; line-height: 1.5; margin-top: 2px; }
.article-body .ss-sub strong, .article-body .ss-meta strong { color: var(--ink); }
.article-body .ss-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.article-body .ss-chips li { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--panel-alt); font-size: .82rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.article-body .ss-chips li span { font: .7rem var(--mono); color: var(--muted); letter-spacing: .03em; }
.article-body .ss-chips li b { font-weight: 650; }
.article-body .ss-stack { display: grid; gap: 14px; }

/* Record list: a team (or group) header with several player rows */
.article-body .ss-records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.article-body .ss-record { padding: 14px 16px; }
.article-body .ss-record-head { display: flex; gap: 12px; align-items: center; }
.article-body .ss-record-head .ss-logo { width: 44px; height: 44px; padding: 5px; }
.article-body .ss-rows { margin-top: 10px; border-top: 1px solid var(--line); }
.article-body .ss-rows li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.article-body .ss-rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.article-body .ss-rows .ss-avatar--sm { grid-row: span 2; }
.article-body .ss-row-main { font-size: .92rem; line-height: 1.35; }
.article-body .ss-row-main b { font-weight: 650; }
.article-body .ss-row-meta { font-size: .78rem; color: var(--muted); line-height: 1.35; }

/* Comparison: two groups of player tiles side by side */
.article-body .ss-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.article-body .ss-group { padding: 16px; }
.article-body .ss-group-title { font-weight: 650; font-size: 1rem; line-height: 1.3; }
.article-body .ss-group-title span { color: var(--muted); font-weight: 400; }
.article-body .ss-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 8px; margin-top: 14px; }
.article-body .ss-tiles li { text-align: center; min-width: 0; }
.article-body .ss-tiles .ss-avatar { width: 66px; height: 48px; margin: 0 auto 6px; }
.article-body .ss-tile-name { display: block; font-size: .78rem; font-weight: 600; line-height: 1.25; }
.article-body .ss-tile-stat { display: block; font: .74rem/1.4 var(--mono); margin-top: 2px; }
.article-body .ss-tile-note { display: block; font-size: .72rem; color: var(--muted); line-height: 1.3; }

/* Table: scrolls sideways inside its own frame on narrow screens */
.article-body .ss-table { padding: 14px 0 4px; overflow: hidden; }
.article-body .ss-table-title { padding: 0 18px 10px; font-weight: 650; font-size: 1rem; line-height: 1.35; }
.article-body .ss-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-body .ss-table table { display: table; width: 100%; margin: 0; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.article-body .ss-table th { font: 600 .7rem/1.4 var(--mono); color: var(--muted); letter-spacing: .03em; text-transform: uppercase; text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel-alt); }
.article-body .ss-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.article-body .ss-table tr:last-child td { border-bottom: 0; }
.article-body .ss-table th:first-child, .article-body .ss-table td:first-child { padding-left: 18px; }
.article-body .ss-table th:last-child, .article-body .ss-table td:last-child { padding-right: 18px; }
.article-body .ss-table .num { text-align: right; }
.article-body .ss-table .ctr { text-align: center; }
.article-body .ss-team-cell { display: inline-flex; align-items: center; gap: 8px; }
.article-body .ss-win { color: var(--ink); font-weight: 650; }
.article-body .ss-loss { color: var(--muted); }

/* Video */
.article-body .ss-video { max-width: 600px; aspect-ratio: 16 / 9; overflow: hidden; }
.article-body .ss-video iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 720px) {
  .article-body .ss-records, .article-body .ss-compare { grid-template-columns: minmax(0, 1fr); }
  .article-body .ss-card { padding: 14px; }
  .article-body .ss-card-head .ss-avatar { width: 72px; height: 52px; }
  .article-body .ss-card-head .ss-logo { width: 52px; height: 52px; }
}
