/* The Hill Par 3 - shared styles */
:root{
  --green:#203F33; --green-2:#2B5244; --ink:#1D2120; --sand:#F5F3EC; --tint:#E6ECE7; --tint-2:#EEF3EF;
  --line:#E1E5DF; --line-2:#C9D2CB; --muted:#5B635F; --body:#3E4643; --white:#FFFFFF; --pale:#DCE5DF; --soft:#BFD0C5;
  --display:'Fraunces', Georgia, serif; --sans:'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-lg:28px; --r-md:18px; --r-sm:12px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--sand);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.5}
img{max-width:100%;display:block}
a{color:var(--green)} a:hover{color:var(--ink)}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid #7FA592;outline-offset:2px}
h1,h2,h3{font-family:var(--display);color:var(--green);margin:0;line-height:1.05;letter-spacing:-0.01em}
.wrap{max-width:1200px;margin:0 auto;padding:0 20px}
.eyebrow{margin:0;font-size:13px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--green)}
.muted{color:var(--muted)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 24px;border-radius:999px;border:0;
  background:var(--green);color:var(--white);font-weight:800;font-size:16px;text-decoration:none;cursor:pointer}
.btn:hover{background:var(--green-2);color:var(--white)}
.btn.light{background:var(--white);color:var(--green);border:1px solid var(--line-2)}
.btn.light:hover{background:var(--tint-2);color:var(--green)}
.btn.block{display:flex;width:100%}
.btn.big{min-height:56px;font-size:17px}
.btn[disabled]{opacity:.5;cursor:not-allowed}

/* site header / footer */
.site-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding-top:18px;padding-bottom:18px}
.site-head .logo img{height:52px;width:auto}
.site-nav{display:flex;flex-wrap:wrap;align-items:center;gap:6px 22px;font-weight:700;font-size:15px}
.site-nav a{color:var(--ink);text-decoration:none}
.site-nav a.btn{color:var(--white)}
.site-foot{background:var(--ink);color:#D9DED9;margin-top:40px}
.site-foot .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;padding-top:36px;padding-bottom:36px}
.site-foot img{height:54px;width:auto}
.site-foot nav{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:14px}
.site-foot a{color:#D9DED9}

/* landing */
.hero{display:flex;flex-wrap:wrap;gap:40px;align-items:center;padding-top:20px;padding-bottom:48px}
.hero-text{flex:1 1 360px;min-width:0;display:flex;flex-direction:column;gap:22px}
.hero h1{font-size:clamp(44px,6vw,76px);font-weight:700;line-height:1.02;letter-spacing:-.02em}
.hero p.lead{margin:0;font-size:19px;line-height:1.55;color:var(--body);max-width:470px}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.hero-photo{flex:1 1 480px;min-width:0;position:relative}
.hero-photo img{width:100%;height:clamp(300px,42vw,480px);object-fit:cover;border-radius:var(--r-lg)}
.stats{background:var(--green);color:var(--white)}
.stats .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px 32px;padding-top:26px;padding-bottom:26px}
.stat{display:flex;align-items:baseline;gap:10px}
.stat b{font-family:var(--display);font-size:40px;font-weight:700;line-height:1}
.stat span{font-size:15px;font-weight:700}
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding-top:64px;padding-bottom:24px}
.tile{min-width:0;background:var(--white);border:1px solid var(--line);border-radius:var(--r-lg);padding:28px;display:flex;flex-direction:column;gap:16px}
.tile.dark{background:var(--green);color:var(--white);border:0}
.tile.dark h2{color:var(--white)}
.tile h2{font-size:28px}
.span2{grid-column:span 2}
.rowspan2{grid-row:span 2}
.score-tile{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px;padding:36px}
.score-tile .txt{flex:1 1 260px;display:flex;flex-direction:column;gap:14px}
.score-tile h2{font-size:clamp(30px,3.4vw,40px)}
.score-tile p{margin:0;color:var(--pale)}
.qr-card{background:var(--white);border-radius:20px;padding:14px;display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--green);font-size:12px;font-weight:800}
.qr-card img{width:150px;height:150px}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{min-height:36px;padding:0 13px;border-radius:999px;border:1px solid #D5DCD6;background:var(--white);font-size:13px;font-weight:700;cursor:pointer}
.chip[aria-selected="true"]{background:var(--green);border-color:var(--green);color:var(--white)}
.lb-mini{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.lb-mini li{display:grid;grid-template-columns:30px 1fr auto 42px;align-items:center;gap:10px;padding:10px 12px;border-radius:12px}
.lb-mini li.top{background:var(--tint-2)}
.lb-mini .pos{font-weight:800;color:var(--green)}
.lb-mini .nm{font-weight:700;display:flex;flex-direction:column;min-width:0}
.lb-mini .nm small{font-weight:500;font-size:12px;color:var(--muted)}
.lb-mini .sc{font-family:var(--display);font-weight:700;font-size:22px}
.lb-mini .tp{font-weight:800;font-size:14px;text-align:right;color:var(--green)}
.empty{padding:16px;border-radius:12px;background:var(--tint-2);color:var(--body);font-size:14px}
.table-scroll{overflow-x:auto}
table.card{border-collapse:collapse;width:100%;min-width:600px;text-align:center;font-size:15px}
table.card thead th{background:var(--green);color:var(--white);padding:12px 6px}
table.card thead th:first-child{border-radius:10px 0 0 10px;text-align:left;padding-left:14px}
table.card thead th:last-child{border-radius:0 10px 10px 0}
table.card tbody th{text-align:left;padding:12px 14px}
table.card tbody tr+tr{border-top:1px solid #E6EAE5}
.story{display:flex;flex-wrap:wrap;gap:40px;align-items:center;padding-top:48px;padding-bottom:48px}
.story img{flex:1 1 480px;min-width:0;width:100%;height:clamp(280px,36vw,440px);object-fit:cover;border-radius:var(--r-lg)}
.story .txt{flex:1 1 360px;min-width:0;display:flex;flex-direction:column;gap:18px}
.story h2{font-size:clamp(34px,4vw,44px)}
.story p{margin:0;font-size:17px;line-height:1.65;color:var(--body)}
.visit{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding-bottom:40px}
.map{border:0;width:100%;height:170px;border-radius:16px;background:var(--tint)}
dl.hours{margin:0;display:grid;grid-template-columns:1fr auto;gap:10px 16px}
dl.hours dd{margin:0;font-weight:800}
.form{display:flex;flex-direction:column;gap:10px}
.form label{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:700}
.form input,.form textarea{font-size:16px;padding:12px;border-radius:12px;border:0;background:var(--white);color:var(--ink)}
.form textarea{resize:vertical}
.hp{position:absolute;left:-9999px}
.note{font-size:14px;margin:0}

@media (max-width:900px){
  .tiles,.visit{grid-template-columns:minmax(0,1fr)}
  .span2,.rowspan2{grid-column:auto;grid-row:auto}
}

/* app (phone) screens */
.app{max-width:520px;margin:0 auto;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:var(--sand)}
.bar{background:var(--green);color:var(--white);padding:12px 16px 18px;display:flex;flex-direction:column;gap:12px}
.bar-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.bar h1{color:var(--white);font-size:30px}
.bar .sub{font-size:12px;color:var(--soft);font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.bar .mark{width:72px;height:auto}
.icon-btn{width:44px;height:44px;border-radius:999px;border:0;background:rgba(255,255,255,.14);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--white);text-decoration:none;flex-shrink:0}
.icon-btn svg{width:20px;height:20px}
.spacer44{width:44px;flex-shrink:0}
.body{padding:16px;display:flex;flex-direction:column;gap:14px;flex:1}
.foot{padding:12px 16px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--sand);position:sticky;bottom:0;display:flex;flex-direction:column;gap:10px}
.field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:800}
.field input,.field select{font-size:16px;font-weight:500;padding:13px 14px;border-radius:14px;border:1px solid var(--line-2);background:var(--white)}
.field input:focus{border:2px solid var(--green);padding:12px 13px}
.field small{font-weight:500;color:var(--muted)}
.welcome{display:flex;gap:12px;align-items:center;background:var(--tint);border-radius:14px;padding:12px 14px}
.welcome b{display:block}
.welcome span{font-size:13px;color:var(--body)}
.seg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.seg button{min-height:46px;border-radius:12px;border:1px solid var(--line-2);background:var(--white);font-weight:700;font-size:15px;cursor:pointer}
.seg button[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:var(--white);font-weight:800}
.stepper{display:flex;align-items:center;justify-content:space-between;background:var(--white);border:1px solid var(--line);border-radius:16px;padding:8px}
.step{width:48px;height:48px;border-radius:12px;border:0;background:var(--tint);font-size:26px;font-weight:700;color:var(--green);cursor:pointer;line-height:1}
.step.plus{background:var(--green);color:var(--white)}
.step[disabled]{opacity:.35;cursor:not-allowed}
.stepper .val{font-family:var(--display);font-size:34px;font-weight:700;color:var(--green)}
.check{display:flex;gap:12px;align-items:flex-start;background:var(--white);border:1px solid var(--line);border-radius:16px;padding:14px;cursor:pointer}
.check input{width:22px;height:22px;margin:0;accent-color:var(--green);flex-shrink:0}
.check b{display:block;font-size:15px}
.check span{font-size:13px;color:var(--muted)}
.fine{margin:0;font-size:12px;color:var(--muted);text-align:center}
.pcard{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:10px}
.pcard-top{display:flex;align-items:center;gap:10px}
.avatar{width:34px;height:34px;border-radius:999px;background:var(--green);color:var(--white);font-weight:800;font-size:14px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.pcard input[type=text],.pcard input[type=email],.pcard select{font-size:16px;padding:10px 12px;border-radius:10px;border:1px solid #D5DCD6;background:#FAFAF7;width:100%}
.pcard .row2{display:grid;grid-template-columns:minmax(0,1fr) 128px;gap:8px}
.pcard label.mini{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:800;color:var(--muted)}
.pcard .tick{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700}
.pcard .tick input{width:20px;height:20px;accent-color:var(--green)}
.link-btn{background:none;border:0;color:var(--muted);font-size:13px;font-weight:700;text-decoration:underline;cursor:pointer;padding:6px}
.add-btn{min-height:50px;border-radius:16px;border:2px dashed #9FB2A6;background:transparent;color:var(--green);font-weight:800;font-size:15px;cursor:pointer}
.err{background:#FBEAEA;color:#7A1F1F;border-radius:12px;padding:10px 12px;font-size:14px;font-weight:600}

/* hole screen */
.hole-head{position:relative;height:210px;background:var(--green);color:var(--white);overflow:hidden;flex-shrink:0}
.hole-head img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.5}
.hole-head .in{position:absolute;inset:0;padding:12px 16px 16px;display:flex;flex-direction:column;justify-content:space-between}
.hole-head .icon-btn{background:rgba(29,33,32,.55)}
.hole-no{display:flex;flex-direction:column}
.hole-no small{font-size:13px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.hole-no b{font-family:var(--display);font-size:80px;font-weight:700;line-height:.9}
.hole-info{display:flex;flex-direction:column;align-items:flex-end;background:rgba(29,33,32,.62);padding:10px 14px;border-radius:14px}
.hole-info b{font-size:20px}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800;background:var(--ink);color:var(--white);padding:7px 12px;border-radius:999px}
.pill.ok{background:rgba(29,33,32,.55)}
.dots{display:flex;justify-content:space-between;padding:10px 12px;background:var(--white);border-bottom:1px solid var(--line)}
.dot{width:34px;height:34px;border-radius:999px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;border:1px solid #D5DCD6;background:transparent;color:var(--muted);cursor:pointer}
.dot.done{background:var(--tint);border-color:var(--tint);color:var(--green)}
.dot.now{background:var(--green);border-color:var(--green);color:var(--white)}
.prow{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:10px 10px 10px 14px;display:flex;align-items:center;gap:10px}
.prow .who{flex:1;min-width:0;display:flex;flex-direction:column}
.prow .who b{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prow .who span{font-size:13px;color:#555E5A}
.prow .num{width:42px;text-align:center;font-family:var(--display);font-weight:700;font-size:34px}
.prow .num.ghost{color:#A9B3AD}
.nav2{display:grid;grid-template-columns:1fr 2fr;gap:10px}

/* scorecard */
table.sc{width:100%;border-collapse:separate;border-spacing:0 4px;text-align:center}
table.sc thead th{font-size:12px;font-weight:800;color:var(--muted);padding:4px 0}
table.sc .hn{background:var(--ink);color:var(--white);font-family:var(--display);font-size:19px;border-radius:10px 0 0 10px;width:42px;height:44px}
table.sc tbody tr.h td{background:var(--white)}
table.sc tbody tr.h td:last-child{border-radius:0 10px 10px 0}
table.sc .par{font-size:13px;color:var(--muted);font-weight:700;width:30px}
.mk{display:inline-flex;width:30px;height:30px;align-items:center;justify-content:center;font-weight:700;font-size:17px}
.mk.u{border:2px solid var(--green);border-radius:999px;color:var(--green)}
.mk.o1{border:2px solid var(--ink)}
.mk.o2{border:2px solid var(--ink);outline:2px solid var(--ink);outline-offset:2px}
.mk.na{color:#A9B3AD}
table.sc tr.tot td,table.sc tr.tot th{background:var(--green);color:var(--white);height:46px}
table.sc tr.tot th{border-radius:10px 0 0 10px;font-size:13px}
table.sc tr.tot td:last-child{border-radius:0 10px 10px 0}
table.sc tr.tot td.big{font-family:var(--display);font-size:21px;font-weight:700}
.legend{display:flex;justify-content:center;gap:16px;font-size:12px;color:#4A544F}
.legend span{display:flex;align-items:center;gap:6px}
.legend i{width:13px;height:13px;display:inline-block}

/* results / lists */
.results{background:var(--white);border-radius:20px;padding:4px 14px;box-shadow:0 8px 24px rgba(29,33,32,.12);margin:-14px 16px 0;position:relative}
.res{display:flex;align-items:center;gap:12px;padding:12px 0}
.res+.res{border-top:1px solid #E6EAE5}
.res .pos{width:22px;font-weight:800;color:var(--green)}
.res .who{flex:1;min-width:0;display:flex;flex-direction:column}
.res .who small{font-size:12px;font-weight:700;color:var(--muted)}
.res .who small.good{color:var(--green)}
.res .sc{font-family:var(--display);font-size:26px;font-weight:700}
.res .tp{width:34px;text-align:right;font-weight:800;color:var(--green)}
.sync{display:flex;gap:12px;align-items:flex-start;background:var(--ink);color:var(--white);border-radius:18px;padding:14px 16px}
.sync.ok{background:var(--tint);color:var(--ink)}
.sync b{display:block}
.sync span{font-size:13px;opacity:.85}
.resume{background:var(--green);color:var(--white);border-radius:20px;padding:16px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.resume b{font-family:var(--display);font-size:24px;display:block}
.resume span{font-size:14px;color:var(--pale)}

/* leaderboard page */
.tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.tabs button{min-height:40px;padding:0 14px;border-radius:999px;font-weight:800;font-size:14px;white-space:nowrap;cursor:pointer;border:1px solid rgba(255,255,255,.35);background:transparent;color:var(--white)}
.tabs button[aria-selected="true"]{background:var(--white);color:var(--green);border-color:var(--white)}
.top5{background:var(--white);padding:12px 16px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:6px}
.top5 .hd{display:flex;justify-content:space-between;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:0 10px}
.lrow{display:grid;grid-template-columns:34px 1fr auto 42px;align-items:center;gap:10px;padding:9px 10px}
.top5 .lrow{border-radius:14px;background:var(--tint-2)}
.top5 .lrow:first-of-type{background:var(--green);color:var(--white)}
.badge{width:28px;height:28px;border-radius:999px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;background:var(--green);color:var(--white)}
.top5 .lrow:first-of-type .badge{background:var(--white);color:var(--green)}
.lrow .nm{display:flex;flex-direction:column;min-width:0}
.lrow .nm b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lrow .nm small{font-size:12px;opacity:.8}
.lrow .sc{font-family:var(--display);font-weight:700;font-size:23px}
.lrow .tp{font-weight:800;font-size:14px;text-align:right}
.rest{flex:1;padding:6px 16px 16px}
.rest .lrow{border-bottom:1px solid #E3E7E2}
.rest .lrow .pos{font-weight:800;font-size:14px;color:#555E5A;text-align:center}
.lrow.me{outline:2px solid var(--green);outline-offset:-2px;border-radius:12px}
.mebar{position:sticky;bottom:0;background:var(--ink);color:var(--white);padding:12px 16px calc(14px + env(safe-area-inset-bottom))}
.mebar .lrow{padding:0}

/* history */
.statgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.statgrid div{background:rgba(255,255,255,.12);border-radius:14px;padding:10px 12px;display:flex;flex-direction:column}
.statgrid div:first-child{background:var(--white);color:var(--green)}
.statgrid small{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.statgrid b{font-family:var(--display);font-size:28px}
.round{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:12px 14px}
.round.best{border:2px solid var(--green)}
.round summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none}
.round summary::-webkit-details-marker{display:none}
.round .d{flex:1;display:flex;flex-direction:column}
.round .d small{font-size:12px;font-weight:700;color:var(--muted)}
.round .d small.good{color:var(--green)}
.round .sc{font-family:var(--display);font-weight:700;font-size:24px}
.round .tp{width:34px;text-align:right;font-weight:800;color:var(--green)}
.round .holes{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:2px;margin-top:10px;text-align:center;font-size:12px;color:var(--muted)}
.round .holes .mk{width:26px;height:26px;font-size:14px;margin:2px auto 0;color:var(--ink)}

/* admin */
.admin{max-width:1000px;margin:0 auto;padding:20px}
.admin table{width:100%;border-collapse:collapse;background:var(--white);border-radius:12px;overflow:hidden;font-size:14px}
.admin th,.admin td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.admin .hid{opacity:.45;text-decoration:line-through}

/* ---------- phone layout fixes ---------- */
.lb-mini li.empty{display:block;grid-template-columns:none}
@media (max-width:700px){
  .wrap{padding:0 16px}
  .site-head{flex-wrap:nowrap;padding-top:14px;padding-bottom:14px}
  .site-head .logo img{height:44px}
  .site-nav a:not(.btn){display:none}
  .site-nav a.btn{min-height:44px;padding:0 18px;font-size:15px}
  .hero{gap:28px;padding-bottom:32px}
  .hero-actions .btn{flex:1 1 100%}
  .stats .wrap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px}
  .stat{flex-direction:column;gap:2px}
  .stat b{font-size:34px}
  .tiles{padding-top:32px;gap:16px}
  .visit{gap:16px}
  .tile{padding:22px 18px;border-radius:22px}
  .score-tile{padding:26px 20px}
  .qr-card{display:none}
  table.card{min-width:0;font-size:13px}
  table.card thead th{padding:10px 2px}
  table.card thead th:first-child{padding-left:10px}
  table.card tbody th{padding:10px 10px}
  table.card td{padding:0 1px}
  .story{gap:24px;padding-top:32px;padding-bottom:32px}
  .site-foot .wrap{flex-direction:column;align-items:flex-start}
}
