﻿/* ========== Diagnos-sida (CSS enligt checklista) ========== */
/* Steg-badges: röd, grön, gul */
.card-badge {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}
.card-badge.step-1 { background: #FDEDEC; color: #E74C3C; border: 1px solid #E74C3C; }
.card-badge.step-2 { background: #E9F7EF; color: #27AE60; border: 1px solid #27AE60; }
.card-badge.step-3 { background: #FEF9E7; color: #F39C12; border: 1px solid #F39C12; }

/* Inline warning (gastroskopi – gul/orange accent) */
.aka-warning-inline {
    background: #FFF8E1;
    border-left: 4px solid #FFC107;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}
.aka-warning-inline > strong { display: block; color: #B7950B; margin-bottom: 8px; }
.aka-warning-inline p { margin: 0; font-size: 0.95rem; color: #555; }

/* Video 16:9 */
.aka-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    margin: 15px 0;
}
.aka-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.video-caption { font-size: 0.85rem; color: #999; text-align: center; margin-top: 8px; font-style: italic; }

/* —— Inbäddad YouTube (global): lock, källa, felrapport —— */
.aka-video-player {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin: 28px 0;
    font-family: inherit;
}
button.aka-video-cover {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
    text-align: center;
    cursor: pointer;
    display: block;
    -webkit-appearance: none;
    appearance: none;
}
.aka-video-cover {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.3s ease;
}
.aka-video-cover:hover {
    filter: brightness(0.97);
}
.aka-cover-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    max-width: 520px;
    box-sizing: border-box;
}
.aka-v-category {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-brand, #1abc9c);
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(26, 188, 156, 0.1);
}
.aka-v-title {
    display: block;
    color: #2c3e50 !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    line-height: 1.25;
    margin: 0 0 18px !important;
}
.aka-play-btn {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    color: var(--color-brand, #1abc9c);
}
.aka-video-cover:hover .aka-play-btn {
    transform: scale(1.08);
}
.aka-play-btn svg {
    width: 40px;
    height: 40px;
    margin-left: 4px;
}
.aka-v-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}
.aka-v-orig {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
    margin: 0 !important;
    line-height: 1.4;
}
.aka-v-rights {
    font-size: 10px;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0 !important;
    max-width: 42ch;
}
.aka-v-lang {
    font-size: 11px;
    color: #64748b;
    margin: 4px 0 0 !important;
    font-weight: 600;
}
.aka-video-stage[hidden] {
    display: none !important;
}
.aka-video-stage iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: 0;
    vertical-align: bottom;
}
.aka-video-footer {
    padding: 12px 18px;
    background: #fff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.aka-v-source {
    font-size: 13px;
    color: #475569;
}
.aka-v-label {
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 10px;
    margin-right: 6px;
}
button.aka-v-ping {
    background: none;
    border: none;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 4px;
    transition: color 0.2s;
    font-family: inherit;
}
.aka-v-ping:hover {
    color: #e74c3c;
}

/* Manometri-väljare */
.mano-selector-container { margin: 20px 0; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.mano-tabs { display: flex; background: #f8f9fa; border-bottom: 1px solid #eee; }
.mano-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #777;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}
.mano-tab:hover { background: #ecf0f1; }
.mano-tab.active { color: var(--color-brand, #1ABC9C); background: #fff; border-bottom-color: var(--color-brand, #1ABC9C); }
.mano-display-area { padding: 25px; background: #fff; text-align: center; }
.mano-content { display: none; }
.mano-content.active { display: block; animation: aka-fadeIn 0.3s ease; }
.mano-svg { width: 100%; max-width: 400px; height: auto; margin: 0 auto 15px; display: block; }
.mano-text { background: #E8F8F5; padding: 15px; border-radius: 8px; text-align: left; font-size: 0.95rem; color: #333; border-left: 4px solid var(--color-brand, #1ABC9C); }
@keyframes aka-fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Tabell + badge-score (responsiv med data-label) */
.aka-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 10px 0; }
.aka-table th { background: #ecf0f1; color: #2C3E50; font-weight: 700; text-align: left; padding: 12px; border-bottom: 2px solid #bdc3c7; }
.aka-table td { padding: 12px; border-bottom: 1px solid #eee; color: #555; vertical-align: middle; }
.aka-badge-score {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.8rem;
    color: #fff;
    margin-right: 6px;
    margin-bottom: 4px;
    white-space: nowrap;
}
.aka-badge-score.score-low { background: #E74C3C; }
.aka-badge-score.score-med { background: #F39C12; }
.aka-badge-score.score-high { background: #27AE60; }
.aka-badge-desc { font-size: 0.85rem; color: #666; font-style: italic; display: block; margin-top: 4px; }

@media (max-width: 768px) {
    .aka-table thead { display: none; }
    .aka-table, .aka-table tbody { display: block; width: 100%; }
    .aka-table tr {
        display: flex;
        flex-direction: column;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        margin-bottom: 16px;
        overflow: hidden;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    .aka-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        box-sizing: border-box;
    }
    .aka-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #7f8c8d;
        font-size: 0.8rem;
        text-transform: uppercase;
        margin-right: auto;
    }
    .aka-table td[data-label="Precision"] { flex-wrap: wrap; }
    .aka-table td[data-label="Precision"] .aka-badge-desc { flex-basis: 100%; margin-top: 6px; }
}

/* Checklista */
.checklist-container { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.check-item-static { display: flex; align-items: center; background: #fff; padding: 15px; border-radius: 8px; border: 1px solid #e0e0e0; }
.check-bullet { width: 10px; height: 10px; background: #27AE60; border-radius: 50%; margin-right: 15px; flex-shrink: 0; }
.check-text { font-size: 0.95rem; color: #555; font-weight: 600; }

/* ========== Andra Sjukdomar – sidans egen sök + A–Z + kort ========== */
#akalasi-guide-wrapper { max-width: 1200px; margin: 20px auto 40px; padding: 0 20px; box-sizing: border-box; }
#akalasi-guide-wrapper .aka-top-content { margin-bottom: 20px; }
#akalasi-guide-wrapper .aka-intro { text-align: center; color: #666; margin: 0 auto 30px; font-size: 1.1rem; max-width: 700px; line-height: 1.8; }
.inline-info-trigger { display: inline-flex; align-items: center; gap: 6px; background: rgba(26,188,156,0.15); color: #16A085; padding: 4px 12px; border-radius: 20px; font-weight: 700; font-size: 0.9rem; cursor: pointer; white-space: nowrap; margin-left: 5px; border: 1px solid transparent; }
.inline-info-trigger:hover { background: rgba(26,188,156,0.25); }
.inline-info-trigger .icon-i { font-size: 1.1em; }
.search-focus-active .aka-hero-wide { display: none !important; }
.search-focus-active .aka-top-content { display: none !important; }
/* Behåll .aka-footer-section (Vårdguiden + Forumet) synlig även vid sökfokus */
.search-focus-active #akalasi-guide-wrapper { margin-top: 0; padding-top: 8px; }
.search-focus-active .disease-search-sticky-wrapper { margin-top: 0; padding-top: 6px; }
.disease-search-sticky-wrapper { padding: 0 0 12px; margin: 0 0 12px; }
/* Endast sökrutan sitter kvar högst upp vid scroll – infokort, A–Z och kort scrollar fritt och döljs inte */
.aka-disease-search-sticky-bar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.98);     -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px); padding: 12px 0 12px; margin-bottom: 0; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.aka-local-search-wrap { width: 100%; margin-bottom: 0; }
.d-search-wrap { position: relative; max-width: 600px; margin: 0 auto 8px; }
.aka-search-input { width: 100%; height: 55px; padding: 0 25px; border: 2px solid #E0E0E0; border-radius: 50px; font-size: 16px; outline: none; background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: border-color 0.2s, box-shadow 0.2s; }
.aka-search-input:focus { border-color: var(--color-brand, #1ABC9C); box-shadow: 0 0 0 4px rgba(26,188,156,0.2); }
#diseaseSearch { padding: 0 50px 0 25px; }
.d-search-icon { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); opacity: 0.5; font-size: 18px; pointer-events: none; }
.d-search-clear { position: absolute; right: 55px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; background: #eee; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; color: #666; font-weight: bold; }
.d-search-clear:hover { background: #E74C3C; color: #fff; }
.az-filter { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 800px; margin: 0 auto; }
.az-btn { background: #fff; border: 1px solid #eee; color: #555; width: 32px; height: 32px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 12px; flex-shrink: 0; transition: all 0.2s; }
.az-btn:hover, .az-btn.active { background: #2C3E50; color: #fff; border-color: #2C3E50; }
.az-btn[data-letter="ALL"] { width: auto; padding: 0 12px; }
#guideInfoBox { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px dashed #eee; }
.disease-guide-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 15px; }
.guide-box { background: #fff; padding: 15px; border-radius: 12px; border: 1px solid #eee; border-top-width: 4px; text-align: left; box-shadow: 0 2px 5px rgba(0,0,0,0.03); }
.guide-box h4 { margin: 5px 0; font-size: 0.95rem; color: #2C3E50; font-weight: 800; }
.guide-box p { font-size: 0.85rem; color: #666; margin: 0; line-height: 1.4; }
.theme-motilitet { border-top-color: #1ABC9C; background: #E0F2F1; } .theme-motilitet h4 { color: #16A085; }
.theme-inflammation { border-top-color: #E74C3C; background: #FDEDEC; } .theme-inflammation h4 { color: #C0392B; }
.theme-anatomi { border-top-color: #8E44AD; background: #F4ECF7; } .theme-anatomi h4 { color: #8E44AD; }
.theme-systemisk { border-top-color: #2874A6; background: #EBF5FB; } .theme-systemisk h4 { color: #2874A6; }
.disease-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; min-height: 300px; }
.d-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; transition: transform 0.3s; display: flex; flex-direction: column; }
.d-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.d-card-top { height: 6px; width: 100%; }
.d-card-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.d-meta { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; gap: 8px; }
.d-title { margin: 0; color: #2C3E50; font-size: 1.3rem; font-weight: 800; line-height: 1.3; min-width: 0; flex: 1 1 auto; }
.d-badge { font-size: 10px; text-transform: uppercase; font-weight: 800; padding: 4px 8px; border-radius: 4px; white-space: nowrap; margin-left: 0; flex-shrink: 0; }
.d-short-desc { color: #555; font-size: 0.95rem; margin-bottom: 20px; line-height: 1.5; }
.cat-motilitet .d-card-top { background: #1ABC9C; } .cat-motilitet .d-badge { background: #E0F2F1; color: #16A085; } .cat-motilitet .d-expand-btn { color: #16A085; border-color: #16A085; }
.cat-inflammation .d-card-top { background: #E74C3C; } .cat-inflammation .d-badge { background: #FDEDEC; color: #E74C3C; } .cat-inflammation .d-expand-btn { color: #E74C3C; border-color: #E74C3C; }
.cat-anatomi .d-card-top { background: #8E44AD; } .cat-anatomi .d-badge { background: #F4ECF7; color: #8E44AD; } .cat-anatomi .d-expand-btn { color: #8E44AD; border-color: #8E44AD; }
.cat-systemisk .d-card-top { background: #2874A6; } .cat-systemisk .d-badge { background: #EBF5FB; color: #2874A6; } .cat-systemisk .d-expand-btn { color: #2874A6; border-color: #2874A6; }
.d-expand-btn { margin-top: auto; background: transparent; border: 1px solid #ccc; padding: 10px 15px; border-radius: 50px; font-weight: 700; font-size: 0.85rem; cursor: pointer; text-align: center; transition: all 0.2s; display: block; width: 100%; }
.d-expand-btn:hover { background: #f9f9f9; }
.d-full-content { display: none; padding: 0 25px 25px; border-top: 1px solid #f0f0f0; background: #fafafa; font-size: 0.9rem; color: #444; }
.d-full-content h4 { margin: 20px 0 10px; color: #2C3E50; font-size: 1rem; border-bottom: 2px solid #eee; padding-bottom: 5px; font-weight: 700; }
.d-full-content ul { padding-left: 20px; margin-bottom: 15px; }
.d-full-content .warning-txt { color: #E74C3C; font-weight: 700; display: block; margin-bottom: 10px; font-size: 0.85rem; }

/* Andra Sjukdomar: popup-modal för "Läs mer" – sidan flyttar sig inte, ett kort i taget centrerat */
.disease-modal-overlay { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; }
.disease-modal-overlay.disease-modal-open { opacity: 1; visibility: visible; }
.disease-modal-box { position: relative; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); max-width: 560px; width: 100%; max-height: 85vh; overflow: hidden; display: flex; flex-direction: column; border-top: 4px solid #2C3E50; }
.disease-modal-box.cat-motilitet { border-top-color: #1ABC9C; }
.disease-modal-box.cat-inflammation { border-top-color: #E74C3C; }
.disease-modal-box.cat-anatomi { border-top-color: #8E44AD; }
.disease-modal-box.cat-systemisk { border-top-color: #2874A6; }
.disease-modal-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: none; background: #f0f0f0; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; color: #666; display: flex; align-items: center; justify-content: center; padding: 0; z-index: 2; transition: background 0.2s, color 0.2s; }
.disease-modal-close:hover { background: #e0e0e0; color: #333; }
.disease-modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 24px 24px 0 24px; flex-shrink: 0; }
.disease-modal-title { margin: 0; font-size: 1.5rem; font-weight: 800; color: #2C3E50; line-height: 1.3; }
.disease-modal-badge { font-size: 10px; text-transform: uppercase; font-weight: 800; padding: 4px 8px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; }
.disease-modal-badge.cat-motilitet { background: #E0F2F1; color: #16A085; }
.disease-modal-badge.cat-inflammation { background: #FDEDEC; color: #E74C3C; }
.disease-modal-badge.cat-anatomi { background: #F4ECF7; color: #8E44AD; }
.disease-modal-badge.cat-systemisk { background: #EBF5FB; color: #2874A6; }
.disease-modal-short { padding: 12px 24px 0; margin: 0; color: #555; font-size: 0.95rem; line-height: 1.5; flex-shrink: 0; border-bottom: 1px solid #eee; padding-bottom: 16px; }
.disease-modal-body { padding: 20px 24px; overflow-y: auto; flex: 1 1 auto; font-size: 0.95rem; color: #444; line-height: 1.6; }
.disease-modal-body h4 { margin: 16px 0 8px; color: #2C3E50; font-size: 1rem; border-bottom: 2px solid #eee; padding-bottom: 4px; font-weight: 700; }
.disease-modal-body h4:first-child { margin-top: 0; }
.disease-modal-body p { margin: 0 0 12px; }
.disease-modal-body ul { padding-left: 20px; margin-bottom: 12px; }
.disease-modal-body .warning-txt { color: #E74C3C; font-weight: 700; display: block; margin-bottom: 10px; font-size: 0.85rem; }
.disease-modal-btn-close { margin: 0 24px 24px; padding: 12px 24px; background: #2C3E50; color: #fff; border: none; border-radius: 50px; font-weight: 700; font-size: 1rem; cursor: pointer; flex-shrink: 0; transition: background 0.2s; }
.disease-modal-btn-close:hover { background: #1a252f; }
@media (max-width: 900px) {
    .inline-info-trigger { display: table; margin: 10px auto 0; }
    .disease-guide-section { grid-template-columns: 1fr 1fr; }
    .az-filter { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 10px; max-width: 100%; }
    .az-btn { flex-shrink: 0; }
    .disease-grid { grid-template-columns: 1fr; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Enskild sjukdomssida — [aka_sjukdom] / [aka_sjukdom_als] m.fl. */
.aka-disease-page__article { max-width: 720px; margin: 0 auto 48px; }
.aka-disease-page__badge { margin: 0 0 16px; }
.aka-disease-page__body { padding: 24px 0; border-top: 1px solid var(--aka-line, #ececec); }
.aka-disease-page__back { margin: 24px 0 16px; font-size: 0.95rem; }
.aka-disease-page__back a { text-decoration: none; font-weight: 600; color: #2C3E50; }
.aka-disease-page__back a:hover { text-decoration: underline; }
.aka-disease-page__disclaimer { margin-top: 24px; }

.card-flex-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.card-flex-header h3 { margin-bottom: 0 !important; margin-top: 0 !important; line-height: 1.3; }
.card-icon-box { font-size: 2rem; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: #f0f0f0; border-radius: 50%; flex-shrink: 0; }
.aka-article-card.theme-tips { border-left: 4px solid #F39C12; }
.aka-article-card.theme-tips .card-icon-box.icon-tips { background: #FEF5E7; color: #F39C12; }
.aka-article-card.theme-warning { border-left: 5px solid #E74C3C; background: #fff5f5; }
.aka-article-card.theme-warning h3 { color: #c0392b; }
.aka-article-card.theme-warning .card-icon-box.icon-warning { background: #FDEDEC; color: #E74C3C; }

.aka-article-card.symptom-symptoms .grid-item { border-left-color: #E74C3C; }
/* 2+2 layout (inte 3+1) för De 4 huvudsymtomen */
.aka-article-card.symptom-symptoms .aka-info-grid { grid-template-columns: repeat(2, 1fr); }

/* Ordlista-termer — fakta pages; marker from aka-18 (CSS ring, no mask squares) */
.aka-term-link[data-term],
.interactive-term[data-term],
button.aka-bhd-glossary-card[data-term] {
    color: #0f766e !important;
    border-bottom: 0 !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(15, 118, 110, 0.7) !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 2px !important;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s, background 0.2s, text-decoration-color 0.2s;
}
.aka-term-link[data-term]:hover,
.interactive-term[data-term]:hover {
    background: rgba(20, 184, 166, 0.12) !important;
    color: #0d9488 !important;
    text-decoration-color: #0d9488 !important;
}
button.aka-bhd-glossary-card[data-term]:hover {
    border-color: rgba(13, 148, 136, 0.45) !important;
}

.aka-term-link:not([data-term]), .interactive-term:not([data-term]) { color: #E74C3C; border-bottom: 2px dotted #E74C3C; cursor: pointer; font-weight: 600; transition: all 0.2s; }
.aka-term-link:not([data-term]):hover, .interactive-term:not([data-term]):hover { background: #FDEDEC; }
.interactive-term { display: block; margin-bottom: 8px; font-size: 1.05rem; text-decoration: underline; text-decoration-style: dotted; border-bottom: none; }

@media (max-width: 900px) {
    .aka-article-card .aka-info-grid { grid-template-columns: 1fr; gap: 15px; }
    .aka-article-card.symptom-symptoms .aka-info-grid { grid-template-columns: 1fr; }
    .aka-article-card .grid-item { padding: 15px; box-sizing: border-box; }
    .card-flex-header { align-items: flex-start; }
    .card-icon-box { font-size: 1.5rem; width: 40px; height: 40px; margin-top: -2px; }
}

/* 5. Nästa Steg-grid – kan ligga i reading mode ELLER på full bredd */
.aka-next-steps {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.aka-next-steps h2 {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 800;
}

/* Gå vidare på full bredd: wrappa i .aka-next-steps-outer UTANFÖR .aka-main-content-wide */
.aka-next-steps-outer {
    width: 100%;
    background: #fafafa;
    margin-top: 60px;
    padding: 50px 0 60px;
    border-top: 1px solid #eee;
}

.aka-next-steps-outer .aka-next-steps {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    border-top: none;
    margin-top: 0;
}

.aka-next-steps-outer .rc-category-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Två kort (t.ex. Symptom-sidan): bredare, något lägre kort – samma koncept som tre-kortsidan */
.aka-next-steps-outer.rc-grid-2 .rc-category-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
}
.aka-next-steps-outer.rc-grid-2 .rc-card {
    padding: 20px 28px;
}
.aka-next-steps-outer.rc-grid-2 .rc-card-header .rc-icon-circle {
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
}
.aka-next-steps-outer.rc-grid-2 .rc-card-header .rc-icon-circle svg {
    width: 26px;
    height: 26px;
}
.aka-next-steps-outer.rc-grid-2 .rc-card h3 {
    font-size: 1.2rem;
}
.aka-next-steps-outer.rc-grid-2 .rc-card-body p {
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .aka-next-steps-outer .rc-category-grid,
    .aka-next-steps-outer.rc-grid-2 .rc-category-grid {
        grid-template-columns: 1fr;
    }
    .aka-next-steps-outer.rc-grid-2 .rc-category-grid {
        max-width: none;
    }
}

/* Standard "Läs vidare": två kort överst + brett kort med tre länkar (forum / vård / artiklar) */
.aka-las-vidare-outer .aka-lv-top-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto 28px;
    align-items: stretch;
}
.aka-las-vidare-outer .aka-lv-card.rc-card {
    margin: 0;
}
/* Pelarfärg i text/CTA — inte färgad kant på kort (aka-no-colored-border-cards.mdc) */

.aka-lv-icon-circle--disease { background: #FDEDEC !important; color: var(--color-disease, #E74C3C) !important; }
.aka-lv-icon-circle--brand { background: var(--color-brand-bg, #E0F2F1) !important; color: var(--color-brand, #1ABC9C) !important; }
.aka-lv-icon-circle--treat { background: var(--color-treat-bg, #FEF5E7) !important; color: var(--color-treat, #F39C12) !important; }
.aka-lv-icon-circle--care { background: var(--color-care-bg, #EBF5FB) !important; color: var(--color-care, #2874A6) !important; }
.aka-lv-icon-circle--food { background: var(--color-food-bg, #E9F7EF) !important; color: var(--color-food, #27AE60) !important; }
.aka-lv-icon-circle--anat { background: var(--color-anat-bg, #F4ECF7) !important; color: var(--color-anat, #8E44AD) !important; }
.aka-lv-icon-circle--family { background: var(--color-family-bg, #FEF5E7) !important; color: var(--color-family, #E67E22) !important; }
.aka-lv-icon-circle--tool { background: var(--color-tool-bg, #F4ECF7) !important; color: var(--color-tool, #8E44AD) !important; }

.aka-lv-cta--disease { background: var(--color-disease, #E74C3C) !important; color: #fff !important; }
.aka-lv-cta--brand { background: var(--color-brand, #1ABC9C) !important; color: #fff !important; }
.aka-lv-cta--treat { background: var(--color-treat, #F39C12) !important; color: #fff !important; }
.aka-lv-cta--care { background: var(--color-care, #2874A6) !important; color: #fff !important; }
.aka-lv-cta--food { background: var(--color-food, #27AE60) !important; color: #fff !important; }
.aka-lv-cta--anat { background: var(--color-anat, #8E44AD) !important; color: #fff !important; }
.aka-lv-cta--family { background: var(--color-family, #E67E22) !important; color: #fff !important; }
.aka-lv-cta--tool { background: var(--color-tool, #8E44AD) !important; color: #fff !important; }

.aka-lv-wide {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 4px 8px;
}
.aka-lv-wide-inner {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 20px 0 8px;
    border-top: 1px solid var(--aka-line, #ececec);
}
.aka-lv-wide-title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #2c3e50;
    text-align: center;
}
.aka-lv-wide-intro {
    margin: 0 0 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #5c6b7a;
    text-align: center;
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
}
.aka-lv-wide-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    align-items: stretch;
}
.aka-lv-chip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-radius: 0;
    text-decoration: none !important;
    color: #2c3e50 !important;
    border: 0;
    border-top: 1px solid var(--aka-line, #ececec);
    background: transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.aka-lv-chip:hover,
.aka-lv-chip:focus-visible {
    border-top-color: #d8d8d4;
    background: var(--aka-card-bg-quiet, #f8f7f4);
    transform: none;
}
.aka-lv-chip-icon {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}
.aka-lv-chip-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}
.aka-lv-chip-text strong {
    font-size: 0.95rem;
    font-weight: 800;
}
.aka-lv-chip-text small {
    font-size: 0.8rem;
    line-height: 1.35;
    color: #64748b;
    font-weight: 600;
}
/* K-7-V3-GLOBAL-LAUNCH-UX-SWEEP-3 / P4 — max 2px pillar markers (was 3px dashboard bars) */
.aka-lv-chip--forum { border-top: 2px solid var(--color-social, #F1C40F); }
.aka-lv-chip--vard { border-top: 2px solid var(--color-care, #2874A6); }
.aka-lv-chip--articles { border-top: 2px solid var(--color-brand, #1ABC9C); }
.aka-lv-chip--shop { border-top: 2px solid var(--color-product, #232f3e); }

/* Rubriken "Läs vidare" ovanför korten (överkör Divi/äldre flex på .aka-next-steps) */
.aka-las-vidare-outer .aka-las-vidare.aka-next-steps {
    display: block !important;
}
.aka-las-vidare-outer .aka-las-vidare > h2.aka-las-vidare-heading,
.aka-las-vidare-outer .aka-las-vidare > h2:first-child {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 28px;
}

/* Resurscenter m.m.: artiklar / butik / forum som sista rad före sidfot */
.aka-lv-footer-strip-outer {
    margin-top: 48px;
    padding-top: 40px;
    padding-bottom: 48px;
}
.aka-lv-footer-strip-heading {
    text-align: center;
    margin: 0 0 22px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #2c3e50;
}
.aka-lv-footer-strip-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    align-items: stretch;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}
#aka-resurscenter-hub .aka-lv-footer-strip-outer {
    margin-top: 32px;
}

@media (max-width: 900px) {
    .aka-las-vidare-outer .aka-lv-top-grid {
        grid-template-columns: 1fr;
        max-width: none;
    }
    .aka-lv-wide-links {
        grid-template-columns: 1fr;
    }
    .aka-lv-footer-strip-links {
        grid-template-columns: 1fr;
        max-width: none;
    }
}

/* Info-grid (två kolumner) */
.aka-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.aka-info-grid .grid-item {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border-left: 4px solid var(--color-brand, #1ABC9C);
}

.aka-info-grid .grid-item strong { display: block; margin-bottom: 8px; }

/* Behandling: "När vanlig behandling inte räcker" – tydliga färger + orphan på sista raden full bredd */
.aka-bhd-support-grid {
    grid-template-columns: 1fr;
}
.aka-bhd-grid-item--nutrition {
    border-left-color: var(--color-food, #27AE60) !important;
    background: #fff;
}
.aka-bhd-grid-item--high-risk {
    border-left-color: var(--color-disease, #E74C3C) !important;
    background: #fff;
}
.aka-bhd-grid-item--high-risk .aka-bhd-high-risk-title {
    color: var(--color-disease, #E74C3C);
}
/* 2 kolumner: sista ensam (2+1) → hel rad */
@media (min-width: 640px) and (max-width: 959px) {
    .aka-bhd-support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .aka-bhd-support-grid > .grid-item:last-child:nth-child(2n + 1):nth-child(n + 3) {
        grid-column: 1 / -1;
    }
}
/* 3 kolumner: sista ensam (3+1, 3+3+1, …) → hel rad */
@media (min-width: 960px) {
    .aka-bhd-support-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .aka-bhd-support-grid > .grid-item:last-child:nth-child(3n + 1):nth-child(n + 4) {
        grid-column: 1 / -1;
    }
}

/* Diagram (Frisk vs Akalasi) */
.diagram-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin: 24px 0;
}

.diagram-box {
    flex: 1 1 200px;
    max-width: 280px;
    text-align: center;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #eee;
}

.diagram-box h5 { margin: 0 0 12px; font-size: 1rem; }

.anatomy-svg { width: 100%; max-width: 200px; height: auto; }

.diagram-caption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
}

/* Behandling-sidor: content cards, pros/cons, fact box, deep links */
.aka-content-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    position: relative;
}
.aka-content-card h3 { margin-top: 0; color: #2C3E50; font-weight: 700; font-size: 1.4rem; margin-bottom: 15px; }
.card-badge.gray { background: #F2F3F4; color: #7F8C8D; border: 1px solid #E5E7E9; }
.card-badge.brand { background: #FDEBD0; color: #F39C12; border: 1px solid #FAD7A0; }
.pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.pc-box { padding: 15px; border-radius: 8px; font-size: 0.9rem; line-height: 1.5; }
.pc-box strong { display: block; margin-bottom: 5px; font-size: 1rem; }
.pc-box.pros { background: #E8F8F5; border: 1px solid #A2D9CE; color: #145A32; }
.pc-box.cons { background: #FDEDEC; border: 1px solid #F5B7B1; color: #922B21; }
.aka-fact-box {
    background: #e0f2f1;
    border-left: 5px solid #1ABC9C;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    color: #2c3e50;
}
.aka-fact-box h4 { margin-top: 0; color: #16a085; font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.aka-deep-link {
    display: inline-block;
    margin-top: 15px;
    color: #F39C12;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid #F39C12;
    padding-bottom: 2px;
    transition: all 0.2s;
    font-size: 0.95rem;
}
.aka-deep-link:hover { color: #D35400; border-color: #D35400; }
.aka-small-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2C3E50;
    text-decoration: none;
    border-bottom: 1px dotted #2C3E50;
}
.aka-small-link:hover { color: #E74C3C; border-color: #E74C3C; }
@media (max-width: 900px) {
    .pros-cons-grid { grid-template-columns: 1fr; }
}

/* Toggle (komplikationer) */
.aka-toggle-btn {
    cursor: pointer;
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin: 16px 0;
}

.aka-toggle-btn:hover { background: #eee; }

.aka-toggle-btn .toggle-icon { font-size: 0.8em; transition: transform 0.2s; }
.aka-toggle-btn.active .toggle-icon { transform: rotate(180deg); }

.aka-hidden-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.aka-inner-padding { padding: 16px 0; }

/* Visste du att-kort */
.did-you-know-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border: 1px solid #f0e6c8;
    border-radius: 12px;
    margin-bottom: 30px;
}

.dyk-icon { font-size: 2rem; flex-shrink: 0; }

.dyk-content h3 { margin: 0 0 8px; font-size: 1.1rem; }

/* RC-kort (Gå vidare) – lika höjd: grid + flex så CTA hamnar i botten */
.rc-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.rc-card {
    display: flex;
    flex-direction: column;
    padding: 20px 0 18px;
    background: transparent;
    border: 0;
    border-radius: 0;
    border-top: 1px solid var(--aka-line, #ececec);
    box-shadow: none;
}

.rc-card h3 { margin: 0 0 12px; font-size: 1.25rem; }

.rc-card-header { text-align: center; margin-bottom: 12px; }
.rc-card-header .rc-icon-circle { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rc-card-header .rc-icon-circle svg { width: 30px; height: 30px; fill: currentColor; }
.rc-card-body { margin-bottom: 16px; flex: 1; }
.rc-card-body p { color: #555; margin: 0; font-size: 0.95rem; line-height: 1.5; }

.rc-card p { color: #555; margin-bottom: 16px; font-size: 0.95rem; }

/* CTA-knappar i RC-kort (Gå vidare) ska vara centrerade – enhetligt på alla faktasidor */
.rc-card { text-align: center; }
.rc-card .rc-card-body { text-align: left; }
.rc-card .rc-cta-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 0;
}

.rc-cta-btn:hover { opacity: 0.9; }

.btn-brand { background: var(--color-brand, #1ABC9C) !important; }

.btn-social { background: #F1C40F !important; color: #333 !important; }

/* Forumkortet (Andra sjukdomar): CTA-knapp måste ha tydlig bakgrund – klass theme-social-bg finns i markup men saknade i CSS */
.rc-card .rc-cta-btn.theme-social-bg { background: #F39C12 !important; color: #fff !important; }

/* Term-modal (ordlistepopup) */
.aka-term-link {
    cursor: pointer;
    color: var(--color-brand, #1ABC9C);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.aka-term-link:hover { opacity: 0.85; }

.aka-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(5px, env(safe-area-inset-top)) 5px max(5px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.aka-modal-overlay.show { opacity: 1; visibility: visible; }

/* HV-routing-modal: ska alltid ligga över header/meny. Header-stacken
 * når upp till z-index 10000105 (mobile-bar). Scoped till just HV-routing
 * så ingen annan modal påverkas. Övriga .aka-modal-overlay-instanser
 * behåller 99999. Se aka-design-modes.mdc §3 (Utility). */
.aka-hv-route-overlay { z-index: 10000200 !important; }

.aka-modal-card {
    background: #fff;
    border-radius: 12px;
    max-width: min(520px, 100%);
    width: min(100%, 420px);
    max-height: calc(100vh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
}

.aka-modal-header {
    padding: 16px 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aka-modal-header h3 { margin: 0; font-size: 1.2rem; }

.aka-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.aka-modal-body { padding: 20px; }
.aka-modal-card .aka-modal-body {
    overflow-y: auto;
}
@media (max-width: 640px) {
    .aka-modal-card {
        width: calc(100% - 2px);
        border-radius: 16px;
    }
    .aka-modal-header {
        padding: 14px 16px;
    }
    .aka-modal-body {
        padding: 14px 16px;
    }
    .aka-modal-footer {
        padding: 8px 16px 12px;
    }
}

.aka-modal-footer { padding: 8px 20px 12px; font-size: 0.75rem; color: #999; border-top: none; }
.aka-modal-footer .aka-modal-hint { font-style: normal; }

/* Hitta vård: regionval (aka_render_hitta_vard_routing_modal) */
.aka-hv-route-card { max-width: 440px; }
.aka-hv-route-header {
    background: #ffffff;
    color: #243746;
    border-bottom: 1px solid #e9eff4;
}
.aka-hv-route-header h3 { color: #243746; font-weight: 800; }
.aka-hv-route-header .aka-close-btn { color: #5f7382; }
.aka-hv-route-lead {
    margin: 0 0 16px;
    color: #444;
    line-height: 1.5;
    font-size: 0.95rem;
}
.aka-hv-route-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.aka-hv-route-btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid rgba(43, 65, 80, 0.12);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.3;
    padding: 12px 16px;
    min-height: 48px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(18, 33, 46, 0.08);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.aka-hv-route-btn--norden {
    background: var(--color-care, #2874A6) !important;
    color: #fff !important;
}
.aka-hv-route-btn--europa {
    background: var(--color-brand, #1ABC9C) !important;
    color: #fff !important;
}
.aka-hv-route-btn--global {
    background: #6C5CE7 !important;
    color: #fff !important;
}
.aka-hv-route-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(18, 33, 46, 0.12); filter: saturate(1.02); }
.aka-hv-route-btn:active { transform: scale(0.98); }

/* Behandling: ordlista-lik term-modal + klickbara nutritionskort */
.aka-modal-card.aka-term-modal-card {
    max-width: 600px;
    width: 92%;
    max-height: min(88vh, 720px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 28px 22px 18px;
    text-align: left;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.aka-term-modal-card__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    color: #2c3e50 !important;
    font-size: 1.65rem;
    line-height: 1;
    padding: 4px 8px;
}

.aka-term-modal-card__close:hover {
    opacity: 0.75;
}

.aka-term-modal-card__title {
    flex-shrink: 0;
    margin: 0 0 6px;
    padding-right: 44px;
    font-size: 1.45rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
}

.aka-term-modal-card__meta {
    flex-shrink: 0;
    margin: 0 0 14px;
    min-height: 0;
}

.aka-term-modal-card__meta .g-badge {
    margin-left: 0;
}

/* Samma badge-palett som ordlistan (inline på /ord/) */
.aka-term-modal-card .g-badge {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    display: inline-block;
    letter-spacing: 0.04em;
}

.aka-term-modal-card .badge-sjukdom { background: #fdedec; color: #e74c3c; }
.aka-term-modal-card .badge-behandling { background: #fef5e7; color: #f39c12; }
.aka-term-modal-card .badge-diagnos { background: #e0f2f1; color: #1abc9c; }
.aka-term-modal-card .badge-kost { background: #d5f5e3; color: #27ae60; }
.aka-term-modal-card .badge-anatomi { background: #ebdef0; color: #8e44ad; }
.aka-term-modal-card .badge-rattigheter { background: #d6eaf8; color: #2874a6; }

.aka-term-modal-card__body {
    font-size: 0.95rem;
    line-height: 1.58;
    color: #444;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding-right: 4px;
}

.aka-term-modal-card__body p {
    margin: 0;
}

.aka-term-modal-card__body p + p {
    margin-top: 0.85em;
}

.aka-term-modal-card__body em {
    font-style: italic;
}

.aka-term-modal-card__footer {
    flex-shrink: 0;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.78rem;
    color: #888;
}

.aka-term-modal-ordlink {
    display: none;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--color-brand, #1abc9c) !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(26, 188, 156, 0.45);
    padding-bottom: 1px;
    width: fit-content;
}

.aka-term-modal-ordlink:hover {
    opacity: 0.88;
}

.aka-bhd-grid-hint {
    margin: 0 0 12px;
    font-size: 0.88rem;
    color: #5d6d7e;
}

button.aka-bhd-glossary-card.grid-item {
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    box-shadow: none;
    text-align: left;
    cursor: pointer;
    border: 0;
    border-left: 4px solid var(--color-brand, #1abc9c);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

button.aka-bhd-glossary-card.grid-item:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
}

button.aka-bhd-glossary-card.grid-item:focus-visible {
    outline: 2px solid var(--color-brand, #1abc9c);
    outline-offset: 3px;
}

.aka-bhd-card-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-brand, #1abc9c);
}

/* Responsiv 2026-layout */
@media (max-width: 768px) {
    .aka-fluid-container {
        width: 100%;
        padding: 4px 12px 12px;
    }
    .aka-main-content-wide {
        max-width: 100%;
    }
    /* Andra Sjukdomar – minska luft mellan header och innehåll på mobil */
    body.aka-page-andra-sjukdomar .aka-fluid-container { padding-top: 0 !important; padding-bottom: 12px; padding-left: 16px !important; padding-right: 16px !important; }
    /* Vad är akalasi – samma mobiljustering */
    body.aka-page-vad-ar-akalasi .aka-fluid-container { padding-top: 0 !important; padding-bottom: 12px; padding-left: 16px !important; padding-right: 16px !important; }
    /* Symptom – samma mobiljustering */
    body.aka-page-symptom .aka-fluid-container { padding-top: 0 !important; padding-bottom: 12px; padding-left: 16px !important; padding-right: 16px !important; }
    /* Diagnos – samma mobiljustering */
    body.aka-page-diagnos .aka-fluid-container { padding-top: 0 !important; padding-bottom: 12px; padding-left: 16px !important; padding-right: 16px !important; }
    /* Akalasi hub – samma mobiljustering */
    body.aka-page-akalasi .aka-fluid-container { padding-top: 0 !important; padding-bottom: 12px; padding-left: 16px !important; padding-right: 16px !important; }
    /* Behandling-sidor – mobil */
    body.aka-page-behandling .aka-fluid-container,
    body.aka-page-ballongdilatation .aka-fluid-container,
    body.aka-page-kirurgi .aka-fluid-container,
    body.aka-page-medicin .aka-fluid-container,
    body.aka-page-mat-kostrad .aka-fluid-container { padding-top: 0 !important; padding-bottom: 12px; padding-left: 16px !important; padding-right: 16px !important; }
    .aka-hero-wide {
        padding-top: 18px;
        padding-bottom: 30px;
        margin-bottom: 40px;
    }
    /* Sidinnehåll lika brett som sökrutan (12px sidopadding) */
    #akalasi-guide-wrapper {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    .disease-search-sticky-wrapper,
    .az-filter { width: 100%; max-width: 100%; box-sizing: border-box; }
    .aka-article-card {
        padding: 25px 20px;
        border-radius: 15px;
    }
    .aka-hero-content h1 {
        font-size: 2rem !important;
    }
    .rc-category-grid { grid-template-columns: 1fr; }
}

/* Kommentarsfält */
.et_pb_comments_module input,
.et_pb_comments_module textarea {
    background-color: #f9f9f9 !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    padding: 15px !important;
    font-size: 15px !important;
    transition: all 0.3s ease;
}
.et_pb_comments_module input:focus,
.et_pb_comments_module textarea:focus {
    border-color: #1ABC9C !important;
    background-color: #fff !important;
    box-shadow: 0 0 10px rgba(26, 188, 156, 0.1);
    outline: none;
}
.et_pb_comments_module .form-submit .et_pb_button {
    background: #1ABC9C !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
    padding: 12px 35px !important;
    margin-top: 10px;
    transition: all 0.3s ease;
}
.et_pb_comments_module .form-submit .et_pb_button:hover {
    background: #16a085 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 188, 156, 0.3);
}
.et_pb_comments_module .comment-body .avatar {
    border-radius: 50% !important;
    border: 2px solid #1ABC9C;
    padding: 2px;
    width: 60px !important;
    height: 60px !important;
}
.et_pb_comments_module .comment_author {
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
}
.et_pb_comments_module .comment_date {
    color: #95a5a6;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}
.et_pb_comments_module .comment-reply-link {
    color: #1ABC9C !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    border: 1px solid #1ABC9C;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.3s;
}
.et_pb_comments_module .comment-reply-link:hover {
    background-color: #1ABC9C !important;
    color: #fff !important;
    text-decoration: none;
}

/* Forum-knappar */
.aka-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 15px;
}
.aka-forum-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    min-width: 160px;
    border-radius: 50px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1;
    text-align: center;
}
.aka-forum-btn.btn-solid {
    background-color: #1ABC9C;
    color: #fff !important;
    border: 2px solid #1ABC9C;
    box-shadow: 0 4px 10px rgba(26, 188, 156, 0.2);
}
.aka-forum-btn.btn-solid:hover {
    background-color: #16a085;
    border-color: #16a085;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 188, 156, 0.3);
}
.aka-forum-btn.btn-outline {
    background-color: transparent;
    color: #1ABC9C !important;
    border: 2px solid #1ABC9C;
}
.aka-forum-btn.btn-outline:hover {
    background-color: #1ABC9C;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 188, 156, 0.2);
}
@media (max-width: 480px) {
    .aka-button-container { flex-direction: column; gap: 15px; }
    .aka-forum-btn { width: 100%; }
}

/* Brödsmulor (Rank Math) – visa bara den i headern, dölj dublett i innehållet */
.rank-math-breadcrumb {
    display: none !important;
}
.aka-breadcrumbs-bar .rank-math-breadcrumb {
    display: block !important;
}
.rank-math-breadcrumb,
.rank-math-breadcrumb p {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 0 !important;
    line-height: 1.5em;
}
.rank-math-breadcrumb a {
    color: #1ABC9C;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}
.rank-math-breadcrumb a:hover {
    color: #16a085;
    text-decoration: underline;
}
.rank-math-breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}
.rank-math-breadcrumb .last {
    color: #555;
    font-weight: 600;
    cursor: default;
}
@media (max-width: 480px) {
    .rank-math-breadcrumb {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Övre headern: logo vänster, menyn till höger */
#aka-global-header .aka-upper-bar .aka-inner,
.aka-upper-bar .aka-inner {
    justify-content: space-between !important;
}
.aka-upper-bar .aka-main-nav {
    margin-left: auto;
}
/* Gröna raden: sök vänster/centrum, CTA-knappar (Hitta Vård, Till Forumet) justerade åt höger */
.aka-lower-bar .aka-inner {
    justify-content: space-between !important;
    align-items: center;
}
.aka-lower-bar .aka-bar-center {
    flex: 1;
    margin-right: 20px;
}
.aka-lower-bar .aka-bar-right {
    margin-left: auto;
    flex-shrink: 0;
}

/* Brödsmulefältet i headern – förhindra "långt sträck" (t.ex. orrenderad shortcode eller Divi-padding) */
#aka-global-header .aka-breadcrumbs-bar,
.aka-breadcrumbs-bar {
    min-height: 0 !important;
    max-height: 48px !important;
    overflow: hidden !important;
    padding: 4px 0 !important;
}
#aka-global-header .aka-breadcrumbs-content,
.aka-breadcrumbs-content {
    min-height: 0 !important;
    overflow: hidden !important;
}
/* Dölj orrenderad shortcode-text så den inte skapar en synlig remsa */
.aka-breadcrumbs-content:not(:has(.aka-breadcrumb)):not(:has(nav)) {
    font-size: 0 !important;
    line-height: 0 !important;
}

/* Egna brödsmulor [aka_breadcrumb] / ersättning av [rank_math_breadcrumb] – samma look som ovan */
.aka-breadcrumb {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    color: #888;
    margin: 0 !important;
    line-height: 1.5em;
}
.aka-breadcrumb a {
    color: #1ABC9C;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}
.aka-breadcrumb a:hover {
    color: #16a085;
    text-decoration: underline;
}
.aka-breadcrumb-sep {
    margin: 0 8px;
    color: #ccc;
}
.aka-breadcrumb-current {
    color: #555;
    font-weight: 600;
}
@media (max-width: 480px) {
    .aka-breadcrumb {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.home .aka-breadcrumbs-row {
    display: none !important;
}

#main-footer .et_pb_widget_area_left,
#footer-widgets .footer-widget:first-child .search-form,
#footer-bottom .et_pb_search {
    display: none !important;
}

/* Mobil: centrera sidfot (Divi) – hela sajten */
@media (max-width: 767px) {
    #main-footer .et_pb_row,
    #footer-widgets .container .et_pb_row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    #main-footer .et_pb_column,
    #footer-widgets .et_pb_column {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }
    #main-footer .et_pb_module,
    #main-footer .footer-widget,
    #main-footer .widget_block,
    #main-footer .et_pb_text,
    #main-footer .et_pb_text_inner,
    #footer-widgets .footer-widget,
    #footer-widgets .fwidget {
        text-align: center !important;
    }
    #main-footer ul,
    #footer-widgets ul {
        list-style: none !important;
        padding-left: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    #main-footer ul li,
    #footer-widgets ul li {
        text-align: center !important;
    }
    #footer-bottom .et_pb_row,
    #footer-bottom .et_pb_column,
    #footer-bottom .et_pb_text,
    #footer-bottom .et_pb_text_inner,
    #footer-info,
    #footer-info .et_pb_text {
        text-align: center !important;
        justify-content: center !important;
    }
    #main-footer .et_pb_social_media_follow,
    #main-footer .et_pb_social_media_follow li {
        justify-content: center !important;
        text-align: center !important;
    }
}

/* Sidmall Butiksmall (page-butiksmall.php): full bredd, ingen sidofält */
.aka-shop-page-main {
    width: 100%;
    max-width: none;
}
.aka-shop-page-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}
/* Produktgrid i butiksmall: full bredd, inget squeezing – tvinga alla wrappers */
.aka-shop-page-main,
.aka-shop-page-main .aka-shop-page-inner {
    display: block !important;
    width: 100% !important;
}
.aka-shop-page-inner .woocommerce,
.aka-shop-page-inner .et_pb_section,
.aka-shop-page-inner .et_pb_row,
.aka-shop-page-inner .et_pb_column,
.aka-shop-page-inner .et_pb_module {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
}
.aka-shop-page-inner ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
}
@media (min-width: 1024px) {
    .aka-shop-page-inner ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 767px) {
    .aka-shop-page-inner ul.products {
        grid-template-columns: 1fr !important;
    }
}
.aka-shop-page-inner ul.products li.product {
    min-width: 0;
    width: auto;
    max-width: none;
    box-sizing: border-box;
}

/* Nollställ Divi WooCommerce-styling på produktkort (et_pb_shop_item_*) så att Grid vinner */
.aka-shop-page-inner ul.products li.product,
.aka-shop-page-inner ul.products li[class*="et_pb_shop_item"] {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

