/* ========================================================================== 
   SFFLABS HOMEPAGE — PHASE 3 ROUTER + COMMUNITY BUILDS + EDITORIAL
   Build-template palette + typography; semantic structure remains in page HTML.
   ========================================================================== */

.sff-site-home {
    --home-blue: #0083bd;
    --home-sky: var(--labs-accent);
    --home-emerald: #34d399;
    --home-bg: var(--labs-bg);
    --home-panel: var(--labs-surface);
    --home-control: var(--labs-input-bg);
    --home-card: var(--labs-surface-raised);
    --home-soft: var(--labs-surface-muted);
    --home-hover: color-mix(in oklab, var(--labs-surface-raised) 88%, var(--labs-text) 12%);
    --home-border: var(--labs-border);
    --home-border-strong: var(--labs-border-strong);
    --home-border-subtle: color-mix(in oklab, var(--labs-border) 62%, transparent);
    --home-text: var(--labs-text);
    --home-heading: var(--labs-heading);
    --home-dim: var(--labs-dim);
    --home-muted: var(--labs-muted);
    --home-muted-strong: color-mix(in oklab, var(--labs-text) 72%, var(--labs-muted));

    /* Preserve the final homepage readability scale while colour comes from Theme tokens. */
    --home-type-meta: 11px;
    --home-type-ui: 11px;
    --home-type-body: 13px;
    --home-type-card: 14px;

    --home-radius: 4px;
    --home-radius-sm: 2px;
}


.font-mono,
.home-launcher,
.home-latest-builds,
.home-latest-reviews {
    font-family: "JetBrains Mono", SFMono-Regular, Consolas, "Liberation Mono", monospace;
}


/* Single-flow homepage: global Theme navigation is the only navigation rail. */

.home-launcher,
.home-launcher *,
.home-launcher *::before,
.home-launcher *::after {
    box-sizing: border-box;
}

.home-launcher {
    width: 100%;
    min-height: 0;
    padding: clamp(34px, 4vw, 58px) clamp(16px, 3vw, 44px);
    display: block;
    background: transparent;
    color: var(--home-text);
    font-size: var(--home-type-ui);
    line-height: 1.5;
}

.home-launcher-grid {
    width: min(1480px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

.micro-app {
    min-width: 0;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: var(--home-panel);
    transition: border-color .16s ease, background-color .16s ease;
}

.micro-app:hover {
    border-color: var(--home-border-strong);
}

.micro-app:focus-within {
    border-color: color-mix(in oklab, var(--home-sky) 32%, transparent);
}

.micro-app.is-unavailable .case-loader-input {
    opacity: .55;
    cursor: not-allowed;
}

.micro-app.is-unavailable .case-loader-status {
    color: var(--home-muted);
}

.micro-app.is-degraded .build-loader-media-state {
    color: var(--home-muted);
}

.micro-app-head {
    min-height: 88px;
    padding: 15px 16px 13px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--home-border-subtle);
}

.micro-app-identity {
    min-width: 0;
}

.micro-app-kicker,
.micro-label,
.micro-app-meta,
.micro-app-foot-note,
.case-result-meta,
.case-loaded-meta,
.build-loader-context,
.build-loader-detail {
    text-transform: uppercase;
    letter-spacing: .075em;
}

.micro-app-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--home-sky);
    font-size: var(--home-type-ui);
    font-weight: 800;
}

.micro-app-title {
    margin: 0;
    color: var(--home-heading);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0;
}

.micro-app-meta {
    margin: 5px 0 0;
    color: var(--home-muted);
    font-size: var(--home-type-ui);
    font-weight: 700;
    line-height: 1.35;
}

.micro-app-index {
    flex: 0 0 auto;
    color: var(--home-dim);
    font-size: var(--home-type-meta);
    font-weight: 800;
    letter-spacing: .08em;
}

.micro-app-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.micro-app-foot {
    min-height: 52px;
    padding: 10px 12px 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--home-border-subtle);
    background: var(--home-soft);
}

.micro-app-foot-note {
    min-width: 0;
    overflow: hidden;
    color: var(--home-dim);
    font-size: var(--home-type-meta);
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.micro-label {
    display: block;
    margin-bottom: 7px;
    color: var(--home-muted);
    font-size: var(--home-type-ui);
    font-weight: 800;
}

/* Exact Build-action geometry language. */
.home-action {
    min-height: 30px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-sm);
    background: var(--home-control);
    color: var(--home-muted-strong);
    box-shadow: none;
    cursor: pointer;
    font-family: "JetBrains Mono", SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .045em;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color .14s ease, color .14s ease, background-color .14s ease;
}

.home-action:hover,
.home-action:focus-visible {
    border-color: color-mix(in oklab, var(--home-sky) 42%, transparent);
    color: var(--home-heading);
    background: var(--home-hover);
    outline: none;
    text-decoration: none;
}

.home-action-primary {
    border-color: color-mix(in oklab, var(--home-sky) 34%, transparent);
    color: var(--home-sky);
    background: color-mix(in oklab, var(--home-sky) 3.5%, transparent);
}

/* --------------------------------------------------------------------------
   Inline case loader — intentionally not a dropdown/overlay combobox.
   -------------------------------------------------------------------------- */
.case-loader {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.case-loader-input-wrap {
    position: relative;
}

.case-loader-input {
    width: 100%;
    height: 34px;
    margin: 0 !important;
    padding: 0 34px 0 10px !important;
    border: 1px solid var(--home-border) !important;
    border-radius: var(--home-radius-sm) !important;
    background: var(--home-control) !important;
    color: var(--home-text) !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: none;
    -webkit-appearance: none;
    font-family: "JetBrains Mono", SFMono-Regular, Consolas, "Liberation Mono", monospace !important;
    font-size: var(--home-type-body) !important;
    font-weight: 700 !important;
    line-height: 34px !important;
    letter-spacing: .02em;
}

.case-loader-input::-webkit-search-cancel-button,
.case-loader-input::-webkit-search-decoration,
.case-loader-input::-webkit-search-results-button,
.case-loader-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

.case-loader-input::placeholder {
    color: var(--home-muted);
    opacity: 1;
}

.case-loader-input:focus {
    border-color: color-mix(in oklab, var(--home-sky) 55%, transparent) !important;
}

.case-loader-mark {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: var(--home-muted);
    font-size: 13px;
    pointer-events: none;
}

.case-loader-results {
    margin-top: 9px;
    display: grid;
    gap: 4px;
}

.case-loader-results:empty {
    display: none;
}

.case-result {
    width: 100%;
    min-height: 45px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--home-border-subtle);
    border-radius: var(--home-radius-sm);
    background: var(--home-soft);
    color: var(--home-text);
    cursor: pointer;
    font-family: "JetBrains Mono", SFMono-Regular, Consolas, "Liberation Mono", monospace;
    text-align: left;
}

.case-result:hover,
.case-result:focus-visible,
.case-result.is-active,
.case-result[aria-selected="true"] {
    border-color: color-mix(in oklab, var(--home-sky) 34%, transparent);
    background: var(--home-hover);
    outline: none;
}

.case-result-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.case-result-name {
    min-width: 0;
    overflow: hidden;
    color: var(--home-heading);
    font-size: var(--home-type-body);
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case-result-meta {
    color: var(--home-muted);
    font-size: var(--home-type-meta);
    font-weight: 700;
    line-height: 1.25;
}

.case-result-arrow {
    flex: 0 0 auto;
    color: var(--home-muted);
    font-size: 12px;
}

.case-result:hover .case-result-arrow,
.case-result:focus-visible .case-result-arrow,
.case-result.is-active .case-result-arrow,
.case-result[aria-selected="true"] .case-result-arrow {
    color: var(--home-sky);
}

.case-loader-status {
    margin: auto 0 0;
    padding-top: 12px;
    color: var(--home-dim);
    font-size: var(--home-type-meta);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.case-loaded {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.case-loaded[hidden],
.case-loader[hidden] {
    display: none !important;
}

.case-loaded-content {
    margin-top: 4px;
    padding: 15px 13px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-sm);
    background: var(--home-soft);
}

.case-loaded-name {
    margin: 0;
    color: var(--home-heading);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

.case-loaded-meta {
    margin: 5px 0 0;
    color: var(--home-muted-strong);
    font-size: var(--home-type-ui);
    font-weight: 700;
}

.case-loaded-actions {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Community Builds micro-app
   -------------------------------------------------------------------------- */
.build-loader {
    gap: 9px;
}

.build-loader .micro-label {
    margin-bottom: 0;
}

.build-loader-media {
    position: relative;
    width: 100%;
    min-height: 260px;
    max-height: 320px;
    flex: 1 1 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-sm);
    background: var(--home-soft);
    text-decoration: none;
}

.build-loader-media:hover,
.build-loader-media:focus-visible {
    border-color: color-mix(in oklab, var(--home-sky) 36%, transparent);
    outline: none;
}

.build-loader-media img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: block;
    object-fit: cover;
    transition: transform .25s ease, opacity .18s ease;
}

.build-loader-media:hover img,
.build-loader-media:focus-visible img {
    transform: scale(1.015);
}

.build-loader-media-state {
    padding: 12px;
    color: var(--home-dim);
    font-size: var(--home-type-meta);
    font-weight: 800;
    letter-spacing: .07em;
    text-align: center;
    text-transform: uppercase;
}

.build-loader-copy {
    min-width: 0;
}

.build-loader-title {
    margin: 0;
    overflow: hidden;
    color: var(--home-heading);
    font-size: var(--home-type-card);
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.build-loader-context {
    margin: 3px 0 0;
    overflow: hidden;
    color: var(--home-muted-strong);
    font-size: var(--home-type-ui);
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.build-loader-detail {
    margin: 3px 0 0;
    overflow: hidden;
    color: var(--home-muted);
    font-size: var(--home-type-meta);
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.build-loader-open {
    align-self: flex-start;
    margin-top: auto;
}

.home-launcher-noscript {
    width: min(1480px, 100%);
    margin: 10px auto 0;
    color: var(--home-muted);
    font-size: var(--home-type-ui);
}

@media (max-width: 980px) {
    .home-launcher {
        min-height: auto;
        align-items: flex-start;
    }

    .home-launcher-grid {
        grid-template-columns: 1fr;
        max-width: 720px;
    }

    .micro-app {
        min-height: 480px;
    }

    .build-loader-media {
        min-height: 240px;
        max-height: 300px;
        flex-basis: 270px;
    }

    .build-loader-media img {
        min-height: 240px;
    }
}

#home-apps,
.home-latest-builds,
.home-latest-reviews {
    scroll-margin-top: calc(var(--labs-header-total-height) + 24px);
}

@media (max-width: 600px) {

    .home-launcher {
        padding: 18px 12px 26px;
    }

    .home-launcher-grid {
        gap: 8px;
    }

    .micro-app {
        min-height: 380px;
    }

    .micro-app-head {
        min-height: 78px;
        padding: 13px 13px 11px;
    }

    .micro-app-title {
        font-size: 16px;
    }

    .micro-app-body {
        padding: 13px;
    }

    .micro-app-foot {
        padding-left: 13px;
    }

    .case-loaded-actions {
        flex-direction: column;
    }

    .case-loaded-actions .home-action {
        width: 100%;
    }

    .build-loader-media {
        min-height: 190px;
        max-height: 240px;
        flex-basis: 220px;
    }

    .build-loader-media img {
        min-height: 190px;
    }

    .micro-app-foot-note {
        display: none;
    }

    .micro-app-foot {
        justify-content: flex-end;
    }
}



/* --------------------------------------------------------------------------
   Phase 2 — server-rendered Community Builds discovery strip.
   This is deliberately flatter than the launcher: the launcher is application
   UI; this section transitions the homepage into photography-led content.
   -------------------------------------------------------------------------- */
.home-latest-builds,
.home-latest-builds *,
.home-latest-builds *::before,
.home-latest-builds *::after {
    box-sizing: border-box;
}

.home-latest-builds {
    display: block;
    width: 100%;
    min-height: 0;
    padding: clamp(44px, 5vw, 68px) clamp(16px, 3vw, 44px) clamp(52px, 6vw, 76px);
    border-top: 1px solid var(--home-border-subtle);
    background: transparent;
    color: var(--home-text);
    scroll-margin-top: 42px;
}

.home-content-shell {
    width: min(1480px, 100%);
    margin: 0 auto;
}

.home-content-head {
    min-height: 58px;
    margin-bottom: 14px;
    padding-bottom: 13px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--home-border-subtle);
}

.home-content-identity {
    min-width: 0;
}

.home-content-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--home-sky);
    font-size: var(--home-type-ui);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.home-content-title {
    margin: 0;
    color: var(--home-heading);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 800;
    line-height: 1.15;
}

.home-content-meta {
    margin: 5px 0 0;
    color: var(--home-muted);
    font-size: var(--home-type-ui);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.home-content-action {
    flex: 0 0 auto;
}

.home-builds-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.home-build-card {
    min-width: 0;
    margin: 0;
}

.home-build-card-link {
    height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: var(--home-panel);
    color: inherit;
    text-decoration: none;
    transition: border-color .16s ease, background-color .16s ease;
}

.home-build-card-link:hover,
.home-build-card-link:focus-visible {
    border-color: color-mix(in oklab, var(--home-sky) 32%, transparent);
    background: var(--home-card);
    color: inherit;
    outline: none;
    text-decoration: none;
}

.home-build-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    margin: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--home-border-subtle);
    background: var(--home-soft);
}

.home-build-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .24s ease, opacity .16s ease;
}

.home-build-card-link:hover .home-build-card-media img,
.home-build-card-link:focus-visible .home-build-card-media img {
    transform: scale(1.012);
}

.home-build-card-copy {
    min-height: 118px;
    padding: 12px 13px 11px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.home-build-card-title {
    margin: 0;
    overflow: hidden;
    color: var(--home-heading);
    font-size: var(--home-type-card);
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-build-card-case {
    margin: 4px 0 0;
    overflow: hidden;
    color: var(--home-muted-strong);
    font-size: var(--home-type-body);
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-build-card-context {
    margin: 3px 0 0;
    overflow: hidden;
    color: var(--home-muted);
    font-size: var(--home-type-meta);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .06em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-build-card-foot {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.home-build-card-byline {
    min-width: 0;
    overflow: hidden;
    color: var(--home-dim);
    font-size: var(--home-type-meta);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .045em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-build-card-open {
    flex: 0 0 auto;
    color: var(--home-muted-strong);
    font-size: var(--home-type-meta);
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.home-build-card-link:hover .home-build-card-open,
.home-build-card-link:focus-visible .home-build-card-open {
    color: var(--home-sky);
}

@media (max-width: 900px) {
    .home-builds-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-build-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .home-latest-builds {
        padding: 34px 12px 48px;
    }

    .home-content-head {
        align-items: flex-start;
    }

    .home-content-meta {
        max-width: 250px;
    }

    .home-builds-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .home-build-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .home-build-card-media {
        aspect-ratio: 16 / 9;
    }

    .home-build-card-copy {
        min-height: 108px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .micro-app,
    .home-action,
    .case-result,
    .build-loader-media img,
    .home-build-card-link,
    .home-build-card-media img,
    .home-review-card-link,
    .home-review-card-image {
        transition: none !important;
    }
}


/* --------------------------------------------------------------------------
   Phase 3 — server-rendered Case Reviews.
   Cards use ordinary WordPress post identity + featured/attached media only.
   Review document translation remains isolated to its own application surface.
   -------------------------------------------------------------------------- */
.home-latest-reviews,
.home-latest-reviews *,
.home-latest-reviews *::before,
.home-latest-reviews *::after {
    box-sizing: border-box;
}

.home-latest-reviews {
    display: block;
    width: 100%;
    min-height: 0;
    padding: clamp(44px, 5vw, 68px) clamp(16px, 3vw, 44px) clamp(52px, 6vw, 76px);
    border-top: 1px solid var(--home-border-subtle);
    background: var(--home-soft);
    color: var(--home-text);
    scroll-margin-top: 42px;
}

.home-reviews-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.home-review-card {
    min-width: 0;
    margin: 0;
}

.home-review-card-link {
    height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: var(--home-panel);
    color: inherit;
    text-decoration: none;
    transition: border-color .16s ease, background-color .16s ease;
}

.home-review-card-link:hover,
.home-review-card-link:focus-visible {
    border-color: color-mix(in oklab, var(--home-sky) 32%, transparent);
    background: var(--home-card);
    color: inherit;
    outline: none;
    text-decoration: none;
}

.home-review-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    margin: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--home-border-subtle);
    background: var(--home-bg);
}

.home-review-card:first-child .home-review-card-media {
    aspect-ratio: 16 / 9;
}

.home-review-card-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .24s ease;
}

.home-review-card-link:hover .home-review-card-image,
.home-review-card-link:focus-visible .home-review-card-image {
    transform: scale(1.012);
}

.home-review-card-type {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 6px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-sm);
    background: color-mix(in oklab, var(--home-bg) 86%, transparent);
    color: var(--home-sky);
    font-size: var(--home-type-meta);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.home-review-card-copy {
    min-height: 136px;
    padding: 12px 13px 11px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.home-review-card-title {
    margin: 0;
    color: var(--home-heading);
    font-size: var(--home-type-card);
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
}

.home-review-card-case {
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--home-muted-strong);
    font-size: var(--home-type-body);
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-review-card-context {
    margin: 3px 0 0;
    overflow: hidden;
    color: var(--home-muted);
    font-size: var(--home-type-meta);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .06em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-review-card-excerpt {
    margin: 9px 0 0;
    display: -webkit-box;
    overflow: hidden;
    color: var(--home-muted);
    font-size: var(--home-type-ui);
    font-weight: 500;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-review-card-foot {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.home-review-card-byline {
    min-width: 0;
    overflow: hidden;
    color: var(--home-dim);
    font-size: var(--home-type-meta);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .045em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-review-card-open {
    flex: 0 0 auto;
    color: var(--home-muted-strong);
    font-size: var(--home-type-meta);
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.home-review-card-link:hover .home-review-card-open,
.home-review-card-link:focus-visible .home-review-card-open {
    color: var(--home-sky);
}

@media (max-width: 900px) {
    .home-reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-review-card:first-child {
        grid-column: 1 / -1;
    }

    .home-review-card:first-child .home-review-card-media {
        aspect-ratio: 16 / 8;
    }
}

@media (max-width: 620px) {
    .home-latest-reviews {
        padding: 34px 12px 48px;
    }

    .home-reviews-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .home-review-card:first-child {
        grid-column: auto;
    }

    .home-review-card:first-child .home-review-card-media,
    .home-review-card-media {
        aspect-ratio: 16 / 9;
    }

    .home-review-card-copy {
        min-height: 118px;
    }
}

/* --------------------------------------------------------------------------
   Native Theme ownership + colour-mode parity.
   These scoped declarations intentionally outrank the retired legacy homepage
   stylesheet while keeping all colour authority in the parent Theme tokens.
   -------------------------------------------------------------------------- */
.sff-site-home {
    background: var(--labs-bg);
    color: var(--labs-text);
}


.sff-site-home .home-launcher,
.sff-site-home .home-latest-builds {
    background: var(--labs-bg);
    color: var(--labs-text);
}

.sff-site-home .home-latest-reviews {
    background: var(--labs-surface-muted);
    color: var(--labs-text);
}

.sff-site-home .micro-app,
.sff-site-home .home-build-card-link,
.sff-site-home .home-review-card-link {
    background: var(--labs-surface);
    color: var(--labs-text);
    border-color: var(--labs-border);
}

.sff-site-home .micro-app-body,
.sff-site-home .home-build-card-copy,
.sff-site-home .home-review-card-copy {
    color: var(--labs-text);
}

.sff-site-home .case-loader-input,
.sff-site-home .home-action,
.sff-site-home .case-result {
    background: var(--labs-input-bg) !important;
    color: var(--labs-text) !important;
    border-color: var(--labs-border-strong) !important;
}

.sff-site-home .case-loader-results,
.sff-site-home .build-loader-media,
.sff-site-home .home-build-card-media,
.sff-site-home .home-review-card-media {
    background: var(--labs-surface-muted);
    border-color: var(--labs-border);
}

.sff-site-home .home-content-title,
.sff-site-home .micro-app-title,
.sff-site-home .home-build-card-title,
.sff-site-home .home-review-card-title {
    color: var(--labs-heading);
}

.sff-site-home .home-action-primary {
    color: var(--labs-accent) !important;
    background: color-mix(in oklab, var(--labs-accent) 6%, transparent) !important;
    border-color: color-mix(in oklab, var(--labs-accent) 42%, var(--labs-border)) !important;
}

@supports not (background: color-mix(in oklab, black 50%, transparent)) {
    .sff-site-home .home-action-primary { background: var(--labs-input-bg) !important; }
}


/* Readable icon vocabulary: use SVG shape/contrast instead of micro glyphs. */
.sff-site-home .home-icon { width:14px; height:14px; flex:0 0 14px; display:block; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.sff-site-home .home-icon-search { width:16px; height:16px; }
.sff-site-home .home-icon-arrow { width:14px; height:14px; }
.sff-site-home .case-loader-mark { display:grid; place-items:center; font-size:0; }
.sff-site-home .case-result-arrow { display:grid; place-items:center; font-size:0; }
.sff-site-home .home-action .home-icon { margin-left:1px; }
