/* Block layout that must respond to the phone frame a block sits in, not the browser window:
   the designer canvas is a phone inside a desktop window, so viewport breakpoints disagree with it. */

/* The page's column, and the widest a sheet goes (Material's bottom-sheet maximum). On a screen wider than the column
   the platform's fixed parts keep to it: a bar or a pinned Action Sheet block spans it (.bm-page-column-bar), a
   floating button stands --bm-page-gutter in from the screen's edge. A sheet that opens over the page is centred the
   same way, capped at its own width. The gutter's 100% is left unresolved here, so it measures the containing block of
   whatever uses it: the window on a scan, the device's screen in the designer. Never a size container on the page to
   place them: see .hero-section. */
:root {
    --bm-page-column: 500px;
    --bm-page-gutter: calc((100% - min(100%, var(--bm-page-column))) / 2);
    --bm-sheet-max-width: 640px;
    /* A block's wide form: a form or card goes no wider than a sheet, and text keeps a readable line, about 75
       characters of the theme's font at body size (Hero's subtitle reads it too). In rem, not em, so held text of
       every size shares one left edge; smaller text runs a longer line. */
    --bm-card-max-width: var(--bm-sheet-max-width);
    --bm-text-max-width: 34rem;
    /* The screen a picture keeps to three quarters of. The designer's device frame names its own (PhoneFrame). */
    --bm-screen-height: 100svh;
    /* A Bottom Menu's height (Material's navigation bar). The menu takes it as its own, and whatever must stay clear of
       a pinned menu reads it here. */
    --bm-bottom-menu-height: 80px;
    /* How far the floating utility dock stands off the screen's foot, which whatever must stay clear of its FABs reads. */
    --bm-utility-dock-bottom: 24px;
}

/* A wide page fills the screen up to 1200px. On :root, because the utility dock and the chat sheet sit outside the
   page's container, and so that the gutter, declared beside the column, is worked out from this one. The designer
   marks its canvas the same way while it shows a wide page. */
:root:has(.mobile-experience-container--wide),
:root:has(.preview-canvas--wide) {
    --bm-page-column: 1200px;
}

/* A bar pinned to the foot of a published page: the bottom menu, and an Action Sheet block. The designer's canvas
   places them itself. */
.bm-page-column-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin-inline: auto;
    max-width: var(--bm-page-column);
}

/* A Bottom Menu is one row with a line per label, so it is exactly --bm-bottom-menu-height tall, however long a label
   or large an icon. */
.bottommenu-component {
    box-sizing: border-box;
    width: 100%;
    height: var(--bm-bottom-menu-height);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--mud-palette-lines-default);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.bottommenu-item {
    flex: 1;
    min-width: 0;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.bottommenu-icon {
    display: flex;
}

.bottommenu-label {
    max-width: 100%;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The utility dock's column, which a published action sheet keeps clear because the dock floats over its bottom-right
   corner: the floating dock's right offset, the chat FAB (MudFab Large), a gap. The dock is a direct child of the
   consumer shell's content column and of the preview's container, and renders nothing when it has no FAB to show. */
:has(> .tag-experience-utility-dock) .actionsheet-component {
    --bm-utility-dock-reserve: calc(16px + 56px + 8px);
}

/* The floating dock stands above a pinned Bottom Menu rather than over its rightmost item, so the menu's items keep their
   even spacing. */
:root:has(.bottommenu-component.bm-page-column-bar) {
    --bm-utility-dock-bottom: calc(var(--bm-bottom-menu-height) + 16px);
}

.columnlayout-component {
    container-type: inline-size;
}

/* The display title's `cqw` measures the hero, because the older spec made a size container the containing block for
   its fixed descendants: on the page container, a browser that still does that would pin a BottomMenu or an action
   sheet to the bottom of a long page rather than the screen. */
.hero-section {
    container-type: inline-size;
    width: 100%;
}

.bm-columns {
    display: grid;
    grid-template-columns: var(--bm-columns-template, minmax(0, 1fr));
    gap: var(--bm-columns-gap);
}

/* The author's "On a phone" (BRA-1164). Stacked: one column while the block is in its phone form, a phone or a folded
   Fold. It measures the block's wrapper, as the wide forms do, not the layout's own box, which a section's padding
   narrows. Side by side carries no class and never stacks. */
@container bm-block (width <= 600px) { .bm-columns--stacked { grid-template-columns: minmax(0, 1fr); } }

/* A layout saved before that setting holds none and keeps the rule it was saved under: side by side on a phone, stacked
   only once a column would drop below roughly 100px. */
@container (max-width: 219px) { .bm-columns--2 { grid-template-columns: minmax(0, 1fr); } }
@container (max-width: 299px) { .bm-columns--3 { grid-template-columns: minmax(0, 1fr); } }
@container (max-width: 379px) { .bm-columns--4 { grid-template-columns: minmax(0, 1fr); } }

/* A block measures the box it is laid out in, never the window, so the canvas and a published page agree: a top-level
   block its own wrapper, a block in a column that column, and a block in a Detail the Detail. The code that draws a
   page's top-level blocks marks their wrappers bm-block-root (ExperienceRenderingEngine.MeasuredBlockClass), and only
   those: a size container stops its child's margins collapsing through it, which moved a phone page's nested blocks; a
   Bottom Menu's and an Action Sheet's blocks are position: fixed (see .hero-section); and a sheet's blocks are always
   drawn as on a phone though a sheet is 640px wide. Named, so a block that is a container itself (Hero, Column Layout)
   takes its wide form from the whole block. */
.bm-block-root,
.bm-column {
    container: bm-block / inline-size;
}

/* The canvas lays each block out in a flex row (DropItemHost), where a block that doesn't ask for the column's width
   shrinks to its content, while a scan stacks blocks; so a block whose width is not its content's asks for it. */
.carousel-gallery,
.in-store-availability,
.image-block-wrapper,
.image-block-frame,
.image-block-link,
.wp-block-embed {
    width: 100%;
}

.bm-picture {
    width: 100%;
    height: auto;
}

/* A Video block whose video's size is stored (VideoBlockRenderer) holds the video's shape before it has loaded, so the
   poster shows in the box the video will play in. */
.bm-sized-video {
    aspect-ratio: var(--bm-video-width) / var(--bm-video-height);
}

/* A slides Carousel (CarouselBlockRenderer) is a MudCarousel, which lays each slide absolutely over a box with no
   height of its own and draws its dots over the slide's foot: a caption below the picture was cut off or under the
   dots. The slide shown is in flow, so the box holds its picture and caption; the slide leaving during a transition
   stays absolute, over it; the dots' row follows in a strip of its own. Keyed on MudCarousel's markup
   (CarouselCaptionBelowTests). */
.carousel-wrapper.mud-carousel {
    flex-direction: column;
}

.carousel-wrapper > .mud-carousel-swipe {
    position: relative;
}

.carousel-wrapper > .mud-carousel-swipe > .mud-carousel-item:not(.mud-carousel-item-exit) {
    position: relative;
}

.carousel-wrapper > .mud-carousel-swipe ~ div {
    padding-block: var(--bm-spacing-sm);
}

/* The page's gutter (BRA-1238, BlockSpacing): the page draws no side padding, and the wrapper of each top-level block set
   Inside holds it --bm-page-side in. A full-width block's wrapper holds it 0 in, so it reaches the page's edges, the
   1200px page's on a wide one, and drops its corners; its words keep the gutter in, through --bm-panel-side, which the
   block's own side padding takes as its least (BlockSpacing.Padding). A block in a column, a Detail or an Action Sheet
   fills its box and has no width, so the variable is 0 there (a Detail's from its children down, since its own box
   pads its words like any block's). !important because a block's corners may be drawn inline (a Column Layout's
   section radius, an Image's). */
.bm-full-width {
    --bm-panel-side: var(--bm-page-side);
}

.bm-column,
.detail-component > *,
.actionsheet-component {
    --bm-panel-side: 0px;
}

.bm-full-width > *,
.bm-full-width > .image-block-wrapper .image-block-frame {
    border-radius: 0 !important;
}

/* A block that draws nothing on a scan (its feature switched off, a Button whose link is) leaves its wrapper empty,
   and the wrapper holds the gap above it: without this the page shows two gaps there, and the canvas, which draws
   every block, one. */
[data-block-id]:empty {
    display: none;
}

/* A full-width Hero's words start on the gutter, in line with the blocks below it. */
.bm-full-width > .hero-section {
    --bm-panel-pad-inline: 0px;
}

/* A full-width picture fills the width, whatever its own size, on a phone and on a wide page alike. Only an Image block's
   own: a Hero or a banded Column Layout is full width too, and the pictures inside those keep their wide form. */
.bm-full-width > .image-block-wrapper .image-block-frame,
.bm-full-width > .image-block-wrapper .image-block-link,
.bm-full-width > .image-block-wrapper .bm-picture {
    width: 100%;
    max-width: none;
    max-height: none;
}

/* A form or card keeps a form's width; narrower than that it fills its box, so it needs no breakpoint. */
.bm-form-block,
.bm-yi-card,
.spec-table-component,
.button-block .mud-width-full,
.button-block .button-block__anchor--full {
    width: 100%;
    max-width: var(--bm-card-max-width);
    margin-inline: auto;
}

.button-block .mud-width-full {
    display: flex;
}

/* A full-width block that keeps a measure (a card's width here, text's line below) is centred in the page, and the space
   beside it already keeps its words in: the gutter its padding keeps them in (BlockSpacing.Padding) is less that space,
   so its words start where an Inside one's do once the measure binds both, and on the gutter while it fills the page.
   An Inside text block's wide form starts 2 × gutter later (its wrapper's box is narrower), so between the two the
   full-width one's words sit up to a gutter further in. */
.bm-full-width > .bm-form-block,
.bm-full-width > .bm-yi-card,
.bm-full-width > .spec-table-component {
    --bm-panel-side: max(0px, var(--bm-page-side) - (100% - min(100%, var(--bm-card-max-width))) / 2);
}

/* A block's wide form (BRA-1115): only where it differs from the phone's. A block not named here fills the column. */
@container bm-block (width > 600px) {
    /* Text keeps a readable line. */
    .paragraph-readonly,
    .paragraph-editable,
    .list-component,
    .html-block-wrapper {
        width: 100%;
        max-width: var(--bm-text-max-width);
        margin-inline: auto;
    }

    .bm-full-width > .paragraph-readonly,
    .bm-full-width > .paragraph-editor-wrapper > .paragraph-editable,
    .bm-full-width > .list-component,
    .bm-full-width > .html-block-wrapper {
        --bm-panel-side: max(0px, var(--bm-page-side) - (100% - min(100%, var(--bm-text-max-width))) / 2);
    }

    /* A form's own text keeps a readable line too. A caption is a span, which a max-width leaves alone. */
    .bm-form-block :is(p, .mud-typography) {
        max-width: var(--bm-text-max-width);
    }

    .bm-form-block span.mud-typography {
        display: inline-block;
    }

    .bm-form-block .mud-typography-align-center {
        margin-inline: auto;
    }

    /* A picture is no wider than its own pixels, nor taller than three quarters of the screen. */
    .bm-picture {
        width: auto;
        max-width: 100%;
        max-height: calc(var(--bm-screen-height) * 0.75);
    }

    /* The same rule from the stored size: width: auto would take the poster's pixels until the video loads. */
    .bm-picture.bm-sized-video {
        width: min(100%, var(--bm-video-width) * 1px, calc(var(--bm-screen-height) * 0.75 * var(--bm-video-width) / var(--bm-video-height)));
    }

    .image-block-frame {
        width: fit-content;
        max-width: 100%;
    }

    .image-block-link {
        width: auto;
        max-width: 100%;
    }
}

/* ── The first group of blocks redesigned for a wide screen (BRA-1231). Each block's phone form sits outside the
   queries; its wide form is inside @container bm-block (width > 600px), keyed on the block's root class. Theme
   colours only. A block draws its own padding through BlockSpacing.Padding, so the padding that differs between the
   two forms is a variable its inline padding reads (--bm-panel-pad-*), never a padding rule here. ── */

/* The tint a block's panel takes, mixed on the block itself because the palette may be declared on an island rather
   than :root. Inside a dark or primary band, --bm-card-surface is the band's, so the tint stays on the band. */
.timeline-component,
.reviews,
.leave-review-component,
.feature-highlight,
.bm-action {
    --bm-tint: color-mix(in srgb, var(--mud-palette-primary) 10%, var(--bm-card-surface, var(--mud-palette-surface)));
}

.bm-block-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

/* The tinted dot: an icon in a circle tinted by its tone. Timeline stops, a Feature Highlight's icon and an action
   card's status all draw it. */
.bm-dot {
    --bm-dot-tone: var(--mud-palette-primary);
    box-sizing: border-box;
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--bm-dot-tone);
    background: color-mix(in srgb, var(--bm-dot-tone) 13%, var(--bm-card-surface, var(--mud-palette-surface)));
}

.bm-dot .mud-icon-root {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.bm-dot--success { --bm-dot-tone: var(--mud-palette-success); }
.bm-dot--info { --bm-dot-tone: var(--mud-palette-info); }
.bm-dot--warning { --bm-dot-tone: var(--mud-palette-warning); }
.bm-dot--error { --bm-dot-tone: var(--mud-palette-error); }

/* A block's own action: 44px, the theme's corners. */
.bm-button.mud-button-root {
    min-height: 44px;
    border-radius: var(--mud-default-borderradius);
}

/* ── Timeline: a line of stops, down the left on a phone, left to right when wide. ── */
.timeline-title {
    margin-bottom: 16px;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-stop {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 14px;
    padding-bottom: 20px;
}

.timeline-stop:last-child {
    padding-bottom: 0;
}

.timeline-stop::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 34px;
    bottom: 2px;
    width: 2px;
    border-radius: 1px;
    background: color-mix(in srgb, var(--mud-palette-primary) 30%, var(--mud-palette-lines-default));
}

.timeline-stop:last-child::before {
    display: none;
}

/* What lies ahead is reached by a dashed line. */
.timeline-stop:has(+ .timeline-stop--ahead)::before {
    width: 0;
    background: none;
    border-left: 2px dashed var(--mud-palette-lines-default);
}

.timeline-stop .bm-dot {
    width: 32px;
    height: 32px;
    background: var(--bm-tint);
}

.timeline-stop .bm-dot .mud-icon-root {
    width: 17px;
    height: 17px;
    font-size: 17px;
}

.timeline-stop--latest .bm-dot {
    color: var(--mud-palette-primary-text);
    background: var(--mud-palette-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--mud-palette-primary) 18%, transparent);
}

.timeline-stop--ahead .bm-dot {
    color: var(--mud-palette-success);
    background: var(--mud-palette-surface);
    border: 1.5px dashed var(--mud-palette-success);
}

.timeline-stop--ended .bm-dot {
    color: var(--mud-palette-warning);
    border-color: var(--mud-palette-warning);
    border-style: solid;
}

.timeline-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    padding-top: 5px;
}

.timeline-what {
    font-size: 0.9375rem;
    font-weight: 600;
}

.timeline-when {
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
    font-variant-numeric: tabular-nums;
}

.timeline-stop--ahead .timeline-what {
    color: var(--bm-ink-success, var(--mud-palette-success));
}

.timeline-stop--ended .timeline-what {
    color: var(--bm-ink-warning, var(--mud-palette-warning));
}

.timeline-empty {
    padding: 20px;
    border: 1px dashed var(--mud-palette-lines-default);
    border-radius: var(--bm-radius-lg);
    text-align: center;
    color: var(--mud-palette-text-secondary);
}

@container bm-block (width > 600px) {
    .timeline-title {
        margin-bottom: 24px;
    }

    .timeline-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        row-gap: 32px;
    }

    .timeline-stop {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 16px 0 0;
    }

    .timeline-stop::before {
        left: 34px;
        right: 0;
        top: 15px;
        bottom: auto;
        width: auto;
        height: 2px;
    }

    .timeline-stop:has(+ .timeline-stop--ahead)::before {
        width: auto;
        height: 0;
        border-left: 0;
        border-top: 2px dashed var(--mud-palette-lines-default);
    }

    .timeline-text {
        padding-top: 0;
    }

    .timeline-stop--ahead {
        grid-column: span 2;
    }
}

/* ── List reviews: the average leads, then the cards. On a phone the summary, the cards, then "View all"; wide, the
   summary takes a column with the star breakdown and the cards fill the rest. ── */
.reviews {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Takes focus after a delete (tabindex): ringed for a keyboard, not after a click. */
.reviews:focus:not(:focus-visible),
.reviews-list:focus:not(:focus-visible) {
    outline: none;
}

.reviews-side {
    display: contents;
}

.reviews-summary {
    order: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviews-average {
    font-size: 2rem;
    font-weight: 650;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.reviews-summary-side {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reviews-count {
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
}

.reviews-breakdown {
    display: none;
}

.reviews-main {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.reviews-more {
    order: 3;
}

.reviews-more .bm-button {
    width: 100%;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--bm-hairline, var(--mud-palette-lines-default));
    border-radius: var(--bm-radius-lg);
    background: var(--bm-card-surface, var(--mud-palette-surface));
}

.review-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-card-date {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
    font-variant-numeric: tabular-nums;
}

.review-card-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.review-card-who {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
}

.review-card-name {
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

.review-card-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    color: var(--bm-ink-success, var(--mud-palette-success));
}

.review-card-verified .mud-icon-root {
    width: 15px;
    height: 15px;
    font-size: 15px;
}

.reviews-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 16px;
    border: 1px dashed var(--mud-palette-lines-default);
    border-radius: var(--bm-radius-lg);
    text-align: center;
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
}

@container bm-block (width > 600px) {
    .reviews {
        display: grid;
        grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
        gap: 0 40px;
        align-items: start;
    }

    .reviews > .bm-block-title {
        grid-column: 1 / -1;
        margin-bottom: 20px;
    }

    .reviews-side {
        grid-column: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .reviews-side > * {
        order: 0;
    }

    .reviews-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .reviews-average {
        font-size: 3rem;
    }

    .reviews-breakdown {
        display: grid;
        grid-template-columns: 2.2em minmax(0, 1fr) 2.5ch;
        gap: 7px 10px;
        align-items: center;
        font-size: 0.8125rem;
        color: var(--mud-palette-text-secondary);
        font-variant-numeric: tabular-nums;
    }

    .reviews-breakdown-bar {
        height: 6px;
        overflow: hidden;
        border-radius: 3px;
        background: var(--bm-tint);
    }

    .reviews-breakdown-bar > span {
        display: block;
        height: 100%;
        border-radius: 3px;
        background: var(--mud-palette-primary);
    }

    .reviews-breakdown-count {
        text-align: right;
    }

    .reviews-more .bm-button {
        width: auto;
        align-self: flex-start;
    }

    .reviews-main {
        grid-column: 2;
        grid-row: 2;
    }

    .reviews-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 26rem));
        gap: 16px;
    }

    .review-card {
        padding: 20px;
    }

    .reviews-empty {
        padding: 48px 24px;
    }
}

/* ── Leave a review: a tinted panel whose stars are the invitation. Wide, one band: the words left, the stars right. ── */
.leave-review {
    --bm-panel-pad-block: 20px;
    --bm-panel-pad-inline: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-radius: var(--bm-radius-lg);
    background: var(--bm-tint);
}

.leave-review-line {
    margin: 0;
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
}

.leave-review-rate {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.leave-review-star {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--mud-palette-primary);
    background: var(--bm-card-surface, var(--mud-palette-surface));
    cursor: pointer;
}

.leave-review-star .mud-icon-root {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.leave-review-star-filled,
.leave-review-star:is(:hover, :focus-visible) .leave-review-star-outline {
    display: none;
}

.leave-review-star:is(:hover, :focus-visible) .leave-review-star-filled {
    display: block;
}

.leave-review-mine {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.875rem;
}

@container bm-block (width > 600px) {
    .leave-review {
        --bm-panel-pad-block: 24px;
        --bm-panel-pad-inline: 28px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 32px;
        align-items: center;
    }

    .leave-review > .bm-block-title,
    .leave-review > .leave-review-line {
        grid-column: 1;
        max-width: var(--bm-text-max-width);
    }

    .leave-review-rate,
    .leave-review-mine {
        grid-column: 2;
        grid-row: 1 / span 2;
        margin: 0;
    }
}

/* ── Hero: the title sized to the block's own width; a picture sits in the band after the words, and beside them
   when wide. Density sets the band's block padding, the title size scales the title. ── */
.hero-section {
    --bm-panel-pad-block: 40px;
    --bm-panel-pad-inline: 20px;
    --bm-hero-title-scale: 1;
    box-sizing: border-box;
    display: grid;
    gap: 24px;
    text-align: center;
}

.hero-section--compact { --bm-panel-pad-block: 20px; }
.hero-section--spacious { --bm-panel-pad-block: 56px; }
.hero-section--display { --bm-hero-title-scale: 1.2; }
.hero-section--medium { --bm-hero-title-scale: 0.8; }

.hero-section--left {
    text-align: left;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-section--left .hero-content {
    align-items: flex-start;
}

.hero-title {
    margin: 0;
    font-family: inherit;
    font-size: clamp(
        calc(1.875rem * var(--bm-hero-title-scale)),
        calc((1.1rem + 3.6cqw) * var(--bm-hero-title-scale)),
        calc(3.75rem * var(--bm-hero-title-scale)));
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -0.028em;
    text-wrap: balance;
}

.hero-subtitle {
    margin: 0;
    max-width: var(--bm-text-max-width);
    font-size: 1.0625rem;
    line-height: 1.5;
    color: color-mix(in srgb, currentColor 75%, transparent);
    text-wrap: pretty;
}

.hero-section .hero-picture {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0 auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--bm-radius-lg);
}

@container bm-block (width > 600px) {
    .hero-section {
        --bm-panel-pad-block: 64px;
        --bm-panel-pad-inline: 48px;
    }

    .hero-section--compact { --bm-panel-pad-block: 32px; }
    .hero-section--spacious { --bm-panel-pad-block: 96px; }

    .hero-subtitle {
        font-size: 1.1875rem;
    }

    /* With a picture, the words sit left whatever the alignment, and the picture beside them. */
    .hero-section--picture {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
        align-items: center;
        gap: 48px;
        text-align: left;
    }

    .hero-section--picture .hero-content {
        align-items: flex-start;
    }

    .hero-section--picture .hero-picture {
        max-width: 440px;
        margin: 0 0 0 auto;
    }
}

/* ── Feature Highlight: a tinted panel, its icon in a dot. Wide, text alone reads as a statement; a picture sits
   beside the words. ── */
.feature-highlight {
    --bm-panel-pad-block: 18px;
    --bm-panel-pad-inline: 18px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px 14px;
    align-items: start;
    width: 100%;
    border-radius: var(--bm-radius-lg);
    background: var(--bm-feature-background, var(--bm-tint));
    text-align: left;
}

.feature-highlight--center {
    text-align: center;
    justify-items: center;
}

.feature-highlight--icon-left {
    grid-template-columns: 40px minmax(0, 1fr);
    justify-items: start;
}

.feature-highlight--icon-left > .bm-dot {
    grid-row: 1 / span 3;
}

.feature-highlight > .bm-dot {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
    background: var(--bm-card-surface, var(--mud-palette-surface));
}

.feature-highlight--icon-left > .bm-dot {
    margin-bottom: 0;
}

.feature-highlight-heading {
    margin: 0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.feature-highlight-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.feature-highlight-heading + .feature-highlight-text {
    color: var(--bm-feature-soft, var(--bm-text-secondary, var(--mud-palette-text-secondary)));
}

.feature-highlight-more {
    margin-top: 6px;
    font-size: 0.875rem;
}

.feature-highlight--picture {
    grid-template-columns: minmax(0, 1fr);
}

.feature-highlight .feature-highlight-picture {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: calc(var(--bm-radius-lg) - 4px);
}

@container bm-block (width > 600px) {
    .feature-highlight {
        --bm-panel-pad-block: 32px;
        --bm-panel-pad-inline: 36px;
        grid-template-columns: minmax(0, 40rem);
        gap: 6px 20px;
        justify-content: center;
    }

    .feature-highlight--icon-left {
        grid-template-columns: 48px minmax(0, 40rem);
    }

    .feature-highlight > .bm-dot {
        width: 48px;
        height: 48px;
    }

    .feature-highlight-text {
        font-size: 1.25rem;
        line-height: 1.45;
        letter-spacing: -0.005em;
    }

    .feature-highlight-heading {
        font-size: 1.25rem;
    }

    .feature-highlight-heading + .feature-highlight-text {
        font-size: 1rem;
        letter-spacing: normal;
    }

    .feature-highlight--picture {
        --bm-panel-pad-block: 20px;
        --bm-panel-pad-inline: 20px;
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        grid-template-rows: auto auto 1fr;
        column-gap: 36px;
        justify-content: stretch;
    }

    .feature-highlight--picture .feature-highlight-picture {
        grid-column: 1;
        grid-row: 1 / span 4;
        height: 100%;
        margin: 0;
        aspect-ratio: 4 / 3;
    }

    .feature-highlight--picture > :not(.feature-highlight-picture) {
        grid-column: 2;
    }

    .feature-highlight--picture .feature-highlight-heading {
        padding-top: 16px;
    }
}

/* ── The action card Registration and Support case share: the status leads, then the words, then the action. Wide,
   one band: the words left, the action right at its own width. ── */
.bm-action {
    --bm-panel-pad-block: 18px;
    --bm-panel-pad-inline: 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    border: 1px solid var(--bm-hairline, var(--mud-palette-lines-default));
    border-radius: var(--bm-radius-lg);
    background: var(--bm-card-surface, var(--mud-palette-surface));
}

.bm-action-words {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.bm-action-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bm-action-status-text {
    display: flex;
    flex-direction: column;
}

.bm-action-status-title {
    font-size: 0.9375rem;
    font-weight: 600;
}

.bm-action-status-detail {
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
    font-variant-numeric: tabular-nums;
}

.bm-action-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--mud-palette-text-secondary);
}

.bm-action-legal {
    font-size: 0.75rem;
    line-height: 1.45;
}

.bm-action-act {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.bm-action-act:empty {
    display: none;
}

.bm-action-act .bm-button {
    width: 100%;
}

.bm-action-row {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: var(--mud-default-borderradius);
    background: var(--bm-tint);
    color: inherit;
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.bm-action-row-number {
    font-weight: 600;
}

.bm-action-row-chevron {
    margin-left: auto;
    color: var(--mud-palette-text-secondary);
}

@container bm-block (width > 600px) {
    .bm-action {
        --bm-panel-pad-block: 24px;
        --bm-panel-pad-inline: 28px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
        column-gap: 40px;
        align-items: center;
    }

    .bm-action-words {
        max-width: 36rem;
    }

    .bm-action-act {
        margin: 0;
    }
}

/* ── Column Layout: the gap grows with the row; a column style gives short columns a shape. ── */
.columnlayout-component {
    --bm-columns-gap: clamp(12px, 3.5cqw, 48px);
}

.bm-columns--middle {
    align-items: center;
}

/* Divided: a hairline between columns, which takes the gap's place. */
.bm-columns--divided {
    column-gap: 0;
}

.bm-columns--divided > .bm-column + .bm-column {
    padding-left: var(--bm-columns-gap);
    border-left: 1px solid var(--bm-hairline, var(--mud-palette-lines-default));
}

.bm-columns--divided > .bm-column:not(:last-child) {
    padding-right: var(--bm-columns-gap);
}

/* Cards: each column on its own panel, in the band's colours. */
.bm-columns--cards > .bm-column {
    padding: 16px;
    border: 1px solid var(--bm-hairline, var(--mud-palette-lines-default));
    border-radius: var(--bm-radius-lg);
    background: var(--bm-card-surface, var(--mud-palette-surface));
}

@container bm-block (width <= 600px) {
    .bm-columns--divided.bm-columns--stacked > .bm-column + .bm-column {
        padding-top: 14px;
        padding-left: 0;
        border-top: 1px solid var(--bm-hairline, var(--mud-palette-lines-default));
        border-left: 0;
    }

    .bm-columns--divided.bm-columns--stacked > .bm-column:not(:last-child) {
        padding-right: 0;
    }
}

@container bm-block (width > 600px) {
    .bm-columns--cards > .bm-column {
        padding: 24px;
    }

    /* A band gets room to breathe. */
    .bm-columns-band {
        --bm-panel-pad-block: 48px;
        --bm-panel-pad-inline: clamp(24px, 5cqw, 56px);
    }
}
