:root {
  --ink: #24211d; --muted: #696157; --paper: #fffdf8; --background: #f6f1e7;
  --accent: #243f68; --surface-tint: #dce3ed; --line: #ded8ce; --gold: #d2aa43;
  --green: var(--accent); --light-green: var(--surface-tint); --lime: var(--gold);
  --focus: var(--accent); --control-border: #a5adb8; --hover: #e9edf1;
  --error-ink: #843526; --error-surface: #fff5f1; --error-border: #e8c0b7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--paper); font-synthesis: none;
}
* { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100dvh; margin: 0; padding-right: var(--scrollbar-space, 0px); }
[x-cloak], [hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: var(--ink); }
button:disabled { cursor: default; opacity: .5; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
#main-content:focus-visible { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 20; background: var(--lime); color: var(--ink); padding: 14px; }
.skip-link:focus { top: 10px; }
.site-header { background: var(--background); color: var(--ink); position: relative; z-index: 5; border-bottom: 1px solid var(--line); margin-right: calc(-1 * var(--scrollbar-space, 0px)); padding-right: var(--scrollbar-space, 0px); }
.header-inner { position: relative; max-width: 1248px; padding: 16px 32px; margin: auto; display: flex; align-items: center; gap: 32px; }
.header-player { min-width: 0; flex: 1; max-width: 400px; margin-left: auto; }
.search-wrap { position: relative; width: 100%; }
.search-icon { position: absolute; pointer-events: none; top: 15px; left: 14px; width: 18px; height: 18px; stroke: var(--muted); stroke-width: 1.7; fill: none; }
.search-wrap input { width: 100%; height: 48px; border: 1px solid var(--control-border); border-radius: 7px; padding: 0 14px 0 42px; background: var(--paper); color: var(--ink); font-size: 16px; }
.search-wrap input::placeholder { color: var(--muted); opacity: 1; }
.search-wrap input:focus { background: var(--paper); border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 2px; }
.player-search-popover { position: absolute; top: calc(100% + 8px); right: 0; width: 100%; height: min(350px, 45dvh); overflow: auto; overscroll-behavior: contain; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px #243f6824; }
.search-results { width: 100%; }
.search-result { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); text-decoration: none; }
.search-result:last-child { border: 0; }
.search-result:hover, .search-result[aria-selected="true"], .search-result:focus-within { background: var(--light-green); }
.search-results strong { display: block; font-size: 15px; }
.search-results small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.search-rating { text-align: right; font-variant-numeric: tabular-nums; color: var(--green); }
.search-rating small { font-size: 11px; }
.search-empty { padding: 22px 16px; }
.search-empty span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
main { flex: 1; width: 100%; max-width: 1248px; margin: 0 auto; padding: 40px 32px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(28px, 3vw, 36px); font-weight: 650; line-height: 1.15; letter-spacing: -.035em; color: var(--ink); }
h2 { font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.eyebrow { font-size: 13px; font-weight: 650; color: var(--green); margin-bottom: 8px; }
.subtitle { font-size: 15px; color: var(--muted); margin-top: 9px; line-height: 1.5; }
.rankings-overview { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.4fr); align-items: center; gap: 64px; margin-top: -16px; padding: 0 0 16px; }
.page-heading { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 16px; }
.page-heading > div { min-width: 0; }
.page-heading h1 { overflow-wrap: anywhere; }
.region-trail { position: relative; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.region-trail ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; padding: 0; margin: 0; list-style: none; }
.region-trail li { display: inline-flex; align-items: center; min-width: 0; }
.region-trail svg { width: 14px; height: 14px; margin-right: 4px; fill: none; stroke: var(--muted); stroke-width: 1.5; flex-shrink: 0; }
.region-trail a, .region-current { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; overflow-wrap: anywhere; }
.region-trail a { color: var(--green); }
.region-trail a:hover { text-decoration: underline; }
.region-current { color: var(--muted); cursor: default; }
.region-browse, .region-tree-close { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.region-browse { display: inline-flex; align-items: center; gap: 4px; width: auto; padding: 0; color: var(--green); font-size: inherit; font-weight: inherit; white-space: nowrap; text-underline-offset: 4px; }
.region-browse svg, .region-tree-close svg { width: 16px; height: 16px; margin: 0; stroke: currentColor; }
.region-browse svg { width: 14px; height: 14px; transition: transform .16s ease; }
.region-browse[aria-expanded="true"] svg { transform: rotate(90deg); }
.region-browse:hover { text-decoration: underline; }
.region-tree-close:hover { background: var(--light-green); color: var(--green); }
.region-tree { position: absolute; top: calc(100% + 8px); left: 0; z-index: 5; width: min(320px, 100%); padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px #243f6824; color: var(--ink); }
.region-tree-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-left: 8px; }
.region-tree-heading strong { font-size: 13px; font-weight: 650; }
.region-tree-close { flex-shrink: 0; }
.region-tree input { width: 100%; height: 40px; margin: 4px 0 8px; padding: 0 12px; border: 1px solid var(--control-border); border-radius: 6px; background: var(--paper); color: var(--ink); font-size: 14px; }
.region-tree input:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
.region-tree-results { height: min(240px, 28dvh); overflow-y: auto; overscroll-behavior: contain; }
.region-tree-results a { display: flex; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px; border-radius: 6px; color: var(--ink); font-size: 14px; }
.region-tree-results a:hover, .region-tree-results a:focus-visible { background: var(--light-green); text-decoration: none; }
.region-tree-results a svg { margin: 0; }
.region-tree-results .place-feedback { padding: 12px 8px; }
.region-tree-results button { border: 0; padding: 8px; background: transparent; color: var(--green); text-decoration: underline; }
@media (max-width: 760px) {
  .region-tree { width: 100%; }
}
.page-controls { position: relative; min-width: 0; color: var(--ink); }
.region-context { min-width: 0; padding: 5px 0; }
.region-context small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.region-context strong { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.region-guidance { margin: -4px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.region-guidance button { min-height: 44px; padding: 4px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--green); font-weight: 650; text-decoration: underline; }
.page-controls input { width: 100%; height: 48px; padding: 0 46px 0 44px; border: 1px solid var(--control-border); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 15px; text-overflow: ellipsis; }
.page-controls input::placeholder { color: var(--muted); }
.page-controls input[aria-expanded="true"] { border-color: var(--green); }
.place-search-icon { position: absolute; top: 15px; left: 15px; width: 18px; height: 18px; stroke: var(--muted); stroke-width: 1.7; fill: none; pointer-events: none; }
.place-reset { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 6px; color: var(--muted); }
.place-reset svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.place-popover { position: absolute; z-index: 4; top: calc(100% + 8px); left: 0; width: 100%; min-width: 0; height: min(400px, 45dvh); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px #243f6824; overflow: hidden; }
.place-results { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 5px; }
.place-result { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; text-align: left; padding: 10px 12px; background: transparent; border: 0; border-radius: 6px; }
.place-result:first-of-type { border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; margin-bottom: 4px; }
.place-result[aria-selected="true"] { background: var(--light-green); }
.place-result > svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--green); stroke-width: 1.7; }
.place-result-copy { display: block; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.place-result strong { display: block; font-size: 14px; font-weight: 650; }
.place-result small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.place-kind { font-size: 11px; color: var(--muted); }
.place-hint, .place-feedback { padding: 12px 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.place-hint { border-top: 1px solid var(--line); }
.place-recovery { padding: 16px; overflow-wrap: anywhere; }
.place-recovery strong { display: block; color: var(--ink); font-size: 15px; }
.place-recovery p { margin: 6px 0 14px; font-size: 13px; }
.place-recovery button, .place-more, .recovery-action { min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--light-green); color: var(--green); font-size: 14px; font-weight: 650; }
.place-recovery button { width: 100%; }
.place-more { display: block; width: calc(100% - 20px); margin: 5px 10px 10px; }
.recovery-action { margin-top: 16px; }
@media (hover: hover) {
  .place-result:hover, .place-reset:hover, .region-guidance button:hover { background: var(--light-green); }
  .place-recovery button:hover, .place-more:hover, .recovery-action:hover { background: var(--hover); }
}
.update-notice { margin-top: 6px; padding-left: 10px; border-left: 2px solid #936414; color: #765213; font-size: 13px; line-height: 1.5; }
.board-card { background: var(--paper); }
.board-toolbar { display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.scope-tabs { display: inline-flex; flex-shrink: 0; padding: 3px; gap: 3px; background: var(--surface-tint); border-radius: 7px; }
.scope-tabs button { min-height: 44px; border: 0; border-radius: 5px; padding: 10px 18px; font-size: 14px; font-weight: 650; background: transparent; }
.scope-tabs button:hover:not(:disabled):not([aria-pressed="true"]) { background: var(--hover); }
.scope-tabs button[aria-pressed="true"] { background: var(--accent); color: var(--paper); }
.table-wrap { width: 100%; }
.rankings-table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.rankings-table th { background: var(--background); color: var(--muted); padding: 13px 20px; font-size: 12px; font-weight: 600; text-align: left; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rankings-table th:nth-child(1) { width: 8%; }
.rankings-table th:nth-child(2) { width: 32%; }
.rankings-table th:nth-child(3) { width: 100px; }
.rankings-table th:nth-child(4) { width: 80px; }
.rankings-table td { padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.rankings-table tr:last-child td { border-bottom: 0; }
/* Older WebKit ignores positioned table rows; contain and clip stretched links. */
.rankings-table tbody tr { position: relative; transform: translate(0); clip-path: inset(0); }
.rankings-table tbody tr:hover, .rankings-table tbody tr:focus-within { background: var(--hover); }
.rank { font-variant-numeric: tabular-nums; color: var(--muted); }
.podium { color: inherit; }
.player-link { display: block; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; line-height: 1.4; }
/* The profile covers the row; location links sit above it as separate targets. */
.player-link::after { content: ""; position: absolute; inset: 0; cursor: pointer; }
.player-link:focus-visible { outline: none; }
.rankings-table tbody tr:has(.player-link:focus-visible) { outline: 3px solid var(--focus); outline-offset: -3px; }
.location-link { text-decoration: none; }
.location-link[href] { display: inline-block; max-width: 100%; position: relative; z-index: 1; color: var(--green); text-decoration: underline; text-decoration-color: var(--control-border); }
.location-link[href]:hover { text-decoration-color: currentColor; }
.player-name { display: block; min-height: 24px; }
.player-meta { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.mobile-meta { display: none; }
.rating-cell .mobile-class { display: none; }
.rating-cell strong { display: inline-block; color: var(--ink); font-size: 17px; font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.class-label { display: inline-block; color: var(--muted); font-size: 13px; font-weight: 400; white-space: nowrap; }
.home-cell { color: var(--muted); line-height: 1.5; }
.board-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); }
.result-range { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pagination { display: flex; align-items: center; gap: 3px; }
.pagination button { height: 44px; min-width: 44px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; font-size: 13px; font-variant-numeric: tabular-nums; }
.pagination button:hover:not(:disabled) { background: var(--light-green); }
.pagination button[aria-current="page"] { background: var(--accent); color: var(--paper); }
.pagination-gap { display: inline-block; padding: 0 3px; color: var(--muted); }
.table-footnote { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 16px; }
.loading-message, .message, .empty-state { padding: 24px; color: var(--muted); text-align: center; font-size: 14px; }
.empty-state p { margin-top: 8px; }
.loading-label { display: inline-flex; align-items: center; gap: 8px; }
.loading-label::before { content: ""; width: 12px; height: 12px; flex: 0 0 12px; border: 2px solid var(--surface-tint); border-top-color: var(--accent); border-radius: 50%; animation: loading-spin .8s linear infinite; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
.navigation-status, .navigation-error { position: fixed; z-index: 20; bottom: max(20px, env(safe-area-inset-bottom)); right: 20px; max-width: calc(100% - 40px); border-radius: 8px; box-shadow: 0 4px 20px #30261a26; }
.navigation-status { padding: 12px 18px; background: var(--accent); color: var(--paper); pointer-events: none; opacity: 0; animation: loading-reveal .15s .16s forwards; }
.navigation-status .loading-label::before { border-color: #ffffff60; border-top-color: var(--paper); }
.navigation-error { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--error-surface); border: 1px solid var(--error-border); color: var(--error-ink); font-size: 14px; }
.navigation-error button { flex-shrink: 0; min-height: 44px; padding: 8px 12px; border: 1px solid currentColor; border-radius: 5px; color: inherit; background: transparent; }
@keyframes loading-reveal { to { opacity: 1; } }
.back-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); text-decoration: none; margin-bottom: 20px; }
.back-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.back-link:hover { color: var(--green); background: var(--light-green); }
#profile-view { max-width: 960px; margin: auto; }
.profile-card { background: transparent; }
.profile-top { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 28px 32px; background: var(--background); border-bottom: 1px solid var(--line); }
.profile-top h1 { font-size: clamp(30px, 4vw, 42px); color: var(--ink); }
.profile-top .eyebrow, .profile-top .subtitle { color: var(--muted); }
.profile-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.profile-meta .eyebrow { margin: 0; }
.profile-meta .class-label { background: #463e32; color: #f0e6d4; }
.profile-links { display: flex; align-items: center; gap: 8px; padding: 8px 24px; border-bottom: 1px solid var(--line); background: var(--background); flex-wrap: wrap; }
.profile-icon-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 8px; flex: 0 0 auto; border-radius: 7px; color: var(--muted); text-decoration: none; }
.profile-icon-link:hover { background: var(--light-green); color: var(--green); }
.profile-icon-link img { display: block; width: auto; height: 20px; object-fit: contain; }
.profile-icon-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.player-identity { min-width: 0; }
.profile-rating { flex-shrink: 0; text-align: right; border-left: 1px solid var(--line); padding-left: 32px; }
.profile-rating span, .profile-rating small { display: block; font-size: 13px; color: var(--muted); }
.profile-rating strong { display: block; color: var(--accent); font-size: 56px; font-weight: 750; letter-spacing: -.05em; line-height: 1.15; margin: 6px 0; font-variant-numeric: tabular-nums; }
.profile-standings { padding: 28px 0; }
.profile-standings h2 { font-size: 18px; margin-bottom: 16px; }
.profile-rankings { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.profile-rankings > a { position: relative; display: block; padding: 8px 36px 8px 20px; border-left: 1px solid var(--line); text-decoration: none; }
.profile-rankings > a:first-of-type { border-left: 0; padding-left: 0; }
.profile-rankings svg { position: absolute; right: 14px; top: calc(50% - 9px); width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.profile-rankings > a:hover { background: var(--hover); }
.profile-rankings span, .profile-rankings small { display: block; font-size: 13px; color: var(--muted); }
.profile-rankings strong { display: block; font-size: 26px; font-weight: 650; color: var(--green); margin: 6px 0 0; letter-spacing: -.025em; overflow-wrap: anywhere; }
.statistics-content { min-width: 0; padding: 0; }
.city-leaders { margin-bottom: 20px; }
.city-leaders .board-toolbar { flex-wrap: nowrap; }
.view-more { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--light-green); color: var(--green); font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.view-more:hover { background: var(--hover); border-color: var(--control-border); }
.view-more svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s ease; }
.view-more:hover svg, .view-more:focus-visible svg { transform: translateX(2px); }
.stats-sections { display: grid; grid-template-columns: 1.65fr 1fr; gap: 20px; align-items: start; }
.stats-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.small-tabs button { padding: 8px 12px; font-size: 13px; }
.regional-distribution { position: relative; width: 100%; }
.regional-distribution .panel-heading { margin-bottom: 8px; }
.regional-distribution h2 { font-size: 14px; font-weight: 500; color: var(--muted); }
.graph-selection { min-width: 0; color: var(--accent); font-size: 13px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rating-graph { position: relative; height: 216px; }
.rating-graph canvas { display: block; width: 100%; height: 100%; color: var(--muted); background: var(--paper); }
.graph-message { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 14px; }
.graph-message button { border: 1px solid var(--control-border); border-radius: 6px; background: var(--paper); padding: 8px 12px; color: var(--accent); }
.rating-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.distribution-row { display: flex; flex-direction: column; gap: 8px; margin: 0; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.distribution-row > span { color: var(--muted); }
.distribution-row strong { font-size: 12px; font-weight: 650; }
.bar-track { width: 100%; height: 88px; border-bottom: 1px solid var(--control-border); color: var(--green); }
.profile-return { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; margin-bottom: 20px; font-size: 14px; text-decoration: none; color: var(--green); }
.profile-return svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.profile-return:hover { text-decoration: underline; }
.profile-name { overflow-wrap: anywhere; }
.classification-row { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.classification-row strong { font-size: 14px; font-weight: 650; }
.classification-row small { display: block; margin-top: 5px; font-size: 13px; color: var(--muted); }
.classification-row b { margin-left: auto; font-size: 21px; font-weight: 650; font-variant-numeric: tabular-nums; }
.classification-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.classification-dot.amateur { background: var(--gold); }
.classification-bar { height: 10px; border-radius: 4px; background: var(--gold); overflow: hidden; }
.classification-bar span { display: block; height: 100%; background: var(--green); }
.site-footer { width: calc(100% - 64px); max-width: 1184px; margin: 16px auto 0; padding: 24px 0 32px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 12px; }
.site-footer p { margin-left: auto; line-height: 1.6; }
.site-footer { flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.information-page { max-width: 768px; padding-top: 48px; padding-bottom: 64px; line-height: 1.75; overflow-wrap: anywhere; }
.information-page h2 { margin-top: 32px; font-size: 21px; line-height: 1.35; color: var(--accent); }
.information-page p { margin-top: 16px; }
.information-page h1 { line-height: 1.2; margin-bottom: 24px; }
.information-page h2 + p { margin-top: 10px; }
.information-page > p:first-of-type:not(.policy-date) { font-size: 18px; }
.information-page .policy-date { font-size: 13px; color: var(--muted); }
.information-error { padding-top: clamp(40px, 8vh, 88px); }
.information-error .recovery-action { display: inline-flex; align-items: center; margin-top: 24px; background: var(--accent); color: var(--paper); text-decoration: none; border-color: var(--accent); }
.information-error .recovery-action:hover { background: var(--ink); }
[data-prerendered] .loading-message { display: none; }
.server-pagination { display: flex; gap: 24px; padding: 16px 0; }
.distribution-row meter { width: 100%; height: 22px; }
@media (max-width: 1000px) {
  .header-inner { gap: 12px 24px; flex-wrap: wrap; }
  .rankings-overview { gap: 32px; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.2fr); }
  .rankings-table th, .rankings-table td { padding-left: 16px; padding-right: 16px; }
  .stats-sections { grid-template-columns: 1.4fr 1fr; gap: 16px; }
  .stats-panel { padding: 20px; }
  .site-footer { margin-left: 32px; margin-right: 32px; }
}
@media (max-width: 760px) {
  .header-inner { padding: 12px 16px; gap: 12px; }
  .header-player { flex: 0 0 100%; max-width: none; }
  .page-controls, .region-context { grid-column: 1 / -1; grid-row: 2; }
  .region-context { display: flex; align-items: baseline; gap: 10px; padding: 0; }
  .region-context small { flex-shrink: 0; margin-bottom: 0; }
  .search-wrap { display: block; }
  main { padding: 20px 16px 32px; }
  .rankings-overview { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 0; padding: 0 0 8px; }
  .page-heading { gap: 10px; }
  h1 { font-size: 30px; }
  .subtitle { font-size: 14px; margin-top: 7px; }
  .board-toolbar { padding: 12px; flex-wrap: wrap; gap: 12px; min-height: 0; }
  .city-leaders .board-toolbar h2 { font-size: 18px; }
  .view-more { font-size: 13px; padding: 8px; }
  .page-controls input { font-size: 16px; }
  .desktop-column { display: none; }
  .rankings-table th { padding: 10px 8px; }
  .rankings-table th:nth-child(1) { width: 40px; }
  .rankings-table th:nth-child(2) { width: auto; }
  .rankings-table th:nth-child(3) { width: 66px; text-align: right; }
  .rankings-table td { padding: 10px 8px; }
  .rankings-table .rank { padding-right: 0; font-size: 12px; }
  .podium { width: 24px; height: 24px; }
  .player-link { font-size: 15px; }
  .player-meta { font-size: 12px; }
  .mobile-meta { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.5; }
  .rating-cell .mobile-class { display: block; margin-top: 4px; font-size: 12px; }
  .rating-cell { text-align: right; }
  .rating-cell strong { font-size: 17px; }
  .board-bottom { flex-direction: column; gap: 10px; padding: 14px 8px; }
  .pagination { flex-wrap: wrap; justify-content: center; }
  .back-link { margin-bottom: 16px; }
  .profile-top { gap: 16px; padding: 20px 16px; }
  .profile-top h1 { font-size: 28px; }
  .profile-links { padding: 8px; }
  .profile-rating { padding-left: 16px; }
  .profile-rating strong { font-size: 42px; }
  .profile-rating span { font-size: 12px; }
  .profile-rating small { font-size: 12px; margin-top: 8px; }
  .profile-standings { padding: 24px 0 8px; }
  .profile-standings h2 { font-size: 18px; margin-bottom: 12px; }
  .profile-rankings { grid-template-columns: minmax(0, 1fr); }
  .profile-rankings > a, .profile-rankings > a:first-of-type { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 8px 36px 8px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .profile-rankings span { font-size: 14px; color: var(--ink); }
  .profile-rankings svg { right: 8px; width: 16px; }
  .profile-rankings strong { font-size: 20px; margin: 0; }
  .statistics-content { padding: 0; }
  .regional-distribution .panel-heading { position: absolute; z-index: 1; top: 0; right: 0; max-width: calc(100% - 100px); margin: 0; pointer-events: none; }
  .regional-distribution .panel-heading h2 { display: none; }
  .graph-selection { font-size: 12px; }
  .rating-graph { height: 176px; }
  .stats-sections { grid-template-columns: 1fr; gap: 16px; }
  .distribution-panel .panel-heading { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
  .panel-heading h2 { font-size: 19px; }
  .distribution-row > span { font-size: 11px; max-width: 36px; min-height: 28px; }
  .profile-return { margin-bottom: 16px; }
  .site-footer { width: calc(100% - 32px); margin: 0 16px; padding: 20px 0; flex-wrap: wrap; gap: 12px; }
  .site-footer p { width: 100%; margin: 0; order: 2; }
  .information-page { padding-top: 32px; padding-bottom: 40px; }
  .information-page h1 { margin-bottom: 20px; }
}
@media (max-width: 360px) {
  .header-inner { gap: 8px; }
  .distribution-row > span { font-size: 10px; }
  .profile-top { padding: 20px; }
  .profile-top h1 { font-size: 24px; }
  .profile-rating strong { font-size: 36px; }
  .profile-rankings strong { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .navigation-status { animation-duration: 0s; }
  .loading-label::before { animation: none; }
}
