/* Golf Impact S(up)port - frontend styles */
.gis-dashboard,
.gis-round-entry,
.gis-practice-plan,
.gis-stats,
.gis-training-library,
.gis-coach-dashboard {
    max-width: 880px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.5;
}

.gis-dashboard__lead {
    color: #4b5563;
}

.gis-grid {
    display: grid;
    gap: 16px;
}

.gis-grid--stats {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.gis-grid--cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gis-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.gis-card__label {
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.gis-card__value {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
}

.gis-section {
    margin: 28px 0;
}

.gis-focus-list {
    padding-left: 20px;
}

.gis-focus-list li {
    margin-bottom: 8px;
}

.gis-table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gis-table th,
.gis-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.gis-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.gis-button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #047857;
    color: #047857;
    background: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.gis-button--primary {
    background: #047857;
    color: #fff;
}

.gis-button[disabled] {
    opacity: .6;
    cursor: progress;
}

/* Round entry */
.gis-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.gis-form__row label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 200px;
}

.gis-holes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.gis-hole-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
}

.gis-hole-card legend {
    font-weight: 700;
    padding: 0 6px;
}

.gis-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.gis-field--check {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.gis-form input[type="text"],
.gis-form input[type="number"],
.gis-form input[type="date"],
.gis-form select {
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
}

.gis-notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 12px 0;
}

.gis-notice--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.gis-notice--warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.gis-result {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 8px;
}

.gis-result--success {
    background: #ecfdf5;
    color: #065f46;
}

.gis-result--error {
    background: #fef2f2;
    color: #991b1b;
}

.gis-result--pending {
    background: #f3f4f6;
    color: #374151;
}

.gis-tag {
    display: inline-block;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    margin-bottom: 8px;
}

.gis-muted {
    color: #9ca3af;
    font-size: 14px;
}

/* ---- Combined app hub (tab menu) ---- */
.gis-app-hub {
    max-width: 552px;
    margin: 0 auto;
    padding: 0 16px 24px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.gis-hub__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 6;
}

.gis-hub__tab {
    flex: 0 0 auto;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    font-weight: 600;
    font-size: 15px;
    color: #111827;
    cursor: pointer;
    white-space: nowrap;
}

.gis-hub__tab.is-active {
    background: #047857;
    border-color: #047857;
    color: #fff;
}

.gis-hub-panel {
    display: none;
    padding-top: 8px;
}

.gis-hub-panel.is-active {
    display: block;
}

/* Inside the hub the modules should not add their own max-width again. */
.gis-hub-panel .gis-app,
.gis-hub-panel .gis-dashboard,
.gis-hub-panel .gis-practice-plan,
.gis-hub-panel .gis-stats,
.gis-hub-panel .gis-training-library,
.gis-hub-panel .gis-coach-dashboard {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* ---- App-like round entry ---- */
.gis-app {
    max-width: 520px;
    padding: 0 16px 24px;
    box-sizing: border-box;
}

/* Robust hiding: some themes set display on <section>, which beats the
   native [hidden] attribute. Force it for our stepper. */
.gis-round-entry [hidden] {
    display: none !important;
}

.gis-group {
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid #eef0f2;
    border-radius: 14px;
    background: #fafafa;
}

.gis-group__title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #047857;
}

.gis-static {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #065f46;
    font-weight: 700;
}

.gis-app__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    background: #fff;
    padding: 10px 0;
    z-index: 5;
}

.gis-app__progress {
    flex: 1;
    text-align: center;
}

.gis-app__progress > span {
    font-weight: 700;
    font-size: 15px;
}

.gis-progress {
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    margin-top: 6px;
    overflow: hidden;
}

.gis-progress__bar {
    height: 100%;
    width: 0;
    background: #047857;
    transition: width .25s ease;
}

.gis-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
}

.gis-step {
    padding: 8px 0 16px;
}

.gis-step h3 {
    margin: 4px 0 12px;
}

.gis-hole-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.gis-hole-meta {
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

.gis-zone-hint {
    background: #ecfdf5;
    color: #065f46;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
}

.gis-zone-hint--small {
    padding: 6px 10px;
    margin-top: 0;
}

.gis-choice {
    margin: 0 0 18px;
}

.gis-group .gis-choice:last-child {
    margin-bottom: 0;
}

.gis-choice--hero .gis-chip {
    min-width: 52px;
    min-height: 52px;
    font-size: 18px;
}

.gis-choice__label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.gis-choice__opts,
.gis-seg {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gis-chip {
    min-width: 48px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1.5px solid #d1d5db;
    background: #fff;
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.gis-chip.is-active {
    background: #047857;
    border-color: #047857;
    color: #fff;
}

.gis-seg {
    gap: 10px;
}

.gis-seg .gis-chip {
    flex: 1;
    min-width: 0;
}

.gis-chip--yes.is-active {
    background: #047857;
    border-color: #047857;
}

.gis-chip--no.is-active {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

.gis-select,
.gis-text {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box;
}

.gis-app__footer {
    display: flex;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
}

.gis-app__footer .gis-button {
    flex: 1;
    text-align: center;
}

.gis-button--block {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.gis-button--ghost {
    background: #fff;
    color: #374151;
    border-color: #d1d5db;
}

/* ---- v0.5 score entry: steppers, sections, badges, hole nav ---- */
.gis-step__title {
    margin: 0;
}

.gis-hole-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gis-badge {
    background: #047857;
    color: #fff;
    border-radius: 999px;
    padding: 4px 12px;
    font-weight: 700;
    font-size: 14px;
}

.gis-hole-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 8px 0 4px;
}

.gis-zone-chip {
    background: #ecfdf5;
    color: #065f46;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
}

.gis-topar {
    font-weight: 800;
    font-size: 14px;
}

.gis-topar.is-under { color: #047857; }
.gis-topar.is-par   { color: #374151; }
.gis-topar.is-over  { color: #b45309; }

.gis-sec {
    padding: 14px 0;
    border-top: 1px solid #eef0f2;
}

.gis-sec__title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9ca3af;
}

.gis-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
}

.gis-row__label {
    flex: 1 1 auto;
    font-weight: 600;
}

.gis-row--bool {
    flex-direction: column;
    align-items: stretch;
}

.gis-row--bool .gis-row__label {
    margin-bottom: 6px;
}

.gis-row--note {
    flex-direction: column;
    align-items: stretch;
}

.gis-stepper {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    overflow: hidden;
}

.gis-step-btn {
    width: 46px;
    height: 46px;
    border: none;
    background: #fff;
    font-size: 22px;
    font-weight: 700;
    color: #047857;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.gis-step-btn:active {
    background: #f0fdf4;
}

.gis-step-val {
    min-width: 48px;
    text-align: center;
    font-weight: 800;
    font-size: 18px;
    line-height: 46px;
    border-left: 1.5px solid #eef0f2;
    border-right: 1.5px solid #eef0f2;
    padding: 0 6px;
}

.gis-holenav {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #047857;
    color: #fff;
    border-radius: 14px;
    padding: 10px 12px;
    margin-top: 16px;
}

.gis-holenav__arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.gis-hole-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px;
}

.gis-holenav__info {
    flex: 1;
    text-align: center;
}

.gis-holenav__title {
    display: block;
    font-weight: 800;
}

.gis-holenav__meta {
    display: block;
    font-size: 13px;
    opacity: .9;
}
