/*
 * Selection guides.
 *
 * Shares the tokens and section rhythm of the category and product pages, in
 * its own file so a fresh drop of the design team's stylesheet cannot wipe it.
 *
 * The recommendation list is the page. It is a numbered list on purpose: the
 * guides run from the premium range down to the budget one, and that order is
 * itself part of the advice.
 */

.guide-hero {
    background: linear-gradient(160deg, #fdf2f2 0%, #ffffff 65%);
    padding: 32px 0 56px;
}

.guide-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.guide-breadcrumb a { color: #6b7280; text-decoration: none; }
.guide-breadcrumb a:hover { color: var(--primary-red); }
.guide-breadcrumb span { margin: 0 0.35rem; }
.guide-breadcrumb span[aria-current] { margin-left: 0; color: #111827; }

.guide-hero h1 {
    font-size: clamp(1.9rem, 3.4vw, 2.85rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 1.1rem;
}

.guide-hero__lead {
    max-width: 42rem;
    font-size: 1.02rem;
    line-height: 1.75;
    color: #4b5563;
    margin: 0 0 0.9rem;
}

.guide-hero__lead:last-child { margin-bottom: 0; }

.guide-hero__image {
    display: block;
    width: 100%;
    max-height: 20rem;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

/* --------------------------------------------------------------- factors */

.guide-factors { padding: 56px 0 8px; }

.guide-factors h2,
.guide-recommendations h2,
.guide-others h2,
.guide-notes h2,
.guide-cta h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 800;
    margin-bottom: 1.35rem;
}

.factor-card {
    height: 100%;
    padding: 1.3rem 1.4rem;
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 12px;
}

.factor-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.factor-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #6b7280;
}

/* -------------------------------------------------------- recommendations */

.guide-recommendations { padding: 56px 0 8px; }

/* The sentence that hands the reader from the factors to the suggestions. */
.guide-bridge {
    max-width: 52rem;
    margin: -0.35rem 0 1.75rem;
    font-size: 1rem;
    line-height: 1.75;
    color: #4b5563;
}

.recommendation-list {
    counter-reset: recommendation;
    list-style: none;
    margin: 0;
    padding: 0;
}

.recommendation {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1.75rem 0;
    border-top: 1px solid #f1f3f5;
}

.recommendation:first-child { border-top: 0; padding-top: 0; }

.recommendation__media {
    flex: 0 0 auto;
    display: flex;
    gap: 0.75rem;
    width: 15rem;
}

.recommendation__media img {
    flex: 1 1 0;
    min-width: 0;
    height: 10rem;
    object-fit: contain;
    padding: 0.75rem;
    background: #f8f9fb;
    border: 1px solid #eceef1;
    border-radius: 12px;
    mix-blend-mode: multiply;
}

.recommendation__body {
    flex: 1 1 22rem;
    counter-increment: recommendation;
}

/* The number carries the ranking the guide's order already implies. */
.recommendation__body::before {
    content: counter(recommendation);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    margin-bottom: 0.7rem;
    border-radius: 50%;
    background: #fdeaea;
    color: #b02024;
    font-size: 0.8rem;
    font-weight: 700;
}

.recommendation__body p {
    margin: 0 0 0.8rem;
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
}

.recommendation__extra {
    font-size: 0.93rem !important;
    color: #6b7280 !important;
}

.recommendation__body a { color: var(--primary-red); font-weight: 600; text-decoration: none; }
.recommendation__body a:hover { text-decoration: underline; }

.recommendation__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.recommendation__link i { font-size: 0.7rem; }

/* ----------------------------------------------------------------- notes */

.guide-notes { padding: 48px 0 8px; }

.guide-notes__panel {
    padding: 2rem 2.25rem;
    background: #f8f9fb;
    border: 1px solid #eceef1;
    border-radius: 16px;
}

.guide-notes__panel p {
    max-width: 60rem;
    margin: 0 0 0.9rem;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #4b5563;
}

.guide-notes__panel a { color: var(--primary-red); font-weight: 600; text-decoration: none; }
.guide-notes__panel a:hover { text-decoration: underline; }

.guide-notes__faq {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    font-size: 0.93rem;
}

.guide-notes__faq i { font-size: 0.7rem; }

/* ---------------------------------------------------------- other guides */

.guide-others { padding: 48px 0 8px; }

.guide-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 0.9rem 1.1rem;
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 12px;
    text-decoration: none;
    color: #111827;
    font-weight: 600;
    font-size: 0.94rem;
    line-height: 1.4;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.guide-card:hover {
    color: #111827;
    border-color: #f3d0d0;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.guide-card img {
    flex: 0 0 auto;
    width: 4.5rem;
    height: 3.25rem;
    object-fit: cover;
    border-radius: 8px;
}

.guide-card i { font-size: 0.68rem; color: var(--primary-red); }

/* ------------------------------------------------------------------- cta */

.guide-cta { padding: 48px 0 72px; }

.guide-cta__panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.25rem 2.5rem;
    background: linear-gradient(160deg, #fdf2f2 0%, #ffffff 70%);
    border: 1px solid #f3d0d0;
    border-radius: 16px;
}

.guide-cta__panel h2 { margin-bottom: 0.6rem; }

.guide-cta__panel p {
    max-width: 44rem;
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.75;
    color: #4b5563;
}

.guide-cta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.guide-cta__secondary {
    font-weight: 600;
    color: #111827;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.guide-cta__secondary:hover { color: var(--primary-red); }

/* ----------------------------------------------------------- small screens */

@media (max-width: 767.98px) {
    .recommendation { gap: 1.25rem; }
    .recommendation__media { width: 100%; }
    .recommendation__media img { height: 8rem; }
    .guide-notes__panel { padding: 1.5rem 1.35rem; }
    .guide-cta__panel { padding: 1.75rem 1.5rem; }
}
