/* ToyotaBase homepage redesign: Scenario Board, 2026-05-17 */
.scenario-homepage {
    background: #f6f5f2;
}

.scenario-homepage .toyota-scenario-hero {
    padding: 30px 0 24px !important;
    text-align: left !important;
    background:
        linear-gradient(115deg, rgba(31, 31, 31, 0.96), rgba(55, 48, 42, 0.92) 58%, rgba(141, 24, 31, 0.92)),
        linear-gradient(180deg, #f8f8f8, #f3f3f3) !important;
    color: #fff;
    border-bottom: 0 !important;
}

.scenario-homepage .toyota-scenario-hero::before {
    width: 520px !important;
    height: 520px !important;
    top: auto !important;
    right: -150px !important;
    bottom: -230px !important;
    border-radius: 999px !important;
    background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 62%) !important;
}

.toyota-scenario-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: 34px;
    align-items: stretch;
}

.toyota-kicker,
.toyota-section-mark {
    display: inline-flex;
    width: fit-content;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    color: #f2d8d8;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.scenario-homepage .hero-home h1 {
    max-width: 720px;
    margin: 16px 0 14px !important;
    color: #fff !important;
    font-size: clamp(2rem, 3.45vw, 3.85rem) !important;
    line-height: 0.98 !important;
    font-family: var(--font-heading), Inter, sans-serif !important;
}

.scenario-homepage .hero-desc {
    max-width: 650px !important;
    margin: 0 0 24px !important;
    color: #e6ddd7 !important;
    font-size: 1.04rem !important;
}

.toyota-search-panel {
    max-width: 650px !important;
    margin: 0 0 14px !important;
}

.toyota-search-panel input {
    border: 0 !important;
    border-radius: 8px !important;
    min-height: 58px;
    background: #fff !important;
    box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}

.toyota-disclaimer {
    max-width: 650px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.18);
    color: #eadbd7;
    font-size: 0.86rem;
    line-height: 1.45;
}

.toyota-fast-lanes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.toyota-fast-lanes a {
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 999px;
    padding: 8px 13px;
    font-weight: 700;
    font-size: 0.88rem;
}

.toyota-fast-lanes a:hover { background: #fff; color: #b91c1c; }

.toyota-scenario-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(124px, auto);
    gap: 14px;
}

.toyota-board-photo,
.toyota-route-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    min-width: 0;
}

.toyota-board-photo {
    grid-row: span 2;
    background: #211d1b;
    min-height: 270px;
}

.toyota-board-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.88) contrast(1.02);
}

.toyota-board-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(0,0,0,0.66));
}

.toyota-board-photo span {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 1;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
}

.toyota-route-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 124px;
    padding: 18px;
    color: #27211d;
    text-decoration: none;
    background: #fff7ed;
    border: 1px solid rgba(255,255,255,0.18);
}

.toyota-route-card::before {
    content: '';
    position: absolute;
    width: 92px;
    height: 92px;
    right: -34px;
    top: -28px;
    border: 16px solid rgba(185,28,28,0.12);
    border-radius: 999px;
}

.toyota-route-card strong {
    position: relative;
    font-family: var(--font-heading), Inter, sans-serif;
    font-size: 1.32rem;
    line-height: 1.05;
}

.toyota-route-card em {
    position: relative;
    color: #6d625a;
    font-style: normal;
    font-size: 0.88rem;
}

.route-num {
    position: relative;
    font-weight: 800;
    color: #b91c1c;
    font-size: 0.8rem;
}

.route-wide { background: #f4e7dd; }
.route-accent { background: #b91c1c; color: #fff; }
.route-accent em, .route-accent .route-num { color: #ffe4e6; }
.route-dark { background: #201d1b; color: #fff; }
.route-dark em { color: #d8ccc4; }
.route-dark .route-num { color: #fca5a5; }

.toyota-scenario-main { padding-top: 24px !important; }

.toyota-scenario-overview {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
    gap: 26px;
    align-items: stretch;
}

.toyota-overview-copy {
    padding: 28px 0;
    border-top: 3px solid #201d1b;
}

.toyota-overview-copy .toyota-section-mark {
    background: #201d1b;
    color: #fff;
    border: 0;
}

.toyota-overview-copy h2 {
    margin: 14px 0 12px;
    font-family: var(--font-heading), Inter, sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.8rem);
    line-height: 1;
    color: #201d1b;
}

.toyota-overview-copy p {
    color: #625a55;
    line-height: 1.65;
    margin: 0;
}

.toyota-featured-case {
    margin: 0 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #201d1b 0%, #4a2b2b 55%, #991b1b 100%) !important;
}

.toyota-featured-case .featured-badge {
    background: rgba(255,255,255,0.12) !important;
    color: #fee2e2 !important;
}

.toyota-featured-case .featured-desc { color: #eadbd7 !important; }
.toyota-featured-case .featured-visual { background: rgba(255,255,255,0.08) !important; }

.toyota-section-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.toyota-model-index .categories-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: stretch;
}

.toyota-model-index .category-card {
    grid-column: span 2;
    min-height: 118px;
    padding: 16px !important;
    text-align: left !important;
    border-radius: 8px !important;
    background: #fff !important;
    border-color: #e4ded8 !important;
}

.toyota-model-index .category-card:nth-child(1),
.toyota-model-index .category-card:nth-child(2),
.toyota-model-index .category-card:nth-child(3),
.toyota-model-index .category-card:nth-child(4) {
    grid-column: span 3;
    min-height: 150px;
    background: #201d1b !important;
    color: #fff !important;
}

.toyota-model-index .category-card:nth-child(6n+5) {
    background: #f4e7dd !important;
}

.toyota-model-index .category-card:nth-child(8n+7) {
    background: #fff7ed !important;
}

.toyota-model-index .category-card::before {
    height: auto !important;
    width: 54px;
    right: -18px;
    left: auto !important;
    top: -18px;
    bottom: auto;
    aspect-ratio: 1;
    border-radius: 999px;
    background: rgba(185,28,28,0.14) !important;
    transform: none !important;
}

.toyota-model-index .category-icon {
    font-size: 1.3rem !important;
    margin-bottom: 12px !important;
}

.toyota-model-index .category-name {
    font-family: var(--font-heading), Inter, sans-serif;
    font-size: 1.25rem !important;
    line-height: 1.05;
}

.toyota-model-index .category-count { color: #7a716b !important; }
.toyota-model-index .category-card:nth-child(-n+4) .category-count { color: #d8ccc4 !important; }

.toyota-popular-wall .articles-home-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.toyota-popular-wall .article-home-card {
    grid-column: span 2;
    min-height: 164px;
    border-radius: 8px !important;
    border-color: #e4ded8 !important;
    background: #fff !important;
}

.toyota-popular-wall .article-home-card:nth-child(1),
.toyota-popular-wall .article-home-card:nth-child(7) {
    grid-column: span 3;
    background: #201d1b !important;
    color: #fff !important;
}

.toyota-popular-wall .article-home-card:nth-child(1) .article-home-desc,
.toyota-popular-wall .article-home-card:nth-child(7) .article-home-desc { color: #d8ccc4 !important; }

.toyota-popular-wall .article-home-tag {
    border-radius: 999px !important;
    background: #fee2e2 !important;
    color: #991b1b !important;
}

.toyota-recent-strip .recent-scroll {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(190px, 1fr));
    overflow-x: auto;
}

.toyota-recent-strip .recent-card {
    flex: none !important;
    border-radius: 8px !important;
    border-color: #e4ded8 !important;
}

.scenario-homepage .site-footer-premium {
    background: #201d1b;
}

@media (max-width: 980px) {
    .toyota-scenario-shell,
    .toyota-scenario-overview {
        grid-template-columns: 1fr;
    }

    .toyota-scenario-board {
        grid-template-columns: 1fr 1fr;
    }

    .toyota-model-index .category-card,
    .toyota-model-index .category-card:nth-child(1),
    .toyota-model-index .category-card:nth-child(2),
    .toyota-model-index .category-card:nth-child(3),
    .toyota-model-index .category-card:nth-child(4) {
        grid-column: span 4;
    }
}

@media (max-width: 640px) {
    .scenario-homepage .toyota-scenario-hero {
        padding: 28px 0 24px !important;
    }

    .scenario-homepage .hero-home h1 {
        font-size: 2.2rem !important;
    }

    .toyota-scenario-board {
        grid-template-columns: 1fr;
    }

    .toyota-board-photo {
        grid-row: auto;
        min-height: 260px;
    }

    .toyota-route-card {
        min-height: 118px;
    }

    .toyota-model-index .categories-grid,
    .toyota-popular-wall .articles-home-grid {
        grid-template-columns: 1fr !important;
    }

    .toyota-model-index .category-card,
    .toyota-model-index .category-card:nth-child(1),
    .toyota-model-index .category-card:nth-child(2),
    .toyota-model-index .category-card:nth-child(3),
    .toyota-model-index .category-card:nth-child(4),
    .toyota-popular-wall .article-home-card,
    .toyota-popular-wall .article-home-card:nth-child(1),
    .toyota-popular-wall .article-home-card:nth-child(7) {
        grid-column: auto !important;
    }

    .toyota-recent-strip .recent-scroll {
        grid-template-columns: repeat(7, 240px);
    }
}