.kh-tp,
.kh-tp-single {
    --kh-red: #c40023;
    --kh-red-dark: #8c101e;
    --kh-text: #292929;
    --kh-muted: #6b6b6b;
    --kh-line: #dedede;
    --kh-white: #fff;
    --kh-surface: #f5f5f3;
    color: var(--kh-text);
}

.kh-tp {
    width: 100%;
    padding: clamp(34px, 4.5vw, 58px) clamp(22px, 3.5vw, 48px);
    background: var(--kh-surface);
}

.kh-tp__title {
    margin: 0 0 34px;
    color: var(--kh-red-dark);
    font: inherit;
    font-size: clamp(30px, 3vw, 46px);
    font-weight: 400;
    line-height: 1.1;
}

.kh-tp__months {
    display: grid;
    gap: clamp(44px, 6vw, 72px);
}

.kh-tp__month-title {
    margin: 0 0 14px;
    color: var(--kh-red-dark);
    font: inherit;
    font-size: clamp(17px, 1.45vw, 22px);
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.2;
    text-transform: uppercase;
}

.kh-tp__rows {
    border-top: 1px solid var(--kh-line);
}

.kh-tp__row {
    margin: 0;
    border-bottom: 1px solid var(--kh-line);
}

.kh-tp__row-link {
    display: grid;
    grid-template-columns: minmax(150px, .8fr) minmax(0, 2.2fr) auto;
    gap: clamp(24px, 4vw, 58px);
    align-items: center;
    padding: clamp(22px, 2.8vw, 34px) 0;
    color: inherit;
    text-decoration: none;
    transition: color 160ms ease, transform 160ms ease;
}

.kh-tp__row-link:hover,
.kh-tp__row-link:focus-visible {
    color: var(--kh-red-dark);
    text-decoration: none;
}

.kh-tp__row-link:focus-visible {
    outline: 2px solid var(--kh-red);
    outline-offset: 6px;
}

.kh-tp__row-meta {
    display: grid;
    gap: 6px;
    align-self: start;
}

.kh-tp__row-category {
    color: var(--kh-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.kh-tp__row-date {
    color: var(--kh-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.kh-tp__row-title {
    margin: 0;
    color: inherit;
    font: inherit;
    font-size: clamp(24px, 2.35vw, 38px);
    font-weight: 300;
    line-height: 1.08;
    text-transform: none;
}

.kh-tp__row-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 10px 0 0;
    color: var(--kh-muted);
    font-size: 14px;
    line-height: 1.45;
}

.kh-tp__row-details span + span::before {
    content: "·";
    margin-right: 18px;
}

.kh-tp__row-more {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    white-space: nowrap;
    color: var(--kh-red);
    font-size: 14px;
    font-weight: 700;
}

.kh-tp__row-more span {
    font-size: 21px;
    font-weight: 400;
    transition: transform 160ms ease;
}

.kh-tp__row-link:hover .kh-tp__row-more span,
.kh-tp__row-link:focus-visible .kh-tp__row-more span {
    transform: translateX(4px);
}

.kh-tp__empty {
    margin: 0;
    padding: 24px 0;
    font-size: 18px;
    line-height: 1.5;
}

/* Single page */
.kh-tp-single {
    background: var(--kh-white);
    padding: clamp(42px, 6vw, 90px) 0 clamp(70px, 9vw, 130px);
}

.kh-tp-single__inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.kh-tp-single__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: clamp(40px, 5vw, 66px);
    position: relative;
    z-index: 20;
    pointer-events: auto;
    color: var(--kh-muted);
    font-size: 13px;
    line-height: 1.5;
}

.kh-tp-single__breadcrumb a,
.kh-tp-single__back a {
    color: var(--kh-red-dark);
    text-decoration: none;
}

.kh-tp-single__breadcrumb a {
    position: relative;
    z-index: 21;
    pointer-events: auto;
}

.kh-tp-single__breadcrumb a:hover,
.kh-tp-single__back a:hover {
    text-decoration: underline;
}

.kh-tp-single__header {
    max-width: 920px;
    margin-bottom: clamp(34px, 5vw, 62px);
}

.kh-tp-single__category {
    margin: 0 0 18px;
    color: var(--kh-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.kh-tp-single__title {
    margin: 0;
    color: var(--kh-red-dark);
    font: inherit;
    font-size: clamp(40px, 5.5vw, 74px);
    font-weight: 300;
    letter-spacing: -.025em;
    line-height: .99;
    text-transform: none;
}

.kh-tp-single__date {
    margin: 24px 0 0;
    color: var(--kh-text);
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 500;
    line-height: 1.35;
}

.kh-tp-single__hero {
    margin: 0 0 clamp(54px, 7vw, 94px);
    overflow: hidden;
    background: #f2f2f2;
    aspect-ratio: 16 / 7;
}

.kh-tp-single__hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kh-tp-single__body {
    display: grid;
    grid-template-columns: minmax(220px, .72fr) minmax(0, 1.8fr);
    gap: clamp(48px, 8vw, 120px);
    align-items: start;
}

.kh-tp-single__facts {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--kh-line);
}

.kh-tp-single__fact {
    display: grid;
    gap: 5px;
    padding: 18px 0;
    border-bottom: 1px solid var(--kh-line);
}

.kh-tp-single__fact span {
    color: var(--kh-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.kh-tp-single__fact strong {
    color: var(--kh-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
}

.kh-tp-single__content {
    max-width: 760px;
}

.kh-tp-single__description {
    color: var(--kh-text);
    font-size: clamp(17px, 1.7vw, 20px);
    line-height: 1.7;
}

.kh-tp-single__description > :first-child {
    margin-top: 0;
}

.kh-tp-single__description h2,
.kh-tp-single__description h3,
.kh-tp-single__description h4 {
    color: var(--kh-red-dark);
    font-weight: 400;
    line-height: 1.15;
}

.kh-tp-single__description a {
    color: var(--kh-red-dark);
}

.kh-tp-single__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 38px;
}

.kh-tp-single__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 22px;
    border: 1px solid var(--kh-red);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}

.kh-tp-single__button--primary {
    background: var(--kh-red);
    color: #fff;
}

.kh-tp-single__button--secondary {
    background: transparent;
    color: var(--kh-red-dark);
}

.kh-tp-single__button:hover,
.kh-tp-single__button:focus-visible {
    background: var(--kh-red-dark);
    border-color: var(--kh-red-dark);
    color: #fff;
    text-decoration: none;
}

.kh-tp-single__back {
    margin: clamp(70px, 9vw, 120px) 0 0;
    padding-top: 26px;
    border-top: 1px solid var(--kh-line);
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 820px) {
    .kh-tp__row-link {
        grid-template-columns: 1fr auto;
        gap: 14px 24px;
    }

    .kh-tp__row-meta {
        grid-column: 1 / -1;
        grid-template-columns: auto 1fr;
        align-items: baseline;
        gap: 10px 16px;
    }

    .kh-tp__row-main {
        grid-column: 1;
    }

    .kh-tp__row-more {
        grid-column: 2;
        align-self: end;
    }

    .kh-tp-single__body {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .kh-tp-single__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-top: 0;
        gap: 0 28px;
    }

    .kh-tp-single__fact {
        border-top: 1px solid var(--kh-line);
    }
}

@media (max-width: 560px) {
    .kh-tp {
        padding: 30px 18px;
    }

    .kh-tp__months {
        gap: 48px;
    }

    .kh-tp__row-link {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 0;
    }

    .kh-tp__row-meta,
    .kh-tp__row-main,
    .kh-tp__row-more {
        grid-column: 1;
    }

    .kh-tp__row-meta {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .kh-tp__row-more {
        justify-self: start;
    }

    .kh-tp__row-details span + span::before {
        content: none;
        margin: 0;
    }

    .kh-tp__row-details {
        display: grid;
        gap: 3px;
    }

    .kh-tp-single__inner {
        width: min(100% - 30px, 1180px);
    }

    .kh-tp-single__facts {
        grid-template-columns: 1fr;
    }

    .kh-tp-single__title {
        font-size: clamp(36px, 12vw, 54px);
    }

    .kh-tp-single__hero {
        aspect-ratio: 4 / 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kh-tp__row-link,
    .kh-tp__row-more span,
    .kh-tp-single__button {
        transition: none;
    }
}
