/* ─────────────────────────────────────────────────────────────────────────────
   Seth Brand Tech Care Best-Of Pages — Forbes-style comparison layout
   Scoped to .best-page. Loaded via $extra_head on /best/* pages.
   Uses design tokens from theme.css (--green, --bronze, --surface, --serif, etc.)
   ───────────────────────────────────────────────────────────────────────────── */

.best-page { padding-bottom: 0; }

/* ── Breadcrumb (matches care-plans pattern) ── */
.best-page .breadcrumb-nav { padding-top: 1rem; }

/* ── Hero ── */
.best-hero {
    position: relative;
    padding: 3.5rem 0 2.5rem;
    overflow: hidden;
}

.best-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(94, 207, 120, 0.10), transparent 35%),
        radial-gradient(circle at 20% 80%, rgba(200, 169, 106, 0.06), transparent 30%);
    pointer-events: none;
}

.best-hero .container { position: relative; z-index: 1; }

.best-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green);
}

.best-hero-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--green);
    opacity: 0.5;
}

.best-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    max-width: 18ch;
    margin-bottom: 1rem;
}

.best-hero .hero-sub {
    font-size: 1.1rem;
    color: var(--text-mid);
    max-width: 60ch;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.best-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-low);
    margin-bottom: 1.5rem;
}

.best-hero-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }

.best-hero-image {
    margin-top: 2rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}

.best-hero-image img { display: block; width: 100%; height: auto; }

/* ── Top 3 Picks Strip ── */
.top-picks {
    padding: 2.5rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(17, 19, 23, 0.4);
}

.top-picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.pick-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(24, 27, 33, 0.9), rgba(17, 19, 23, 0.95));
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s, transform 0.2s;
}

.pick-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.pick-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--green-trace);
    border: 1px solid var(--border-accent);
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--green);
}

.pick-card .pick-name {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--text);
}

.pick-score {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
}

.pick-score .score-num {
    font-family: var(--mono);
    font-size: 1.5rem;
    color: var(--green);
    font-weight: 500;
}

.pick-score .score-out {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-low);
}

.pick-card .pick-hook {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.5;
    flex-grow: 1;
}

.pick-card .pick-cta {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.pick-card .pick-cta:hover { text-decoration: underline; }

/* ── Ranked List (full entries) ── */
.ranked-list { padding: 2.5rem 0; }

.ranked-entries {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranked-entry {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(24, 27, 33, 0.6), rgba(17, 19, 23, 0.9));
    padding: 2rem;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
}

.ranked-entry-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text);
}

.rank-badge.top-3 {
    background: var(--green-trace);
    border-color: var(--border-accent);
    color: var(--green);
}

.entry-score {
    text-align: center;
}

.entry-score .score-num {
    font-family: var(--mono);
    font-size: 1.1rem;
    color: var(--green);
    display: block;
}

.entry-score .score-label {
    font-family: var(--mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-low);
}

.ranked-entry-body { min-width: 0; }

.ranked-entry-body h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.entry-best-for {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--bronze);
    background: var(--bronze-glow);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.entry-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.entry-highlights li {
    padding: 0.3rem 0 0.3rem 1.4rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.5;
}

.entry-highlights li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-size: 0.85rem;
}

/* Pros / Cons grid */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.pros-cons h4 {
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.pros h4 { color: var(--green); }
.cons h4 { color: var(--bronze); }

.pros-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-cons li {
    font-size: 0.88rem;
    color: var(--text-mid);
    padding: 0.2rem 0;
    line-height: 1.4;
}

/* From the field callout */
.field-note {
    border-left: 3px solid var(--green);
    background: var(--green-trace);
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.5;
}

.field-note strong {
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.3rem;
}

/* Test data badge */
.test-data {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.test-badge {
    font-family: var(--mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text-low);
}

.test-badge strong { color: var(--text-mid); font-weight: 500; }

/* Entry CTA */
.entry-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.5rem;
}

.entry-cta .btn-primary,
.entry-cta .btn-secondary {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}

.entry-cta .affiliate-note {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-low);
}

/* ── Methodology Box ── */
.methodology-box {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(17, 19, 23, 0.6);
    padding: 2rem;
    margin: 2.5rem 0;
}

.methodology-box h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.methodology-box .method-intro {
    color: var(--text-mid);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.methodology-table {
    width: 100%;
    border-collapse: collapse;
}

.methodology-table th,
.methodology-table td {
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
}

.methodology-table th {
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-low);
    font-weight: 400;
}

.methodology-table td:first-child { color: var(--text); font-weight: 500; }
.methodology-table td:last-child {
    font-family: var(--mono);
    color: var(--green);
    text-align: right;
}

.methodology-box .method-disclosure {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--text-low);
    line-height: 1.5;
}

.methodology-box .method-disclosure strong { color: var(--bronze); }

/* ── Guide / Educational Sections ── */
.best-guide { padding: 2.5rem 0; border-top: 1px solid var(--line); }

.best-guide h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.best-guide h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--text);
}

.best-guide p {
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.best-guide ul, .best-guide ol {
    color: var(--text-mid);
    line-height: 1.7;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.best-guide li { margin-bottom: 0.4rem; }

.best-guide strong { color: var(--text); }

/* ── Comparison Table (Forbes-style pros/cons/appropriate-for) ── */
.comparison-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px;
}

.comparison-table th {
    background: var(--surface-2);
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-low);
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-weight: 400;
}

.comparison-table td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--line);
    color: var(--text-mid);
    vertical-align: top;
    line-height: 1.5;
}

.comparison-table td:first-child {
    color: var(--text);
    font-weight: 500;
}

.comparison-table tr:last-child td { border-bottom: none; }

/* ── Cost Section ── */
.cost-section { padding: 2.5rem 0; border-top: 1px solid var(--line); }

.cost-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.cost-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.cost-list li:last-child { border-bottom: none; }

.cost-list .cost-item { color: var(--text); font-weight: 500; }
.cost-list .cost-price {
    font-family: var(--mono);
    color: var(--green);
}

/* ── FAQ (matches care-plans pattern) ── */
.best-faq { padding: 2.5rem 0; border-top: 1px solid var(--line); }

.best-faq h2 { font-size: 1.8rem; margin-bottom: 1rem; }

.best-faq .faq-list details {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: rgba(17, 19, 23, 0.4);
}

.best-faq .faq-list summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
    font-size: 1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.best-faq .faq-list summary::-webkit-details-marker { display: none; }

.best-faq .faq-list summary::after {
    content: "+";
    font-family: var(--mono);
    font-size: 1.2rem;
    color: var(--green);
    transition: transform 0.2s;
}

.best-faq .faq-list details[open] summary::after { content: "−"; }

.best-faq .faq-list details p {
    margin-top: 0.75rem;
    color: var(--text-mid);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ── Cross-links (Our other guides) ── */
.best-crosslinks {
    padding: 2.5rem 0;
    border-top: 1px solid var(--line);
}

.crosslinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.crosslink-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.25rem;
    background: rgba(17, 19, 23, 0.5);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
    display: block;
}

.crosslink-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.crosslink-card h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.crosslink-card p {
    font-size: 0.85rem;
    color: var(--text-low);
    line-height: 1.4;
}

.crosslink-card .crosslink-arrow {
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: inline-block;
}

/* ── Final CTA Band ── */
.best-cta-band {
    padding: 3rem 0;
    border-top: 1px solid var(--line);
    text-align: center;
}

.best-cta-band h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.best-cta-band p {
    color: var(--text-mid);
    max-width: 50ch;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.best-cta-band .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ── Hub Index ── */
.best-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.hub-guide-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(24, 27, 33, 0.7), rgba(17, 19, 23, 0.95));
    padding: 2rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hub-guide-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hub-guide-card .card-eyebrow {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--green);
}

.hub-guide-card h3 {
    font-size: 1.4rem;
    color: var(--text);
    line-height: 1.2;
}

.hub-guide-card p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.5;
    flex-grow: 1;
}

.hub-guide-card .card-meta {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-low);
    display: flex;
    gap: 1rem;
}

.hub-guide-card .card-arrow {
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ranked-entry {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }

    .ranked-entry-rank {
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
    }

    .pros-cons {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .best-hero h1 { font-size: 2rem; }
    .best-hero .hero-sub { font-size: 1rem; }
}

@media (max-width: 480px) {
    .ranked-entry { padding: 1.25rem; }
    .methodology-box { padding: 1.25rem; }
    .pick-card { padding: 1.25rem; }
}

/* Entry price (card view) */
.entry-price {
    color: var(--text-mid);
    font-size: 0.95rem;
    margin: 0 0 0.75rem 0;
}

/* Entry price (table view) */
.entry-table-price {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-low);
}
