/* =============================================================================
   /consoles/<console> — the "about the console" page, mobile.
   Layered on guides.css, which supplies the gd-page shell, gd-heading/gd-sub,
   section headings, the gd-top-* game strips and the gd-console-* cards (the
   /consoles hub is built from those, plus .con-hub-meta). This file adds only what the
   price guides don't have: the hero, fact and stat tiles, CTAs, the two
   charts, the specs list, the revisions accordion and the family links.
   Prefixed con- so nothing collides with guides.css. Same NOTE as there: a
   bare star-slash token inside a comment ends it early.
   ========================================================================== */

/* ── Hub: year/type line sits snug above the game count ───────────────────── */
.con-hub-meta {
    padding-bottom: 0;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.con-hero {
    text-align: center;
    padding: 0 2px 16px;
}

.con-hero-art {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    padding: 18px;
    margin-bottom: 14px;
    border: 1px solid var(--v2-cyan-25);
    border-radius: 10px;
    background: var(--v2-bg-0);
    box-shadow: var(--v2-glow);
}

.con-hero-art img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

/* ── Fact tiles: two across ───────────────────────────────────────────────── */
.con-facts {
    display: grid;
    /* minmax(0, 1fr) so a long value wraps inside its tile rather than
       widening the track past the screen. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 16px;
    font-family: 'Electrolize', sans-serif;
}

.con-fact {
    padding: 9px 11px;
    border: 1px solid var(--v2-cyan-25);
    border-radius: 8px;
    background: var(--v2-panel);
}

.con-fact dt {
    font-size: 0.56rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--v2-text-dim);
    margin: 0 0 3px;
}

.con-fact dd {
    font-size: 0.76rem;
    line-height: 1.35;
    color: var(--v2-text);
    margin: 0;
}

/* ── CTAs ─────────────────────────────────────────────────────────────────── */
.con-ctas {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.con-cta-primary {
    display: block;
    width: 100%;
    text-align: center;
}

.con-cta-row {
    display: flex;
    gap: 8px;
}

.con-cta {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 6px;
    border: 1px solid var(--v2-cyan);
    border-radius: 6px;
    font-family: 'Electrolize', sans-serif;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-align: center;
    white-space: nowrap;
    color: var(--v2-cyan);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.con-cta:active {
    background: var(--v2-cyan-10);
}

/* ── About prose ──────────────────────────────────────────────────────────── */
.con-prose p {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.8rem;
    line-height: 1.7;
    letter-spacing: 0.2px;
    color: var(--v2-text-dim);
    margin: 0 0 10px;
}

.con-prose p:last-child {
    margin-bottom: 0;
}

/* ── By the numbers: stat tiles, two across ───────────────────────────────── */
.con-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    font-family: 'Electrolize', sans-serif;
}

.con-stat {
    padding: 11px 12px;
    border: 1px solid var(--v2-cyan-25);
    border-radius: 8px;
    background: var(--v2-panel);
}

.con-stat-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--v2-text);
    line-height: 1.2;
}

.con-stat-val.con-money {
    color: var(--v2-green);
}

.con-stat-label {
    margin-top: 3px;
    font-size: 0.56rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--v2-text-dim);
}

.con-subheading {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--v2-text-dim);
    margin: 18px 0 10px;
}

/* ── Loose price histogram (horizontal bars) ──────────────────────────────── */
.con-hbars {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'Electrolize', sans-serif;
}

.con-hbar-row {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
}

.con-hbar-label {
    color: var(--v2-text);
    text-align: right;
    white-space: nowrap;
}

.con-hbar-track {
    height: 12px;
    border-radius: 3px;
    background: var(--v2-cyan-10);
    overflow: hidden;
}

.con-hbar-fill {
    height: 100%;
    min-width: 2px;
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.55), var(--v2-green));
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.35);
}

.con-hbar-count {
    color: var(--v2-text-dim);
}

/* ── Strip label colors (top rated / most listed) ─────────────────────────── */
.gd-top-value.con-value-cyan    { color: var(--v2-cyan); }
.gd-top-value.con-value-magenta { color: var(--v2-magenta); }

/* ── Games by release year (vertical bars) ────────────────────────────────── */
/* Bars share the width evenly, so a 30-year span still fits a phone with no
   sideways scroll; the label row only carries multiples of five. */
.con-years {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 150px;
    padding: 12px 10px 0;
    border: 1px solid var(--v2-cyan-25);
    border-radius: 10px;
    background: var(--v2-panel);
    font-family: 'Electrolize', sans-serif;
}

.con-year {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.con-year-bar {
    width: 100%;
    max-width: 22px;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(180deg, var(--v2-cyan), rgba(0, 217, 255, 0.35));
}

/* Labels are wider than their column; overflow: visible lets "1990" spread
   over its neighbours, which carry no label of their own. */
.con-year-label {
    height: 20px;
    line-height: 20px;
    font-size: 0.54rem;
    color: var(--v2-text-dim);
    white-space: nowrap;
    overflow: visible;
}

/* ── Hardware specs (and each revision's specs) ───────────────────────────── */
.con-specs {
    margin: 0;
    border: 1px solid var(--v2-cyan-25);
    border-radius: 10px;
    background: var(--v2-panel);
    overflow: hidden;
    font-family: 'Electrolize', sans-serif;
}

.con-spec {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(0, 217, 255, 0.08);
}

.con-spec:last-child {
    border-bottom: none;
}

.con-spec:nth-child(even) {
    background: rgba(0, 217, 255, 0.045);
}

.con-spec dt {
    font-size: 0.56rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--v2-text-dim);
    margin: 0 0 2px;
}

.con-spec dd {
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--v2-text);
    margin: 0;
    overflow-wrap: anywhere;
}

/* ── Models & revisions accordion ─────────────────────────────────────────── */
.con-versions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'Electrolize', sans-serif;
}

.con-version {
    border: 1px solid var(--v2-cyan-25);
    border-radius: 10px;
    background: var(--v2-panel);
}

.con-version summary {
    cursor: pointer;
    padding: 11px 14px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--v2-text);
    -webkit-tap-highlight-color: transparent;
}

.con-version[open] summary {
    color: var(--v2-cyan);
}

.con-version-body {
    padding: 0 12px 12px;
}

.con-version-body p {
    font-size: 0.76rem;
    line-height: 1.6;
    color: var(--v2-text-dim);
    margin: 0 0 10px;
}

/* ── Console family links: side by side ───────────────────────────────────── */
.con-lineage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    font-family: 'Electrolize', sans-serif;
}

.con-lineage a {
    display: block;
    padding: 11px 12px;
    border: 1px solid var(--v2-cyan-25);
    border-radius: 8px;
    background: var(--v2-panel);
    text-decoration: none;
}

.con-lineage-label {
    font-size: 0.56rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--v2-text-dim);
    margin-bottom: 2px;
}

.con-lineage-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--v2-cyan);
}

/* Sibling cards carry no count line, so give the name the bottom padding
   .gd-console-count would otherwise supply. */
.con-sibling-name {
    padding-bottom: 8px;
}

.con-source {
    margin-top: 22px;
}

.con-source a {
    color: var(--v2-cyan);
}

/* ── theme-dark span override ─────────────────────────────────────────────── */
/* style.css forces every span white (.theme-dark span:not(.badge) with
   !important); re-assert the strip label colors the same way guides.css
   does for its own. */
.theme-dark .gd-page .gd-top-value.con-value-cyan    { color: var(--v2-cyan) !important; }
.theme-dark .gd-page .gd-top-value.con-value-magenta { color: var(--v2-magenta) !important; }
