/*
 * Kod Sudby V2 brand + post typography (match Kod Sudby v1 .entry).
 * Loaded after theme/dynamic styles — use explicit px and !important where inherited rem/gray wins.
 */

:root {
    --kod_sudby-primary: #0e979b;
    --kod_sudby-secondary: #212632;
    --kod_sudby-gray: #9ba4b3;
    --kod_sudby-white: #ffffff;
    --ks-entry-text: #2a2a2a;
    --ks-entry-muted: #5c5c5c;
}

body {
    background: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.entry-title a,
.widget-title,
.site-title a,
.kod_sudby-nav > ul > li > a {
    color: #212632;
}

a,
.entry-meta a:hover,
.using-keyboard .entry-meta a:focus {
    color: #212632;
}

a:hover,
a:focus,
.entry-title a:hover,
.using-keyboard .entry-title a:focus {
    color: #0e979b;
}

.kod_sudby-btn,
body:not(.wp-customizer) input[type="submit"],
.wp-block-button__link,
#infinite-handle span {
    background-color: #212632;
    color: #ffffff;
}

.kod_sudby-btn:hover,
.kod_sudby-btn:focus,
body:not(.wp-customizer) input[type="submit"]:hover,
.wp-block-button__link:hover {
    background-color: #0e979b;
    color: #ffffff;
}

.post-category .cat-links a,
.single .post-tags a,
.page-numbers.current {
    background-color: #0e979b;
    color: #ffffff;
}

::selection {
    background: #0e979b;
    color: #ffffff;
}

/* Wide “steps” banner in header: keep it panoramic, never tower over content. */
.kod_sudby-header-widget__image .kod_sudby-widget-wrapper,
.kod_sudby-banner-imgads {
    width: 100%;
    min-height: 0 !important;
}

.kod_sudby-banner-imgads img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    max-height: 190px !important;
    margin: 0 auto;
    object-fit: contain;
}

/* ------------------------------------------------------------------------- *
 * Editable diagnostic / Portals of Luck ticker
/* ------------------------------------------------------------------------- */

.ks-link-ticker {
    position: relative;
    z-index: 4;
    padding: 8px 0;
    background: #ffffff;
}

.ks-link-ticker .ticker-slider-items {
    min-height: 64px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(14, 151, 155, 0.28);
    border-radius: 20px;
    background: linear-gradient(90deg, #edfafa 0%, #f7fbf9 55%, #fff8e8 100%);
    box-shadow: 0 10px 28px rgba(33, 38, 50, 0.10);
}

.ks-link-ticker .ticker-title {
    min-height: 62px;
    padding: 13px 22px;
    background: linear-gradient(135deg, #0e979b, #087a80);
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 0.04em;
}

.ks-link-ticker .ticker-title .icon {
    color: #0e979b;
}

.ks-link-ticker .ticker-slider-box {
    height: 62px;
    padding: 0;
    background: transparent;
}

.ks-link-ticker .ticker-slider-wrap,
.ks-link-ticker .js-marquee {
    height: 62px;
    display: flex;
    align-items: center;
}

.ks-link-ticker__item {
    height: 62px;
    margin-right: 54px;
    display: inline-flex;
    align-items: center;
}

.ks-link-ticker__item a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #212632 !important;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none !important;
    white-space: nowrap;
}

.ks-link-ticker__item a:hover,
.ks-link-ticker__item a:focus {
    color: #0e979b !important;
}

.ks-link-ticker__dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #c4a574;
    box-shadow: 0 0 0 5px rgba(196, 165, 116, 0.16);
}

.ks-link-ticker__arrow {
    color: #0e979b;
    font-size: 22px;
}

.ks-link-ticker .ticker-slider-controls,
.ks-link-ticker .ticker-slider-pause {
    height: 62px;
}

.ks-link-ticker .ticker-slider-pause {
    padding: 0 20px;
    background: #212632;
    color: #ffffff;
}

@media (max-width: 768px) {
    .ks-link-ticker {
        padding: 7px 0;
    }

    .ks-link-ticker > .kod_sudby-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .ks-link-ticker .ticker-slider-items,
    .ks-link-ticker .ticker-slider-box,
    .ks-link-ticker .ticker-slider-wrap,
    .ks-link-ticker .js-marquee,
    .ks-link-ticker__item {
        min-height: 52px;
        height: 52px;
    }

    .ks-link-ticker .ticker-title {
        display: flex !important;
        min-height: 52px;
        padding: 10px 14px;
        font-size: 13px;
    }

    .ks-link-ticker .ticker-title .icon {
        display: none;
    }

    .ks-link-ticker__item {
        margin-right: 36px;
    }

    .ks-link-ticker__item a {
        font-size: 15px;
    }
}

/* ------------------------------------------------------------------------- *
 *  Single / page entry — Kod Sudby v1 parity
/* ------------------------------------------------------------------------- */

.entry-content,
.entry-content.kod_sudby-entry,
.kod_sudby-entry,
.single .entry-content,
.single-post .entry-content,
.page .entry-content,
.kod_sudby-blog-entry-content .entry-content,
.kod_sudby-blog-entry-content .entry-summary,
.kod_sudby-article .entry-summary {
    color: var(--ks-entry-text) !important;
    font-size: 17px !important;
    line-height: 1.65 !important;
    text-align: left !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.entry-content p,
.entry-content li,
.entry-content td,
.entry-content th,
.entry-summary p,
.kod_sudby-entry p,
.single .entry-content p,
.single .entry-content li {
    color: var(--ks-entry-text) !important;
    font-size: 17px !important;
    line-height: 1.65 !important;
    text-align: left !important;
}

.entry-content p,
.single .entry-content p {
    margin-bottom: 1.5em !important;
}

.entry-content a,
.single .entry-content a {
    color: #212632 !important;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.entry-content a:hover,
.single .entry-content a:hover {
    color: #0e979b !important;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.single .entry-content h1,
.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4,
.single .entry-content h5,
.single .entry-content h6 {
    color: #212632 !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

.entry-content h2,
.single .entry-content h2 {
    font-size: 1.55em !important;
    margin: 1.4em 0 0.65em !important;
}

.entry-content h3,
.single .entry-content h3 {
    font-size: 1.3em !important;
    margin: 1.3em 0 0.55em !important;
}

.entry-content ul,
.entry-content ol,
.single .entry-content ul,
.single .entry-content ol {
    margin: 0 0 1.25em 0 !important;
    padding-left: 1.4em !important;
    color: var(--ks-entry-text) !important;
}

.entry-content li,
.single .entry-content li {
    margin-bottom: 0.4em !important;
}

.entry-content blockquote,
.single .entry-content blockquote {
    color: var(--ks-entry-text) !important;
    font-style: italic;
}

.kod_sudby-article .entry-title a {
    color: #212632 !important;
}

/* Meta stays softer, not body gray on paragraphs */
.entry-meta,
.single .entry-meta,
.entry-meta a {
    color: var(--ks-entry-muted) !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

/* ------------------------------------------------------------------------- *
 *  Images + tables (incl. table-as-PNG graphics)
/* ------------------------------------------------------------------------- */

.entry-content img,
.entry-content .wp-block-image img,
.entry-content figure img,
.single .entry-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
}

.entry-content .wp-block-image,
.entry-content figure,
.entry-content .wp-caption {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.entry-content table,
.entry-content .wp-block-table table,
.single .entry-content table {
    width: 100% !important;
    max-width: 100% !important;
    display: table;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 14px !important;
    line-height: 1.45 !important;
    color: var(--ks-entry-text) !important;
    margin: 0 0 1.5em !important;
    table-layout: fixed;
}

.entry-content table td,
.entry-content table th,
.entry-content .wp-block-table td,
.entry-content .wp-block-table th {
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 8px 10px !important;
    vertical-align: middle;
    color: var(--ks-entry-text) !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

.entry-content table th,
.entry-content .wp-block-table th {
    font-weight: 600;
    background: #f6f4ef;
}

/* Scroll wrapper for wide HTML tables on mobile */
.entry-content .wp-block-table,
.single .entry-content .wp-block-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ------------------------------------------------------------------------- *
 *  Mobile reading comfort — fix double gutters (container 5rem + #content 3rem)
/* ------------------------------------------------------------------------- */

@media (max-width: 960px) {
    /* Outer gutter only — theme default is padding: 0 5rem (~80px each side) */
    body.single #main > .kod_sudby-container,
    body.single-post #main > .kod_sudby-container,
    body.page #main > .kod_sudby-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Inner card padding — theme boxed-separated uses padding: 3rem (~48px) */
    body.kod_sudby-layout__boxed-separated.single #content.site-content,
    body.kod_sudby-layout__boxed-separated.single-post #content,
    body.kod_sudby-layout__boxed-separated.page #content.site-content {
        padding: 20px 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.single #primary,
    body.single-post #primary,
    body.page #primary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    body.single .entry-content,
    body.single-post .entry-content,
    body.page .entry-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    .entry-content,
    .single .entry-content,
    .page .entry-content {
        font-size: 16px !important;
        line-height: 1.7 !important;
    }

    .entry-content p,
    .entry-content li,
    .single .entry-content p,
    .single .entry-content li {
        font-size: 16px !important;
        line-height: 1.7 !important;
    }

    .entry-content table,
    .entry-content .wp-block-table table {
        font-size: 13px !important;
        table-layout: auto;
    }

    .entry-content table td,
    .entry-content table th {
        padding: 6px 8px !important;
        min-width: 110px;
    }

    .entry-content .wp-block-table table {
        width: max-content !important;
        min-width: 100% !important;
        max-width: none !important;
    }

    .entry-content > table {
        display: block;
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 560px) {
    body.single #main > .kod_sudby-container,
    body.single-post #main > .kod_sudby-container,
    body.page #main > .kod_sudby-container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    body.kod_sudby-layout__boxed-separated.single #content.site-content,
    body.kod_sudby-layout__boxed-separated.single-post #content,
    body.kod_sudby-layout__boxed-separated.page #content.site-content {
        padding: 16px 12px !important;
    }

    .entry-content,
    .single .entry-content,
    .single-post .entry-content,
    .page .entry-content,
    .entry-content p,
    .entry-content li {
        font-size: 16px !important;
        line-height: 1.68 !important;
    }
}

/* ------------------------------------------------------------------------- *
 * Compact mobile header: one useful row, without a tall empty logo area.
/* ------------------------------------------------------------------------- */

@media (max-width: 768px) {
    #kod_sudby-topbar {
        display: none !important;
    }

    #kod_sudby-header-inner .kod_sudby-logo-container > .kod_sudby-container {
        min-height: 74px !important;
        padding: 10px 16px !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    #kod_sudby-header-inner .kod_sudby-logo,
    #kod_sudby-header-inner .kod_sudby-logo > .logo-inner {
        min-height: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    #kod_sudby-header-inner .kod_sudby-logo a img {
        width: auto !important;
        height: auto !important;
        max-height: 54px !important;
    }

    #kod_sudby-header-inner .kod_sudby-mobile-nav,
    .kod_sudby-header-layout-3 #kod_sudby-header-inner .kod_sudby-mobile-nav,
    .kod_sudby-header-layout-4 #kod_sudby-header-inner .kod_sudby-mobile-nav {
        min-height: 0 !important;
        margin-left: auto !important;
        padding: 8px 0 8px 12px !important;
    }

    #kod_sudby-header-inner .kod_sudby-nav-container {
        min-height: 0 !important;
    }

    .kod_sudby-header-widget__image {
        display: none !important;
    }
}

/* ------------------------------------------------------------------------- *
 *  Homepage presentation 2.2.7: journey, side banners and polished ticker
 * ------------------------------------------------------------------------- */

/* The former flattened header artwork is replaced by editable journey cards. */
body.home .kod_sudby-header-widget__image,
body.home .kod_sudby-header-widgets-two,
body.home .kod_sudby-banner-imgads,
body.front-page .kod_sudby-header-widget__image,
body.front-page .kod_sudby-header-widgets-two,
body.front-page .kod_sudby-banner-imgads {
    display: none !important;
}

.ks-journey {
    position: relative;
    z-index: 6;
    margin-top: -8px;
    padding: 8px 0 9px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #fbf7ef 100%);
}

.ks-journey__heading {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
    color: #2b2824;
}

.ks-journey__heading > span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 700;
}

.ks-journey__heading small {
    color: #756b5e;
    font-size: 13px;
}

.ks-journey__track {
    position: relative;
    max-width: 1460px;
    margin: 0 auto;
    padding-top: 25px;
}

.ks-journey__line {
    position: absolute;
    z-index: 0;
    top: 10px;
    right: 4%;
    left: 4%;
    height: 4px;
    background-image: radial-gradient(circle, #b48b50 1.6px, transparent 1.8px);
    background-position: center;
    background-size: 13px 4px;
    background-repeat: repeat-x;
}

.ks-journey__walker {
    position: absolute;
    top: -25px;
    left: 0;
    width: 27px;
    height: 36px;
    color: #9b6d35;
    filter: drop-shadow(0 3px 3px rgba(80, 53, 20, .18));
    animation: ks-walk-path 28s linear infinite;
}

.ks-journey__walker svg {
    display: block;
    width: 100%;
    height: 100%;
}

@keyframes ks-walk-path {
    from { left: 0; transform: translateX(0) rotate(-2deg); }
    49% { transform: translateX(-50%) rotate(2deg); }
    to { left: 100%; transform: translateX(-100%) rotate(-2deg); }
}

.ks-journey__cards {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(var(--ks-step-count, 5), minmax(0, 1fr));
    gap: 12px;
}

.ks-journey__card {
    position: relative;
    min-height: 82px;
    padding: 24px 34px 13px 16px;
    overflow: visible;
    border: 1px solid rgba(196, 165, 116, .42);
    border-radius: 20px;
    background: linear-gradient(145deg, #fffdf7, #f3e7cf);
    box-shadow: 0 8px 22px rgba(90, 68, 37, .09);
    color: #2f2a23 !important;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ks-journey__card:hover,
.ks-journey__card:focus {
    transform: translateY(-3px);
    border-color: #ba9257;
    box-shadow: 0 12px 26px rgba(90, 68, 37, .15);
}

.ks-journey__number {
    position: absolute;
    top: -16px;
    left: 50%;
    display: grid;
    width: 32px;
    height: 32px;
    transform: translateX(-50%);
    place-items: center;
    border: 2px solid #f8edda;
    border-radius: 50%;
    background: #8d6938;
    box-shadow: 0 4px 10px rgba(66, 43, 17, .2);
    color: #fff8e9;
    font-size: 14px;
    font-weight: 800;
}

.ks-journey__label {
    display: block;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
}

.ks-journey__go {
    position: absolute;
    right: 13px;
    bottom: 11px;
    color: #9c743d;
    font-size: 20px;
}

.ks-home-presentation {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) minmax(220px, 270px);
    gap: 20px;
    align-items: start;
    box-sizing: border-box;
}

/* On the homepage the panorama remains the full-width focal point. */
body.home .ks-hero,
body.home .ks-stats {
    max-width: none;
}

/* Three-column presentation belongs only to an opened article. */
.ks-article-presentation {
    width: 100% !important;
    max-width: 1580px !important;
    padding-right: 22px !important;
    padding-left: 22px !important;
    display: grid !important;
    grid-template-columns: minmax(190px, 235px) minmax(0, 1fr) minmax(190px, 235px);
    gap: 22px;
    align-items: start;
    box-sizing: border-box;
}

.ks-article-presentation > #primary {
    width: auto !important;
    min-width: 0;
    max-width: none !important;
    float: none !important;
}

.ks-article-presentation > #primary .site-content {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ks-article-presentation > .ks-home-presentation__side {
    position: sticky;
    top: 24px;
}

.ks-home-presentation__main {
    min-width: 0;
}

.ks-home-presentation__side {
    display: grid;
    gap: 18px;
    padding-top: 24px;
}

.ks-home-widget,
.ks-home-post-card,
.ks-home-promo {
    overflow: hidden;
    border: 1px solid rgba(196, 165, 116, .25);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(33, 38, 50, .08);
}

.ks-home-widget img,
.ks-home-post-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.ks-home-widget {
    padding: 12px;
}

.ks-home-widget__title {
    margin: 4px 4px 10px;
    color: #2f2a23;
    font-size: 17px;
}

.ks-home-post-card__image {
    display: block;
    padding: 10px 10px 0;
}

.ks-home-post-card__image img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.ks-home-post-card__body {
    padding: 13px 15px 17px;
}

.ks-home-post-card__body > span,
.ks-home-promo small {
    color: #9c743d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ks-home-post-card h3 {
    margin: 5px 0 0;
    font-size: 17px;
    line-height: 1.3;
}

.ks-home-post-card h3 a {
    color: #252832;
    text-decoration: none;
}

.ks-home-promo {
    min-height: 190px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #27231d !important;
    text-decoration: none !important;
}

.ks-home-promo strong {
    margin: 7px 0 9px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: 1.05;
}

.ks-home-promo span {
    font-size: 13px;
    line-height: 1.35;
}

.ks-home-promo--gold {
    background: radial-gradient(circle at 80% 15%, rgba(255,255,255,.85), transparent 30%),
                linear-gradient(145deg, #f8edd8, #d9bd87);
}

.ks-home-promo--dark {
    border-color: rgba(231, 198, 117, .35);
    background: radial-gradient(circle at 75% 20%, rgba(196,165,116,.26), transparent 33%),
                linear-gradient(145deg, #172c29, #26312e);
    color: #fff7e7 !important;
}

.ks-home-promo--dark small {
    color: #e7c675;
}

/* Gold rounded ticker; all moving content is forced into one clean row. */
.ks-link-ticker {
    padding: 7px 0;
    background: #fff;
}

.ks-link-ticker .ticker-slider-items {
    min-height: 60px;
    border-color: rgba(196, 165, 116, .42);
    border-radius: 26px;
    background: linear-gradient(90deg, #fffaf0, #fffdf8);
    box-shadow: 0 8px 24px rgba(89, 67, 34, .11);
}

.ks-link-ticker .ticker-title {
    min-height: 48px;
    margin: 6px;
    padding: 10px 18px;
    border-radius: 19px;
    background: linear-gradient(135deg, #e7c675, #b88e51);
    color: #2f281e;
    box-shadow: inset 0 1px rgba(255,255,255,.65), 0 4px 12px rgba(94,66,30,.16);
    font-size: 14px;
}

.ks-link-ticker .ticker-title .icon {
    color: #785326;
    background: #fff8e8;
}

.ks-link-ticker .ticker-slider-box,
.ks-link-ticker .ticker-slider-wrap,
.ks-link-ticker .js-marquee-wrapper,
.ks-link-ticker .js-marquee,
.ks-link-ticker__item {
    min-height: 60px;
    height: 60px;
    white-space: nowrap !important;
}

.ks-link-ticker .ticker-slider-box,
.ks-link-ticker .ticker-slider-wrap,
.ks-link-ticker .js-marquee-wrapper,
.ks-link-ticker .js-marquee {
    overflow: hidden;
}

.ks-link-ticker .ticker-slider-wrap,
.ks-link-ticker .js-marquee-wrapper,
.ks-link-ticker .js-marquee {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
}

.ks-link-ticker__item {
    flex: 0 0 auto;
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    line-height: 1 !important;
}

.ks-link-ticker__item a {
    flex-wrap: nowrap !important;
    line-height: 1.15 !important;
}

.ks-link-ticker__item a:hover,
.ks-link-ticker__item a:focus,
.ks-link-ticker__arrow {
    color: #9c743d !important;
}

.ks-link-ticker .ticker-slider-controls {
    height: 60px;
    padding: 5px 6px 5px 0;
}

.ks-link-ticker .ticker-slider-pause {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    background: #2a2927;
}

@media (max-width: 1199px) {
    .ks-home-presentation {
        display: block;
        padding: 0;
    }

    .ks-home-presentation__side {
        display: none;
    }

    .ks-article-presentation {
        max-width: 1120px !important;
        padding-right: 14px !important;
        padding-left: 14px !important;
        display: block !important;
    }
}

@media (max-width: 768px) {
    .ks-journey {
        padding: 9px 0 7px;
    }

    .ks-journey > .kod_sudby-container {
        padding-right: 0 !important;
        padding-left: 12px !important;
    }

    .ks-journey__heading {
        justify-content: flex-start;
        margin: 0 12px 8px 2px;
    }

    .ks-journey__heading > span {
        font-size: 21px;
    }

    .ks-journey__heading small,
    .ks-journey__line {
        display: none;
    }

    .ks-journey__track {
        padding-top: 0;
    }

    .ks-journey__cards {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(168px, 72vw);
        gap: 9px;
        padding: 2px 12px 8px 0;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .ks-journey__cards::-webkit-scrollbar {
        display: none;
    }

    .ks-journey__card {
        min-height: 64px;
        padding: 17px 30px 11px 43px;
        border-radius: 17px;
        scroll-snap-align: start;
    }

    .ks-journey__number {
        top: 50%;
        left: 10px;
        width: 27px;
        height: 27px;
        transform: translateY(-50%);
        border-width: 1px;
    }

    .ks-journey__label {
        font-size: 14px;
        text-align: left;
    }

    .ks-link-ticker .ticker-title {
        min-height: 42px;
        margin: 5px;
        padding: 8px 12px;
        border-radius: 16px;
    }

    .ks-link-ticker .ticker-slider-items,
    .ks-link-ticker .ticker-slider-box,
    .ks-link-ticker .ticker-slider-wrap,
    .ks-link-ticker .js-marquee-wrapper,
    .ks-link-ticker .js-marquee,
    .ks-link-ticker__item {
        min-height: 52px;
        height: 52px;
    }

    .ks-link-ticker .ticker-slider-controls {
        height: 52px;
    }

    .ks-link-ticker .ticker-slider-pause {
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ks-journey__walker {
        animation: none;
    }
}

/* ------------------------------------------------------------------------- *
 *  Article recommendations and gold information bar — 2.2.9
 * ------------------------------------------------------------------------- */

#kod_sudby-topbar,
#kod_sudby-topbar > .kod_sudby-container {
    border: 0 !important;
    background: linear-gradient(135deg, #e9c978 0%, #c69b5a 100%) !important;
    color: #30271d !important;
}

#kod_sudby-topbar {
    box-shadow: inset 0 -1px rgba(102, 69, 28, .14), 0 5px 16px rgba(89, 62, 27, .10);
}

#kod_sudby-topbar,
#kod_sudby-topbar a,
#kod_sudby-topbar .kod_sudby-icon,
#kod_sudby-topbar .kod_sudby-topbar-widget {
    color: #30271d !important;
}

#kod_sudby-topbar a {
    font-weight: 700;
}

.ks-related {
    width: 100%;
    margin: 34px 0 18px;
    padding: 0 20px 22px;
    overflow: hidden;
    border: 1px solid rgba(39, 42, 51, .07);
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(31, 37, 48, .09);
    box-sizing: border-box;
}

.ks-related__header {
    position: relative;
    margin: 0 -20px 20px;
    padding: 20px 20px 17px;
    border-bottom: 1px solid rgba(39, 42, 51, .08);
}

.ks-related__header h2 {
    margin: 0;
    color: #232732;
    font-size: clamp(20px, 2vw, 27px);
    line-height: 1.2;
}

.ks-related__header span {
    position: absolute;
    bottom: -2px;
    left: 20px;
    width: 82px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #c49b5d 0 72%, #e9c978 72% 100%);
}

.ks-related__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ks-related-card {
    min-width: 0;
}

.ks-related-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #f2eadc;
    aspect-ratio: 1.35 / 1;
}

.ks-related-card__image img,
.ks-related-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.ks-related-card__placeholder {
    background: linear-gradient(145deg, #f7ecd8, #d8bb85);
}

.ks-related-card:hover .ks-related-card__image img {
    transform: scale(1.035);
}

.ks-related-card__category {
    position: absolute;
    right: 12px;
    bottom: 11px;
    left: 12px;
    width: max-content;
    max-width: calc(100% - 24px);
    padding: 6px 12px;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(135deg, #e9c978, #b88d50);
    box-shadow: 0 5px 14px rgba(59, 41, 19, .2);
    color: #2d251b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ks-related-card h3 {
    margin: 12px 4px 8px;
    font-size: 17px;
    line-height: 1.3;
    text-align: center;
}

.ks-related-card h3 a {
    color: #242832 !important;
    text-decoration: none !important;
}

.ks-related-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    color: #7b766e;
    font-size: 12px;
    line-height: 1.35;
}

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

@media (max-width: 620px) {
    .ks-related {
        margin-top: 25px;
        padding: 0 12px 14px;
        border-radius: 20px;
    }

    .ks-related__header {
        margin-right: -12px;
        margin-bottom: 14px;
        margin-left: -12px;
        padding: 16px 14px 14px;
    }

    .ks-related__header span {
        left: 14px;
    }

    .ks-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 10px;
    }

    .ks-related-card__image {
        border-radius: 14px;
    }

    .ks-related-card__category {
        right: 7px;
        bottom: 7px;
        left: 7px;
        max-width: calc(100% - 14px);
        padding: 5px 8px;
        font-size: 10px;
    }

    .ks-related-card h3 {
        margin: 8px 2px 5px;
        font-size: 14px;
    }

    .ks-related-card__meta {
        font-size: 10px;
    }
}
