/*
  Kings of Golf · Guide (long-read) · page styles
  Load after /marketing/base.css. Scoped to .pg / .pg-*.
*/

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

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

.pg-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    font-size: 14px;
    color: var(--on-dark-muted);
}

.pg-byline b {
    color: #fff;
    font-weight: 600;
}

.pg-byline i {
    width: 4px;
    height: 4px;
    border-radius: 9px;
    background: #4b6656;
}

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

.pg-main {
    display: flex;
    flex-direction: column;
    gap: 44px;
    min-width: 0;
    max-width: 760px;
}

.pg-toc {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 14px;
    font-size: 15px;
}

.pg-toc .eyebrow {
    color: var(--muted);
    margin: 0 0 6px 10px;
}

.pg-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pg-toc a {
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--ink-2);
    line-height: 1.35;
}

.pg-toc a b {
    width: 18px;
    flex-shrink: 0;
    color: var(--muted);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pg-toc a:hover {
    color: var(--ink);
}

.pg-toc a[aria-current='true'] {
    background: var(--card);
    border-color: var(--line);
    color: var(--ink);
    font-weight: 600;
}

.pg-toc a[aria-current='true'] b {
    color: var(--gold-ink);
}

.pg-toc__progress,
.pg-toc__cta {
    display: none;
}

.pg-answer {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(20, 35, 26, 0.08);
}

.pg-answer__k {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--up);
}

.pg-answer__k::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 9px;
    background: var(--up);
}

.pg-answer p {
    font-size: 18px;
    line-height: 1.5;
    color: var(--ink);
}

.pg-sec {
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-margin-top: calc(var(--nav-h) + 16px);
}

.pg-sec__num {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-ink);
}

.pg-sec h2 {
    font-size: 30px;
    line-height: 1.1;
}

.pg-sec h3 {
    font-size: 20px;
    margin-top: 6px;
}

.pg-sec > p {
    color: var(--ink-2);
}

.pg-h2-sm.pg-h2-sm {
    font-size: 24px;
}

.pg-quote {
    font-size: 19px;
    line-height: 1.45;
    font-weight: 600;
    color: var(--ink) !important;
    letter-spacing: -0.005em;
}

.pg-small {
    font-size: 15px;
}

.pg-note {
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    border-radius: 16px;
    padding: 16px 18px;
    font-size: 15px;
    color: var(--ink-2) !important;
}

.pg-note b {
    color: var(--ink);
}

.pg-photo {
    margin: 0;
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: var(--green-700);
}

.pg-photo img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.pg-photo figcaption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.pg-sizes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pg-size {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pg-size__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pg-size strong {
    font-size: 17px;
}

.pg-size__dots {
    display: flex;
    gap: 3px;
}

.pg-size__dots i {
    width: 10px;
    height: 10px;
    border-radius: 9px;
    background: var(--up);
}

.pg-size__dots i.is-off {
    background: var(--line-2);
}

.pg-size__games {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pg-size__games a {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--ink);
    text-decoration: none;
}

.pg-stakes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.pg-stakes li {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pg-stakes__l {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.pg-stakes__v {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

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

.pg-stakes li.is-worst {
    background: var(--gold-soft);
    border: 2px solid var(--gold);
}

.pg-stakes li.is-worst .pg-stakes__l {
    color: var(--gold-ink);
}

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

.pg-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    margin: 0;
}

.pg-sc {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.pg-sc table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-size: 15px;
}

.pg-sc th,
.pg-sc td {
    padding: 9px 4px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.pg-sc thead th {
    border-top: 0;
    background: var(--surface-2);
    font-weight: 700;
}

.pg-sc th:first-child {
    text-align: left;
    padding-left: 12px;
    border-left: 0;
    width: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.pg-sc thead th:first-child {
    color: var(--ink);
}

.pg-sc td {
    position: relative;
}

.pg-sc__dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 9px;
    background: var(--gold);
}

.pg-sc td .pg-sc__dot {
    position: absolute;
    top: 6px;
    right: 6px;
}

.pg-sc__net td {
    font-weight: 700;
    color: var(--up);
}

.pg-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 14px;
    color: var(--ink-2);
}

.pg-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pg-legend b {
    color: var(--up);
}

.pg-ties {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.pg-ties li {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pg-ties__g {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.pg-ties strong {
    font-size: 19px;
}

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

.pg-ties a {
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
}

.pg-photo--short img {
    height: 220px;
}

.pg-pairs {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pg-pairs div {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    display: grid;
    gap: 4px;
}

.pg-pairs dt {
    font-weight: 700;
}

.pg-pairs dd {
    margin: 0;
    color: var(--ink-2);
    font-size: 15px;
}

.pg-ledger {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.pg-ledger table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.pg-ledger th,
.pg-ledger td {
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    text-align: right;
}

.pg-ledger thead th {
    border-top: 0;
    background: var(--surface);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.pg-ledger th:first-child {
    text-align: left;
}

.pg-ledger tbody th {
    font-weight: 600;
}

.pg-ledger tbody th .avatar {
    vertical-align: middle;
    margin-right: 10px;
}

.pg-ledger .is-up {
    color: var(--up);
    font-weight: 700;
}

.pg-ledger .is-down {
    color: #b42318;
    font-weight: 700;
}

.pg-ledger .is-even {
    color: var(--muted);
    font-weight: 700;
}

.pg-ledger__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    background: var(--up-soft);
    font-weight: 600;
}

.pg-ledger__foot strong {
    color: var(--up);
    font-size: 22px;
}

.pg-rules {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    counter-reset: r;
}

.pg-rules li {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 16px 16px 58px;
    font-size: 15px;
    color: var(--ink-2);
    counter-increment: r;
}

.pg-rules li::before {
    content: counter(r);
    position: absolute;
    left: 16px;
    top: 14px;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--green-950);
    color: var(--gold);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg-rules strong {
    display: block;
    color: var(--ink);
    font-size: 16px;
    margin-bottom: 2px;
}

.pg-faq {
    padding: 0;
}

.pg-deeper {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pg-deeper a {
    height: 100%;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
}

.pg-deeper img,
.pg-deeper__art {
    display: block;
    width: 100%;
    height: 96px;
    object-fit: cover;
    background: var(--green-700);
}

.pg-deeper__art {
    background:
        var(--green-950) url('/marketing/img/homepage-v1/contours-dark.svg')
        center / 400px auto;
    color: var(--up-on-dark);
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

.pg-deeper a > span:last-child {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: var(--muted);
}

.pg-deeper strong {
    color: var(--ink);
    font-size: 15px;
}

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

@media (min-width: 860px) {
    .pg-body {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 56px;
        padding-top: 48px;
        padding-bottom: 72px;
        align-items: start;
    }

    .pg-main {
        gap: 56px;
    }

    .pg-toc {
        position: sticky;
        top: calc(var(--nav-h) + 24px);
        background: transparent;
        border: 0;
        padding: 0;
    }

    .pg-toc .eyebrow {
        margin-left: 10px;
    }

    .pg-toc__progress {
        display: block;
        height: 4px;
        border-radius: 4px;
        background: var(--line);
        margin: 10px 10px 0;
        overflow: hidden;
    }

    .pg-toc__progress i {
        display: block;
        height: 100%;
        width: 0;
        background: var(--gold);
        transition: width 0.2s ease;
    }

    .pg-toc__cta {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 18px;
        background: var(--green-950);
        color: #fff;
        border-radius: 16px;
        padding: 18px;
    }

    .pg-toc__cta span {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.3;
    }

    .pg-answer {
        padding: 22px 24px;
    }

    .pg-answer p {
        font-size: 19px;
    }

    .pg-sec h2 {
        font-size: 34px;
    }

    .pg-quote {
        font-size: 21px;
    }

    .pg-photo img {
        height: 340px;
    }

    .pg-photo--short img {
        height: 260px;
    }

    .pg-sizes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .pg-size {
        padding: 16px;
    }

    .pg-size__head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .pg-stakes,
    .pg-ties {
        grid-template-columns: repeat(3, 1fr);
    }

    .pg-pairs div {
        grid-template-columns: 200px 1fr;
        align-items: center;
        gap: 16px;
    }

    .pg-rules {
        grid-template-columns: 1fr 1fr;
    }

    .pg-deeper {
        grid-template-columns: repeat(4, 1fr);
    }

    .pg-card {
        padding: 20px;
    }
}
