/* ── Shared styles for /compare and /panel pages ────────────────────────── */
/* Hero */
.pv-vs-hero {
    background:
        linear-gradient(135deg, rgba(15,23,42,.90) 0%, rgba(30,41,59,.84) 55%, rgba(13,40,65,.92) 100%),
        url('/static/images/pv-bg1.webp') center/cover no-repeat;
    border-radius: 0; color: white; padding: 2.5rem 2rem;
    position: relative;
    /* overflow: visible so the /panel Compare autocomplete can spill below the hero */
}
.pv-vs-hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 8% 50%, rgba(59,130,246,.22), transparent 55%),
        radial-gradient(circle at 92% 50%, rgba(245,158,11,.20), transparent 55%);
    pointer-events: none;
}
.pv-vs-hero > * { position: relative; z-index: 1; }
/* Hero-row above stat-strip so an open autocomplete inside hero-row paints over the stat tiles */
.pv-vs-hero > .hero-row { z-index: 2; }
.pv-vs-hero .vs-badge {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 68px; height: 68px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(13,110,253,.35) 0%, rgba(255,193,7,.35) 100%);
    border: 2px solid rgba(255,255,255,.30);
    box-shadow: 0 0 0 6px rgba(255,255,255,.05), 0 8px 22px rgba(0,0,0,.35);
    font-weight: 800; font-size: 1.25rem; letter-spacing: .06em; flex-shrink: 0;
    color: #fff;
}
.pv-vs-hero .vs-badge::after {
    content: ""; position: absolute; inset: -2px; border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(13,110,253,.55), rgba(255,193,7,.55), rgba(13,110,253,.55));
    z-index: -1; filter: blur(8px); opacity: .55;
}
.pv-vs-hero .panel-name { font-size: clamp(1.2rem,3vw,1.8rem); font-weight: 800; line-height: 1.1; margin: 0; }
.pv-vs-hero .panel-meta { color: rgba(255,255,255,.78); font-size: .9rem; }
.pv-vs-hero .panel-side { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.pv-vs-hero .panel-side.left .panel-pill { border-color: #0d6efd; }
.pv-vs-hero .panel-side.right .panel-pill { border-color: #ffc107; }
.pv-vs-hero .panel-pill {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .35rem .75rem; border-radius: 999px;
    background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.18);
    font-size: .85rem; font-weight: 600;
}
.pv-vs-hero .mfg-logo-frame {
    width: 64px; height: 64px; border-radius: 12px;
    background: rgba(255,255,255,.95);
    display: flex; align-items: center; justify-content: center;
    padding: 6px; flex-shrink: 0;
}
.pv-vs-hero .mfg-logo-frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pv-vs-hero .mfg-logo-frame .logo-letter {
    font-size: 1.5rem; font-weight: 800; color: #374151;
}
.pv-vs-hero .hero-row { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.pv-vs-hero .hero-row.single { grid-template-columns: 1fr; }
.pv-vs-hero .hero-row > .panel-side { min-width: 0; }
.pv-vs-hero .vs-badge-wrap { display: flex; align-items: center; justify-content: center; }
@media (max-width: 767.98px) {
    .pv-vs-hero { padding: 1.5rem 1.25rem; }
    .pv-vs-hero .vs-badge { width: 44px; height: 44px; font-size: 1rem; }
    .pv-vs-hero .mfg-logo-frame { width: 48px; height: 48px; }
    .pv-vs-hero .hero-row { grid-template-columns: 1fr; }
    .pv-vs-hero .panel-side { justify-content: flex-start !important; text-align: left !important; }
    .pv-vs-hero .panel-side.right { flex-direction: row !important; }
    .pv-vs-hero .vs-badge-wrap { width: 100%; display: flex; justify-content: center; margin: .25rem 0; }
}
/* Stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; margin-top: 1.25rem; }
@media (max-width: 575.98px) { .stat-strip { grid-template-columns: repeat(2,1fr); } }
.stat-tile { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: .75rem .9rem; }
.stat-tile .stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.65); }
.stat-tile .stat-pair { display: flex; justify-content: space-between; align-items: baseline; margin-top: .35rem; gap: .35rem; flex-wrap: nowrap; }
.stat-tile .stat-pair.single { justify-content: flex-start; }
.stat-tile .stat-val { font-weight: 700; font-size: 1.02rem; white-space: nowrap; display: inline-flex; align-items: center; gap: .3rem; min-width: 0; }
.stat-tile .stat-val.left { color: #93c5fd; }
.stat-tile .stat-val.right { color: #fcd34d; }
.stat-tile .stat-val.solo { color: #fff; font-size: 1.15rem; }
.stat-tile .stat-val.stat-winner { color: #fff; text-shadow: 0 0 8px rgba(16,185,129,.4); }
.stat-tile .stat-winner-mark { color: #34d399; font-size: .75rem; }
.stat-tile .stat-sep { color: rgba(255,255,255,.35); font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; flex-shrink: 0; }
/* Verdict */
.verdict-card { border-left: 4px solid #10B981; background: linear-gradient(135deg,rgba(16,185,129,.08),rgba(16,185,129,.02)); }
/* Filter CTAs */
.filter-cta { display: flex; align-items: center; gap: .85rem; padding: .9rem 1.05rem; border-radius: .65rem; background: #fff; border: 1px solid #e5e7eb; border-left-width: 4px; text-decoration: none; color: #111827; transition: transform .18s,box-shadow .18s,border-color .18s,background .18s; }
.filter-cta.left { border-left-color: #0d6efd; }
.filter-cta.right { border-left-color: #ffc107; }
.filter-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); color: #111827; }
.filter-cta.left:hover { background: rgba(13,110,253,.06); }
.filter-cta.right:hover { background: rgba(255,193,7,.08); }
.filter-cta-icon { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.filter-cta.left .filter-cta-icon { background: rgba(13,110,253,.1); color: #0d6efd; }
.filter-cta.right .filter-cta-icon { background: rgba(255,193,7,.15); color: #856404; }
.filter-cta-body { flex: 1; min-width: 0; }
.filter-cta-title { font-weight: 600; font-size: .95rem; line-height: 1.2; }
.filter-cta-sub { font-size: .75rem; color: #6b7280; margin-top: .15rem; }
.filter-cta-arrow { color: #9ca3af; transition: transform .18s,color .18s; flex-shrink: 0; font-size: 1.1rem; }
.filter-cta:hover .filter-cta-arrow { transform: translateX(3px); }
.filter-cta.left:hover .filter-cta-arrow { color: #0d6efd; }
.filter-cta.right:hover .filter-cta-arrow { color: #856404; }
/* Manufacturer-vs-manufacturer CTA */
.mfg-vs-cta { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-radius: .75rem; background: #fff; border: 1px solid #e5e7eb; text-decoration: none; color: #111827; transition: transform .18s, box-shadow .18s, border-color .18s, background .18s; }
.mfg-vs-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.08); border-color: #d1d5db; color: #111827; background: linear-gradient(135deg, rgba(13,110,253,.03), rgba(255,193,7,.04)); }
.mfg-vs-logo { width: 52px; height: 52px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 6px; overflow: hidden; }
.mfg-vs-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mfg-vs-logo-left { border-color: rgba(13,110,253,.45); box-shadow: 0 0 0 2px rgba(13,110,253,.08); }
.mfg-vs-logo-right { border-color: rgba(255,193,7,.55); box-shadow: 0 0 0 2px rgba(255,193,7,.10); }
.mfg-vs-letter { font-weight: 700; font-size: 1.1rem; color: #4b5563; }
.mfg-vs-badge { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; letter-spacing: .04em; color: #6b7280; background: #f3f4f6; border: 1px solid #e5e7eb; }
.mfg-vs-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mfg-vs-title { font-weight: 600; font-size: .98rem; line-height: 1.25; color: #111827; }
.mfg-vs-sub { font-size: .78rem; color: #6b7280; margin-top: .15rem; }
.mfg-vs-arrow { color: #9ca3af; font-size: 1.15rem; flex-shrink: 0; transition: transform .18s, color .18s; }
.mfg-vs-cta:hover .mfg-vs-arrow { transform: translateX(4px); color: #374151; }
@media (max-width: 575.98px) {
    .mfg-vs-cta { gap: .65rem; padding: .8rem .9rem; flex-wrap: wrap; }
    .mfg-vs-logo { width: 44px; height: 44px; }
    .mfg-vs-badge { width: 28px; height: 28px; font-size: .65rem; }
    .mfg-vs-arrow { display: none; }
    .mfg-vs-body { flex-basis: 100%; order: 4; margin-top: .35rem; }
}
/* Winner pill */
.winner-pill { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .5rem; font-size: .7rem; font-weight: 600; border-radius: 999px; background: rgba(16,185,129,.15); color: #047857; }
/* Panel cards */
.panel1-card { border-top: 3px solid #0d6efd !important; }
.panel2-card { border-top: 3px solid #ffc107 !important; }
.panel-solo-card { border-top: 3px solid #6366f1 !important; }
.panel1-card .card-header { background: linear-gradient(90deg,rgba(13,110,253,.08),#fff) !important; border-bottom: 1px solid rgba(0,0,0,.06) !important; }
.panel2-card .card-header { background: linear-gradient(90deg,rgba(255,193,7,.12),#fff) !important; border-bottom: 1px solid rgba(0,0,0,.06) !important; }
.mfg-card-logo { height: 32px; width: auto; max-width: 160px; object-fit: contain; object-position: left center; display: block; }
.mfg-website-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(0,0,0,.06); color: #6b7280; text-decoration: none; font-size: 1rem; flex-shrink: 0; transition: background .15s,color .15s; }
.mfg-website-btn:hover { background: #0d6efd; color: #fff; }
.info-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .75rem 1.25rem; }
.info-grid .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; font-weight: 500; margin-bottom: .15rem; }
.info-grid .value { font-weight: 600; color: #111827; word-break: break-word; font-size: .95rem; }
/* Panel product cards */
.panel-card { display: flex; flex-direction: column; overflow: hidden; }
.panel-card-head { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .85rem 1.05rem; border-bottom: 1px solid #f3f4f6; }
.panel1-card .panel-card-head { background: linear-gradient(90deg, rgba(13,110,253,.10), rgba(13,110,253,0)); }
.panel2-card .panel-card-head { background: linear-gradient(90deg, rgba(255,193,7,.14), rgba(255,193,7,0)); }
.panel-solo-card .panel-card-head { background: linear-gradient(90deg, rgba(99,102,241,.10), rgba(99,102,241,0)); }
.panel-card-mfg { display: flex; align-items: center; gap: .7rem; min-width: 0; flex: 1; }
.panel-card-logo { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; background: #fff; border-radius: 8px; padding: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.panel-card-letter { width: 40px; height: 40px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #eef2ff; color: #4338ca; font-weight: 700; font-size: 1.1rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.panel1-card .panel-card-letter { background: rgba(13,110,253,.12); color: #0d6efd; }
.panel2-card .panel-card-letter { background: rgba(255,193,7,.18); color: #856404; }
.panel-solo-card .panel-card-letter { background: rgba(99,102,241,.14); color: #4338ca; }
.panel-card-mfg-text { min-width: 0; }
.panel-card-mfg-name { font-weight: 600; font-size: .98rem; color: #111827; line-height: 1.15; }
.panel-card-mfg-meta { font-size: .75rem; color: #6b7280; margin-top: .12rem; }
.panel-card-body { padding: 1.05rem 1.05rem .85rem; flex: 1; }
.panel-card-headline { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: .85rem; }
h2.panel-card-model, .panel-card-model { font-size: 1.45rem; font-weight: 700; color: #111827; line-height: 1.1; margin: 0; word-break: break-word; }
.panel-card-power { display: inline-flex; align-items: baseline; gap: .15rem; padding: .35rem .7rem; border-radius: 10px; line-height: 1; flex-shrink: 0; }
.panel-card-power.panel1-power { background: linear-gradient(135deg, #0d6efd, #0a58ca); color: #fff; box-shadow: 0 4px 10px rgba(13,110,253,.25); }
.panel-card-power.panel2-power { background: linear-gradient(135deg, #ffc107, #e0a800); color: #4d3a00; box-shadow: 0 4px 10px rgba(255,193,7,.30); }
.panel-card-power.panel-solo-power { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; box-shadow: 0 4px 10px rgba(99,102,241,.25); }
.panel-card-power-num { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
.panel-card-power-unit { font-size: .8rem; font-weight: 700; letter-spacing: .02em; opacity: .9; }
.panel-card-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.panel-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .6rem; border-radius: 999px; background: #f3f4f6; color: #374151; font-size: .78rem; font-weight: 500; line-height: 1.2; }
.panel-chip i { color: #6b7280; font-size: .85rem; }
.panel-chip-label { color: #6b7280; }
.panel-chip-val { color: #111827; font-weight: 600; }
.panel-chip-accent { background: rgba(16,185,129,.12); color: #047857; }
.panel-chip-accent i { color: #047857; }
.panel-chip-tier1 { background: rgba(99,102,241,.12); color: #4338ca; }
.panel-chip-tier1 i { color: #4338ca; }
.panel-card-foot { display: flex; flex-direction: column; gap: .55rem; padding: .65rem 1.05rem 1rem; border-top: 1px dashed #f3f4f6; }
.panel-card-pdf-slot { display: inline-flex; align-self: flex-start; }
.panel-card-pdf-slot:empty { display: none; }
/* Datasheet PDF button — Acrobat-style red */
.btn-datasheet { --pdf-red: #d93025; --pdf-red-dark: #b3271e; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; font-size: .825rem; font-weight: 600; line-height: 1.2; color: #fff; background: var(--pdf-red); border: 1px solid var(--pdf-red); border-radius: .4rem; box-shadow: 0 1px 2px rgba(217,48,37,.18); text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.btn-datasheet:hover, .btn-datasheet:focus { background: var(--pdf-red-dark); border-color: var(--pdf-red-dark); color: #fff; box-shadow: 0 3px 8px rgba(217,48,37,.28); transform: translateY(-1px); }
.btn-datasheet:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(217,48,37,.2); }
.btn-datasheet i { font-size: 1rem; line-height: 1; }
.panel-card-detail-btn { width: 100%; justify-content: center; display: inline-flex; align-items: center; }
.panel-card-offers-btn { width: 100%; justify-content: center; display: inline-flex; align-items: center; }
@media (max-width: 575.98px) {
    .panel-card-headline { flex-direction: column; align-items: flex-start; gap: .55rem; }
    .panel-card-model { font-size: 1.25rem; }
    .panel-card-power-num { font-size: 1.35rem; }
}
/* Best-price cards */
.best-price-card { display: flex; align-items: center; gap: .85rem; padding: .9rem 1.1rem; border-radius: 12px; background: #fff; border: 1px solid #e5e7eb; border-left-width: 4px; text-decoration: none; color: #111827; transition: transform .18s, box-shadow .18s, border-color .18s, background .18s; }
.best-price-card-left { border-left-color: #0d6efd; }
.best-price-card-right { border-left-color: #ffc107; }
.best-price-card-solo { border-left-color: #6366f1; }
.best-price-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); color: #111827; }
.best-price-card-left:hover { background: rgba(13,110,253,.04); border-color: rgba(13,110,253,.4); }
.best-price-card-right:hover { background: rgba(255,193,7,.06); border-color: rgba(255,193,7,.5); }
.best-price-card-solo:hover { background: rgba(99,102,241,.04); border-color: rgba(99,102,241,.45); }
.best-price-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.best-price-card-left .best-price-icon { background: rgba(13,110,253,.10); color: #0d6efd; }
.best-price-card-right .best-price-icon { background: rgba(255,193,7,.16); color: #856404; }
.best-price-card-solo .best-price-icon { background: rgba(99,102,241,.12); color: #4f46e5; }
.best-price-body { flex: 1; min-width: 0; }
.best-price-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; font-weight: 600; }
.best-price-amount { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; margin-top: .15rem; }
.best-price-amount-num { font-size: 1.35rem; font-weight: 800; color: #111827; letter-spacing: -.01em; }
.best-price-amount-sub { font-size: .82rem; color: #6b7280; font-weight: 500; }
.best-price-shop { font-size: .78rem; color: #4b5563; margin-top: .2rem; }
.best-price-arrow { color: #9ca3af; font-size: 1.15rem; transition: transform .18s, color .18s; flex-shrink: 0; }
.best-price-card:hover .best-price-arrow { transform: translateX(4px); }
.best-price-card-left:hover .best-price-arrow { color: #0d6efd; }
.best-price-card-right:hover .best-price-arrow { color: #856404; }
.best-price-card-solo:hover .best-price-arrow { color: #4f46e5; }
/* Climate tip */
.climate-tip { display: flex; gap: 1rem; padding: 1rem 1.15rem; border-radius: 12px; background: linear-gradient(135deg, rgba(59,130,246,.05), rgba(245,158,11,.06)); border: 1px solid #e5e7eb; }
.climate-tip-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(59,130,246,.12); color: #1d4ed8; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.climate-tip-body { flex: 1; min-width: 0; }
.climate-tip-title { font-weight: 600; font-size: 1rem; color: #111827; margin-bottom: .35rem; }
.climate-tip-text { font-size: .9rem; line-height: 1.55; color: #4b5563; margin: 0; }
/* Chart cards */
.chart-card { border: 1px solid #e5e7eb; box-shadow: 0 1px 2px rgba(0,0,0,.03); transition: box-shadow .2s,transform .2s; }
.chart-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,.06); }
.chart-card-header { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.1rem; background: #fff; border-bottom: 1px solid #f3f4f6; }
.chart-card-icon { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.chart-card-icon.green { background: rgba(16,185,129,.12); color: #047857; }
.chart-card-icon.blue { background: rgba(59,130,246,.12); color: #1d4ed8; }
.chart-card-icon.amber { background: rgba(245,158,11,.12); color: #b45309; }
.chart-card-icon.purple { background: rgba(99,102,241,.12); color: #4f46e5; }
.chart-card-title { font-size: 1rem; font-weight: 600; line-height: 1.2; margin: 0; color: #111827; }
.chart-card-sub { font-size: .75rem; color: #6b7280; margin-top: .15rem; }
.chart-card .card-body { padding: 1rem 1.1rem 1.25rem; }
.chart-insight { margin-top: .75rem; padding: .55rem .75rem; border-radius: .5rem; background: #f9fafb; font-size: .78rem; color: #4b5563; border-left: 3px solid #e5e7eb; }
.chart-insight strong { color: #111827; }
/* Spec table */
.spec-card .card-header { border-bottom: 1px solid #f3f4f6; padding: .9rem 1.1rem; }
.spec-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(99,102,241,.12); color: #4f46e5; margin-right: .6rem; font-size: .95rem; }
.spec-table { border-collapse: separate; border-spacing: 0; }
.spec-table > thead > tr > th { background: #fff; border-bottom: 1px solid #e5e7eb; padding: .65rem 1rem; font-weight: 600; }
.spec-th-metric { color: #6b7280; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.spec-th.panel1 { background: linear-gradient(180deg,rgba(13,110,253,.08) 0%,#fff 100%) !important; border-bottom: 2px solid #0d6efd !important; }
.spec-th.panel2 { background: linear-gradient(180deg,rgba(255,193,7,.12) 0%,#fff 100%) !important; border-bottom: 2px solid #ffc107 !important; }
.spec-th.panel-solo { background: linear-gradient(180deg,rgba(99,102,241,.08) 0%,#fff 100%) !important; border-bottom: 2px solid #6366f1 !important; }
.spec-group-row > th { background: #f9fafb; color: #374151; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; padding: .55rem 1rem; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.spec-group-icon { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; color: #6366f1; margin-right: .4rem; }
.spec-row > td { padding: .5rem 1rem; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.spec-row:last-child > td { border-bottom: none; }
.spec-metric-cell { display: flex; align-items: center; gap: .55rem; color: #374151; }
.spec-icon-chip { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; background: #f3f4f6; color: #4b5563; font-size: .78rem; flex-shrink: 0; }
.spec-metric-label { font-weight: 500; }
.spec-value-cell { font-size: 1.02rem; }
.spec-value-cell.winner { background: rgba(16,185,129,.08); }
.spec-value-cell.winner .spec-value { font-weight: 700; color: #065f46; }
.spec-delta { display: inline-flex; align-items: center; margin-left: .45rem; padding: .1rem .42rem; font-size: .68rem; font-weight: 700; line-height: 1.2; border-radius: 999px; background: rgba(16,185,129,.18); color: #047857; vertical-align: middle; white-space: nowrap; }
/* Related grid */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: .75rem; }
.related-link { display: flex; align-items: stretch; background: white; border: 1px solid #e5e7eb; border-radius: 10px; text-decoration: none; color: #1f2937; overflow: hidden; transition: border-color .15s,transform .15s,box-shadow .15s; }
.related-link:hover { border-color: #6366f1; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.07); color: #1f2937; }
.related-side { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: .8rem .6rem; min-width: 0; text-align: center; }
.related-side.left { background: #f9fafb; }
.related-logo { height: 26px; width: auto; max-width: 90%; object-fit: contain; display: block; }
.related-letter { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; background: #eef2ff; color: #4338ca; font-weight: 700; font-size: .85rem; }
.related-name { font-weight: 600; font-size: .85rem; line-height: 1.15; color: #1f2937; word-break: break-word; }
.related-vs { display: flex; align-items: center; justify-content: center; padding: 0 .35rem; font-size: .65rem; font-weight: 700; letter-spacing: .05em; color: #6b7280; background: linear-gradient(180deg,#f3f4f6,#e5e7eb); border-left: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb; }
.related-vs span { background: white; border: 1px solid #d1d5db; border-radius: 999px; padding: .15rem .45rem; color: #4b5563; }
.related-link:hover .related-vs span { background: #eef2ff; border-color: #6366f1; color: #4338ca; }
/* Single-panel related card variant */
.related-link.single { display: flex; flex-direction: column; padding: .85rem; align-items: flex-start; gap: .35rem; }
.related-link.single .related-name { font-size: .92rem; }
.related-link.single .related-meta { font-size: .75rem; color: #6b7280; }
.related-link.single .related-power { font-size: 1rem; font-weight: 800; color: #4338ca; }
/* AI summary card */
.ai-summary-card .card-header { background: #f8fafc; border-bottom: 1px solid #e9ecef; }
.summary-pref-saved { transition: opacity .3s; }
.ai-summary-card .summary-body p .ai-spec { font-weight: 700; }
.ai-summary-card .summary-body p .ai-spec-model  { color: #1f2937; }
.ai-summary-card .summary-body p .ai-spec-power  { color: #b45309; }
.ai-summary-card .summary-body p .ai-spec-mass   { color: #4b5563; }
.ai-summary-card .summary-body p .ai-spec-energy { color: #047857; }
.ai-summary-card .summary-body p .ai-spec-years  { color: #1d4ed8; }
.ai-summary-card .summary-body p .ai-spec-year   { color: #6b21a8; }
.ai-summary-card .summary-body p .ai-spec-pct    { color: #111827; }
.ai-tech-topcon { color: #0d6efd; }
.ai-tech-hjt    { color: #0dcaf0; }
.ai-tech-perc   { color: #6c757d; }
.ai-tech-ntype  { color: #b45309; }
.ai-tech-bc     { color: #1f2937; }
.ai-tier1-pill { display: inline-flex; align-items: center; gap: .25rem; padding: .05rem .5rem; font-size: .85em; font-weight: 600; border-radius: 999px; background: rgba(16,185,129,.15); color: #047857; white-space: nowrap; }
/* Rankings */
.ranking-tile { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1rem; text-align: center; }
.ranking-tile .rank-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; margin-bottom: .35rem; }
.ranking-tile .rank-pair { display: flex; justify-content: center; align-items: center; gap: .75rem; }
.ranking-tile .rank-val { font-size: 1.3rem; font-weight: 800; }
.ranking-tile .rank-val.panel1-rank { color: #0d6efd; }
.ranking-tile .rank-val.panel2-rank { color: #b45309; }
.ranking-tile .rank-val.panel-solo-rank { color: #4f46e5; }
.ranking-tile .rank-sep { color: #d1d5db; font-size: .9rem; }
@media (max-width: 575.98px) {
    .spec-row > td, .spec-table > thead > tr > th { padding: .65rem .55rem; }
    .spec-icon-chip { width: 24px; height: 24px; font-size: .75rem; }
    .spec-delta { display: block; margin: .15rem 0 0; font-size: .62rem; }
}
/* Table of contents */
.page-toc { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .65rem .85rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.page-toc-label { font-size: .75rem; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; margin-right: .25rem; display: inline-flex; align-items: center; gap: .35rem; }
.page-toc-link { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px; background: #f3f4f6; color: #374151; font-size: .82rem; font-weight: 500; text-decoration: none; transition: background .15s, color .15s, transform .15s; white-space: nowrap; }
.page-toc-link:hover { background: #eef2ff; color: #4338ca; transform: translateY(-1px); }
.page-toc-link i { font-size: .85rem; }
@media (max-width: 575.98px) {
    .page-toc { padding: .5rem .6rem; gap: .3rem; }
    .page-toc-label { display: none; }
    .page-toc-link { font-size: .75rem; padding: .25rem .55rem; }
}
/* Dimension visual */
.panel-visual { min-width: 50px; min-height: 80px; transition: all 0.3s ease; overflow: hidden; }
.panel-img-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.2; pointer-events: none; }
/* FAQ accordion */
.faq-card .accordion-button { font-weight: 600; padding: 1rem 1.15rem; }
.faq-card .accordion-button:not(.collapsed) { background: rgba(13,110,253,.05); color: #0a58ca; box-shadow: none; }
.faq-card .accordion-button:focus { box-shadow: 0 0 0 .15rem rgba(13,110,253,.18); }
.faq-card .accordion-body { color: #374151; line-height: 1.6; padding: .15rem 1.15rem 1.1rem; }
.faq-card .accordion-item { border: none; border-bottom: 1px solid #f3f4f6; }
.faq-card .accordion-item:last-child { border-bottom: none; }
.faq-card .accordion-body .ai-spec { font-weight: 700; }
.faq-card .accordion-body .ai-spec-model  { color: #1f2937; }
.faq-card .accordion-body .ai-spec-power  { color: #b45309; }
.faq-card .accordion-body .ai-spec-mass   { color: #4b5563; }
.faq-card .accordion-body .ai-spec-energy { color: #047857; }
.faq-card .accordion-body .ai-spec-years  { color: #1d4ed8; }
.faq-card .accordion-body .ai-spec-year   { color: #6b21a8; }
.faq-card .accordion-body .ai-spec-pct    { color: #111827; }
.faq-card .accordion-body .ai-tech-topcon { color: #0d6efd; }
.faq-card .accordion-body .ai-tech-hjt    { color: #0dcaf0; }
.faq-card .accordion-body .ai-tech-perc   { color: #6c757d; }
.faq-card .accordion-body .ai-tech-ntype  { color: #b45309; }
.faq-card .accordion-body .ai-tech-bc     { color: #1f2937; }
.faq-card .accordion-body .ai-tier1-pill {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .05rem .5rem; font-size: .85em; font-weight: 600;
    border-radius: 999px;
    background: rgba(16,185,129,.15); color: #047857;
    white-space: nowrap;
}
.faq-card .accordion-body .ai-tier1-pill .bi { font-size: .85em; }
