/* ============================================================================
   range.landing.css  -  the product-range landing page (range.cfm)
   ----------------------------------------------------------------------------
   A range is the manufacturer's own product line (DBA 4000 Series, Xtreme
   Performance, ...). The page is hero + optional editorial + the SHARED browse
   block, so this file styles only the parts the brand pages don't already
   provide: everything from .bb-* downwards comes from css/brand.browse.css and
   must not be restyled here, or the two listings start to look like different
   products.

   THE COLOUR IS THE BRAND'S, NOT THE RANGE'S
   ------------------------------------------
   range.cfm sets the same two custom properties brand.cfm does:

       --brand-colour   the brand's primaryColour, or --oct-ink if unset
       --brand-ink      #fff or near-black, whichever reads on that colour

   --brand-ink is computed SERVER-SIDE from relative luminance (see the long
   note in brand.cfm). A range deliberately has no colour of its own: to a
   customer, DBA 4000 Series is DBA. If one ever needs its own, it becomes a
   column on Octane_Product_Ranges and only the inline style changes -- nothing
   here has to move.

   BUILT TO COLLAPSE. Tagline, blurb and hero image are all optional and a
   newly-created range will have none of them. Every block must read as
   deliberate when empty, because empty is the normal state of a range the day
   someone adds it.
============================================================================ */

/* ============================================================================
   THE HERO NOW LIVES IN css/listing.hero.css
   ----------------------------------------------------------------------------
   It was .range-hero here until brand.products.cfm needed the same header, at
   which point one of the two pages was going to end up with a copy. The rules
   moved out under neutral .listing-hero names; range.cfm loads both files.
   What stays here is only what is genuinely specific to a RANGE page: its
   editorial blurb and the strip of sibling ranges.
============================================================================ */

/* ============================================================================
   EDITORIAL
   Admin-authored rich text. Constrained to a readable measure rather than the
   full page width -- the blurb is prose, and prose set across 1200px is not
   read, it is skipped.
============================================================================ */
.range-detail {
    margin: 0 0 var(--oct-space-6);
}
.range-detail-body {
    max-width: var(--oct-measure);
    font-size: var(--oct-text-md);
    line-height: 1.65;
    color: var(--oct-ink-soft);
    text-align: left;
}
.range-detail-body p { margin: 0 0 var(--oct-space-4); }
.range-detail-body p:last-child { margin-bottom: 0; }
.range-detail-body ul,
.range-detail-body ol { margin: 0 0 var(--oct-space-4) var(--oct-space-5); }
.range-detail-body li { margin-bottom: var(--oct-space-2); }
.range-detail-body h2,
.range-detail-body h3 {
    margin: var(--oct-space-5) 0 var(--oct-space-3);
    font-size: var(--oct-h3);
    text-align: left;
}

/* ============================================================================
   THE BRAND'S OTHER RANGES
   Rendered only when there is more than one, so this never shows a strip
   containing the page you are already on.
============================================================================ */
.range-siblings {
    margin: var(--oct-space-7) 0 var(--oct-space-6);
    padding-top: var(--oct-space-6);
    border-top: 1px solid var(--oct-line);
}
.range-siblings > h2 {
    margin: 0 0 var(--oct-space-4);
    font-size: var(--oct-h2);
    text-align: left;
}

.range-sibling-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--oct-grid-min), 1fr));
    gap: var(--oct-space-4);
}

.range-sibling-list a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: var(--oct-space-4);
    background: var(--oct-surface);
    border: 1px solid var(--oct-line);
    border-radius: var(--oct-radius);
    text-decoration: none;
    color: inherit;
    text-align: left;
}
.range-sibling-list a:hover {
    border-color: var(--oct-accent);
    box-shadow: var(--oct-shadow);
}

.range-sibling-name {
    font-size: var(--oct-text-md);
    font-weight: 700;
    color: var(--oct-ink);
}
.range-sibling-tag {
    font-size: var(--oct-text-sm);
    line-height: 1.5;
    color: var(--oct-ink-mute);
}
.range-sibling-count {
    margin-top: auto;
    padding-top: var(--oct-space-2);
    font-size: var(--oct-text-xs);
    color: var(--oct-ink-faint);
}
