/*
 * KinTrek articles section: shared base. Loaded on the article page (single-post.php)
 * and on the Hiking Guides pages (page-guides.php, category.php, tag.php).
 *
 * Contents: design tokens (--kt-*), page base without the MyListing front-end bundle,
 * header band (.kt-hero: breadcrumbs, eyebrow, H1, standfirst, byline, cover),
 * article card (.kt-card) and card grid, closing catalog band (.kt-explore), buttons,
 * site footer parity. Page-specific styles: article.css (one article), guides.css (lists).
 *
 * Tokens are custom properties on .kt-article-page; components (also release 1.2 blocks)
 * should use them instead of fixed values.
 */

.kt-article-page {
    --kt-green-900: #10301f;
    --kt-green-800: #1a4d2e;
    --kt-green-700: #2d7a4a;
    --kt-green-500: #4c9a68;
    --kt-green-100: #e4f1e8;
    --kt-green-50: #f2f8f4;
    --kt-amber-700: #8a5300;
    --kt-amber-500: #d48a12;
    --kt-amber-100: #fdf3e1;
    --kt-ink: #1d2721;
    --kt-ink-2: #3c4741;
    --kt-muted: #66706a;
    --kt-line: #e1e7e3;
    --kt-band: #f5f5f5;
    --kt-paper: #ffffff;
    --kt-radius-lg: 22px;
    --kt-radius: 16px;
    --kt-radius-sm: 10px;
    --kt-shadow-sm: 0 6px 20px rgba(19, 57, 42, 0.07);
    --kt-shadow: 0 16px 36px rgba(19, 57, 42, 0.11);
    --kt-measure: 700px;
    --kt-anchor-offset: 24px;

    --kt-i-bulb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21.5h4M12 2.5a6.5 6.5 0 0 0-3.9 11.7c.7.6 1.2 1.4 1.2 2.3v.5h5.4v-.5c0-.9.5-1.7 1.2-2.3A6.5 6.5 0 0 0 12 2.5z'/%3E%3C/svg%3E");
    --kt-i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 2.8 19.5h18.4z'/%3E%3Cpath d='M12 10v4M12 16.9v.1'/%3E%3C/svg%3E");
    --kt-i-flag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 21V4M5.5 4.5h12l-2.6 4 2.6 4h-12'/%3E%3C/svg%3E");
    --kt-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
    --kt-i-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4.5 4.5 0 0 0 6.4 0l3-3a4.5 4.5 0 0 0-6.4-6.4l-1 1'/%3E%3Cpath d='M14 10a4.5 4.5 0 0 0-6.4 0l-3 3a4.5 4.5 0 0 0 6.4 6.4l1-1'/%3E%3C/svg%3E");
    --kt-i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.2 2'/%3E%3C/svg%3E");
    --kt-i-list: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11M4 6h.01M4 12h.01M4 18h.01'/%3E%3C/svg%3E");
    --kt-i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --kt-i-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E");
    --kt-i-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------
 * Page base. MyListing's front-end stylesheet is not loaded here, so the
 * page sets its own minimal base. The shared header keeps child style.css.
 * ------------------------------------------------------------------ */

:root:has(body.kt-article-page) {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    :root:has(body.kt-article-page) {
        scroll-behavior: auto;
    }
}

/* Same base size and line height as the rest of the site, so the shared header and footer match. */
body.kt-article-page {
    margin: 0;
    background: var(--kt-band);
    color: var(--kt-ink);
    font-size: 14px;
    line-height: 1.42857;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.kt-article-page *,
.kt-article-page *::before,
.kt-article-page *::after {
    box-sizing: border-box;
}

.kt-article-page img,
.kt-article-page video {
    max-width: 100%;
    height: auto;
}

.kt-article-page .site-main {
    display: block;
}

/* The shared header relies on these base rules from the MyListing stylesheets. */
.kt-article-page .custom-header img {
    vertical-align: middle;
}

.kt-article-page .custom-header a {
    text-decoration: none;
}

.kt-article-page [hidden] {
    display: none !important;
}

.kt-article-page :focus-visible {
    outline: 2px solid var(--kt-green-700);
    outline-offset: 3px;
}

.kt-skip-link {
    position: absolute;
    left: 12px;
    top: -80px;
    z-index: 3000;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--kt-green-800);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.kt-skip-link:focus {
    top: 12px;
    color: #fff;
}

.kt-wrap {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 40px;
}

/* Contour lines: one SVG used as a mask, coloured by the element's text colour. */
.kt-topo {
    position: absolute;
    pointer-events: none;
    background-color: currentColor;
    -webkit-mask: url("../images/article-topo.svg") no-repeat center / contain;
    mask: url("../images/article-topo.svg") no-repeat center / contain;
}

/* ------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------ */

.kt-hero__band {
    position: relative;
    overflow: hidden;
    padding: 28px 0 48px;
    background: var(--kt-band);
}

.kt-hero__topo {
    width: 820px;
    height: 656px;
    right: -170px;
    top: -150px;
    color: var(--kt-green-700);
    opacity: 0.09;
}

.kt-hero--plain .kt-hero__band {
    padding-bottom: 64px;
    background: linear-gradient(180deg, var(--kt-band) 0%, #edf4ef 100%);
    border-bottom: 1px solid var(--kt-line);
}

.kt-hero--plain .kt-hero__topo {
    opacity: 0.15;
    top: -90px;
}

.kt-hero__inner {
    position: relative;
}

.kt-article--no-toc .kt-hero__inner {
    max-width: calc(var(--kt-measure) + 80px);
}

.kt-crumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--kt-muted);
}

.kt-crumbs__item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.kt-crumbs__item + .kt-crumbs__item::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid #9aa39d;
    border-right: 1.5px solid #9aa39d;
    transform: rotate(45deg);
}

.kt-crumbs__item a {
    color: var(--kt-green-800);
    font-weight: 500;
    text-decoration: none;
}

.kt-crumbs__item a:hover,
.kt-crumbs__item a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kt-crumbs__item--current {
    flex: 0 1 auto;
}

.kt-crumbs__current {
    display: block;
    max-width: 52ch;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.kt-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin: 0 0 18px;
}

.kt-eyebrow__cat {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--kt-green-700);
    text-decoration: none;
}

a.kt-eyebrow__cat:hover {
    color: var(--kt-green-800);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kt-eyebrow__draft {
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--kt-amber-100);
    color: var(--kt-amber-700);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kt-hero__title {
    max-width: 920px;
    margin: 0;
    color: var(--kt-ink);
    font-size: clamp(2rem, 1.15rem + 2.7vw, 3.35rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.kt-article--no-toc .kt-hero__title {
    font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.9rem);
}

.kt-hero__title--long,
.kt-article--no-toc .kt-hero__title--long {
    max-width: 980px;
    font-size: clamp(1.6rem, 1rem + 2.1vw, 2.75rem);
    line-height: 1.15;
}

.kt-hero__dek {
    max-width: 690px;
    margin: 20px 0 0;
    color: var(--kt-ink-2);
    font-size: clamp(1.05rem, 0.96rem + 0.4vw, 1.24rem);
    font-weight: 400;
    line-height: 1.6;
}

.kt-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 0;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--kt-muted);
}

.kt-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.kt-meta__item + .kt-meta__item::before {
    content: "";
    width: 4px;
    height: 4px;
    margin: 0 9px 0 12px;
    border-radius: 50%;
    background: #b3bbb5;
}

.kt-meta time,
.kt-meta__name {
    color: var(--kt-ink);
    font-weight: 500;
}

.kt-meta__avatar {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--kt-green-800);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.kt-meta__clock {
    width: 16px;
    height: 16px;
    background: var(--kt-green-700);
    -webkit-mask: var(--kt-i-clock) center / contain no-repeat;
    mask: var(--kt-i-clock) center / contain no-repeat;
}

.kt-meta__item--read {
    color: var(--kt-ink);
    font-weight: 500;
}

/* Cover: overlaps the grey band and the white reading area. */
.kt-cover {
    background: linear-gradient(180deg, var(--kt-band) 0 50%, var(--kt-paper) 50% 100%);
}

.kt-cover__figure {
    margin: 0 auto;
}

.kt-cover__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: var(--kt-radius-lg);
    background: #dfe8e2;
}

.kt-cover__caption {
    margin-top: 10px;
    color: var(--kt-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: right;
}

/* ------------------------------------------------------------------
 * Related articles
 * ------------------------------------------------------------------ */

.kt-related {
    padding: 72px 0 8px;
    background: var(--kt-band);
}

.kt-related__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.kt-related__title {
    margin: 0;
    color: var(--kt-ink);
    font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.015em;
}

.kt-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kt-related__item {
    display: flex;
}

.kt-related__item > .kt-card {
    flex: 1;
}

.kt-related__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
    color: var(--kt-green-800);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.kt-related__all:hover {
    color: var(--kt-green-900);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.kt-related__all-arrow,
.kt-card__more-arrow {
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: var(--kt-i-arrow) center / contain no-repeat;
    mask: var(--kt-i-arrow) center / contain no-repeat;
    transition: transform 0.2s ease;
}

/* ------------------------------------------------------------------
 * Article card (template-parts/article/card.php): Keep reading, guides lists
 * ------------------------------------------------------------------ */

.kt-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e6eae7;
    border-radius: 18px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kt-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--kt-shadow);
}

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

.kt-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #e9f2ec 0%, #d6e8dc 100%);
}

.kt-card__media .kt-card__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kt-card__topo {
    inset: -20% -30% -20% -10%;
    color: var(--kt-green-700);
    opacity: 0.22;
}

.kt-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 20px 22px;
}

.kt-card__eyebrow {
    margin: 0 0 6px;
    color: var(--kt-green-700);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.kt-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
}

.kt-card__link {
    color: var(--kt-ink);
    text-decoration: none;
}

.kt-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.kt-card__link:focus-visible {
    outline: none;
}

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

.kt-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    margin: auto 0 0;
    padding-top: 12px;
    color: var(--kt-muted);
    font-size: 0.8rem;
}

.kt-card__meta > * + *::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 9px 0 10px;
    border-radius: 50%;
    background: #aab2ad;
    vertical-align: middle;
}

.kt-card__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.kt-card__badge {
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--kt-green-800);
    color: #fff;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
}

.kt-card__excerpt {
    display: -webkit-box;
    margin: 10px 0 0;
    overflow: hidden;
    color: var(--kt-ink-2);
    font-size: 0.92rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.kt-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--kt-green-800);
    font-size: 0.92rem;
    font-weight: 600;
}

.kt-card:hover .kt-card__more-arrow {
    transform: translateX(4px);
}


/* ------------------------------------------------------------------
 * Explore the catalog
 * ------------------------------------------------------------------ */

.kt-explore {
    padding: 64px 0 80px;
    background: var(--kt-band);
}

.kt-related + .kt-explore {
    padding-top: 56px;
}

.kt-explore__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px 48px;
    overflow: hidden;
    padding: 48px 56px;
    border-radius: 24px;
    background: var(--kt-green-800);
    color: #fff;
}

.kt-explore__topo {
    width: 640px;
    height: 512px;
    right: -120px;
    top: -160px;
    color: #fff;
    opacity: 0.07;
}

.kt-explore__copy,
.kt-explore__actions {
    position: relative;
}

.kt-explore__title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.kt-explore__text {
    max-width: 560px;
    margin: 10px 0 0;
    color: #cfe6d7;
    font-size: 1rem;
    line-height: 1.6;
}

.kt-explore__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.kt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.kt-button--light {
    background: #fff;
    color: var(--kt-green-800);
}

.kt-button--light:hover {
    background: #e8f4ec;
    color: var(--kt-green-900);
}

.kt-button--ghost {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.kt-button--ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.kt-button__arrow {
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: var(--kt-i-arrow) center / contain no-repeat;
    mask: var(--kt-i-arrow) center / contain no-repeat;
}

.kt-explore .kt-button:focus-visible {
    outline-color: #fff;
}

/* Buttons on a light background (empty state of the guides lists) */
.kt-button--primary {
    background: var(--kt-green-800);
    color: #fff;
}

.kt-button--primary:hover {
    background: var(--kt-green-900);
    color: #fff;
}

.kt-button--outline {
    border-color: #c8d9cd;
    color: var(--kt-green-800);
}

.kt-button--outline:hover {
    border-color: var(--kt-green-700);
    background: var(--kt-green-50);
    color: var(--kt-green-900);
}

/* ------------------------------------------------------------------
 * Site footer on article pages: the MyListing grid stylesheet is not
 * loaded here, so its container gets the same width rules.
 * ------------------------------------------------------------------ */

.kt-article-page footer.footer {
    font-size: 14px;
    line-height: 20px;
}

.kt-article-page footer.footer p {
    margin: 0 0 10px;
}

.kt-article-page footer.footer .container {
    margin-inline: auto;
    padding-inline: 15px;
}

.kt-article-page footer.footer .row {
    margin-inline: -15px;
}

.kt-article-page footer.footer [class*="col-"] {
    position: relative;
    display: flow-root;
    min-height: 1px;
    padding-inline: 10px;
}

@media (min-width: 768px) {
    .kt-article-page footer.footer .container {
        width: 750px;
    }
}

@media (min-width: 992px) {
    .kt-article-page footer.footer .container {
        width: 970px;
    }
}

@media (min-width: 1200px) {
    .kt-article-page footer.footer .container {
        width: 1170px;
    }
}

/* ------------------------------------------------------------------
 * Tablet and phone
 * ------------------------------------------------------------------ */

@media (max-width: 1099px) {
    .kt-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kt-related__grid > :nth-child(3) {
        display: none;
    }
}

@media (max-width: 900px) {
    .kt-explore__panel {
        grid-template-columns: 1fr;
        padding: 40px 36px;
    }
}

@media (max-width: 767px) {
    .kt-wrap {
        padding-inline: 20px;
    }

    .kt-hero__band {
        padding: 18px 0 36px;
    }

    .kt-hero--plain .kt-hero__band {
        padding-bottom: 44px;
    }

    .kt-hero__topo {
        width: 520px;
        height: 416px;
        right: -220px;
        top: -60px;
    }

    .kt-crumbs__list {
        margin-bottom: 22px;
    }

    /* On a phone the title follows right below: the trail stops at the parent page. */
    .kt-crumbs__item--current,
    .kt-eyebrow--repeats-crumb {
        display: none;
    }

    /* Without a category the trail is "Home › title": keep the title, shortened. */
    .kt-crumbs--short .kt-crumbs__item--current {
        display: flex;
        min-width: 0;
        flex: 1 1 0;
    }

    .kt-crumbs--short .kt-crumbs__current {
        max-width: 100%;
    }

    .kt-crumbs--short .kt-crumbs__list {
        flex-wrap: nowrap;
    }

    .kt-hero__title {
        font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.2rem);
    }

    .kt-hero__title--long,
    .kt-article--no-toc .kt-hero__title--long {
        font-size: 1.6rem;
    }

    .kt-hero__dek {
        margin-top: 16px;
    }

    .kt-meta {
        gap: 8px 18px;
        margin-top: 22px;
        font-size: 0.82rem;
    }

    .kt-meta__item + .kt-meta__item::before {
        display: none;
    }

    .kt-cover__img {
        aspect-ratio: 4 / 3;
        border-radius: var(--kt-radius);
    }

    .kt-cover__caption {
        text-align: left;
    }

    .kt-related {
        padding-top: 52px;
    }

    .kt-related__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .kt-related__grid > :nth-child(3) {
        display: flex;
    }

    /* Keep reading on a phone: compact horizontal cards. */
    .kt-card--related {
        flex-direction: row;
        align-items: stretch;
    }

    .kt-card--related .kt-card__media {
        flex: 0 0 34%;
        aspect-ratio: auto;
        min-height: 112px;
    }

    .kt-card--related .kt-card__body {
        padding: 14px 16px 16px;
    }

    .kt-card--related .kt-card__title {
        font-size: 0.98rem;
    }

    .kt-related__head {
        align-items: center;
    }

    .kt-explore {
        padding: 48px 0 56px;
    }

    .kt-explore__panel {
        padding: 32px 22px;
        border-radius: 20px;
    }

    .kt-explore__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ------------------------------------------------------------------
 * Print: no navigation.
 * ------------------------------------------------------------------ */

@media print {
    .custom-header,
    .kt-skip-link,
    .kt-crumbs,
    .kt-related,
    .kt-explore,
    .kt-topo,
    footer.footer {
        display: none !important;
    }

    body.kt-article-page,
    .kt-hero__band,
    .kt-cover {
        background: #fff !important;
    }
}
