/*
  Kings of Golf · Golf betting glossary · page styles (GLOSSARY TEMPLATE)
  Load after /marketing/base.css. Scoped to .gl / .gl-*.
  Shared and NOT redefined here: .gh-crumbs (Games hub CSS); base .wrap .eyebrow .rail .btn .avatar .final .sr-only.
  Breakpoints match base: 860px and 1100px.
*/

.gl {
    --muted: #56625a;
    --card: #ffffff;
    --border: #e2e5dd;
}

.gl :is(h1, h2, h3, h4) {
    font-weight: 700;
}

.gl-hero {
    background:
        var(--green-950) url('/marketing/img/homepage-v1/contours-dark.svg')
        left 40% / 1100px auto no-repeat;
    color: #fff;
}

.gl-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 36px;
    padding-bottom: 40px;
}

.gl-hero__copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gl-hero h1 {
    font-size: 38px;
    line-height: 1.04;
    letter-spacing: -0.02em;
}

.gl-hero__lede {
    max-width: 44ch;
    color: var(--on-dark);
    font-size: 17px;
}

.gl-search {
    margin-top: 6px;
    display: flex;
    max-width: 520px;
    height: 56px;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    background: #fff;
    padding: 0 18px;
    color: var(--muted);
}

.gl-search[hidden] {
    display: none;
}

.gl-search input {
    min-width: 0;
    flex: 1;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 17px;
    outline: none;
}

.gl-search:focus-within {
    box-shadow: 0 0 0 3px var(--gold);
}

.gl-mosaic {
    display: none;
}

.gl-az {
    position: sticky;
    top: var(--nav-h);
    z-index: 5;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.gl-az__inner {
    display: flex;
    height: 60px;
    align-items: center;
    gap: 12px;
}

.gl-az ol {
    margin: 0;
    display: flex;
    min-width: 0;
    flex: 1;
    gap: 4px;
    overflow-x: auto;
    padding: 0;
    list-style: none;
    scrollbar-width: none;
}

.gl-az ol::-webkit-scrollbar {
    display: none;
}

.gl-az a,
.gl-az li > span {
    display: flex;
    height: 40px;
    width: 34px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.gl-az a {
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
}

.gl-az a[aria-current='true'] {
    border-color: var(--green-950);
    background: var(--green-950);
    color: var(--gold);
}

.gl-az li > span {
    color: #b9c0b5;
}

.gl-az li.is-empty a {
    pointer-events: none;
    background: transparent;
    color: #b9c0b5;
}

.gl-az__count {
    display: none;
    color: var(--muted);
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

.gl-popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 24px;
}

.gl-popular .eyebrow {
    margin-right: 6px;
    color: var(--muted);
}

.gl-popular a {
    box-sizing: border-box;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    padding: 8px 14px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.gl-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 24px;
    padding-bottom: 56px;
}

.gl-list {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 32px;
}

.gl-letter {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    scroll-margin-top: calc(var(--nav-h) + 76px);
}

.gl-letter[hidden] {
    display: none;
}

.gl .gl-letter__L {
    color: var(--gold);
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.gl-terms {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gl-term {
    display: flex;
    flex-direction: column-reverse;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    padding: 18px;
    scroll-margin-top: calc(var(--nav-h) + 76px);
}

.gl-term[hidden] {
    display: none;
}

.gl-term:target {
    box-shadow: 0 0 0 3px var(--gold);
}

.gl-term__tx {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.gl-term h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    font-size: 22px;
}

.gl-term dfn {
    font-style: normal;
}

.gl-tag {
    border-radius: 999px;
    background: var(--surface-2);
    padding: 3px 9px;
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.gl-tag--kog {
    background: var(--gold-tint);
    color: var(--gold-ink);
}

.gl-tag--gen {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
}

.gl-term__def {
    color: var(--ink);
    font-size: 17px;
    line-height: 1.5;
}

.gl-term__eg {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 12px;
    background: var(--surface);
    padding: 10px 12px;
    color: var(--ink-2);
    font-size: 15px;
}

.gl-term__eg b {
    color: var(--ink);
}

.gl-term__go {
    font-size: 15px;
    font-weight: 600;
}

.gl-term__see {
    color: var(--muted);
    font-size: 14px;
}

.gl-term__see a {
    font-weight: 600;
}

.gl-term__pic {
    display: block;
    height: 160px;
    width: 100%;
    border-radius: 14px;
    background: var(--green-700);
    object-fit: cover;
}

.gl-empty {
    border: 1px dashed #c7cec4;
    border-radius: 18px;
    background: var(--card);
    padding: 24px;
    color: var(--ink-2);
    text-align: center;
}

.gl-viz {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-variant-numeric: tabular-nums;
}

.gl-n {
    box-sizing: border-box;
    display: inline-flex;
    min-width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--surface-2);
    padding: 0 10px;
    font-size: 20px;
    font-weight: 700;
}

.gl-n--lo {
    background: var(--up-soft);
    color: var(--up);
}

.gl-n--hi {
    background: #fdeeec;
    color: #b42318;
}

.gl-op {
    color: var(--muted);
    font-weight: 700;
}

.gl-sf {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0;
    list-style: none;
}

.gl-sf li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-radius: 10px;
    background: var(--surface);
    padding: 8px 4px;
    text-align: center;
}

.gl-sf b {
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

.gl-sf span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.gl-sf li.is-pts {
    background: var(--up-soft);
}

.gl-sf li.is-pts b {
    color: var(--up);
}

.gl-ladder {
    display: flex;
    height: 56px;
    align-items: flex-end;
    gap: 6px;
}

.gl-ladder i {
    box-sizing: border-box;
    display: flex;
    width: 34px;
    align-items: flex-end;
    justify-content: center;
    border-radius: 8px;
    padding-bottom: 6px;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.gl-ladder i:nth-child(1) {
    height: 22px;
    background: #eef0ea;
    color: var(--muted);
}

.gl-ladder i:nth-child(2) {
    height: 32px;
    background: var(--gold);
    color: var(--ink);
}

.gl-ladder i:nth-child(3) {
    height: 44px;
    background: #f59a3c;
    color: var(--ink);
}

.gl-ladder i:nth-child(4) {
    height: 56px;
    background: #e8780f;
    color: #fff;
}

.gl-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gl-cta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-radius: var(--radius-lg);
    background: var(--green-950);
    padding: 22px;
    color: #fff;
}

.gl-cta__big {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.gl-cta__small {
    color: var(--on-dark-muted);
    font-size: 14px;
}

.gl-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    padding: 20px;
}

.gl .gl-card h2 {
    font-size: 18px;
}

.gl-card p {
    color: var(--ink-2);
    font-size: 15px;
}

.gl-card > a {
    font-size: 15px;
    font-weight: 600;
}

.gl-card--sage {
    border-color: var(--line-2);
    background: var(--surface-2);
}

.gl-games {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 0;
    list-style: none;
}

.gl-games a {
    display: block;
    border-radius: 10px;
    background: var(--surface);
    padding: 10px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.final__sub {
    margin-top: 8px;
    color: var(--on-dark);
}

@media (min-width: 860px) {
    .gl-hero__inner {
        grid-template-columns: minmax(0, 1fr) 420px;
        align-items: center;
        gap: 48px;
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .gl-hero h1 {
        font-size: 56px;
    }

    .gl-hero__lede {
        font-size: 19px;
    }

    .gl-mosaic {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 140px 140px;
        gap: 10px;
    }

    .gl-mosaic div {
        position: relative;
        overflow: hidden;
        border-radius: 18px;
        background: var(--green-700) center / cover;
    }

    .gl-mosaic div:first-child {
        grid-row: span 2;
    }

    .gl-mosaic div.is-wide {
        grid-column: span 2;
    }

    .gl-mosaic b {
        position: absolute;
        bottom: 10px;
        left: 10px;
        border: 1px solid rgb(255 255 255 / 35%);
        border-radius: 10px;
        background: rgb(14 36 22 / 60%);
        padding: 6px 10px;
        font-size: 13px;
        font-weight: 700;
        backdrop-filter: blur(8px);
    }

    .gl-az__count {
        display: inline;
    }

    .gl-body {
        grid-template-columns: minmax(0, 1fr) 300px;
        align-items: start;
        gap: 48px;
        padding-top: 28px;
        padding-bottom: 72px;
    }

    .gl-letter {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 20px;
    }

    .gl .gl-letter__L {
        position: sticky;
        top: calc(var(--nav-h) + 84px);
        font-size: 56px;
    }

    .gl-term {
        padding: 20px 22px;
    }

    .gl-term--pic {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 150px;
    }

    .gl-term__pic {
        min-height: 150px;
        height: 100%;
    }

    .gl-sf {
        grid-template-columns: repeat(6, 1fr);
    }

    .gl-side {
        position: sticky;
        top: calc(var(--nav-h) + 84px);
    }
}

@media (min-width: 1100px) {
    .gl-hero__inner {
        grid-template-columns: minmax(0, 1fr) 470px;
    }

    .gl-mosaic {
        grid-template-rows: 150px 150px;
    }

    .gl-body {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}
