/* HomeNordic blog – oversigt og indlæg. Bygger på farver/skrifter fra shop.css (:root). */
.blogx, .bp, .bp-related { --bw: 76rem; width: 100%; max-width: var(--bw); margin: 0 auto; padding-left: clamp(1.1rem, 3vw, 2.6rem); padding-right: clamp(1.1rem, 3vw, 2.6rem); box-sizing: border-box; }
.bx-crumbs { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; font-size: .86rem; color: var(--muted); padding: 1.1rem 0 .2rem; }
.bx-crumbs a { color: var(--muted); text-decoration: none; }
.bx-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.bx-crumbs [aria-current] { color: var(--ink); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Oversigt */
.bx-head { padding: 1.4rem 0 1.6rem; max-width: 46rem; }
.bx-kicker, .bp-topic, .bc-topic { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); margin: 0 0 .5rem; }
.bx-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin: 0 0 .7rem; }
.bx-lead { font-size: 1.15rem; line-height: 1.55; color: #3d3d39; margin: 0 0 .5rem; }
.bx-sub { color: var(--muted); font-size: .95rem; margin: 0; }
.bx-h2 { font-size: 1.45rem; margin: 2rem 0 1rem; }
.bx-topics { display: flex; gap: .5rem; overflow-x: auto; padding: 1.6rem 0 .2rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bx-topics::-webkit-scrollbar { display: none; }
.bx-chip { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: var(--pill); padding: .5rem .95rem; font: 600 .9rem/1 var(--sans); cursor: pointer; }
.bx-chip span { color: var(--muted); font-weight: 500; margin-left: .2rem; }
.bx-chip.is-on, .bx-chip:hover { background: var(--sage); border-color: var(--sage); color: #fff; }
.bx-chip.is-on span, .bx-chip:hover span { color: rgba(255,255,255,.8); }
.bx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem 1.4rem; margin: 0 0 2.6rem; }

/* Kort */
.bc { margin: 0; }
.bc[hidden] { display: none; }
.bc-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.bc-link:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.bc-link:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.bc-media { display: block; aspect-ratio: 3 / 2; background: var(--mist); overflow: hidden; }
.bc-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bc-link:hover .bc-media img { transform: scale(1.03); }
.bc-body { display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.1rem 1.15rem; flex: 1; }
.bc-topic { margin: 0; }
.bc-title { font-size: 1.14rem; line-height: 1.25; margin: 0; }
.bc-excerpt { color: var(--muted); font-size: .94rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bc-meta { margin-top: auto; padding-top: .35rem; font-size: .82rem; color: var(--muted); }
.bc-feature .bc-link { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.bc-feature .bc-media { aspect-ratio: 3 / 2; }
.bc-feature .bc-body { justify-content: center; padding: clamp(1.2rem, 3vw, 2.4rem); gap: .7rem; }
.bc-feature .bc-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.bc-feature .bc-excerpt { font-size: 1.02rem; -webkit-line-clamp: 4; }
.bc-feature .bc-meta { margin-top: .4rem; }

/* Indlæg */
.bp-hero { max-width: 48rem; padding: 1.2rem 0 1.4rem; }
.bp-topic a { color: inherit; text-decoration: none; }
.bp-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin: 0 0 .8rem; text-wrap: balance; }
.bp-lead { font-size: clamp(1.06rem, 1.6vw, 1.22rem); line-height: 1.55; color: #3d3d39; margin: 0 0 .9rem; }
.bp-meta { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .86rem; color: var(--muted); margin: 0; }
.bp-ad { display: inline-block; margin: .9rem 0 0; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--ink); background: var(--sand); border-radius: var(--pill); padding: .3rem .75rem; }
.bp-cover { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--mist); }
.bp-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bp-layout { display: grid; grid-template-columns: 15.5rem minmax(0, 46rem); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.bp-layout > .bp-main:first-child { grid-column: 2; }
.bp-side { position: sticky; top: 6.5rem; max-height: calc(100vh - 8rem); overflow: auto; }
.bp-toc { border-left: 2px solid var(--line); padding-left: 1rem; }
.bp-toc summary { font: 700 .76rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sage); cursor: pointer; list-style: none; margin-bottom: .7rem; }
.bp-toc summary::-webkit-details-marker { display: none; }
.bp-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; counter-reset: toc; }
.bp-toc li { counter-increment: toc; font-size: .9rem; line-height: 1.35; }
.bp-toc a { color: var(--muted); text-decoration: none; display: grid; grid-template-columns: 1.6rem 1fr; }
.bp-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--sage); font-weight: 600; font-size: .78rem; padding-top: .1rem; }
.bp-toc a:hover { color: var(--ink); }
.bp-summary { background: var(--mist); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin: 0 0 2rem; }
.bp-summary-title { font: 700 .76rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sage-d); margin: 0 0 .5rem; }
.bp-answer { font-size: 1.08rem; line-height: 1.55; margin: 0 0 1.1rem; color: var(--ink); }
.bp-answer:last-child { margin-bottom: 0; }
.bp-keys { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.bp-keys li { position: relative; padding-left: 1.6rem; line-height: 1.5; color: #33332f; }
.bp-keys li::before { content: ""; position: absolute; left: .15rem; top: .45rem; width: .75rem; height: .4rem; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }
.bp-body { font-size: 1.06rem; line-height: 1.7; }
.bp-body h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 2.4rem 0 .7rem; scroll-margin-top: 6.5rem; }
.bp-body h3 { font-size: 1.18rem; margin: 1.6rem 0 .5rem; scroll-margin-top: 6.5rem; }
.bp-body a { color: var(--sage-d); text-decoration: underline; text-underline-offset: 2px; }
.bp-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.bp-body ul, .bp-body ol { padding-left: 1.3rem; }
.bp-body li { margin-bottom: .4rem; }
.bp-body .article-steps, .bp-body .article-check { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem 1rem 2.2rem; }
.blog-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin: 1rem 0 1.6rem; }
.bp-body .blog-product { display: flex; flex-direction: column; gap: .4rem; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem; transition: box-shadow .2s ease; }
.bp-body .blog-product:hover { box-shadow: var(--shadow-sm); }
.blog-product-media { display: block; aspect-ratio: 1 / 1; background: #f6f5f1; border-radius: calc(var(--radius) - 3px); overflow: hidden; }
.bp-body .blog-product-media img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; mix-blend-mode: multiply; }
.blog-product-name { font-size: .9rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-product-more { margin-top: auto; font-size: .8rem; color: var(--sage-d); font-weight: 600; }
.bp-cats, .bp-sources { border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: 2.2rem; }
.bp-cats h2, .bp-sources h2 { font-size: 1.3rem; margin: 0 0 .5rem; }
.bp-cats p { color: var(--muted); margin: 0 0 .9rem; }
.bp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.bp-chips a { display: inline-block; padding: .5rem .95rem; border-radius: var(--pill); border: 1px solid var(--sage); color: var(--sage-d); text-decoration: none; font-weight: 600; font-size: .92rem; }
.bp-chips a:hover { background: var(--sage); color: #fff; }
.bp-sources ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.bp-sources a { color: var(--sage-d); }
.bp-sources span { color: var(--muted); font-size: .92rem; }
.bp-note { margin: 2rem 0 0; font-size: .86rem; color: var(--muted); background: #f7f6f2; border-radius: var(--radius); padding: .9rem 1rem; }
.bp-related { padding-top: 2.6rem; }
.bp-related-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.bp-related-head h2 { font-size: 1.5rem; margin: 0; }
.bp-related-head a { color: var(--sage-d); font-weight: 600; }

@media (max-width: 1100px) {
    .bx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-layout { grid-template-columns: minmax(0, 1fr); max-width: 46rem; }
    .bp-layout > .bp-main:first-child { grid-column: auto; }
    .bp-side { position: static; max-height: none; }
    .bp-toc { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; background: #fff; }
    .bp-toc:not([open]) summary { margin-bottom: 0; }
    .bp-toc summary::after { content: "+"; float: right; font-size: 1rem; line-height: .8; }
    .bp-toc[open] summary::after { content: "–"; }
}
@media (max-width: 760px) {
    .bc-feature .bc-link { grid-template-columns: 1fr; }
    .blog-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-cover { margin-left: calc(-1 * clamp(1.1rem, 3vw, 2.6rem)); margin-right: calc(-1 * clamp(1.1rem, 3vw, 2.6rem)); border-radius: 0; aspect-ratio: 3 / 2; }
}
@media (max-width: 640px) {
    .bx-grid { grid-template-columns: 1fr; gap: 1.1rem; }
    .bx-head { padding: .8rem 0 .6rem; }
    .bp-body { font-size: 1.02rem; }
    .bp-summary { padding: 1.1rem 1.1rem; }
    .bx-crumbs [aria-current] { max-width: 60vw; }
}
@media (prefers-reduced-motion: reduce) { .bc-link, .bc-media img { transition: none; } .bc-link:hover { transform: none; } }

/* 2026-10-22c: emnerække – pile, fade-kanter og træk på desktop */
.bx-topics-wrap { position: relative; }
.bx-arrow { display: none; }
@media (hover: hover) and (pointer: fine) {
    .bx-topics { cursor: grab; scroll-behavior: auto; }
    .bx-topics.is-dragging { cursor: grabbing; user-select: none; }
    .bx-topics.is-dragging .bx-chip { pointer-events: none; }
    .bx-topics-wrap.has-overflow .bx-topics {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3.5rem, #000 calc(100% - 3.5rem), transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 3.5rem, #000 calc(100% - 3.5rem), transparent 100%);
    }
    .bx-topics-wrap.at-start .bx-topics {
        -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 3.5rem), transparent 100%);
        mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 3.5rem), transparent 100%);
    }
    .bx-topics-wrap.at-end .bx-topics {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3.5rem, #000 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 3.5rem, #000 100%);
    }
    .bx-topics-wrap.at-start.at-end .bx-topics { -webkit-mask-image: none; mask-image: none; }
    .bx-arrow {
        display: grid; place-items: center; position: absolute; bottom: .1rem; z-index: 2;
        width: 2.1rem; height: 2.1rem; padding: 0; border: 1px solid var(--line); border-radius: 50%;
        background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 1px 4px rgba(28, 28, 28, .08);
        transition: border-color .15s ease, color .15s ease;
    }
    .bx-arrow[hidden] { display: none; }
    .bx-arrow:hover { border-color: var(--sage); color: var(--sage-d); }
    .bx-arrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .bx-arrow.is-prev { left: -.25rem; }
    .bx-arrow.is-next { right: -.25rem; }
}
