/* ==========================================================================
   Listicle Template — Light Theme Design System
   Standalone styles for ranked comparison pages (50-state, city listicles)
   ========================================================================== */

:root {
    --l-accent: #D97736;
    --l-accent-hover: #b8622c;
    --l-accent-light: #e8935a;
    --l-accent-5: rgba(217,119,54,.05);
    --l-accent-10: rgba(217,119,54,.10);
    --l-accent-15: rgba(217,119,54,.15);
    --l-accent-20: rgba(217,119,54,.20);
    --l-bg: #ffffff;
    --l-bg-warm: #FAF9F7;
    --l-bg-card: #ffffff;
    --l-ink: #111111;
    --l-ink-80: rgba(17,17,17,.8);
    --l-ink-70: rgba(17,17,17,.7);
    --l-ink-60: rgba(17,17,17,.6);
    --l-ink-50: rgba(17,17,17,.5);
    --l-ink-40: rgba(17,17,17,.4);
    --l-ink-30: rgba(17,17,17,.3);
    --l-ink-20: rgba(17,17,17,.2);
    --l-ink-10: rgba(17,17,17,.1);
    --l-ink-5: rgba(17,17,17,.05);
    --l-border: #E8E4DF;
    --l-border-light: #F0ECE7;
    --l-green: #16a34a;
    --l-red: #dc2626;
    --l-serif: 'Playfair Display', Georgia, serif;
    --l-sans: 'Montserrat', -apple-system, sans-serif;
    --l-shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --l-shadow-md: 0 4px 6px -1px rgba(0,0,0,.07);
    --l-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08);
    --l-radius: 6px;
    --l-radius-lg: 10px;
}

/* -- Reset for listicle pages -- */
.listicle-page {
    font-family: var(--l-sans);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--l-ink);
    background: var(--l-bg);
}

.listicle-page h1,
.listicle-page h2,
.listicle-page h3,
.listicle-page h4,
.listicle-page h5,
.listicle-page h6 {
    font-family: var(--l-sans);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.05em;
    text-transform: uppercase;
    color: var(--l-ink);
}

.listicle-page p {
    color: var(--l-ink-60);
    margin-bottom: 1em;
    line-height: 1.7;
}

.listicle-page p:last-child { margin-bottom: 0; }

.listicle-page a {
    color: var(--l-accent);
    text-decoration: none;
    transition: color .3s;
}

.listicle-page a:hover { color: var(--l-accent-hover); }

.listicle-page img { max-width: 100%; height: auto; display: block; }
.listicle-page ul, .listicle-page ol { list-style: none; }

.l-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.l-narrow { max-width: 880px; }

/* ── HERO ── */
.l-hero { padding: 96px 0 56px; background: var(--l-bg-warm); border-bottom: 1px solid var(--l-border); }
.l-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--l-accent); margin-bottom: 20px; }
.l-tag .l-pip { width: 6px; height: 6px; background: var(--l-accent); border-radius: 50%; }
.l-hero h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); margin-bottom: 20px; }
.l-hero h1 em { font-family: var(--l-serif); font-style: italic; font-weight: 600; letter-spacing: -.02em; text-transform: none; color: var(--l-accent); }
.l-hero-sub { font-size: 1.0625rem; color: var(--l-ink-50); max-width: 640px; line-height: 1.75; margin-bottom: 36px; }
.l-hero-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: .75rem; font-weight: 600; color: var(--l-ink-40); text-transform: uppercase; letter-spacing: .06em; }
.l-hero-meta span { display: flex; align-items: center; gap: 6px; }
.l-hero-meta .l-pip { width: 5px; height: 5px; background: var(--l-accent); border-radius: 50%; display: inline-block; }

/* ── METHOD BAR ── */
.l-method { padding: 44px 0; background: var(--l-bg); border-bottom: 1px solid var(--l-border); }
.l-method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.l-method-item { text-align: center; padding: 16px; }
.l-method-num { font-family: var(--l-serif); font-size: 2rem; font-weight: 700; color: var(--l-accent); }
.l-method-text { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--l-ink-40); margin-top: 4px; }

/* ── SECTION HEADING ── */
.l-sh { padding: 60px 0 32px; }
.l-sh .l-tag { margin-bottom: 8px; }
.l-sh h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 10px; }
.l-sh h2 em { font-family: var(--l-serif); font-style: italic; font-weight: 600; letter-spacing: -.02em; text-transform: none; color: var(--l-accent); }
.l-sh p { color: var(--l-ink-50); max-width: 560px; }

/* ── RANKED CARD ── */
.l-card { background: var(--l-bg-card); border: 1px solid var(--l-border); border-radius: var(--l-radius-lg); overflow: hidden; transition: border-color .3s, box-shadow .3s; margin-bottom: 36px; }
.l-card:hover { box-shadow: var(--l-shadow-lg); border-color: var(--l-ink-10); }
.l-card.l-r1 { border: 2px solid var(--l-accent); box-shadow: var(--l-shadow-md); }
.l-card.l-r1:hover { box-shadow: 0 12px 24px rgba(217,119,54,.12); }

.l-card-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 14px 24px; border-bottom: 1px solid var(--l-border-light); background: var(--l-bg-warm); }
.l-rank { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; padding: 5px 14px; border-radius: var(--l-radius); }
.l-rank--gold { background: var(--l-accent); color: #fff; }
.l-rank--outline { background: transparent; color: var(--l-ink-40); border: 1px solid var(--l-border); }
.l-ed-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--l-accent); }

.l-card-head { padding: 28px 24px 24px; border-bottom: 1px solid var(--l-border-light); }
.l-logo-w { height: 44px; margin-bottom: 14px; display: flex; align-items: center; }
.l-logo-w img { max-height: 40px; max-width: 200px; object-fit: contain; }
.l-c-sub { font-size: .75rem; font-weight: 700; color: var(--l-accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }

.l-rate-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.l-stars { display: flex; gap: 2px; }
.l-star { width: 15px; height: 15px; background: var(--l-accent); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.l-star-h { width: 15px; height: 15px; background: linear-gradient(90deg, var(--l-accent) 50%, var(--l-border) 50%); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.l-rate-num { font-size: 1rem; font-weight: 800; color: var(--l-ink); }
.l-rate-src { font-size: .6875rem; color: var(--l-ink-40); }

.l-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.l-pill { display: inline-flex; align-items: center; gap: 5px; font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--l-ink-50); border: 1px solid var(--l-border); padding: 4px 10px; border-radius: var(--l-radius); background: var(--l-bg-warm); }
.l-pill .l-d { width: 4px; height: 4px; background: var(--l-accent); border-radius: 50%; }

.l-card-body { padding: 24px; }
.l-desc { font-size: .9375rem; color: var(--l-ink-60); line-height: 1.8; margin-bottom: 28px; }
.l-desc strong { color: var(--l-ink); font-weight: 700; }

/* Specs grid */
.l-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--l-border); border-radius: var(--l-radius); overflow: hidden; margin-bottom: 28px; }
.l-sp { background: var(--l-bg-warm); padding: 16px; text-align: center; }
.l-sp-l { font-size: .5625rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--l-ink-40); margin-bottom: 5px; }
.l-sp-v { font-size: 1.25rem; font-weight: 900; letter-spacing: -.03em; color: var(--l-ink); }
.l-sp-v.l-ac { color: var(--l-accent); }

/* Pros / Cons */
.l-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.l-pc-h { font-size: .625rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.l-pc-h.l-pro { color: var(--l-green); }
.l-pc-h.l-con { color: var(--l-red); }
.l-pl li { font-size: .8125rem; color: var(--l-ink-60); padding: 4px 0 4px 16px; position: relative; line-height: 1.55; }
.l-pl.l-pg li::before { content: '\2713'; position: absolute; left: 0; color: var(--l-green); font-weight: 700; font-size: .7rem; }
.l-pl.l-pr li::before { content: '\2717'; position: absolute; left: 0; color: var(--l-red); font-weight: 700; font-size: .7rem; }

/* Quote */
.l-qt { border-left: 3px solid var(--l-accent); padding: 16px 20px; margin-bottom: 28px; background: var(--l-accent-5); border-radius: 0 var(--l-radius) var(--l-radius) 0; }
.l-qt p { font-size: .875rem; font-family: var(--l-serif); font-style: italic; color: var(--l-ink-70); line-height: 1.8; margin-bottom: 6px; }
.l-qt-s { font-size: .625rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--l-accent); }

/* CTA buttons */
.l-ctas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.l-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--l-sans); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; text-decoration: none; border: none; cursor: pointer; transition: all .3s; white-space: nowrap; }
.l-btn-p { background: var(--l-accent); color: #fff; font-size: .75rem; padding: 0 32px; height: 3rem; border-radius: var(--l-radius); }
.l-btn-p:hover { background: var(--l-accent-hover); color: #fff; }
.l-btn-o { background: transparent; color: var(--l-ink); border: 1.5px solid var(--l-border); font-size: .75rem; padding: 0 24px; height: 3rem; border-radius: var(--l-radius); }
.l-btn-o:hover { border-color: var(--l-accent); color: var(--l-accent); }
.l-btn-ph { background: var(--l-ink); color: #fff; font-size: .8125rem; font-weight: 800; padding: 0 28px; height: 3rem; border-radius: var(--l-radius); letter-spacing: .04em; }
.l-btn-ph:hover { background: #333; color: #fff; }
.l-btn-ph svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.l-fn { font-size: .6875rem; color: var(--l-ink-40); margin-bottom: 20px; }

/* ── COMPARISON TABLE ── */
.l-tw { overflow-x: auto; border: 1px solid var(--l-border); border-radius: var(--l-radius-lg); margin-bottom: 40px; box-shadow: var(--l-shadow-sm); }
.l-tw table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: .8125rem; }
.l-tw thead th { background: var(--l-bg-warm); padding: 14px 16px; text-align: left; font-weight: 800; font-size: .625rem; text-transform: uppercase; letter-spacing: .1em; color: var(--l-accent); border-bottom: 1px solid var(--l-border); }
.l-tw tbody td { padding: 12px 16px; border-bottom: 1px solid var(--l-border-light); color: var(--l-ink-60); }
.l-tw tbody tr:last-child td { border-bottom: none; }
.l-tw tbody tr:hover td { background: var(--l-accent-5); }
.l-tc { font-weight: 800; color: var(--l-ink); white-space: nowrap; }
.l-tg { color: var(--l-green); font-weight: 800; }
.l-tr { color: var(--l-red); font-weight: 800; }
.l-ta { color: var(--l-accent); font-weight: 800; }

/* ── CHARTS ── */
.l-charts { padding: 56px 0 32px; }
.l-cg { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 36px; }
.l-cb { border: 1px solid var(--l-border); background: var(--l-bg); padding: 24px; border-radius: var(--l-radius-lg); box-shadow: var(--l-shadow-sm); }
.l-cb h4 { font-size: .625rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px; color: var(--l-accent); }
.l-bc { display: flex; flex-direction: column; gap: 14px; }
.l-br { display: flex; align-items: center; gap: 10px; }
.l-bl { font-size: .6875rem; font-weight: 600; color: var(--l-ink-50); width: 110px; flex-shrink: 0; text-align: right; }
.l-bt { flex: 1; height: 28px; background: var(--l-ink-5); border-radius: 3px; overflow: hidden; }
.l-bf { height: 100%; border-radius: 3px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-size: .625rem; font-weight: 800; color: #fff; transition: width 1.5s cubic-bezier(.22,1,.36,1); }
.l-bf-a { background: var(--l-accent); }
.l-bf-g { background: var(--l-green); }
.l-bf-d { background: var(--l-ink-20); }

.l-dw { display: flex; align-items: center; justify-content: center; gap: 32px; min-height: 200px; }
.l-ds { width: 180px; height: 180px; }
.l-dl { display: flex; flex-direction: column; gap: 8px; }
.l-dli { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--l-ink-50); }
.l-dld { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }

/* ── REVIEW CAROUSEL ── */
.l-car-sec { padding: 48px 0; border-top: 1px solid var(--l-border); background: var(--l-bg-warm); }
.l-car { position: relative; overflow: hidden; }
.l-car-t { display: flex; transition: transform .4s ease; }
.l-car-s { min-width: 100%; padding: 0 4px; }
.l-car-c { border: 1px solid var(--l-border); background: var(--l-bg); padding: 28px 24px; border-radius: var(--l-radius-lg); box-shadow: var(--l-shadow-sm); }
.l-car-c .l-stars { margin-bottom: 10px; }
.l-car-c .l-ct { font-size: .9375rem; font-family: var(--l-serif); font-style: italic; color: var(--l-ink-60); line-height: 1.8; margin-bottom: 14px; }
.l-car-c .l-ca { font-size: .6875rem; font-weight: 800; color: var(--l-accent); text-transform: uppercase; letter-spacing: .06em; }
.l-car-c .l-cc { font-size: .625rem; color: var(--l-ink-40); margin-top: 2px; }

.l-cnav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; }
.l-cbtn { width: 36px; height: 36px; border: 1px solid var(--l-border); border-radius: var(--l-radius); background: var(--l-bg); color: var(--l-ink); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .2s; }
.l-cbtn:hover { border-color: var(--l-accent); color: var(--l-accent); }
.l-cdots { display: flex; gap: 5px; }
.l-cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--l-ink-10); cursor: pointer; transition: background .2s; }
.l-cdot.on { background: var(--l-accent); }

/* ── FAQ ── */
.l-faq { padding: 48px 0 64px; }
.l-fi { border: 1px solid var(--l-border); border-radius: var(--l-radius); margin-bottom: 8px; transition: border-color .2s; overflow: hidden; }
.l-fi:hover { border-color: var(--l-ink-20); }
.l-fq { padding: 16px 20px; font-size: .875rem; font-weight: 700; color: var(--l-ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--l-bg-warm); user-select: none; text-transform: none; letter-spacing: 0; }
.l-fq::after { content: '+'; font-size: 1.25rem; color: var(--l-accent); flex-shrink: 0; margin-left: 16px; font-weight: 300; }
.l-fi.open .l-fq::after { content: '\2212'; }
.l-fa { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.l-fi.open .l-fa { max-height: 500px; }
.l-fa-i { padding: 0 20px 16px; }
.l-fa-i p { font-size: .8125rem; color: var(--l-ink-50); line-height: 1.75; }

/* ── SEO ARTICLE ── */
.l-art { padding: 56px 0; border-top: 1px solid var(--l-border); }
.l-art h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 20px; }
.l-art h3 { font-family: var(--l-serif); font-size: 1.25rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--l-accent); margin: 36px 0 12px; font-style: italic; }
.l-art p { font-size: .9375rem; color: var(--l-ink-60); line-height: 1.85; margin-bottom: 16px; }
.l-art strong { color: var(--l-ink); }

.l-toc { border: 1px solid var(--l-border); padding: 20px 24px; margin-bottom: 32px; background: var(--l-bg-warm); border-radius: var(--l-radius-lg); }
.l-toc h4 { font-size: .625rem; font-weight: 900; color: var(--l-accent); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.l-toc ol { counter-reset: toc; padding-left: 0; }
.l-toc li { counter-increment: toc; font-size: .8125rem; color: var(--l-ink-50); padding: 4px 0; cursor: pointer; transition: color .15s; }
.l-toc li::before { content: counter(toc) ". "; color: var(--l-accent); font-weight: 800; }
.l-toc li:hover { color: var(--l-accent); }

/* ── STICKY PHONE ── */
.l-sticky { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: var(--l-accent); padding: 12px 16px; text-align: center; box-shadow: 0 -2px 12px rgba(0,0,0,.15); }
.l-sticky a { color: #fff; font-family: var(--l-sans); font-size: .875rem; font-weight: 800; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; text-transform: uppercase; letter-spacing: .06em; }
.l-sticky svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; }

/* ── DISCLAIMER ── */
.l-disc { padding: 48px 0; border-top: 1px solid var(--l-border); background: var(--l-bg-warm); }
.l-disc h4 { font-size: .625rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--l-accent); margin-bottom: 12px; }
.l-disc p { font-size: .6875rem; color: var(--l-ink-40); line-height: 1.9; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .l-cg { grid-template-columns: 1fr; }
    .l-dw { flex-direction: column; }
    .l-sticky { display: block; }
    .listicle-page { padding-bottom: 56px; }
}

@media (max-width: 640px) {
    .l-hero { padding: 64px 0 40px; }
    .l-card-bar, .l-card-head, .l-card-body { padding-left: 16px; padding-right: 16px; }
    .l-method-grid { grid-template-columns: repeat(2, 1fr); }
    .l-specs { grid-template-columns: repeat(2, 1fr); }
    .l-pc { grid-template-columns: 1fr; }
    .l-bl { width: 80px; font-size: .6rem; }
    .l-hero h1 { font-size: 1.75rem; }
}
