/**
 * Region product section.
 *
 * Loaded by inc/region-page.php on region archives only (/texas/dallas/ and the rest), for
 * the #overview section templates/region-template.php renders through
 * blocks/region-editorial-solutions.php: an intro line and then one row per
 * `office_space_repeater` entry — photograph on one side, copy on the other, the sides
 * alternating down the page.
 *
 * It is section 4 of css/location-editorial.css on the `amenities-bar` branch, the rules the
 * same section takes on the Editorial location template, so the two read as one design.
 * Only the two scoped rules at the top differ: there they hang off the Editorial body class
 * and `#offerings`, here off `.region-product-editorial` (added in inc/region-page.php) and
 * `#overview`, which is the id this template has always given the section. Everything below
 * them is on the `.les-*` / `.lep-*` namespace and matches nothing else on the page.
 *
 * The tabbed carousel this section replaced is style.css's, under `.tc-*` / `.wide-ver` /
 * `.service-card-block`; nothing here reaches it, and it still renders on every other
 * template that shows the same repeater.
 *
 * @see blocks/region-editorial-solutions.php
 * @see blocks/region-editorial-product.php
 */

.region-product-editorial #overview > .wp-block-group__inner-container > .section-content {
    margin-top: 0;
}

/* The section opens on its heading and the line under it, both across the full 1280px
   column. Two site-wide rules have to be beaten, and the id in the selector is what outranks
   both of them:

   - the 597px cap on a left-aligned block heading (style.css:20789), which would otherwise
     wrap "Workspaces designed for performance." onto two lines. The standfirst under it is
     uncapped too, so the pair reads as one block set to the width of the rows below.
   - the 64px this template's sections put under a heading (style.css:20537, 48px below
     881px at :20447 - the heading
     here carries `wp-block-heading` as well as `section-heading`, which is what that rule
     matches on). The standfirst sets its own 20px, which is the gap the Editorial section
     opens on; 64px of it would read as a gap rather than a line belonging to the heading. */
.region-product-editorial #overview > .wp-block-group__inner-container > .section-heading.has-text-align-left {
    max-width: none;
    margin-bottom: 0;
}

.les-intro {
    max-width: none;
    margin: 20px 0 0 !important;
}

.les-rows {
    display: flex;
    flex-direction: column;
    gap: clamp(56px, 6vw, 96px);
    margin-top: clamp(40px, 4vw, 64px);
}

.lep {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(32px, 4.5vw, 64px);
    align-items: center;
}

/* Alternating sides. The order is set rather than the columns reversed so the photo stays
   first in the DOM, which is the reading order on a phone where the grid is one column. */
.lep.is-mirrored .lep-media {
    order: 2;
}

/* Squared off, like every other photograph in this treatment. Cropped from 4/3 to 3/2
   (2026-11-12) so the photo stands about as tall as the copy beside it. */
.lep-media {
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.lep-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lep-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* An h3 renders larger than an h2 on this site — only `h2.wp-block-heading` carries a
   size override — so the row headline sets its own, a clear step below the section
   heading above it. */
.lep-title {
    font-size: 1.8em;
    line-height: 1.2;
    margin: 0 !important;
}

.lep-blurb > *:last-child {
    margin-bottom: 0 !important;
}

.lep-includes {
    border-top: 1px solid rgba(var(--color-bg-accent-rgba), 0.5);
    padding-top: 20px;
}

.lep-includes .heading-xs {
    margin: 0 0 16px;
}

/* One item per line with the site's own gold check, the same list the carousel card
   shows: the `wp-block-list` class on the <ul> in the partial brings the check with it,
   so only the spacing is set here. */
.lep-includes ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 !important;
}

.lep-includes li {
    margin: 0 !important;
}

/* The customisation list carries the same check as the inclusions above it, in two
   columns because the four items are short. */
.lep-custom ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 32px;
    margin: 0 !important;
}

/* The shared `ul.wp-block-list` rule hangs the check 22px to the left of its item, which
   the list's own indent leaves room for. Down one column the item is as wide as the list
   and the anchor does not matter; across two it does, so each item becomes the anchor —
   otherwise every check in the second column lines up under the first. The gutter is wide
   enough to hold the second column's. */
.lep-custom li {
    margin: 0 !important;
    position: relative;
}

/* Team suites only: what a suite can be made into. No rule above it — the includes list
   it follows already has one, and a second line would box the copy in. */
.lep-custom-title {
    margin: 0 0 12px !important;
    font-weight: 600;
}

.lep-foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

/* The price is a detail of the row, not a second headline: at the --fs-body-lg it started
   at (24px) it competed with .lep-title above it, and at --fs-body-sm (14px) it read as fine
   print. --fs-body-md is the size of the Editorial template's About copy (amenities-bar),
   18px on a desktop and 14px on a phone, level with the inclusions list it follows
   (2026-11-12; it was --fs-body-md-ui, 16px/14px). */
.lep-price {
    margin: 0 !important;
    font-size: var(--fs-body-md);
    color: var(--color-text-accent);
}

.lep-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* The enterprise link sits under the buttons rather than beside them, so the pair of
   calls to action still reads as the row's own. */
.lep-enterprise {
    font-size: var(--fs-body-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-accent);
    box-shadow: inset 0 -1px 0 0 transparent;
    transition: box-shadow 0.3s ease;
}

.lep-enterprise:hover,
.lep-enterprise:focus-visible {
    box-shadow: inset 0 -1px 0 0 currentColor;
}

/* The wide row: the picture across the whole measure, the copy under it. One column, so
   the grid above only has to be told to stop being two. */
.lep.is-wide {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 3vw, 40px);
}

/* A band rather than the 4/3 the half-width rows take: at the full 1280px measure that
   crop would be 960px tall and the copy under it would start a screen below the heading.
   3/1 is the proportion the layout draws, and `object-fit: cover` above does the rest. */
.lep.is-wide .lep-media {
    aspect-ratio: 3 / 1;
}

/* Copy set to the measure, like `.les-intro` at the head of the section. Nothing is capped
   here: the rule that would need beating caps a left-aligned section heading, and this is
   a row headline. */
.lep.is-wide .lep-body {
    gap: 24px;
}

/* Down the columns rather than across them: layout & build-out above furniture & finishes,
   branding & signage beside them. Two rows is what makes the flow a two-column one for
   four items.

   The gutter is wider than the half-width rows' 32px because these columns are half of
   1280px rather than half of 600px, and the pairs have to read as two lists, not four
   items in a strip. */
.lep.is-wide .lep-custom ul {
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    gap: 16px 64px;
}

/* Team suites: "Offices include" and "Customize your suite" side by side, each half the
   measure. The rule over the inclusions moves up to the pair so it runs across both columns,
   and each list goes back to one item per line, the way the inclusions already read. */
.lep-lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 64px;
    border-top: 1px solid rgba(var(--color-bg-accent-rgba), 0.5);
    padding-top: 20px;
}

/* The two headings are different sizes ("Offices include:" is the 15px caps label, the
   customise title an 18px line), so each column is a subgrid of the pair's two rows: the
   headings share the first row, centred in it, and both lists start on the same line. */
.lep-lists {
    grid-template-rows: auto auto;
}

.lep-lists .lep-includes,
.lep-lists .lep-custom {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: 0;
}

.lep-lists .lep-includes {
    border-top: 0;
    padding-top: 0;
}

.lep-lists .lep-includes .heading-xs,
.lep-lists .lep-custom-title {
    align-self: center;
    margin: 0 0 16px !important;
}

.lep.is-wide .lep-lists .lep-custom ul {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 16px;
}

@media only screen and (max-width: 980px) {
    .lep-lists {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
    }

    .lep-lists .lep-includes,
    .lep-lists .lep-custom {
        grid-row: auto;
        grid-template-rows: none;
    }

    .lep {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .lep.is-mirrored .lep-media {
        order: 0;
    }

    .lep-custom ul {
        grid-template-columns: minmax(0, 1fr);
    }

    /* A 3/1 band is a slit at phone width; the picture goes back to something you can see
       what is in. */
    .lep.is-wide .lep-media {
        aspect-ratio: 16 / 10;
    }

    /* One column, so the flow has to go back across: left as `column` with the single
       template row above, four items would draw four columns. */
    .lep.is-wide .lep-custom ul {
        grid-auto-flow: row;
    }
}
