/*
 * KinTrek article template (single-post.php). Loaded only on article pages, after
 * article-base.css (tokens, page base, header band, cards, catalog band, footer).
 *
 * Structure
 *   .kt-hero        breadcrumbs, category, H1, standfirst, byline, cover
 *   .kt-body        table of contents (.kt-toc) + reading column (.kt-prose)
 *   .kt-related     related articles
 *   .kt-explore     link band to the catalog
 *
 * Embedding components inside an article (release 1.2: landing CTA, trip finder)
 *   - Prose styles only target direct children of .kt-prose and a few known containers
 *     (notes, FAQ, sources, footnotes), so a component's inner markup is not restyled.
 *   - Every direct child is limited to the reading measure. A component may add
 *     .kt-embed--wide (or the core .alignwide) to use more width; .alignfull uses the column.
 *   - Spacing around a component: .kt-embed gets the same vertical rhythm as notes.
 *   - Colours, radii and shadows are custom properties on .kt-article-page (--kt-*);
 *     components should use them instead of fixed values.
 */

/* ------------------------------------------------------------------
 * Body layout
 * ------------------------------------------------------------------ */

.kt-body {
    padding: 56px 0 96px;
    background: var(--kt-paper);
}

.kt-article--cover .kt-body {
    padding-top: 44px;
}

.kt-body__main {
    min-width: 0;
}

@media (min-width: 1100px) {
    .kt-body__grid--toc {
        display: grid;
        grid-template-columns: 250px minmax(0, 1fr);
        column-gap: clamp(56px, 5.5vw, 88px);
        align-items: start;
    }

    .kt-body__aside {
        position: sticky;
        top: 28px;
        align-self: start;
    }

    .admin-bar .kt-body__aside {
        top: 60px;
    }
}

/* ------------------------------------------------------------------
 * Table of contents
 * ------------------------------------------------------------------ */

.kt-toc__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.kt-toc__title {
    margin: 0;
    color: var(--kt-ink);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.kt-toc__count {
    color: var(--kt-muted);
    font-size: 0.75rem;
}

.kt-toc__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kt-toc__link {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 4px;
    color: var(--kt-ink-2);
    font-size: 0.875rem;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.kt-toc__num {
    padding-top: 0.12em;
    color: #9aa39d;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.kt-toc__link:hover,
.kt-toc__link.is-active {
    color: var(--kt-green-800);
}

.kt-toc__link.is-active {
    font-weight: 500;
}

.kt-toc__link.is-active .kt-toc__num,
.kt-toc__link:hover .kt-toc__num {
    color: var(--kt-green-700);
}

.kt-toc__top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    color: var(--kt-muted);
    font-size: 0.8rem;
    text-decoration: none;
}

.kt-toc__top::before {
    content: "";
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: var(--kt-i-up) center / contain no-repeat;
    mask: var(--kt-i-up) center / contain no-repeat;
}

.kt-toc__top:hover {
    color: var(--kt-green-800);
}

.kt-toc__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0 0;
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--kt-green-800);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.kt-toc__more::after {
    content: "";
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: var(--kt-i-chevron) center / contain no-repeat;
    mask: var(--kt-i-chevron) center / contain no-repeat;
    transition: transform 0.2s ease;
}

.kt-toc__more[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.kt-toc__more[aria-expanded="true"] .kt-toc__more-open,
.kt-toc__more[aria-expanded="false"] .kt-toc__more-close {
    display: none;
}

@media (min-width: 1100px) {
    .kt-toc {
        max-height: calc(100vh - 56px);
        overflow-y: auto;
        padding: 2px 8px 8px 0;
        scrollbar-width: none;
        overscroll-behavior: contain;
    }

    .kt-toc::-webkit-scrollbar {
        display: none;
    }

    .kt-toc:hover {
        scrollbar-width: thin;
        scrollbar-color: #d4dbd6 transparent;
    }

    .kt-toc__list {
        border-left: 2px solid var(--kt-line);
    }

    .kt-toc__link {
        margin-left: -2px;
        padding: 8px 0 8px 16px;
        border-left: 2px solid transparent;
    }

    .kt-toc__link.is-active {
        border-left-color: var(--kt-green-700);
    }

    .kt-toc__more {
        display: none;
    }
}

@media (max-width: 1099px) {
    .kt-body__aside {
        max-width: var(--kt-measure);
        margin: 0 auto 44px;
    }

    .kt-toc {
        padding: 20px 22px 14px;
        border: 1px solid #d9e9de;
        border-radius: var(--kt-radius);
        background: var(--kt-green-50);
    }

    .kt-toc__link {
        padding: 10px 0;
        border-bottom: 1px solid rgba(26, 77, 46, 0.09);
    }

    .kt-toc__item:last-child .kt-toc__link,
    .kt-toc.is-collapsed .kt-toc__item:nth-child(4) .kt-toc__link {
        border-bottom: 0;
    }

    .kt-toc.is-collapsed .kt-toc__item:nth-child(n + 5) {
        display: none;
    }

    .kt-toc__top {
        display: none;
    }
}

/* ------------------------------------------------------------------
 * Reading column
 * ------------------------------------------------------------------ */

.kt-prose {
    color: var(--kt-ink);
    font-size: 1.125rem;
    line-height: 1.8;
    overflow-wrap: break-word;
}

.kt-prose > * {
    max-width: var(--kt-measure);
    margin: 1.3em auto 0;
}

.kt-prose > :first-child {
    margin-top: 0;
}

@media (min-width: 1100px) {
    .kt-body__grid--toc .kt-prose > * {
        margin-inline: 0;
    }
}

.kt-prose > :is(.alignwide, .kt-embed--wide) {
    max-width: min(100%, calc(var(--kt-measure) + 200px));
}

.kt-prose > .alignfull {
    max-width: 100%;
}

.kt-prose [id] {
    scroll-margin-top: var(--kt-anchor-offset);
}

/* Lead: when the text opens with a paragraph, it reads as an introduction. */
.kt-prose > p:first-child {
    color: var(--kt-ink);
    font-size: 1.24rem;
    line-height: 1.7;
}

.kt-prose p {
    margin-bottom: 0;
}

/* Headings */
.kt-prose > h2,
.kt-prose > section > h2:not(.kt-footnotes__title) {
    margin-top: 2.5em;
    color: var(--kt-ink);
    font-size: clamp(1.45rem, 1.2rem + 0.75vw, 1.85rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.kt-prose > h2::before,
.kt-prose > section > h2:not(.kt-footnotes__title)::before {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    margin-bottom: 18px;
    border-radius: 3px;
    background: var(--kt-green-700);
}

.kt-prose > section > h2:not(.kt-footnotes__title) {
    margin-top: 0;
}

/* The FAQ panel has inner padding: a jump to its heading shows the panel top too. */
.kt-prose > .kt-faq > h2 {
    scroll-margin-top: calc(var(--kt-anchor-offset) + 36px);
}

.kt-prose > h3 {
    margin-top: 1.9em;
    color: var(--kt-ink);
    font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.32rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.005em;
}

.kt-prose > h4 {
    margin-top: 1.6em;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
}

.kt-prose > :is(h2, h3, h4) + * {
    margin-top: 0.7em;
}

/* Inline text */
.kt-prose a {
    color: var(--kt-green-700);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(45, 122, 74, 0.4);
    text-underline-offset: 0.2em;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.kt-prose a:hover {
    color: var(--kt-green-800);
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px;
}

.kt-prose :is(strong, b) {
    color: #121b15;
    font-weight: 600;
}

.kt-prose em {
    font-style: italic;
}

.kt-prose mark {
    padding: 0 0.15em;
    border-radius: 3px;
    background: #fff0b3;
    color: inherit;
}

.kt-prose code {
    padding: 0.1em 0.35em;
    border-radius: 5px;
    background: #eff2f0;
    font-size: 0.88em;
}

.kt-prose sub,
.kt-prose sup {
    font-size: 0.72em;
    line-height: 0;
}

/* Lists (top level and inside notes and FAQ answers) */
:is(.kt-prose, .kt-note__body, .kt-faq__answer) > :is(ul, ol),
:is(.kt-prose, .kt-note__body, .kt-faq__answer) > :is(ul, ol) li > :is(ul, ol) {
    padding-left: 0;
    list-style: none;
}

:is(.kt-prose, .kt-note__body, .kt-faq__answer) > :is(ul, ol) li > :is(ul, ol) {
    margin: 0.55em 0 0;
}

:is(.kt-prose, .kt-note__body, .kt-faq__answer) > :is(ul, ol) li {
    position: relative;
}

:is(.kt-prose, .kt-note__body, .kt-faq__answer) > :is(ul, ol) li + li {
    margin-top: 0.6em;
}

:is(.kt-prose, .kt-note__body, .kt-faq__answer) > ul > li,
:is(.kt-prose, .kt-note__body, .kt-faq__answer) > :is(ul, ol) li > ul > li {
    padding-left: 1.55em;
}

:is(.kt-prose, .kt-note__body, .kt-faq__answer) > ul > li::before,
:is(.kt-prose, .kt-note__body, .kt-faq__answer) > :is(ul, ol) li > ul > li::before {
    content: "";
    position: absolute;
    left: 0.3em;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--kt-green-700);
}

:is(.kt-prose, .kt-note__body, .kt-faq__answer) > :is(ul, ol) li > ul > li::before {
    background: transparent;
    border: 1.5px solid var(--kt-green-700);
}

:is(.kt-prose, .kt-note__body, .kt-faq__answer) > ol,
:is(.kt-prose, .kt-note__body, .kt-faq__answer) > :is(ul, ol) li > ol {
    counter-reset: kt-ol;
}

:is(.kt-prose, .kt-note__body, .kt-faq__answer) > ol > li,
:is(.kt-prose, .kt-note__body, .kt-faq__answer) > :is(ul, ol) li > ol > li {
    padding-left: 2.35em;
    counter-increment: kt-ol;
}

:is(.kt-prose, .kt-note__body, .kt-faq__answer) > ol > li::before,
:is(.kt-prose, .kt-note__body, .kt-faq__answer) > :is(ul, ol) li > ol > li::before {
    content: counter(kt-ol);
    position: absolute;
    left: 0;
    top: 0.18em;
    display: grid;
    place-items: center;
    width: 1.62em;
    height: 1.62em;
    border-radius: 50%;
    background: var(--kt-green-100);
    color: var(--kt-green-800);
    font-size: 0.8em;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* Images, embeds, tables */
.kt-prose > :is(figure, .wp-block-image, .wp-block-gallery, .wp-block-embed, .wp-block-video, .kt-table-scroll, .wp-block-table) {
    margin-top: 2em;
}

.kt-prose > :is(figure, .wp-block-image, .wp-block-gallery, .wp-block-embed, .wp-block-video) + * {
    margin-top: 2em;
}

.kt-prose figure {
    margin-left: 0;
    margin-right: 0;
}

.kt-prose > * figure,
.kt-prose > figure {
    margin-bottom: 0;
}

.kt-prose :is(.wp-block-image, figure) img {
    display: block;
    border-radius: 14px;
}

.kt-prose :is(figcaption, .wp-element-caption) {
    margin-top: 0.75em;
    color: var(--kt-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.kt-prose .aligncenter {
    margin-inline: auto;
    text-align: center;
}

@media (min-width: 768px) {
    .kt-prose > .alignleft {
        float: left;
        max-width: 46%;
        margin: 0.4em 1.6em 1em 0;
    }

    .kt-prose > .alignright {
        float: right;
        max-width: 46%;
        margin: 0.4em 0 1em 1.6em;
    }
}

.kt-prose > :is(h2, h3, section, hr, .kt-note, .kt-faq) {
    clear: both;
}

.kt-prose .wp-block-embed iframe {
    max-width: 100%;
    border-radius: 14px;
}

.kt-table-scroll,
.kt-prose .wp-block-table {
    overflow-x: auto;
}

.kt-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.55;
}

.kt-prose :is(th, td) {
    padding: 10px 12px;
    border-bottom: 1px solid var(--kt-line);
    text-align: left;
    vertical-align: top;
}

.kt-prose th {
    background: var(--kt-green-50);
    font-weight: 600;
}

/* Separator: three dots in the middle of the column */
.kt-prose > :is(hr, .wp-block-separator) {
    width: 100%;
    height: 8px;
    margin-top: 2.8em;
    border: 0;
    opacity: 1;
    background:
        radial-gradient(circle, var(--kt-green-500) 0 2.5px, transparent 3px) calc(50% - 18px) 50% / 8px 8px no-repeat,
        radial-gradient(circle, var(--kt-green-500) 0 2.5px, transparent 3px) 50% 50% / 8px 8px no-repeat,
        radial-gradient(circle, var(--kt-green-500) 0 2.5px, transparent 3px) calc(50% + 18px) 50% / 8px 8px no-repeat;
}

.kt-prose > :is(hr, .wp-block-separator) + * {
    margin-top: 2.8em;
}

/* Quotations (blockquote without a note label) */
.kt-prose > .kt-quote,
.kt-prose > .wp-block-pullquote {
    position: relative;
    margin-top: 2.2em;
    padding: 2px 0 2px 58px;
    border: 0;
    color: var(--kt-ink);
    font-size: 1.28rem;
    font-style: normal;
    line-height: 1.6;
}

.kt-prose > .kt-quote::before {
    content: "\201C";
    position: absolute;
    left: 0;
    top: -0.12em;
    color: var(--kt-green-700);
    font-size: 4.3rem;
    font-weight: 600;
    line-height: 1;
}

.kt-quote > p,
.kt-quote > :is(ul, ol) {
    margin: 0;
}

.kt-quote > * + * {
    margin-top: 0.8em;
}

.kt-quote cite,
.wp-block-pullquote cite {
    display: block;
    margin-top: 0.9em;
    color: var(--kt-muted);
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.kt-quote cite::before {
    content: "\2014\00a0";
}

.kt-prose > :is(.kt-quote, .wp-block-pullquote) + * {
    margin-top: 2.2em;
}

/* ------------------------------------------------------------------
 * Notes: TIP, IMPORTANT, TAKEAWAY, RELATED
 * ------------------------------------------------------------------ */

.kt-prose > :is(.kt-note, .kt-embed) {
    margin-top: 2em;
}

.kt-prose > :is(.kt-note, .kt-embed) + * {
    margin-top: 2em;
}

.kt-note {
    position: relative;
    padding: 20px 24px 22px;
    border: 1px solid transparent;
    border-radius: var(--kt-radius);
    font-size: 1.02rem;
    line-height: 1.7;
}

.kt-note__label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.kt-note__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.kt-note__icon::before {
    content: "";
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: var(--kt-note-icon) center / contain no-repeat;
    mask: var(--kt-note-icon) center / contain no-repeat;
}

.kt-note__body > * {
    margin: 0;
}

.kt-note__body > * + * {
    margin-top: 0.75em;
}

.kt-note--tip {
    --kt-note-icon: var(--kt-i-bulb);
    background: var(--kt-green-50);
    border-color: #d3e7da;
}

.kt-note--tip .kt-note__label {
    color: var(--kt-green-800);
}

.kt-note--tip .kt-note__icon {
    background: var(--kt-green-700);
    color: #fff;
}

.kt-note--important {
    --kt-note-icon: var(--kt-i-alert);
    background: #fff8eb;
    border-color: #f2ddb3;
    box-shadow: inset 4px 0 0 var(--kt-amber-500);
}

.kt-note--important .kt-note__label {
    color: var(--kt-amber-700);
}

.kt-note--important .kt-note__icon {
    background: var(--kt-amber-500);
    color: #fff;
}

.kt-note--takeaway {
    --kt-note-icon: var(--kt-i-flag);
    overflow: hidden;
    background: var(--kt-green-800);
    color: #e9f4ed;
}

.kt-note--takeaway::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -150px;
    width: 360px;
    height: 290px;
    background: #fff;
    opacity: 0.06;
    -webkit-mask: url("../images/article-topo.svg") no-repeat center / contain;
    mask: url("../images/article-topo.svg") no-repeat center / contain;
    pointer-events: none;
}

.kt-note--takeaway .kt-note__label {
    color: #a8d9b7;
}

.kt-note--takeaway .kt-note__icon {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.kt-note--takeaway .kt-note__body {
    position: relative;
    z-index: 1;
    font-size: 1.08rem;
}

.kt-note--takeaway :is(strong, b) {
    color: #fff;
}

.kt-note--takeaway a,
.kt-note--takeaway a:hover {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.6);
}

.kt-note--related {
    --kt-note-icon: var(--kt-i-arrow);
    background: #fff;
    border-color: var(--kt-line);
}

.kt-note--related .kt-note__label {
    color: var(--kt-green-700);
}

.kt-note--related .kt-note__icon {
    background: var(--kt-green-100);
    color: var(--kt-green-800);
}

.kt-note--card {
    padding-right: 72px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.kt-note--card a {
    color: var(--kt-ink);
    font-size: 1.06rem;
    font-weight: 600;
    text-decoration: none;
}

.kt-note--card a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.kt-note--card::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    background: var(--kt-green-700);
    -webkit-mask: var(--kt-i-arrow) center / contain no-repeat;
    mask: var(--kt-i-arrow) center / contain no-repeat;
    transition: transform 0.2s ease;
}

.kt-note--card:hover {
    border-color: #bcdac7;
    box-shadow: var(--kt-shadow-sm);
}

.kt-note--card:hover a {
    color: var(--kt-green-800);
}

.kt-note--card:hover::after {
    transform: translateX(4px);
}

.kt-note--card:focus-within {
    outline: 2px solid var(--kt-green-700);
    outline-offset: 3px;
}

.kt-note--card a:focus-visible {
    outline: none;
}

/* ------------------------------------------------------------------
 * Footnote references and notes list
 * ------------------------------------------------------------------ */

.kt-prose a.kt-fnref {
    display: inline-block;
    min-width: 1.6em;
    margin-left: 0.12em;
    padding: 0.2em 0.38em;
    border-radius: 6px;
    background: var(--kt-green-100);
    color: var(--kt-green-800);
    font-size: 0.95em;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    vertical-align: 0.1em;
}

.kt-prose a.kt-fnref:hover,
.kt-prose a.kt-fnref:focus-visible {
    background: var(--kt-green-700);
    color: #fff;
}

/* A jump between a reference and its note keeps the surrounding sentence in view. */
.kt-prose a.kt-fnref,
.kt-footnotes__list > li {
    scroll-margin-top: 30vh;
}

.kt-prose a.kt-fnref:target {
    background: var(--kt-amber-500);
    color: #fff;
}

.kt-prose > .kt-footnotes {
    margin-top: 3em;
    padding-top: 26px;
    border-top: 1px solid var(--kt-line);
}

.kt-footnotes__title {
    margin: 0 0 14px;
    color: var(--kt-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.3;
    text-transform: uppercase;
}

.kt-footnotes__list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: kt-fn;
    color: var(--kt-ink-2);
    font-size: 0.92rem;
    line-height: 1.6;
}

.kt-footnotes__list > li {
    position: relative;
    margin: 0;
    padding: 7px 10px 7px 38px;
    border-radius: var(--kt-radius-sm);
    counter-increment: kt-fn;
    overflow-wrap: anywhere;
    transition: background-color 0.6s ease;
}

.kt-footnotes__list > li + li {
    margin-top: 2px;
}

.kt-footnotes__list > li::before {
    content: counter(kt-fn) ".";
    position: absolute;
    left: 8px;
    top: 7px;
    min-width: 22px;
    color: var(--kt-green-700);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.kt-footnotes__list > li:target {
    background: #fff3cf;
}

.kt-prose a.kt-fnback {
    margin-left: 0.3em;
    color: var(--kt-green-700);
    font-weight: 600;
    text-decoration: none;
}

.kt-fnback-group {
    margin-left: 0.35em;
    color: var(--kt-muted);
}

.kt-fnback-group a.kt-fnback {
    margin-left: 0.1em;
    font-size: 0.85em;
}

/* WordPress core footnotes block (if an editor adds notes by hand in Gutenberg) */
.kt-prose > ol.wp-block-footnotes {
    padding-top: 22px;
    border-top: 1px solid var(--kt-line);
    color: var(--kt-ink-2);
    font-size: 0.92rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.kt-prose > ol.wp-block-footnotes > li::before {
    background: transparent;
    color: var(--kt-green-700);
}

/* Hover preview of a footnote (js/article.js, pointer devices) */
.kt-fn-tip {
    position: absolute;
    z-index: 1100;
    max-width: min(380px, calc(100vw - 32px));
    padding: 12px 14px;
    border: 1px solid var(--kt-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--kt-shadow);
    color: var(--kt-ink-2);
    font-size: 0.85rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.kt-fn-tip a {
    color: var(--kt-green-700);
}

/* ------------------------------------------------------------------
 * FAQ
 * ------------------------------------------------------------------ */

.kt-prose > .kt-faq {
    max-width: calc(var(--kt-measure) + 72px);
    margin-top: 3.2em;
    padding: 36px 36px 34px;
    border-radius: var(--kt-radius-lg);
    background: var(--kt-green-50);
}

@media (min-width: 1100px) {
    .kt-body__grid--toc .kt-prose > .kt-faq {
        margin-left: -36px;
    }
}

.kt-prose > .kt-faq + * {
    margin-top: 3em;
}

.kt-faq > p {
    margin: 0.7em 0 0;
}

.kt-faq__list {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.kt-faq__item {
    border: 1px solid #dbe8df;
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kt-faq__item[open] {
    border-color: #c3dbca;
    box-shadow: var(--kt-shadow-sm);
}

.kt-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px 16px 20px;
    border-radius: 14px;
    cursor: pointer;
    list-style: none;
}

.kt-faq__question::-webkit-details-marker {
    display: none;
}

.kt-faq__question::marker {
    content: "";
}

.kt-faq__question h3 {
    margin: 0;
    color: var(--kt-ink);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
    transition: color 0.15s ease;
}

.kt-faq__question:hover h3 {
    color: var(--kt-green-800);
}

.kt-faq__question::after {
    --kt-plus: var(--kt-green-800);
    content: "";
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--kt-green-100);
    background-image: linear-gradient(var(--kt-plus), var(--kt-plus)), linear-gradient(var(--kt-plus), var(--kt-plus));
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px 2px, 2px 12px;
    transition: background-color 0.2s ease, background-size 0.2s ease;
}

.kt-faq__item[open] > .kt-faq__question::after {
    --kt-plus: #fff;
    background-color: var(--kt-green-700);
    background-size: 12px 2px, 2px 0;
}

.kt-faq__answer {
    padding: 0 20px 20px;
    color: var(--kt-ink-2);
    font-size: 1rem;
    line-height: 1.75;
}

.kt-faq__answer > * {
    margin: 0;
}

.kt-faq__answer > * + * {
    margin-top: 0.8em;
}

/* ------------------------------------------------------------------
 * Useful links and sources
 * ------------------------------------------------------------------ */

.kt-prose > .kt-sources {
    margin-top: 3.2em;
}

.kt-sources > p {
    margin: 0.7em 0 0;
}

.kt-sources__list {
    margin: 20px 0 0;
    padding: 0;
    border-top: 1px solid var(--kt-line);
    list-style: none;
}

.kt-sources__list > li {
    position: relative;
    padding: 15px 0 15px 38px;
    border-bottom: 1px solid var(--kt-line);
    color: var(--kt-ink-2);
    font-size: 0.97rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.kt-sources__list > li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 19px;
    width: 18px;
    height: 18px;
    background: var(--kt-green-700);
    -webkit-mask: var(--kt-i-link) center / contain no-repeat;
    mask: var(--kt-i-link) center / contain no-repeat;
}

.kt-prose .kt-sources__list a {
    color: var(--kt-ink);
    font-weight: 500;
    text-decoration-color: rgba(29, 39, 33, 0.25);
}

.kt-prose .kt-sources__list a:hover {
    color: var(--kt-green-800);
    text-decoration-color: currentColor;
}

.kt-sources__host {
    display: block;
    margin-top: 3px;
    color: var(--kt-muted);
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}

/* ------------------------------------------------------------------
 * After the text: pages, topics
 * ------------------------------------------------------------------ */

.kt-pages,
.kt-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    max-width: var(--kt-measure);
    margin: 48px auto 0;
    font-size: 0.9rem;
}

@media (min-width: 1100px) {
    .kt-body__grid--toc :is(.kt-pages, .kt-tags) {
        margin-inline: 0;
    }
}

.kt-pages__label,
.kt-tags__label {
    color: var(--kt-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.kt-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kt-tags__list a,
.kt-pages a,
.kt-pages .post-page-numbers {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--kt-line);
    border-radius: 999px;
    color: var(--kt-ink-2);
    text-decoration: none;
}

.kt-tags__list a:hover,
.kt-pages a:hover {
    border-color: var(--kt-green-700);
    color: var(--kt-green-800);
}

/* ------------------------------------------------------------------
 * Reading progress (wide screens) and the section bar (tablet, phone)
 * ------------------------------------------------------------------ */

.kt-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: 3px;
    pointer-events: none;
}

.kt-progress__bar,
.kt-sectionbar__progress > span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--kt-green-700), #48a56b);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

.admin-bar .kt-progress {
    top: 32px;
}

.kt-sectionbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    border-bottom: 1px solid var(--kt-line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 20px rgba(16, 48, 31, 0.07);
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
}

.kt-sectionbar.is-visible {
    transform: translateY(0);
}

.kt-sectionbar__button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 0 20px;
    border: 0;
    background: none;
    color: var(--kt-ink);
    font-size: 0.875rem;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.kt-sectionbar__button::after {
    content: "";
    flex: none;
    width: 18px;
    height: 18px;
    background: var(--kt-muted);
    -webkit-mask: var(--kt-i-chevron) center / contain no-repeat;
    mask: var(--kt-i-chevron) center / contain no-repeat;
}

.kt-sectionbar__icon {
    flex: none;
    width: 18px;
    height: 18px;
    background: var(--kt-green-700);
    -webkit-mask: var(--kt-i-list) center / contain no-repeat;
    mask: var(--kt-i-list) center / contain no-repeat;
}

.kt-sectionbar__label {
    flex: none;
    font-weight: 600;
}

.kt-sectionbar__current {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--kt-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.kt-sectionbar__current:not(:empty)::before {
    content: "\00b7\00a0\00a0";
}

.kt-sectionbar__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
}

.kt-sheet {
    position: fixed;
    inset: 0;
    z-index: 1002;
    background: rgba(13, 30, 20, 0.36);
}

.kt-sheet__panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    max-height: min(80vh, 640px);
    overflow-y: auto;
    padding: 6px 20px 18px;
    border-radius: 0 0 20px 20px;
    background: #fff;
    box-shadow: var(--kt-shadow);
}

.kt-sheet__head {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    background: #fff;
}

.kt-sheet__title {
    margin: 0;
    color: var(--kt-ink);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.kt-sheet__close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--kt-ink);
    cursor: pointer;
}

.kt-sheet__close::before {
    content: "";
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: var(--kt-i-close) center / contain no-repeat;
    mask: var(--kt-i-close) center / contain no-repeat;
}

.kt-sheet .kt-toc__link {
    padding: 11px 0;
    border-bottom: 1px solid var(--kt-line);
    font-size: 0.95rem;
}

.kt-sheet .kt-toc__item:last-child .kt-toc__link {
    border-bottom: 0;
}

@media (min-width: 1100px) {
    .kt-sectionbar,
    .kt-sheet {
        display: none !important;
    }
}

@media (max-width: 1099px) {
    .kt-article-page {
        --kt-anchor-offset: 72px;
    }

    .kt-progress {
        display: none;
    }
}

@media (max-width: 782px) {
    .admin-bar .kt-sectionbar {
        top: 0;
    }
}


@media (max-width: 767px) {
    .kt-body {
        padding: 36px 0 64px;
    }

    .kt-article--cover .kt-body {
        padding-top: 32px;
    }

    .kt-body__aside {
        margin-bottom: 36px;
    }

    .kt-toc {
        padding: 18px 18px 12px;
    }

    .kt-prose {
        font-size: 1.0625rem;
        line-height: 1.75;
    }

    .kt-prose > p:first-child {
        font-size: 1.15rem;
    }

    .kt-prose > .kt-quote {
        padding-left: 44px;
        font-size: 1.15rem;
    }

    .kt-prose > .kt-quote::before {
        font-size: 3.4rem;
    }

    .kt-note {
        padding: 18px 18px 20px;
        font-size: 1rem;
    }

    .kt-note--card {
        padding-right: 56px;
    }

    .kt-note--card::after {
        right: 18px;
    }

    .kt-prose > .kt-faq {
        margin-inline: -20px;
        padding: 30px 20px 26px;
        border-radius: 0;
    }

    .kt-faq__question {
        padding: 14px 14px 14px 16px;
    }

    .kt-faq__question h3 {
        font-size: 0.98rem;
    }

    .kt-faq__answer {
        padding: 0 16px 18px;
        font-size: 0.97rem;
    }

    .kt-sources__list > li {
        padding-left: 32px;
        font-size: 0.94rem;
    }

    .kt-sources__list > li::before {
        left: 2px;
    }
}

/* ------------------------------------------------------------------
 * Print: the text, its notes and sources; no navigation.
 * ------------------------------------------------------------------ */

@media print {
    .kt-body__aside,
    .kt-progress,
    .kt-sectionbar,
    .kt-sheet {
        display: none !important;
    }

    .kt-body {
        background: #fff !important;
    }

    .kt-body__grid--toc {
        display: block;
    }

    .kt-prose > * {
        max-width: none;
    }

    .kt-note--takeaway {
        background: #fff;
        color: var(--kt-ink);
        border-color: var(--kt-line);
    }

    .kt-note--takeaway :is(strong, b, .kt-note__label) {
        color: var(--kt-ink);
    }
}
