.kgs-slope,
.kgs-slope * {
    box-sizing: border-box;
}

.kgs-slope {
    /* Kongsvinger Golfklubb – brand palette */
    --kgs-forest-deep: #122A18;
    --kgs-forest: #21462D;
    --kgs-sage: #A9BEAA;
    --kgs-sand: #EAE0CE;
    --kgs-cream: #F9F5EE;
    --kgs-charcoal: #1A1B17;
    --kgs-clay: #C76E3C;
    --kgs-line: rgba(18, 42, 24, .12);
    --kgs-muted: rgba(26, 27, 23, .62);

    width: 100%;
    padding: clamp(22px, 2.4vw, 36px);
    border: 1px solid rgba(18, 42, 24, .06);
    border-radius: clamp(24px, 2.4vw, 36px);
    background: var(--kgs-cream);
    color: var(--kgs-charcoal);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden;
}

.kgs-slope button,
.kgs-slope input {
    font: inherit;
}

.kgs-slope__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(24px, 2.4vw, 34px);
}

.kgs-slope__gender {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.kgs-slope__gender-btn {
    min-width: 132px;
    min-height: 46px;
    padding: 10px 24px;
    border: 1px solid rgba(18, 42, 24, .14);
    border-radius: 999px;
    background: transparent;
    color: var(--kgs-charcoal);
    font-weight: 500;
    cursor: pointer;
    transition: background .24s cubic-bezier(.16,1,.3,1), color .24s cubic-bezier(.16,1,.3,1), border-color .24s cubic-bezier(.16,1,.3,1), transform .24s cubic-bezier(.16,1,.3,1);
}

.kgs-slope__gender-btn:hover {
    border-color: rgba(18, 42, 24, .28);
    transform: translateY(-1px);
}

.kgs-slope__gender-btn:focus-visible,
.kgs-slope__tee:focus-visible,
.kgs-slope__input:focus-visible {
    outline: 2px solid var(--kgs-forest);
    outline-offset: 3px;
}

.kgs-slope__gender-btn.is-active {
    border-color: var(--kgs-forest-deep);
    background: var(--kgs-forest-deep);
    color: var(--kgs-cream);
}

.kgs-slope__eyebrow,
.kgs-slope__kicker,
.kgs-slope__section-head,
.kgs-slope__field-label,
.kgs-slope__meta dt,
.kgs-slope__tee-data small,
.kgs-slope__footer {
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 500;
}

.kgs-slope__eyebrow {
    color: var(--kgs-muted);
    text-align: right;
}

.kgs-slope__layout {
    display: grid;
    grid-template-columns: minmax(250px, .95fr) minmax(360px, 1.12fr) minmax(285px, .86fr);
    column-gap: clamp(34px, 3.4vw, 54px);
    row-gap: 28px;
    align-items: stretch;
}

.kgs-slope__intro {
    padding-top: 4px;
}

.kgs-slope__kicker {
    display: inline-block;
    color: var(--kgs-forest);
}

.kgs-slope__title {
    max-width: 8.7ch;
    margin: 12px 0 16px;
    color: var(--kgs-forest-deep);
    font-family: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
    font-size: clamp(42px, 3.6vw, 58px);
    font-weight: 500;
    line-height: .95;
    letter-spacing: -.03em;
}

.kgs-slope__lead {
    max-width: 34ch;
    margin: 0 0 26px;
    color: var(--kgs-muted);
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.55;
}

.kgs-slope__field-label {
    display: block;
    margin-bottom: 8px;
    color: var(--kgs-muted);
}

.kgs-slope__input-wrap {
    position: relative;
}

.kgs-slope__input {
    width: 100%;
    height: 60px;
    padding: 0 66px 0 18px;
    border: 1px solid rgba(18, 42, 24, .16);
    border-radius: 16px;
    background: #fff;
    color: var(--kgs-charcoal);
    outline: none;
    font-size: 20px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    transition: border-color .2s ease, background .2s ease;
}

.kgs-slope__input:focus {
    border-color: var(--kgs-forest);
    background: #fff;
}

.kgs-slope__input::placeholder {
    color: rgba(26, 27, 23, .42);
    font-size: 15px;
    font-weight: 400;
}

.kgs-slope__input-suffix {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: rgba(26, 27, 23, .48);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .12em;
}

.kgs-slope__help,
.kgs-slope__error {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.45;
}

.kgs-slope__help {
    color: rgba(26, 27, 23, .5);
}

.kgs-slope__error {
    min-height: 18px;
    color: var(--kgs-clay);
}

.kgs-slope__tees-wrap {
    min-width: 0;
    width: min(100%, 600px);
    justify-self: end;
}

.kgs-slope__section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 26px;
    padding: 0 10px 10px;
    border-bottom: 1px solid var(--kgs-line);
    color: rgba(26, 27, 23, .52);
}

.kgs-slope__section-head span:last-child {
    color: var(--kgs-forest);
}

.kgs-slope__tees {
    display: grid;
}

.kgs-slope__tee {
    --tee-color: var(--kgs-sand);
    position: relative;
    display: grid;
    grid-template-columns: 38px 18px minmax(82px, 1fr) 76px 52px;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 8px 12px 8px 10px;
    border: 0;
    border-bottom: 1px solid var(--kgs-line);
    background: transparent;
    color: var(--kgs-charcoal);
    text-align: left;
    cursor: pointer;
    transition: background .24s cubic-bezier(.16,1,.3,1), transform .24s cubic-bezier(.16,1,.3,1);
}

.kgs-slope__tee::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: var(--tee-color);
    opacity: 0;
    transform: scaleY(.5);
    transform-origin: center;
    transition: opacity .24s cubic-bezier(.16,1,.3,1), transform .24s cubic-bezier(.16,1,.3,1);
}

.kgs-slope__tee:hover {
    background: rgba(234, 224, 206, .38);
}

.kgs-slope__tee.is-active {
    background: rgba(234, 224, 206, .62);
}

.kgs-slope__tee.is-active::before {
    opacity: 1;
    transform: scaleY(1);
}

.kgs-slope__tee-index {
    color: rgba(26, 27, 23, .38);
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.kgs-slope__tee-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--tee-color);
    border: 1px solid rgba(18, 42, 24, .14);
}

.kgs-slope__tee-name {
    font-family: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -.02em;
}

.kgs-slope__tee-data {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.kgs-slope__tee-data small {
    color: rgba(26, 27, 23, .42);
    font-size: 7px;
    letter-spacing: .1em;
}

.kgs-slope__result {
    --result-accent: var(--kgs-sage);
    position: relative;
    min-height: 100%;
    padding: clamp(24px, 2.3vw, 32px);
    border: 1px solid rgba(249, 245, 238, .08);
    border-radius: 32px;
    background: var(--kgs-forest-deep);
    color: var(--kgs-cream);
    overflow: hidden;
}

.kgs-slope__result::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -74px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: var(--result-accent);
    opacity: .08;
    transition: background .3s ease;
}

.kgs-slope__result-watermark {
    position: absolute;
    top: -20px;
    right: 8px;
    color: rgba(249, 245, 238, .055);
    font-family: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
    font-size: clamp(112px, 10vw, 168px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.05em;
    pointer-events: none;
}

.kgs-slope__result .kgs-slope__kicker {
    position: relative;
    z-index: 1;
    color: var(--kgs-sage);
}

.kgs-slope__result-number {
    position: relative;
    z-index: 1;
    margin-top: clamp(34px, 3.2vw, 46px);
    font-family: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
    font-size: clamp(86px, 8vw, 124px);
    font-weight: 600;
    line-height: .8;
    letter-spacing: -.05em;
    font-variant-numeric: tabular-nums;
}

.kgs-slope.has-result .kgs-slope__result-number {
    animation: kgsSlopeResult .34s cubic-bezier(.16,1,.3,1) both;
}

@keyframes kgsSlopeResult {
    from { opacity: .35; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.kgs-slope__result-label {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    color: rgba(249, 245, 238, .72);
    font-size: 14px;
}

.kgs-slope__result-rule {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 1px;
    margin: 26px 0 20px;
    background: var(--kgs-sage);
}

.kgs-slope__meta {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0;
}

.kgs-slope__meta div {
    min-width: 0;
}

.kgs-slope__meta dt,
.kgs-slope__meta dd {
    margin: 0;
}

.kgs-slope__meta dt {
    margin-bottom: 5px;
    color: rgba(249, 245, 238, .44);
    font-size: 7px;
    letter-spacing: .1em;
}

.kgs-slope__meta dd {
    color: var(--kgs-cream);
    font-size: 15px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.kgs-slope__result-copy {
    position: relative;
    z-index: 1;
    margin: 22px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(249, 245, 238, .12);
    color: rgba(249, 245, 238, .62);
    font-size: 12px;
    line-height: 1.5;
}

.kgs-slope__footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: clamp(22px, 2.4vw, 30px);
    padding-top: 14px;
    border-top: 1px solid var(--kgs-line);
    color: rgba(26, 27, 23, .42);
    font-size: 8px;
}

@media (max-width: 1120px) {
    .kgs-slope__layout {
        grid-template-columns: minmax(230px, .82fr) minmax(360px, 1.08fr);
    }

    .kgs-slope__result {
        grid-column: 1 / -1;
        min-height: 330px;
    }

    .kgs-slope__result-number {
        margin-top: 30px;
    }

    .kgs-slope__result-copy {
        max-width: 50ch;
    }
}

@media (max-width: 760px) {
    .kgs-slope {
        padding: 18px;
        border-radius: 24px;
    }

    .kgs-slope__topbar {
        display: block;
        margin-bottom: 28px;
    }

    .kgs-slope__gender {
        display: grid;
        width: 100%;
    }

    .kgs-slope__gender-btn {
        min-width: 0;
        width: 100%;
        min-height: 44px;
        padding-inline: 16px;
    }

    .kgs-slope__eyebrow {
        margin-top: 14px;
        text-align: left;
        font-size: 8px;
    }

    .kgs-slope__layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .kgs-slope__tees-wrap {
        width: 100%;
        justify-self: stretch;
    }

    .kgs-slope__title {
        max-width: 10ch;
        font-size: clamp(40px, 11.5vw, 54px);
    }

    .kgs-slope__lead {
        margin-bottom: 24px;
    }

    .kgs-slope__tee {
        grid-template-columns: 30px 18px minmax(72px, 1fr) 60px 42px;
        gap: 8px;
        min-height: 58px;
        padding-right: 6px;
    }

    .kgs-slope__tee-name {
        font-size: 17px;
    }

    .kgs-slope__tee-data {
        font-size: 13px;
    }

    .kgs-slope__result {
        grid-column: auto;
        min-height: 330px;
        border-radius: 28px;
    }

    .kgs-slope__meta {
        gap: 8px;
    }

    .kgs-slope__meta dd {
        font-size: 14px;
    }

    .kgs-slope__footer {
        display: grid;
        gap: 7px;
    }
}

@media (max-width: 430px) {
    .kgs-slope__section-head {
        font-size: 8px;
    }

    .kgs-slope__tee-index {
        display: none;
    }

    .kgs-slope__tee {
        grid-template-columns: 16px minmax(62px, 1fr) 56px 40px;
        min-height: 56px;
    }

    .kgs-slope__tee-data small {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kgs-slope *,
    .kgs-slope *::before,
    .kgs-slope *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* v1.1.1 — theme-proof hover states + spacing polish */
.kgs-slope .kgs-slope__gender-btn,
.kgs-slope .kgs-slope__gender-btn:visited {
    background: transparent !important;
    color: var(--kgs-charcoal) !important;
    border-color: rgba(18, 42, 24, .14) !important;
    box-shadow: none !important;
}

.kgs-slope .kgs-slope__gender-btn:hover:not(.is-active) {
    background: var(--kgs-sand) !important;
    color: var(--kgs-forest-deep) !important;
    border-color: var(--kgs-sage) !important;
    box-shadow: none !important;
}

.kgs-slope .kgs-slope__gender-btn.is-active,
.kgs-slope .kgs-slope__gender-btn.is-active:visited {
    background: var(--kgs-forest-deep) !important;
    color: var(--kgs-cream) !important;
    border-color: var(--kgs-forest-deep) !important;
}

.kgs-slope .kgs-slope__gender-btn.is-active:hover {
    background: var(--kgs-forest) !important;
    color: var(--kgs-cream) !important;
    border-color: var(--kgs-forest) !important;
}

.kgs-slope .kgs-slope__tee,
.kgs-slope .kgs-slope__tee:visited {
    background: transparent !important;
    color: var(--kgs-charcoal) !important;
    box-shadow: none !important;
}

.kgs-slope .kgs-slope__tee:hover:not(.is-active) {
    background: rgba(234, 224, 206, .46) !important;
    color: var(--kgs-charcoal) !important;
    box-shadow: none !important;
}

.kgs-slope .kgs-slope__tee.is-active,
.kgs-slope .kgs-slope__tee.is-active:visited,
.kgs-slope .kgs-slope__tee.is-active:hover {
    background: rgba(234, 224, 206, .72) !important;
    color: var(--kgs-charcoal) !important;
    box-shadow: none !important;
}

.kgs-slope .kgs-slope__tee:hover .kgs-slope__tee-name,
.kgs-slope .kgs-slope__tee:hover .kgs-slope__tee-data,
.kgs-slope .kgs-slope__tee.is-active .kgs-slope__tee-name,
.kgs-slope .kgs-slope__tee.is-active .kgs-slope__tee-data {
    color: var(--kgs-charcoal) !important;
}

.kgs-slope .kgs-slope__tee:hover .kgs-slope__tee-index,
.kgs-slope .kgs-slope__tee.is-active .kgs-slope__tee-index {
    color: rgba(26, 27, 23, .48) !important;
}

.kgs-slope .kgs-slope__tee:hover .kgs-slope__tee-data small,
.kgs-slope .kgs-slope__tee.is-active .kgs-slope__tee-data small {
    color: rgba(26, 27, 23, .48) !important;
}

@media (hover: none) {
    .kgs-slope .kgs-slope__gender-btn:hover:not(.is-active) {
        background: transparent !important;
        color: var(--kgs-charcoal) !important;
        border-color: rgba(18, 42, 24, .14) !important;
        transform: none;
    }

    .kgs-slope .kgs-slope__gender-btn.is-active:hover {
        background: var(--kgs-forest-deep) !important;
        border-color: var(--kgs-forest-deep) !important;
    }

    .kgs-slope .kgs-slope__tee:hover:not(.is-active) {
        background: transparent !important;
    }
}
