.chart-wiki, .chart-codes { display: grid; gap: 1rem; }
.wiki-page.chart-wiki { grid-template-columns: minmax(0, 1fr); }
.chart-wiki > .wiki-codes { grid-row: auto; }
.chart-block { padding: clamp(1rem, 3vw, 2rem); }
.chart-overview { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: clamp(1.25rem, 4vw, 3.5rem); overflow: clip; padding: clamp(1rem, 3.5vw, 3.25rem); border: 1px solid #314a5b; border-radius: 1rem; background: #0d1c29; }
.chart-hero-art, .chart-overview::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart-hero-art { z-index: -2; object-fit: cover; object-position: center; }
.chart-overview::before { content: ''; z-index: -1; background: linear-gradient(90deg,#0b1927eb,#101f2cbf 60%,#102230e3),linear-gradient(0deg,#0d1c29,transparent 65%); }
.chart-wiki .chart-overview > .chart-hero { grid-column: 1; margin: 0; min-width: 0; min-height: 0; padding: clamp(0rem, 2vw, 1.5rem) 0 0; border: 0; border-radius: 0; background: none; box-shadow: none; display: block; }
.chart-wiki .chart-hero h1 { font-size: clamp(2.7rem, 4.7vw, 4.5rem); letter-spacing: -.045em; line-height: 1.03; margin: 0; overflow-wrap: anywhere; }
.chart-hero-subtitle { margin: .75rem 0 0; color: #c7dfec; font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 700; }
.chart-wiki .chart-hero .wiki-desc { max-width: 58ch; color: #cfdee7; margin: .65rem 0 0; line-height: 1.65; font-size: clamp(.98rem, 1.4vw, 1.12rem); }
.chart-live { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin: 1.4rem 0 .85rem; padding: .85rem 1rem; border: 1px solid #947248; border-radius: .7rem; background: #171c22d9; color: #ffcf8b; }
.chart-live div { display: grid; gap: .2rem; }
.chart-live span, .chart-hero-explore > span { font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.chart-live strong { font-size: clamp(.94rem, 1.5vw, 1.2rem); }
.chart-live a { display: inline-flex; align-items: center; gap: .35rem; font-size: .83rem; color: #ffdcac; }
.chart-live .icon, .chart-hero-explore .icon { width: 1em; height: 1em; flex: none; }
.chart-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chart-wiki .chart-actions .wiki-play { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .55rem .8rem; border: 1px solid #547285; border-radius: .55rem; background: #101f2c; color: #e1edf4; font-size: .88rem; }
.chart-wiki .chart-actions .wiki-play:first-child { background: linear-gradient(100deg,#ffce83,#f7aa60); color: #18212a; border-color: #f7aa60; font-weight: 750; }
.chart-hero-explore { display: flex; align-items: flex-start; gap: .6rem 1rem; flex-wrap: wrap; border-top: 1px solid #54728580; margin-top: 1.25rem; padding-top: 1rem; }
.chart-hero-explore > span { padding-top: .55rem; color: #bfd2df; }
.chart-hero-explore > div { display: flex; flex: 1 1 15rem; flex-wrap: wrap; gap: .4rem; }
.chart-hero-explore a { display: inline-flex; align-items: center; gap: .38rem; padding: .4rem .6rem; border: 1px solid #466675; border-radius: 2rem; background: #172d3a; color: #e0eef4; font-size: .8rem; text-decoration: none; }
.chart-hero-explore a:hover { background: #244553; text-decoration: underline; }
.chart-hero :is(.wiki-play,.chart-live a,.chart-hero-explore a):focus-visible { outline: 2px solid #ffcb86; outline-offset: 3px; }
.chart-block > .wiki-kicker { margin-bottom: .25rem; }
.chart-block > p:not(.wiki-kicker), .chart-block > ol, .chart-block > ul, .chart-block > dl { max-width: 72ch; }
.chart-wiki .chart-block > p + p { margin-top: .65rem; }
.chart-block > h2 + .chart-card-grid { margin-top: .85rem; }
.chart-overview-main { display: grid; gap: 1rem; min-width: 0; }
.chart-overview > .chart-snapshot { grid-area: 1 / 2; min-width: 0; margin: 0; }
.chart-snapshot .snapshot-heading > img { width: 48px; height: 48px; }
.chart-snapshot .snapshot-paths { position: relative; gap: 1.5rem; margin-block: .9rem .75rem; }
.chart-snapshot .snapshot-paths::after { content: '&'; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); color: #abc0cf; font-size: .7rem; pointer-events: none; }
.chart-snapshot dt { text-transform: uppercase; letter-spacing: .055em; }
.chart-snapshot .snapshot-paths > a { min-height: 80px; }
.chart-snapshot .snapshot-bottom { margin-top: .9rem; }
.chart-snapshot.wiki-snapshot-featured dl > div { min-height: 39px; padding-block: .45rem; }
@media (min-width: 821px) {
  .chart-wiki .chart-overview > .chart-hero { padding-top: clamp(1.25rem, 4vh, 2.25rem); }
  .chart-snapshot .snapshot-date, .chart-snapshot dt, .chart-snapshot .snapshot-paths span { font-size: .72rem; }
}
.chart-block a .icon { width: 1em; height: 1em; vertical-align: middle; }
.chart-card-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap: .75rem; }
.chart-card-grid a { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .35rem .6rem; align-content: start; background: #101f2c; border: 1px solid #456474; border-radius: .8rem; padding: .85rem; text-decoration: none; }
.chart-card-grid a:hover strong, .chart-card-grid a:focus-visible strong { text-decoration: underline; }
.chart-card-grid a span { grid-column: 1 / -1; color: var(--muted, inherit); font-size: .9rem; }
.chart-card-grid a .icon { grid-column: 2; grid-row: 1; }
.chart-feature { display: grid; grid-template-columns: 1.1fr 1fr; align-items: start; gap: clamp(1rem,3vw,2rem); }
.chart-feature figure { margin: 0; }
.chart-feature img { display: block; width: 100%; height: auto; border-radius: .75rem; }
.chart-feature figcaption { margin-top: .45rem; color: var(--muted, inherit); font-size: .85rem; }
.chart-updates { display: grid; gap: 1rem; list-style: none; padding-left: 0; }
.chart-updates h3, .chart-updates p { margin: 0; }
.chart-codes .gp-codes-heading { margin-bottom: 0; }
.chart-codes .gp-code-jumps { margin-top: .85rem; }
.chart-codes .chart-block { margin: 0; }
.chart-code-counts { color: #abc4d4; font-size: .875rem; }
.chart-reference { width: 100%; border-collapse: collapse; margin-top: 1rem; table-layout: fixed; }
.chart-reference :is(th,td) { border-bottom: 1px solid #304e5c; padding: .65rem .5rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.chart-reference thead { background: #142a38; }
.chart-reference thead th:first-child { width: 36%; }
@media (max-width: 520px) {
  .chart-reference { font-size: .875rem; }
  .chart-reference :is(th,td) { padding: .5rem .35rem; }
}
.chart-code-table { width: 100%; border-collapse: collapse; margin-top: 1rem; table-layout: fixed; }
.chart-code-table th, .chart-code-table td { border-bottom: 1px solid #304e5c; padding: .75rem .5rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.chart-code-table thead { background: #142a38; }
.chart-code-table th:first-child { width: 27%; }
.chart-code-table th:nth-child(2) { width: 23%; }
.chart-code-table th:nth-child(3) { width: 28%; }
.chart-code-table small { display: block; margin-top: .35rem; color: #abc4d4; }
.chart-code-table .gp-copy { display: flex; font-size: .85rem; width: fit-content; margin-top: .5rem; padding: .45rem; min-width: 0; min-height: 44px; }
.chart-code-table .gp-copy .icon { width: 14px; height: 14px; }
.chart-code-badge { display: inline-block; border-radius: .45rem; padding: .2rem .4rem; background: #263d4b; color: #d4e7f2; font-weight: 650; }
.chart-code-reported { background: #214839; color: #c7f7de; }
.chart-code-unverified { background: #4d3b23; color: #ffe1b6; }
@media (max-width: 820px) {
  .chart-overview { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; padding: 1rem; }
  .chart-wiki .chart-hero h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
  .chart-snapshot.wiki-snapshot-featured { padding: .75rem; }
  .chart-snapshot.wiki-snapshot-featured dl > div { flex-wrap: wrap; gap: .25rem .5rem; }
  .chart-snapshot .snapshot-paths { gap: .85rem; }
}
@media (max-width: 640px) {
  .chart-overview { grid-template-columns: minmax(0,1fr); }
  .chart-overview > .chart-snapshot { grid-area: auto / 1; }
  .chart-hero-art { height: 32rem; object-position: center top; }
  .chart-overview::before { background: linear-gradient(180deg,#0b1927be,#0d1c29 32rem); }
  .chart-wiki .chart-hero h1 { font-size: clamp(2rem, 8vw, 3.4rem); }
}
@media (max-width: 520px) {
  .chart-code-table { font-size: .75rem; }
  .chart-code-table th, .chart-code-table td { padding: .5rem .2rem; }
  .chart-code-table th:first-child { width: 29%; }
  .chart-code-table th:nth-child(2) { width: 19%; }
  .chart-code-table th:nth-child(3) { width: 28%; }
  .chart-code-table code { font-size: inherit; white-space: nowrap; }
  .chart-code-table .gp-copy .icon { display: none; }
  .chart-code-badge { padding-inline: .25rem; }
}
.chart-codes .chart-block dt { font-weight: 700; }
.chart-codes .chart-block :is(p, li, dd) { line-height: 1.65; }
.chart-codes .chart-block dd { margin: .3rem 0 1rem; }
@media (max-width: 620px) { .chart-feature { grid-template-columns: minmax(0,1fr); } }
