/* TeeReveal player, Magazine look: the hole screens (tee box, course notes, green). Loaded after the hole page's own
   stylesheets, only when player.json says "look": "magazine"; the page then carries html.mz and the tee layout
   "spread" instead of "atlas" (lib/settings.mjs), so none of the classic tee rules apply.
   Approved designs: design-studies/player-design-v5 (tee: two balanced blocks; green buttons), player-type-bump-v2
   (sizes), notes-progress-v2 (notes: one line, and it is the progress bar), player-mobile-v2/v3 (phone, 1.6x).
   The header, the timeline and the golf functions are in magazine/golf.css. */
html.mz{--mz-tee-bottom:9.9cqw;--mz-note-x:3.5cqw;--mz-note-xr:4.5cqw;--mz-note-w:29.5cqw}
html.mz.mobile-shell{--mz-tee-bottom:14.08cqw;--mz-note-x:3.84cqw;--mz-note-xr:3.84cqw;--mz-note-w:35.2cqw}
html.mz #surface{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}

/* ---------- Fades. Live layers whose strength is a setting (tokens.css). The page script draws #shade at 85% of
   its own opacity, so the gradients are written 1/0.85 stronger to land on the design's values at strength 1. ---------- */
html.mz #surface #shade[data-tee=true]{background:linear-gradient(0deg,rgba(8,8,7,calc(.74*var(--mz-fade-tee)/.85)),rgba(8,8,7,calc(.5*var(--mz-fade-tee)/.85)) 24%,rgba(8,8,7,0) 52%)}
html.mz #surface #shade[data-tee=false]{background:linear-gradient(270deg,rgba(10,9,8,calc(var(--mz-fade-a)*var(--mz-fade-notes)/.85)) 0%,rgba(10,9,8,calc(var(--mz-fade-b)*var(--mz-fade-notes)/.85)) var(--mz-fade-mid),rgba(10,9,8,0) var(--mz-fade-end))}
html.mz #surface #shade[data-tee=false][data-side=left]{background:linear-gradient(90deg,rgba(10,9,8,calc(var(--mz-fade-a)*var(--mz-fade-notes)/.85)) 0%,rgba(10,9,8,calc(var(--mz-fade-b)*var(--mz-fade-notes)/.85)) var(--mz-fade-mid),rgba(10,9,8,0) var(--mz-fade-end))}
html.mz #surface #teeIntro,html.mz #surface #teeIntro *,html.mz #surface #note,html.mz #surface #note *{text-shadow:var(--mz-shadow)!important}
html.mz #surface #note a,html.mz #surface #note a *{text-shadow:none!important}

/* ---------- Tee box: the lower spread. Two blocks share a baseline above the timeline. ---------- */
html.mz #surface #teeIntro{inset:0;display:block;border:0;padding:0;color:#fff;font-family:var(--mz-sans)}
html.mz #surface #teeIntro>*{position:absolute}
html.mz #surface #teeMap,html.mz #surface #teeIntro .teeTitle{display:none!important}
html.mz #surface .mz-lft{left:3.5cqw;bottom:var(--mz-tee-bottom);display:flex;align-items:stretch;gap:1.8cqw}
html.mz #surface #mzNumeral{font:800 var(--mz-numeral)/.74 var(--mz-serif);letter-spacing:-.04em;font-variant-numeric:lining-nums;font-feature-settings:'lnum' 1;margin:0 0 1.1cqw -.4cqw;align-self:flex-end}
html.mz #surface .mz-side{display:flex;flex-direction:column;justify-content:flex-end}
html.mz #surface #teeHole{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html.mz #surface #mzPar{font:italic 400 1.75cqw/1.2 var(--mz-serif);margin-top:.6cqw;white-space:nowrap}
html.mz #surface #teeIntro #teeYards{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0;width:31cqw;margin:1.2cqw 0 0;border-block:.06cqw solid var(--mz-line-soft)}
html.mz #surface #teeIntro #teeYards>div{position:relative;min-width:0;padding:.75cqw 0 .8cqw .7cqw;border:0;border-left:.06cqw solid var(--mz-line-faint);border-radius:0;background:none;opacity:1;transition:opacity .2s}
html.mz #surface #teeIntro #teeYards>div:first-child{padding-left:0;border-left:0}
html.mz #surface #teeIntro #teeYards 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;margin:0}
html.mz #surface #teeIntro #teeYards 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)}
html.mz #surface #teeIntro #teeYards strong{display:block;font:600 var(--mz-tee-yards)/1 var(--mz-sans);font-variant-numeric:tabular-nums;margin-top:.5cqw}
/* The selected tee (the golf layer's tee switcher marks it): gold bar and gold number; the others step back. */
html.mz #surface #teeIntro #teeYards[data-golf=tees]>div{opacity:.82}
html.mz #surface #teeIntro #teeYards[data-golf=tees]>div:hover{opacity:1;background:none}
html.mz #surface #teeIntro #teeYards[data-golf=tees]>div.golf-tee-on{opacity:1;background:none}
html.mz #surface #teeIntro #teeYards>div.golf-tee-on:before{content:'';position:absolute;left:0;right:0;top:-.1cqw;height:.16cqw;background:var(--mz-accent)}
html.mz #surface #teeIntro #teeYards>div.golf-tee-on strong{color:var(--mz-accent)}
/* Six tees: two rows of three, so the names keep their size. */
html.mz #surface #teeIntro #teeYards:has(>div:nth-child(6)){grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr));width:24cqw}
html.mz #surface #teeIntro #teeYards:has(>div:nth-child(6))>div:nth-child(4){padding-left:0;border-left:0}
html.mz #surface #teeIntro #teeYards:has(>div:nth-child(6))>div:nth-child(n+4){border-top:.06cqw solid rgba(255,255,255,.2)}
html.mz #surface .mz-rgt{right:3.5cqw;bottom:var(--mz-tee-bottom);width:37cqw;text-align:left}
html.mz #surface #teeIntro #teeHeading{display:block;font:italic 400 var(--mz-tee-dek)/1.22 var(--mz-serif);letter-spacing:0;text-transform:none;text-wrap:balance}
html.mz #surface #teeIntro #teeBody{font:400 var(--mz-tee-body)/1.55 var(--mz-sans);opacity:.93;margin:.55cqw 0 0;max-height:none;overflow:visible;text-wrap:pretty}
html.mz #surface #teeIntro #teeBody:empty{display:none}
html.mz #surface #mzTeeMore{display:none}
/* The cue: the word Scroll between two chevrons that breathe apart. */
html.mz #surface .mz-cue{left:0;right:0;top:37%;display:flex;flex-direction:column;align-items:center;gap:.75cqw;font:600 .8cqw var(--mz-sans);letter-spacing:.34em;text-transform:uppercase}
html.mz #surface .mz-cue span{margin-right:-.34em}
html.mz #surface .mz-cue svg{width:1.7cqw;height:.95cqw;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 .06cqw .3cqw rgba(0,0,0,.6));overflow:visible}
html.mz #surface .mz-cue .up{animation:mz-cue-up 1.8s cubic-bezier(.45,0,.3,1) infinite}
html.mz #surface .mz-cue .dn{animation:mz-cue-dn 1.8s cubic-bezier(.45,0,.3,1) infinite}
@keyframes mz-cue-up{0%,100%{transform:translateY(.1cqw);opacity:.75}50%{transform:translateY(-.5cqw);opacity:1}}
@keyframes mz-cue-dn{0%,100%{transform:translateY(-.1cqw);opacity:.75}50%{transform:translateY(.5cqw);opacity:1}}

/* ---------- Course notes: a side column over the side fade. The page script scales and blurs #note itself, so the
   column is centred with flex, not with a transform. ---------- */
html.mz #surface[data-hole] #note[data-index][data-side]{top:0;bottom:3%;left:auto;right:auto;width:var(--mz-note-w);max-height:none;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border:0;padding:0;overflow:visible;color:#fff;font-family:var(--mz-sans);text-align:left;transform-origin:center}
html.mz #surface[data-hole] #note[data-index][data-side=right]{right:var(--mz-note-xr)}
html.mz #surface[data-hole] #note[data-index][data-side=left]{left:var(--mz-note-x)}
html.mz #surface #note.mz-settled{filter:none!important;opacity:1!important}
html.mz #surface #note #meta,html.mz #surface #note #yards{display:none}
html.mz #surface #note #pro{display:block;font:600 var(--mz-kicker) var(--mz-sans);letter-spacing:.26em;text-transform:uppercase;opacity:.88}
html.mz #surface #note #title{font:800 var(--mz-stop-name)/.86 var(--mz-serif);letter-spacing:-.025em;font-variant-numeric:lining-nums;font-feature-settings:'lnum' 1;margin:1cqw 0 0}
/* The one line under the title is the scroll progress bar. */
html.mz #surface #note #reading{position:relative;flex:none;width:100%;height:.14cqw;background:rgba(255,255,255,.3);margin:1.5cqw 0 1.25cqw}
html.mz #surface #note #reading span{position:absolute;left:0;top:0;bottom:0;height:auto;background:var(--mz-cream)}
html.mz #surface #note #mzDek{font:italic 400 var(--mz-dek)/1.22 var(--mz-serif);margin:0;text-wrap:balance}
html.mz #surface #note #body{display:block;font:400 var(--mz-body)/1.55 var(--mz-sans);opacity:.93;margin:.9cqw 0 0;max-height:none;min-height:0;overflow:visible;flex:none;pointer-events:none;text-wrap:pretty;-webkit-line-clamp:none}
html.mz #surface #note #expandNotes{display:none}
/* The green: a line of facts, then Next hole (with the travelling light) and Book a tee time in the same outline,
   under the note. The row's room is kept from the moment the green's note appears, so the note never moves when
   the buttons arrive (Theo, 2026-11-15: no bump; he tried them in the centre of the screen and preferred them here). */
html.mz #surface #note{--mz-go-h:3.2cqw}
html.mz.mobile-shell #surface #note{--mz-go-h:4.2cqw}
html.mz #surface #note .mz-end{display:none;margin-top:1.5cqw}
html.mz #surface #note.mz-last .mz-end{display:block}
html.mz #surface #note #mzEndFacts{font:500 var(--mz-facts) var(--mz-sans);letter-spacing:.14em;text-transform:uppercase;opacity:.78}
html.mz #surface #note .mz-go{display:flex;flex-wrap:nowrap;align-items:center;gap:1.6cqw;height:var(--mz-go-h);margin-top:1.1cqw}
html.mz #surface #note .mz-go>a{box-sizing:border-box;height:var(--mz-go-h);animation:mz-go-in .5s ease both!important}
@keyframes mz-go-in{from{opacity:0}to{opacity:1}}
html.mz #surface #note #next,html.mz #surface #note #golfBookNext,html.mz #surface #note #mzBookNext{position:relative;top:auto;right:auto;display:inline-flex;align-items:center;justify-content:center;gap:.9cqw;align-self:auto;flex:none;min-height:0;margin:0;padding:1cqw 1.6cqw;border:.07cqw solid var(--mz-line);border-radius:6px;background:var(--mz-glass);color:#fff;font:600 var(--mz-button) var(--mz-sans);letter-spacing:0;white-space:nowrap;text-decoration:none;pointer-events:auto;animation:none}
html.mz #surface #note #next[hidden],html.mz #surface #note #golfBookNext[hidden],html[data-golf=on].mz #surface #note #mzBookNext{display:none}
html.mz #surface #note #next:hover,html.mz #surface #note #golfBookNext:hover,html.mz #surface #note #mzBookNext:hover{background:#ffffff1c}
html.mz #surface #note #next em,html.mz #surface #note #mzBookNext em{font-style:normal;font-weight:500;opacity:.82}
html.mz #surface #note #golfBookNext:after{content:'';display:inline-block;width:.82em;height:.82em;vertical-align:-.08em;margin-left:.35em;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 9 9 3M4.2 3H9v4.8' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 9 9 3M4.2 3H9v4.8' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;opacity:.82}
html.mz #surface #note #next .invite{inset:-.07cqw;width:calc(100% + .14cqw);height:calc(100% + .14cqw)}
html.mz #surface #note #next .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))}
@media(prefers-reduced-motion:reduce){html.mz #surface .mz-cue svg,html.mz #surface #note #next .invite rect{animation:none!important}html.mz #surface #note #next .invite{display:none}}

/* ---------- Phone (the mobile shell): everything 1.6x, as player-mobile-v2/v3. Notes open as the title, the line
   and the italic line; Read more opens the paragraph in place. ---------- */
html.mz.mobile-shell #surface .mz-lft{left:3.84cqw;gap:1.92cqw}
html.mz.mobile-shell #surface #mzNumeral{margin-bottom:1.12cqw}
html.mz.mobile-shell #surface #mzPar{font-size:2.08cqw}
html.mz.mobile-shell #surface #teeIntro #teeYards{width:33.6cqw;margin-top:1.12cqw}
html.mz.mobile-shell #surface #teeIntro #teeYards>div{padding:1.2cqw 0 1.28cqw .64cqw}
html.mz.mobile-shell #surface #teeIntro #teeYards>div:first-child{padding-left:0}
html.mz.mobile-shell #surface #teeIntro #teeYards small{letter-spacing:.05em}
html.mz.mobile-shell #surface #teeIntro #teeYards small:before{display:none}
html.mz.mobile-shell #surface #teeIntro #teeYards strong{margin-top:.8cqw}
html.mz.mobile-shell #surface #teeIntro #teeYards:has(>div:nth-child(6)){width:30cqw}
html.mz.mobile-shell #surface .mz-rgt{right:3.84cqw;width:36.8cqw}
html.mz.mobile-shell #surface #teeIntro #teeBody{line-height:1.5;margin-top:.64cqw;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;pointer-events:none}
html.mz.mobile-shell #surface #teeIntro.expanded #teeBody{display:block;-webkit-line-clamp:none;overflow:visible}
html.mz.mobile-shell #surface #teeIntro #teeBody:empty{display:none}
html.mz.mobile-shell #surface .mz-cue{left:5%;top:47%;gap:1.2cqw;font-size:1.28cqw}
html.mz.mobile-shell #surface .mz-cue svg{width:2.72cqw;height:1.52cqw}
html.mz.mobile-shell #surface #mzTeeMore,html.mz.mobile-shell #surface #note #expandNotes{position:relative;display:inline-block;align-self:flex-start;min-height:0;margin:1.28cqw 0 0;padding:0 0 .24cqw;border:0;border-bottom:.128cqw solid var(--mz-accent);border-radius:0;background:none;color:#fff;font:600 var(--mz-link) var(--mz-sans);letter-spacing:0;text-decoration:none;pointer-events:auto;cursor:pointer}
html.mz.mobile-shell #surface #mzTeeMore{margin-top:.8cqw}
html.mz.mobile-shell #surface #mzTeeMore:before,html.mz.mobile-shell #surface #note #expandNotes:before{content:'';position:absolute;inset:-1.4cqw -1.6cqw}
html.mz.mobile-shell #surface #teeBody:empty+#mzTeeMore,html.mz.mobile-shell #surface #note #body[hidden]+#expandNotes{display:none}
/* 2026-11-18 (Theo, on his phone: Read more and Show less sat under the timeline): the note column stops above the timeline band, so its
   content is centred in the space above it at any screen height. The timeline's top is 7.9cqw above the bottom edge. */
html.mz.mobile-shell #surface[data-hole] #note[data-index][data-side]{top:5.4cqw;bottom:10.4cqw}   /* and below the header buttons */
html.mz.mobile-shell #surface[data-hole] #note[data-index][data-side].expanded{width:38.4cqw}
html.mz.mobile-shell #surface #note #pro{letter-spacing:.22em}
html.mz.mobile-shell #surface #note #title{margin-top:1.28cqw}
html.mz.mobile-shell #surface #note #reading{height:.224cqw;margin:1.12cqw 0 .96cqw}
html.mz.mobile-shell #surface #note #body{display:none;line-height:1.5;margin-top:.96cqw}
html.mz.mobile-shell #surface #note.expanded #body{display:block}
html.mz.mobile-shell #surface #note.expanded #pro,html.mz.mobile-shell #surface #note.expanded .mz-end{display:none}
html.mz.mobile-shell #surface #note.expanded #reading{margin-bottom:.32cqw}
html.mz.mobile-shell #surface #note.expanded #mzDek{margin-top:.96cqw}
html.mz.mobile-shell #surface #note .mz-end{margin-top:1.6cqw}
html.mz.mobile-shell #surface #note #mzEndFacts{display:none}
html.mz.mobile-shell #surface #note .mz-go{gap:.96cqw;margin-top:0}
html.mz.mobile-shell #surface #note #next,html.mz.mobile-shell #surface #note #golfBookNext,html.mz.mobile-shell #surface #note #mzBookNext{padding:1.28cqw 1.6cqw;gap:.8cqw}
html.mz.mobile-shell #surface #note #next:before,html.mz.mobile-shell #surface #note #golfBookNext:before,html.mz.mobile-shell #surface #note #mzBookNext:before{content:'';position:absolute;inset:-.7cqw -.3cqw}
/* 2026-11-18: on the widest (shortest) phone screens an open note is a little smaller, so it fits between the header and the timeline */
@media (min-aspect-ratio: 23/10){html.mz.mobile-shell #surface[data-hole] #note[data-index][data-side].expanded>*{zoom:.84}}
