/* ═══════════════════════════════════════════════════════════════════
   EQ Listicle Pro — Public CSS v2
   Brand color injected as --eq-accent via wp_add_inline_style.
   All design tokens reference CSS variables — never hardcoded.
═══════════════════════════════════════════════════════════════════ */

/* ── Reset/scope ───────────────────────────────────────────────── */
:root {
    --eq-accent:      #ff8c00;
    --eq-accent-dark: #cc7000;
    --eq-accent-bg:   #fff8f0;
    --eq-green:       #1a9c3e;
    --eq-red:         #d63031;
    --eq-text:        #1a1a1a;
    --eq-muted:       #555;
    --eq-border:      #e8e8e8;
    --eq-card-bg:     #ffffff;
    --eq-radius:      10px;
    --eq-shadow:      0 2px 12px rgba(0,0,0,.08);
    --eq-font:        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.eq-listicle-wrap *,
.eq-listicle-wrap *::before,
.eq-listicle-wrap *::after { box-sizing: border-box; }

.eq-listicle-wrap {
    position: relative;
    font-family: var(--eq-font);
    color: var(--eq-text);
    line-height: 1.6;
}

/* ── Section common ─────────────────────────────────────────────── */
.eq-listicle-section { margin: 2em 0; }

.eq-section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--eq-accent);
    color: #fff;
    font-size: .75em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 5px 12px;
    border-radius: 4px 4px 0 0;
    margin-bottom: 0;
}

.eq-section-h2 {
    font-size: 1.35em;
    margin: 0 0 .9em;
    color: var(--eq-text);
}

/* ═══════════════════════════════════════════════════════════════════
   GLANCE / SUMMARY TABLE
═══════════════════════════════════════════════════════════════════ */
.eq-glance-wrap {
    border: 1px solid var(--eq-border);
    border-radius: var(--eq-radius);
    overflow: hidden;
    box-shadow: var(--eq-shadow);
}

.eq-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.eq-glance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9em;
    background: var(--eq-card-bg);
}

.eq-glance-table thead th {
    background: #f5f5f5;
    padding: 11px 14px;
    text-align: left;
    font-size: .8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--eq-muted);
    border-bottom: 2px solid var(--eq-border);
    white-space: nowrap;
}

.eq-glance-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
}

.eq-glance-table tbody tr:last-child td { border-bottom: none; }
.eq-glance-table tbody tr:hover td { background: var(--eq-accent-bg); transition: background .15s; }

.eq-tc-rank {
    font-size: 1.2em;
    font-weight: 900;
    color: var(--eq-accent);
    text-align: center;
    width: 36px;
}

.eq-tc-img img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 7px;
    display: block;
}

.eq-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 7px;
    font-size: 1.5em;
}

.eq-tc-link {
    font-weight: 700;
    color: var(--eq-text);
    text-decoration: none;
}
.eq-tc-link:hover { color: var(--eq-accent); }

.eq-tc-rating { white-space: nowrap; }
.eq-tc-btn { white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════════ */
.eq-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--eq-accent);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background .18s, transform .12s, box-shadow .18s;
    font-family: var(--eq-font);
    line-height: 1.2;
}

.eq-btn:hover {
    background: var(--eq-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, .35);
}

.eq-btn:active { transform: translateY(0); box-shadow: none; }

.eq-btn-sm { padding: 7px 14px; font-size: .8em; }
.eq-btn-cta {
    padding: 14px 28px;
    font-size: 1em;
    margin-top: 16px;
    border-radius: 8px;
    letter-spacing: .3px;
}

/* ═══════════════════════════════════════════════════════════════════
   BADGE
═══════════════════════════════════════════════════════════════════ */
.eq-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: .7em;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .6px;
    vertical-align: middle;
    margin-left: 8px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   STARS / RATING
═══════════════════════════════════════════════════════════════════ */
.eq-stars { display: inline-flex; gap: 1px; }
.eq-s { font-size: 1.05em; line-height: 1; }
.eq-s-full  { color: var(--eq-accent); }
.eq-s-half  { color: var(--eq-accent); opacity: .6; }
.eq-s-empty { color: #d0d0d0; }

.eq-rnum {
    font-size: .82em;
    font-weight: 700;
    color: var(--eq-muted);
    margin-left: 5px;
}

/* ═══════════════════════════════════════════════════════════════════
   PRODUCT CARDS
═══════════════════════════════════════════════════════════════════ */
.eq-list-section { display: flex; flex-direction: column; gap: 28px; }

.eq-item-card {
    background: var(--eq-card-bg);
    border: 1px solid var(--eq-border);
    border-radius: var(--eq-radius);
    overflow: hidden;
    box-shadow: var(--eq-shadow);
    transition: box-shadow .2s;
}

.eq-item-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.12); }

/* Card header */
.eq-item-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #fafafa 0%, var(--eq-accent-bg) 100%);
    border-bottom: 2px solid var(--eq-border);
    position: relative;
}

.eq-item-header::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--eq-accent);
    border-radius: 0;
}

.eq-rank-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--eq-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1em;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255,140,0,.4);
}

.eq-item-title {
    flex: 1;
    font-size: 1.15em;
    font-weight: 800;
    margin: 0;
    color: var(--eq-text);
    line-height: 1.3;
}

/* Card body */
.eq-item-body {
    display: flex;
    gap: 22px;
    padding: 20px;
    align-items: flex-start;
}

/* Product image */
.eq-item-fig {
    flex-shrink: 0;
    width: 200px;
    margin: 0;
}

.eq-item-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    background: #f9f9f9;
    border: 1px solid var(--eq-border);
    display: block;
}

/* Content area */
.eq-item-content { flex: 1; min-width: 0; }

/* Rating bar */
.eq-rating-bar-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.eq-rating-bar {
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    flex: 1;
    min-width: 80px;
    max-width: 180px;
    overflow: hidden;
}

.eq-rating-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--eq-accent) 0%, var(--eq-accent-dark) 100%);
    border-radius: 3px;
    transition: width .5s ease;
}

/* Description */
.eq-desc { margin: 0 0 12px; color: var(--eq-muted); font-size: .95em; line-height: 1.65; }

/* Features list */
.eq-features {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
}

.eq-features li {
    font-size: .85em;
    color: var(--eq-text);
    padding: 3px 0 3px 18px;
    position: relative;
}

.eq-features li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--eq-accent);
    font-size: .78em;
    top: 5px;
}

/* Pros / Cons */
.eq-proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 12px 0 16px;
    background: #f9f9f9;
    border: 1px solid var(--eq-border);
    border-radius: 8px;
    padding: 14px;
}

.eq-pc-head {
    font-size: .8em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}

.eq-pros-head { color: var(--eq-green); }
.eq-cons-head { color: var(--eq-red); }

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

.eq-pros li, .eq-cons li {
    font-size: .85em;
    padding: 3px 0;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.eq-pros li::before {
    content: '+';
    color: var(--eq-green);
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

.eq-cons li::before {
    content: '−';
    color: var(--eq-red);
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Verdict */
.eq-verdict {
    background: var(--eq-accent-bg);
    border-left: 3px solid var(--eq-accent);
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
    font-size: .88em;
    color: var(--eq-text);
    margin: 10px 0 14px;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════
   INLINE TOC
═══════════════════════════════════════════════════════════════════ */
.eq-inline-toc {
    background: #f8f8f8;
    border: 1px solid var(--eq-border);
    border-top: 3px solid var(--eq-accent);
    border-radius: 0 0 var(--eq-radius) var(--eq-radius);
    padding: 16px 20px 18px;
    margin: 1.5em 0 2em;
}

.eq-toc-title {
    font-weight: 800;
    font-size: .85em;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--eq-accent);
    margin-bottom: 10px;
}

.eq-toc-list {
    margin: 0;
    padding-left: 20px;
    columns: 2;
    column-gap: 24px;
}

.eq-toc-list li { margin-bottom: 5px; break-inside: avoid; }

.eq-toc-list a {
    text-decoration: none;
    color: var(--eq-text);
    font-size: .9em;
    transition: color .15s;
}

.eq-toc-list a:hover { color: var(--eq-accent); }
.eq-toc-l3 { font-size: .85em; color: var(--eq-muted); }

/* ═══════════════════════════════════════════════════════════════════
   BUYING GUIDE
═══════════════════════════════════════════════════════════════════ */
.eq-listicle-guide {
    background: var(--eq-accent-bg);
    border: 1px solid #ffd699;
    border-radius: var(--eq-radius);
    padding: 22px 26px;
}

.eq-listicle-guide h2 { color: var(--eq-accent-dark); margin-top: 0; }
.eq-listicle-guide-content { font-size: .95em; line-height: 1.75; }

/* ═══════════════════════════════════════════════════════════════════
   COMPARISON TABLE
═══════════════════════════════════════════════════════════════════ */
.eq-comparison-wrap {
    border: 1px solid var(--eq-border);
    border-radius: var(--eq-radius);
    overflow: hidden;
    box-shadow: var(--eq-shadow);
}

.eq-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9em;
    background: var(--eq-card-bg);
}

.eq-comparison-table thead th {
    background: var(--eq-accent);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-size: .82em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.eq-comparison-table tbody td {
    padding: 11px 16px;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
}

.eq-comparison-table tbody tr:last-child td { border-bottom: none; }
.eq-comparison-table tbody tr:nth-child(even) td { background: #fafafa; }
.eq-comparison-table tbody tr:hover td { background: var(--eq-accent-bg); }

.eq-ct-mini {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .85em;
}

.eq-ct-mini li { padding: 1px 0; }
.eq-ct-mini li::before { content: '• '; color: var(--eq-accent); }

/* ═══════════════════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════════════════ */
.eq-faq-section { border: 1px solid var(--eq-border); border-radius: var(--eq-radius); overflow: hidden; box-shadow: var(--eq-shadow); }
.eq-faq-section .eq-section-h2 { padding: 16px 20px 0; }

.eq-faq-item { border-top: 1px solid var(--eq-border); }
.eq-faq-item:first-of-type { border-top: none; }

.eq-faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: .95em;
    font-weight: 700;
    color: var(--eq-text);
    font-family: var(--eq-font);
    transition: background .15s;
}

.eq-faq-q:hover { background: var(--eq-accent-bg); }
.eq-faq-q[aria-expanded="true"] { color: var(--eq-accent); background: var(--eq-accent-bg); }

.eq-faq-qtext { flex: 1; }

.eq-faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--eq-border);
    flex-shrink: 0;
    position: relative;
    transition: background .2s, transform .25s;
}

.eq-faq-icon::before,
.eq-faq-icon::after {
    content: '';
    position: absolute;
    background: var(--eq-muted);
    border-radius: 2px;
}

.eq-faq-icon::before { width: 10px; height: 2px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.eq-faq-icon::after  { width: 2px; height: 10px; top: 50%; left: 50%; transform: translate(-50%,-50%); transition: opacity .2s; }

.eq-faq-q[aria-expanded="true"] .eq-faq-icon {
    background: var(--eq-accent);
    transform: rotate(45deg);
}
.eq-faq-q[aria-expanded="true"] .eq-faq-icon::before,
.eq-faq-q[aria-expanded="true"] .eq-faq-icon::after { background: #fff; }

.eq-faq-a { background: #fafafa; border-top: 1px solid var(--eq-border); }
.eq-faq-body { padding: 14px 20px; font-size: .92em; line-height: 1.7; color: var(--eq-muted); }

/* ═══════════════════════════════════════════════════════════════════
   SHARE BAR
═══════════════════════════════════════════════════════════════════ */
.eq-share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: #fafafa;
    border: 1px solid var(--eq-border);
    border-radius: var(--eq-radius);
    margin: 1.5em 0;
}

.eq-share-label {
    font-size: .82em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--eq-muted);
    flex-shrink: 0;
}

.eq-share-btns { display: flex; flex-wrap: wrap; gap: 7px; }

.eq-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 6px;
    font-size: .82em;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity .15s, transform .12s;
    color: #fff;
    font-family: var(--eq-font);
    line-height: 1;
}

.eq-share-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.eq-share-btn:hover { opacity: .88; transform: translateY(-1px); }
.eq-share-btn:active { transform: translateY(0); }

.eq-sh-native   { background: var(--eq-accent); }
.eq-sh-twitter  { background: #000; }
.eq-sh-facebook { background: #1877f2; }
.eq-sh-whatsapp { background: #25d366; }
.eq-sh-linkedin { background: #0a66c2; }
.eq-sh-email    { background: #555; }
.eq-sh-copy     { background: #444; }

.eq-share-expanded { display: flex; flex-wrap: wrap; gap: 7px; }

/* ═══════════════════════════════════════════════════════════════════
   DESKTOP SIDEBAR TOC
═══════════════════════════════════════════════════════════════════ */
.eq-toc-sidebar {
    display: none; /* shown ≥ 1024px */
    position: fixed;
    top: 100px;
    right: 0;
    width: 230px;
    background: var(--eq-card-bg);
    border: 1px solid var(--eq-border);
    border-right: none;
    border-radius: var(--eq-radius) 0 0 var(--eq-radius);
    box-shadow: -3px 3px 18px rgba(0,0,0,.09);
    max-height: 70vh;
    overflow-y: auto;
    z-index: 900;
    font-size: .82em;
}

.eq-toc-inner { padding: 14px 16px; }

.eq-toc-title {
    display: block;
    font-size: .76em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--eq-accent);
    margin-bottom: 10px;
}

.eq-toc-sidebar ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}

.eq-toc-sidebar li {
    counter-increment: toc;
    margin-bottom: 4px;
}

.eq-toc-sidebar a {
    display: block;
    padding: 4px 8px 4px 0;
    text-decoration: none;
    color: var(--eq-text);
    border-left: 3px solid transparent;
    padding-left: 8px;
    border-radius: 0 4px 4px 0;
    transition: color .15s, border-color .15s, background .15s;
    font-size: .92em;
}

.eq-toc-sidebar a:hover,
.eq-toc-sidebar a.eq-toc-active {
    color: var(--eq-accent);
    border-left-color: var(--eq-accent);
    background: var(--eq-accent-bg);
}

.eq-toc-l3 { padding-left: 16px !important; font-size: .88em !important; color: var(--eq-muted) !important; }

/* ═══════════════════════════════════════════════════════════════════
   MOBILE BOTTOM BAR
═══════════════════════════════════════════════════════════════════ */
.eq-mobile-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    display: flex;
    z-index: 1000;
    box-shadow: 0 -3px 16px rgba(0,0,0,.18);
    border-top: 1px solid rgba(255,255,255,.15);
}

.eq-mobile-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 14px 10px;
    font-size: .88em;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: var(--eq-font);
    text-decoration: none;
    line-height: 1;
}

.eq-toc-trigger { background: #1a1a1a; color: #fff; }
.eq-toc-trigger:hover { background: #333; }

.eq-picks-btn {
    background: var(--eq-accent);
    color: #fff !important;
    text-decoration: none !important;
}

.eq-picks-btn:hover { background: var(--eq-accent-dark); }

/* Honour the HTML hidden attribute globally — prevents fixed/absolute elements
   from intercepting clicks when they are logically hidden */
[hidden] { display: none !important; }

/* TOC Drawer (mobile) */
.eq-toc-drawer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--eq-card-bg);
    z-index: 1100;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 30px rgba(0,0,0,.22);
    max-height: 75vh;
    transition: transform .3s ease;
}

.eq-toc-drawer-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 75vh;
}

.eq-toc-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--eq-border);
    font-weight: 800;
    font-size: .95em;
    flex-shrink: 0;
}

.eq-toc-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--eq-muted);
    display: flex;
    align-items: center;
}

.eq-toc-close:hover { color: var(--eq-text); }

.eq-toc-drawer-links {
    overflow-y: auto;
    padding: 8px 0 24px;
    -webkit-overflow-scrolling: touch;
}

.eq-toc-drawer-links ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eq-toc-drawer-links li { border-bottom: 1px solid #f5f5f5; }

.eq-toc-drawer-links a {
    display: block;
    padding: 13px 20px;
    text-decoration: none;
    color: var(--eq-text);
    font-size: .95em;
    font-weight: 600;
    transition: color .15s, background .15s;
}

.eq-toc-drawer-links a:hover { color: var(--eq-accent); background: var(--eq-accent-bg); }
.eq-toc-drawer-links .eq-toc-l3 a { padding-left: 36px; font-size: .88em; font-weight: 400; color: var(--eq-muted); }

/* Drawer backdrop */
.eq-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1090;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.eq-drawer-backdrop.eq-visible {
    opacity: 1;
    pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════ */

/* Large screens — show sidebar, hide mobile bar */
@media (min-width: 1025px) {
    .eq-toc-sidebar  { display: block; }
    .eq-mobile-bar   { display: none; }
    .eq-listicle-wrap { padding-right: 248px; }
    .eq-toc-list     { columns: 2; }
}

/* Medium screens */
@media (max-width: 1024px) {
    .eq-toc-sidebar { display: none; }
    .eq-listicle-wrap { padding-bottom: 58px; }
}

/* Tablet */
@media (max-width: 768px) {
    .eq-item-body { flex-direction: column; }
    .eq-item-fig  { width: 100%; }
    .eq-item-img  { height: 200px; width: auto; max-width: 100%; margin: 0 auto; }
    .eq-features  { grid-template-columns: 1fr; }
    .eq-toc-list  { columns: 1; }
    /* Hide rating col on small table */
    .eq-glance-table th:nth-child(4),
    .eq-glance-table td:nth-child(4) { display: none; }
}

/* Mobile */
@media (max-width: 520px) {
    .eq-item-header { padding: 12px 14px; }
    .eq-item-body   { padding: 14px; gap: 14px; }
    .eq-btn-cta     { display: block; text-align: center; width: 100%; }
    .eq-proscons    { grid-template-columns: 1fr; }
    .eq-share-bar   { flex-direction: column; align-items: flex-start; }
    .eq-share-btn span { display: none; } /* icon-only on very small screens */
    .eq-share-btn { padding: 9px 11px; }
}

/* Print */
@media print {
    .eq-mobile-bar, .eq-toc-sidebar, .eq-toc-drawer, .eq-share-bar { display: none !important; }
    .eq-listicle-wrap { padding: 0 !important; }
}

/* Rating note (author explanation) */
.eq-rating-note {
    font-size: .85em;
    color: #888;
    margin: -4px 0 10px;
    font-style: italic;
}
