/* Den Forpligtede Viden: one composed opening, followed by a readable index. */

.destination-knowledge.destination-quote-hero {
    min-height: var(--hero-height);
    align-items: center;
}

.destination-knowledge .destination-image {
    background-position: 58% center;
    transform: translate3d(0, var(--knowledge-parallax, 0), 0) scale(1.045);
    animation: none;
    will-change: transform;
}

.destination-knowledge .destination-overlay {
    background:
        linear-gradient(90deg, rgba(4, 18, 14, .96) 0%, rgba(4, 18, 14, .78) 48%, rgba(4, 18, 14, .18) 100%),
        linear-gradient(0deg, rgba(4, 18, 14, .76), transparent 55%);
}

.destination-knowledge .destination-inner {
    padding-block: clamp(4rem, 8vh, 6.5rem);
}

.destination-knowledge .destination-hero-quote {
    width: min(850px, 100%);
    margin-inline: 0;
}

.destination-knowledge .destination-hero-quote::before {
    content: "Den Forpligtede Viden";
    display: block;
    margin-bottom: 1.1rem;
    color: #dfb567;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.destination-knowledge .destination-hero-quote h1 {
    max-width: 34ch;
    font-size: clamp(1.2rem, 1.65vw, 1.6rem);
}

.destination-knowledge .destination-hero-quote blockquote {
    width: 100%;
    margin-block: .25rem;
    font-size: clamp(2.45rem, 3.6vw, 3.7rem);
    line-height: 1.55;
}

.destination-knowledge .destination-hero-quote figcaption {
    max-width: 760px;
    margin-inline: 0;
}

.destination-knowledge .destination-hero-quote figcaption span {
    font-size: clamp(1.22rem, 1.55vw, 1.5rem);
}

/* Remove the accidental second full-width hero image below the hero. */
.knowledge-map {
    padding-top: clamp(4.5rem, 7vw, 6.5rem) !important;
    background:
        radial-gradient(circle at 85% 4%, rgba(200, 163, 93, .09), transparent 24rem),
        #07100d !important;
}

.knowledge-map .section-intro {
    align-items: center;
    margin-bottom: 2rem;
}

.knowledge-map .section-intro h2 {
    max-width: 18ch;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    text-wrap: balance;
}

.knowledge-map .section-intro > p {
    max-width: 36ch;
    font-size: .95rem;
    line-height: 1.65;
}

.knowledge-routes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid rgba(200, 163, 93, .22);
    background: rgba(200, 163, 93, .22);
}

.knowledge-routes a,
.knowledge-routes a:first-child {
    min-height: 92px;
    position: relative;
    grid-row: auto;
    border: 0;
    padding: 1rem 1.25rem;
    color: var(--ink);
    background: rgba(8, 21, 16, .96);
    isolation: isolate;
    overflow: hidden;
}

.knowledge-routes a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(260px circle at var(--route-x, 50%) var(--route-y, 50%), rgba(200, 163, 93, .14), transparent 68%);
    transition: opacity .25s ease;
}

.knowledge-routes a:hover::before,
.knowledge-routes a:focus-visible::before,
.knowledge-routes a.is-current::before {
    opacity: 1;
}

.knowledge-routes a:nth-child(odd) {
    border-right: 0;
}

.knowledge-routes a:first-child {
    background:
        linear-gradient(90deg, rgba(8, 28, 21, .88), rgba(8, 28, 21, .72)),
        url('/images/editorial/knowledge-foundations-v1.webp') center/cover;
}

.knowledge-routes a:hover,
.knowledge-routes a:first-child:hover {
    padding-left: 1.55rem;
    color: var(--ink);
    background: #10271f;
}

.knowledge-routes a.is-current {
    box-shadow: inset 3px 0 0 var(--gold);
}

.knowledge-routes a strong {
    font-size: clamp(1.05rem, 1.45vw, 1.3rem);
    line-height: 1.25;
}

.knowledge-routes a small {
    margin-top: .2rem;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.4;
}

.knowledge-routes a b {
    color: var(--gold);
}

.featured-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(4rem, 6vw, 5rem);
    background:
        linear-gradient(90deg, rgba(6, 38, 28, .98), rgba(6, 38, 28, .78)),
        url('/images/editorial/path-guidance-v1.webp') center/cover;
}

.learning-steps {
    margin-top: 1.5rem;
}

.learning-steps > div {
    min-height: 165px;
    padding: 1.5rem;
}

.learning-steps h3 {
    margin-block: .8rem .45rem;
    font-size: 1.3rem;
}

.learning-steps p {
    max-width: 31ch;
    margin: 0;
    font-size: .88rem;
    line-height: 1.55;
}

/* Contextual navigation and live position inside the knowledge index. */
.knowledge-chapter-nav {
    position: sticky;
    top: var(--header-height, 74px);
    z-index: 12;
    overflow: hidden;
    color: #c8d2cc;
    border-block: 1px solid rgba(200, 163, 93, .18);
    background: rgba(5, 15, 11, .92);
    backdrop-filter: blur(16px);
}

.knowledge-chapter-nav > .container {
    min-height: 58px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.knowledge-chapter-nav > .container > span,
.knowledge-chapter-nav a {
    padding-inline: 1.2rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.knowledge-chapter-nav > .container > span {
    padding-left: 0;
    color: var(--gold);
}

.knowledge-chapter-nav a {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    border-left: 1px solid rgba(255, 255, 255, .1);
    transition: color .2s ease, background .2s ease;
}

.knowledge-chapter-nav a:hover,
.knowledge-chapter-nav a:focus-visible {
    color: #fff;
    background: rgba(200, 163, 93, .065);
}

.knowledge-chapter-nav a i {
    color: var(--gold);
    font: italic .72rem var(--serif);
}

.knowledge-chapter-nav > .container > b {
    height: 1px;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, .08);
}

.knowledge-chapter-nav > .container > b span {
    width: 100%;
    height: 100%;
    display: block;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--gold);
    will-change: transform;
}

.knowledge-index-context {
    width: min(100%, 420px);
}

.knowledge-index-context > p {
    margin-top: 0;
    color: var(--muted);
}

.knowledge-index-meter {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .75rem;
    color: var(--gold);
    font: italic .72rem var(--serif);
}

.knowledge-index-meter i {
    height: 1px;
    overflow: hidden;
    background: var(--line);
}

.knowledge-index-meter i b {
    width: 100%;
    height: 100%;
    display: block;
    transform: scaleX(calc(1 / 11));
    transform-origin: left;
    background: var(--gold);
    transition: transform .45s cubic-bezier(.2, .72, .2, 1);
}

.destination-knowledge .destination-hero-quote > * {
}


@media (max-width: 900px) {
    .knowledge-routes {
        grid-template-columns: 1fr;
    }

    .knowledge-routes a,
    .knowledge-routes a:first-child {
        min-height: 84px;
    }
}

@media (max-width: 650px) {
    .destination-knowledge.destination-quote-hero {
        min-height: var(--hero-height-narrow);
        padding-top: 230px;
        align-items: end;
    }

    .destination-knowledge .destination-image {
        height: 100%;
        background-position: 62% center;
    }

    .destination-knowledge .destination-overlay {
        background: linear-gradient(0deg, rgba(4, 18, 14, .995) 0%, rgba(4, 18, 14, .94) 58%, rgba(4, 18, 14, .16) 100%);
    }

    .destination-knowledge .destination-inner {
        width: calc(100vw - 2rem);
        min-width: 0;
        max-width: calc(100vw - 2rem);
        padding-block: 2.5rem 3.25rem;
    }

    .destination-knowledge .destination-hero-quote {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .destination-knowledge .destination-hero-quote::before {
        margin-bottom: .8rem;
        font-size: .6rem;
    }

    .destination-knowledge .destination-hero-quote h1 {
        max-width: 27ch;
        font-size: 1.12rem;
        line-height: 1.38;
    }

    .destination-knowledge .destination-hero-quote blockquote {
        width: 100%;
        max-width: 100%;
        font-size: clamp(1.5rem, 6.4vw, 1.85rem);
        line-height: 1.7;
        direction: rtl;
        unicode-bidi: isolate;
        text-align: center;
        white-space: normal;
        overflow-wrap: normal;
    }

    .destination-knowledge .destination-hero-quote figcaption span {
        max-width: 31ch;
        font-size: 1.04rem;
        line-height: 1.5;
    }

    .destination-knowledge .destination-hero-quote cite {
        width: 100%;
        align-self: stretch;
        display: block;
        margin-top: .3rem;
        text-align: right;
        direction: ltr;
        unicode-bidi: isolate;
    }

    .knowledge-map {
        padding-top: 3.75rem !important;
    }

    .knowledge-map .section-intro {
        margin-bottom: 1.5rem;
    }

    .knowledge-map .section-intro h2 {
        font-size: 2.35rem;
    }

    .knowledge-routes a,
    .knowledge-routes a:first-child {
        min-height: 80px;
        grid-template-columns: 32px 1fr auto;
        padding: .85rem .8rem;
    }

    .knowledge-routes a strong {
        font-size: 1rem;
    }

    .learning-steps > div {
        min-height: 0;
        padding: 1.35rem 1rem;
    }

    .knowledge-chapter-nav {
        top: 70px;
    }

    .knowledge-chapter-nav > .container {
        width: 100%;
        min-height: 52px;
        overflow-x: auto;
    }

    .knowledge-chapter-nav > .container > span {
        display: none;
    }

    .knowledge-chapter-nav a {
        min-height: 52px;
        padding-inline: 1rem;
        white-space: nowrap;
    }

    .knowledge-index-context {
        width: 100%;
        margin-top: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .destination-knowledge .destination-image {
        animation: none !important;
        transform: none !important;
    }

    .destination-knowledge .destination-hero-quote > * {
        animation: none !important;
    }

    .knowledge-routes a::before,
    .knowledge-index-meter i b {
        transition: none !important;
    }
}
