/* ==========================================================================
   Solcellsfakta — Design System v2
   Modern, clean, sun & sky inspired
   ========================================================================== */

/* --- Design tokens --- */
:root {
    --color-bg: #f8fafb;
    --color-bg-soft: #eef3f7;
    --color-bg-card: #ffffff;
    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    --color-accent: #d97706;
    --color-accent-hover: #b45309;
    --color-accent-light: #fffbeb;
    --color-blue: #1e5a8a;
    --color-blue-hover: #164769;
    --color-blue-light: #e0f0ff;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    --color-gold: #f59e0b;
    --color-gold-soft: rgba(245, 158, 11, 0.12);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;

    --max-width: 1120px;
    --content-width: 720px;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.15);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* --- Base --- */
body {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--color-blue-hover);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

/* --- Header --- */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo:hover { opacity: 0.85; text-decoration: none; }

.logo-img { height: 34px; width: auto; }

.nav-list {
    list-style: none;
    display: flex;
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    display: block;
}

.nav-item > a:hover,
.nav-item.has-dropdown:hover > a {
    color: var(--color-text);
    background: var(--color-bg-soft);
    text-decoration: none;
}

/* --- Dropdown navigation (Skruvat-stil) --- */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 8px;
    z-index: 200;
}

.nav-item.has-dropdown:hover .nav-dropdown {
    display: block;
}

.nav-dropdown-inner {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: var(--space-md);
    min-width: 240px;
    max-width: 300px;
}

.nav-dropdown-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-gold);
}

.nav-dropdown-icon {
    font-size: 1.2rem;
}

.nav-dropdown-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-blue) !important;
    text-decoration: none;
}

.nav-dropdown-title:hover {
    text-decoration: underline !important;
}

.nav-dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-dropdown-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.15s;
}

.nav-dropdown-list li a:hover {
    background: var(--color-bg-soft);
    color: var(--color-blue);
    text-decoration: none;
}

.nav-dropdown-count {
    background: var(--color-bg-soft);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.nav-dropdown-list li a:hover .nav-dropdown-count {
    background: var(--color-blue);
    color: #fff;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    background: var(--color-bg-soft);
    border-bottom: 1px solid var(--color-border-light);
    padding: var(--space-sm) 0;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.breadcrumbs li::after {
    content: '›';
    margin-left: var(--space-sm);
    color: var(--color-text-muted);
}
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a { color: var(--color-text-secondary); }
.breadcrumbs [aria-current="page"] { color: var(--color-text); }

/* ==========================================================================
   HERO — full-width, gradient background with animated sun orb
   ========================================================================== */
.hero {
    background: linear-gradient(160deg, #0f2942 0%, #1e5a8a 45%, #2980b9 70%, #f0a830 100%);
    color: #ffffff;
    padding: var(--space-3xl) 0;
    margin: 0 calc(-50vw + 50%) var(--space-2xl);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: var(--max-width);
    padding: 0 var(--space-xl);
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: var(--space-lg);
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-lead {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

.hero-visual {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    pointer-events: none;
    z-index: 1;
}

.sun-orb {
    position: absolute;
    top: -80px;
    right: -60px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(245, 190, 60, 0.5) 0%, rgba(245, 158, 11, 0.15) 50%, transparent 70%);
    filter: blur(2px);
    animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* ==========================================================================
   CATEGORY CHIPS — horizontal pill-bar
   ========================================================================== */
.categories-section {
    margin-bottom: var(--space-2xl);
}

.categories-bar {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.cat-chip:hover {
    border-color: var(--color-gold);
    background: var(--color-accent-light);
    box-shadow: var(--shadow-md), 0 0 0 3px var(--color-gold-soft);
    text-decoration: none;
    transform: translateY(-1px);
}

.cat-chip-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.cat-chip-label {
    color: var(--color-text);
}

.cat-chip-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-bg-soft);
    padding: 2px 8px;
    border-radius: 100px;
    min-width: 22px;
    text-align: center;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
    margin-bottom: var(--space-3xl);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.see-all {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-blue);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}
.see-all:hover {
    background: var(--color-blue-light);
    text-decoration: none;
}
.see-all:hover .arrow {
    transform: translateX(3px);
}

.page-header {
    margin: var(--space-xl) 0 var(--space-2xl);
}

.page-header h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.page-header p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
}

/* ==========================================================================
   ARTICLE CARDS — modern, clean, no image placeholder boxes
   ========================================================================== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.article-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-blue) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.article-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    text-decoration: none;
}

.article-card:hover::before {
    opacity: 1;
}

.article-card:hover .arrow {
    transform: translateX(4px);
}

.article-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.article-card-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
    background: var(--color-gold-soft);
    padding: 3px 10px;
    border-radius: 100px;
}

.article-card-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.article-card h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.35;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.article-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    flex: 1;
    margin-bottom: var(--space-md);
}

.article-card-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-blue);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Legacy image cards (for articles with images) */
.article-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-body {
    padding: var(--space-lg);
}

.article-card-body h2,
.article-card-body h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

.article-card-body h2 { font-size: 1.15rem; }
.article-card-body h3 { font-size: 1.05rem; }

.article-card-body h2 a,
.article-card-body h3 a { color: var(--color-text); }
.article-card-body h2 a:hover,
.article-card-body h3 a:hover { color: var(--color-blue); text-decoration: none; }

.article-card-body p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

/* ==========================================================================
   FAQ — refined accordion
   ========================================================================== */
.faq-list {
    max-width: var(--content-width);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-item {
    border-bottom: 1px solid var(--color-border-light);
}
.faq-item:last-child { border-bottom: none; }

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    padding: var(--space-lg) var(--space-xl);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    color: var(--color-text);
    transition: all 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '';
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M7 2.5v9M2.5 7h9' stroke='%23475569' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
    transition: all 0.25s ease;
}

.faq-item[open] summary::after {
    background-color: var(--color-gold-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2.5 7h9' stroke='%23d97706' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    transform: rotate(0deg);
}

.faq-item summary:hover {
    background: var(--color-bg-soft);
}

.faq-answer {
    padding: 0 var(--space-xl) var(--space-xl);
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.faq-answer p { margin-bottom: var(--space-md); }
.faq-answer p:last-child { margin-bottom: 0; }

.faq-related {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
    padding-bottom: var(--space-md);
}

/* ==========================================================================
   ARTICLE PAGE
   ========================================================================== */
.article-page {
    max-width: var(--content-width);
    margin: 0 auto;
}

.article-header {
    margin: var(--space-xl) 0 var(--space-2xl);
}

.article-category-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
    background: var(--color-gold-soft);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: var(--space-md);
}

.article-header h1 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.article-summary {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.article-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* --- TOC --- */
.toc {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-gold);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-2xl);
    box-shadow: var(--shadow-sm);
}

.toc h2 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.toc ul { list-style: none; }
.toc li { padding: var(--space-xs) 0; }
.toc a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}
.toc a:hover { color: var(--color-blue); }

/* --- Article body --- */
.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-body h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    margin: var(--space-2xl) 0 var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-border-light);
}

.article-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: var(--space-xl) 0 var(--space-sm);
}

.article-body p { margin-bottom: var(--space-md); }

.article-body ul, .article-body ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-xl);
}

.article-body li { margin-bottom: var(--space-sm); }
.article-body strong { font-weight: 600; }

/* --- Tags --- */
.article-tags {
    margin: var(--space-2xl) 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.tag {
    font-size: 0.8rem;
    color: var(--color-blue);
    background: var(--color-blue-light);
    padding: 4px 12px;
    border-radius: 100px;
    border: none;
    font-weight: 500;
}

/* --- Sources --- */
.sources {
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.sources h2 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.sources ul { list-style: none; }
.sources li { margin-bottom: var(--space-xs); font-size: 0.9rem; }

/* --- Related articles --- */
.related-articles {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: #0f2942;
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-3xl);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.15s ease;
}
.site-footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    padding: var(--space-3xl) var(--space-lg);
}

.footer-brand .logo { display: inline-block; margin-bottom: var(--space-sm); }
.footer-brand .logo-img { filter: brightness(0) invert(1); opacity: 0.85; }
.footer-brand p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    max-width: 320px;
    line-height: 1.6;
}

.footer-nav h3 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gold);
    margin-bottom: var(--space-md);
}

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: var(--space-sm); }
.footer-nav a { font-size: 0.875rem; }

.footer-bottom {
    padding: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: var(--space-md) 0;
        gap: var(--space-sm);
    }

    .nav-list {
        gap: 2px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-dropdown {
        position: fixed;
        left: var(--space-md);
        right: var(--space-md);
        transform: none;
    }

    .nav-dropdown-inner {
        max-width: none;
    }

    .subcategory-grid {
        grid-template-columns: 1fr;
    }

    .hero { padding: var(--space-2xl) 0; }
    .hero h1 { font-size: 1.75rem; }
    .hero-lead { font-size: 1rem; }

    .sun-orb {
        width: 200px;
        height: 200px;
        top: -60px;
        right: -40px;
    }

    .categories-bar {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--space-sm);
        scrollbar-width: none;
    }
    .categories-bar::-webkit-scrollbar { display: none; }
    .cat-chip { white-space: nowrap; flex-shrink: 0; }

    .article-grid { grid-template-columns: 1fr; }

    .faq-item summary { padding: var(--space-md) var(--space-lg); }
    .faq-answer { padding: 0 var(--space-lg) var(--space-lg); }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .article-header h1 { font-size: 1.6rem; }
}

/* --- Subcategory grid (Skruvat-inspirerad kategori-layout) --- */
.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.subcategory-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s;
}

.subcategory-card:hover {
    border-color: var(--color-blue);
}

.subcategory-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-soft);
    border-bottom: 1px solid var(--color-border-light);
    text-decoration: none;
    transition: background 0.2s;
}

.subcategory-card-header:hover {
    background: var(--color-blue);
    text-decoration: none;
}

.subcategory-card-header h2 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-heading);
    margin: 0;
}

.subcategory-card-header:hover h2 {
    color: #fff;
}

.subcategory-card-arrow {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    font-weight: 600;
    transition: color 0.2s, transform 0.2s;
}

.subcategory-card-header:hover .subcategory-card-arrow {
    color: #fff;
    transform: translateX(3px);
}

.subcategory-card-list {
    list-style: none;
    padding: var(--space-sm) var(--space-lg);
    margin: 0;
}

.subcategory-card-list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border-light);
}

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

.subcategory-card-list li a {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.15s;
    display: block;
    line-height: 1.4;
}

.subcategory-card-list li a:hover {
    color: var(--color-blue);
}

.subcategory-card-all {
    display: block;
    padding: var(--space-sm) var(--space-lg) var(--space-md);
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--color-blue);
    text-decoration: none;
}

.subcategory-card-all:hover {
    text-decoration: underline;
}

/* --- Subcategory navigation (chips, used on subcategory pages) --- */
.subcategory-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.subcategory-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: var(--space-xs) var(--space-md);
    background: var(--color-bg-soft);
    color: var(--color-blue);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.subcategory-chip:hover {
    background: var(--color-blue);
    color: #fff;
    text-decoration: none;
}

.subcategory-count {
    background: rgba(0,0,0,0.08);
    border-radius: var(--radius-full);
    padding: 0.1em 0.5em;
    font-size: 0.8rem;
    font-weight: 600;
}

.subcategory-chip:hover .subcategory-count {
    background: rgba(255,255,255,0.2);
}

.siblings-section {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.page-header-meta {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.page-header-meta a {
    color: var(--color-blue);
    text-decoration: none;
}

.page-header-meta a:hover {
    text-decoration: underline;
}

/* --- Static pages (Om, Kontakt) --- */
.static-page {
    max-width: 720px;
    margin: var(--space-2xl) auto;
    padding: 0 var(--space-md);
}

.static-page h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-heading);
    margin-bottom: var(--space-lg);
}

.static-page h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-blue);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.static-page p {
    line-height: 1.75;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.static-page ul {
    margin: var(--space-sm) 0 var(--space-md) var(--space-lg);
}

.static-page ul li {
    line-height: 1.7;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.static-page ul li strong {
    color: var(--color-heading);
}

.page-section {
    margin-bottom: var(--space-xl);
}

.contact-email {
    font-size: 1.2rem;
    margin: var(--space-md) 0;
}

.contact-email a {
    color: var(--color-blue);
    font-weight: 600;
    text-decoration: none;
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.contact-email a:hover {
    background: var(--color-gold);
    color: #fff;
}
