@import url('/font-fallback.css');

/* Shared rem-based typography respects browser font settings and 200% enlargement. */
:root {
  color-scheme: light;
  --ink: #062f1f; --muted: #334b3e; --paper: #fbf7e9; --cream: #f4efd9;
  --surface: #fff; --accent: #73551b; --line: #66725f; --error: #8b1530;
  --type-note: 1.125rem; /* 18px minimum */
  --type-body: 1.25rem; /* 20px descriptions */
  --type-detail: 1.375rem; /* 22px instructions and clinic details */
  --type-emphasis: 1.5rem; /* 24px dates and prices */
  --type-heading: clamp(2rem, 1.75rem + 1vw, 2.5rem);
  --leading: 1.6; --gutter: clamp(1rem, 4vw, 3rem); --radius: .5rem;
}
* { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--type-body)/var(--leading) Arial, Helvetica, sans-serif; }
button, input, select { font: inherit; }
button, a, select { touch-action: manipulation; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; overflow-wrap: anywhere; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 1; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: var(--type-heading); line-height: 1.25; letter-spacing: normal; }
h1 em { color: var(--accent); font-weight: 700; }
h3 { font: 700 var(--type-emphasis)/1.4 Georgia, 'Times New Roman', serif; }
strong { font-weight: 700; }
:where(p, h1, h2, h3, label, .brand, .button, .text-button) { overflow-wrap: anywhere; }
:where(.top, main, footer) { max-width: 82rem; margin-inline: auto; }
:where(.hero, .steps, .facts, .calendar, .section-head, .my-row, .top, footer, .tee-times, .community) > * { min-width: 0; }
:where(button, a, input, select):focus-visible { outline: .2rem solid #73551b; outline-offset: .25rem; box-shadow: 0 0 0 .4rem var(--surface); }
.top { padding: 1.5rem var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; font-size: var(--type-body); letter-spacing: .035em; font-weight: 700; min-height: 3rem; max-width: 100%; }
.brand > span { min-width: 0; }
.brand small { display: block; font-size: var(--type-note); letter-spacing: .025em; line-height: 1.5; margin-top: .35rem; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .5rem .75rem; font-size: var(--type-body); font-weight: 700; line-height: 1.5; border: 0; border-radius: var(--radius); background: transparent; color: var(--ink); text-decoration: underline; text-align: center; white-space: normal; }
.hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: 2.5rem; padding: 3rem var(--gutter); align-items: center; }
.eyebrow { font-size: var(--type-note); line-height: 1.5; letter-spacing: .04em; font-weight: 700; margin-bottom: 1rem; }
.intro { font-size: var(--type-detail); color: var(--ink); margin: 1.5rem 0 1rem; }
.button { display: inline-flex; gap: 1rem; align-items: center; justify-content: center; min-height: 3.25rem; max-width: 100%; padding: .75rem 1.25rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: #fff; font-size: var(--type-body); font-weight: 700; line-height: 1.5; text-decoration: none; text-align: center; white-space: normal; }
.button:hover { background: #174932; text-decoration: underline; }
.secondary { background: transparent; color: var(--ink); }
.secondary:hover { background: #e0e6d5; }
.button:disabled { background: #e1e3d9; color: #334b3e; border-color: #66725f; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); margin: 0 var(--gutter); border-block: 1px solid var(--line); padding: 1.75rem 0; gap: 1.5rem; }
.facts p { display: grid; gap: .5rem; align-content: start; }
.facts strong { font-size: var(--type-emphasis); line-height: 1.5; }
.facts span { font-size: var(--type-detail); color: var(--muted); }
.how { padding: 3.5rem var(--gutter); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 2.5rem; margin-top: 2rem; }
.steps p { font-size: var(--type-body); color: var(--muted); }
.steps b { color: var(--accent); font-size: var(--type-emphasis); display: block; margin-bottom: .75rem; }
.steps strong { display: block; color: var(--ink); font-size: var(--type-detail); margin-bottom: .5rem; }
.clinic-section { background: var(--cream); padding: 3.5rem var(--gutter); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: end; margin-bottom: 2rem; }
.section-head .eyebrow { margin-bottom: .75rem; }
.month-label { font: 700 var(--type-detail)/1.6 Arial, Helvetica, sans-serif; display: grid; gap: .5rem; flex: 0 1 19rem; max-width: 100%; }
select { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; min-height: 3.5rem; border: 2px solid var(--line); background: var(--surface); padding: .65rem; color: var(--ink); border-radius: var(--radius); font: 400 var(--type-detail)/1.6 Arial, Helvetica, sans-serif; }
.notice { display: flex; gap: 1rem; background: #e0e6d5; border-left: .25rem solid var(--ink); padding: 1.5rem; font-size: var(--type-detail); margin-bottom: 1.5rem; }
.notice > span { font-size: var(--type-emphasis); }
.notice strong { display: block; margin-bottom: .5rem; }
.calendar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.5rem; }
.date-card { border: 2px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.date-card .day { font-size: var(--type-body); letter-spacing: .025em; font-weight: 700; }
.date-card .date { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; }
.date-card .date strong { font: 700 2.5rem/1.25 Georgia, serif; }
.date-card .date span { font-size: var(--type-emphasis); font-weight: 700; }
.date-card .time { font-size: var(--type-detail); font-weight: 700; line-height: 1.6; }
.availability { font-size: var(--type-detail); font-weight: 700; }
.badge { font-size: var(--type-note); font-weight: 700; line-height: 1.5; padding: .35rem .65rem; display: inline-block; align-self: start; border-radius: .5rem; background: #eee7d6; color: #503c19; }
.badge.confirmed { background: #dfebdb; color: #174429; }
.date-card .button { margin-top: auto; width: 100%; }
.date-card .count { font-size: var(--type-body); color: var(--muted); }
.date-card.is-selected { border: 3px solid #73551b; background: #fff8d9; }
.selection-label { color: #503c19; font-size: var(--type-detail); font-weight: 700; }
.selection-label[hidden] { display: none; }
.date-card.is-booked { border: 3px solid var(--ink); background: #e4eddf; }
.date-card.is-unavailable { border-style: dashed; background: #e8e9e0; }
.small { font-size: var(--type-note); color: var(--muted); line-height: 1.6; }
.holiday { margin-top: 1.75rem; }
.my-section { padding: 3.5rem var(--gutter); }
.my-section .section-head { align-items: center; margin-bottom: 1rem; }
.message { padding: 1.5rem; border-left: .3rem solid var(--ink); background: #e0e6d5; margin: 1.5rem 0; }
.message h3 { font: 700 var(--type-emphasis)/1.5 Arial, sans-serif; margin-bottom: .75rem; }
.message p { font-size: var(--type-detail); }
.my-row { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.my-row > div { flex: 1 1 24rem; }
.my-row h3 { font-size: var(--type-emphasis); }
.my-row p { font-size: var(--type-detail); margin-top: .75rem; }
.my-row .small { font-size: var(--type-note); }
.my-row .payment-status { font-size: var(--type-detail); font-weight: 700; }
.community { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; background: #dfe6d8; padding: 3rem var(--gutter); gap: 2rem; }
.community > div { flex: 1 1 28rem; }
.community p:not(.eyebrow) { font-size: var(--type-body); margin-top: 1.5rem; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding: 3rem var(--gutter); font-size: var(--type-note); }
footer > div { max-width: 100%; }
footer p { margin-bottom: .75rem; }
footer a:not(.brand) { display: inline-flex; align-items: center; min-height: 3rem; padding-block: .4rem; }
dialog { color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: .75rem; padding: clamp(1rem, 3vw, 2rem); max-width: 44rem; width: calc(100% - 2rem); max-height: calc(100dvh - 2rem); overflow: auto; font-size: var(--type-detail); }
dialog::backdrop { background: #062f1fcc; backdrop-filter: blur(3px); }
.dialog-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 1rem; }
.dialog-head .eyebrow { margin: 0; flex: 1 1 10rem; }
.close { flex: 0 0 3rem; min-height: 3rem; padding: 0; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 2rem; line-height: 1.2; color: var(--ink); }
dialog h2 { font-size: var(--type-heading); margin: 1rem 0; }
dialog label:not(.checkbox) { display: grid; gap: .5rem; margin: 1.5rem 0; font-size: var(--type-detail); font-weight: 700; }
input:not([type=checkbox]) { width: 100%; min-width: 0; min-height: 3.5rem; padding: .75rem; border: 2px solid var(--line); background: var(--surface); border-radius: var(--radius); color: var(--ink); font-size: var(--type-detail); }
input::placeholder { color: var(--muted); opacity: 1; }
.checkbox { display: flex; gap: .75rem; font-size: var(--type-detail); margin: 1.5rem 0; align-items: start; min-height: 3rem; }
.checkbox input { flex: 0 0 1.5rem; width: 1.5rem; height: 1.5rem; accent-color: var(--ink); margin: .35rem 0 0; }
.checkbox span { min-width: 0; }
.full { width: 100%; margin-top: 1.25rem; }
.honey, [hidden] { display: none !important; }
.error { color: var(--error); font-weight: 700; }
#catalog-status { margin: 1rem 0; font-size: var(--type-detail); }
#registration-status:not(:empty) { margin-top: 1.5rem; padding: 1rem; background: #e0e6d5; border-left: .25rem solid var(--ink); }
#registration-status.error { background: #fce9e9; border-color: var(--error); }
.registration-success { margin-top: 1.5rem; }
.registration-success .button { margin-top: 1rem; }
#install-instructions p { margin: 1.5rem 0; font-size: var(--type-detail); }
.skip { position: fixed; top: -20rem; left: 1rem; max-width: calc(100% - 2rem); background: white; padding: .75rem; z-index: 10; min-height: 3rem; font-size: var(--type-body); font-weight: 700; }
.skip:focus { top: 1rem; }
.privacy-page > p { margin-top: 1.5rem; }
.privacy-page > a { display: inline-flex; align-items: center; min-height: 3rem; margin-bottom: 1.5rem; }
.privacy-page .steps { margin-block: 2rem; }
@media (max-width: 64rem) { .hero { grid-template-columns: 1fr; } .hero-photo { grid-row: 1; } .hero-copy { max-width: 46rem; } }
@media (max-width: 40rem) {
  .top { gap: 1.25rem; }
  .header-actions { width: 100%; }
  .hero, .how, .clinic-section, .my-section { padding-block: 2.5rem; }
  .section-head { display: grid; }
  .month-label { width: 100%; }
  .notice { padding: 1rem; }
  .notice > span { display: none; }
  .date-card { padding: 1.25rem; }
  .my-row { align-items: start; }
  .community, footer { padding-block: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) {
  .button, input, select, .date-card, .badge, .message, .notice { border: 2px solid ButtonText; }
  .date-card.is-selected { outline: 3px solid Highlight; outline-offset: .2rem; }
  :where(button, a, input, select):focus-visible { outline-color: Highlight; box-shadow: none; }
}

/* The golf locker shares the readable type and welcoming Kingdom palette. */
.locker-section { background: #f3efde; border-block: 2px solid var(--line); }
.locker-section h3 { font: 700 var(--type-heading)/1.35 Georgia,serif; margin: .5rem 0 1.25rem; }
.locker-section h4 { font: 700 var(--type-emphasis)/1.5 Arial,sans-serif; margin: 0 0 .5rem; }
.locker-section p { max-width: 70ch; }
.locker-actions,.locker-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.locker-welcome-card { background: var(--surface); border: 2px solid var(--line); border-radius: 1rem; padding: clamp(1.25rem,4vw,2.5rem); margin-top: 1.5rem; }
.locker-welcome-card p + p { margin-top: 1rem; }
.locker-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap: 1rem; margin: 2rem 0; }
.locker-summary > div { display: flex; flex-direction: column; padding: 1.25rem; background: var(--ink); color: #fff; border-radius: .75rem; }
.locker-summary strong { font: 700 clamp(2rem,3vw,2.5rem)/1.4 Georgia,serif; overflow-wrap: anywhere; }
.locker-summary span { font-size: var(--type-body); font-weight: 700; }
.locker-nav { display: flex; flex-wrap: wrap; gap: .75rem; padding-block: 1rem 2rem; }
.locker-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .6rem 1rem; border: 2px solid var(--ink); border-radius: .5rem; font-weight: 700; background: var(--paper); }
.locker-toolbar { margin-block: 1rem; }
.locker-panel { padding-block: 2.5rem; border-top: 2px solid var(--line); margin-top: 2rem; scroll-margin-top: 1rem; }
.locker-panel .eyebrow { color: #503c19; }
.locker-panel .my-row:first-child { padding-top: 1rem; }
.locker-panel .attendance-status { font-weight: 700; }
.money-card,.lesson-note { padding: 1.5rem; border: 2px solid var(--line); border-radius: .75rem; background: var(--surface); margin-top: 1.25rem; }
.credit-card { background: #e0e8da; }
.money-card p + p { margin-top: .75rem; }
.empty-state { margin-block: 1.25rem; padding: 1.25rem; border-left: .3rem solid var(--accent); background: var(--paper); }
.align-prompts { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,11rem),1fr)); gap: 1rem; margin-block: 1.75rem; }
.align-prompts p { padding: 1rem; background: #e0e8da; border-radius: .5rem; font-size: var(--type-body); }
.align-prompts strong { display: block; font-size: var(--type-detail); color: var(--ink); }
.note-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 1rem; }
.locker-form { max-width: 52rem; margin-top: 1.5rem; }
.locker-form label { display: grid; gap: .5rem; margin-block: 1.25rem; font-size: var(--type-detail); font-weight: 700; }
.locker-form input,.locker-form select,.locker-form textarea { width: 100%; max-width: 100%; min-width: 0; min-height: 3.5rem; padding: .75rem; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: 400 var(--type-detail)/1.6 Arial,sans-serif; }
.locker-form textarea { resize: vertical; }
/* Keep native iOS select text inside its own control at enlarged text sizes. */
select { -webkit-appearance: none; appearance: none; contain: paint; padding-right: 2.25rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='m4 7 6 6 6-6' fill='none' stroke='%23062f1f' stroke-width='2.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .65rem center; background-size: 1.25rem; }
.locker-form textarea::placeholder { color: var(--muted); opacity: 1; }
.form-pair { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,19rem),1fr)); gap: 1rem; }
.locker-form input[readonly] { background: #e8e9e0; }
.locker-footer { margin-top: 2rem; font-weight: 700; }
.locker-footer a { display: inline-block; min-height: 3rem; margin-left: .5rem; }
#login-status:not(:empty),#profile-status:not(:empty),#note-status:not(:empty) { padding: 1rem; background: #e0e8da; border-left: .25rem solid var(--ink); margin-top: 1.25rem; }
#login-status.error,#profile-status.error,#note-status.error { background: #fce9e9; border-color: var(--error); }
textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
#login-code { letter-spacing: .2em; font-weight: 700; }
@media (max-width:40rem) { .locker-actions > button { flex: 1 1 100%; } .locker-nav a { flex: 1 1 12rem; } .locker-panel { padding-block: 2rem; } .money-card,.lesson-note { padding: 1.1rem; } }


#admin-panel > .month-label { margin-block: 1.5rem; font-size: var(--type-detail); }
#admin-status { margin-block: 1.25rem; font-weight: 700; }
.admin-person .text-button { justify-content: start; text-align: left; padding-left: 0; max-width: 100%; }
.admin-person p + p, #admin-health p { margin-top: .75rem; }
#admin-links { margin-top: 1.5rem; }

.learning-card .button { margin-top: 1.25rem; }
.locker-options { margin-block: 1rem; }
.locker-options > summary,.booking-details > summary { cursor: pointer; min-height: 3rem; padding: .75rem .25rem; font-size: var(--type-body); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.locker-options > summary:focus-visible,.booking-details > summary:focus-visible { outline: .2rem solid var(--accent); outline-offset: .2rem; }
.booking-details { margin-top: 1rem; }
.inline-recap { margin-block: 1rem; }
.inline-recap .learning-card { margin-top: 0; }
.recap-pending { padding: 1.25rem; border: 2px solid var(--line); background: var(--surface); border-radius: .75rem; }
.attendance-feedback:empty { display: none; }
.attendance-feedback:not(:empty) { color: var(--error); font-weight: 700; }
.my-row .button { margin-top: 1rem; }
#community-library > .month-label { margin-block: 1.5rem; }
#admin-recap-status, #admin-resource-status { margin-top: 1.25rem; font-weight: 700; }
.suggestion-section > p { margin-block:1rem; }
.suggestion-section > .month-label { margin-block:1.5rem; max-width:28rem; }
.suggestion-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:2rem; margin-block:1.5rem; align-items:start; }
.suggestion-columns > * { min-width:0; }
.suggestion-form { background:var(--cream); padding:1.5rem; border-radius:.75rem; }
.suggestion-form p { margin-block:1rem; }
.suggestion-topic .button { margin-top:1rem; width:100%; }
.suggestion-topic .button[aria-pressed="true"] { background:#dce8d4; color:var(--ink); border-width:3px; }
.suggestion-count,#suggestion-status,#suggestion-own-status { font-weight:700; margin-block:1rem; }
.suggestion-admin { margin-top:2rem; padding-top:2rem; border-top:2px solid var(--line); }
.suggestion-admin .lesson-note label { display:block; margin-block:1rem; }
.clinic-theme { font-size:var(--type-detail); line-height:1.4; margin-block:.75rem; }
.clinic-theme-description { font-size:var(--type-body); }
@media(max-width:48rem){.suggestion-columns{grid-template-columns:minmax(0,1fr);}.suggestion-form{padding:1rem;}}
.locker-form label.checkbox { display: flex; font-weight: 400; }
.locker-form label.checkbox input { min-height: 1.5rem; padding: 0; }
