/* HEADER AREA */
.archive-header {
    background-color: #fff;
    padding: 0.8rem 1rem 1.5rem; /* Lite mindre padding i toppen */
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 1rem;
}

/* FLEX-RADEN: Back - Title - Guru */
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    width: 100%;
}

/* Vänster och Höger kolumn: Tar bara den plats de behöver */
.col-left, .col-right {
    flex: 0 0 auto;
}

/* Mitten: Tar all plats som blir över och centrerar texten */
.col-center {
    flex: 1;
    text-align: center;
    min-width: 0; /* Förhindrar att flex-boxen sprängs av lång text */
}

/* Back Link (till vänster) */
.back-link {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    white-space: nowrap;
}
.back-link:hover { color: #d4a017; }

/* Rubriken (i mitten) */
.archive-header h1 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    /* Minskar storleken något för att garantera att den får plats på en rad */
    font-size: 1.2rem; 
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
    line-height: 1.2;
    
    /* Om titeln är extremt lång klipper vi den snyggt med "..." */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Guru Button (till höger) - Kompakt version */
.btn-guru-compact {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #f5f5f5;
    color: #2c3e50;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    font-size: 0.8rem; /* Lite mindre text */
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
}

.btn-guru-compact:hover {
    border-color: #d4a017;
    color: #d4a017;
}

/* Beskrivningen ligger kvar under */
.desc-container {
    width: 100%;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px dashed #eee; 
}
.archive-desc {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    font-style: italic;
}

/* ... Resten av filen (article-list, card styles osv) är oförändrad ... */
.article-list { max-width: 800px; margin: 0 auto; padding: 0 1rem; }
.archive-card { background: #fff; border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid #f0f0f0; }
.card-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: #999; margin-bottom: 0.8rem; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }
.meta-cat { color: #d4a017; font-weight: 700; }
.card-title { margin: 0 0 0.8rem 0; line-height: 1.3; }
.card-title a { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: #111; text-decoration: none; font-weight: 700; }
.card-summary-wrapper { margin-bottom: 1rem; }
.summary-text { font-family: 'Lora', serif; font-size: 1rem; color: #444; line-height: 1.6; transition: max-height 0.3s ease; }
.summary-text.clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-action-bar { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f9f9f9; padding-top: 1rem; margin-top: 0.5rem; }
.read-more-btn { background: none; border: none; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 0.85rem; font-weight: 700; color: #888; cursor: pointer; padding: 0; }
.go-to-article-btn { display: flex; align-items: center; gap: 5px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 0.85rem; font-weight: 700; color: #d4a017; text-decoration: none; text-transform: uppercase; }
.empty-state { text-align: center; padding: 3rem; color: #999; font-family: 'Lora', serif; font-style: italic; }