/* ==========================================================================
   KNOWLEDGE CENTRE — page-scoped styles
   Same light palette as ceo.css / client-coins.css. Loaded only on
   /knowledge-centre via the conditional in layouts/default.htm.
   ========================================================================== */

.kc-page {
    --kc-ink: var(--gf-navy);
    --kc-ink-soft: rgba(48, 68, 79, 0.74);
    --kc-ink-faint: rgba(48, 68, 79, 0.55);
    --kc-line: rgba(94, 179, 70, 0.24);
    --kc-card: #ffffff;
    --kc-shadow: 0 14px 34px rgba(48, 68, 79, 0.1);

    font-family: "Poppins", sans-serif;
    background: linear-gradient(to right, #f1f6f7, #d5f1f1);
}

/* The theme applies a global `img, svg { border-radius: 15px }`; card media
   here is clipped by its own wrapper instead. Scoped, not removed globally. */
.kc-page img {
    border-radius: 0;
}

/* ---------- shared furniture ---------- */
.kc-eyebrow,
.kc-section-eyebrow {
    display: inline-block;
    margin-bottom: 0.85rem;
    padding: 0.38rem 1rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gf-green-dark);
    background: rgba(94, 179, 70, 0.1);
    border: 1px solid var(--kc-line);
}

.kc-section-head {
    max-width: 46rem;
    margin: 0 auto 2.4rem;
    text-align: center;
}

.kc-section-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: none;
    text-align: left;
}

.kc-section-title {
    margin: 0 0 0.8rem;
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.22;
    letter-spacing: -0.015em;
    color: var(--kc-ink);
}

.kc-section-head--row .kc-section-title {
    margin-bottom: 0;
}

.kc-section-intro {
    max-width: 42rem;
    margin: 0 auto;
    font-size: 0.97rem;
    line-height: 1.75;
    color: var(--kc-ink-soft);
}

.kc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--gf-green-dark);
    white-space: nowrap;
}

.kc-link i {
    transition: transform 0.25s ease;
}

.kc-link:hover {
    color: var(--gf-green);
}

.kc-link:hover i {
    transform: translateX(4px);
}

.kc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 100px;
    font-size: 0.87rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
        color 0.25s ease, border-color 0.25s ease;
}

.kc-btn--solid {
    color: #ffffff;
    background: linear-gradient(90deg, var(--gf-green), var(--gf-green-dark));
    box-shadow: 0 10px 24px rgba(94, 179, 70, 0.3);
}

.kc-btn--ghost {
    color: var(--kc-ink);
    border: 1.5px solid rgba(48, 68, 79, 0.22);
}

.kc-btn--ghost:hover {
    color: var(--gf-green-dark);
    border-color: var(--gf-green);
    transform: translateY(-2px);
}

.kc-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
    font-size: 0.74rem;
    color: var(--kc-ink-faint);
}

.kc-tag {
    padding: 0.22rem 0.65rem;
    border-radius: 100px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gf-green-dark);
    background: rgba(94, 179, 70, 0.12);
}

/* ==========================================================================
   HERO — kinetic headline, aurora wash, drifting topic stream
   ========================================================================== */
.kc-hero {
    position: relative;
    overflow: hidden;
    /* The site header is position:fixed at 72px, so the hero has to clear it
       itself — at narrow widths the fluid padding alone left the eyebrow
       sitting underneath the nav. */
    padding: calc(72px + clamp(1rem, 4vw, 3rem)) 0 0;
}

/* Three slow-drifting colour fields. Blur does the work, so the shapes
   themselves can stay crude. */
.kc-hero-aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.kc-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}

.kc-blob--a {
    top: -14%;
    left: 4%;
    width: 32rem;
    height: 32rem;
    background: rgba(94, 179, 70, 0.22);
    animation: kcDriftA 22s ease-in-out infinite alternate;
}

.kc-blob--b {
    top: 6%;
    right: -6%;
    width: 30rem;
    height: 30rem;
    background: rgba(90, 196, 180, 0.2);
    animation: kcDriftB 27s ease-in-out infinite alternate;
}

.kc-blob--c {
    bottom: -22%;
    left: 34%;
    width: 28rem;
    height: 28rem;
    background: rgba(120, 185, 69, 0.16);
    animation: kcDriftC 31s ease-in-out infinite alternate;
}

@keyframes kcDriftA {
    to { transform: translate3d(6rem, 3rem, 0) scale(1.12); }
}

@keyframes kcDriftB {
    to { transform: translate3d(-5rem, 4rem, 0) scale(0.9); }
}

@keyframes kcDriftC {
    to { transform: translate3d(4rem, -3rem, 0) scale(1.08); }
}

.kc-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 50rem;
    margin: 0 auto;
    padding-bottom: clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.kc-hero-title {
    margin: 0 0 1.1rem;
    font-weight: 700;
    font-size: clamp(2rem, 5.2vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--kc-ink);
}

/* ---------- the rotating word ----------
   A fixed-height window over a vertical stack of words. The track steps up by
   one word-height at a time; the first word is repeated at the end so the loop
   returns to its start without a visible jump. No JS involved. */
.kc-rotator {
    display: inline-block;
    height: 1.1em;
    overflow: hidden;
    vertical-align: bottom;
    /* Hold the widest word so the headline does not reflow mid-cycle. */
    min-width: 6.2em;
    text-align: left;
}

.kc-rotator-track {
    display: block;
    animation: kcRotate 12.5s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

.kc-rotator-word {
    display: block;
    height: 1.1em;
    line-height: 1.1em;
    color: var(--gf-green);
    white-space: nowrap;
}

/* Five words plus the repeat: each holds, then slides. */
@keyframes kcRotate {
    0%,   16% { transform: translateY(0); }
    20%,  36% { transform: translateY(-1.1em); }
    40%,  56% { transform: translateY(-2.2em); }
    60%,  76% { transform: translateY(-3.3em); }
    80%,  96% { transform: translateY(-4.4em); }
    100%      { transform: translateY(-5.5em); }
}

.kc-hero-lead {
    max-width: 36rem;
    margin: 0 auto 1.8rem;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--kc-ink-soft);
}

/* ---------- search ---------- */
.kc-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 34rem;
    margin: 0 auto 1.8rem;
    padding: 0.4rem 0.4rem 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--kc-line);
    border-radius: 100px;
    box-shadow: var(--kc-shadow);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.kc-search:focus-within {
    border-color: var(--gf-green);
    box-shadow: 0 16px 36px rgba(94, 179, 70, 0.22);
}

.kc-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.kc-search > i {
    flex: none;
    font-size: 0.9rem;
    color: var(--gf-green-dark);
}

.kc-search-input {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.2rem;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--kc-ink);
    background: transparent;
    border: none;
    outline: none;
}

.kc-search-btn {
    flex: none;
    padding: 0.62rem 1.4rem;
    border: none;
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(90deg, var(--gf-green), var(--gf-green-dark));
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.kc-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(94, 179, 70, 0.35);
}

/* ---------- hero stats ---------- */
.kc-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.4rem;
    margin: 0;
    padding: 1.4rem 0 0;
    list-style: none;
    border-top: 1px solid rgba(48, 68, 79, 0.12);
}

.kc-hero-stats b {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--gf-green);
}

.kc-hero-stats span {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--kc-ink-faint);
}

/* ---------- topic stream ---------- */
.kc-stream {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 1.1rem 0 1.4rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.kc-stream-track {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: max-content;
    animation: kcStream 42s linear infinite;
}

.kc-stream:hover .kc-stream-track {
    animation-play-state: paused;
}

@keyframes kcStream {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Chips are live: knowledge.js wires each one to the matching topic filter, or
   drops its text into the search box when no filter covers it. */
.kc-chip {
    flex: none;
    padding: 0.5rem 1.05rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    color: var(--kc-ink-soft);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--kc-line);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease,
        border-color 0.25s ease, box-shadow 0.25s ease;
}

.kc-chip:hover {
    transform: translateY(-3px);
    color: var(--gf-green-dark);
    border-color: var(--gf-green);
    box-shadow: 0 10px 22px -10px rgba(94, 179, 70, 0.6);
}

/* ==========================================================================
   FEATURED
   ========================================================================== */
.kc-featured {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.kc-feature-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
    overflow: hidden;
    text-decoration: none;
    background: var(--kc-card);
    border: 1px solid rgba(94, 179, 70, 0.2);
    border-radius: 26px;
    box-shadow: var(--kc-shadow);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.kc-feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(94, 179, 70, 0.5);
    box-shadow: 0 26px 52px -20px rgba(94, 179, 70, 0.45), var(--kc-shadow);
}

.kc-feature-media {
    position: relative;
    overflow: hidden;
    min-height: 19rem;
    background: #e3ece6;
}

.kc-feature-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.kc-feature-card:hover .kc-feature-media img {
    transform: scale(1.05);
}

.kc-feature-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 2.6rem);
}

.kc-feature-title {
    margin: 0 0 0.8rem;
    font-size: clamp(1.2rem, 2.1vw, 1.65rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--kc-ink);
}

.kc-feature-excerpt {
    margin-bottom: 1.4rem;
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--kc-ink-soft);
}

/* ==========================================================================
   LIBRARY
   ========================================================================== */
.kc-library {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.kc-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.kc-filter {
    padding: 0.52rem 1.15rem;
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--kc-ink-soft);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--kc-line);
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease,
        transform 0.25s ease;
}

.kc-filter:hover {
    transform: translateY(-2px);
    border-color: var(--gf-green);
}

.kc-filter.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--gf-green), var(--gf-green-dark));
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(94, 179, 70, 0.3);
}

.kc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.3rem;
}

.kc-card {
    display: flex;
    opacity: 1;
    transform: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    /* Carries the vanishing point for the shared 3D tilt in services-tilt.js.
       The wrapper itself never transforms, so the hit box stays put while the
       card inside it rotates. */
    perspective: 900px;
}

/* Hidden by knowledge.js when it does not match the active filter. */
.kc-card[hidden] {
    display: none;
}

/* Filter transition: cards shrink away on the way out and rise in on the way
   back, staggered by the script so the grid reads as rearranging itself. */
.kc-card.is-leaving {
    opacity: 0;
    transform: scale(0.94) translateY(6px);
}

.kc-card.is-entering {
    opacity: 0;
    transform: translateY(14px);
}

.kc-card-link {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    text-decoration: none;
    background: var(--kc-card);
    border: 1px solid rgba(94, 179, 70, 0.2);
    border-radius: 20px;
    box-shadow: var(--kc-shadow);
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.kc-card-link:hover {
    transform: translateY(-7px);
    border-color: rgba(94, 179, 70, 0.5);
    box-shadow: 0 24px 46px -20px rgba(94, 179, 70, 0.45), var(--kc-shadow);
}

/* While the script is driving the rotation it owns the transform outright, and
   easing it here would lag the pointer. */
.kc-card-link.is-tilting {
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

/* --- moving border ring -----------------------------------------------------
   Same construction as the CEO page cards: a conic gradient masked down to a
   2px rim, with the gradient's start angle animated so a highlight travels the
   perimeter. The base of the gradient stays a solid mid-green so the border
   never appears to drop out as the highlight passes.

   @property is what makes an angle animatable; browsers without it fall back
   to the plain `--kc-angle: 0deg` below and simply show a static rim. Declared
   here as well as in ceo.css because the two sheets are never loaded together. */
@property --kc-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes kcRingSpin {
    to { --kc-angle: 360deg; }
}

.kc-card-link,
.kc-format,
.kc-feature-card {
    --kc-angle: 0deg;
}

.kc-card-link::before,
.kc-format::before,
.kc-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from var(--kc-angle),
        #4a9e3c 0deg,
        #4a9e3c 265deg,
        #8ed157 310deg,
        #d9f5b4 332deg,
        #8ed157 352deg,
        #4a9e3c 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    animation: kcRingSpin 3.5s linear infinite;
    animation-play-state: paused;
}

.kc-card-link:hover::before,
.kc-card-link:focus-visible::before,
.kc-format:hover::before,
.kc-format:focus-visible::before,
.kc-feature-card:hover::before,
.kc-feature-card:focus-visible::before {
    opacity: 1;
    animation-play-state: running;
}

/* Title picks up the brand colour as the card lifts. */
.kc-card-link:hover .kc-card-title,
.kc-feature-card:hover .kc-feature-title {
    color: var(--gf-green-dark);
}

.kc-card-title,
.kc-feature-title {
    transition: color 0.25s ease;
}

/* A light sweep across the artwork, so the image reacts as well as moves. */
.kc-card-media::after,
.kc-feature-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 35%,
        rgba(255, 255, 255, 0.38) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.kc-card-link:hover .kc-card-media::after,
.kc-feature-card:hover .kc-feature-media::after {
    transform: translateX(120%);
}

/* Cursor-follow glow, fed --mx/--my by knowledge.js — the same contract the
   CEO page cards use. */
.kc-card-link::after,
.kc-format::after,
.kc-feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%),
        rgba(94, 179, 70, 0.16), transparent 60%);
    transition: opacity 0.35s ease;
}

.kc-card-link:hover::after,
.kc-format:hover::after,
.kc-feature-card:hover::after {
    opacity: 1;
}

/* Keep card content above the glow layer. */
.kc-card-body,
.kc-card-media,
.kc-feature-body,
.kc-feature-media,
.kc-format > * {
    position: relative;
    z-index: 1;
}

.kc-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e3ece6;
}

.kc-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.kc-card-link:hover .kc-card-media img {
    transform: scale(1.06);
}

/* Stand-in for posts with no featured image: the logo hexagon tiled behind a
   single glyph, so an imageless post still looks deliberate rather than broken. */
.kc-card-media--blank {
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse 70% 70% at 50% 40%, rgba(94, 179, 70, 0.16), transparent 70%),
        linear-gradient(135deg, #eef5ea, #dcebe4);
}

.kc-card-media--blank::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1L54 16v32L28 63 2 48V16z M28 63l26 15v18M28 63L2 78v18' fill='none' stroke='%235eb346' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 56px 97px;
}

.kc-card-media--blank i {
    position: relative;
    font-size: 1.9rem;
    color: rgba(94, 179, 70, 0.75);
}

.kc-card-arrow {
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    font-size: 0.78rem;
    color: #ffffff;
    background: var(--gf-green);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.kc-card-link:hover .kc-card-arrow,
.kc-card-link:focus-visible .kc-card-arrow {
    opacity: 1;
    transform: translateY(0);
}

.kc-card-body {
    display: block;
    padding: 1.2rem 1.3rem 1.5rem;
}

.kc-card-title {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.42;
    color: var(--kc-ink);
}

.kc-card-excerpt {
    display: block;
    font-size: 0.85rem;
    line-height: 1.68;
    color: var(--kc-ink-soft);
}

.kc-no-match,
.kc-empty {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: 0.92rem;
    color: var(--kc-ink-soft);
}

.kc-library-foot {
    margin-top: 2.2rem;
    text-align: center;
}

/* ==========================================================================
   FORMATS
   ========================================================================== */
.kc-formats {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.kc-formats-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.3rem;
}

.kc-format {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.9rem 1.7rem;
    text-decoration: none;
    background: var(--kc-card);
    border: 1px solid rgba(94, 179, 70, 0.2);
    border-radius: 22px;
    box-shadow: var(--kc-shadow);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.kc-format:hover {
    transform: translateY(-7px);
    border-color: rgba(94, 179, 70, 0.5);
    box-shadow: 0 24px 46px -20px rgba(94, 179, 70, 0.45), var(--kc-shadow);
}

/* The video playlist is the headline format, so it gets the dark panel. */
.kc-format--feature {
    color: #ffffff;
    background:
        radial-gradient(ellipse 70% 80% at 85% 15%, rgba(120, 185, 69, 0.4), transparent 62%),
        linear-gradient(130deg, var(--gf-navy-deep), var(--gf-navy) 65%, #2b5340 120%);
    border-color: transparent;
}

.kc-format-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.1rem;
    border-radius: 14px;
    font-size: 1rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--gf-green), var(--gf-green-dark));
    box-shadow: 0 10px 20px rgba(94, 179, 70, 0.28);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kc-format:hover .kc-format-icon {
    transform: translateY(-4px) scale(1.07);
}

.kc-format--feature .kc-format-icon {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: none;
}

.kc-format-kicker {
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gf-green-dark);
}

.kc-format--feature .kc-format-kicker {
    color: #a9d87f;
}

.kc-format-title {
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--kc-ink);
}

.kc-format--feature .kc-format-title {
    color: #ffffff;
}

.kc-format-body {
    margin: 0 0 1.3rem;
    font-size: 0.9rem;
    line-height: 1.72;
    color: var(--kc-ink-soft);
}

.kc-format--feature .kc-format-body {
    color: rgba(255, 255, 255, 0.82);
}

.kc-format--feature .kc-link {
    color: #d8ecc4;
}

.kc-format .kc-link {
    margin-top: auto;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media only screen and (max-width: 991px) {
    .kc-grid { grid-template-columns: repeat(2, 1fr); }
    .kc-formats-grid { grid-template-columns: 1fr; }
    .kc-feature-card { grid-template-columns: 1fr; }
    .kc-feature-media { min-height: 14rem; }
}

@media only screen and (max-width: 767px) {
    .kc-section-head--row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

@media only screen and (max-width: 575px) {
    .kc-grid { grid-template-columns: 1fr; }
    .kc-hero-stats { gap: 1.4rem; }
    .kc-search {
        flex-wrap: wrap;
        border-radius: 22px;
        padding: 0.8rem;
    }
    .kc-search-input { flex-basis: 70%; }
    .kc-search-btn { width: 100%; }
    /* A long word would otherwise force the headline wider than the screen. */
    .kc-rotator { min-width: 5.4em; }
}

/* ==========================================================================
   REDUCED MOTION — hold the first word, stop the drift
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .kc-page *,
    .kc-page *::before,
    .kc-page *::after {
        animation: none !important;
        transition: none !important;
    }
    .kc-blob { transform: none !important; }
    .kc-card-arrow { opacity: 1; transform: none; }
}
