/* =========================================================
   LADDPRISER.NU – Huvudstylesheet
   Uppdaterad 2026 – Hero, FAQ-accordion, ordlista, undersidor
   ========================================================= */

/* ---------- CSS-variabler ---------- */
:root {
    --bg-body: #f5f5f5;
    --bg-card: #ffffff;
    --card-bg: #ffffff;
    --bg-sidebar: #fafafa;
    --text-main: #1a1a1a;
    --heading: #1a1a1a;
    --text-muted: #555;
    --muted: #555;
    --text-light: #888;
    --accent: #1a73e8;
    --accent-hover: #1558b0;
    --accent-soft: #e8f0fe;
    --green: #34a853;
    --green-soft: #e6f4ea;
    --orange: #f29900;
    --orange-soft: #fef3e0;
    --red: #ea4335;
    --red-soft: #fce8e6;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.10);
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 1140px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --hero-gradient: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 160px; }
body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ---------- Skip Navigation ---------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 200;
    font-weight: 600;
    font-size: 0.9rem;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0.5rem;
    color: #fff;
    text-decoration: none;
}

ul { margin: 0.8rem 0; padding-left: 1.5em; }
li { margin-bottom: 0.5rem; }

/* ---------- Reading Progress Bar ---------- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ---------- Layout ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.2rem; }
.content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
    margin-bottom: 3rem;
}
.main-content { min-width: 0; }
.sidebar { position: sticky; top: 140px; }

/* ---------- Hero Section ---------- */
.hero {
    background: linear-gradient(135deg, #0f2850 0%, #143c6e 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #fff;
}

/* Sub-page compact hero */
.hero-sub {
    padding: 1.5rem 0 1.2rem;
    margin-bottom: 0;
}
.hero .hero-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    opacity: 0.92;
    margin: 0 0 1.8rem;
    max-width: 600px;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.hero-stat {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
}
.hero-stat .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.2rem;
}
.hero-stat .stat-label {
    font-size: 0.82rem;
    opacity: 0.85;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    padding: 0;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { margin: 0 0.3em; color: var(--text-light); }

/* ---------- Header / Navigation ---------- */
header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.6rem 0 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Brand in sticky header */
.header-nav-row {
    display: grid;
    grid-template-columns: 17rem 1fr;
    grid-template-areas:
        'brand nav'
        'brand breadcrumb';
    align-items: start;
    row-gap: 0.45rem;
    gap: 1rem;
}

.sticky-brand {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    grid-area: brand;
    align-self: stretch;
}
.brand-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: inline-block;
}
span.brand-link {
    margin: 0;
    font-size: 1.25rem;
}
.brand-link:hover {
    color: var(--accent);
    text-decoration: none;
}

.brand-link.logo-link {
    line-height: 1;
}

.brand-link.logo-link img {
    height: 120px;
    width: auto;
    display: block;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.header-main { width: 100%; }
header h1 { font-size: 1.25rem; }

/* ---------- Nav Pills ---------- */
.nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    flex: 1;
    grid-area: nav;
}

.header-nav-row .breadcrumb {
    grid-area: breadcrumb;
}
.nav-link-pill {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-main);
    background: var(--bg-body);
    border: 1px solid var(--border);
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.nav-link-pill:hover, .nav-link-pill.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--bg-body);
    color: var(--text-main);
    border-radius: 8px;
    padding: 0.3rem 0.55rem;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.nav-dropdown {
    position: relative;
}
.nav-dropdown-title {
    display: none;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0.35rem 0 0.15rem;
}
.nav-dropdown-toggle {
    cursor: default;
    user-select: none;
    padding-right: 1.4rem;
    position: relative;
}
.nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-55%) rotate(45deg);
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    opacity: 0.6;
    transition: transform 0.18s;
}
.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown:focus-within .nav-dropdown-toggle::after {
    transform: translateY(-30%) rotate(225deg);
    opacity: 1;
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    min-width: 200px;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 12px;
    background: var(--bg-card);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
    z-index: 120;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu a {
    display: block;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    border-left: 2px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nav-dropdown-menu a:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-left-color: var(--accent);
    text-decoration: none;
}
.nav-dropdown-menu a.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
    border-left-color: var(--accent);
}

/* ---------- Cards ---------- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-hover); }
.card h2 { margin-top: 0; font-size: 1.35rem; font-weight: 700; }
.card h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.card-subtitle { color: var(--text-muted); font-size: 0.92rem; margin: 0.2rem 0 0; }

/* ---- Sidebar Cards ---- */
.sidebar .card { background: var(--bg-sidebar); }
.sidebar .card h3 { font-size: 1rem; margin-top: 0; }
.sidebar .card h2 { font-size: 1rem; }
.sidebar .card ul { font-size: 0.92rem; }

/* ---------- Badge ---------- */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ---------- Cost Highlight Boxes ---------- */
.cost-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.cost-box {
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
}
.cost-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; margin-bottom: 0.3rem; }
.cost-value { font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.info-value { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ---------- Tips ---------- */
.tip-list { display: grid; gap: 0.6rem; }
.tip-chip {
    background: var(--green-soft);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
    border-left: 3px solid var(--green);
}

/* ---------- Info Row ---------- */
.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.2rem 0;
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    padding: 1rem;
}
.info-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- Quote Box ---------- */
.quote-box {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.2rem;
    margin: 1.2rem 0;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* ---------- Pill Links ---------- */
.pill-link-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.2rem;
}
.pill-link {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.pill-link:hover {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

/* ---------- CTA Box ---------- */
.cta-box {
    background: var(--orange-soft);
    border-left: 3px solid var(--orange);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.2rem;
    margin: 1.2rem 0;
}
.cta-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.cta-pill {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: var(--orange);
    color: #fff;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.cta-pill:hover { background: #e08900; color: #fff; text-decoration: none; }

/* ---------- Legend ---------- */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0;
    font-size: 0.82rem;
}
.legend span {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}
.legend-home { background: var(--green-soft); color: var(--green); }
.legend-public { background: var(--accent-soft); color: var(--accent); }
.legend-fast { background: var(--orange-soft); color: var(--orange); }

/* ---------- Price Table ---------- */
.price-table-wrapper { overflow-x: auto; margin: 1rem 0; }
.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.price-table th, .price-table td {
    padding: 0.7rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.price-table thead th {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    position: sticky;
    top: 0;
}
.price-table tbody tr:hover { background: var(--accent-soft); }
.highlight-row { background: var(--green-soft); }
.highlight-row:hover { background: #d4edda !important; }
.price-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ---------- Calculator ---------- */
.calc-section { border: 2px solid var(--accent); }
.calc-data-meta {
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.calc-field { display: flex; flex-direction: column; gap: 0.3rem; }
.calc-field.full-width { grid-column: 1 / -1; }
.calc-field label { font-size: 0.85rem; font-weight: 600; color: var(--text-main); }
.calc-field label small { font-weight: 400; color: var(--text-muted); }
.calc-field select, .calc-field input[type="number"], .calc-field input[type="text"] {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font);
    background: #fff;
    transition: border-color 0.2s;
}
.calc-field select:focus, .calc-field input[type="number"]:focus, .calc-field input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}
.range-row { display: flex; align-items: center; gap: 0.8rem; }
.range-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.range-value { font-weight: 600; font-size: 0.95rem; min-width: 3em; text-align: right; }
.season-toggle { display: flex; gap: 0.5rem; }
.season-toggle button {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-family: var(--font);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}
.season-toggle button.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Calculator Results */
.calc-results { margin-top: 1.5rem; }
.calc-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}
.calc-summary-box {
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
}
.calc-operator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
    margin: 1rem 0;
}
.op-card {
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.op-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.op-card.cheapest { border-color: var(--green); background: var(--green-soft); }
.op-name { font-weight: 600; font-size: 0.9rem; }
.op-price { font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.op-details { font-size: 0.78rem; color: var(--text-muted); }
.calc-petrol-compare {
    background: var(--orange-soft);
    border-left: 3px solid var(--orange);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    font-size: 0.92rem;
}
.calc-disclaimer { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- EV Ranking ---------- */
.ev-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.ev-check-field {
    justify-content: flex-end;
}
.ev-check-field label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.ev-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}
.ev-kpi-value {
    font-size: 1rem;
    line-height: 1.4;
}
.ev-table-wrap {
    margin-top: 0.8rem;
}
.ev-table td:nth-child(1) {
    width: 48px;
    text-align: center;
    font-weight: 700;
}
.ev-table td:nth-child(3),
.ev-table td:nth-child(4),
.ev-table td:nth-child(5) {
    white-space: nowrap;
}
.ev-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 0.9rem;
}
.ev-pagination button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
#ev-page-indicator {
    font-size: 0.9rem;
    color: var(--text-muted);
    min-width: 110px;
    text-align: center;
}

/* ---------- Annual Cost Calculator ---------- */
.annual-calc {
    background: var(--green-soft);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    margin: 1.5rem 0;
}
.annual-calc h4 { margin: 0 0 0.8rem; font-size: 1rem; }
.annual-calc-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.annual-calc-row label { font-size: 0.85rem; font-weight: 500; }
.annual-calc-row input {
    width: 100px;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font);
}
.annual-result {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}
.annual-result-box {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 0.8rem;
    text-align: center;
    border: 1px solid var(--border);
}
.annual-result-box .ar-value { font-size: 1.2rem; font-weight: 700; color: var(--green); }
.annual-result-box .ar-label { font-size: 0.78rem; color: var(--text-muted); }
.annual-result-box.savings .ar-value { color: var(--green); }

/* ---------- FAQ Accordion ---------- */
.faq-section .faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.6rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.faq-section .faq-item:hover { box-shadow: var(--shadow); }
.faq-item-title { margin: 0; }
.faq-question {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    user-select: none;
    transition: background 0.2s;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    color: inherit;
    line-height: inherit;
}
.faq-question:hover { background: var(--accent-soft); }
.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.3s;
    width: 1.5em;
    text-align: center;
}
.faq-item.open .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    font-size: 0.92rem;
    color: var(--text-muted);
    padding: 0 1.2rem;
    line-height: 1.65;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 1.2rem 1rem;
}

/* ---------- Glossary / Ordlista ---------- */
.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.8rem;
    margin: 1rem 0;
}
.glossary-item {
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
}
.glossary-term {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--accent);
    margin-bottom: 0.2rem;
}
.glossary-def {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---------- Share Buttons ---------- */
.share-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}
.share-bar span { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--border);
    color: var(--text-main);
    background: var(--bg-card);
}
.share-btn:hover { text-decoration: none; }
.share-btn.facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btn.twitter:hover { background: #1da1f2; color: #fff; border-color: #1da1f2; }
.share-btn.linkedin:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.share-btn.copy:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Internal Link Cards (Undersidor) ---------- */
.subpage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}
.subpage-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.subpage-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    transform: translateY(-2px);
}
.subpage-card .sc-icon { font-size: 2rem; margin-bottom: 0.3rem; }
.subpage-card .sc-title { font-weight: 700; font-size: 1.05rem; color: var(--text-main); }
.subpage-card .sc-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.subpage-card .sc-arrow { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-top: 0.3rem; }

/* ---------- Table of Contents (TOC) for sub-pages ---------- */
.toc {
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    padding: 1.2rem 1.5rem;
    margin: 1rem 0 1.5rem;
}
.toc h3 { margin: 0 0 0.6rem; font-size: 0.95rem; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin-bottom: 0.3rem; font-size: 0.9rem; }
.toc a { font-weight: 500; }

/* ---------- Product Comparison Cards ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: box-shadow 0.2s;
}
.product-card:hover { box-shadow: var(--shadow-hover); }
.product-card.recommended {
    border-color: var(--green);
    box-shadow: 0 0 0 2px var(--green-soft);
}
.product-name { font-weight: 700; font-size: 1.05rem; }
.product-price { font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.product-specs { font-size: 0.85rem; color: var(--text-muted); }
.product-specs ul { margin: 0.3rem 0 0; padding-left: 1.2em; }
.product-specs li { margin-bottom: 0.2rem; }
.product-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
}
.product-badge.top-pick { background: var(--green-soft); color: var(--green); }
.product-badge.budget { background: var(--accent-soft); color: var(--accent); }
.product-badge.premium { background: var(--orange-soft); color: var(--orange); }

/* ---------- Pros/Cons list ---------- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.pros, .cons { padding: 1rem; border-radius: var(--radius-sm); }
.pros { background: var(--green-soft); }
.cons { background: var(--red-soft); }
.pros h4, .cons h4 { margin: 0 0 0.5rem; font-size: 0.9rem; }
.pros ul, .cons ul { margin: 0; font-size: 0.88rem; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li {
    padding: 0.5rem 0 0.5rem 1.8rem;
    position: relative;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border);
}
.checklist li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0.5rem;
}
.checklist li:last-child { border-bottom: none; }

/* ---------- Key Takeaway Box ---------- */
.key-takeaway {
    background: linear-gradient(135deg, var(--accent-soft), #f0f6ff);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
}
.key-takeaway h4 { margin: 0 0 0.5rem; color: var(--accent); font-size: 0.95rem; }
.key-takeaway p { margin: 0; font-size: 0.92rem; }

/* ---------- Footer ---------- */
footer {
    background: var(--text-main);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    font-size: 0.85rem;
}
footer a { color: #90caf9; }
.last-updated { font-size: 0.78rem; margin-top: 0.3rem; opacity: 0.6; }

/* Footer links grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    text-align: left;
    margin-bottom: 1.5rem;
}
.footer-col h4 { color: #fff; font-size: 0.9rem; margin: 0 0 0.5rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.3rem; }
.footer-col a { font-size: 0.82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .content {
        grid-template-columns: 1fr;
    }
    .sidebar { position: static; }
    .hero h1 { font-size: 1.7rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-nav-row {
        display: block;
    }
    .breadcrumb {
        padding-left: 0;
        margin-top: 0.45rem;
    }
    .sticky-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.6rem;
        margin-bottom: 0.4rem;
    }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .nav-collapsible {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.25s ease, opacity 0.2s ease;
    }
    .nav-collapsible.open {
        max-height: 900px;
        opacity: 1;
        margin-top: 0.5rem;
    }
    .nav-collapsible {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-dropdown-title {
        display: block;
    }
    .nav-dropdown-toggle {
        display: none;
    }
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 0;
        padding: 0.1rem 0 0.35rem 0.6rem;
        border: none;
        background: transparent;
        box-shadow: none;
    }
    .nav-dropdown-menu a {
        padding: 0.35rem 0.5rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 600px) {
    body { font-size: 15px; }
    .card { padding: 1.2rem; }
    .hero { padding: 2rem 0 1.8rem; }
    .hero h1 { font-size: 1.4rem; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .hero-stat { padding: 0.7rem 0.5rem; }
    .hero-stat .stat-number { font-size: 1.2rem; }
    .calc-form { grid-template-columns: 1fr; }
    .ev-controls { grid-template-columns: 1fr; }
    .ev-kpi-grid { grid-template-columns: 1fr; }
    .calc-summary { grid-template-columns: 1fr; }
    .calc-operator-grid { grid-template-columns: 1fr; }
    .info-row { grid-template-columns: 1fr; }
    .cost-highlight { grid-template-columns: 1fr; }
    .nav-pills { gap: 0.3rem; }
    .nav-link-pill { font-size: 0.82rem; padding: 0.38rem 0.75rem; }
    .brand-link.logo-link img { height: 120px; }
    .breadcrumb { margin-left: 0; }
    .price-table { font-size: 0.8rem; }
    .price-table th, .price-table td { padding: 0.5rem 0.6rem; }
    .glossary-grid { grid-template-columns: 1fr; }
    .subpage-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .pros-cons { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .share-bar { justify-content: center; }
}

@media (max-width: 380px) {
    .hero-stats { grid-template-columns: 1fr; }
}

/* ---------- News / Blog ---------- */
.news-article {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.news-article h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--heading);
}

.news-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.news-meta time {
    font-weight: 500;
}

.news-article p {
    margin-bottom: 0.6rem;
    line-height: 1.7;
}

.news-cta {
    text-align: center;
    padding: 2rem 0;
    margin-top: 1rem;
}

.news-cta h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.btn-primary-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.6rem 1.4rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-primary-link:hover {
    background: var(--accent-hover, #1b7a3d);
}

/* ---------- Print ---------- */
@media print {
    .reading-progress, header, .nav-pills, .share-bar, footer { display: none; }
    .content { grid-template-columns: 1fr; }
    .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
    .faq-answer { max-height: none !important; padding: 0.5rem 1.2rem 1rem !important; }
}
