/* TeeReveal player, Magazine look: the course overview. Loaded after overview.css, only when player.json says
   "look": "magazine". Approved design: design-studies/player-design-v5 (layout, buttons, hole circles),
   player-type-bump-v2 (sizes) and player-mobile-v2 (phone). The copy placement and the fade strength arrive as
   variables in a small style block the build adds after this file (lib/settings.mjs magazineHead). */
:root{--mz-col-x:63cqw;--mz-col-w:33cqw}
html.mobile-shell{--mz-col-x:60.96cqw;--mz-col-w:35.2cqw}
#scene{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;color:#fff}

/* The side fade: a live layer on desktop and on phones. The phone's opening carries only the course outline,
   so html.baked-overview no longer hides this layer. */
#overviewUI:before,html.baked-overview #overviewUI:before{display:block;background:linear-gradient(var(--mz-fade-dir),rgba(10,9,8,calc(var(--mz-fade-a)*var(--mz-fade-overview))) 0%,rgba(10,9,8,calc(var(--mz-fade-b)*var(--mz-fade-overview))) var(--mz-fade-mid),rgba(10,9,8,0) var(--mz-fade-end))}

/* Header: only Book a tee time, as a solid pill at the top right. */
header{top:2.3cqw;left:3.5cqw;right:3.5cqw;justify-content:flex-end}
header .wordmark,header nav>a:not(.book){display:none}
nav{font:500 var(--mz-pill) var(--mz-sans);gap:.6cqw}
.book{border:.07cqw solid transparent;border-radius:2cqw;padding:.7cqw 1.15cqw;background:var(--mz-cream);color:var(--mz-cream-ink);font-weight:600;white-space:nowrap}
.book:hover{background:#fff}

/* Opening title, in the same type. */
#brand small{font:600 var(--mz-kicker) var(--mz-sans);letter-spacing:.26em;text-transform:uppercase}
h1{font:800 5.6cqw/.9 var(--mz-serif);letter-spacing:-.025em;font-variant-numeric:lining-nums;font-feature-settings:'lnum' 1;margin:1.3cqw 0}
#brand p{font:italic 400 var(--mz-dek)/1.22 var(--mz-serif)}

/* The column. */
aside{left:var(--mz-col-x);width:var(--mz-col-w);top:50%;transform:translateY(-50%);text-shadow:var(--mz-shadow);text-align:left}
.eyebrow{font:600 var(--mz-kicker) var(--mz-sans);letter-spacing:.26em;text-transform:uppercase;opacity:.88}
aside h2{font:800 var(--mz-name)/.86 var(--mz-serif);letter-spacing:-.025em;font-variant-numeric:lining-nums;font-feature-settings:'lnum' 1;margin:1cqw 0 0}
.mz-rule{height:.07cqw;background:var(--mz-line);margin:1.6cqw 0 1.3cqw}
.mz-dek{font:italic 400 var(--mz-dek)/1.22 var(--mz-serif);margin:0;text-wrap:balance}
.description{font:400 var(--mz-body)/1.55 var(--mz-sans);opacity:.93;margin:.9cqw 0 0;max-width:31.5cqw;text-wrap:pretty}

/* Tee strip: every tee's total yardage. Five or fewer in one row; six make two rows of three. */
#totals{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0;border-block:.06cqw solid var(--mz-line-soft);margin-top:1.5cqw}
#totals>div{position:relative;padding:.75cqw 0 .8cqw .7cqw;border-left:.06cqw solid var(--mz-line-faint)}
#totals>div:first-child{padding-left:0;border-left:0}
#totals small{display:flex;align-items:center;gap:.35cqw;font:600 var(--mz-tee-name) var(--mz-sans);letter-spacing:.06em;text-transform:uppercase;opacity:.85;white-space:nowrap}
#totals small:before{content:'';display:var(--mz-dots,none);width:.6cqw;height:.6cqw;border-radius:50%;flex:none;background:var(--mz-dot,transparent);box-shadow:0 0 0 .07cqw var(--mz-line)}
#totals strong{display:block;font:600 var(--mz-tee-yards)/1 var(--mz-sans);font-variant-numeric:tabular-nums;margin-top:.5cqw}
#totals:has(>div:nth-child(6)){grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr))}
#totals:has(>div:nth-child(6))>div:nth-child(4){padding-left:0;border-left:0}
#totals:has(>div:nth-child(6))>div:nth-child(n+4){border-top:.06cqw solid rgba(255,255,255,.2)}

.mz-facts{display:flex;align-items:center;gap:1cqw;font:500 var(--mz-facts) var(--mz-sans);letter-spacing:.14em;text-transform:uppercase;margin-top:1.1cqw;opacity:.8}
.mz-facts i{width:.3cqw;height:.3cqw;border-radius:50%;background:var(--mz-accent)}

/* Buttons. Start Tour keeps the travelling light; Book a tee time is the same outline without it. */
.actions{flex-direction:row;flex-wrap:wrap;align-items:center;gap:1.6cqw;margin-top:1.8cqw}
.start,.mz-book-inline{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:.9cqw;min-width:0;padding:1cqw 1.6cqw;border:.07cqw solid var(--mz-line);border-radius:6px;background:var(--mz-glass);font:600 var(--mz-button) var(--mz-sans);letter-spacing:0;white-space:nowrap;text-shadow:none}
.start:hover,.mz-book-inline:hover{background:#ffffff1c}
.start em,.mz-book-inline em{font-style:normal;font-weight:500;opacity:.82}
.start .invite{inset:-.07cqw;width:calc(100% + .14cqw);height:calc(100% + .14cqw)}
.start .invite rect{stroke-width:2.2;stroke-dasharray:13 87;animation:invitation 3.4s linear infinite;filter:drop-shadow(0 0 .25cqw rgba(255,255,255,.9))}
.mz-book-inline{display:none}
#replay{border:0;border-bottom:.06cqw solid rgba(255,255,255,.4);padding:0 0 .15cqw;font:500 var(--mz-link) var(--mz-sans);opacity:.82;white-space:nowrap;text-shadow:inherit}
#replay:hover{opacity:1}
#skip{font:500 var(--mz-pill) var(--mz-sans);border:.07cqw solid var(--mz-line);background:var(--mz-glass)}

/* Hole numbers, placed mid-hole. Highlighted hole: white with the pulsing ring. Other playable holes: white,
   no pulse. Holes without a flight: hollow rings. The build spreads the positions so none overlap. */
.hole{display:grid;place-items:center;width:var(--mz-hole-inactive);height:var(--mz-hole-inactive);border:.09cqw solid rgba(255,255,255,.85);background:rgba(14,14,12,.4);color:#fff;font:500 calc(var(--mz-hole-inactive)*.44)/1 var(--mz-sans);text-shadow:0 0 .4cqw rgba(0,0,0,.8)}
.hole:disabled{opacity:1}
.hole.available,html.mobile-shell .hole.available{width:var(--mz-hole-playable);height:var(--mz-hole-playable);border:0;background:var(--mz-marker);color:var(--mz-marker-ink);font:600 calc(var(--mz-hole-playable)*.443)/1 var(--mz-sans);text-shadow:none;box-shadow:0 .25cqw .8cqw rgba(0,0,0,.4);z-index:3}
.hole.available:after{content:none}
.hole.available.highlight,html.mobile-shell .hole.available.highlight{width:var(--mz-hole-highlight);height:var(--mz-hole-highlight);font-size:calc(var(--mz-hole-highlight)*.435);box-shadow:0 .3cqw 1cqw rgba(0,0,0,.4);z-index:4}
.hole.available.highlight:after{content:'';position:absolute;inset:-.25cqw;border:.08cqw solid var(--mz-pulse);border-radius:50%;animation:mz-pulse 2.8s ease-out infinite}
@keyframes mz-pulse{0%{transform:scale(1);opacity:.95}70%,100%{transform:scale(1.95);opacity:0}}

footer{font:500 .56cqw var(--mz-sans);letter-spacing:.14em;text-transform:uppercase}
footer a{opacity:.6}
.powered{right:3.2cqw;bottom:1.8cqw;gap:.5cqw;font:400 var(--mz-powered) var(--mz-sans);color:rgba(255,255,255,.8)}
.powered img{width:auto;height:1.2cqw}
@media(min-aspect-ratio:16/9){
 #scene header{top:max(2.3cqw,calc((100% - 100dvh)/2 + 20px))}
 #scene .powered{bottom:max(1.8cqw,calc((100% - 100dvh)/2 + 16px))}
}
@media(prefers-reduced-motion:reduce){.hole.available.highlight:after,.start .invite rect{animation:none}.start .invite{display:none}}

/* ---------- Phone (player-mobile-v2). Book a tee time moves down beside Start Tour; the hairline, the line of
   facts, Replay opening, the tee dots and the header drop away so the larger text fits. ---------- */
html.mobile-shell header,html.mobile-shell .mz-rule,html.mobile-shell .mz-facts,html.mobile-shell #replay,html.mobile-shell .powered{display:none}
html.mobile-shell aside,html.mobile-shell aside.mz{top:50%;bottom:auto;display:block;transform:translateY(-50%)}
html.mobile-shell aside h2{font-size:var(--mz-name);margin:1.6cqw 0 0}
html.mobile-shell .mz-dek{margin-top:1.28cqw}
html.mobile-shell .description{font-size:var(--mz-body);line-height:1.5;margin:.8cqw 0 0;max-width:none}
html.mobile-shell #totals{gap:0;margin-top:1.44cqw}
html.mobile-shell #totals>div{padding:1.2cqw 0 1.28cqw .64cqw}
html.mobile-shell #totals>div:first-child{padding-left:0}
html.mobile-shell #totals small{letter-spacing:.05em}
html.mobile-shell #totals small:before{display:none}
html.mobile-shell #totals strong{font-size:var(--mz-tee-yards);margin-top:.8cqw}
html.mobile-shell .actions{gap:.8cqw;margin-top:1.6cqw;flex-wrap:nowrap}
html.mobile-shell .start,html.mobile-shell .mz-book-inline{display:inline-flex;min-height:0;min-width:0;padding:1.28cqw 1.52cqw;gap:.8cqw;font-size:var(--mz-button)}
/* The approved buttons are about 34px tall on a phone; an unseen margin brings the touch area to 44px or more. */
html.mobile-shell .start:before,html.mobile-shell .mz-book-inline:before{content:'';position:absolute;inset:-.7cqw -.3cqw}
html.mobile-shell .hole.available::before{inset:-1.1cqw}
html.mobile-shell footer{display:none}
