/* The shared palette, defined once and globally.

   These used to be declared three times over, inside the inline <style> blocks
   of Home, Shots and Upload. Because an inline <style> is not scoped, whichever
   of those pages had rendered leaked its copy to everything else — and on a
   page that declared none of them, reached directly, they were simply
   undefined. A token that only resolves depending on where the reader has
   already been is not a token. */
:root {
    --golf-surface: #fffdf8;
    --golf-surface-soft: #f8f4eb;
    --golf-border: #d7d2c8;
    --golf-text: #1b2119;
    --golf-muted: #706d66;
    --golf-green: #00473a;
    --golf-green-dark: #1b2119;
    --golf-green-soft: #d0d8c8;
    --golf-shadow:
        0 18px 50px rgba(20, 48, 36, .08);
}


html,
body {
    margin: 0;
    min-height: 100%;
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #14211c;
    background: #f4f7f8;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


html {
    scroll-behavior: smooth;
}


body {
    min-width: 320px;
}


* {
    box-sizing: border-box;
}


a {
    color: #0f7a4c;
}


a:hover {
    color: #095d3b;
}


button,
input,
select,
textarea {
    font: inherit;
}


button {
    -webkit-tap-highlight-color: transparent;
}


.btn-primary {
    color: #fff;
    background-color: #0f7a4c;
    border-color: #0f7a4c;
}


.btn-primary:hover,
.btn-primary:focus {
    color: #fff;
    background-color: #095d3b;
    border-color: #095d3b;
}


.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    box-shadow:
        0 0 0 .2rem rgba(15, 122, 76, .12);
}


.content {
    padding-top: 0;
}


h1:focus {
    outline: none;
}


.form-control,
.form-select {
    border-color: #dfe7e3;
}


.form-control:focus,
.form-select:focus {
    border-color: rgba(15, 122, 76, .45);
}


.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}


.invalid {
    outline: 1px solid #c93f49;
}


.validation-message {
    color: #b33a43;
}


/* =========================================================
   LEGACY PAGE POLISH
   Gives older pages a modern baseline until they receive
   their dedicated Golf Performance layout.
   ========================================================= */

.app-content > h1 {
    margin:
        20px
        0
        7px;
    color: #14211c;
    font-size: clamp(2.25rem, 5vw, 3.8rem);
    line-height: 1;
    font-weight: 780;
    letter-spacing: -.05em;
}


.app-content > h1 + p {
    margin-bottom: 18px;
    color: #6d7973;
    font-size: .96rem;
}


table.table {
    overflow: hidden;
    margin-top: 12px;
    border: 1px solid #dfe7e3;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow:
        0 12px 30px rgba(20, 48, 36, .055);
}


table.table > thead > tr > th {
    padding:
        13px
        15px;
    border-bottom: 1px solid #dfe7e3;
    color: #6f7c75;
    background: #f7faf8;
    font-size: .67rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}


table.table > tbody > tr > td {
    padding:
        13px
        15px;
    vertical-align: middle;
    border-bottom-color: #e8eeeb;
    color: #24332b;
}


table.table > tbody > tr:last-child > td {
    border-bottom: 0;
}


table.table.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: #fbfcfc;
}


table.table.table-hover > tbody > tr:hover > * {
    --bs-table-bg-state: #edf7f1;
}


.app-content > table + a,
.app-content > .table-responsive + a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-top: 14px;
    padding: 8px 12px;
    border: 1px solid #dfe7e3;
    border-radius: 10px;
    color: #355246;
    background: #fff;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}


.app-content > table + a:hover,
.app-content > .table-responsive + a:hover {
    color: #0f7a4c;
    background: #f7faf8;
}


.blazor-error-boundary {
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    background: #b32121;
}


.blazor-error-boundary::after {
    content: "An error has occurred.";
}


.darker-border-checkbox.form-check-input {
    border-color: #929292;
}


.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}


.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}


::selection {
    color: #0d2b1d;
    background: #bfe9d1;
}


/* ===== Account pages (login / register / claim) ===== */
.account-shell {
    display: flex;
    justify-content: center;
    padding: 48px 16px;
}

.account-card {
    width: 100%;
    max-width: 420px;
    padding: 28px 26px 30px;
    border: 1px solid rgba(27, 33, 25, .14);
    border-radius: 18px;
    background: #fffdf8;
}

.account-card h1 {
    margin: 0 0 6px;
    color: #1b2119;
    font-size: 1.5rem;
}

.account-sub {
    margin: 0 0 20px;
    color: #706d66;
    font-size: .85rem;
    line-height: 1.5;
}

.account-card label {
    display: block;
    margin-bottom: 14px;
    color: #1b2119;
    font-size: .8rem;
    font-weight: 700;
}

.account-input {
    display: block;
    width: 100%;
    margin-top: 5px;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid rgba(27, 33, 25, .18);
    border-radius: 10px;
    background: #fff;
    color: #1b2119;
    font-size: .92rem;
    font-weight: 400;
}

.account-input:focus-visible {
    outline: 2px solid #00473a;
    outline-offset: 1px;
}

.account-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.account-button {
    width: 100%;
    min-height: 42px;
    margin-top: 6px;
    border: 0;
    border-radius: 999px;
    background: #00473a;
    color: #f3f0e8;
    font-size: .9rem;
    font-weight: 750;
    cursor: pointer;
}

.account-button:hover {
    background: #00352b;
}

.account-button:focus-visible {
    outline: 2px solid #1b2119;
    outline-offset: 2px;
}

.account-error,
.account-ok {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: .82rem;
    line-height: 1.45;
}

.account-error {
    border: 1px solid rgba(176, 60, 45, .30);
    background: #fdf3f1;
    color: #8f3527;
}

.account-ok {
    border: 1px solid rgba(47, 125, 92, .30);
    background: #f1f8f4;
    color: #235c43;
}

.account-error ul {
    margin: 0;
    padding-left: 18px;
}

/* These blocks carry several short paragraphs — a link expiry, a "check spam"
   hint — so the first and last must sit flush against the padding. */
.account-error p,
.account-ok p {
    margin: 0 0 8px;
}

.account-error p:last-child,
.account-ok p:last-child {
    margin-bottom: 0;
}

.account-alt {
    margin: 18px 0 0;
    color: #706d66;
    font-size: .82rem;
    text-align: center;
}

.account-list {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.account-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(27, 33, 25, .10);
    font-size: .88rem;
}

.account-list span {
    color: #706d66;
    font-size: .78rem;
}


/* ===== Import: player resolution step ===== */
.resolve-panel {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid rgba(27, 33, 25, .16);
    border-radius: 16px;
    background: #fffdf8;
}

.resolve-panel h2 {
    margin: 4px 0 6px;
    color: #1b2119;
    font-size: 1.15rem;
}

.resolve-copy {
    margin: 0 0 16px;
    color: #706d66;
    font-size: .84rem;
}

.resolve-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(27, 33, 25, .10);
}

.resolve-name strong {
    display: block;
    color: #1b2119;
    font-size: .95rem;
}

.resolve-name span {
    color: #706d66;
    font-size: .76rem;
}

.resolve-choice {
    min-width: 260px;
}

.resolve-flag {
    margin-bottom: 4px;
    color: #b0704f;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.resolve-matched {
    color: #2f7d5c;
    font-size: .8rem;
}

.resolve-select {
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(27, 33, 25, .18);
    border-radius: 9px;
    padding: 6px 10px;
    font-size: .85rem;
}

.resolve-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(27, 33, 25, .10);
}

.problem-list {
    margin: 6px 0 0;
    padding-left: 18px;
    font-size: .82rem;
    line-height: 1.5;
}

.problem-row {
    font-weight: 700;
}


/* ===== Live session: save or discard ===== */
.save-decision-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 18px;
    padding: 20px 22px;
    border: 1px solid rgba(210, 99, 47, .32);
    border-radius: 16px;
    background: #fff8f5;
}

.save-decision-panel h2 {
    margin: 4px 0 6px;
    font-size: 1.2rem;
}

.save-decision-panel p {
    margin: 0;
    max-width: 52ch;
    color: #706d66;
    font-size: .85rem;
}

.save-decision-actions {
    display: flex;
    gap: 10px;
}

.save-message {
    margin-bottom: 18px;
    padding: 11px 14px;
    border: 1px solid rgba(47, 125, 92, .28);
    border-radius: 12px;
    background: #f1f8f4;
    color: #235c43;
    font-size: .85rem;
}

/* ============================================================
   ACCOUNT MANAGEMENT
   Wider than the single-purpose account cards: these pages are a
   settings surface with several sections, not one focused task.
   ============================================================ */

.manage-shell {
    max-width: 640px;
    margin: 0 auto;
    padding: 28px 20px 56px;
}

.manage-shell h1 {
    margin: 0 0 18px;
    font-size: 1.5rem;
    letter-spacing: -.01em;
}

.manage-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e4e1da;
}

.manage-tab {
    padding: 9px 14px;
    border-bottom: 2px solid transparent;
    color: #706d66;
    font-size: .86rem;
    text-decoration: none;
}

.manage-tab:hover {
    color: #2f2d29;
}

/* NavLink adds this to whichever tab matches the current route. */
.manage-tab.active {
    border-bottom-color: #2f7d5c;
    color: #235c43;
    font-weight: 600;
}

.manage-card {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #e4e1da;
    border-radius: 14px;
    background: #fff;
}

.manage-card h2 {
    margin: 0 0 14px;
    font-size: 1rem;
    letter-spacing: -.005em;
}

.manage-card label {
    display: block;
    margin-bottom: 12px;
    color: #4a4740;
    font-size: .82rem;
}

.manage-facts {
    display: grid;
    grid-template-columns: minmax(110px, auto) 1fr;
    gap: 10px 18px;
    margin: 0;
    font-size: .88rem;
}

.manage-facts dt {
    color: #706d66;
}

.manage-facts dd {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
}

.manage-button,
.manage-button-quiet {
    padding: 9px 16px;
    border-radius: 9px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
}

.manage-button {
    border: 1px solid #2f7d5c;
    background: #2f7d5c;
    color: #fff;
}

.manage-button:hover {
    background: #276b4e;
}

/* Quiet, not disabled: these actions are deliberate but not the primary
   thing you came to the page to do. */
.manage-button-quiet {
    border: 1px solid #d5d1c8;
    background: #fff;
    color: #4a4740;
}

.manage-button-quiet:hover {
    border-color: #b9b4a8;
    background: #faf9f6;
}

.manage-danger {
    border-color: rgba(176, 60, 45, .35);
    background: #fdf3f1;
}

.manage-danger h2 {
    color: #8f3527;
}

.pill {
    padding: 2px 9px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pill-ok {
    background: #e6f3ea;
    color: #235c43;
}

.pill-warn {
    background: #fdf1e3;
    color: #8a5a1c;
}

/* ============================================================
   DOCUMENT PAGES — help, privacy, terms
   Prose, so the measure is capped for readability rather than
   stretched to the viewport.
   ============================================================ */

.doc-shell {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 20px 72px;
    color: #2f2d29;
}

.doc-shell h1 {
    margin: 0 0 10px;
    font-size: 1.7rem;
    letter-spacing: -.015em;
}

.doc-lead {
    margin: 0 0 28px;
    color: #565349;
    font-size: 1rem;
    line-height: 1.65;
}

.doc-shell section {
    margin-bottom: 40px;
    /* Anchored headings must clear the fixed top nav when jumped to. */
    scroll-margin-top: 88px;
}

.doc-shell h2 {
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e4e1da;
    font-size: 1.2rem;
    letter-spacing: -.01em;
}

.doc-shell h3 {
    margin: 26px 0 8px;
    font-size: .98rem;
    font-weight: 650;
}

.doc-shell p,
.doc-shell li {
    font-size: .92rem;
    line-height: 1.72;
}

.doc-shell p {
    margin: 0 0 14px;
}

.doc-shell ul,
.doc-shell ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.doc-shell li {
    margin-bottom: 7px;
}

.doc-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 34px;
    padding: 14px 18px;
    border: 1px solid #e4e1da;
    border-radius: 12px;
    background: #fbf9f6;
}

.doc-toc a {
    color: #235c43;
    font-size: .84rem;
    text-decoration: none;
}

.doc-toc a:hover {
    text-decoration: underline;
}

.doc-faq {
    margin: 0;
}

.doc-faq dt {
    margin-top: 18px;
    font-size: .92rem;
    font-weight: 650;
}

.doc-faq dt:first-child {
    margin-top: 0;
}

.doc-faq dd {
    margin: 6px 0 0;
    font-size: .92rem;
    line-height: 1.72;
    color: #565349;
}

.doc-aside {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e4e1da;
    color: #706d66;
    font-size: .86rem;
}

/* A plain-language restatement beside the formal wording. Distinct enough to
   be recognised as a gloss and not mistaken for the terms themselves. */
.doc-plain {
    margin: 0 0 18px;
    padding: 12px 16px;
    border-left: 3px solid #2f7d5c;
    border-radius: 0 8px 8px 0;
    background: #f4f8f5;
    color: #235c43;
    font-size: .89rem;
    line-height: 1.68;
}

.doc-updated {
    margin: 0 0 26px;
    /* 3.5:1 before — under the 4.5 AA needs for text this size. */
    color: #6a655c;
    font-size: .8rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

/* A link that reads as a button. Used where the action is a navigation to a
   real URL — a download — rather than a form submission. */
.manage-button-link {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid #2f7d5c;
    border-radius: 9px;
    background: #2f7d5c;
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}

.manage-button-link:hover {
    background: #276b4e;
    color: #fff;
}

/* On a phone the players table is wider than the screen, so it scrolls inside
   its card — which pushed the Edit action out of reach behind a sideways swipe.
   Dropping the two columns you don't act on keeps the name, the shot count and
   the action visible without scrolling. Both are still on the player's own page. */
@media (max-width: 560px) {

    .col-secondary {
        display: none;
    }
}

/* Bootstrap's default code colour is #d63384, which measures 3.95:1 on the
   cream background — under AA — and belongs to a palette this app does not
   use. These pages lean on <code> for setting names and paths, so it needs to
   be readable rather than decorative. */
.doc-shell code,
.account-sub code,
.cap code {
    padding: 1px 5px;
    border-radius: 4px;
    background: #eaeee6;
    color: #24332b;
    font-size: .88em;
}


/* ============================================================
   Marketing controls
   ------------------------------------------------------------
   Global rather than scoped to MarketingLayout, because the layout renders the
   header's buttons but the landing and features pages render their own — and a
   component's scoped rules do not reach markup another component rendered. As
   the layout's sheet they styled the header and left every in-page button as a
   bare underlined link.
   ============================================================ */

.site-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 17px;
    border: 1px solid transparent;
    /* Fully rounded, which is the reference site's signature control shape. */
    border-radius: 999px;
    font-size: .87rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform .15s ease,
        background .15s ease,
        border-color .15s ease;
}


.site-button:hover {
    transform: translateY(-1px);
    text-decoration: none;
}


.site-button-solid {
    background: var(--golf-green);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 71, 58, .18);
}


.site-button-solid:hover {
    background: #005f4d;
}


.site-button-ghost {
    border-color: rgba(27, 33, 25, .16);
    background: #fff;
    color: var(--golf-text);
}


.site-button-ghost:hover {
    border-color: rgba(27, 33, 25, .3);
}


/* ============================================================
   "How it works" pages
   ------------------------------------------------------------
   Global rather than scoped, because three separate components render this same
   markup — /how/import, /how/review and /how/practice — and a component's
   scoped rules only reach markup it rendered itself. The alternative, a shell
   component wrapping their content, would need ::deep for every rule inside.
   ============================================================ */

.how {
    max-width: 820px;
    margin: 0 auto;
    padding: 66px 24px 84px;
    color: var(--golf-text);
}

.how-step {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 14px;
    border: 1px solid rgba(0, 71, 58, .18);
    border-radius: 999px;
    background: rgba(0, 71, 58, .05);
    color: var(--golf-green);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.how h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4.6vw, 3.1rem);
    line-height: 1.06;
    font-weight: 780;
    letter-spacing: -.045em;
}

.how-lead {
    margin: 0 0 40px;
    color: #4a4740;
    font-size: 1.04rem;
    line-height: 1.62;
}

.how h2 {
    margin: 40px 0 12px;
    font-size: 1.32rem;
    font-weight: 750;
    letter-spacing: -.028em;
}

.how p {
    margin: 0 0 14px;
    color: #4a4740;
    line-height: 1.68;
}

.how ul {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.how li {
    position: relative;
    margin-bottom: 11px;
    padding-left: 20px;
    color: #4a4740;
    line-height: 1.62;
}

.how li::before {
    content: "";
    position: absolute;
    top: .62em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--golf-green-soft);
}

.how strong {
    color: var(--golf-text);
    font-weight: 700;
}

/* A worked example beside the prose — the numbers a reader would otherwise have
   to imagine. */
.how-example {
    margin: 0 0 16px;
    padding: 18px 20px;
    border-left: 3px solid var(--golf-green);
    border-radius: 0 12px 12px 0;
    background: #f6f8f6;
}

.how-example-title {
    margin-bottom: 10px;
    color: var(--golf-green);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.how-example code,
.how code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .86rem;
}

.how-example pre {
    margin: 0;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .82rem;
    line-height: 1.6;
}

/* Previous / next between the three steps, plus the way back. */
.how-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 48px;
    padding-top: 26px;
    border-top: 1px solid rgba(27, 33, 25, .1);
}

.how-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid rgba(27, 33, 25, .14);
    border-radius: 999px;
    background: #fff;
    color: var(--golf-text);
    font-size: .85rem;
    font-weight: 650;
    text-decoration: none;
}

.how-nav a:hover {
    border-color: rgba(0, 71, 58, .3);
    color: var(--golf-green);
    text-decoration: none;
}

.how-nav .how-nav-cta {
    margin-left: auto;
    border-color: transparent;
    background: var(--golf-green);
    color: #fff;
}

.how-nav .how-nav-cta:hover {
    background: #005f4d;
    color: #fff;
}

@media (max-width: 620px) {

    .how {
        padding: 44px 16px 60px;
    }

    .how-nav .how-nav-cta {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}


/* An optional field says so on its label rather than only in help text, where
   it is read after the decision to skip has already been made. */
.field-optional {
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f1efe8;
    color: #706d66;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}


.field-help {
    margin: -6px 0 16px;
    color: #706d66;
    font-size: .82rem;
    line-height: 1.5;
}


/* A short aside beside a fact — why "not set" matters, without turning the
   definition list into prose. */
.manage-note {
    display: block;
    margin-top: 2px;
    color: #706d66;
    font-size: .8rem;
    line-height: 1.45;
}
