/* ==========================================================================
   Bokari.se — Page styles
   Book listings, book detail, categories, series, tags, universes,
   store lists, static pages, error pages.
   ========================================================================== */

/* <picture> wrappers act as pass-through so cover imgs fill their containers */
.book-image picture,
.featured-image picture,
.book-cover picture {
    display: contents;
}

/* --------------------------------------------------------------------------
   Page headers
   -------------------------------------------------------------------------- */

.page-header {
    text-align: center;
    padding: 1.5rem 0 2.25rem;
    margin-bottom: 2.5rem;
    border-bottom: 3px double var(--line-strong);
}

.page-header h1 { margin-bottom: .5rem; }

.page-header p,
.page-description {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 62ch;
    margin-inline: auto;
}

/* Editorial tagline under a page H1 (e.g. series pages) */
.page-kicker {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--green);
    margin-bottom: .35rem;
}

/* Serie-status (eyebrow ovanför serietiteln) */
.series-status {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin: 0 0 .55rem;
}
.series-status--ongoing { color: var(--green); }
.series-status--completed { color: var(--ink-soft); }
.series-status-dot {
    width: .46rem;
    height: .46rem;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(76, 97, 79, .5);
    animation: series-status-pulse 2.6s ease-out infinite;
}
@keyframes series-status-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(76, 97, 79, .5); }
    70%  { box-shadow: 0 0 0 .4rem rgba(76, 97, 79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 97, 79, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .series-status-dot { animation: none; }
}

/* --------------------------------------------------------------------------
   Shared card grids
   -------------------------------------------------------------------------- */

.books-grid,
.categories-grid,
.categories-overview-grid,
.series-grid,
.tags-grid,
.universes-grid,
.lists-grid {
    display: grid;
    gap: 1.1rem;
}

/* Fixed column counts (2 -> 3 -> 6) so 30-per-page listings always
   end on a full row, on every screen size. Tätare kort på PC. */
.books-grid { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 640px) {
    .books-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1000px) {
    .books-grid { grid-template-columns: repeat(6, 1fr); }
}

.categories-grid,
.categories-overview-grid,
.series-grid,
.tags-grid,
.universes-grid,
.lists-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Long unbreakable words (single-word titles, URL-like strings) must
   never overflow their cards - break and hyphenate as a last resort.
   Both properties inherit, so container-level is enough. */
.book-item,
.featured-item,
.news-card,
.character-card,
.map-card,
.tree-card,
.timeline-content,
.alt-path,
.similar-universe-card,
.lineage-row,
.edition-header,
.cover-fallback {
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Shared card base */
.book-item,
.category-card,
.series-item,
.tag-item,
.universe-item,
.list-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.book-item:hover,
.category-card:hover,
.series-item:hover,
.tag-item:hover,
.universe-item:hover,
.list-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: var(--line-strong);
}

/* --------------------------------------------------------------------------
   Series cards: cover strip on top + fully clickable card
   -------------------------------------------------------------------------- */

.series-item { position: relative; display: flex; flex-direction: column; }

.series-covers {
    display: flex;
    gap: .6rem;
    justify-content: center;
    align-items: flex-end;
    padding: 1.4rem 1.25rem 1.1rem;
    background: linear-gradient(160deg, var(--accent-wash), var(--green-wash));
    border-bottom: 1px solid var(--line);
}

.series-cover {
    position: relative;
    width: 30%;
    max-width: 104px;
    aspect-ratio: 2 / 3;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--card);
}

.series-cover:first-child:not(:only-child) { transform: rotate(-2.5deg) translateY(3px); }
.series-cover:nth-child(2) { z-index: 1; transform: translateY(-3px); }
.series-cover:last-child:not(:only-child):not(:nth-child(2)) { transform: rotate(2.5deg) translateY(3px); }

.series-cover picture,
.series-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.series-cover .cover-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .4rem;
    font-size: .7rem;
    text-align: center;
    color: var(--ink-soft);
}

.series-item .series-content { padding: 1.1rem 1.4rem 1.3rem; }

/* Whole card clickable via the title link; inner links stay on top */
.series-card-link { color: var(--ink); }
.series-card-link::after { content: ""; position: absolute; inset: 0; }
.series-item .universe-info a { position: relative; z-index: 2; }

/* Kort-meta: genre · status · antal delar */
.series-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem .7rem;
    margin: .5rem 0 .1rem;
    font-size: .8rem;
    color: var(--ink-soft);
}
.series-card-genre { color: var(--green-deep); font-weight: 700; }
.series-card-status {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .72rem;
}
.series-card-status::before {
    content: "";
    width: .4rem; height: .4rem; border-radius: 50%;
    background: currentColor;
}
.series-card-status--ongoing { color: var(--green); }
.series-card-status--completed { color: var(--ink-soft); }
.series-card-count { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Serie-filter
   -------------------------------------------------------------------------- */
.series-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.1rem 1.6rem;
    margin: 0 auto 2.25rem;
    padding: 1.25rem 1.4rem;
    max-width: 1000px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.series-filter-group { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.series-filter-group legend {
    padding: 0;
    margin-bottom: .5rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.series-filter-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.filter-chip { position: relative; cursor: pointer; }
.filter-chip input {
    position: absolute; opacity: 0; width: 0; height: 0;
}
.filter-chip span {
    display: inline-block;
    padding: .32rem .75rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    color: var(--ink);
    font-size: .85rem;
    line-height: 1.1;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.filter-chip:hover span { border-color: var(--green); }
.filter-chip input:checked + span {
    background: var(--green);
    border-color: var(--green);
    color: #FDF9F0;
}
.filter-chip input:focus-visible + span {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.series-filter-actions {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-left: auto;
    align-self: center;
}
.series-filter-count { font-size: .85rem; color: var(--ink-soft); font-weight: 700; }
.series-filter-clear {
    background: none;
    border: 0;
    color: var(--accent);
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.series-filter-clear:hover { color: var(--accent-deep); }
/* [hidden] måste vinna över .series-item display:flex vid filtrering */
.series-item[hidden] { display: none !important; }
.series-no-match {
    text-align: center;
    color: var(--ink-soft);
    padding: 2rem 0;
}
@media (max-width: 640px) {
    .series-filter { padding: 1rem; gap: 1rem 1.2rem; }
    .series-filter-actions { margin-left: 0; width: 100%; justify-content: space-between; }
}

/* Serielist: intro, tips, paginering, FAQ */
.series-intro {
    max-width: 680px;
    margin: 0 auto 2rem;
    text-align: left;
}
.series-intro p {
    color: var(--ink-soft);
    margin-bottom: .8rem;
}
.series-intro p:last-child { margin-bottom: 0; }

.series-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 2.5rem;
}
.series-page-btn {
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 .6rem;
    border: 1px solid var(--line-strong);
    background: var(--card);
    color: var(--ink);
    font: inherit;
    font-size: .92rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.series-page-btn:hover:not(:disabled) { border-color: var(--green); }
.series-page-btn.is-current {
    background: var(--green);
    border-color: var(--green);
    color: #FDF9F0;
    font-weight: 700;
}
.series-page-btn:disabled { opacity: .4; cursor: default; }

.series-tips {
    max-width: 760px;
    margin: 3.5rem auto 0;
}
.series-tips h2 { text-align: center; margin-bottom: 1.25rem; }
.series-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .9rem;
}
.series-tips-list li {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    color: var(--ink-soft);
    box-shadow: var(--shadow-sm);
}
.series-tips-list li strong { color: var(--ink); }

.series-list-faq {
    max-width: 760px;
    margin: 3.5rem auto 0;
}
.series-list-faq h2 { text-align: center; margin-bottom: 1.25rem; }

/* --------------------------------------------------------------------------
   Book cards
   -------------------------------------------------------------------------- */

.book-item { display: flex; flex-direction: column; }

.book-image {
    position: relative;
    aspect-ratio: 2 / 3;
    background: linear-gradient(160deg, var(--accent-wash), var(--green-wash));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.book-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.book-info,
.book-item .book-content {
    padding: .6rem .75rem .85rem;
    display: flex;
    flex-direction: column;
    gap: .18rem;
    flex: 1;
}

.book-info h3,
.book-item .book-content h3 { font-size: .96rem; line-height: 1.25; }

.book-info h3 a,
.book-item .book-content h3 a { color: var(--ink); }

.book-info h3 a:hover,
.book-item .book-content h3 a:hover { color: var(--accent); }

.book-info .author,
.book-item .book-content .author {
    font-style: italic;
    color: var(--green);
    font-size: .84rem;
}

.book-info .book-date-label {
    margin-top: .3rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.book-item .book-content .series-info,
.book-item .book-content .release-year {
    background: none;
    color: var(--ink-soft);
    font-size: .88rem;
    padding: 0;
}

.book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    font-size: .85rem;
    color: var(--ink-soft);
    margin-top: auto;
    padding-top: .4rem;
}

.release-year,
.year,
.book-count,
.series-book-count,
.category-count,
.universe-year {
    display: inline-block;
    background: var(--green-wash);
    color: var(--green-deep);
    font-size: .82rem;
    font-weight: 700;
    padding: .1rem .65rem;
    border-radius: 999px;
}

.book-description,
.book-item .description {
    font-size: .83rem;
    line-height: 1.45;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Book detail page
   -------------------------------------------------------------------------- */

.book-detail { max-width: 1000px; margin-inline: auto; }

.book-header {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.book-cover {
    position: relative;
    align-self: start;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: linear-gradient(160deg, var(--accent-wash), var(--green-wash));
    aspect-ratio: 2 / 3;
}

.book-cover img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.book-cover .cover-fallback { font-size: 1.4rem; }

.book-content h1 { margin-bottom: .35rem; }

/* Year · genre byline under the author */
.book-byline {
    font-size: .95rem;
    color: var(--ink-soft);
    margin-bottom: 1rem;
}

.book-original-title {
    font-size: .9rem;
    color: var(--ink-soft);
    margin: -.5rem 0 1rem;
}

.book-original-title em {
    font-style: italic;
}

/* Series/universe lineage panel */
.book-lineage {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin: 0 0 1.25rem;
    max-width: 520px;
}

.lineage-row {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .55rem 1rem;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.lineage-row:hover {
    border-color: var(--green);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
}

.lineage-label {
    flex-shrink: 0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green);
    min-width: 5.5rem;
}

.lineage-value {
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.lineage-row:hover .lineage-value { color: var(--green-deep); }

.lineage-position {
    margin-left: auto;
    flex-shrink: 0;
    font-size: .82rem;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.lineage-dots { display: inline-flex; gap: 3px; }

.lineage-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line-strong);
}

.lineage-dots .dot.filled { background: var(--green); }

.book-content .author {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--green);
    margin-bottom: 1rem;
}

.book-summary {
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1rem 0 1.5rem;
}

.tag {
    display: inline-block;
    background: var(--card);
    border: 1px solid var(--line-strong);
    color: var(--ink);
    font-size: .85rem;
    font-weight: 700;
    padding: .18rem .8rem;
    border-radius: 999px;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

a.tag:hover { background: var(--green); border-color: var(--green); color: #FDF9F0; }

/* Spoiler block */
.spoiler-warning {
    background: var(--accent-wash);
    border: 1px dashed var(--accent);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.spoiler-toggle-btn {
    border: none;
    background: none;
    color: var(--green-deep);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.spoiler-toggle-btn:hover { color: var(--accent-deep); }

.spoiler-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Editions
   -------------------------------------------------------------------------- */

/* Price comparison box */
.price-compare {
    background: var(--green-wash);
    border: 1px solid var(--green);
    border-radius: var(--radius);
    padding: 1.5rem 1.9rem 1.1rem;
    margin-top: 2.5rem;
}

.price-compare-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1rem;
}

.price-compare-header h2 { font-size: 1.25rem; }

.price-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.price-filter {
    border: 1.5px solid var(--green);
    background: transparent;
    color: var(--green-deep);
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 700;
    padding: .25rem .9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.price-filter:hover { background: rgba(76, 97, 79, .12); }

.price-filter.active {
    background: var(--green);
    color: #FDF9F0;
}

.price-list { list-style: none; }

.price-row {
    display: grid;
    grid-template-columns: minmax(120px, 1.2fr) auto minmax(0, 1.4fr) auto auto auto;
    align-items: center;
    gap: .5rem 1rem;
    padding: .65rem 0;
    border-bottom: 1px solid rgba(76, 97, 79, .25);
}

.price-row:last-child { border-bottom: none; }

.price-store {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: 1rem;
}

.store-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
}

.price-meta {
    font-size: .88rem;
    color: var(--ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lang-flag {
    display: inline-block;
    width: 16px;
    height: 12px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(72, 52, 32, .18);
    vertical-align: -1px;
}

.price-amount {
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--accent-deep);
    white-space: nowrap;
    text-align: right;
}

.price-amount small { color: var(--ink-soft); font-weight: 500; }

.price-compare-footer {
    margin-top: .75rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .9rem;
}

.ad-disclosure {
    font-size: .8rem;
    font-style: italic;
    color: var(--ink-soft);
}

.audiobook-facts {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.6rem;
    margin: 0 0 1rem;
    padding: .7rem .95rem;
    background: rgba(76, 97, 79, .07);
    border-radius: 8px;
    font-size: .92rem;
}

.audiobook-facts > div { display: flex; gap: .45rem; align-items: baseline; }
.audiobook-facts dt { color: var(--ink-soft); font-weight: 600; }
.audiobook-facts dd { margin: 0; }

@media (max-width: 700px) {
    .price-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "store  price"
            "meta   stock"
            "format buy";
    }
    .price-row .price-store { grid-area: store; }
    .price-row .price-amount { grid-area: price; }
    .price-row .price-meta { grid-area: meta; white-space: normal; }
    .price-row .stock-status { grid-area: stock; text-align: right; }
    .price-row .edition-format { grid-area: format; justify-self: start; }
    .price-row .store-button { grid-area: buy; justify-self: end; }
}

/* Editions as accordions */
.book-editions { margin-top: 2.5rem; }

.book-editions > h2,
.editions-intro {
    margin-bottom: 1rem;
}

.editions-intro { color: var(--ink-soft); }

.editions-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.edition-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.edition-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    padding: .9rem 3rem .9rem 1.6rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: background-color .15s ease;
}

.edition-header::-webkit-details-marker { display: none; }

.edition-header::after {
    content: "+";
    position: absolute;
    right: 1.3rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--accent);
    transition: transform .2s ease;
}

.edition-item[open] > .edition-header::after { transform: translateY(-50%) rotate(45deg); }

.edition-header:hover { background: var(--accent-wash); }

.edition-item[open] > .edition-header {
    border-bottom: 1px solid var(--line);
}

.edition-summary-meta {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}

.edition-year {
    font-size: .85rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.edition-body { padding: 1.1rem 1.6rem 1.4rem; }

.edition-header h3 { font-size: 1.1rem; }

.edition-format {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--green);
    color: #FDF9F0;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .2rem .75rem;
    border-radius: 999px;
}

.edition-format svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.edition-details { margin-bottom: 1rem; }

.edition-specs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.5rem;
    font-size: .95rem;
    color: var(--ink-soft);
}

.spec-item strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   Store list (buy links)
   -------------------------------------------------------------------------- */

.edition-stores { border-top: 1px solid var(--line); padding-top: 1rem; }

/* Retailer table: one store per row, zebra white/near-white, ISBN-deeplinked.
   The Pris column and "Till butik" button appear once feeds carry a price;
   until then rows show the logo and a "Sök" button. */
.store-box { margin-top: .5rem; }

.store-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-size: .95rem;
}

.store-table thead th {
    text-align: left;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #FDF9F0;
    background: var(--green);
    padding: .6rem .95rem;
    border-bottom: 1px solid var(--green-deep);
}

.store-table thead th.store-th-action,
.store-table thead th.store-th-price { text-align: right; }

.store-table tbody td {
    padding: .65rem .95rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--line);
}

.store-table tbody tr:last-child td { border-bottom: 0; }
.store-table tbody tr:nth-child(odd)  { background: #ffffff; }
.store-table tbody tr:nth-child(even) { background: var(--card); }

.store-shop { display: inline-flex; align-items: center; gap: .6rem; }

.store-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(51, 38, 26, .06);
    flex-shrink: 0;
}
.store-mark img { width: 26px; height: 26px; object-fit: contain; display: block; }

.store-shop-name { font-weight: 700; color: var(--ink); }

.store-td-price {
    text-align: right;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}
.store-price-na { color: var(--ink-soft); font-weight: 400; }

.store-td-action { text-align: right; white-space: nowrap; width: 1%; }

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .01em;
    padding: .5rem 1.2rem;
    border-radius: 999px;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.store-btn-arrow { transition: transform .16s ease; }
.store-btn:hover .store-btn-arrow { transform: translateX(3px); }

.store-btn-primary {
    color: #FFF7EC;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    box-shadow: 0 4px 12px rgba(176, 74, 37, .34), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.store-btn-primary:hover {
    color: #FFF7EC;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(176, 74, 37, .44), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.store-btn-ghost {
    color: var(--accent-deep);
    background: var(--card);
    border: 1.5px solid var(--line-strong);
    box-shadow: 0 1px 2px rgba(51, 38, 26, .07);
}
.store-btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 7px 16px rgba(51, 38, 26, .13);
}

.store-box-disclosure {
    margin: .7rem 0 0;
    font-size: .75rem;
    color: var(--ink-soft);
}

.store-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.store-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .7rem 1rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.store-item:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.store-info {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .35rem 1rem;
}

.store-name { font-weight: 700; }

.store-details {
    display: flex;
    align-items: baseline;
    gap: .8rem;
    font-size: .95rem;
}

.store-price {
    font-weight: 700;
    color: var(--accent-deep);
}

.stock-status { font-size: .85rem; font-weight: 700; }
.stock-status.in-stock { color: var(--green); }
.stock-status.out-of-stock { color: #A33; }

.store-button {
    flex-shrink: 0;
    display: inline-block;
    background: var(--accent);
    color: #FDF9F0;
    font-size: .92rem;
    font-weight: 700;
    padding: .45rem 1.2rem;
    border-radius: 999px;
    transition: background-color .15s ease, transform .15s ease;
}

.store-button:hover {
    background: var(--accent-deep);
    color: #FDF9F0;
    transform: translateY(-1px);
}

.store-fallback,
.no-purchase-links {
    font-size: .92rem;
    color: var(--ink-soft);
    font-style: italic;
}

/* --------------------------------------------------------------------------
   Category index (/bok/kategori/) - bright tiles with icons
   -------------------------------------------------------------------------- */

.category-index {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 1.5rem;
}

.category-tile {
    background: #FFFEFA;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.7rem 1.6rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: .8rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: var(--green);
}

.category-tile-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-tile-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-tile-icon svg { width: 26px; height: 26px; }

/* Rotate warm washes so the wall of tiles feels alive but calm */
.category-tile:nth-child(3n+1) .category-tile-icon { background: var(--green-wash); color: var(--green-deep); }
.category-tile:nth-child(3n+2) .category-tile-icon { background: var(--gold-wash); color: #8a6d1a; }
.category-tile:nth-child(3n)   .category-tile-icon { background: var(--accent-wash); color: var(--accent-deep); }

.category-tile-title h2 { font-size: 1.3rem; }
.category-tile-title h2 a { color: var(--ink); }
.category-tile-title h2 a:hover { color: var(--accent-deep); }

.category-tile-count {
    font-size: .82rem;
    font-weight: 700;
    color: var(--green);
}

.category-tile-count.is-empty {
    color: var(--ink-soft);
    font-weight: 500;
    font-style: italic;
}

.category-tile-description {
    font-size: .95rem;
    color: var(--ink-soft);
}

.category-tile-subs {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: auto;
    padding-top: .35rem;
}

.sub-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: .18rem .75rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--ink);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.sub-chip:hover {
    background: var(--green);
    border-color: var(--green);
    color: #FDF9F0;
}

.sub-chip-count {
    background: var(--green-wash);
    color: var(--green-deep);
    border-radius: 999px;
    font-size: .72rem;
    padding: 0 .45rem;
    line-height: 1.4;
}

.sub-chip:hover .sub-chip-count { background: rgba(253, 249, 240, .25); color: #FDF9F0; }

/* Compact category row on the /bok/ hub */
.category-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: .8rem;
}

.category-quick {
    display: flex;
    align-items: center;
    gap: .7rem;
    background: #FFFEFA;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .65rem .9rem;
    color: var(--ink);
    font-weight: 700;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.category-quick:hover {
    border-color: var(--green);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
    color: var(--ink);
}

.category-quick-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-wash);
    color: var(--green-deep);
}

.category-quick:nth-child(3n+2) .category-quick-icon { background: var(--gold-wash); color: #8a6d1a; }
.category-quick:nth-child(3n) .category-quick-icon { background: var(--accent-wash); color: var(--accent-deep); }

.category-quick-icon svg { width: 20px; height: 20px; }

.category-quick-name { flex: 1; font-size: .95rem; }

.category-quick-count {
    background: var(--green-wash);
    color: var(--green-deep);
    border-radius: 999px;
    font-size: .78rem;
    padding: .05rem .55rem;
}

.mood-cloud { gap: .55rem; }
.mood-cloud .tag { font-size: .92rem; padding: .3rem 1rem; }

.explore-grid { margin-top: .25rem; }

.explore-card { position: relative; padding-top: 1.3rem; }

.explore-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-wash);
    color: var(--green-deep);
    margin-bottom: .25rem;
}

.explore-card:nth-child(2) .explore-icon { background: var(--gold-wash); color: #8a6d1a; }
.explore-card:nth-child(3) .explore-icon { background: var(--accent-wash); color: var(--accent-deep); }

.explore-icon svg { width: 24px; height: 24px; }

/* Audiobook meta on cards */
.audio-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--green-deep);
}

.audio-meta svg { width: 15px; height: 15px; flex-shrink: 0; }

.listener-pitch { max-width: 780px; margin: 0 auto 2.5rem; }

/* Audiobook service comparison */
.service-verdict {
    background: var(--gold-wash);
    border: 1px solid var(--gold-line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.3rem 1.7rem;
    margin: 0 auto 2.5rem;
    max-width: 780px;
}

.service-verdict ul { list-style: none; }

.service-verdict li {
    padding: .35rem 0;
    font-size: 1rem;
}

.service-verdict li strong { color: var(--ink); }

.service-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0 2.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.service-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .93rem;
    min-width: 720px;
}

.service-table th,
.service-table td {
    padding: .65rem .9rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.svc-campaign {
    display: inline-block;
    margin-top: .3rem;
    color: var(--green-deep, #2f6d4f);
    font-size: .8rem;
    font-weight: 600;
}

.service-table thead th {
    font-size: .78rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border-bottom: 2px solid var(--line-strong);
    white-space: nowrap;
}

.service-table tbody th {
    font-family: var(--font-display);
    font-size: 1.02rem;
    white-space: nowrap;
}

.service-table tr:last-child td,
.service-table tr:last-child th { border-bottom: none; }

.service-section {
    max-width: 760px;
    margin: 0 auto 2.25rem;
}

.service-section h3 {
    font-size: 1.35rem;
    margin-bottom: .5rem;
}

.service-section .service-meta {
    font-size: .88rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: .6rem;
}

.service-section p { margin-bottom: .8rem; }

.service-prose {
    max-width: 760px;
    margin: 0 auto 2.25rem;
}

.service-prose p { margin-bottom: 1rem; }

.methodology-note {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    font-size: .92rem;
    color: var(--ink-soft);
    background: var(--card);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    padding: .9rem 1.3rem;
}

/* --- Katalogtest (Bokaris täckningsdata) --- */
.catalog-test { max-width: 820px; margin: 0 auto 3rem; }
.catalog-test .num {
    font-family: var(--font-mono, ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace);
    font-variant-numeric: tabular-nums;
}
.ct-head { margin-bottom: 1.6rem; }
.ct-eyebrow {
    display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold); font-weight: 700; margin-bottom: .5rem;
}
.ct-head h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: .6rem; }
.ct-head p { color: var(--ink-soft); }

.ct-meters { display: flex; flex-direction: column; gap: .7rem; }
.ct-row {
    display: grid; grid-template-columns: 130px 1fr auto; gap: 1rem 1.1rem; align-items: center;
    padding: .9rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.ct-row.ct-lead { border-color: var(--gold-line); background: var(--gold-wash); }
.ct-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.ct-tag {
    font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
    font-weight: 700; border: 1px solid var(--gold-line); border-radius: 3px; padding: .08rem .35rem;
    margin-left: .35rem; vertical-align: middle; white-space: nowrap;
}
.ct-track { height: 24px; background: var(--line); border-radius: 4px; overflow: hidden; }
.ct-track i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.ct-row.ct-lead .ct-track i { background: var(--gold); }
.ct-pct { font-size: 1.5rem; font-weight: 600; min-width: 58px; text-align: right; }
.ct-pct small { font-size: .75rem; color: var(--ink-soft); }
.ct-rownote { grid-column: 2 / -1; font-size: .82rem; color: var(--ink-soft); margin-top: -.2rem; }
.ct-foot { margin: 1.1rem 0 0; color: var(--ink-soft); font-size: .95rem; }

.ct-subhead { font-size: 1.3rem; margin: 2.4rem 0 .4rem; }
.ct-lead-in { color: var(--ink-soft); margin-bottom: 1.1rem; }

.ct-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.ct-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.ct-panel h4 { font-size: 1.1rem; margin: 0 0 .1rem; }
.ct-sub { font-size: .8rem; color: var(--ink-soft); margin-bottom: 1rem; }
.ct-bar { display: grid; grid-template-columns: 76px 1fr 42px; gap: .6rem; align-items: center; margin: .55rem 0; }
.ct-bnm { font-size: .9rem; }
.ct-btk { height: 8px; background: var(--line); border-radius: 5px; overflow: hidden; }
.ct-btk i { display: block; height: 100%; background: var(--green); border-radius: 5px; }
.ct-bar.win .ct-btk i { background: var(--gold); }
.ct-bv { font-size: .85rem; text-align: right; color: var(--ink-soft); }

.ct-genre th.num, .ct-genre td.num { text-align: right; white-space: nowrap; }
.ct-cell-lead { color: var(--gold); font-weight: 700; }
.ct-leadname { white-space: nowrap; font-size: .9rem; }

.ct-method {
    margin-top: 2.2rem; background: var(--green-wash);
    border: 1px solid var(--green-line, var(--line)); border-radius: var(--radius); padding: 1.3rem 1.5rem;
}
.ct-flag {
    display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--green-deep, var(--green)); font-weight: 700; margin-bottom: .6rem;
}
.ct-method p { font-size: .9rem; color: var(--ink-soft); margin-bottom: .7rem; }
.ct-method p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
    .ct-row { grid-template-columns: 110px 1fr auto; }
    .ct-split { grid-template-columns: 1fr; }
}
.ct-row { grid-template-columns: 150px 1fr auto; }
.ct-name { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.ct-rownote { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* --- Varumärke, CTA, snabbval, paketrutor --- */
.brand-chip {
    display: inline-block; background: var(--bc, #6b6b6b); color: #fff;
    font-family: var(--font-display); font-weight: 700; letter-spacing: .01em;
    padding: .12em .55em; border-radius: 6px; line-height: 1.35;
}
.cta {
    display: inline-flex; align-items: center; gap: .4em; background: var(--bc, var(--gold));
    color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none;
    padding: .62rem 1.15rem; border-radius: 9px; white-space: nowrap;
    transition: filter .15s ease, transform .1s ease;
}
.cta:hover { filter: brightness(1.08); color: #fff; }
.cta:active { transform: translateY(1px); }
.cta span { transition: transform .15s ease; }
.cta:hover span { transform: translateX(3px); }
.cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.cta-sm { padding: .34rem .72rem; font-size: .82rem; border-radius: 7px; }

.picks { max-width: 900px; margin: 0 auto 2.75rem; }
.picks > h2 { text-align: center; margin-bottom: 1.4rem; }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.pick-card {
    display: flex; flex-direction: column; gap: .8rem; background: var(--card);
    border: 1px solid var(--line); border-top: 3px solid var(--bc, var(--gold));
    border-radius: var(--radius); padding: 1.3rem 1.4rem;
}
.pick-label { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.pick-text { font-size: .93rem; color: var(--ink-soft); margin: 0; flex: 1; }
.pick-cta { margin-top: .1rem; }

.svc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .55rem; }
.svc-head .brand-chip { font-size: 1.45rem; }
.svc-soon { font-size: .82rem; color: var(--ink-soft); font-style: italic; }

.plan-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: .6rem; margin: .3rem 0 1.1rem; }
.plan {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: .7rem .8rem; display: flex; flex-direction: column; gap: .12rem;
}
.plan-name { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.plan-price { font-family: var(--font-display); font-size: 1.28rem; font-weight: 700; color: var(--ink); }
.plan-detail { font-size: .8rem; color: var(--ink-soft); line-height: 1.35; }

@media (max-width: 640px) { .pick-grid { grid-template-columns: 1fr; } }

/* --- Jämförelse-promo (ljudböcker-sida + startsida) --- */
.compare-promo {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    background: var(--gold-wash); border: 1px solid var(--gold-line); border-radius: var(--radius);
    padding: 1.4rem 1.6rem; text-decoration: none; color: var(--ink); margin: 1.5rem 0;
    transition: transform .15s ease, box-shadow .15s ease;
}
.compare-promo:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(0, 0, 0, .12); color: var(--ink); }
.compare-promo-body { display: flex; flex-direction: column; gap: .3rem; }
.compare-promo-eyebrow { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.compare-promo-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.compare-promo-sub { font-size: .92rem; color: var(--ink-soft); max-width: 60ch; }
.compare-promo-cta {
    display: inline-flex; align-items: center; gap: .4em; background: var(--ink); color: var(--paper);
    font-weight: 600; padding: .62rem 1.2rem; border-radius: 9px; white-space: nowrap; flex-shrink: 0;
    transition: opacity .15s ease;
}
.compare-promo:hover .compare-promo-cta { opacity: .88; }
.home-compare { margin-top: 2rem; }
@media (max-width: 640px) { .compare-promo { flex-direction: column; align-items: flex-start; } }

/* Riktig logotyp (fil-driven) i en FAST slot: alla fyller samma bredd, höjden
   varierar men hålls inom slotten -> balanserade oavsett proportion. Ljus platta
   så mörka ordmärken syns i båda teman. */
.brand-logo-plate {
    display: inline-flex; align-items: center; background: #fff;
    border: 1px solid var(--line); border-radius: 8px; padding: .34rem .6rem;
    box-sizing: border-box; vertical-align: middle;
    width: 124px; height: 40px;
}
.brand-logo { width: 100%; height: 100%; object-fit: contain; object-position: left center; display: block; }
.svc-head .brand-logo-plate { width: 152px; height: 48px; }
.ct-name .brand-logo-plate { width: 118px; height: 38px; }

/* Dubbla uppdateringsdatum (katalog vs pris) */
.updated-strip {
    display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; justify-content: center;
    max-width: 820px; margin: -.4rem auto 1.9rem; font-size: .85rem; color: var(--ink-soft);
}
.upd { display: inline-flex; align-items: center; gap: .45rem; }
.upd strong { color: var(--ink); font-weight: 600; }
.upd-dot { width: .55rem; height: .55rem; border-radius: 50%; flex-shrink: 0; }
.upd-data .upd-dot { background: var(--green); }
.upd-price .upd-dot { background: var(--gold); }
.ct-method .ct-updated { border-top: 1px solid var(--green-line, var(--line)); padding-top: .8rem; }

/* "Bäst i test"-sigill i vinnarraden */
.ct-name-lead { flex-direction: column; align-items: flex-start; gap: .6rem; }
.bit-badge { width: 84px; height: 84px; display: block; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .16)); }

/* Category detail header */
.category-detail-header .category-detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--green-wash);
    color: var(--green-deep);
    margin-bottom: .8rem;
}

.category-detail-icon svg { width: 30px; height: 30px; }

.category-detail-subs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .45rem;
    margin-top: 1.1rem;
}

/* --------------------------------------------------------------------------
   Category / series / tag / universe cards
   -------------------------------------------------------------------------- */

.category-card,
.series-item,
.tag-item,
.universe-item,
.list-card {
    padding: 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.category-header,
.tag-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.category-title,
.series-title { font-size: 1.2rem; }

.category-title a,
.series-title a { color: var(--ink); }

.category-title a:hover,
.series-title a:hover { color: var(--accent); }

.category-description,
.category-desc,
.tag-description,
.universe-description,
.series-info {
    font-size: .96rem;
    color: var(--ink-soft);
}

.category-link,
.list-link {
    font-weight: 700;
    margin-top: auto;
    padding-top: .5rem;
}

.category-link::after,
.list-link::after,
.section-link::after {
    content: " →";
    transition: margin-left .15s ease;
}

.category-link:hover::after,
.list-link:hover::after,
.section-link:hover::after { margin-left: 4px; }

.tag-stats,
.universe-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    font-size: .88rem;
    color: var(--ink-soft);
}

/* Section wrappers used on list pages */
.categories-section,
.categories-showcase,
.subcategories-section,
.tags-section,
.universes-section,
.universe-info-section,
.books-section,
.content-section,
.featured-lists {
    margin-bottom: 3rem;
}

.category-section { margin-bottom: 2.5rem; }

/* Series groups inside a collection (e.g. universe page book listing):
   generous air between groups, clear heading row */
.series-section {
    margin-top: 3rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--line);
}

.series-section:first-of-type { border-top: none; }

.series-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.series-section-head .series-title { font-size: 1.5rem; }

.series-section-link {
    font-size: .9rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

.section-count {
    font-size: .88rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    white-space: nowrap;
}

/* Similar universes */
.similar-universes { margin: 3.5rem 0 1rem; }
.similar-universes > h2 { margin-bottom: 1.25rem; }

.similar-universe-card {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.similar-universe-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    color: var(--ink);
}

.similar-universe-card h3 { font-size: 1.25rem; }
.similar-universe-card p { font-size: .95rem; color: var(--ink-soft); }

.similar-universe-meta {
    font-size: .85rem;
    font-weight: 700;
    color: var(--green);
}

.similar-universe-shared {
    font-size: .88rem;
    font-style: italic;
    color: var(--ink-soft);
}

.collection-faq {
    max-width: 760px;
    margin: 3.5rem auto 0;
}

.collection-adaptations {
    max-width: 760px;
    margin: 3rem auto 0;
}

.category-listing h2,
.universe-info { margin-bottom: 1rem; }

/* Alphabet navigation on tag list pages */
.tags-letter-group { margin-bottom: 2rem; }

.letter-heading {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--accent);
    border-bottom: 1px solid var(--line);
    padding-bottom: .3rem;
    margin-bottom: 1rem;
}

.letter-links {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 2rem;
}

.letter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 2.1rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    font-weight: 700;
    color: var(--ink);
    transition: background-color .15s ease, color .15s ease;
}

.letter-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FDF9F0;
}

/* --------------------------------------------------------------------------
   Book detail: quick facts, editorial corner, awards, adaptations, trivia, FAQ
   -------------------------------------------------------------------------- */

.quick-facts {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.25rem;
}

.quick-fact {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: .3rem .85rem;
    font-size: .88rem;
    font-weight: 700;
    color: var(--ink);
}

/* Bokari's editorial note: warm gold, clearly distinct from warnings */
.editorial-box {
    background: var(--gold-wash);
    border: 1px solid var(--gold-line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.5rem 1.9rem;
    margin: 2rem 0;
}

.editorial-box h2 {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: .6rem;
}

.editorial-box h2 span {
    margin-right: .3rem;
    color: var(--gold);
}

.editorial-box p {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
}

.mood-tags { margin-top: 1rem; align-items: center; }

.mood-label {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-right: .25rem;
}

.tag.mood {
    background: var(--green-wash);
    color: var(--green-deep);
}

a.tag.mood:hover { background: var(--green); color: #FDF9F0; }

/* Utmärkelser + adaptioner sida vid sida (2 boxar), 1 kolumn på mobil.
   OBS: detta är INTE en bok-kortlista - rör ej med listgrid-ändringar. */
.book-extra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.book-awards,
.book-adaptations {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.7rem;
}

.book-awards h2,
.book-adaptations h2,
.book-facts h2,
.book-faq h2 {
    font-size: 1.25rem;
    margin-bottom: .9rem;
}

.award-list,
.adaptation-list { list-style: none; }

.award-list li,
.adaptation-list li {
    padding: .45rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .98rem;
}

.award-list li:last-child,
.adaptation-list li:last-child { border-bottom: none; }

.award-list em { color: var(--ink-soft); font-size: .9rem; }

.adaptation-type {
    display: inline-block;
    background: var(--green);
    color: #FDF9F0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .12rem .6rem;
    border-radius: 999px;
    margin-right: .35rem;
}

.adaptation-note {
    display: block;
    color: var(--ink-soft);
    font-size: .9rem;
}

.book-facts { margin-top: 2.5rem; }

.fact-list { list-style: none; }

.fact-list li {
    position: relative;
    padding: .5rem 0 .5rem 1.9rem;
    font-size: 1.02rem;
}

.fact-list li::before {
    content: "❧";
    position: absolute;
    left: .25rem;
    color: var(--green);
}

.book-faq { margin-top: 2.5rem; }

/* Spoiler-gated FAQ answers */
.spoiler-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .1rem .6rem;
    border-radius: 999px;
    margin-left: .5rem;
    vertical-align: middle;
}

.spoiler-badge.level-1 {
    background: #F8EFD4;
    color: #8a6d1a;
    border: 1px solid var(--gold);
}

.spoiler-badge.level-2 {
    background: #F8E4DE;
    color: #A33;
    border: 1px solid #A33;
}

.spoiler-gate { padding: 0 1.2rem 1rem; }

.spoiler-gate-note {
    font-size: .9rem;
    font-style: italic;
    color: var(--ink-soft);
    margin-bottom: .5rem;
}

.spoiler-reveal-btn {
    border: 1.5px solid var(--accent);
    background: transparent;
    color: var(--accent-deep);
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 700;
    padding: .35rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.spoiler-reveal-btn:hover {
    background: var(--accent);
    color: #FDF9F0;
}

.spoiler-hidden-answer {
    padding: .6rem 0 0 !important;
    color: var(--ink) !important;
}

.faq-group-title {
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green);
    margin: 1.25rem 0 .6rem;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: .6rem;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: .85rem 1.2rem;
    font-weight: 700;
    list-style: none;
    position: relative;
    padding-right: 2.5rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--green);
    transition: transform .2s ease;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-item summary:hover { background: var(--accent-wash); }

.faq-item p {
    padding: 0 1.2rem 1rem;
    color: var(--ink-soft);
}

/* Consistent section-title rhythm on the book page (same double rule
   as the rest of the site) */
.book-description > h2,
.book-editions > h2,
.book-facts > h2,
.book-faq > h2,
.reading-order > h2,
.related-news > h2,
.similar-books > h2 {
    position: relative;
    padding-bottom: .6rem;
    margin-bottom: 1.25rem;
}

.book-description > h2::after,
.book-editions > h2::after,
.book-facts > h2::after,
.book-faq > h2::after,
.reading-order > h2::after,
.related-news > h2::after,
.similar-books > h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    border-bottom: 3px double var(--accent);
}

/* --------------------------------------------------------------------------
   Book detail extras: reading order, related news, similar books
   -------------------------------------------------------------------------- */

.reading-order,
.related-news,
.similar-books {
    margin-top: 2.5rem;
}

.reading-order h2,
.related-news h2,
.similar-books h2 {
    margin-bottom: 1rem;
}

.reading-order-list {
    counter-reset: ro;
    list-style: none;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .75rem 1.25rem;
}

.reading-order-list li {
    counter-increment: ro;
    display: flex;
    align-items: baseline;
    gap: .75rem;
    padding: .55rem .25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.02rem;
}

.reading-order-list li:last-child { border-bottom: none; }

.reading-order-list li::before {
    content: counter(ro);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--green-wash);
    color: var(--green-deep);
    font-weight: 700;
    font-size: .9rem;
}

.reading-order-list li.current::before {
    background: var(--accent);
    color: #FDF9F0;
}

.reading-order-list li.current span { font-weight: 700; }
.reading-order-list li em { color: var(--ink-soft); font-size: .9rem; }
.reading-order-list .release-year { margin-left: auto; }

.related-news-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.related-news-list li {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .9rem 1.2rem;
}

.related-news-list li a { font-weight: 700; }
.related-news-list li p { font-size: .95rem; color: var(--ink-soft); margin-top: .2rem; }
.news-date { font-size: .85rem; color: var(--ink-soft); margin-left: .5rem; }

/* --------------------------------------------------------------------------
   Static pages (about, contact) & misc
   -------------------------------------------------------------------------- */

.about-content,
.contact-content {
    max-width: 720px;
    margin-inline: auto;
}

.about-content p,
.contact-content p { margin-bottom: 1rem; }

.contact-info {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    margin: 1.5rem 0;
}

.form-placeholder,
.coming-soon {
    background: var(--green-wash);
    border: 1px dashed var(--green);
    border-radius: var(--radius);
    color: var(--green-deep);
    text-align: center;
    padding: 2rem 1.5rem;
    font-style: italic;
    margin: 1.5rem 0;
}

.feature-list {
    list-style: none;
    margin: 1rem 0 1.5rem;
}

.feature-list li {
    padding-left: 1.6rem;
    position: relative;
    margin-bottom: .5rem;
}

.feature-list li::before {
    content: "❧";
    position: absolute;
    left: 0;
    color: var(--green);
}

.no-books,
.no-results,
.no-series {
    text-align: center;
    color: var(--ink-soft);
    font-style: italic;
    padding: 3rem 1rem;
    background: var(--card);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   Series & universe pages: stats band, reading timeline, reading map
   -------------------------------------------------------------------------- */

.collection-moods {
    justify-content: center;
    margin-bottom: 2rem;
}

.collection-intro {
    max-width: 72ch;
    margin: 0 auto 2.5rem;
}

/* Alternative names under page titles */
.entity-aliases {
    font-size: .95rem;
    color: var(--ink-soft);
    margin: .25rem 0 .5rem;
}

.entity-aliases em {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--ink);
}

.entity-aliases small { font-size: .82rem; }

.page-header .entity-aliases { text-align: center; }

/* Subtle facts line after the intro (instead of a stats banner) */
.collection-meta {
    margin-top: 1.25rem;
    font-size: .88rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-align: center;
}

.universe-text { margin-top: 1.5rem; }

/* Series reading timeline */
.series-timeline {
    list-style: none;
    position: relative;
    max-width: 620px;
    padding-left: 1.5rem;
}

/* Läsordning-blocket centreras som helhet (rubrik + tidslinje), medan
   själva posterna behåller vänsterställd text. Avstånd under rubriken. */
.series-reading-order > h2 { text-align: center; }
.series-reading-order .series-timeline {
    margin: 2rem auto 0;
    text-align: left;
}

.series-timeline::before {
    content: "";
    position: absolute;
    left: calc(1.5rem + 21px);
    top: 24px;
    bottom: 40px;
    border-left: 3px dotted var(--line-strong);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    position: relative;
    padding-bottom: 2rem;
}

.timeline-marker {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--green);
    color: #FDF9F0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--paper);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
    margin-top: .6rem;
}

.timeline-cover {
    flex-shrink: 0;
    position: relative;
    width: 92px;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: linear-gradient(160deg, var(--accent-wash), var(--green-wash));
    box-shadow: var(--shadow-md);
    transition: transform .2s ease;
}

.timeline-cover:hover { transform: translateY(-3px) rotate(-1deg); }

.timeline-cover img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.timeline-cover picture { display: contents; }

.timeline-cover .cover-fallback { font-size: .7rem; padding: .4rem; }

.timeline-content { padding-top: .35rem; }

.timeline-start {
    display: inline-block;
    background: var(--green);
    color: #FDF9F0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .15rem .7rem;
    border-radius: 999px;
    margin-bottom: .3rem;
}

.timeline-content h3 { font-size: 1.25rem; }
.timeline-content h3 a { color: var(--ink); }
.timeline-content h3 a:hover { color: var(--accent); }

.timeline-meta {
    font-size: .88rem;
    color: var(--green);
    font-weight: 700;
    margin: .15rem 0 .35rem;
}

.timeline-summary {
    font-size: .96rem;
    color: var(--ink-soft);
    max-width: 52ch;
}

/* Universe reading map */
.reading-map { margin-bottom: 3rem; }

.reading-map > h2 { margin-bottom: .5rem; }

.map-list {
    list-style: none;
    position: relative;
    max-width: 820px;
    margin-top: 1.5rem;
}

.map-list::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 30px;
    bottom: 50px;
    border-left: 3px dotted var(--line-strong);
}

.map-station {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    position: relative;
    padding-bottom: 1.75rem;
}

.map-marker {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--green);
    color: #FDF9F0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--paper);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
}

.map-card {
    flex: 1;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem 1.35rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

.map-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.map-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}

.map-card-head h3 { font-size: 1.3rem; }
.map-card-head h3 a { color: var(--ink); }
.map-card-head h3 a:hover { color: var(--accent); }

.map-meta {
    font-size: .88rem;
    font-weight: 700;
    color: var(--green);
    white-space: nowrap;
}

.map-intro {
    font-size: .95rem;
    color: var(--ink-soft);
    margin-top: .3rem;
}

.map-covers {
    display: flex;
    gap: .6rem;
    margin-top: .9rem;
}

.map-cover {
    position: relative;
    width: 58px;
    aspect-ratio: 2 / 3;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--accent-wash), var(--green-wash));
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease;
}

.map-cover:hover { transform: translateY(-3px); }

.map-cover img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.map-cover picture { display: contents; }

.map-cover .cover-fallback { font-size: .5rem; padding: .25rem; }

.map-cover-more {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    color: var(--accent-deep);
    background: var(--accent-wash);
}

/* Alternative reading paths */
.alt-paths { margin-bottom: 3rem; }

.alt-paths > h2 { margin-bottom: .5rem; }

.alt-path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.alt-path {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-sm);
}

.alt-path h3 {
    font-size: 1.3rem;
    margin-bottom: .5rem;
}

.alt-path-description {
    font-size: .96rem;
    color: var(--ink-soft);
    margin-bottom: 1rem;
}

.alt-path-steps { list-style: none; }

.alt-path-steps li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--line);
}

.alt-path-steps li:last-child { border-bottom: none; }

.alt-step-number {
    flex-shrink: 0;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--accent-wash);
    color: var(--accent-deep);
    font-weight: 700;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: .15rem;
}

.alt-step-body {
    display: flex;
    flex-direction: column;
}

.alt-step-body a { font-weight: 700; color: var(--ink); }
.alt-step-body a:hover { color: var(--accent); }

.alt-step-body small {
    color: var(--ink-soft);
    font-size: .86rem;
}

/* Prev/next series within a universe */
.universe-flow { margin-top: 2.5rem; }

.universe-flow-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
}

.universe-flow-link {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .9rem 1.2rem;
    font-weight: 700;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.universe-flow-link:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
    color: var(--accent-deep);
}

.universe-flow-link small {
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.universe-flow-link.next { text-align: right; grid-column: 3; }
.universe-flow-link.hub { text-align: center; grid-column: 2; background: var(--green-wash); }
.universe-flow-link.prev { grid-column: 1; }

@media (max-width: 640px) {
    .timeline-cover { width: 64px; }
    .series-timeline { padding-left: .25rem; }
    .series-timeline::before { left: calc(.25rem + 21px); }
    .universe-flow-inner { grid-template-columns: 1fr; }
    .universe-flow-link.next,
    .universe-flow-link.hub,
    .universe-flow-link.prev { grid-column: 1; text-align: left; }
}

/* --------------------------------------------------------------------------
   News
   -------------------------------------------------------------------------- */

.news-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 780px;
    margin-inline: auto;
}

.news-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.9rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-card h2 {
    font-size: 1.4rem;
    margin: .3rem 0 .4rem;
}

.news-card h2 a { color: var(--ink); }
.news-card h2 a:hover { color: var(--accent); }

.news-card p { color: var(--ink-soft); font-size: 1rem; }

.news-card .book-tags { margin: .9rem 0 0; }

.news-card-meta {
    display: flex;
    gap: .8rem;
    align-items: baseline;
    font-size: .85rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--green);
    font-weight: 700;
}

.news-source { color: var(--ink-soft); font-weight: 500; text-transform: none; letter-spacing: 0; }

/* Long reading surfaces get a brighter, near-white block for readability */
.news-article {
    max-width: 760px;
    margin-inline: auto;
    background: #FFFEFA;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem 3rem 2.75rem;
}

@media (max-width: 640px) {
    .news-article { padding: 1.5rem 1.25rem 1.75rem; }
}

.news-article-header { margin-bottom: 1.75rem; }
.news-article-header h1 { margin: .4rem 0 .6rem; }

.news-lede {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--green);
}

.news-body {
    font-size: 1.08rem;
    line-height: 1.75;
}

/* Contextual länkar i löptext ska tydligt se ut som länkar (bastypografins
   a saknar färg och understrykning, så prosalänkar smälter annars in). */
.news-body a:not(.btn),
.future-content a:not(.btn),
.book-summary a:not(.btn),
.editorial-box a:not(.btn) {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.news-body a:not(.btn):hover,
.future-content a:not(.btn):hover,
.book-summary a:not(.btn):hover,
.editorial-box a:not(.btn):hover {
    color: var(--accent-deep);
}

.news-source-link {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: .95rem;
    color: var(--ink-soft);
}

.news-coupled-books { margin-top: 2.5rem; }
.news-coupled-books h2 { margin-bottom: 1rem; }

/* Homepage news strip — warm panel with a bright reading surface */
.home-news {
    background: var(--gold-wash);
    border: 1px solid var(--gold-line);
    border-radius: var(--radius);
    padding: 2.25rem 2.5rem 2.5rem;
    margin: 2rem 0 0;
}

.home-news-grid {
    display: grid;
    gap: 1.25rem;
}

.home-news .news-card {
    background: #FFFEFA;
    border-color: var(--gold-line);
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow-sm);
}

.home-news .news-card h2 { font-size: 1.3rem; }

.home-news .news-card p { color: var(--ink); opacity: .82; }

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* --------------------------------------------------------------------------
   Recap pages ("platå mellan böcker")
   -------------------------------------------------------------------------- */

.recap-spoiler-note {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    background: var(--accent-wash);
    border: 1px dashed var(--accent);
    border-radius: var(--radius-sm);
    padding: .9rem 1.3rem;
    font-size: .95rem;
}

.recap-body {
    max-width: 72ch;
    margin: 0 auto 2.5rem;
    font-size: 1.08rem;
    line-height: 1.75;
    background: #FFFEFA;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2.25rem 2.75rem 2.5rem;
}

@media (max-width: 640px) {
    .recap-body { padding: 1.5rem 1.25rem 1.75rem; }
}

.recap-body h2 { margin-bottom: 1rem; }

.recap-threads {
    max-width: 720px;
    margin: 0 auto 3rem;
}

.recap-threads h2 { margin-bottom: .75rem; }

.recap-characters h2 { margin-bottom: 1.25rem; }

.character-alt-name {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: .95rem;
    color: var(--ink-soft);
    white-space: nowrap;
}

.character-relations {
    font-size: .85rem;
    font-style: italic;
    color: var(--green-deep);
    margin: -.2rem 0 .4rem;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.character-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow-sm);
}

.character-card h3 { font-size: 1.1rem; }

.character-role {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--green);
    margin: .15rem 0 .4rem;
}

.character-description {
    font-size: .93rem;
    color: var(--ink-soft);
}

.recap-next {
    text-align: center;
    margin: 3rem 0 1rem;
}

.recap-next p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: .75rem;
}

/* Link to a recap from reading order lists */
.recap-link {
    display: inline-block;
    font-size: .85rem;
    font-weight: 700;
    color: var(--green-deep);
    background: var(--green-wash);
    border-radius: 999px;
    padding: .1rem .7rem;
}

.recap-link:hover { background: var(--green); color: #FDF9F0; }

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 2.5rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 .8rem;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
    color: var(--ink);
    background: var(--card);
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.page-link:hover {
    border-color: var(--accent);
    color: var(--accent-deep);
}

.page-link.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #FDF9F0;
}

.page-gap { color: var(--ink-soft); padding: 0 .2rem; }

/* --------------------------------------------------------------------------
   Error pages
   -------------------------------------------------------------------------- */

.error-page {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 560px;
    margin-inline: auto;
}

.error-page h1 {
    font-size: clamp(3.5rem, 10vw, 5.5rem);
    color: var(--accent);
    margin-bottom: .5rem;
}

.error-message {
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .book-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .book-cover {
        max-width: 220px;
        margin-inline: auto;
    }

    .store-item {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .store-info { justify-content: center; }

    .edition-item { padding: 1.15rem 1.25rem; }
}

/* ==========================================================================
   Läsestimat-box (forskningsbaserad lästid med tempoväxling)
   ========================================================================== */
.reading-estimate {
    margin-top: 1rem;
    padding: .85rem 1rem;
    background: var(--gold-wash);
    border: 1px solid var(--gold-line);
    border-radius: var(--radius-sm);
    max-width: 22rem;
}
.reading-estimate-head {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    flex-wrap: wrap;
}
.reading-estimate-icon { font-size: 1.05rem; }
.reading-estimate-label { color: var(--ink-soft); font-size: .92rem; }
.reading-estimate-time {
    margin-left: auto;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--ink);
    white-space: nowrap;
}
.reading-estimate-paces {
    display: flex;
    gap: .35rem;
    margin: .6rem 0 .45rem;
}
.reading-pace {
    flex: 1;
    padding: .35rem .5rem;
    font: inherit;
    font-size: .85rem;
    color: var(--ink-soft);
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.reading-pace:hover { border-color: var(--gold); color: var(--ink); }
.reading-pace.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #3a2b12;
    font-weight: 600;
}
.reading-estimate-note { color: var(--ink-soft); font-size: .8rem; }
.reading-estimate-wpm { font-weight: 600; color: var(--ink); }

/* ==========================================================================
   Autocomplete-förslag i sökrutan
   ========================================================================== */
.search-wrap { position: relative; display: flex; }
.search-wrap > .search-box { flex: 1; }
.search-suggest {
    position: absolute;
    top: calc(100% + .35rem);
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    max-height: 70vh;
    overflow-y: auto;
}
.suggest-group {
    padding: .5rem .85rem .3rem;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    background: var(--paper);
}
.suggest-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .85rem;
    text-decoration: none;
    color: var(--ink);
    border-top: 1px solid var(--line);
}
.suggest-item:first-of-type { border-top: 0; }
.suggest-item:hover,
.suggest-item.active { background: var(--accent-wash); }
.suggest-cover {
    flex: 0 0 auto;
    width: 34px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    overflow: hidden;
    background: var(--line);
    font-size: 1.1rem;
}
.suggest-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.suggest-text { display: flex; flex-direction: column; min-width: 0; }
.suggest-title {
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.suggest-meta {
    font-size: .82rem;
    color: var(--ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.suggest-author .suggest-cover { background: var(--green-wash); }
.suggest-empty { padding: .7rem .85rem; color: var(--ink-soft); font-size: .9rem; }

/* ── Relations-tidslinje på återblickar ─────────────────────────── */
.rel-tl-open{
  font: inherit; color: var(--accent-deep); background: none; border: 0; padding: 0;
  cursor: pointer; border-bottom: 1px dotted var(--accent);
}
.rel-tl-open:hover{ color: var(--accent); }
.rel-tl-mark{ font-size: .75em; margin-left: .25em; opacity: .65; }
.rel-tl-open:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.rel-tl-modal[hidden]{ display: none; }
.rel-tl-modal{
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.rel-tl-backdrop{ position: absolute; inset: 0; background: rgba(40,25,15,.55); }
.rel-tl-dialog{
  position: relative; background: var(--paper); color: var(--ink);
  border: 1px solid var(--accent-wash); border-radius: 14px;
  box-shadow: 0 20px 50px -20px rgba(40,25,15,.6);
  max-width: 460px; width: 100%; max-height: 85vh; overflow: auto; padding: 26px 26px 30px;
}
.rel-tl-x{
  position: absolute; top: 10px; right: 14px; background: none; border: 0;
  font-size: 1.7rem; line-height: 1; color: var(--ink-soft); cursor: pointer;
}
.rel-tl-x:hover{ color: var(--accent); }
.rel-tl-eyebrow{
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 4px;
}
#relTlTitle{ margin: 0 0 4px; font-size: 1.35rem; }
.rel-tl-note{ margin: 0 0 20px; color: var(--ink-soft); font-size: .86rem; }
.rel-tl-track{ position: relative; padding-left: 26px; }
.rel-tl-track::before{
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: var(--accent-wash);
}
.rel-tl-stop{ position: relative; padding: 0 0 18px; }
.rel-tl-stop:last-child{ padding-bottom: 0; }
.rel-tl-stop::before{
  content: ""; position: absolute; left: -23px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--accent);
}
.rel-tl-stop:last-child::before{ background: var(--accent-deep); box-shadow: 0 0 0 1px var(--accent-deep); }
.rel-tl-book{ display: block; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.rel-tl-state{ display: block; font-size: 1rem; margin-top: 1px; }
@media (prefers-reduced-motion: no-preference){
  .rel-tl-dialog{ animation: relTlIn .18s ease-out; }
  @keyframes relTlIn{ from{ opacity: 0; transform: translateY(8px); } to{ opacity: 1; transform: none; } }
}

/* Framtidssida: vision-text + tips-formulär, centrerad smal kolumn under den
   centrerade rubriken */
.future-content { max-width: 60ch; margin: 0 auto 2rem; }
.future-content p { margin-bottom: 1rem; line-height: 1.7; }

.tips-box, .tips-thanks {
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.6rem;
}
.tips-box h2, .tips-thanks h2 { margin-bottom: .4rem; }
.tips-thanks p { line-height: 1.7; margin-bottom: .6rem; }

.tips-form { margin-top: 1rem; }
.tips-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.tips-row .tips-field { flex: 1 1 220px; }
.tips-field { margin-bottom: 1rem; }
.tips-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--ink); }
.tips-opt { font-weight: 400; color: var(--ink-soft); }

.tips-field input[type="text"],
.tips-field input[type="email"],
.tips-field select,
.tips-field textarea {
    width: 100%;
    padding: .6rem .75rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font: inherit;
}
.tips-field textarea { resize: vertical; min-height: 8rem; }
.tips-field input:focus,
.tips-field select:focus,
.tips-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-wash);
}

/* honeypot: dolt för människor, syns för bots */
.tips-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tips-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .3rem; }
.tips-privacy { font-size: .78rem; color: var(--ink-soft); margin: 0; }

.tips-errors {
    background: var(--accent-wash);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: .7rem .9rem;
    margin-bottom: 1rem;
}
.tips-errors p { margin: 0; color: var(--accent-deep); font-size: .9rem; }

/* ============================================================
   Ljudboks-utforskaren (interaktivt filter på /ljudbocker/)
   ============================================================ */
.audiobook-explorer {
    margin: 1.5rem 0 2.5rem;
}
.ax-toolbar {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.ax-search { flex: 1 1 260px; display: flex; flex-direction: column; gap: .35rem; }
.ax-search-label,
.ax-sort label {
    font-family: var(--font-body);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 700;
}
.ax-search-input {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: .6rem .85rem;
    transition: border-color .15s, box-shadow .15s;
}
.ax-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-wash);
}
.ax-sort { display: flex; flex-direction: column; gap: .35rem; }
.ax-sort-select {
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: .55rem 2rem .55rem .8rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237A6A57' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
}
.ax-sort-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }

.ax-facets {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    padding: 1.1rem 1.2rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.ax-group {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: .5rem 1rem;
    align-items: start;
}
.ax-group-label {
    font-family: var(--font-body);
    font-size: .72rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 700;
    padding-top: .35rem;
}
.ax-chips { display: flex; flex-wrap: wrap; gap: .4rem; }

.ax-chip {
    font-family: var(--font-body);
    font-size: .9rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: .32rem .8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    line-height: 1.3;
    transition: background .13s, border-color .13s, color .13s;
}
.ax-chip:hover { border-color: var(--accent); color: var(--accent-deep); }
.ax-chip.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.ax-chip.is-active:hover { color: #fff; background: var(--accent-deep); }
.ax-chip.mood.is-active {
    background: var(--green);
    border-color: var(--green);
}
.ax-chip.mood.is-active:hover { background: var(--green-deep); }
.ax-chip-count {
    font-size: .72rem;
    font-weight: 700;
    color: var(--ink-soft);
    background: var(--card);
    border-radius: 999px;
    padding: .02rem .38rem;
}
.ax-chip.is-active .ax-chip-count { color: var(--ink); background: rgba(255,255,255,.8); }

/* Segmented single-select groups (speltid, språk, tjänst) */
.ax-segmented { gap: 0; }
.ax-segmented .ax-chip {
    border-radius: 0;
    border-right-width: 0;
}
.ax-segmented .ax-chip:first-child { border-radius: 999px 0 0 999px; padding-left: 1rem; }
.ax-segmented .ax-chip:last-child { border-radius: 0 999px 999px 0; border-right-width: 1px; padding-right: 1rem; }
.ax-segmented .ax-chip.is-active { border-color: var(--accent); }
.ax-segmented .ax-chip.is-active + .ax-chip { border-left-color: var(--accent); }

.ax-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.3rem 0 1rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--line);
}
.ax-count {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
}
.ax-clear {
    font-family: var(--font-body);
    font-size: .88rem;
    color: var(--accent-deep);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ax-clear:hover { color: var(--accent); }

.ax-empty {
    text-align: center;
    color: var(--ink-soft);
    padding: 2.5rem 1rem;
    font-size: 1rem;
}
.ax-clear-inline {
    font: inherit;
    color: var(--accent-deep);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ax-card[hidden] { display: none; }

/* Inbäddad video (YouTube-trailer i nyhetsartiklar) */
.news-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 1.6rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #000;
}
.news-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Kommande utgåva: "Utkommer <datum>"-badge på boksidan (osläppt bok, hålls live) */
.upcoming-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: .1rem 0 .6rem;
    padding: .3rem .7rem;
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 700;
    color: var(--accent-deep);
    background: var(--gold-wash);
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    letter-spacing: .01em;
}
.upcoming-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(217, 164, 65, .25);
}

@media (max-width: 620px) {
    .ax-group { grid-template-columns: 1fr; gap: .35rem; }
    .ax-group-label { padding-top: 0; }
    .ax-toolbar { gap: .75rem; }
    .ax-sort { flex: 1 1 100%; }
    .ax-sort-select { width: 100%; }
}

/* --------------------------------------------------------------------------
   Barnböcker (/bok/barn/) — nivåer, faktaruta, teman, facettfilter, artikel
   -------------------------------------------------------------------------- */

.barn-section-heading { text-align: center; margin: 2.75rem 0 1.25rem; }
.barn-section-lead {
    max-width: 640px;
    margin: -0.5rem auto 1.5rem;
    text-align: center;
    color: var(--ink-soft);
}

/* Faktaruta (ämnesspecifik per sida) */
.barn-fact {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    padding: 1.4rem 1.6rem;
    background: var(--green-wash);
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
}
.barn-fact-heading {
    font-size: 1.05rem;
    letter-spacing: .02em;
    margin-bottom: .55rem;
    color: var(--green-deep);
}
.barn-fact-body { color: var(--ink); margin-bottom: .8rem; text-align: left; }
.barn-fact-method {
    font-size: .85rem;
    color: var(--ink-soft);
    margin: 0;
    text-align: left;
}
.barn-fact-link { font-weight: 700; white-space: nowrap; }

/* Varsam extra-ruta (t.ex. läs & lyssna på 6–9) */
.barn-aside {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    padding: 1.2rem 1.5rem;
    background: var(--gold-wash);
    border: 1px solid var(--gold-line);
    border-radius: var(--radius);
}
.barn-aside-heading { font-size: 1rem; margin-bottom: .5rem; color: var(--ink); }
.barn-aside-body { color: var(--ink-soft); margin: 0; text-align: left; }

/* Nivåkort på hubben */
.barn-level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.1rem;
}
.barn-level-card {
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.4rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--ink);
    transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.barn-level-card:hover {
    box-shadow: var(--shadow-lift);
    border-color: var(--line-strong);
    transform: translateY(-2px);
    color: var(--ink);
}
.barn-level-step {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
}
.barn-level-name { font-size: 1.25rem; margin: .35rem 0 .15rem; }
.barn-level-age { font-size: .9rem; color: var(--green-deep); font-weight: 600; }
.barn-level-does { color: var(--ink-soft); margin: .6rem 0 1rem; font-size: .92rem; flex-grow: 1; }
.barn-level-count { font-size: .8rem; color: var(--ink-soft); font-weight: 700; }

/* Temachips */
.barn-theme-chips { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; }
.barn-theme-chip {
    display: inline-block;
    padding: .5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    color: var(--ink);
    text-decoration: none;
    font-size: .92rem;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.barn-theme-chip:hover { background: var(--accent-wash); border-color: var(--accent); color: var(--accent-deep); }

/* Nivåväxlare på nivåsidan */
.barn-eyebrow {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .4rem;
}
.barn-level-switch {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin: 0 auto 2rem;
}
.barn-level-switch-item {
    padding: .35rem .8rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink-soft);
    text-decoration: none;
    font-size: .85rem;
}
.barn-level-switch-item:hover { border-color: var(--green); color: var(--ink); }
.barn-level-switch-item.is-current {
    background: var(--green);
    border-color: var(--green);
    color: #FDF9F0;
    font-weight: 700;
}
.barn-level-switch-age { opacity: .7; font-size: .78rem; }

/* Facettfilter (samma mönster som serielist-filtret) */
.barn-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.1rem 1.6rem;
    margin: 0 auto 2.25rem;
    padding: 1.25rem 1.4rem;
    max-width: 1000px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.barn-filter-group { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.barn-filter-group legend {
    padding: 0;
    margin-bottom: .5rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.barn-filter-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.barn-filter-actions {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-left: auto;
    align-self: center;
}
.barn-filter-count { font-size: .85rem; color: var(--ink-soft); font-weight: 700; }
.barn-filter-clear {
    background: none;
    border: 0;
    color: var(--accent);
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.barn-filter-clear:hover { color: var(--accent-deep); }
.barn-book-item[hidden] { display: none !important; }
.barn-no-match { text-align: center; color: var(--ink-soft); padding: 2rem 0; }

.barn-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 2.5rem;
}
.barn-page-btn {
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 .6rem;
    border: 1px solid var(--line-strong);
    background: var(--card);
    color: var(--ink);
    font: inherit;
    font-size: .92rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.barn-page-btn:hover:not(:disabled) { border-color: var(--green); }
.barn-page-btn.is-current {
    background: var(--green);
    border-color: var(--green);
    color: #FDF9F0;
    font-weight: 700;
}
.barn-page-btn:disabled { opacity: .4; cursor: default; }

.barn-theme-back { margin-top: 2.5rem; }
.barn-theme-back a { font-weight: 600; }

/* Forskningsartikeln */
.barn-article { max-width: 760px; }
.barn-article-body { text-align: left; }
.barn-article-body h2 { margin: 2rem 0 .75rem; }
.barn-article-body p { margin-bottom: 1rem; }
.barn-article-stages {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    display: grid;
    gap: .6rem;
}
.barn-article-stages li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .5rem .9rem;
    padding: .8rem 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.barn-article-age { font-size: .85rem; color: var(--green-deep); font-weight: 600; }
.barn-article-does { color: var(--ink-soft); font-size: .9rem; flex-basis: 100%; }
.barn-article-links { font-size: .9rem; color: var(--ink-soft); }

.barn-access-block { margin-bottom: 2.5rem; }
.barn-access-strip {
    max-width: 1000px;
    margin: 0 auto 1.5rem;
    padding: .75rem 1.1rem;
    background: var(--gold-wash);
    border: 1px solid var(--gold-line);
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    font-size: .92rem;
}
.barn-access-strip a { font-weight: 700; }

@media (max-width: 640px) {
    .barn-filter { padding: 1rem; gap: 1rem 1.2rem; }
    .barn-filter-actions { margin-left: 0; width: 100%; justify-content: space-between; }
    .barn-fact, .barn-aside { padding: 1.1rem 1.2rem; }
}
