/* Homepage guide components extracted from guides.css. Keep shared guide-page
   styles in guides.css; homepage-v2 overrides remain owned by index.html. */
a.featured-card.enhanced,
a.popular-item {
    text-decoration: none;
    color: inherit;
}

a.featured-card.enhanced:focus-visible,
a.popular-item:focus-visible {
    outline: 2px solid var(--scottish-blue, #003DA5);
    outline-offset: 3px;
}

a.popular-item {
    display: flex;
}

.guide-spotlight-section {
    margin: 0 auto 3rem;
    max-width: 1200px;
    padding: 0 1rem;
}

.homepage-guide-chooser {
    display: grid;
    gap: 1rem;
}

.homepage-seasonal-guide {
    position: relative;
    isolation: isolate;
    display: grid;
    margin-bottom: 1rem;
    min-height: 184px;
    grid-template-columns: minmax(7.5rem, 0.36fr) minmax(0, 0.64fr);
    border: 2px solid #17100f;
    border-radius: 1.25rem;
    color: #fff4e6;
    background:
        radial-gradient(circle at 22% 24%, rgba(255, 138, 31, 0.22), transparent 42%),
        #17100f;
    box-shadow: 8px 8px 0 #ff8a1f;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.homepage-seasonal-guide[hidden] {
    display: none;
}

.homepage-seasonal-guide:hover {
    box-shadow: 11px 11px 0 #c7f36a;
    transform: translate(-2px, -2px);
}

.homepage-seasonal-guide-art {
    position: relative;
    min-height: 100%;
    background:
        radial-gradient(circle at 54% 38%, #fff4e6 0 27%, #ff8a1f 28% 31%, transparent 32%),
        linear-gradient(165deg, transparent 0 64%, #2a1814 65% 100%);
}

.homepage-seasonal-guide-art::before,
.homepage-seasonal-guide-art::after {
    position: absolute;
    bottom: 21%;
    width: 3.2rem;
    height: 2.8rem;
    border-radius: 48% 48% 44% 44%;
    background: #ff8a1f;
    box-shadow: inset 0 0 0 5px rgba(185, 77, 0, 0.34);
    content: '';
}

.homepage-seasonal-guide-art::before { left: 20%; }

.homepage-seasonal-guide-art::after { right: 8%; bottom: 13%; transform: scale(0.7); }

.homepage-seasonal-guide-art i {
    position: absolute;
    top: 30%;
    left: 18%;
    width: 1.9rem;
    height: 0.75rem;
    background: #17100f;
    clip-path: polygon(0 45%, 20% 0, 42% 42%, 50% 8%, 58% 42%, 80% 0, 100% 45%, 76% 34%, 50% 100%, 24% 34%);
}

.homepage-seasonal-guide-art i:nth-child(2) { top: 19%; left: 67%; transform: scale(0.75); }

.homepage-seasonal-guide-art i:nth-child(3) { top: 50%; left: 59%; transform: scale(0.55); }

.homepage-seasonal-guide-copy {
    display: grid;
    align-content: center;
    gap: 0.35rem;
    padding: 1.15rem 1.1rem 1.15rem 0.2rem;
}

.homepage-seasonal-guide-copy > span {
    color: #c7f36a;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.homepage-seasonal-guide-copy strong {
    color: #fff4e6;
    font-size: clamp(1.15rem, 2.8vw, 1.65rem);
    line-height: 1.05;
}

.homepage-seasonal-guide-copy small {
    color: rgba(255, 244, 230, 0.76);
    font-size: 0.86rem;
    line-height: 1.45;
}

.homepage-seasonal-guide-copy b {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    margin-top: 0.25rem;
    color: #ff8a1f;
    font-size: 0.87rem;
}

.homepage-more-guides {
    min-width: 0;
}

.homepage-more-guides > summary {
    display: none;
}

.homepage-more-guides-content {
    display: grid;
    gap: 1rem;
}

.homepage-guide-section-heading h3,
.homepage-guide-browse-group h4 {
    margin: 0;
    color: #0f172a;
}

.homepage-guide-section-heading h3 {
    font-size: 1.15rem;
    line-height: 1.25;
}

.homepage-guide-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.homepage-guide-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.62rem 0.95rem;
    border: 1px solid rgba(0, 61, 165, 0.16);
    border-radius: 999px;
    background: #ffffff;
    color: var(--scottish-blue, #003DA5);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.homepage-guide-chip:hover,
.homepage-guide-browse-link:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 61, 165, 0.3);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.homepage-guide-browse {
    display: grid;
    gap: 0.6rem;
}

.homepage-guide-browse-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.homepage-guide-browse-group {
    display: grid;
    align-content: start;
    gap: 0.5rem;
    padding: 0.76rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.78);
}

.homepage-guide-browse-group h4 {
    font-size: 0.95rem;
    line-height: 1.25;
}

.homepage-guide-browse-links {
    display: grid;
    gap: 0.45rem;
}

.homepage-guide-browse-link {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0.58rem 0.7rem;
    border: 1px solid rgba(0, 61, 165, 0.1);
    border-radius: 0.75rem;
    background: #ffffff;
    color: #1e293b;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

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

@media (max-width: 768px) {
.guide-spotlight-section {
        margin-bottom: 1.5rem;
    }

.guide-spotlight-section > .section-header-enhanced {
        margin-bottom: 1.25rem;
    }

.homepage-guide-chooser {
        gap: 0.75rem;
    }

.homepage-seasonal-guide {
        min-height: 170px;
        grid-template-columns: 7.25rem minmax(0, 1fr);
    }

.homepage-more-guides > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        padding: 0.65rem 0.9rem;
        border: 1px solid rgba(0, 61, 165, 0.2);
        border-radius: 0.9rem;
        background: #ffffff;
        color: var(--scottish-blue, #003DA5);
        cursor: pointer;
        font-weight: 800;
        list-style: none;
    }

.homepage-more-guides > summary::-webkit-details-marker {
        display: none;
    }

.homepage-more-guides > summary::after {
        content: "+";
        font-size: 1.3rem;
        line-height: 1;
    }

.homepage-more-guides[open] > summary::after {
        content: "\2212";
    }

.homepage-more-guides > summary:focus-visible {
        outline: 2px solid var(--scottish-blue, #003DA5);
        outline-offset: 3px;
    }

.homepage-more-guides-content {
        padding-top: 0.75rem;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
.homepage-more-guides > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        padding: 0.65rem 0.9rem;
        border: 1px solid rgba(0, 61, 165, 0.2);
        border-radius: 0.9rem;
        background: #ffffff;
        color: var(--scottish-blue, #003DA5);
        cursor: pointer;
        font-weight: 800;
        list-style: none;
    }

.homepage-more-guides > summary::-webkit-details-marker {
        display: none;
    }

.homepage-more-guides > summary::after {
        content: "+";
        font-size: 1.3rem;
        line-height: 1;
    }

.homepage-more-guides[open] > summary::after {
        content: "\2212";
    }

.homepage-more-guides > summary:focus-visible {
        outline: 2px solid var(--scottish-blue, #003DA5);
        outline-offset: 3px;
    }

.homepage-more-guides-content {
        padding-top: 0.75rem;
    }
}

.homepage-start-guide-primary,
.homepage-start-guide-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.homepage-start-guide-primary {
    background: var(--scottish-blue, #003DA5);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(0, 61, 165, 0.22);
}

.homepage-start-guide-secondary {
    border: 1px solid rgba(0, 61, 165, 0.22);
    background: rgba(255, 255, 255, 0.72);
    color: var(--scottish-blue, #003DA5);
}

.homepage-start-guide-primary:hover,
.homepage-start-guide-secondary:hover {
    transform: translateY(-1px);
}

.homepage-start-guide-primary:focus-visible,
.homepage-start-guide-secondary:focus-visible,
.homepage-guide-chip:focus-visible,
.homepage-guide-browse-link:focus-visible {
    outline: 2px solid var(--scottish-blue, #003DA5);
    outline-offset: 3px;
}

@media (max-width: 640px) {
.guide-spotlight-section {
        padding: 0 0.75rem;
    }

.homepage-guide-chip-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

.homepage-guide-chip {
        width: 100%;
    }

.homepage-guide-browse-grid {
        grid-template-columns: 1fr;
    }

.homepage-start-guide-primary,
.homepage-start-guide-secondary {
        width: 100%;
    }
}
