/* Coin Price Guide components. System UI typography and flat surfaces. */
.cpg { --_rule: var(--cpg-rule, #33415B); --_bg: var(--cpg-bg, #0A1020); --_surface: var(--cpg-surface, #111A2D); --_surface2: var(--cpg-surface-2, #1A2540); --_line: var(--cpg-line, #56749F); --_line2: var(--cpg-line-strong, #7D95BF); --_text: var(--cpg-text, #F0F4FA); --_muted: var(--cpg-muted, #B6C4DA); --_dim: var(--cpg-dim, #93A3BE); --_accent: var(--cpg-accent, #7CC4FF); --_accent2: var(--cpg-accent-2, #D6DFEC); --_warn: var(--cpg-warn, #FFC46B); --_danger: var(--cpg-danger, #FF8A9F); --_accent-rgb: var(--cpg-accent-rgb, 124, 196, 255); --_ui: var(--cpg-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif); --_mono: var(--_ui); --_r: var(--cpg-radius, 6px); --_rs: var(--cpg-radius-sm, 4px); --_head-h: var(--cpg-header-h, 64px); --_thead-h: 56px; color: var(--_text); font-family: var(--_ui); font-size: 18px; line-height: 1.65; }
.cpg *, .cpg *::before, .cpg *::after { box-sizing: border-box; }
.cpg a { color: inherit; text-decoration: none; }
.cpg a:focus-visible, .cpg button:focus-visible, .cpg select:focus-visible, .cpg input:focus-visible, .cpg [tabindex]:focus-visible, .cpg th[role=button]:focus-visible { outline: 3px solid var(--_accent); outline-offset: 2px; border-radius: var(--_rs); }
.cpg-mono { font-family: var(--_mono); font-variant-numeric: tabular-nums lining-nums; }
.cpg-dim { color: var(--_dim); }
.cpg-eyebrow { display: block; font-family: var(--_ui); font-size: 14px; line-height: 1.4; letter-spacing: normal; text-transform: none; color: var(--_muted); }
.cpg-note { font-size: 16px; line-height: 1.5; margin: 16px 0 0; max-width: 68ch; }
.cpg-empty { color: var(--_muted); font-size: 16px; margin: 0; }
.cpg-explain { margin: 0; padding: 0 28px 20px; font-size: 18px; line-height: 1.6; color: var(--_muted); max-width: 68ch; }
.cpg-panel { position: relative; background: var(--_surface); border: 1px solid var(--_rule); border-radius: var(--_r); padding: 28px; }
.cpg-panel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.cpg-panel__title { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.25; }
.cpg-panel__title .cpg-eyebrow { margin-bottom: 8px; }
.cpg-panel__text { margin: 0; font-size: 18px; line-height: 1.6; color: var(--_muted); max-width: 68ch; }
.cpg-panel > .cpg-panel__title { margin-bottom: 16px; }
.cpg-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cpg-stat { background: var(--_surface); border: 1px solid var(--_rule); border-radius: var(--_r); padding: 28px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.cpg-stat__value { font-family: var(--_mono); font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.1; letter-spacing: normal; font-variant-numeric: tabular-nums lining-nums; }
.cpg-stat__hint { font-size: 16px; line-height: 1.5; color: var(--_muted); }
.cpg-search { position: relative; max-width: 720px; }
.cpg-search__label { display: block; margin-bottom: 10px; }
.cpg-search__field { display: flex; align-items: center; gap: 12px; background: var(--_surface2); border: 1px solid var(--_line2); border-radius: var(--_r); padding: 0 16px; min-height: 56px; transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out; }
.cpg-search__field:focus-within { border-color: var(--_accent); }
.cpg-search__input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--_text); font: 500 18px/1.4 var(--_ui); padding: 16px 0; min-width: 0; }
.cpg-search__input::placeholder { color: var(--_dim); }
.cpg-search__kbd { font-family: var(--_ui); font-size: 14px; color: var(--_muted); border: 1px solid var(--_rule); border-radius: var(--_rs); padding: 4px 8px; }
.cpg-search__results { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 8px 0 0; padding: 8px; list-style: none; background: var(--_surface); border: 1px solid var(--_rule); border-radius: var(--_r); max-height: 60vh; overflow: auto; }
.cpg-search__results li a { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 12px 16px; border-radius: var(--_rs); min-height: 56px; align-content: center; }
.cpg-search__results li a:hover, .cpg-search__results li.is-active a { background: var(--_surface2); }
.cpg-search__name { font-weight: 600; font-size: 17px; line-height: 1.4; }
.cpg-search__meta { grid-column: 1; font-size: 16px; line-height: 1.4; color: var(--_muted); }
.cpg-search__range { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 17px; color: var(--_accent); white-space: nowrap; }
.cpg-search__range .cpg-search__rangelabel { display: block; font-size: 14px; letter-spacing: normal; text-transform: none; color: var(--_muted); }
.cpg-search__range--flag { color: var(--_warn); }
.cpg-search__empty { padding: 16px; color: var(--_muted); font-size: 16px; }
.cpg-countries, .cpg-denoms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cpg-card { display: flex; flex-direction: column; gap: 14px; min-height: 44px; background: var(--_surface); border: 1px solid var(--_rule); border-radius: var(--_r); padding: 28px; position: relative; overflow: hidden; transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out; }
.cpg-card:hover, .cpg-card:focus-visible { border-color: var(--_accent); }
.cpg-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cpg-card__title { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: normal; }
.cpg-card__blurb { margin: 0; color: var(--_muted); font-size: 18px; line-height: 1.55; }
.cpg-card__meta { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--_rule); display: grid; grid-template-columns: repeat(3, auto); gap: 16px; }
.cpg-card__meta div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cpg-card__meta dt { font-family: var(--_ui); font-size: 14px; line-height: 1.3; letter-spacing: normal; text-transform: none; color: var(--_muted); }
.cpg-card__meta dd { margin: 0; font-family: var(--_ui); font-size: 17px; line-height: 1.3; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.cpg-card--denom .cpg-card__meta { grid-template-columns: auto 1fr; }
.cpg-card__intro { display: flex; align-items: center; gap: 14px; }
.cpg-card__heading { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cpg-card__visual { flex: 0 0 112px; }
.cpg-card__photo, .cpg-card__visual .cpg-coin { display: block; width: 112px; height: 112px; border-radius: 50%; border: 1px solid var(--_rule); }
.cpg-card__visual .cpg-coin { overflow: hidden; }
.cpg-card__photo { object-fit: cover; background: var(--_surface2); }
.cpg-card__visual .cpg-coin__face { padding: 8px; text-align: center; }
.cpg-card__visual .cpg-coin .cpg-coin__date { font-size: 18px; line-height: 1.15; letter-spacing: normal; }
.cpg-card__foot { font-size: 16px; color: var(--_muted); }
.cpg-movers__list { list-style: none; margin: 0; padding: 0; }
.cpg-movers__item { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 20px; align-items: center; min-height: 56px; padding: 12px 0; border-top: 1px solid var(--_rule); }
.cpg-movers__item:first-child { border-top: 0; }
.cpg-movers__coin { display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 44px; justify-content: center; }
.cpg-movers__coin:hover .cpg-movers__name { color: var(--_accent); text-decoration: underline; }
.cpg-movers__name { font-weight: 600; font-size: 17px; line-height: 1.35; }
.cpg-movers__coin .cpg-mono { font-size: 16px; color: var(--_muted); }
.cpg-movers__vals { font-size: 17px; white-space: nowrap; }
.cpg-delta { display: inline-block; font-family: var(--_mono); font-size: 14px; line-height: 1.3; padding: 4px 8px; border-radius: var(--_rs); border: 1px solid currentColor; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.cpg-delta--up { color: var(--_accent); background: rgba(var(--_accent-rgb), .10); }
.cpg-delta--down { color: var(--_danger); background: transparent; }
.cpg-delta--up::before { content: "\2191 "; }
.cpg-delta--down::before { content: "\2193 "; }
.cpg-view { display: flex; flex-direction: column; gap: 32px; padding: 24px 0 72px; }
.cpg-view__head { display: flex; flex-direction: column; gap: 10px; }
.cpg-view__title { margin: 0; font-size: clamp(34px, 4vw, 52px); font-weight: 700; letter-spacing: normal; line-height: 1.1; }
.cpg-view__lede { margin: 0; color: var(--_muted); font-size: 20px; line-height: 1.6; max-width: 68ch; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cpg-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; font-family: var(--_ui); font-size: 16px; color: var(--_muted); }
.cpg-crumbs a, .cpg-crumbs > span[aria-current] { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.cpg-crumbs a { text-decoration: underline; text-decoration-color: var(--_line2); text-underline-offset: 4px; }
.cpg-crumbs a:hover, .cpg-crumbs a:focus-visible { color: var(--_accent); text-decoration-color: var(--_accent); }
.cpg-crumbs > span[aria-current] { color: var(--_text); font-weight: 600; }
.cpg-crumbs__sep { display: inline-flex; align-items: center; min-height: 44px; color: var(--_line2); }
.cpg-backlink { margin: 0; }
.cpg-backlink a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; font-size: 17px; font-weight: 600; border: 1px solid var(--_line); border-radius: var(--_r); background: var(--_surface); }
.cpg-backlink a:hover, .cpg-backlink a:focus-visible { border-color: var(--_accent); color: var(--_accent); }
.cpg-pill { display: inline-block; font-family: var(--_ui); font-size: 16px; line-height: 1.3; letter-spacing: normal; padding: 5px 10px; border-radius: var(--_rs); border: 1px solid; white-space: nowrap; }
.cpg-pill--ok { color: var(--_accent); border-color: rgba(var(--_accent-rgb), .55); }
.cpg-pill--muted { color: var(--_muted); border-color: var(--_rule); }
.cpg-pill--warn { color: var(--_warn); border-color: currentColor; }
.cpg-notice { background: var(--_surface); border: 1px solid var(--_rule); border-left: 4px solid var(--_accent2); border-radius: var(--_r); padding: 20px 24px; font-size: 18px; line-height: 1.6; color: var(--_muted); max-width: 68ch; }
.cpg-notice--warn { border-left-color: var(--_warn); }
.cpg-notice strong { color: var(--_text); }
.cpg-jump { display: flex; flex-direction: column; gap: 12px; }
.cpg-jump__list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.cpg-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; font-size: 17px; font-weight: 600; line-height: 1.2; border: 1px solid var(--_line); border-radius: 999px; background: var(--_surface); transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out; }
.cpg-chip:hover, .cpg-chip:focus-visible { border-color: var(--_accent); color: var(--_accent); background: var(--_surface2); }
.cpg-chip__n { font-size: 14px; color: var(--_muted); padding-left: 10px; border-left: 1px solid var(--_line); }
.cpg-chip[hidden] { display: none; }
.cpg-table-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.cpg-filter { display: flex; align-items: center; gap: 10px; min-height: 56px; background: var(--_surface2); border: 1px solid var(--_line2); border-radius: var(--_r); padding: 0 16px; flex: 1 1 300px; max-width: 440px; }
.cpg-filter:focus-within { border-color: var(--_accent); }
.cpg-filter input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--_text); font: 17px/1.4 var(--_ui); padding: 14px 0; min-width: 0; }
.cpg-filter input::placeholder { color: var(--_dim); }
.cpg-select { min-height: 44px; background: var(--_surface2); color: var(--_text); border: 1px solid var(--_line2); border-radius: var(--_r); padding: 0 16px; font: 17px/1.4 var(--_ui); }
.cpg-select--lg { min-height: 44px; }
.cpg-rowcount { margin: 0; font-family: var(--_ui); font-size: 16px; color: var(--_muted); }
.cpg-tablezone { position: relative; display: flex; flex-direction: column; gap: 10px; }
.cpg-tablezone[hidden] { display: none; }
.cpg-tablezone__frame { position: relative; }
@media (min-width: 1320px) {
  .cpg-tablezone--wide { margin-inline: -60px; }
}
@media (min-width: 1480px) {
  .cpg-tablezone--wide { margin-inline: -140px; }
}
.cpg-tablezone__frame::before, .cpg-tablezone__frame::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 5; pointer-events: none; opacity: 0; transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out; }
.cpg-tablezone__frame::before { left: 0; background: linear-gradient(90deg, var(--_bg), transparent); }
.cpg-tablezone__frame::after { right: 0; background: linear-gradient(270deg, var(--_bg), transparent); }
.cpg-tablezone.is-scrollable-left .cpg-tablezone__frame::before { opacity: .95; }
.cpg-tablezone.is-scrollable-right .cpg-tablezone__frame::after { opacity: .95; }
.cpg-tablezone--grid.is-scrollable-left .cpg-tablezone__frame::before { opacity: 0; }
.cpg-scrollhint { display: none; margin: 0; align-items: center; gap: 10px; font-size: 16px; line-height: 1.4; color: var(--_muted); }
.cpg-scrollhint::before { content: "↔"; font-family: var(--_ui); font-size: 17px; color: var(--_accent); }
.cpg-table-wrap { overflow-x: auto; border: 1px solid var(--_rule); border-radius: var(--_r); background: var(--_surface); -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--_line2) var(--_surface2); }
.cpg-table-wrap.is-fitted { overflow: clip; }
.cpg-table-wrap::-webkit-scrollbar { height: 14px; }
.cpg-table-wrap::-webkit-scrollbar-track { background: var(--_surface2); border-top: 1px solid var(--_line); }
.cpg-table-wrap::-webkit-scrollbar-thumb { background: var(--_line2); border-radius: 999px; border: 3px solid var(--_surface2); }
.cpg-table-wrap::-webkit-scrollbar-thumb:hover { background: var(--_accent); }
.cpg-table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.4; }
.cpg-table th, .cpg-table td { padding: 16px 20px; height: 56px; text-align: left; border-bottom: 1px solid var(--_rule); white-space: nowrap; vertical-align: middle; }
.cpg-table thead th { position: sticky; top: 0; z-index: 3; height: var(--_thead-h); background: var(--_surface2); font-family: var(--_ui); font-size: 14px; line-height: 1.3; letter-spacing: normal; text-transform: none; color: var(--_muted); font-weight: 500; border-bottom: 1px solid var(--_line2); }
.cpg-table th[data-sort] { cursor: pointer; user-select: none; }
.cpg-table th[data-sort]:hover { color: var(--_text); background: var(--_surface); }
.cpg-table th[aria-sort=ascending]::after { content: " ↑"; color: var(--_accent); }
.cpg-table th[aria-sort=descending]::after { content: " ↓"; color: var(--_accent); }
.cpg-table tbody tr:not(.cpg-group__row):hover { background: rgba(var(--_accent-rgb), .10); }
.cpg-table tbody:last-child tr:last-child td { border-bottom: 0; }
.cpg-num { text-align: right !important; }
.cpg-table__link { font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.cpg-table__link:hover, .cpg-table__link:focus-visible { color: var(--_accent); text-decoration-color: currentColor; }
.cpg-table td.cpg-table__namecell { white-space: normal; min-width: 20ch; max-width: 30ch; }
.cpg-table__namecell .cpg-pill, .cpg-table__namecell .cpg-desigs { margin-left: 12px; }
.cpg-desigs { font-size: 14px; color: var(--_muted); letter-spacing: normal; border: 1px solid var(--_rule); border-radius: var(--_rs); padding: 2px 6px; }
.cpg-col-status { text-align: right !important; }
.cpg-col-status .cpg-pill { font-size: 14px; }
.cpg-group__row { scroll-margin-top: calc(var(--_head-h) + var(--_thead-h) + 12px); }
.cpg-group__cell { position: sticky; top: var(--_thead-h); z-index: 2; background: var(--_surface2); border-top: 1px solid var(--_rule); border-bottom: 2px solid var(--_accent); padding: 14px 20px; height: auto; white-space: normal; scroll-margin-top: calc(var(--_head-h) + var(--_thead-h) + 12px); }
.cpg-group__name, .cpg-group__meta { position: sticky; left: 20px; width: fit-content; max-width: min(100%, 64ch); }
.cpg-group__name { display: block; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--_text); }
.cpg-group__meta { display: block; margin-top: 4px; font-size: 16px; line-height: 1.4; color: var(--_muted); letter-spacing: normal; white-space: normal; }
.cpg-group[hidden] { display: none; }
.cpg-table-wrap.is-fitted .cpg-table thead th { top: var(--_head-h); }
.cpg-table-wrap.is-fitted .cpg-group__cell { top: calc(var(--_head-h) + var(--_thead-h)); }
.cpg-coin__head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.cpg-coin__mint { font-family: var(--_ui); font-size: 16px; color: var(--_accent); vertical-align: middle; border: 1px solid rgba(var(--_accent-rgb), .55); border-radius: var(--_rs); padding: 4px 10px; margin-left: 12px; }
.cpg-coin__range { display: flex; flex-direction: column; gap: 8px; min-width: 280px; padding: 24px 28px; }
.cpg-coin__range-val { font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.1; letter-spacing: normal; }
.cpg-grid-panel { padding: 0; overflow: hidden; }
.cpg-grid-panel__head { padding: 28px 28px 0; }
.cpg-grid-panel .cpg-note { padding: 0 28px 24px; margin-top: 16px; }
.cpg-tabs { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--_line2); border-radius: var(--_r); padding: 4px; gap: 4px; background: var(--_bg); }
.cpg-tab { display: inline-flex; align-items: center; min-height: 44px; background: transparent; border: 1px solid transparent; color: var(--_muted); font: 600 17px/1.2 var(--_ui); padding: 0 18px; border-radius: var(--_rs); cursor: pointer; white-space: nowrap; transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out; }
.cpg-tab:hover:not(:disabled) { color: var(--_text); background: var(--_surface); }
.cpg-tab[aria-selected=true] { background: var(--_surface2); color: var(--_accent); font-weight: 700; border-width: 2px; border-color: currentColor; padding: 0 16px; }
.cpg-tab:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.cpg-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 20px 28px; border-top: 1px solid var(--_rule); border-bottom: 1px solid var(--_rule); background: rgba(var(--_accent-rgb), .06); }
.cpg-picker__out { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.cpg-picker__out .cpg-eyebrow { display: inline; }
.cpg-picker__item { display: inline-flex; align-items: center; gap: 8px; }
.cpg-picker__item strong { font-size: 22px; color: var(--_accent); }
.cpg-grid { border: 0; border-radius: 0; }
.cpg-table--grid th.cpg-grid__desig, .cpg-table--grid td.cpg-grid__desig { position: sticky; left: 0; background: var(--_surface); z-index: 2; min-width: 210px; border-right: 1px solid var(--_rule); }
.cpg-table--grid thead th.cpg-grid__desig { z-index: 4; background: var(--_surface2); }
.cpg-table--grid tbody th { font-weight: 500; white-space: nowrap; }
.cpg-table--grid tbody tr:hover th.cpg-grid__desig { background: var(--_surface2); }
.cpg-grid__desig-name { font-size: 16px; color: var(--_muted); }
.cpg-desig { display: inline-block; font-family: var(--_mono); font-size: 14px; line-height: 1.3; font-weight: 700; padding: 4px 8px; border: 1px solid currentColor; border-radius: var(--_rs); letter-spacing: normal; }
.cpg-desig--reg { color: var(--_accent2); }
.cpg-desig--bn { color: var(--_muted); }
.cpg-desig--rb { color: var(--_warn); }
.cpg-desig--rd { color: var(--_danger); }
.cpg-table--grid td { transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out; }
.cpg-table--grid td.is-picked { background: rgba(var(--_accent-rgb), .16); color: var(--_accent); font-weight: 700; }
.cpg-table--grid td .cpg-delta { margin-left: 8px; }
.cpg-coin__aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.cpg-spec { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.cpg-spec div { display: flex; flex-direction: column; gap: 4px; }
.cpg-spec dt { font-family: var(--_ui); font-size: 14px; line-height: 1.3; letter-spacing: normal; text-transform: none; color: var(--_muted); }
.cpg-spec dd { margin: 0; font-size: 17px; line-height: 1.4; }
.cpg-pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: stretch; gap: 16px; }
.cpg-pager__link { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 72px; padding: 16px 20px; border: 1px solid var(--_rule); border-radius: var(--_r); background: var(--_surface); font-weight: 600; font-size: 17px; flex: 1 1 200px; max-width: 32%; transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out; }
.cpg-pager__link:hover, .cpg-pager__link:focus-visible { border-color: var(--_accent); color: var(--_accent); }
.cpg-pager__link--next { text-align: right; margin-left: auto; }
.cpg-pager__link--up { text-align: center; }
.cpg-featured { display: flex; align-items: center; gap: 18px; padding: 16px; margin: 4px 0 6px; border: 1px solid var(--_rule); border-radius: var(--_r); }
.cpg-featured > .cpg-photo { flex: 0 0 auto; }
.cpg-featured .cpg-photo__img, .cpg-featured > .cpg-coin { width: 120px; height: 120px; }
.cpg-featured .cpg-coin__date { font-size: 26px; }
.cpg-featured .cpg-coin__denom { font-size: 18px; }
.cpg-featured__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cpg-featured__nick { font-weight: 600; font-size: 17px; line-height: 1.35; }
.cpg-featured__val { font-size: 16px; color: var(--_accent); }
.cpg-coin { position: relative; flex: 0 0 auto; width: 76px; height: 76px; border-radius: 50%; }
.cpg-coin__face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8%; text-align: center; overflow-wrap: anywhere; color: var(--_ink); font-family: var(--_ui); font-weight: 700; }
.cpg-coin__date { font-size: 17px; letter-spacing: normal; line-height: 1; }
.cpg-coin__denom { font-size: 14px; letter-spacing: normal; line-height: 1; }
.cpg-photo { display: flex; gap: 20px; align-items: flex-start; }
.cpg-photo__side { flex: 0 0 auto; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cpg-photo__img { display: block; width: 76px; height: 76px; object-fit: cover; border-radius: 50%; background: var(--_surface2); }
.cpg-coin__head { --_detail-size: 240px; --_pair-gap: 24px; }
.cpg-photo--lg { flex-wrap: nowrap; gap: var(--_pair-gap, 24px); }
.cpg-photo--lg .cpg-photo__img, .cpg-coin--lg { width: var(--_detail-size, 240px); height: var(--_detail-size, 240px); max-width: none; }
.cpg-photo--sm .cpg-photo__img, .cpg-coin--sm { width: 52px; height: 52px; }
.cpg-coin--sm .cpg-coin__date, .cpg-coin--sm .cpg-coin__denom { font-size: 14px; letter-spacing: normal; }
.cpg-coin--lg .cpg-coin__date { font-size: 44px; }
.cpg-coin--lg .cpg-coin__denom { font-size: 20px; }
.cpg-coin__visual { display: flex; flex-direction: column; align-items: flex-start; }
.cpg-coin__head { align-items: flex-start; }
.cpg-coin__intro { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.cpg-table__date { display: flex; align-items: center; gap: 12px; }
.cpg-table__date .cpg-table__link { min-width: 0; overflow-wrap: anywhere; }
.cpg-thumb { flex: 0 0 auto; width: 52px; height: 52px; object-fit: cover; border-radius: 50%; vertical-align: middle; }
.cpg-photo__side figcaption { margin: 0; }
.cpg-photo__credit { display: block; margin-top: 0; font-family: var(--_ui); font-size: 14px; line-height: 1.5; color: var(--_muted); max-width: 68ch; overflow-wrap: anywhere; }
.cpg-photo__credit p { margin: 0; font: inherit; }
.cpg-photo__credit p + p { margin-top: .4em; }
.cpg-photo__credit a { display: inline; min-height: 0; padding-block: 2px; line-height: inherit; color: var(--_muted); text-decoration: underline; text-decoration-color: var(--_line2); }
@media (max-width: 900px) {
  .cpg-table--grouped thead th:first-child, .cpg-table--grouped td.cpg-table__namecell { position: sticky; left: 0; background: var(--_surface); z-index: 1; border-right: 1px solid var(--_rule); }
  .cpg-table--grouped thead th:first-child { background: var(--_surface2); z-index: 4; }
  .cpg-table--grouped td.cpg-table__namecell { min-width: 15ch; max-width: 20ch; }
  .cpg-tablezone--wide.is-scrollable-left .cpg-tablezone__frame::before { opacity: 0; }
  .cpg-stats { grid-template-columns: repeat(2, 1fr); }
  .cpg-countries, .cpg-denoms { grid-template-columns: 1fr 1fr; }
  .cpg-coin__aside { grid-template-columns: 1fr; }
  .cpg-scrollhint:not([hidden]) { display: flex; }
  .cpg-panel, .cpg-stat, .cpg-card { padding: 20px; }
  .cpg-grid-panel__head { padding: 20px 20px 0; }
  .cpg-explain, .cpg-grid-panel .cpg-note { padding-left: 20px; padding-right: 20px; }
  .cpg-picker { padding: 20px; }
  .cpg-view { gap: 28px; padding-bottom: 48px; }
}
@media (max-width: 700px) {
  .cpg-card__visual { flex-basis: 96px; }
  .cpg-card__photo, .cpg-card__visual .cpg-coin { width: 96px; height: 96px; }
  .cpg-card__visual .cpg-coin .cpg-coin__date { font-size: 16px; }
  .cpg-coin__head { --_detail-size: min(160px, calc((100vw - 32px - 16px) / 2)); --_pair-gap: 16px; }
  .cpg-coin--lg .cpg-coin__date { font-size: 28px; }
  .cpg-coin--lg .cpg-coin__denom { font-size: 14px; }
  .cpg-photo--sm .cpg-photo__img, .cpg-coin--sm, .cpg-thumb { width: 44px; height: 44px; }
  .cpg-table--grouped td.cpg-table__namecell { padding-inline: 12px; }
  .cpg-table__date { gap: 8px; }
  .cpg-featured { flex-wrap: wrap; }
  .cpg-featured__text { flex: 1 1 120px; }
  .cpg-featured .cpg-photo__img, .cpg-featured > .cpg-coin { width: 96px; height: 96px; }
  .cpg-featured .cpg-coin__date { font-size: 22px; }
  .cpg-featured .cpg-coin__denom { font-size: 16px; }
}
@media (max-width: 600px) {
  .cpg-countries, .cpg-denoms { grid-template-columns: 1fr; }
  .cpg-movers__item { grid-template-columns: 1fr auto; }
  .cpg-movers__vals { grid-column: 1; }
  .cpg-coin__range { min-width: 0; width: 100%; }
  .cpg-spec { grid-template-columns: 1fr; }
  .cpg-search__results li a { grid-template-columns: 1fr; }
  .cpg-search__range { grid-column: 1; grid-row: auto; }
  .cpg-search__range .cpg-search__rangelabel { display: inline; }
  .cpg-search__kbd { display: none; }
  .cpg-table th, .cpg-table td { padding: 14px 16px; }
  .cpg-group__cell { padding: 12px 16px; }
  .cpg-group__name, .cpg-group__meta { left: 16px; }
  .cpg-card__meta { grid-template-columns: 1fr 1fr; }
  .cpg-pager__link { max-width: none; flex: 1 1 100%; text-align: left; }
  .cpg-pager__link--next { text-align: left; }
  .cpg-table--grid th.cpg-grid__desig, .cpg-table--grid td.cpg-grid__desig { min-width: 0; max-width: 136px; white-space: normal; }
  .cpg-table--grid th.cpg-grid__desig .cpg-pill { margin: 6px 0 0; }
  .cpg-table--grid th, .cpg-table--grid td { padding: 14px 12px; }
  .cpg-tabs { display: flex; width: 100%; }
  .cpg-tab { flex: 1 1 auto; justify-content: center; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cpg *, .cpg *::before, .cpg *::after { transition: none !important; animation: none !important; }
  .cpg { scroll-behavior: auto; }
}
.cpg-jump__box { border: 0; padding: 0; margin: 0; }
.cpg-jump__label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; }
.cpg-jump__label::-webkit-details-marker { display: none; }
.cpg-jump__count { font-size: 14px; color: var(--_muted); border: 1px solid var(--_rule); border-radius: 999px; padding: 2px 10px; }
@media (max-width: 700px) {
  .cpg-jump__label::after { content: "Show"; margin-left: auto; font-family: var(--_ui); font-size: 14px; color: var(--_accent); }
  .cpg-jump__box[open] .cpg-jump__label::after { content: "Hide"; }
  .cpg-jump__box:not([open]) + * { margin-top: 0; }
}
@media (min-width: 701px) {
  .cpg-jump__label { cursor: default; pointer-events: none; }
  .cpg-jump__count { display: none; }
}
.cpg-search__rangelabel, .cpg-search__range--flag { font-family: var(--_ui); }
.cpg-table th.cpg-num { font-family: var(--_mono); }
.cpg-coin__intro { flex-basis: 100%; }
.cpg-coin__visual { flex: 1 0 calc(2 * var(--_detail-size) + var(--_pair-gap)); min-width: 0; max-width: 100%; }
.cpg-coin__range { min-width: 0; max-width: 100%; }
.cpg-coin__range-val { overflow-wrap: anywhere; }
.cpg-coin__intro .cpg-notice { margin: 0; }
.cpg-select--lg { font-family: var(--_mono); }
/* Flat components preserve the existing grids and image dimensions. */
.cpg { font-variant-numeric: tabular-nums lining-nums; }
.cpg a:hover, .cpg a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.cpg-view__title { background-image: none; color: var(--_text); font-size: clamp(30px, 3vw, 40px); line-height: 1.2; }
.cpg h2 { font-size: 26px; }
.cpg h3, .cpg-card__title { font-size: 20px; }
:root[data-theme="dark"] .cpg :is(h1,h2,h3,h4) { color: #D6DFEC; }
.cpg-search__field, .cpg-filter, .cpg-select { background: var(--_surface); }
.cpg-search__field:focus-within, .cpg-filter:focus-within { outline: 3px solid var(--_accent); outline-offset: 2px; }
.cpg-search__input:focus-visible, .cpg-filter input:focus-visible { outline: none; }
.cpg-search__kbd { border: 0; padding: 0; }
.cpg-card { padding: 20px; gap: 12px; }
.cpg-card:hover, .cpg-card:focus-visible, .cpg-pager__link:hover, .cpg-pager__link:focus-visible { background: var(--_surface2); border-color: var(--_rule); }
.cpg-card__meta { border: 0; }
.cpg-card--denom { display: grid; grid-template-rows: 1fr auto; }
.cpg-card--denom .cpg-card__intro { align-self: start; }
.cpg-card--denom .cpg-card__bottom { align-self: end; }
.cpg-card--denom .cpg-card__foot { min-height: 24px; margin-top: 12px; }
.cpg-featured { background: none; border: 0; padding: 0; gap: 12px; }
.cpg-featured__nick, .cpg-featured__val { font-size: 16px; }
.cpg-featured__val, .cpg-coin__mint, .cpg-pill--ok { color: var(--_muted); }
.cpg-coin { background: var(--_surface2); border: 1px solid var(--_rule); }
.cpg-coin__face { color: var(--_text); }
.cpg-photo__img, .cpg-thumb { border: 1px solid var(--_rule); }
.cpg-table thead th, .cpg-table--grid thead th.cpg-grid__desig, .cpg-table--grouped thead th:first-child { background: var(--_surface); color: var(--_text); border-bottom: 1px solid var(--_rule); }
.cpg-group__cell { background: var(--_surface2); border-bottom: 1px solid var(--_rule); }
.cpg-table tbody tr:not(.cpg-group__row):hover, .cpg-table tbody tr:not(.cpg-group__row):focus-within, .cpg-table tbody tr:hover > .cpg-table__namecell, .cpg-table tbody tr:focus-within > .cpg-table__namecell, .cpg-table tbody tr:hover > .cpg-grid__desig, .cpg-table tbody tr:focus-within > .cpg-grid__desig { background: var(--_surface2); }
.cpg-table tbody tr { transition: background-color 150ms ease-out; }
.cpg-tabs { background: var(--_surface); }
.cpg-tab:hover:not(:disabled) { background: var(--_surface2); }
.cpg-tab[aria-selected=true] { background: var(--_surface2); color: var(--_accent); border: 1px solid transparent; border-bottom: 2px solid var(--_accent); padding-inline: 18px; }
.cpg-picker { background: var(--_surface); }
.cpg-table--grid td.is-picked { background: var(--_surface2); outline: 2px solid var(--_accent); outline-offset: -2px; }
.cpg-table__link { display: flex; align-items: center; min-height: 44px; }
.cpg-scrollhint::before, .cpg-delta--up { color: var(--_muted); }
.cpg-delta--up { background: none; }
.cpg-coin__mint, .cpg-pill--ok { border-color: var(--_rule); }
.cpg-photo__credit a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
.cpg-card__cue { color: var(--_accent); font-size: 16px; margin-top: auto; }
