/* ==========================================================================
   KK Crnokosa — site stylesheet
   Order: 1 fonts · 2 tokens · 3 foundations · 4 shell (rails, header, drawer, footer)
          5 primitives (pill, title, buttons, panel) · 6 home sections · 7 cards/collections
          8 inner routes · 9 league · 10 forms · 11 motion · 12 responsive
   ========================================================================== */

/* 1. Fonts (self-hosted, OFL; latin + latin-ext for č ć š ž đ) -------------- */

@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/oswald-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/oswald-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Tokens ------------------------------------------------------------- */

:root {
    --kkc-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    color-scheme: light;

    /* Brand (from the source Elementor kit) */
    --c-forest: #0b3a1e;
    --c-forest-2: #114a28;
    --c-green: #1b893e;
    --c-green-ink: #157233;
    --c-orange: #ec7a17;
    --c-orange-strong: #d96a0b;
    --c-orange-ink: #b85a08;
    /* Small orange text sitting directly on the parquet floor (#f2f0ea): ≥ 4.5:1 there. */
    --c-orange-text: #a04d06;
    /* Small orange text on the dark green (#0b3a1e): a lighter tint so labels reach 4.5:1. */
    --c-orange-on-dark: #f28b2c;

    /* Neutrals */
    --c-ink: #0f0f0d;
    --c-ink-2: #2a332d;
    --c-paper: #f7f9f6;
    --c-on-dark: #f7f9f6;
    --c-on-dark-muted: #cfd4cc;
    --c-line: rgba(15, 15, 13, 0.14);
    --c-line-dark: rgba(247, 249, 246, 0.16);

    /* Surfaces */
    --c-surface: #ffffff;
    --c-mint: #eef5f0;
    --c-muted: #56635a;
    --c-line-soft: rgba(15, 15, 13, 0.1);
    --bg-wash: var(--c-surface);
    /* Page floor: dirty off-white with a faint parquet (self-made tile, assets/img/bg-parquet.webp). */
    --c-floor: #f2f0ea;
    --bg-floor: url("../img/bg-parquet.webp?v=2");
    --bg-floor-size: 1024px auto;
    --bg-floor-dark: url("../img/bg-parquet-dark.webp?v=1");

    /* Type */
    --f-display: "Oswald", "Arial Narrow", sans-serif;
    --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --fs-hero: clamp(2.6rem, 1.6rem + 4.2vw, 4.5rem);
    --fs-h1: clamp(2.1rem, 1.5rem + 2.4vw, 3.25rem);
    --fs-h2: clamp(1.85rem, 1.35rem + 1.9vw, 2.75rem);
    --fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.6rem);
    --fs-lead: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
    --fs-body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
    --fs-small: 0.875rem;
    --fs-micro: 0.75rem;

    /* Rails */
    --rail-shell: 1160px;
    --rail-wide: 1240px;
    --rail-prose: 760px;
    --gutter: clamp(16px, 4vw, 32px);

    /* Vertical rhythm */
    --space-tight: clamp(32px, 5vw, 48px);
    --space-section: clamp(64px, 9vw, 112px);
    --space-stage: clamp(88px, 12vw, 144px);

    /* Shape & depth */
    --r-card: 14px;
    --r-media: 10px;
    --r-btn: 4px;
    --shadow-card: 0 12px 32px -12px rgba(11, 58, 30, 0.35);
    --shadow-soft: 0 6px 18px -8px rgba(11, 58, 30, 0.28);

    /* Motion */
    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast: 160ms;
    --dur-base: 260ms;
    --dur-enter: 560ms;

    /* Layers */
    --z-header: 50;
    --z-drawer: 80;

    --header-h: 82px;
}

/* 3. Foundations --------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--f-body);
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--c-ink);
    /* Dirty off-white parquet floor (scrolls with the page; the colour alone is the fallback). */
    background: var(--c-floor) var(--bg-floor) repeat 0 0 / var(--bg-floor-size);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--f-display);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

p + p {
    margin-top: 1em;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

button {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--c-orange);
    outline-offset: 3px;
    border-radius: 2px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.kkc-skip {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--c-forest);
    color: var(--c-on-dark);
    font-weight: 600;
    transform: translateY(-150%);
}

.kkc-skip:focus {
    transform: none;
}

.kkc-icon {
    width: 1em;
    height: 1em;
    flex: none;
}

/* 4. Shell --------------------------------------------------------------- */

.kkc-shell,
.kkc-wide,
.kkc-prose {
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.kkc-shell {
    max-width: calc(var(--rail-shell) + 2 * var(--gutter));
}

.kkc-wide {
    max-width: calc(var(--rail-wide) + 2 * var(--gutter));
}

.kkc-prose {
    max-width: calc(var(--rail-prose) + 2 * var(--gutter));
}

.kkc-main {
    display: block;
}

/* 5. Primitives ---------------------------------------------------------- */

.kkc-pill {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-family: var(--f-body);
    font-size: var(--fs-micro);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--c-green-ink);
}

.kkc-pill--orange {
    background: var(--c-orange-ink);
}

.kkc-title {
    font-size: var(--fs-h2);
    color: var(--c-ink);
}

.kkc-accent {
    color: var(--c-green);
}

.kkc-accent-orange {
    color: var(--c-orange);
}

.kkc-heading {
    display: grid;
    justify-items: start;
    gap: 14px;
}

.kkc-section-head {
    margin-bottom: clamp(28px, 4vw, 44px);
}

.kkc-section-head--center {
    display: grid;
    justify-items: center;
    text-align: center;
}

.kkc-section-head--center .kkc-heading {
    justify-items: center;
}

.kkc-section-head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.kkc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.kkc-actions:empty {
    display: none;
}

.kkc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 26px;
    border: 2px solid transparent;
    border-radius: var(--r-btn);
    font-family: var(--f-display);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out),
        color var(--dur-fast) var(--ease-out),
        transform var(--dur-fast) var(--ease-out),
        box-shadow var(--dur-fast) var(--ease-out);
}

.kkc-btn:hover {
    transform: translateY(-1px);
}

.kkc-btn:active {
    transform: translateY(0) scale(0.98);
}

.kkc-btn--primary {
    /* #b85a08 + white = 5.0:1 (WCAG AA); the brighter brand orange stays for accents. */
    background: var(--c-orange-ink);
    color: #fff;
    box-shadow: 0 10px 22px -12px rgba(150, 70, 4, 0.8);
}

.kkc-btn--primary:hover {
    background: #9c4c06;
}

.kkc-btn--outline {
    border-color: var(--c-forest);
    color: var(--c-forest);
    background: transparent;
}

.kkc-btn--outline:hover {
    background: var(--c-forest);
    color: #fff;
}

.kkc-btn--dark {
    background: var(--c-forest);
    color: #fff;
}

.kkc-btn--dark:hover {
    background: #062612;
}

.kkc-btn--block {
    width: 100%;
}

.kkc-btn--outline-light {
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.kkc-btn--outline-light:hover {
    background: #fff;
    color: var(--c-forest);
}

.kkc-btn--ghost-light {
    border-color: var(--c-line-dark);
    color: var(--c-on-dark);
    background: transparent;
}

.kkc-btn--ghost-light:hover {
    border-color: var(--c-on-dark);
}

.kkc-btn__icon {
    font-size: 0.95em;
}

.kkc-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-card);
    background: var(--c-forest);
    color: var(--c-on-dark);
    box-shadow: var(--shadow-card);
}

.kkc-section {
    padding-block: var(--space-section) 0;
}

.kkc-section--tight {
    padding-top: var(--space-tight);
}

/* 6. Shared page blocks (O nama) -------------------------------------- */

/* Split section: copy + photo mosaic */

.kkc-split__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(32px, 6vw, 72px);
}

.kkc-split__text {
    margin-top: 22px;
    max-width: 60ch;
}

.kkc-counter-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: clamp(18px, 3vw, 32px);
    margin-top: 28px;
}

.kkc-counter__value {
    font-family: var(--f-display);
    font-size: clamp(3.4rem, 2.6rem + 3vw, 4.8rem);
    font-weight: 700;
    line-height: 0.95;
    color: var(--c-green);
    font-variant-numeric: tabular-nums;
}

.kkc-counter__label {
    margin-top: 8px;
    max-width: 10ch;
    font-family: var(--f-display);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.15;
    text-transform: uppercase;
}

.kkc-mosaic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.kkc-mosaic__item {
    margin: 0;
    overflow: hidden;
    border-radius: var(--r-card);
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4 / 3;
    background: var(--c-forest);
}

.kkc-mosaic__item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 7;
}

.kkc-mosaic__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease-out);
}

.kkc-mosaic__item:hover img {
    transform: scale(1.04);
}

.kkc-mosaic--4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Feature panel: photo + copy (Naša ekipa, O klubu) */

.kkc-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(14px, 1.6vw, 18px);
}

.kkc-feature__media {
    margin: 0;
    overflow: hidden;
    border-radius: var(--r-media);
    aspect-ratio: 3 / 2;
}

.kkc-feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kkc-feature__copy {
    display: grid;
    justify-items: end;
    gap: 18px;
    padding: clamp(12px, 3vw, 32px);
    text-align: right;
}

.kkc-feature__copy .kkc-actions {
    margin-top: 6px;
}

.kkc-feature__title {
    color: var(--c-on-dark);
}

.kkc-feature__title > span {
    display: block;
}

.kkc-feature__copy p:not(.kkc-pill) {
    max-width: 46ch;
    color: var(--c-on-dark);
}

/* 7. Cards & collections ------------------------------------------------- */

.kkc-grid {
    display: grid;
    gap: 18px;
}

.kkc-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kkc-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Equal-height news cards; the button is pinned to the bottom edge. */
.kkc-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 8px;
    border-radius: var(--r-card);
    background: var(--c-forest);
    color: var(--c-on-dark);
    box-shadow: var(--shadow-card);
    transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.kkc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -16px rgba(11, 58, 30, 0.5);
}

.kkc-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: var(--r-media);
    background: var(--c-forest-2);
}

.kkc-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease-out);
}

.kkc-card:hover .kkc-card__media img {
    transform: scale(1.04);
}

.kkc-card__placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    color: rgba(247, 249, 246, 0.25);
    font-size: 3rem;
}

.kkc-card__cat {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--c-orange-ink);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kkc-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 12px 6px 4px;
}

.kkc-card__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-micro);
    color: var(--c-on-dark-muted);
}

.kkc-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--c-orange);
}

.kkc-card__title a {
    text-decoration: none;
}

.kkc-card__title a:hover {
    text-decoration: underline;
}

.kkc-card__excerpt {
    font-size: var(--fs-small);
    color: var(--c-on-dark-muted);
}

.kkc-card__more {
    display: block;
    margin-top: auto;
    padding: 9px 12px;
    border: 1.5px solid rgba(247, 249, 246, 0.85);
    border-radius: var(--r-btn);
    font-family: var(--f-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.kkc-card__more:hover {
    background: var(--c-paper);
    color: var(--c-forest);
}

/* 8. Inner routes -------------------------------------------------------- */

.kkc-banner {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: clamp(200px, 26vw, 340px);
    overflow: hidden;
    background: var(--c-forest);
    color: #fff;
    text-align: center;
}

.kkc-banner__img {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kkc-banner--overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(6, 22, 12, 0.6);
}

.kkc-banner__inner {
    display: grid;
    gap: 10px;
    padding-block: 48px;
}

.kkc-banner__title {
    font-size: var(--fs-h1);
    color: var(--c-orange);
}

.kkc-breadcrumb ol {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: var(--fs-small);
}

.kkc-breadcrumb a {
    text-decoration: none;
}

.kkc-breadcrumb a:hover {
    text-decoration: underline;
}

.kkc-breadcrumb .kkc-icon {
    color: var(--c-orange);
}

.kkc-page-head {
    padding-top: clamp(48px, 7vw, 88px);
}

.kkc-page-head .kkc-title {
    font-size: var(--fs-h1);
}

.kkc-page-title {
    font-size: var(--fs-h1);
}

.kkc-heading--center {
    justify-items: center;
    text-align: center;
}

.kkc-title--light {
    color: #fff;
}

.kkc-title--light .kkc-accent {
    color: var(--c-orange);
}

.kkc-actions--center {
    justify-content: center;
}

.kkc-empty {
    padding: 32px 0;
    text-align: center;
    color: var(--c-ink-2);
}

/* Rich text (post bodies, O klubu, Seniorski tim) */

.kkc-rich > * + * {
    margin-top: 1em;
}

.kkc-rich h2,
.kkc-rich h3 {
    margin-top: 1.6em;
    font-size: var(--fs-h3);
}

.kkc-rich a {
    color: var(--c-green-ink);
}

.kkc-panel .kkc-rich a {
    color: var(--c-orange);
}

.kkc-rich img {
    border-radius: var(--r-media);
}

.kkc-rich ul,
.kkc-rich ol {
    padding-left: 1.3em;
}

/* About: school, stats, training info, groups */

.kkc-school {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--r-card);
    background: var(--c-forest);
    color: #fff;
    box-shadow: var(--shadow-card);
}

.kkc-school__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.kkc-school__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kkc-school__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 22, 12, 0.72), rgba(6, 22, 12, 0.86));
}

.kkc-school__inner {
    display: grid;
    gap: clamp(24px, 4vw, 40px);
    padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px);
}

.kkc-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    text-align: center;
}

.kkc-stats__item {
    display: grid;
    gap: 6px;
}

.kkc-stats__value {
    font-family: var(--f-display);
    font-size: clamp(2.6rem, 2rem + 2.6vw, 4rem);
    font-weight: 700;
    line-height: 1;
    color: var(--c-orange);
    font-variant-numeric: tabular-nums;
}

.kkc-stats__label {
    font-family: var(--f-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.kkc-training {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
}

.kkc-training__note {
    max-width: 62ch;
    color: var(--c-on-dark-muted);
}

.kkc-training__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    list-style: none;
    font-weight: 600;
}

.kkc-training__list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.kkc-training__list .kkc-icon {
    color: var(--c-orange);
}

.kkc-groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
    list-style: none;
}

.kkc-groups__card {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 260px;
    overflow: hidden;
    border-radius: var(--r-card);
    background: var(--c-forest);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.kkc-groups__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kkc-groups__card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(6, 22, 12, 0.94) 0%, rgba(6, 22, 12, 0.72) 55%, rgba(6, 22, 12, 0.35) 100%);
}

.kkc-groups__text {
    display: grid;
    gap: 8px;
    padding: 18px;
    font-size: var(--fs-small);
    line-height: 1.5;
}

.kkc-groups__title {
    font-size: 1.15rem;
    color: var(--c-orange);
}

/* About: story panel (O klubu) and senior team */

.kkc-story {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(24px, 4vw, 48px);
}

.kkc-story__mark {
    position: absolute;
    top: 50%;
    left: 30%;
    z-index: 0;
    width: min(420px, 60%);
    opacity: 0.06;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.kkc-story__copy,
.kkc-story__media {
    position: relative;
    z-index: 1;
}

.kkc-story__title,
.kkc-senior__title {
    margin-bottom: 18px;
    color: var(--c-orange);
}

.kkc-story__media {
    margin: 0;
    overflow: hidden;
    border-radius: var(--r-media);
    aspect-ratio: 4 / 5;
}

.kkc-story__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kkc-senior {
    display: grid;
    justify-items: center;
    gap: 22px;
    padding: clamp(28px, 4vw, 52px);
}

.kkc-senior > * {
    position: relative;
    z-index: 1;
}

.kkc-senior .kkc-story__mark {
    position: absolute;
    left: 50%;
    z-index: 0;
}

.kkc-senior__title {
    margin-bottom: 0;
}

.kkc-senior__media {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: var(--r-media);
    aspect-ratio: 16 / 8;
}

.kkc-senior__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kkc-senior__text {
    max-width: 78ch;
}

.kkc-checks {
    display: grid;
    gap: 8px;
    justify-self: stretch;
    max-width: 78ch;
    margin-inline: auto;
    width: 100%;
    list-style: none;
}

.kkc-checks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.kkc-checks .kkc-icon {
    margin-top: 0.25em;
    color: var(--c-orange);
}

/* Team: the group photo uses the shared slanted frame (§14, .kkc-photo-band__frame). */

/* Contact */

.kkc-contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px clamp(48px, 10vw, 160px);
    list-style: none;
    text-align: center;
}

.kkc-contact-info__item {
    display: grid;
    justify-items: center;
    gap: 6px;
}

.kkc-contact-info__icon {
    margin-bottom: 4px;
    font-size: 2.4rem;
    color: var(--c-orange-strong);
}

.kkc-contact-info__label {
    font-size: 1.15rem;
}

.kkc-contact-info a {
    text-decoration: none;
}

.kkc-contact-info a:hover {
    text-decoration: underline;
}

.kkc-contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border-radius: var(--r-card);
    background: rgba(247, 249, 246, 0.55);
    box-shadow: var(--shadow-card);
}

.kkc-map {
    position: relative;
    min-height: 420px;
}

.kkc-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.kkc-map__placeholder {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 12px;
    height: 100%;
    padding: 32px;
    text-align: center;
}

.kkc-map__pin {
    font-size: 2.6rem;
    color: var(--c-green);
}

.kkc-map__place {
    font-family: var(--f-display);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
}

.kkc-map__note {
    font-size: var(--fs-micro);
    color: var(--c-ink-2);
}

.kkc-btn--outline-dark {
    border-color: var(--c-forest);
    color: var(--c-forest);
    background: transparent;
}

.kkc-btn--outline-dark:hover {
    background: var(--c-forest);
    color: #fff;
}

.kkc-btn--block {
    width: 100%;
}

.kkc-form-panel {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: clamp(24px, 4vw, 40px);
    border-radius: 0;
    box-shadow: none;
}

.kkc-form-panel__title {
    font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
    color: #fff;
}

.kkc-contact-form {
    display: grid;
    gap: 12px;
}

.kkc-form-alert {
    padding: 12px 14px;
    border-radius: 6px;
    background: rgba(229, 72, 77, 0.16);
    border: 1px solid rgba(229, 72, 77, 0.55);
    color: #ffd2d0;
    font-size: var(--fs-small);
}

.kkc-form-thanks {
    display: grid;
    gap: 8px;
}

.kkc-form-thanks:focus {
    outline: none;
}

.kkc-form-page__inner {
    max-width: calc(560px + 2 * var(--gutter));
}

.kkc-form-panel.kkc-panel {
    border-radius: var(--r-card);
}

.kkc-form-page__back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--c-on-dark-muted);
}

/* News tabs */

.kkc-tabs__list {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.kkc-tabs.is-enhanced .kkc-tabs__list {
    display: flex;
}

.kkc-tabs__tab {
    padding: 8px 18px;
    border: 0;
    border-radius: 4px;
    background: var(--c-green-ink);
    color: #fff;
    font-family: var(--f-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-out);
}

.kkc-tabs__tab[aria-selected="true"] {
    background: var(--c-orange-ink);
}

.kkc-tabs__heading {
    margin-bottom: 18px;
    font-size: var(--fs-h3);
}

.kkc-tabs.is-enhanced .kkc-tabs__heading {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.kkc-tabs__panel + .kkc-tabs__panel {
    margin-top: 48px;
}

.kkc-tabs.is-enhanced .kkc-tabs__panel + .kkc-tabs__panel {
    margin-top: 0;
}

.kkc-tabs__panel:focus-visible {
    outline-offset: 8px;
}

/* Single post */

.kkc-article__head {
    padding-top: clamp(32px, 5vw, 56px);
}

.kkc-article__lead {
    margin: 0 0 24px;
    overflow: hidden;
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
}

.kkc-article__lead img {
    width: 100%;
}

.kkc-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-bottom: 14px;
    font-size: var(--fs-small);
    color: var(--c-ink-2);
}

.kkc-article__meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.kkc-article__meta .kkc-icon {
    color: var(--c-orange-strong);
}

.kkc-article__cats a {
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--c-orange-ink);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.kkc-article__title {
    font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem);
    line-height: 1.15;
    text-transform: none;
    color: var(--c-orange-ink);
}

.kkc-article__match {
    margin-top: 28px;
}

.kkc-article__body {
    margin-top: 28px;
    font-size: 1.0625rem;
}

.kkc-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 32px;
    list-style: none;
}

.kkc-gallery__link {
    display: block;
    overflow: hidden;
    border-radius: var(--r-media);
    aspect-ratio: 4 / 3;
}

.kkc-gallery__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms var(--ease-out);
}

.kkc-gallery__link:hover img {
    transform: scale(1.04);
}

.kkc-gallery__caption {
    display: block;
    margin-top: 6px;
    font-size: var(--fs-micro);
    color: var(--c-ink-2);
}

.kkc-lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-drawer);
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(6, 22, 12, 0.92);
}

.kkc-lightbox[hidden] {
    display: none;
}

.kkc-lightbox img {
    max-width: min(1200px, 100%);
    max-height: 86vh;
    width: auto;
    border-radius: var(--r-media);
}

.kkc-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--c-line-dark);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.kkc-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--c-line);
}

.kkc-share__label {
    margin-right: 6px;
    font-family: var(--f-display);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.kkc-share a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--c-orange-text);
    font-size: 1.15rem;
    transition: background-color var(--dur-fast) var(--ease-out);
}

.kkc-share a:hover {
    background: rgba(236, 122, 23, 0.14);
}

/* Archives: search (pagination lives in the Novosti block below). */

.kkc-search-form {
    width: min(480px, 100%);
    margin-top: 20px;
}

/* System routes: 404, single match */

.kkc-system,
.kkc-match {
    display: grid;
    justify-items: center;
    gap: 16px;
    max-width: 760px;
    margin-inline: auto;
    padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px);
    text-align: center;
}

.kkc-system__code {
    font-family: var(--f-display);
    font-size: clamp(4rem, 3rem + 5vw, 7rem);
    font-weight: 700;
    line-height: 1;
    color: var(--c-orange);
}

.kkc-system__title,
.kkc-match__title {
    font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
    color: #fff;
}

.kkc-system__text {
    max-width: 52ch;
    color: var(--c-on-dark-muted);
}

.kkc-match__board {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(16px, 4vw, 48px);
    width: 100%;
    margin-top: 8px;
}

.kkc-match__team {
    display: grid;
    justify-items: center;
    gap: 10px;
}

.kkc-match__crest {
    width: clamp(72px, 10vw, 110px);
    height: clamp(72px, 10vw, 110px);
    object-fit: contain;
}

.kkc-match__name {
    font-family: var(--f-display);
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
}

.kkc-match__score,
.kkc-match__time {
    font-family: var(--f-display);
    font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem);
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.kkc-match__time {
    color: var(--c-orange);
}

.kkc-match__date {
    margin-top: 8px;
    font-size: var(--fs-small);
    color: var(--c-on-dark-muted);
}

.kkc-match__venue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c-on-dark-muted);
}

.kkc-match__venue .kkc-icon {
    color: var(--c-orange);
}

/* 9. League -------------------------------------------------------------- */

.kkc-league {
    display: grid;
    gap: 22px;
    padding-top: var(--space-tight);
}

.kkc-league-block__round {
    margin-left: 10px;
    font-size: 0.6em;
    letter-spacing: 0.08em;
    color: var(--c-on-dark-muted);
}

.kkc-league-block {
    padding: clamp(22px, 3.5vw, 40px);
}

.kkc-league-block__title {
    margin-bottom: 18px;
    font-size: var(--fs-h3);
    color: var(--c-orange);
}

.kkc-league-note {
    margin-top: 14px;
    font-size: var(--fs-micro);
    color: var(--c-on-dark-muted);
}

.kkc-table-wrap {
    overflow-x: auto;
}

.kkc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-small);
    font-variant-numeric: tabular-nums;
}

.kkc-table th,
.kkc-table td {
    padding: 11px 8px;
    border-bottom: 1px solid var(--c-line-dark);
    text-align: center;
    white-space: nowrap;
}

.kkc-table thead th {
    font-family: var(--f-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-on-dark-muted);
}

.kkc-table abbr {
    text-decoration: none;
}

.kkc-table .kkc-table__team {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    font-family: var(--f-body);
    font-weight: 600;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
}

.kkc-table thead .kkc-table__team {
    font-family: var(--f-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kkc-table__pos {
    width: 40px;
    color: var(--c-on-dark-muted);
}

.kkc-table__pts {
    font-weight: 700;
    color: var(--c-on-dark);
}

.kkc-table tbody tr {
    transition: background-color var(--dur-fast) var(--ease-out);
}

.kkc-table tbody tr:hover {
    background: rgba(247, 249, 246, 0.04);
}

.kkc-table tr.is-ours {
    background: rgba(236, 122, 23, 0.14);
    box-shadow: inset 4px 0 0 var(--c-orange);
}

.kkc-table tr.is-ours .kkc-table__team,
.kkc-table tr.is-ours .kkc-table__pts {
    color: #ffb071;
}

.kkc-league__crest {
    width: 28px;
    height: 28px;
    flex: none;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(247, 249, 246, 0.06);
}

.kkc-fixtures {
    display: grid;
    gap: 10px;
    list-style: none;
}

.kkc-fixture {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid var(--c-line-dark);
    border-radius: 10px;
    background: rgba(247, 249, 246, 0.03);
}

.kkc-fixture.is-ours {
    border-color: rgba(236, 122, 23, 0.55);
    background: rgba(236, 122, 23, 0.08);
}

.kkc-fixture__when {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-on-dark-muted);
}

.kkc-fixture__flag {
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(236, 122, 23, 0.2);
    color: #ffb071;
}

.kkc-fixture__teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.kkc-fixture__team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-weight: 600;
}

.kkc-fixture__team--home {
    justify-content: flex-end;
    text-align: right;
}

.kkc-fixture__name {
    overflow-wrap: anywhere;
}

.kkc-fixture__score {
    display: flex;
    gap: 6px;
    min-width: 72px;
    justify-content: center;
    font-family: var(--f-display);
    font-size: 1.2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.kkc-fixture__vs {
    color: var(--c-on-dark-muted);
}

.kkc-fixture__venue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: var(--fs-micro);
    color: var(--c-on-dark-muted);
}

.kkc-fixture__venue .kkc-icon {
    color: var(--c-orange);
}

/* 10. Forms -------------------------------------------------------------- */

.kkc-field {
    display: grid;
    gap: 6px;
}

.kkc-input,
.kkc-select,
.kkc-textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1.5px solid transparent;
    border-radius: 6px;
    background: #fff;
    color: var(--c-ink);
    font: inherit;
    font-size: 1rem;
    transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.kkc-textarea {
    min-height: 120px;
    resize: vertical;
}

.kkc-input::placeholder,
.kkc-textarea::placeholder {
    color: #6b746d;
}

.kkc-input:focus,
.kkc-select:focus,
.kkc-textarea:focus {
    outline: none;
    border-color: var(--c-orange);
    box-shadow: 0 0 0 3px rgba(236, 122, 23, 0.3);
}

.kkc-input[aria-invalid="true"],
.kkc-select[aria-invalid="true"],
.kkc-textarea[aria-invalid="true"] {
    border-color: #e5484d;
}

.kkc-field__error {
    font-size: var(--fs-micro);
    color: #ffb4b0;
}

.kkc-inline-form {
    display: flex;
}

.kkc-inline-form .kkc-input {
    border-radius: 6px 0 0 6px;
}

.kkc-inline-form .kkc-btn {
    min-height: 46px;
    padding-inline: 20px;
    border-radius: 0 6px 6px 0;
}

.kkc-form-status {
    margin-top: 12px;
    font-size: var(--fs-small);
}

.kkc-form-status[hidden] {
    display: none;
}

.kkc-form-thanks h3 {
    font-size: 1.4rem;
}

.kkc-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* 11. Motion ------------------------------------------------------------- */
/* Initial states exist only when JS is running and the reader allows motion (html.js-motion). */

@keyframes kkc-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Section headings: mask reveal from below when they enter the viewport (set up by site.js). */
.js-motion [data-reveal].is-pending > * {
    clip-path: inset(0 0 100% 0);
    transform: translateY(12px);
}

.js-motion [data-reveal].is-in > * {
    clip-path: inset(0 0 0 0);
    transform: none;
    transition:
        clip-path 700ms var(--ease-out),
        transform 700ms var(--ease-out);
}

.js-motion [data-reveal].is-in > *:nth-child(2) {
    transition-delay: 90ms;
}

.js-motion [data-reveal].is-in > *:nth-child(3) {
    transition-delay: 180ms;
}

.js-motion [data-reveal].is-in > *:nth-child(n + 4) {
    transition-delay: 240ms;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}

/* 12. Responsive (inner routes) ----------------------------------------- */

@media (max-width: 1100px) {
    .kkc-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .kkc-story,
    .kkc-contact-card { grid-template-columns: minmax(0, 1fr); }
    .kkc-story__media { aspect-ratio: 4 / 3; }
    .kkc-map { min-height: 260px; }
    .kkc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
}

@media (max-width: 979px) {
    :root { --header-h: 64px; }
    .kkc-split__grid,
    .kkc-feature { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    .kkc-counter-row { grid-template-columns: minmax(0, 1fr); }
    .kkc-fixture__teams {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "home score" "away score";
        gap: 8px 12px;
        font-size: var(--fs-small);
    }
    .kkc-fixture__team--home { grid-area: home; flex-direction: row-reverse; justify-content: flex-end; text-align: left; }
    .kkc-fixture__team--away { grid-area: away; }
    .kkc-fixture__score { grid-area: score; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 40px; line-height: 1.15; }
    .kkc-fixture__score [aria-hidden="true"] { display: none; }
    .kkc-fixture__venue { justify-content: flex-start; }
    .kkc-league__crest { width: 24px; height: 24px; }
    .kkc-table .kkc-table__diff { display: none; }
    .kkc-table th,
    .kkc-table td { padding-inline: 5px; }
    .kkc-groups { grid-template-columns: minmax(0, 1fr); }
    .kkc-groups__card { min-height: 220px; }
    .kkc-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kkc-senior__media { aspect-ratio: 4 / 3; }
    .kkc-match__board { grid-template-columns: 1fr 1fr; }
    .kkc-match__center { grid-column: 1 / -1; grid-row: 1; }
}


/* ==========================================================================
   13. Club redesign layer (2026-10) — white ground, green matchday strip, court-line footer.
   Order: browser surfaces · header · strip · drawer · section heads · hero · next card · results
          · band (table + fixtures) · paths · poster + sign-up form · news · sponsors · footer
          · school page · roster · motion · responsive
   ========================================================================== */

/* Browser surfaces ------------------------------------------------------- */

::selection {
    background: var(--c-orange);
    color: #fff;
}

html {
    accent-color: var(--c-orange-ink);
    caret-color: var(--c-orange-ink);
    scrollbar-color: var(--c-forest) var(--c-mint);
}

a {
    text-underline-offset: 0.2em;
}

/* Header ----------------------------------------------------------------- */

.kkc-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: rgba(244, 242, 236, 0.98);
    border-bottom: 1px solid var(--c-line-soft);
    transition: box-shadow var(--dur-base) var(--ease-out);
}

/* No backdrop-filter on the header: it would become the containing block of the fixed drawer
   and squeeze the mobile menu into the header's height. */

.kkc-header.is-scrolled {
    box-shadow: 0 10px 30px -18px rgba(11, 58, 30, 0.45);
}

.kkc-header__inner {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
    min-height: var(--header-h);
}

.kkc-brand {
    display: block;
    flex: none;
}

.kkc-brand__logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform var(--dur-base) var(--ease-out);
}

.kkc-brand:hover .kkc-brand__logo {
    transform: rotate(-6deg) scale(1.04);
}

.kkc-brand__name {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    color: var(--c-forest);
}

.kkc-nav__list {
    display: flex;
    gap: clamp(14px, 2vw, 28px);
    list-style: none;
}

.kkc-nav__list a {
    position: relative;
    display: block;
    padding: 10px 0;
    font-family: var(--f-display);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--c-forest);
}

.kkc-nav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 2px;
    background: var(--c-orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--dur-base) var(--ease-out);
}

.kkc-nav__list a:hover::after,
.kkc-nav__list a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

.kkc-header__cta {
    margin-left: auto;
    min-height: 44px;
    padding: 10px 20px;
}

.kkc-menu-toggle {
    display: none;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--c-forest);
    font-size: 28px;
    cursor: pointer;
}

.kkc-menu-toggle:hover {
    background: var(--c-mint);
}

/* Matchday strip ---------------------------------------------------------- */

.kkc-strip {
    background: var(--c-forest);
    color: var(--c-on-dark);
}

.kkc-strip__inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.kkc-strip__inner::-webkit-scrollbar {
    display: none;
}

.kkc-strip__item {
    display: flex;
    flex: none;
    align-items: center;
    gap: 10px;
    padding: 10px 22px 10px 0;
    margin-right: 22px;
    border-right: 1px solid rgba(247, 249, 246, 0.16);
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.kkc-strip__item:last-child {
    margin-right: 0;
    padding-right: 0; /* last item ends flush with the shell edge (aligned with „Upis dece“) */
    border-right: 0;
}

.kkc-strip__item--table {
    margin-left: auto;
}

.kkc-strip__item:hover .kkc-strip__t,
.kkc-strip__item:hover .kkc-strip__abbr {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--c-orange);
}

.kkc-strip__k {
    font-family: var(--f-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-orange-on-dark);
}

.kkc-strip__crest {
    width: 26px;
    height: 26px;
    padding: 2px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
}

.kkc-strip__crest.kkc-crest--initials {
    display: inline-grid;
    place-items: center;
    font: 700 10px/1 var(--f-display);
    color: var(--c-forest);
}

.kkc-strip__abbr,
.kkc-strip__t {
    font-family: var(--f-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e3ebe4;
}

.kkc-strip__score {
    display: inline-flex;
    gap: 2px;
    font-family: var(--f-display);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--c-orange);
}

/* Drawer ------------------------------------------------------------------ */

.kkc-drawer {
    position: fixed;
    inset: 0;
    z-index: var(--z-drawer);
    background: rgba(6, 30, 15, 0.55);
}

.kkc-drawer[hidden] {
    display: none;
}

.kkc-drawer__panel {
    position: absolute;
    inset: 0 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: min(380px, 88vw);
    padding: 20px 24px 32px;
    overflow-y: auto;
    background: var(--c-forest);
    color: var(--c-on-dark);
}

.js-motion .kkc-drawer:not([hidden]) .kkc-drawer__panel {
    animation: kkc-drawer-in 420ms var(--ease-out) both;
}

@keyframes kkc-drawer-in {
    from {
        transform: translateX(40px);
        opacity: 0;
    }
}

.kkc-drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kkc-drawer__title {
    font-family: var(--f-display);
    font-size: 0.85rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-orange);
}

.kkc-drawer__close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(247, 249, 246, 0.25);
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
}

.kkc-drawer__list {
    display: grid;
    list-style: none;
}

.kkc-drawer__list a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(247, 249, 246, 0.12);
    font-family: var(--f-display);
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
}

.kkc-drawer__list a[aria-current="page"] {
    color: var(--c-orange);
}

/* Social icons ------------------------------------------------------------ */

.kkc-social {
    display: flex;
    gap: 10px;
    list-style: none;
}

.kkc-social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1.5px solid rgba(247, 249, 246, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 19px;
    transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.kkc-social a:hover {
    background: var(--c-orange-ink);
    border-color: var(--c-orange-ink);
    transform: translateY(-2px);
}

/* Section heads ----------------------------------------------------------- */

.kkc-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: clamp(22px, 3vw, 32px);
}

.kkc-section-head.kkc-section-head--center {
    display: grid;
    justify-items: center;
    justify-content: center;
    text-align: center;
}

.kkc-title {
    font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem);
    line-height: 1;
    color: var(--c-forest);
}

.kkc-title .kkc-accent {
    color: var(--c-green-ink);
}

/* Headings that sit on the dark green panels (O nama: škola, o klubu, seniori). */
.kkc-title.kkc-title--light,
.kkc-panel .kkc-title,
.kkc-title.kkc-story__title,
.kkc-title.kkc-senior__title {
    color: var(--c-orange);
}

.kkc-title.kkc-title--light {
    color: #fff;
}

.kkc-title--light .kkc-accent {
    color: var(--c-orange);
}

.kkc-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--c-orange-text);
}

.kkc-more::after,
.kkc-quick a::after {
    content: "";
    flex: none;
    width: 0.8em;
    height: 0.8em;
    background: currentColor;
    -webkit-mask: var(--kkc-arrow) center / contain no-repeat;
    mask: var(--kkc-arrow) center / contain no-repeat;
    transition: transform var(--dur-base) var(--ease-out);
}

.kkc-more:hover::after,
.kkc-quick a:hover::after {
    transform: translate(2px, -2px);
}

.kkc-section--flush-top {
    padding-top: 0;
}

.kkc-section {
    padding-block: clamp(56px, 7vw, 88px) 0;
}

.kkc-main > .kkc-section:last-child,
.kkc-main > .kkc-sponsors:last-child {
    margin-bottom: clamp(56px, 7vw, 88px);
}

.kkc-lead {
    max-width: 34em;
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: var(--c-ink-2);
}

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

.kkc-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.kkc-hero__media {
    position: absolute;
    inset: 0 0 0 40%;
    z-index: -2;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
    background: var(--c-forest);
}

.kkc-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 40%;
}

.kkc-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 58, 30, 0) 55%, rgba(11, 58, 30, 0.7));
}

.kkc-hero__stripe {
    position: absolute;
    inset: 0 0 0 40%;
    z-index: -1;
    clip-path: polygon(14% 0, 15.2% 0, 1.2% 100%, 0 100%);
    background: var(--c-orange);
    pointer-events: none;
}

.kkc-hero__inner {
    position: relative;
    min-height: clamp(560px, 46vw, 660px);
    display: flex;
    align-items: center;
}

.kkc-hero__copy {
    max-width: min(500px, 42vw);
    padding-block: 72px 140px;
}

.kkc-hero__eyebrow {
    font-family: var(--f-display);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-green-ink);
}

.kkc-hero__title {
    display: grid;
    row-gap: 0.04em;
    margin: 16px 0 20px;
    font-size: clamp(3.4rem, 2rem + 3.6vw, 5.3rem);
    line-height: 0.9;
    letter-spacing: -0.005em;
    color: var(--c-forest);
}

.kkc-hero__title .kkc-accent {
    color: var(--c-green);
}

.kkc-hero__lead {
    max-width: 30em;
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: var(--c-ink-2);
}

.kkc-quick {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
    margin-top: 30px;
    list-style: none;
}

.kkc-quick a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--c-forest);
}

.kkc-quick a::after {
    color: var(--c-orange-ink);
}

/* Small dots between the quick links; the row never wraps. */
.kkc-quick li + li::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: 14px;
    border-radius: 50%;
    background: var(--c-orange);
    vertical-align: middle;
}

/* Next match card --------------------------------------------------------- */

.kkc-next-card {
    position: absolute;
    right: 0;
    bottom: 36px;
    z-index: 2;
    display: grid;
    gap: 14px;
    width: min(520px, 44vw);
    padding: 20px 22px;
    border-radius: 12px;
    background: #fff;
    color: var(--c-ink);
    text-decoration: none;
    box-shadow: 0 28px 60px -24px rgba(11, 58, 30, 0.6);
    transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

a.kkc-next-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 34px 70px -24px rgba(11, 58, 30, 0.7);
}

.kkc-next-card__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--f-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.kkc-next-card__label {
    color: var(--c-orange-ink);
}

.kkc-next-card__comp {
    color: var(--c-muted);
    text-align: right;
}

.kkc-next-card__match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
}

.kkc-next-card__team {
    display: grid;
    justify-items: center;
    gap: 8px;
    font-family: var(--f-display);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    color: var(--c-forest);
}

.kkc-next-card__crest {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.kkc-next-card__crest.kkc-crest--initials,
.kkc-score__crest.kkc-crest--initials,
.kkc-footer__crest.kkc-crest--initials {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--c-mint);
    font: 700 18px/1 var(--f-display);
    color: var(--c-forest);
}

.kkc-next-card__mid {
    display: grid;
    justify-items: center;
    gap: 6px;
    text-align: center;
}

.kkc-next-card__date {
    font-family: var(--f-display);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    color: var(--c-forest);
}

.kkc-next-card__venue {
    font-size: 0.8rem;
    color: var(--c-muted);
}

.kkc-next-card__chip {
    margin-top: 2px;
    padding: 6px 10px;
    border-radius: 4px;
    background: var(--c-forest);
    color: #fff;
    font-family: var(--f-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Results ----------------------------------------------------------------- */

.kkc-scores {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.kkc-score {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid var(--c-line-soft);
    border-radius: 10px;
    background: #fff;
    color: var(--c-ink);
    text-decoration: none;
    transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.kkc-score:hover {
    border-color: rgba(27, 137, 62, 0.45);
    box-shadow: 0 16px 30px -20px rgba(11, 58, 30, 0.45);
    transform: translateY(-2px);
}

.kkc-score__meta {
    font-family: var(--f-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-muted);
}

.kkc-score__row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.kkc-score__crest {
    width: 28px;
    height: 28px;
    object-fit: contain;
    font-size: 11px;
}

.kkc-score__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kkc-score__pts {
    font-family: var(--f-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--c-ink-2);
}

.kkc-score__row.is-win .kkc-score__pts {
    color: var(--c-green-ink);
}

.kkc-score__row:not(.is-win) .kkc-score__name {
    color: var(--c-muted);
}

/* Band: table + fixtures ---------------------------------------------------- */

.kkc-band {
    margin-top: clamp(56px, 7vw, 88px);
    padding-block: clamp(56px, 7vw, 80px);
    background: var(--c-forest);
    color: var(--c-on-dark);
}

.kkc-section-head--light .kkc-title {
    color: #fff;
}

.kkc-section-head--light .kkc-more {
    color: #ffb478;
}

.kkc-band__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.kkc-table tr.is-ours {
    background: rgba(236, 122, 23, 0.16);
    box-shadow: none;
}

.kkc-table tr.is-ours td:first-child {
    box-shadow: inset 2px 0 0 var(--c-orange);
}

.kkc-league__crest {
    background: #fff;
    padding: 2px;
}

.kkc-fixtures--compact {
    gap: 0;
}

.kkc-fixtures--compact .kkc-fixture {
    gap: 8px;
    padding: 14px 0;
    border: 0;
    border-top: 1px solid var(--c-line-dark);
    border-radius: 0;
    background: none;
}

.kkc-fixtures--compact .kkc-fixture__when {
    color: var(--c-orange-on-dark);
}

.kkc-fixtures--compact .kkc-fixture__teams {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.kkc-fixtures--compact .kkc-fixture__team--home {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.kkc-fixtures--compact .kkc-fixture__score {
    min-width: 0;
}

.kkc-fixtures--compact .kkc-fixture__venue {
    justify-content: flex-start;
}

.kkc-band__empty {
    color: var(--c-on-dark-muted);
}

/* Paths: "Postani deo Crnokose" ------------------------------------------- */

.kkc-paths {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.kkc-path {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 360px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 12px;
    background: var(--c-forest);
    color: #fff;
    text-decoration: none;
}

.kkc-path__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms var(--ease-out);
}

.kkc-path::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(11, 58, 30, 0) 12%, rgba(11, 58, 30, 0.72) 48%, rgba(11, 58, 30, 0.97) 88%);
    transition: opacity var(--dur-base) var(--ease-out);
}

.kkc-path:hover .kkc-path__img {
    transform: scale(1.06);
}

.kkc-path__body {
    display: grid;
    gap: 8px;
    padding: 24px;
}

.kkc-path__kicker {
    font-family: var(--f-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-orange-on-dark);
}

.kkc-path__title {
    font-family: var(--f-display);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.kkc-path__text {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #dbe5dd;
}

.kkc-path__go {
    justify-self: start;
    margin-top: 6px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--c-orange);
    font-family: var(--f-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: padding var(--dur-base) var(--ease-out);
}

.kkc-path:hover .kkc-path__go {
    padding-right: 12px;
}

/* Poster + sign-up form ----------------------------------------------------- */

.kkc-poster {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 420px);
    gap: 40px;
    align-items: center;
    min-height: 560px;
    padding: clamp(28px, 4vw, 56px);
    overflow: hidden;
    isolation: isolate;
    border-radius: 14px;
    background: var(--c-forest);
    color: #fff;
}

.kkc-poster__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
}

.kkc-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(11, 58, 30, 0.95) 0%, rgba(11, 58, 30, 0.7) 42%, rgba(11, 58, 30, 0.35) 100%);
}

.kkc-poster__eyebrow {
    font-family: var(--f-display);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-orange-on-dark);
}

.kkc-poster__title {
    display: grid;
    row-gap: 0.08em; /* room for the caron on Š/Č between lines */
    margin: 14px 0 16px;
    font-size: clamp(3rem, 1.8rem + 4vw, 5.2rem);
    line-height: 0.92;
    letter-spacing: -0.005em;
}

.kkc-poster__title--dark {
    margin-top: 0;
    color: var(--c-forest);
}

/* "prvi koš" — always the club orange (the strong shade on white keeps large text above 3:1). */
.kkc-poster__accent {
    color: var(--c-orange);
    transform-origin: 50% 100%;
}

.kkc-poster__title--dark .kkc-poster__accent {
    color: var(--c-orange-strong);
}

.kkc-poster__text {
    max-width: 30em;
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: #dbe5dd;
}

.kkc-poster__facts,
.kkc-figures {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 34px;
    margin: 26px 0 0;
}

.kkc-poster__facts dt,
.kkc-figures dt {
    font-family: var(--f-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-orange-on-dark);
}

.kkc-poster__facts dd,
.kkc-figures dd {
    margin: 6px 0 0;
    font-family: var(--f-display);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
}

.kkc-figures dt {
    color: var(--c-orange-text);
}

.kkc-figures dd {
    color: var(--c-forest);
}

.kkc-upis-form {
    display: grid;
    gap: 14px;
    padding: 26px;
    border-radius: 12px;
    background: #fff;
    color: var(--c-ink);
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.55);
}

.kkc-upis-form__title {
    font-family: var(--f-display);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--c-forest);
}

.kkc-upis-form__text {
    margin-top: -4px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--c-muted);
}

.kkc-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-forest);
}

.kkc-upis-form .kkc-input,
.kkc-upis-form .kkc-select {
    border-color: #c4d0c7;
}

.kkc-upis-form .kkc-btn {
    min-height: 54px;
    font-size: 1.02rem;
}

.kkc-upis-form__note {
    font-size: 0.85rem;
    color: var(--c-muted);
}

.kkc-upis-form__note a {
    font-weight: 600;
    color: var(--c-orange-ink);
}

.kkc-upis-form--done {
    justify-items: start;
    align-content: center;
    min-height: 300px;
}

.kkc-upis-form__check {
    font-size: 48px;
    color: var(--c-green-ink);
}

.kkc-upis-form .kkc-form-alert {
    margin: 0;
}

/* News cards (plain) ------------------------------------------------------- */

.kkc-grid--3 {
    gap: 24px;
}

.kkc-card--plain {
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--c-line-soft);
    border-radius: 14px;
    background: #fff;
    color: var(--c-ink);
    box-shadow: 0 1px 2px rgba(11, 58, 30, 0.06), 0 14px 30px -24px rgba(11, 58, 30, 0.45);
}

.kkc-card--plain:hover {
    transform: translateY(-4px);
    border-color: rgba(27, 137, 62, 0.35);
    box-shadow: 0 2px 4px rgba(11, 58, 30, 0.06), 0 26px 44px -26px rgba(11, 58, 30, 0.55);
}

.kkc-card--plain .kkc-card__media {
    border-radius: 0;
    background: var(--c-mint);
}

.kkc-card--plain .kkc-card__placeholder {
    color: rgba(11, 58, 30, 0.2);
}

.kkc-card--plain .kkc-card__body {
    gap: 10px;
    padding: 18px 20px 20px;
}

.kkc-card--plain .kkc-card__date {
    flex-wrap: wrap;
    gap: 4px 10px;
    color: var(--c-muted);
}

.kkc-card--plain .kkc-card__excerpt {
    color: var(--c-muted);
}

.kkc-grid--4 {
    gap: 24px;
}

.kkc-card__kicker {
    font-family: var(--f-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-green-ink);
}

.kkc-card--plain .kkc-card__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 1.22rem;
    line-height: 1.22;
    color: var(--c-ink);
}

.kkc-card--plain .kkc-card__title a {
    background: linear-gradient(var(--c-orange), var(--c-orange)) 0 100% / 0 2px no-repeat;
    text-decoration: none;
    transition: background-size 420ms var(--ease-out);
}

.kkc-card--plain:hover .kkc-card__title a {
    background-size: 100% 2px;
}

.kkc-card--plain .kkc-card__more {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    gap: 8px;
    margin-top: auto;
    padding: 14px 0 0;
    border: 0;
    border-top: 1px solid var(--c-line-soft);
    border-radius: 0;
    background: none;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: var(--c-orange-ink);
}

.kkc-card--plain .kkc-card__more .kkc-icon {
    font-size: 1rem;
    transition: transform var(--dur-base) var(--ease-out);
}

.kkc-card--plain .kkc-card__more:hover {
    background: none;
    color: var(--c-forest);
}

.kkc-card--plain:hover .kkc-card__more .kkc-icon {
    transform: translateX(4px);
}

.kkc-news-grid {
    align-items: stretch;
}

/* News filter + pagination ------------------------------------------------- */

.kkc-news-head__page {
    margin-top: 6px;
    font-family: var(--f-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-muted);
}

.kkc-filter {
    margin: 4px 0 34px;
}

.kkc-filter__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.kkc-filter__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1.5px solid var(--c-line-soft);
    border-radius: 999px;
    background: #fff;
    font-family: var(--f-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--c-forest);
    transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.kkc-filter__link:hover {
    border-color: var(--c-forest);
}

.kkc-filter__link[aria-current="page"] {
    border-color: var(--c-forest);
    background: var(--c-forest);
    color: #fff;
}

.kkc-pagination {
    margin-top: 44px;
}

.kkc-pagination ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kkc-pagination a,
.kkc-pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 46px;
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid var(--c-line-soft);
    border-radius: 10px;
    background: #fff;
    font-family: var(--f-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: var(--c-forest);
    transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.kkc-pagination a:hover {
    border-color: var(--c-forest);
}

.kkc-pagination .page-numbers.current {
    border-color: var(--c-orange-ink);
    background: var(--c-orange-ink);
    color: #fff;
}

.kkc-pagination .dots {
    border-color: transparent;
    background: none;
}

.kkc-pagination__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

@media (max-width: 640px) {
    .kkc-pagination__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* Sponsors ------------------------------------------------------------------ */

.kkc-sponsors {
    margin-top: clamp(56px, 7vw, 88px);
    border-block: 1px solid var(--c-line-soft);
}

.kkc-sponsors__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 32px;
    padding-block: 32px;
}

.kkc-sponsors__title {
    font-size: 1.5rem;
    color: var(--c-forest);
}

.kkc-sponsors__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    list-style: none;
}

.kkc-sponsors__item a,
.kkc-sponsors__item > img {
    display: block;
}

.kkc-sponsors__logo {
    width: 160px;
    height: 84px;
    padding: 12px 16px;
    border: 1px solid var(--c-line-soft);
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
    transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.kkc-sponsors__item a:hover .kkc-sponsors__logo {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -18px rgba(11, 58, 30, 0.5);
}

/* Footer -------------------------------------------------------------------- */

/* The sponsor row already closes the page: the footer follows it directly. */
.kkc-main:has(> .kkc-sponsors:last-child) {
    margin-bottom: 0;
}

.kkc-main:has(> .kkc-sponsors:last-child) + .kkc-footer {
    margin-top: 0;
}

.kkc-main > .kkc-sponsors:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.kkc-footer {
    position: relative;
    margin-top: clamp(64px, 8vw, 96px);
    overflow: hidden;
    isolation: isolate;
    /* Dark green hardwood under a soft light-to-edge vignette. */
    background:
        radial-gradient(120% 90% at 50% 60%, rgba(17, 74, 40, 0.25) 0%, rgba(8, 44, 22, 0.55) 75%),
        var(--c-forest) var(--bg-floor-dark) repeat 0 0 / var(--bg-floor-size);
    color: #d6ded6;
    font-size: 0.95rem;
    line-height: 1.7;
}

.kkc-footer__court {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    color: #f7f9f6;
    opacity: 0.07;
    pointer-events: none;
}

.kkc-main:has(> .kkc-sponsors:last-child) + .kkc-footer {
    padding-top: 0;
}

.kkc-footer__next {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 24px;
    padding: 26px 32px;
    border-radius: 0 0 12px 12px;
    background: var(--c-orange-ink);
    color: #fff;
}

.kkc-footer__next-k {
    font-family: var(--f-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ffe2c6;
}

.kkc-footer__next-m {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 8px 0 4px;
    font-family: var(--f-display);
    font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.kkc-footer__dash {
    opacity: 0.6;
}

.kkc-footer__crest {
    width: 42px;
    height: 42px;
    padding: 3px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    font-size: 14px;
}

.kkc-footer__next-meta {
    font-size: 0.92rem;
    color: #ffe2c6;
}

.kkc-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr;
    gap: 40px;
    padding-block: 64px 12px;
}

.kkc-footer__logo img {
    width: 96px;
    height: auto;
    margin-bottom: 14px;
}

.kkc-footer__text {
    max-width: 22em;
    margin-bottom: 18px;
}

.kkc-footer__heading {
    margin-bottom: 14px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--c-orange-on-dark);
}

.kkc-footer__links,
.kkc-footer__contact {
    display: grid;
    gap: 2px;
    list-style: none;
}

.kkc-footer a {
    color: #e3ebe4;
    text-decoration: none;
}

.kkc-footer__links a:hover,
.kkc-footer__contact a:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--c-orange);
}

.kkc-footer__newsletter p {
    margin-bottom: 12px;
}

.kkc-footer .kkc-inline-form .kkc-input {
    min-width: 0;
    border: 0;
}

.kkc-footer .kkc-form-thanks h3 {
    color: #fff;
}

.kkc-footer__word {
    margin: 24px 0 -0.08em;
    font-family: var(--f-display);
    font-size: clamp(5.5rem, 17vw, 15.5rem);
    font-weight: 700;
    line-height: 0.8;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 2px rgba(247, 249, 246, 0.2);
    user-select: none;
}

.kkc-footer__bottom {
    position: relative;
    border-top: 1px solid rgba(247, 249, 246, 0.12);
    background: rgba(6, 30, 15, 0.35);
}

.kkc-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    padding-block: 16px;
    font-size: 0.85rem;
    color: #9fb3a4;
}

.kkc-footer__tagline {
    margin: 0;
    font-family: var(--f-display);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-orange-on-dark);
}

.kkc-footer__top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* School page ---------------------------------------------------------------- */

.kkc-school-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.kkc-board {
    overflow: hidden;
    border-radius: 12px;
    background: var(--c-forest);
    color: #fff;
    box-shadow: 0 30px 60px -30px rgba(11, 58, 30, 0.6);
}

.kkc-board__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 16px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(247, 249, 246, 0.16);
}

.kkc-board__title {
    font-size: 1.4rem;
}

.kkc-board__place {
    font-family: var(--f-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-orange-on-dark);
}

.kkc-board__list {
    list-style: none;
}

.kkc-board__row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(247, 249, 246, 0.1);
}

.kkc-board__group {
    font-family: var(--f-display);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
}

.kkc-board__group small {
    display: block;
    margin-top: 4px;
    font-family: var(--f-body);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: none;
    color: #b8c8bc;
}

.kkc-board__days {
    font-family: var(--f-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d6ded6;
}

.kkc-board__time {
    font-family: var(--f-display);
    font-size: 1.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--c-orange);
}

.kkc-board__time--soon {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-orange-on-dark);
    white-space: nowrap;
}

.kkc-board__note {
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #d6ded6;
}

.kkc-signup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.kkc-signup .kkc-upis-form {
    border: 1px solid var(--c-line-soft);
    box-shadow: 0 30px 60px -36px rgba(11, 58, 30, 0.5);
}

.kkc-steps {
    display: grid;
    gap: 12px;
    margin: 24px 0;
    list-style: none;
}

.kkc-steps__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 10px;
    background: var(--c-mint);
}

.kkc-steps__n {
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-orange-ink);
    color: #fff;
    font: 700 1.05rem/1 var(--f-display);
}

.kkc-steps__body {
    display: grid;
    gap: 4px;
    color: var(--c-ink-2);
}

.kkc-steps__body strong {
    font-family: var(--f-display);
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--c-forest);
}

.kkc-signup__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

/* Roster ---------------------------------------------------------------------- */

.kkc-roster__heading {
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: var(--c-forest);
}

.kkc-roster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 20px;
    list-style: none;
}

.kkc-player {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--c-line-soft);
    border-radius: 12px;
    background: #fff;
    transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.kkc-player:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px -24px rgba(11, 58, 30, 0.55);
}

.kkc-player__photo {
    position: relative;
    margin: 0;
    /* Square crop from the top: shows the player, keeps any name printed on a graphic out of frame. */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--c-mint);
}

.kkc-player__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 8%;
    transition: transform 900ms var(--ease-out);
}

.kkc-player:hover .kkc-player__photo img {
    transform: scale(1.04);
}

.kkc-player__num {
    position: absolute;
    left: 12px;
    bottom: 6px;
    font-family: var(--f-display);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.kkc-player__body {
    display: grid;
    gap: 2px;
    padding: 14px 16px 16px;
}

.kkc-player__name {
    font-size: 1.25rem;
    line-height: 1.1;
    color: var(--c-forest);
}

.kkc-player__role {
    font-family: var(--f-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-orange-ink);
}

.kkc-player__info {
    font-size: 0.85rem;
    color: var(--c-muted);
}

/* Motion ------------------------------------------------------------------------ */
/* One authored entrance (the hero), then quiet reveals. Everything is visible without JS. */

@keyframes kkc-hero-wipe {
    from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 86% 100%); }
    to { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
}

@keyframes kkc-hero-stripe {
    from { transform: translateY(-100%); }
    to { transform: none; }
}

@keyframes kkc-hero-zoom {
    from { transform: scale(1.12); }
    to { transform: scale(1.02); }
}

@keyframes kkc-line-up {
    from { opacity: 0; transform: translateY(0.45em); clip-path: inset(0 0 100% 0); }
    to { opacity: 1; transform: none; clip-path: inset(0 0 -10% 0); }
}

@keyframes kkc-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@keyframes kkc-card-in {
    from { opacity: 0; transform: translateY(28px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@keyframes kkc-ball {
    0% { transform: translate(-0.5em, -1.3em) scale(0.6); opacity: 0; }
    55% { transform: translate(0, -0.12em) scale(1); opacity: 1; }
    75% { transform: translate(0, 0.04em) scale(1, 0.94); }
    100% { transform: none; opacity: 1; }
}

.js-motion .kkc-hero__media {
    animation: kkc-hero-wipe 1100ms cubic-bezier(0.7, 0, 0.2, 1) both;
}

.js-motion .kkc-hero__img {
    animation: kkc-hero-zoom 2400ms var(--ease-out) both;
}

.js-motion .kkc-hero__stripe {
    animation: kkc-hero-stripe 900ms 420ms cubic-bezier(0.7, 0, 0.2, 1) both;
}

.js-motion .kkc-hero [data-hero-item] {
    animation: kkc-fade-up 700ms var(--ease-out) both;
}

.js-motion .kkc-hero__title .kkc-hero__line {
    animation-name: kkc-line-up;
    animation-duration: 900ms;
}

.js-motion .kkc-hero__eyebrow { animation-delay: 120ms !important; }
.js-motion .kkc-hero__title .kkc-hero__line:nth-child(1) { animation-delay: 220ms; }
.js-motion .kkc-hero__title .kkc-hero__line:nth-child(2) { animation-delay: 340ms; }
.js-motion .kkc-hero__lead { animation-delay: 480ms !important; }
.js-motion .kkc-hero .kkc-actions { animation-delay: 580ms !important; }
.js-motion .kkc-hero .kkc-quick { animation-delay: 680ms !important; }

.js-motion .kkc-next-card {
    animation: kkc-card-in 900ms 760ms var(--ease-out) both;
}

.js-motion .kkc-strip__item {
    animation: kkc-fade-up 600ms var(--ease-out) both;
}

.js-motion .kkc-strip__item:nth-child(2) { animation-delay: 90ms; }
.js-motion .kkc-strip__item:nth-child(3) { animation-delay: 180ms; }

/* Staggered groups (results, paths, news, roster): set up by site.js when off-screen. */
.js-motion [data-stagger].is-pending > * {
    opacity: 0;
    transform: translateY(22px);
}

.js-motion [data-stagger].is-in > * {
    opacity: 1;
    transform: none;
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
}

/* League table rows slide in once the band is reached. */
.js-motion [data-rows].is-pending tbody tr {
    opacity: 0;
    transform: translateX(-14px);
}

.js-motion [data-rows].is-in tbody tr {
    opacity: 1;
    transform: none;
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out), background-color var(--dur-fast) var(--ease-out);
    transition-delay: calc(var(--i, 0) * 45ms);
}

/* Poster: the photo settles, "prvi koš" drops in like a made basket. */
.js-motion .kkc-poster.is-pending .kkc-poster__img {
    transform: scale(1.1);
}

.js-motion .kkc-poster.is-in .kkc-poster__img {
    transform: none;
    transition: transform 1600ms var(--ease-out);
}

.js-motion .kkc-poster.is-pending > * {
    clip-path: none;
    transform: none;
}

.js-motion .kkc-poster.is-pending .kkc-poster__accent {
    opacity: 0;
}

.js-motion .kkc-poster.is-in .kkc-poster__accent {
    animation: kkc-ball 900ms 250ms cubic-bezier(0.3, 0.7, 0.3, 1) both;
}

.js-motion .kkc-poster.is-pending .kkc-upis-form {
    opacity: 0;
    transform: translateY(30px);
}

.js-motion .kkc-poster.is-in .kkc-upis-form {
    opacity: 1;
    transform: none;
    transition: opacity 800ms 300ms var(--ease-out), transform 800ms 300ms var(--ease-out);
}

/* Footer wordmark wipes in once, left to right. */
.js-motion .kkc-footer:not(.is-in) .kkc-footer__word {
    clip-path: inset(0 100% 0 0);
}

.js-motion .kkc-footer.is-in .kkc-footer__word {
    clip-path: inset(0 0 0 0);
    transition: clip-path 1600ms cubic-bezier(0.7, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    .js-motion [data-stagger].is-pending > *,
    .js-motion [data-rows].is-pending tbody tr,
    .js-motion .kkc-poster.is-pending .kkc-upis-form,
    .js-motion .kkc-poster.is-pending .kkc-poster__accent {
        opacity: 1;
        transform: none;
    }
}

/* Responsive ------------------------------------------------------------------------ */

@media (max-width: 1180px) {
    .kkc-nav__list {
        gap: 14px;
    }

    .kkc-nav__list a {
        font-size: 0.85rem;
        letter-spacing: 0.08em;
    }
}

@media (max-width: 1100px) {
    .kkc-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kkc-scores {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kkc-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 979px) {
    .kkc-nav,
    .kkc-header__cta {
        display: none;
    }

    .kkc-menu-toggle {
        display: grid;
    }

    .kkc-brand__logo {
        width: 50px;
        height: 50px;
    }

    .kkc-strip__item--table {
        margin-left: 0;
    }

    .kkc-hero__media {
        position: relative;
        inset: auto;
        height: clamp(260px, 60vw, 420px);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%);
    }

    .kkc-hero__stripe {
        display: none;
    }

    .js-motion .kkc-hero__media {
        animation-name: kkc-fade-up;
    }

    .kkc-hero__inner {
        display: block;
        min-height: 0;
    }

    .kkc-hero__copy {
        max-width: none;
        padding-block: 24px 28px;
    }

    .kkc-next-card {
        position: relative;
        right: auto;
        bottom: auto;
        width: auto;
        margin-bottom: 8px;
        box-shadow: 0 18px 40px -26px rgba(11, 58, 30, 0.6);
        border: 1px solid var(--c-line-soft);
    }

    .kkc-band__grid,
    .kkc-poster,
    .kkc-school-intro,
    .kkc-signup {
        grid-template-columns: minmax(0, 1fr);
    }

    .kkc-poster {
        gap: 24px;
        min-height: 0;
    }

    .kkc-poster::after {
        background: linear-gradient(0deg, rgba(11, 58, 30, 0.97) 45%, rgba(11, 58, 30, 0.6));
    }

    .kkc-paths {
        grid-template-columns: minmax(0, 1fr);
    }

    .kkc-path {
        min-height: 280px;
    }

    .kkc-sponsors__inner {
        justify-content: center;
        text-align: center;
    }

    .kkc-sponsors__title {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .kkc-hero__title {
        font-size: clamp(3.2rem, 15vw, 4rem);
    }

    .kkc-hero .kkc-actions {
        flex-direction: column;
    }

    .kkc-hero .kkc-actions .kkc-btn {
        width: 100%;
    }

    .kkc-next-card {
        padding: 16px;
    }

    .kkc-next-card__crest {
        width: 52px;
        height: 52px;
    }

    .kkc-next-card__date {
        font-size: 1.3rem;
    }

    .kkc-next-card__head {
        flex-direction: column;
        gap: 4px;
    }

    .kkc-next-card__comp {
        text-align: left;
    }

    .kkc-scores {
        grid-template-columns: minmax(0, 1fr);
    }

    .kkc-grid--3,
    .kkc-grid--4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .kkc-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding-top: 44px;
    }

    .kkc-footer__next {
        padding: 22px;
    }

    .kkc-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .kkc-sponsors__logo {
        width: 140px;
        height: 72px;
    }

    .kkc-board__row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 12px;
        padding: 16px 18px;
    }

    .kkc-board__days {
        grid-column: 1;
    }

    .kkc-board__time {
        grid-row: 1 / 3;
        grid-column: 2;
    }

    .kkc-upis-form {
        padding: 20px;
    }

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

    .kkc-player__num {
        font-size: 2.8rem;
    }

    .kkc-player__name {
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   14. O nama + Kontakt in the club layer (16.10.)
   Light pages, one forest band per page, framed cards like the news grid.
   ========================================================================== */

/* O nama — intro */

.kkc-ab-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(36px, 5vw, 80px);
}

.kkc-ab-intro__copy {
    display: grid;
    align-content: start;
    gap: 20px;
}

.kkc-ab-intro__lead {
    max-width: 34em;
    font-size: var(--fs-lead);
    line-height: 1.6;
    color: var(--c-ink);
}

.kkc-ab-intro__text {
    max-width: 36em;
    line-height: 1.7;
    color: var(--c-muted);
}

.kkc-ab-intro__media {
    position: relative;
    isolation: isolate;
    margin: 0 18px 18px 0;
}

.kkc-ab-intro__media::before {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -18px;
    z-index: -1;
    width: 58%;
    height: 62%;
    border-radius: 16px;
    background: var(--c-orange);
}

.kkc-ab-intro__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
}

.kkc-ab-badge {
    position: absolute;
    left: -22px;
    bottom: 28px;
    display: grid;
    gap: 6px;
    padding: 18px 22px;
    border-radius: 12px;
    background: var(--c-forest);
    color: #fff;
    box-shadow: 0 22px 40px -22px rgba(0, 0, 0, 0.6);
}

.kkc-ab-badge__value {
    font-family: var(--f-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 0.9;
    color: var(--c-orange-on-dark);
}

.kkc-ab-badge__label {
    font-family: var(--f-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* O nama — figures strip */

.kkc-ab-figures {
    margin-top: clamp(56px, 7vw, 88px);
    background: var(--c-forest);
    color: #fff;
}

.kkc-ab-figures__inner {
    padding-block: clamp(28px, 4vw, 40px);
}

.kkc-ab-figures__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
}

.kkc-ab-figures__item {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 8px;
    padding: 4px clamp(14px, 2.4vw, 32px);
    border-left: 1px solid rgba(247, 249, 246, 0.14);
}

.kkc-ab-figures__item:first-child {
    padding-left: 0;
    border-left: 0;
}

.kkc-ab-figures__item dd {
    margin: 0;
    font-family: var(--f-display);
    font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem);
    font-weight: 700;
    line-height: 0.95;
    font-variant-numeric: tabular-nums;
    color: var(--c-orange-on-dark);
}

.kkc-ab-figures__item dt {
    font-family: var(--f-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #cfdcd3;
}

/* O nama — selections */

.kkc-ab-note {
    max-width: 48em;
    margin: -6px 0 30px;
    font-size: var(--fs-lead);
    line-height: 1.6;
    color: var(--c-muted);
}

.kkc-ab-groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
}

.kkc-ab-group {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--c-line-soft);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(11, 58, 30, 0.06), 0 14px 30px -24px rgba(11, 58, 30, 0.45);
}

.kkc-ab-group__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--c-mint);
}

.kkc-ab-group__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kkc-ab-group__body {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 18px 20px 22px;
}

.kkc-ab-group__title {
    font-size: 1.35rem;
    line-height: 1.05;
    color: var(--c-forest);
}

.kkc-ab-group__title::before {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    margin-bottom: 12px;
    border-radius: 2px;
    background: var(--c-orange);
}

.kkc-ab-group__body p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--c-muted);
}

/* O nama — club story */

.kkc-section.kkc-ab-story {
    margin-top: clamp(56px, 7vw, 88px);
    padding-block: clamp(56px, 7vw, 96px);
    /* Same floor, tinted mint (multiply keeps the parquet visible through the band). */
    background: var(--c-mint) var(--bg-floor) repeat 0 0 / var(--bg-floor-size);
    background-blend-mode: multiply;
}

.kkc-ab-story__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: clamp(32px, 6vw, 96px);
}

.kkc-ab-story__aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: grid;
    gap: 20px;
}

.kkc-ab-story__mark img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.kkc-title.kkc-ab-story__title {
    font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem);
    color: var(--c-forest);
}

.kkc-ab-story__media {
    margin: 0;
}

.kkc-ab-story__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.kkc-ab-story__text {
    max-width: 62ch;
    font-size: 1.06rem;
    line-height: 1.75;
    color: var(--c-ink);
}

.kkc-ab-story__text p + p {
    margin-top: 1.1em;
}

.kkc-ab-story__text p:first-child {
    font-size: 1.24rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--c-forest);
}

/* O nama — senior team band */

.kkc-ab-senior {
    margin-block: 0 clamp(56px, 7vw, 88px);
    padding-block: clamp(64px, 8vw, 104px);
    background: var(--c-forest);
    color: #fff;
}

.kkc-ab-senior__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
    gap: clamp(32px, 5vw, 80px);
}

.kkc-ab-senior__copy {
    display: grid;
    gap: 24px;
}

.kkc-ab-senior__text {
    max-width: 62ch;
    line-height: 1.75;
    color: #dbe5dd;
}

.kkc-ab-senior__text p + p {
    margin-top: 1em;
}

.kkc-ab-senior__media {
    margin: 0;
}

.kkc-ab-senior__media img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 14px;
}

.kkc-ab-facts {
    margin: 22px 0 26px;
    border-top: 1px solid rgba(247, 249, 246, 0.14);
}

.kkc-ab-facts__row {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(247, 249, 246, 0.14);
}

.kkc-ab-facts dt {
    padding-top: 2px;
    font-family: var(--f-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-orange-on-dark);
}

.kkc-ab-facts dd {
    margin: 0;
    font-weight: 600;
}

/* Kontakt — map + form as one card */

.kkc-ct-head .kkc-section-head {
    margin-bottom: 0;
}

.kkc-ct-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    overflow: hidden;
    border: 1px solid var(--c-line-soft);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 60px -36px rgba(11, 58, 30, 0.55);
}

.kkc-ct-map {
    position: relative;
    min-height: 560px;
    background: var(--c-mint);
}

.kkc-ct-map__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(0.85);
}

.kkc-ct-place {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: grid;
    gap: 14px;
    width: min(340px, calc(100% - 40px));
    margin: 0;
    padding: 18px 20px;
    border-top: 4px solid var(--c-orange);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px -18px rgba(11, 58, 30, 0.55);
    list-style: none;
}

.kkc-ct-place__item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.kkc-ct-place__icon {
    margin-top: 2px;
    font-size: 1.3rem;
    color: var(--c-green-ink);
}

.kkc-ct-place__text {
    display: grid;
    gap: 2px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.kkc-ct-place__label {
    font-family: var(--f-display);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-muted);
}

.kkc-ct-place a {
    font-weight: 600;
    color: var(--c-forest);
    text-decoration: none;
}

.kkc-ct-place a:hover {
    color: var(--c-orange-ink);
    text-decoration: underline;
}

.kkc-ct-form {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: clamp(26px, 4vw, 44px);
    border-left: 1px solid var(--c-line-soft);
}

.kkc-ct-form__title {
    font-family: var(--f-display);
    font-size: clamp(1.7rem, 1.4rem + 1vw, 2.1rem);
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--c-forest);
}

.kkc-ct-form__done {
    display: grid;
    justify-items: start;
    align-content: center;
    gap: 10px;
    min-height: 420px;
}

.kkc-ct-form__done:focus {
    outline: none;
}

.kkc-ct-form__text {
    color: var(--c-muted);
}

/* Contact form shares the sign-up form look (labels above, light borders, tall orange button). */
.kkc-contact-form {
    gap: 14px;
}

.kkc-contact-form .kkc-input,
.kkc-contact-form .kkc-select,
.kkc-contact-form .kkc-textarea {
    border-color: #c4d0c7;
}

.kkc-contact-form .kkc-btn {
    min-height: 54px;
    margin-top: 4px;
    font-size: 1.02rem;
}

/* On the rejected-submission page the form sits on the dark panel: give it the same white card. */
.kkc-form-panel .kkc-contact-form {
    padding: 26px;
    border-radius: 12px;
    background: #fff;
    color: var(--c-ink);
}

/* Alerts inside white forms need dark text. */
.kkc-upis-form .kkc-form-alert,
.kkc-contact-form .kkc-form-alert {
    border-color: #f1b3b4;
    background: #fdeeee;
    color: #9b1c1f;
}

@media (max-width: 1100px) {
    .kkc-ab-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 979px) {
    .kkc-ab-intro__grid,
    .kkc-ab-story__grid,
    .kkc-ab-senior__grid,
    .kkc-ct-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .kkc-ab-intro__media {
        max-width: 620px;
    }

    .kkc-ab-figures__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 24px;
    }

    .kkc-ab-figures__item:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .kkc-ab-story__aside {
        position: static;
    }

    .kkc-ab-story__media {
        display: none;
    }

    .kkc-ct-map {
        min-height: 0;
        display: grid;
    }

    .kkc-ct-map__frame {
        position: static;
        height: 300px;
    }

    .kkc-ct-place {
        position: static;
        width: auto;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border-top-width: 0;
        border-bottom: 1px solid var(--c-line-soft);
    }

    .kkc-ct-form {
        border-left: 0;
    }
}

@media (max-width: 640px) {
    .kkc-ab-groups {
        grid-template-columns: minmax(0, 1fr);
    }

    .kkc-ab-badge {
        left: 12px;
        bottom: 12px;
        padding: 14px 16px;
    }

    .kkc-ab-badge__value {
        font-size: 2.3rem;
    }

    .kkc-ab-intro__media {
        margin: 0 10px 10px 0;
    }

    .kkc-ab-intro__media::before {
        right: -10px;
        bottom: -10px;
    }

    .kkc-ab-facts__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }
}

/* O nama now ends with the sponsors strip (template-parts/sponsors.php), like Početna; the old
   senior-band→footer seam rules targeted a body class WordPress never outputs and were removed. */
.kkc-ab-senior:has(+ .kkc-sponsors) {
    margin-bottom: 0;
}

/* Novosti listing swap (site.js §11) */

.kkc-news-listing {
    transition: opacity var(--dur-base) var(--ease-out);
}

.kkc-news-listing:focus {
    outline: none;
}

.kkc-news-listing.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.kkc-news-listing .kkc-news-head__page {
    margin: -18px 0 24px;
    text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
    .kkc-news-listing.is-swapped .kkc-news-grid > * {
        animation: kkc-card-in 520ms var(--ease-out) both;
        animation-delay: calc(var(--i, 0) * 45ms);
    }
}

/* 13. Brush details ------------------------------------------------------- */
/* Dry-brush streaks (as on the club posters) tucked into a corner behind a few light sections.
   Self-made images: assets/img/brush-a.webp (orange-led), brush-b.webp (green-led). */

.kkc-brush {
    position: relative;
    isolation: isolate;
    overflow-x: clip;
}

.kkc-brush::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: clamp(300px, 36vw, 560px);
    aspect-ratio: 760 / 590;
    background: url("../img/brush-a.webp?v=1") no-repeat center / contain;
    opacity: 0.85;
    pointer-events: none;
}

.kkc-brush--alt::before {
    background-image: url("../img/brush-b.webp?v=1");
}

.kkc-brush--tr::before {
    top: -24px;
    right: 0;
    transform: translateX(30%);
}

.kkc-brush--bl::before {
    bottom: -24px;
    left: 0;
    transform: translateX(-30%) rotate(180deg);
}

@media (max-width: 640px) {
    .kkc-brush::before {
        width: 220px;
        opacity: 0.7;
    }

    .kkc-brush--tr::before {
        transform: translateX(42%);
    }

    .kkc-brush--bl::before {
        display: none;
    }
}

@media print {
    .kkc-brush::before {
        display: none;
    }
}

/* 14. Page openings --------------------------------------------------------- */
/* 17.10.2026: no full-bleed photo bands. Inner pages open on the parquet with their own heading;
   only O nama keeps a large photo (the whole club), framed and cut on a slant like the home hero. */

.kkc-photo-band {
    padding-top: clamp(24px, 3.5vw, 44px);
}

/* The frame is reusable on its own (O nama band, Tim group photo). */
.kkc-photo-band__frame {
    --slant: 40px;
    position: relative;
    margin: 0;
    filter: drop-shadow(0 18px 28px rgba(11, 58, 30, 0.26));
}

.kkc-photo-band__media {
    display: block;
    overflow: hidden;
    clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
}

.kkc-photo-band__img {
    width: 100%;
    height: auto;
}

/* Banner crop. The --natural variant (Tim: nobody's head gets cropped) keeps the ratio from the
   width/height attributes, so the space is reserved before the file loads (no layout shift). */
.kkc-photo-band__img:not(.kkc-photo-band__img--natural) {
    aspect-ratio: 1240 / 440;
    object-fit: cover;
    object-position: center 35%;
}

/* Entrance like the home hero: the stripe drops in, the photo wipes out to the right and settles. */
@keyframes kkc-band-wipe {
    from { clip-path: polygon(var(--slant) 0, var(--slant) 0, 0 100%, 0 100%); }
    to { clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }
}

@keyframes kkc-band-stripe {
    from { transform: scaleY(0); }
    to { transform: none; }
}

.js-motion .kkc-photo-band__stripe {
    transform-origin: top;
    animation: kkc-band-stripe 600ms cubic-bezier(0.7, 0, 0.2, 1) both;
}

.js-motion .kkc-photo-band__media {
    animation: kkc-band-wipe 1100ms 180ms cubic-bezier(0.7, 0, 0.2, 1) both;
}

.js-motion .kkc-photo-band__img {
    animation: kkc-hero-zoom 2400ms 180ms var(--ease-out) both;
}

/* Orange stripe running parallel to the slanted left edge (as on the home hero). */
.kkc-photo-band__stripe {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -22px;
    width: calc(var(--slant) + 10px);
    background: var(--c-orange);
    clip-path: polygon(var(--slant) 0, calc(var(--slant) + 10px) 0, 10px 100%, 0 100%);
}

.kkc-page-open {
    padding-top: clamp(48px, 7vw, 88px);
}

.kkc-page-open__eyebrow {
    margin-bottom: 14px;
    font-family: var(--f-display);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-green-ink);
}

@media (max-width: 640px) {
    .kkc-photo-band__frame {
        --slant: 20px;
    }

    .kkc-photo-band__img:not(.kkc-photo-band__img--natural) {
        aspect-ratio: 16 / 10;
    }

    .kkc-photo-band__stripe {
        left: -12px;
        width: calc(var(--slant) + 6px);
        clip-path: polygon(var(--slant) 0, calc(var(--slant) + 6px) 0, 6px 100%, 0 100%);
    }
}

/* Form protection placeholders (reCAPTCHA slot, protection status) are empty until used:
   take them out of the grid flow so they add no blank gap above the form title. The status
   stays in the DOM as a live region and returns to the flow as soon as it has text. */
form [data-aomark-recaptcha]:empty,
form [data-aomark-protection-status]:empty {
    position: absolute;
    margin: 0;
}

.kkc-upis-form > .kkc-upis-form__title,
.kkc-ct-form .kkc-contact-form > :first-child {
    margin-top: 0;
}

/* 15. Form confirmation modal (template-parts/thanks-modal.php, site.js §8) --------------- */

.kkc-thanks {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: var(--gutter);
    border: 0;
    background: transparent;
    color: var(--c-ink);
}

.kkc-thanks[open] {
    display: grid;
    place-items: center;
}

/* Without JS the dialog simply sits in the page above the footer. */
.kkc-thanks:not(:modal) {
    position: static;
    height: auto;
    padding-block: 32px;
}

.kkc-thanks::backdrop {
    background: rgba(6, 22, 12, 0.62);
    backdrop-filter: blur(3px);
}

.kkc-thanks__card {
    position: relative;
    overflow: hidden;
    width: min(440px, 100%);
    padding: 44px 32px 32px;
    border-radius: var(--r-card);
    background: #fff var(--bg-floor) repeat 0 0 / var(--bg-floor-size);
    box-shadow: 0 30px 60px -20px rgba(6, 22, 12, 0.55);
    text-align: center;
}

.kkc-thanks__stripe {
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, var(--c-green) 0 50%, var(--c-orange) 50% 100%);
}

.kkc-thanks__check {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    color: var(--c-green);
}

.kkc-thanks__title {
    font-size: var(--fs-h2);
    color: var(--c-forest);
}

.kkc-thanks__text {
    margin: 10px auto 26px;
    max-width: 34ch;
    color: var(--c-ink-2);
    font-size: 1.05rem;
}

.kkc-thanks__actions {
    display: flex;
    justify-content: center;
}

/* Entrance: card rises in, the ring draws, then the tick. */
@keyframes kkc-thanks-in {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

@keyframes kkc-thanks-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes kkc-thanks-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.kkc-thanks:modal .kkc-thanks__card {
    animation: kkc-thanks-in 520ms var(--ease-out) both;
}

.kkc-thanks:modal::backdrop {
    animation: kkc-thanks-fade 300ms var(--ease-out) both;
}

.kkc-thanks:modal .kkc-thanks__ring {
    stroke-dasharray: 176;
    stroke-dashoffset: 176;
    animation: kkc-thanks-draw 700ms 220ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.kkc-thanks:modal .kkc-thanks__tick {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: kkc-thanks-draw 380ms 820ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
    .kkc-thanks:modal .kkc-thanks__ring,
    .kkc-thanks:modal .kkc-thanks__tick {
        stroke-dashoffset: 0;
    }
}

/* Mobile quick fixes (17.10.) --------------------------------------------- */

.kkc-footer__team {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .kkc-quick {
        gap: 10px;
    }

    .kkc-quick a {
        gap: 5px;
        font-size: 0.76rem;
        letter-spacing: 0.08em;
    }

    .kkc-quick li + li::before {
        margin-right: 10px;
    }

    /* Home: fixtures centred under the table. */
    .kkc-fixtures--compact .kkc-fixture {
        justify-items: center;
        text-align: center;
    }

    .kkc-fixtures--compact .kkc-fixture__when,
    .kkc-fixtures--compact .kkc-fixture__teams {
        justify-content: center;
    }

    /* Sign-up poster: edge to edge, so the form keeps its full width. */
    .kkc-poster {
        margin-inline: calc(-1 * var(--gutter));
        padding: 32px var(--gutter);
        border-radius: 0;
    }

    .kkc-poster .kkc-upis-form {
        padding: 20px 18px;
    }

    /* Footer next match: one team per line, crest always beside its name. */
    .kkc-footer__next {
        padding: 22px 20px;
    }

    .kkc-footer__next > div {
        width: 100%;
    }

    .kkc-footer__next-m {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 1.35rem;
    }

    .kkc-footer__team--away {
        flex-direction: row-reverse;
    }

    .kkc-footer__dash {
        display: none;
    }

    .kkc-footer__next .kkc-btn {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .kkc-quick a {
        font-size: 0.7rem;
        letter-spacing: 0.05em;
    }
}

/* 9b. Raspored on the parquet floor (22.10.): rounds in tabs + our season as white cards,
       like the Rezultati cards on Početna. The standings stay on the dark panel as the accent. ---- */

.kkc-league-block--light {
    padding: 0;
    color: var(--c-ink);
}

.kkc-league-block--light + .kkc-panel,
.kkc-panel + .kkc-league-block--light {
    margin-top: clamp(18px, 3vw, 34px);
}

.kkc-rounds__head {
    align-items: center;
}

.kkc-rounds__tabs {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.kkc-rounds.is-enhanced .kkc-rounds__tabs {
    display: flex;
}

.kkc-rounds__tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 20px;
    border: 1.5px solid var(--c-line-soft);
    border-radius: 999px;
    background: #fff;
    font-family: var(--f-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-forest);
    cursor: pointer;
    transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.kkc-rounds__tab:hover {
    border-color: var(--c-forest);
}

.kkc-rounds__tab[aria-selected="true"] {
    border-color: var(--c-forest);
    background: var(--c-forest);
    color: #fff;
}

.kkc-rounds__num {
    font-size: 0.78em;
    letter-spacing: 0.08em;
    color: var(--c-orange-text);
}

.kkc-rounds__tab[aria-selected="true"] .kkc-rounds__num {
    color: var(--c-orange-on-dark);
}

.kkc-rounds__heading {
    margin: 0 0 14px;
    font-family: var(--f-display);
    font-size: var(--fs-h3);
    text-transform: uppercase;
    color: var(--c-forest);
}

.kkc-rounds .kkc-tabs__panel + .kkc-tabs__panel {
    margin-top: 32px;
}

.kkc-rounds.is-enhanced .kkc-tabs__panel + .kkc-tabs__panel {
    margin-top: 0;
}

.kkc-fixtures--grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
    gap: 14px;
}

.kkc-fixtures--light .kkc-fixture {
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid var(--c-line-soft);
    border-radius: 10px;
    background: #fff;
    color: var(--c-ink);
    transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.kkc-fixtures--light .kkc-fixture:hover {
    border-color: rgba(27, 137, 62, 0.45);
    box-shadow: 0 16px 30px -20px rgba(11, 58, 30, 0.45);
}

.kkc-fixtures--light .kkc-fixture.is-ours {
    border-color: rgba(236, 122, 23, 0.6);
    background: #fff;
    box-shadow: inset 3px 0 0 var(--c-orange);
}

.kkc-fixtures--light .kkc-fixture__when {
    font-family: var(--f-display);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: var(--c-muted);
}

.kkc-fixtures--light .kkc-fixture__flag {
    background: rgba(236, 122, 23, 0.14);
    color: var(--c-orange-text);
}

.kkc-fixtures--light .kkc-fixture__score {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--c-ink-2);
}

.kkc-fixtures--light .kkc-fixture__vs,
.kkc-fixtures--light .kkc-fixture__venue {
    color: var(--c-muted);
}

.kkc-fixtures--light .kkc-fixture__venue .kkc-icon {
    color: var(--c-orange-ink);
}

.kkc-fixtures--light .kkc-league__crest {
    border: 1px solid var(--c-line-soft);
}

.kkc-fixtures--season {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
    gap: 14px;
}

/* Collapse (site.js §5): first N fixtures, the rest behind "Prikaži sve utakmice". */
[data-collapse].is-collapsed .kkc-fixture.is-extra {
    display: none;
}

.kkc-schedule__toggle {
    margin-top: 22px;
}

.kkc-league-block--light .kkc-schedule__toggle {
    display: flex;
    margin-inline: auto;
}

.kkc-league-block--light .kkc-schedule__toggle[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .kkc-rounds__tabs {
        width: 100%;
    }

    .kkc-rounds__tab {
        flex: 1 1 0;
        justify-content: center;
        padding: 0 12px;
        font-size: 0.8rem;
        letter-spacing: 0.06em;
    }

    .kkc-fixtures--light .kkc-fixture {
        padding: 14px;
    }

    .kkc-fixtures--light .kkc-fixture__score {
        font-size: 1.25rem;
    }
}

/* The page-head brush (top right) must not cover the round tabs. */
.kkc-schedule-page .kkc-league {
    position: relative;
    z-index: 1;
}

/* Our season list: every game is ours, so no orange frame; results read from the score. */
.kkc-fixtures--season .kkc-fixture.is-ours {
    border-color: var(--c-line-soft);
    box-shadow: none;
}

@media (max-width: 640px) {
    /* Points sit on the same rows as the two teams (home above, away below). */
    .kkc-fixtures--light .kkc-fixture__score {
        display: grid;
        grid-template-rows: 1fr 1fr;
        align-self: stretch;
        align-items: center;
        justify-items: end;
        gap: 8px;
    }

    .kkc-fixtures--light .kkc-fixture__score .kkc-fixture__vs {
        grid-row: 1 / -1;
    }

    /* Two tabs side by side: label above, round number below. */
    .kkc-rounds__tab {
        flex-direction: column;
        gap: 2px;
        min-height: 56px;
        padding: 6px 10px;
        border-radius: 12px;
        line-height: 1.1;
    }
}
