/* ================================================================
   VOKEY WEDGE GRIND FINDER
   Compact / Nike-inspired
================================================================ */

.wgf {
    --wgf-blue: #164c96;
    --wgf-blue-dark: #103c76;
    --wgf-blue-soft: #f2f6fb;

    --wgf-gold: #b59a67;
    --wgf-gold-soft: #f7f4ee;

    --wgf-black: #111111;
    --wgf-text: #333333;
    --wgf-muted: #757575;

    --wgf-border: #e5e5e5;
    --wgf-soft: #f7f7f7;

    width: 100%;
    max-width: 1180px;

    margin: 4rem auto 5rem;

    padding: 0 1.5rem;

    color: var(--wgf-black);
}


/* ================================================================
   HEADER
================================================================ */

.wgf__header {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 2rem;

    max-width: 980px;

    margin: 0 auto 3.5rem;
}


.wgf__header > div {
    max-width: 720px;
}


.wgf__eyebrow {
    display: block;

    margin-bottom: 0.8rem;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;

    color: var(--wgf-blue);
}


.wgf__header h2 {
    margin: 0 0 1rem;

    font-size: clamp(
        2.1rem,
        4vw,
        3.6rem
    );

    font-weight: 600;

    line-height: 0.98;

    letter-spacing: -0.045em;
}


.wgf__header p {
    max-width: 650px;

    margin: 0;

    font-size: 0.95rem;
    line-height: 1.65;

    color: var(--wgf-muted);
}


.wgf__reset {
    flex: 0 0 auto;

    padding: 0.7rem 0;

    border: 0;
    border-bottom: 1px solid #c9c9c9;

    background: transparent;

    color: var(--wgf-muted);

    font: inherit;
    font-size: 0.8rem;

    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}


.wgf__reset:hover {
    color: var(--wgf-black);

    border-color: var(--wgf-black);
}


/* ================================================================
   MAIN LAYOUT
================================================================ */

.wgf__layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(320px, 0.78fr);

    gap: clamp(
        3rem,
        6vw,
        6rem
    );

    max-width: 980px;

    margin: 0 auto;
}


/* ================================================================
   QUESTIONS
================================================================ */

.wgf__question {
    padding-bottom: 2.6rem;

    margin-bottom: 2.6rem;

    border-bottom:
        1px solid
        var(--wgf-border);
}


.wgf__question:last-child {
    margin-bottom: 0;

    border-bottom: 0;
}


.wgf__question-head {
    display: grid;

    grid-template-columns:
        2rem
        minmax(0, 1fr);

    gap: 0.8rem;

    margin-bottom: 1.7rem;
}


.wgf__number {
    padding-top: 0.18rem;

    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.08em;

    color: var(--wgf-blue);
}


.wgf__question h3 {
    max-width: 520px;

    margin: 0 0 0.55rem;

    font-size: 1.2rem;
    font-weight: 600;

    line-height: 1.28;

    letter-spacing: -0.015em;
}


.wgf__question-head p {
    max-width: 520px;

    margin: 0;

    font-size: 0.82rem;
    line-height: 1.55;

    color: var(--wgf-muted);
}


/* ================================================================
   RANGE
================================================================ */

.wgf__range-wrap {
    padding-left: 2.8rem;
}


.wgf__range {
    --wgf-range-progress: 50%;

    width: 100%;
    height: 4px;

    margin: 0;

    border: 0;
    border-radius: 999px;

    appearance: none;
    -webkit-appearance: none;

    outline: none;

    background:
        linear-gradient(
            to right,
            var(--wgf-blue) 0,
            var(--wgf-blue)
            var(--wgf-range-progress),
            #dedede
            var(--wgf-range-progress),
            #dedede 100%
        );

    cursor: pointer;
}


.wgf__range::-webkit-slider-thumb {
    width: 18px;
    height: 18px;

    border:
        3px solid
        #ffffff;

    border-radius: 50%;

    appearance: none;
    -webkit-appearance: none;

    background:
        var(--wgf-blue);

    box-shadow:
        0 0 0 1px
        var(--wgf-blue),
        0 4px 10px
        rgba(0, 0, 0, 0.12);

    cursor: grab;
}


.wgf__range::-moz-range-thumb {
    width: 18px;
    height: 18px;

    border:
        3px solid
        #ffffff;

    border-radius: 50%;

    background:
        var(--wgf-blue);

    box-shadow:
        0 0 0 1px
        var(--wgf-blue),
        0 4px 10px
        rgba(0, 0, 0, 0.12);

    cursor: grab;
}


.wgf__range-labels {
    display: grid;

    margin-top: 0.8rem;

    font-size: 0.65rem;

    line-height: 1.25;

    color: #858585;
}


.wgf__range-labels--five {
    grid-template-columns:
        repeat(5, 1fr);
}


.wgf__range-labels--three {
    grid-template-columns:
        repeat(3, 1fr);
}


.wgf__range-labels span {
    text-align: center;
}


.wgf__range-labels span:first-child {
    text-align: left;
}


.wgf__range-labels span:last-child {
    text-align: right;
}


/* ================================================================
   CHOICES
================================================================ */

.wgf__choices {
    display: grid;

    gap: 0.55rem;

    padding-left: 2.8rem;
}


.wgf__choices--divot,
.wgf__choices--face {
    grid-template-columns:
        repeat(3, 1fr);
}


.wgf__choice {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-height: 118px;

    padding: 1rem;

    border:
        1px solid
        var(--wgf-border);

    border-radius: 0.75rem;

    background: #ffffff;

    color: var(--wgf-black);

    text-align: left;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}


.wgf__choice:hover {
    transform:
        translateY(-1px);

    border-color:
        #bcbcbc;

    box-shadow:
        0 5px 15px
        rgba(0, 0, 0, 0.04);
}


.wgf__choice.is-active {
    border-color:
        var(--wgf-blue);

    background:
        var(--wgf-blue-soft);

    box-shadow:
        inset 0 0 0 1px
        var(--wgf-blue);
}


.wgf__choice.is-active::after {
    content: "✓";

    position: absolute;

    top: 0.65rem;
    right: 0.65rem;

    display: grid;
    place-items: center;

    width: 1.15rem;
    height: 1.15rem;

    border-radius: 50%;

    background:
        var(--wgf-blue);

    color: #ffffff;

    font-size: 0.6rem;
    font-weight: 700;
}


.wgf__choice-kicker {
    margin-bottom: 1rem;

    font-size: 0.6rem;
    font-weight: 700;

    letter-spacing: 0.12em;

    color: var(--wgf-blue);
}


.wgf__choice-title {
    display: block;

    margin-bottom: 0.3rem;

    font-size: 0.82rem;
    font-weight: 700;
}


.wgf__choice-copy {
    font-size: 0.69rem;

    line-height: 1.4;

    color: var(--wgf-muted);
}


/* ================================================================
   DIVOT VISUAL
================================================================ */

.wgf__divot-visual {
    position: relative;

    display: block;

    width: 100%;
    height: 2.5rem;

    margin-bottom: 0.75rem;

    overflow: hidden;
}


.wgf__divot-visual::before {
    content: "";

    position: absolute;

    top: 1.2rem;

    left: 0;
    right: 0;

    height: 1px;

    background:
        #bfbfbf;
}


.wgf__divot-visual::after {
    content: "";

    position: absolute;

    top: 1.2rem;

    left: 20%;

    width: 60%;

    border-radius:
        0 0 50% 50%;

    background:
        var(--wgf-blue);
}


.wgf__divot-visual--shallow::after {
    height: 0.2rem;
}


.wgf__divot-visual--medium::after {
    height: 0.55rem;
}


.wgf__divot-visual--deep::after {
    height: 1rem;
}


/* ================================================================
   RESULTS
================================================================ */

.wgf__results {
    min-width: 0;
}


.wgf__results-sticky {
    position: sticky;

    top: 2rem;
}


.wgf__results-title {
    margin: 0 0 0.65rem;

    font-size: 1.75rem;

    font-weight: 600;

    line-height: 1.05;

    letter-spacing: -0.035em;
}


.wgf__results-intro {
    margin: 0 0 1.6rem;

    font-size: 0.8rem;

    line-height: 1.55;

    color: var(--wgf-muted);
}


/* ================================================================
   EMPTY STATE
================================================================ */

.wgf__empty {
    padding: 1.5rem;

    border-radius: 0.85rem;

    background:
        #f7f7f7;
}


.wgf__empty[hidden] {
    display: none;
}


.wgf__empty-icon {
    margin-bottom: 1.4rem;

    font-size: 1.5rem;

    color: var(--wgf-blue);
}


.wgf__empty strong {
    display: block;

    margin-bottom: 0.35rem;

    font-size: 0.88rem;
}


.wgf__empty span {
    font-size: 0.76rem;

    line-height: 1.5;

    color: var(--wgf-muted);
}


/* ================================================================
   RESULT LIST
================================================================ */

.wgf__recommendations {
    display: flex;

    flex-direction: column;

    gap: 0;
}


.wgf__result {
    display: grid;

    grid-template-columns:
        120px
        minmax(0, 1fr);

    gap: 1.25rem;

    padding: 1.4rem 0;

    border: 0;

    border-bottom:
        1px solid
        var(--wgf-border);

    background:
        transparent;
}


.wgf__result:first-child {
    padding-top: 0;
}


.wgf__result:last-child {
    border-bottom: 0;
}


.wgf__result--primary {
    border-color:
        var(--wgf-border);

    box-shadow: none;
}


/* ================================================================
   GRIND IMAGE
================================================================ */

.wgf__result-image {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 120px;
    height: 120px;

    padding: 0.6rem;

    overflow: hidden;

    border-radius: 0.8rem;

    background:
        #f5f5f5;
}


.wgf__result-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    mix-blend-mode: multiply;
}


/* ================================================================
   RESULT CONTENT
================================================================ */

.wgf__result-content {
    min-width: 0;
}


.wgf__result-label {
    display: inline-block;

    margin-bottom: 0.45rem;

    padding: 0;

    border-radius: 0;

    background:
        transparent;

    color:
        var(--wgf-gold);

    font-size: 0.62rem;

    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


.wgf__result h4 {
    margin: 0 0 0.1rem;

    font-size: 1.45rem;

    font-weight: 600;

    letter-spacing:
        -0.03em;
}


.wgf__result-subtitle {
    display: block;

    font-size: 0.72rem;

    color:
        var(--wgf-muted);
}


.wgf__result-copy {
    margin: 0.8rem 0 0;

    font-size: 0.76rem;

    line-height: 1.55;

    color:
        var(--wgf-text);
}


/* ================================================================
   PRIMARY RECOMMENDATION
================================================================ */

.wgf__result--primary .wgf__result-label {
    color:
        var(--wgf-blue);
}


.wgf__result--primary .wgf__result-image {
    background:
        var(--wgf-blue-soft);
}


/* ================================================================
   DISCLAIMER
================================================================ */

.wgf__disclaimer {
    margin-top: 1.5rem;

    padding-top: 1.2rem;

    border-top:
        1px solid
        var(--wgf-border);

    font-size: 0.68rem;

    line-height: 1.5;

    color:
        #888888;
}


.wgf__disclaimer strong {
    color:
        var(--wgf-black);
}


/* ================================================================
   NO MATCH
================================================================ */

.wgf__no-match {
    padding: 1.5rem;

    border-radius:
        0.8rem;

    background:
        var(--wgf-soft);
}


.wgf__no-match p {
    margin:
        0.4rem 0 0;

    font-size:
        0.78rem;

    line-height:
        1.5;

    color:
        var(--wgf-muted);
}


/* ================================================================
   TABLET
================================================================ */

@media (max-width: 991.98px) {

    .wgf {
        max-width: 760px;

        margin-top: 3rem;
    }


    .wgf__layout {
        grid-template-columns: 1fr;

        gap: 3.5rem;
    }


    .wgf__results {
        max-width: 620px;

        margin: 0 auto;

        padding-top: 2.5rem;

        border-top:
            1px solid
            var(--wgf-border);
    }


    .wgf__results-sticky {
        position: static;
    }

}


/* ================================================================
   MOBILE
================================================================ */

@media (max-width: 767.98px) {

    .wgf {
        padding:
            0 1rem;
    }


    .wgf__header {
        display: block;

        margin-bottom:
            2.5rem;
    }


    .wgf__reset {
        margin-top:
            1.25rem;
    }


    .wgf__question-head {
        grid-template-columns:
            1.6rem
            minmax(0, 1fr);
    }


    .wgf__range-wrap,
    .wgf__choices {
        padding-left: 0;
    }


    .wgf__choices--divot,
    .wgf__choices--face {
        grid-template-columns: 1fr;
    }


    .wgf__choice {
        min-height: auto;
    }


    .wgf__choices--divot .wgf__choice {
        display: grid;

        grid-template-columns:
            5rem
            minmax(0, 1fr);

        column-gap: 1rem;
    }


    .wgf__choices--divot .wgf__divot-visual {
        grid-row:
            span 2;

        margin: 0;
    }


    .wgf__result {
        grid-template-columns:
            95px
            minmax(0, 1fr);

        gap: 1rem;
    }


    .wgf__result-image {
        width: 95px;

        height: 95px;
    }

}


/* ================================================================
   VERY SMALL SCREENS
================================================================ */

@media (max-width: 479.98px) {

    .wgf__header h2 {
        font-size:
            2rem;
    }


    .wgf__range-labels {
        font-size:
            0.58rem;
    }


    .wgf__result {
        grid-template-columns:
            80px
            minmax(0, 1fr);
    }


    .wgf__result-image {
        width: 80px;

        height: 80px;

        padding:
            0.35rem;
    }


    .wgf__result h4 {
        font-size:
            1.25rem;
    }

}