/* The club app's clothes (js/club-theme.js sets the variables on <html data-club>). Everything here is scoped to html[data-club],
   so without a club the app is exactly the Scratch it was.  Direction: the club's own colour is the ground, cream is the type, one accent. */

/* Tokens the whole app already reads. Light screens keep their paper; the accent follows the club. */
html[data-club] { --brass: var(--club-acc-ink); --brass-ink: var(--club-acc-ink); }
html[data-club][data-scene="play"], html[data-club] .screen.dusk { --brass: var(--club-acc); --brass-ink: var(--club-acc); }

/* The page behind the page, and every dusk screen: the club's deep colour instead of Scratch green. */
html[data-club][data-dusk] { background: var(--club-deep); }
html[data-club] .screen.dusk { --paper: var(--club-deep); background: linear-gradient(var(--club-deep), var(--club-ground) 55%, var(--club-deep)); background-attachment: fixed; }

/* Primary buttons carry the club colour. */
html[data-club] .btn.primary { background: var(--club-ground); border-color: var(--club-ground); color: var(--club-on); }
html[data-club][data-scene="play"] .btn.primary { background: var(--club-acc); border-color: var(--club-acc); color: var(--club-deep); }
html[data-club] .screen.dusk .btn.primary { background: var(--club-on); border-color: var(--club-on); color: var(--club-deep); }

/* Tab bar: the club's deep colour, cream labels, the accent for where you are, a cream Play disc. */
html[data-club] .tabbar, html[data-club][data-dusk] .tabbar { background-color: var(--club-deep); background-image: none; border-top: 1px solid color-mix(in srgb, var(--club-on) 18%, var(--club-deep)); box-shadow: 0 -6px 18px rgba(0, 0, 0, .22); }
html[data-club] .tabbar a, html[data-club][data-dusk] .tabbar a { color: color-mix(in srgb, var(--club-on) 72%, var(--club-deep)); text-shadow: none; }
html[data-club] .tabbar a[aria-current="page"], html[data-club][data-dusk] .tabbar a[aria-current="page"] { color: var(--club-acc); }
html[data-club] .tabbar a.play span, html[data-club][data-dusk] .tabbar a.play span { color: color-mix(in srgb, var(--club-on) 72%, var(--club-deep)); }
html[data-club] .tabbar a.play .disc, html[data-club][data-dusk] .tabbar a.play .disc { background: var(--club-on); border-color: var(--club-deep); }
html[data-club] .tabbar a.play .disc .ico, html[data-club][data-dusk] .tabbar a.play .disc .ico { color: var(--club-deep); }

/* Home: no Scratch tower film and no grass. The hero is the club's colour (or its own picture), the sheet under it the same colour darker. */
html[data-club] .hero { background: var(--club-deep); }
html[data-club] .hero .photo { background: linear-gradient(180deg, color-mix(in srgb, var(--club-deep) 86%, transparent), color-mix(in srgb, var(--club-deep) 40%, transparent) 55%, color-mix(in srgb, var(--club-deep) 90%, transparent)), var(--club-hero, linear-gradient(135deg, var(--club-ground), var(--club-deep))); background-size: cover; background-position: center; }
html[data-club] .hero .photo:has(.hero-vid) { background: none; }
html[data-club] .sheet-home { background: linear-gradient(var(--club-deep), var(--club-ground) 140%); box-shadow: 0 -10px 30px rgba(0, 0, 0, .25); }

/* Header: crest and the club's name, set in the display face. */
.club-head { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--club-on, #fff); }
.club-head .club-mark { flex: none; }
.club-head .club-title { display: grid; gap: 3px; min-width: 0; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.05; letter-spacing: -.01em; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.club-head .club-title small { font: 650 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .82; }
.club-head .club-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-brand.has-club.club-only { padding-left: 0; }

/* The Scratch signature: small, quiet, the same line wherever it appears. */
.powered { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 22px 0 6px; font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--quiet); text-decoration: none; }
.powered b { font: 600 15px/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); }
.df-fav { width: 18px; height: 18px; flex: none; object-fit: contain; }   /* the green golf planet, wherever "Powered by Deep Field" appears */
.sheet-home .powered, .screen.dusk .powered { color: color-mix(in srgb, var(--club-on, #fff) 70%, transparent); }
.sheet-home .powered b, .screen.dusk .powered b { color: var(--club-on, #fff); }

/* The opening screen under a club link: the club's own name and crest over its colour. */
.wl-club { display: grid; justify-items: center; gap: 14px; text-align: center; color: var(--club-on, #fff); }
.wl-club .crest-lg { width: 96px; height: 96px; }
.wl-club h1 { margin: 0; font: 500 clamp(30px, 9vw, 40px)/1.05 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.wl-club small { font: 650 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: .82; }
html[data-club] .wl { background: var(--club-deep); }
html[data-club] .wl::before { top: 0; height: 100%; background: linear-gradient(180deg, color-mix(in srgb, var(--club-deep) 58%, transparent), color-mix(in srgb, var(--club-deep) 80%, transparent) 55%, var(--club-deep)); }
html[data-club] .wl::after { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--club-deep) 92%, transparent) 70%); }
.wl-club .powered { margin: 8px 0 0; color: color-mix(in srgb, var(--club-on) 72%, transparent); }
.wl-club .powered b { color: var(--club-on); }

/* Me: whose app this is, and the way back to plain Scratch. */
.me-club-app { margin: 18px 0 6px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; }
.me-club-app .mca-who { display: flex; align-items: center; gap: 12px; }
.me-club-app .mca-who b { display: block; font: 500 17px/1.2 var(--serif); }
.me-club-app .mca-who span span, .me-club-app .mca-who div span { display: block; font-size: 13px; color: var(--quiet); margin-top: 2px; }
.me-club-app .me-quiet { justify-self: start; min-height: 44px; }
.mca-hint { margin: 0; font-size: 13px; color: var(--quiet); }
.me-club-app .powered { margin: 6px 0 0; justify-content: flex-start; }

/* Home's other grass pictures become the club's colour too (stage 2 replaces this Home outright). */
html[data-club] .home .idx-band { background: linear-gradient(180deg, var(--club-ground), var(--club-deep)); }
html[data-club] .home .start-pill { background: linear-gradient(90deg, var(--club-ground), var(--club-deep)); border-color: color-mix(in srgb, var(--club-acc) 70%, transparent); }
html[data-club] .home .grass-band, html[data-club] .home .resume-card { background: linear-gradient(90deg, var(--club-ground), var(--club-deep)); }
html[data-club] .hero { height: clamp(150px, 20svh, 200px); }
html[data-club] .home[data-state="round"] .hero, html[data-club] .home[data-state="finished"] .hero { height: clamp(150px, 20svh, 200px); }

/* Me: a real button, not a link-looking word. */
.me-club-app .me-quiet { box-sizing: border-box; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; color: var(--ink); text-decoration: none; font-weight: 600; }

/* The HNA block in Me (js/club-hna.js): same quiet look as the other club rows. */
.me-hna { display: grid; gap: 6px; padding: 12px 0 2px; justify-items: start; }
.me-hna > b { font: 650 14px/1.2 var(--sans); }
.me-club-app .me-hna .me-quiet { justify-self: start; }

/* The manager's door in Me (js/club-manager.js). */
.me-mgr { display: grid; gap: 8px; padding: 6px 0 2px; justify-items: start; }
.me-mgr .btn { min-height: 46px; padding: 0 18px; display: inline-grid; place-items: center; text-decoration: none; }
.me-mgr summary { cursor: pointer; list-style: none; }
.me-mgr summary::-webkit-details-marker { display: none; }
.me-mgr .input { width: 100%; box-sizing: border-box; min-height: 46px; }

/* "Get the full Scratch" in Me. */
.me-get-scratch { display: inline-grid; place-items: center; min-height: 46px; padding: 0 18px; text-decoration: none; justify-self: start; }

/* Halfway house ordering (screens/club-halfway.js). */
.hf-menu { display: grid; gap: 0; margin: 0 0 8px; padding: 0; list-style: none; }
.hf-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #DAD7CB; }
.hf-n { display: grid; gap: 1px; min-width: 0; }
.hf-n b { font: 600 16px/1.25 var(--sans); overflow-wrap: anywhere; }
.hf-n small { font-size: 14px; color: #5A655D; }
.hf-q { display: inline-grid; grid-template-columns: 44px 26px 44px; align-items: center; justify-items: center; }
.hf-q .btn { width: 44px; min-width: 44px; min-height: 44px; padding: 0; font-size: 20px; }
.hf-q output { font: 650 16px/1 var(--sans); font-variant-numeric: tabular-nums; }
.hf-l { margin-top: 8px; font-size: 14px; color: #5A655D; }
/* The app's dark-screen styles reach into this pale card, so the card's own colours are set from the top of the page. */
html[data-club] .chub-card .input { width: 100%; background: #fff; color: #17201B; border: 1px solid #A9A698; -webkit-text-fill-color: #17201B; }
html[data-club] .chub-card .input::placeholder { color: #5A655D; -webkit-text-fill-color: #5A655D; opacity: 1; }
html[data-club] .chub-card .hf-q .btn { background: #fff; color: #17201B; border: 1px solid #A9A698; box-shadow: none; }
html[data-club] .chub-card .hf-q .btn:disabled { color: #A9A698; }
html[data-club] .chub-card #hf-send, html[data-club] .chub-card #hf-send:disabled { background: var(--club-ground); border-color: var(--club-ground); color: var(--club-on); box-shadow: none; }
html[data-club] .chub-card #hf-send:disabled { opacity: .55; }
html[data-club] .chub-card .hf-cancel { background: transparent; color: #17201B; border: 1px solid #A9A698; box-shadow: none; }
.hf-order.ready { box-shadow: inset 0 0 0 2px var(--club-ground); }
.hf-order .hf-cancel { justify-self: start; padding: 0 16px; }
.hf-back { justify-self: stretch; text-align: center; }
.hf-call { justify-self: stretch; text-align: center; display: block; margin-bottom: 10px; text-decoration: none; }
/* Deep Field wordmark (the app's new name, Luke 2026-11-11): plain heavy sans, tight, with the blue Earth golf ball as its full stop
   (deepfield-site HANDOVER: ball .25em, .05em in, on the baseline). It takes the colour of whatever line it sits in. */
.df-mark { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif !important; font-weight: 600 !important; letter-spacing: -.035em !important; text-transform: none !important; white-space: nowrap; }
.df-ball { display: inline-block; width: .25em; height: .25em; margin-left: .05em; vertical-align: baseline; }
