/* StickPick — shared stylesheet, mobile-first */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: #eef3ee;                 /* soft fairway green-grey */
    color: #1f2a1f;
    display: flex;
    justify-content: center;
    padding: 16px;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    padding: 24px;
    width: 100%;
    max-width: 420px;
}
.card.wide { max-width: 640px; }

h1 { margin: 0 0 4px; font-size: 1.5rem; color: #205c2e; }
h2 { font-size: 1.1rem; margin: 24px 0 8px; color: #205c2e; }
.tagline { margin: 0 0 20px; color: #667; }

.topbar { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.who { font-size: .9rem; color: #667; }
.who a { color: #2e7d32; }

.count { font-size: .85rem; color: #889; margin: 4px 0 12px; }

/* ---- forms ---- */
label { display: block; margin: 12px 0 4px; font-weight: 600; font-size: .95rem; }

input[type=text], input[type=number], select {
    width: 100%;
    padding: 12px;                        /* big touch targets for on-course use */
    font-size: 1rem;
    border: 1px solid #bcc8bc;
    border-radius: 8px;
}

fieldset {
    border: 1px solid #d5ded5;
    border-radius: 8px;
    margin: 12px 0;
    padding: 8px 12px 12px;
    display: flex;
    gap: 12px;
}
fieldset label { flex: 1; margin-top: 4px; }
legend { font-weight: 700; font-size: .9rem; color: #205c2e; padding: 0 6px; }

button, .btn-secondary {
    display: inline-block;
    margin-top: 16px;
    padding: 14px 22px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: #2e7d32;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}
button:hover { background: #256628; }

.btn-secondary { background: #90a090; }
.btnrow { display: flex; gap: 10px; }

.divider { text-align: center; color: #99a; margin: 16px 0 4px; font-size: .9rem; }

/* starting-bag radio group on sign-in */
.radios label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    margin: 8px 0;
    font-size: .95rem;
}
.radios input[type=radio] { width: auto; transform: scale(1.2); }

.error {
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f5c6c2;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: .95rem;
}
.hint { color: #778; font-size: .9rem; }

/* ---- bag table ---- */
table { width: 100%; border-collapse: collapse; margin-top: 8px; }
th, td { padding: 5px 3px; text-align: center; font-size: .85rem; }
td:first-child, th:first-child { text-align: left; }
thead tr.sub th { font-size: .68rem; color: #889; font-weight: 600; }
tbody tr { border-top: 1px solid #e2eae2; }
tbody tr.editing { background: #f0f7f0; }
td a { color: #2e7d32; font-weight: 600; text-decoration: none; }
td a:hover { text-decoration: underline; }

td.slot { color: #889; font-size: .75rem; width: 1.2em; padding-right: 0; }
td.movecell { white-space: nowrap; width: 2.2em; padding: 0 1px; }
button.move {
    margin: 0;
    padding: 1px 3px;
    font-size: .5rem;
    line-height: 1.3;
    background: #a9bfab;
    border-radius: 3px;
}
button.move:hover { background: #8aa78e; }

/* active / benched toggle */
button.act-on, button.act-off {
    margin: 0;
    padding: 1px 6px;
    font-size: .7rem;
    line-height: 1.4;
    border-radius: 8px;
}
button.act-on  { background: #2e7d32; }
button.act-off { background: #b8c0b8; color: #556; }
button.act-off:hover { background: #9aa89a; }

/* benched rows render dimmed */
tr.benched td, tr.benched td a { color: #a8b2a8; }
tr.benched td a { font-weight: 400; }

.namerow { display: flex; gap: 12px; }
.namerow label:first-child { flex: 2; }
.namerow label:last-child  { flex: 1; }

form.inline { display: inline; }
button.danger {
    margin: 0;
    padding: 1px 5px;
    font-size: .65rem;
    line-height: 1.4;
    background: #c62828;
    border-radius: 5px;
}
button.danger:hover { background: #a52020; }

/* extra squeeze on narrow phones */
@media (max-width: 480px) {
    body { padding: 8px 4px; }
    .card { padding: 14px 8px; }
    th, td { padding: 4px 1px; font-size: .78rem; }
    thead tr.sub th { font-size: .6rem; }
    td a { font-size: .8rem; }
}
