/* =========================================================
   Gallery page intro band — .gp-* (gallery.php)

   The page's only page-specific layer: the lead copy and the
   live build / photo counts that sit between the hero and the
   three family photo walls. The walls themselves are the model
   pages' own component (includes/model-gallery.php +
   models-gallery.css) — nothing in this file reaches into
   them, so the wall on /gallery is byte-for-byte the wall on
   /classic.

   MEASURE: .s-model-gallery's, not the footer's. The walls cap
   at 90rem and gutter at 1.25rem (models-gallery.css); the
   intro reproduces both so its first character lands on the
   same x as the "Classic Gallery" heading's rod below it.
   ========================================================= */

.gp-intro {
    max-width: 90rem; /* == .s-model-gallery */
    margin: 0 auto;
    padding: clamp(2.75rem, 6vw, 4.5rem) 1.25rem clamp(1.75rem, 3.5vw, 2.75rem);

    /* Steel accent — deliberately the same value as .s-model-gallery's
       --mg-accent (and, like it, deliberately not the brand red, which is the
       CTA colour on this page's neighbours). Keep the two in step. */
    --gp-accent: #9db2c7;
}

/* Opening line: one size up from body copy, short measure. Restated against
   the global `p` in m072224.css (1.1rem / 2rem line-height / .05rem tracking),
   the same way .page-hero__lead has to be. */
.gp-intro__lead {
    max-width: 62ch;
    margin: 0;

    color: var(--theme-text-strong, #ffffff);
    font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
    font-weight: 300;
    line-height: 1.55;
    letter-spacing: 0.01em;
    text-wrap: pretty;
}

.gp-intro__body {
    max-width: 68ch;
    margin: 1.1rem 0 0;

    color: var(--c3);
    font-size: clamp(0.9rem, 0.85rem + 0.3vw, 1.02rem);
    line-height: 1.65;
    letter-spacing: 0.01em;
    text-wrap: pretty;
}

/* Inline links: underlined on the offset so the rule clears the descenders,
   brightening to the accent on hover — the .pg-prose a treatment
   (page-sections.css) in this file's palette. */
.gp-intro__body a {
    color: var(--theme-text-strong, #ffffff);
    text-decoration: underline;
    text-decoration-color: rgba(157, 178, 199, 0.45);
    text-underline-offset: 0.22em;
    transition:
        color 0.16s ease,
        text-decoration-color 0.16s ease;
}

.gp-intro__body a:hover,
.gp-intro__body a:focus-visible {
    color: var(--gp-accent);
    text-decoration-color: var(--gp-accent);
}

/* ---- Counts ----
   Every figure is counted off the same data the walls render from
   (tv_family_gallery), so the row can never drift from what is on the page.
   Cells divide by hairline rules rather than boxes — the walls below are
   already panels, and a second panel here would read as a competing card. */
.gp-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 2.4rem;
    margin: clamp(1.5rem, 3vw, 2.1rem) 0 0;
    padding: 0;
    list-style: none;
}

.gp-stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-left: 1.15rem;

    /* The divider rides the cell's own left edge rather than a `+` selector,
       so a cell that wraps onto a second row keeps its rule and the column
       still reads as a column. */
    border-left: 1px solid var(--theme-surface-white-05, rgba(255, 255, 255, 0.05));
}

.gp-stat__n {
    color: var(--gp-accent);
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.gp-stat__label {
    color: var(--theme-text-soft, #989ba3);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

@media only screen and (max-width: 700px) {
    .gp-stats {
        gap: 0.9rem 1.5rem;
    }

    .gp-stat {
        padding-left: 0.9rem;
    }
}
