/* Unbox guide (vendored from effects-library components/unbox-guide at 95001e6 for the paid guide pages).
   Changed for weblandscapes.com: no page-wide rules (the site styles html and body), the component's colours scoped to
   .ub, and on an upright phone the stage, heading, list and buy bar sit inside the box's own screen-high block
   (absolute, not fixed) so the rest of the product page scrolls past it. Only the full-screen player stays fixed.
   Unbox guide. Page styles; the box itself is drawn by unbox-guide.js.
   Three layouts: wide (stage beside the list), a phone held upright (stage fills the screen, chips and a bottom sheet),
   and a phone on its side (the wide layout, tightened). */
@font-face { font-family: "WL Grotesk"; src: url("fonts/wl-grotesk.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }

.ub, .ub-nojs { --chips: calc(52px + env(safe-area-inset-bottom, 0px) + 0.3rem + 1px); --bar: 0px; --paper: #f3f0e9; --ink: #151412; --red: #c8102e; --soft: rgba(21, 20, 18, 0.64); --line: rgba(21, 20, 18, 0.14); --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px); }
.ub *, .ub *::before, .ub *::after, .ub-nojs * { box-sizing: border-box; }
.ub, .ub-nojs { background: var(--paper); color: var(--ink); font: 400 1rem/1.5 "WL Grotesk", "Helvetica Neue", Arial, sans-serif; }
.ub [hidden], .ub-nojs [hidden] { display: none !important; }

.ub { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); min-height: 100vh; max-width: 1680px; margin: 0 auto; }
.ub-head { padding: 4.5rem 3rem 0 1rem; }
.ub-contents { padding: 2rem 3rem 4rem 1rem; }
.ub-stage { position: sticky; top: 0; height: 100vh; min-height: 420px; display: flex; flex-direction: column; }
.ub-floor { flex: 1 1 auto; min-height: 0; position: relative; }

.ub-mark { margin: 0 0 2.2rem; font-weight: 640; font-size: 1rem; }
.ub h1 { margin: 0; font-weight: 720; font-stretch: 112%; font-size: clamp(2rem, 3.1vw, 3rem); line-height: 1.06; max-width: 13em; text-wrap: balance; }
.ub-lede { margin: 1.2rem 0 0; max-width: 31em; font-size: 1.06rem; color: var(--soft); }
/* the one buy control (preview): the action and its price, with one line of reassurance; on wide screens the heading block stays in view with it */
.ub-buybar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 1.4rem 0 0; }
.ub-buybar .ub-buy { padding: 0.8rem 1.45rem; font-size: 1.05rem; }
.ub-buy-note { color: var(--soft); font-size: 0.94rem; }
@media (min-width: 761px) and (min-height: 700px) { .ub.has-buy:not(.is-flat) .ub-head { position: sticky; top: 0; z-index: 2; background: var(--paper); padding-top: 3rem; padding-bottom: 1.3rem; box-shadow: 0 1px 0 var(--line); } .ub.has-buy:not(.is-flat) .ub-contents { padding-top: 1.5rem; } .ub.has-buy:not(.is-flat) .ub-mark { margin-bottom: 1.4rem; } }
.ub-buy-side { display: contents; }
.ub-termslink { text-decoration-color: currentColor; text-decoration-thickness: 1px; font-weight: 500; }
.ub-terms { width: min(34rem, calc(100vw - 2rem)); max-height: calc(100svh - 2rem); padding: 1.5rem 1.6rem 1.3rem; border: 0; border-radius: 8px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(21, 20, 18, 0.35); }
.ub-terms::backdrop { background: rgba(21, 20, 18, 0.45); }
.ub-terms h2 { margin: 0 0 0.7rem; font-size: 1.3rem; font-weight: 680; }
.ub-terms-list { margin: 0; padding-left: 1.1rem; }
.ub-terms-list li { padding: 0.32rem 0; }
.ub-terms-foot { margin: 0.8rem 0 0; color: var(--soft); font-size: 0.94rem; }
.ub-terms-a { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; margin: 1.1rem 0 0; }
.ub-terms .ub-ctl { min-height: 44px; padding: 0.5rem 1.1rem; box-shadow: inset 0 0 0 1px var(--ink); }
.ub-more-bar { display: none; }
/* wide screens: with something open, the heading block folds down to the title, the buy control and the needs link, so the panel gets the room */
@media (min-width: 761px) and (min-height: 700px) {
  .ub.has-buy:not(.is-flat)[data-state="item"] .ub-head { padding-top: 1.5rem; padding-bottom: 0.9rem; }
  .ub.has-buy:not(.is-flat)[data-state="item"] .ub-mark { margin-bottom: 0.5rem; font-size: 0.9rem; }
  .ub.has-buy:not(.is-flat)[data-state="item"] h1 { font-size: 1.45rem; max-width: none; }
  .ub.has-buy:not(.is-flat)[data-state="item"] .ub-lede, .ub.has-buy:not(.is-flat)[data-state="item"] .ub-needtext { display: none; }
  .ub.has-buy:not(.is-flat)[data-state="item"] .ub-buybar { margin-top: 0.8rem; }
  .ub.has-buy:not(.is-flat)[data-state="item"] .ub-buybar .ub-buy { padding: 0.6rem 1.2rem; font-size: 1rem; }
  .ub.has-buy:not(.is-flat)[data-state="item"] .ub-needline { margin-top: 0.45rem; font-size: 0.94rem; }
}
.ub-needline { margin: 0.7rem 0 0; max-width: 31em; font-size: 0.98rem; }
.ub-more { font: inherit; font-weight: 600; padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--red); text-underline-offset: 4px; cursor: pointer; }
.ub h2 { margin: 0 0 0.4rem; font-size: 1rem; font-weight: 640; }
.ub h3 { margin: 0; font: inherit; }

/* the stage */
.ub-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.35s ease; touch-action: pan-y; }
.ub.is-live .ub-canvas { opacity: 1; }
.ub-canvas.is-hot { cursor: pointer; }
.ub-cta { flex: none; margin: 0; padding: 0 0 2.6rem; text-align: center; }

.ub-primary, .ub-buy, .ub-act, .ub-ctl { font: inherit; font-weight: 600; border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-block; }
.ub-primary { padding: 0.8rem 1.5rem; border: 0; background: var(--ink); color: var(--paper); font-size: 1.02rem; }
.ub-primary:hover { background: #2b2926; }
.ub-buy { padding: 0.62rem 1.2rem; background: var(--red); color: #fff; }
.ub-buy:hover { background: #a80d26; }
.ub-act { padding: 0.56rem 1.1rem; background: var(--ink); color: var(--paper); margin-right: 0.4rem; }
.ub-act + .ub-act { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ub-act:hover { background: #2b2926; color: var(--paper); }
.ub :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ub-buy:focus-visible { outline-color: var(--red); }

/* the contents list: one button per thing in the box, its details open underneath */
.ub-list { list-style: none; margin: 0; padding: 0; max-width: 34rem; }
.ub-item { border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.ub-item:last-child { border-bottom: 1px solid var(--line); }
/* what the buyer needs besides the product: set apart from the things in the box */
.ub-need { margin-top: 1.7rem; }
.ub-item:has(+ .ub-need) { border-bottom: 1px solid var(--line); }
.ub-need .ub-name { font-size: 1.02rem; font-weight: 600; }
.ub-need-h { font-weight: 640; margin: 0.9rem 0 0.2rem !important; }
.ub-need-list { margin: 0 0 0.6rem; padding-left: 1.1rem; list-style: disc; }
.ub-need-list li { padding: 0.2rem 0; }
.ub-need-total { font-weight: 600; }
.ub-pick { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.95rem 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ub-name { font-size: 1.2rem; font-weight: 640; }
.ub-short, .ub-dt { display: none; }
.ub-meta { color: var(--soft); font-size: 0.94rem; text-align: right; }
.ub-pick:hover .ub-name, .ub-pick[aria-expanded="true"] .ub-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ub-pick[aria-expanded="true"] .ub-name { text-decoration-color: var(--red); }
.ub-detail { padding: 0 0 1.4rem; max-width: 30rem; }
.ub-detail > p { margin: 0 0 0.9rem; }
.ub-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1rem; margin: 1.1rem 0 0 !important; }
.ub-note { color: var(--soft); }
.ub-parts { margin: 0 0 0.9rem; padding: 0; list-style: none; }
.ub-parts li { padding: 0.36rem 0; }
.ub-parts strong { display: block; font-weight: 640; }

/* the lesson player. The picture is shown on the laptop; the real video is kept out of sight until it is enlarged. */
.ub-screen { position: absolute; width: 2px; height: 2px; overflow: hidden; opacity: 0; pointer-events: none; }
.ub-screen video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--ink); }
.ub-cue { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); width: max-content; max-width: 92%; margin: 0; padding: 0.3em 0.65em; border-radius: 4px; background: rgba(21, 20, 18, 0.86); text-align: center; color: #fff; font-size: clamp(0.84rem, 2.2vw, 1.6rem); line-height: 1.3; white-space: pre-line; }
.ub-shrink { display: none; }
.ub-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; margin: 0.2rem 0 0; }
.ub-ctl { padding: 0.46rem 0.8rem; border: 0; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.94rem; min-height: 2.4rem; }
.ub-ctl:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.ub-ctl[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--ink); }
.ub-ctl[aria-pressed="false"] { color: var(--soft); }
.ub-ctl.is-off { background: var(--red); color: #fff; box-shadow: none; }
.ub-ctl-play { background: var(--ink); color: var(--paper); box-shadow: none; min-width: 4.6rem; }
.ub-ctl-play:hover { background: #2b2926; box-shadow: none; }
.ub-seek { flex: 1 1 9rem; min-width: 7rem; height: 1.6rem; margin: 0; accent-color: var(--ink); cursor: pointer; }
.ub-time { font-size: 0.94rem; color: var(--soft); min-width: 5.4em; }
.ub-ctl-buy { display: none; }
.ub-player.is-full .ub-ctl-buy { display: inline-block; margin-left: auto; background: var(--red); color: #fff !important; box-shadow: none !important; }
/* the end of the free lesson: once in the panel, once over the picture */
.ub-end { margin: 0.9rem 0 0; padding: 0.9rem 1rem 1rem; border-radius: 6px; background: rgba(21, 20, 18, 0.055); }
.ub-end-t { margin: 0; font-size: 1.12rem; font-weight: 680; }
.ub-end-x { margin: 0.2rem 0 0; color: var(--soft); }
.ub-end-a { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; margin: 0.8rem 0 0; }
.ub-endbuy { display: inline-block; padding: 0.56rem 1.1rem; border-radius: 4px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
.ub-screen .ub-end { position: absolute; inset: 0; margin: 0; border-radius: 0; display: flex; flex-direction: column; justify-content: center; padding: 6% 7%; background: rgba(21, 20, 18, 0.92); color: var(--paper); }
.ub-screen .ub-end-t { font-size: clamp(1.2rem, 3.4vw, 2.4rem); }
.ub-screen .ub-end-x { color: rgba(243, 240, 233, 0.76); }
.ub-screen .ub-endbuy { background: var(--red); color: #fff; min-height: 44px; padding: 0.7rem 1.2rem; }
.ub-screen .ub-more { color: var(--paper); min-height: 44px; }
.ub-player.is-full > .ub-end, .ub-player.is-grown > .ub-end, .ub.is-flat .ub-player > .ub-end { display: none; }
.ub-said { margin: 0.5rem 0 0; min-height: 1.5em; color: var(--soft); font-size: 0.94rem; }
.ub-said:empty { display: none; }
.ub-chapters, .ub-modules { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.ub-chapters li, .ub-modules li { border-top: 1px solid var(--line); }
.ub-chapters button { display: flex; gap: 1rem; width: 100%; padding: 0.5rem 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ub-chapters button:hover .ub-ch-n { text-decoration: underline; }
.ub-ch-t { color: var(--soft); min-width: 2.6em; }
.ub-chapters [aria-current="true"] .ub-ch-n { font-weight: 640; }
.ub-chapters [aria-current="true"] .ub-ch-t { color: var(--red); }
.ub-modules { margin-top: 0; border-bottom: 1px solid var(--line); }
.ub-modules li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; color: var(--soft); }
.ub-tag { font-size: 0.9rem; white-space: nowrap; }
.ub-where { margin-top: 0.8rem !important; color: var(--soft); font-size: 0.94rem; }

/* enlarged in the page: the real video fills the window with its controls underneath */
.ub-player.is-full { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; background: var(--ink); padding: 0; }
.ub-player.is-full .ub-screen { position: relative; flex: 1 1 auto; width: auto; height: auto; min-height: 0; opacity: 1; pointer-events: auto; }
.ub-player.is-full .ub-controls { flex: none; margin: 0; padding: 0.8rem 1rem; }
.ub-player.is-full .ub-ctl { color: var(--paper); box-shadow: inset 0 0 0 1px rgba(243, 240, 233, 0.3); }
.ub-player.is-full .ub-ctl[aria-pressed="false"] { color: rgba(243, 240, 233, 0.66); }
.ub-player.is-full .ub-ctl[aria-pressed="true"], .ub-player.is-full .ub-ctl:hover { box-shadow: inset 0 0 0 1px var(--paper); }
.ub-player.is-full .ub-ctl-play { background: var(--paper); color: var(--ink); box-shadow: none; }
.ub-player.is-full .ub-seek { accent-color: var(--paper); }
.ub-player.is-full .ub-time { color: rgba(243, 240, 233, 0.8); }
.ub-player.is-full .ub-said { display: none; }
.ub-player.is-full :focus-visible { outline-color: var(--paper); }
.ub-full-open { overflow: hidden; }

/* no JavaScript: a static block in <noscript> stands in for the page (the server writes it from the product file) */
body:has(.ub-nojs) #ub { display: none; }
.ub-nojs .ub-cover { aspect-ratio: auto; }
.ub-nojs-list { list-style: none; margin: 0; padding: 0; }
.ub-nojs-list li { padding: 0.8rem 0; border-top: 1px solid var(--line); }
.ub-nojs-list strong { display: block; font-size: 1.14rem; font-weight: 640; }
.ub-nojs-list span { color: var(--soft); font-size: 0.94rem; }
/* small screens, the light version (data-phone="lite"): the cover is a lid; a tap lifts it and the contents come up */
.ub-lid { display: block; width: 100%; margin: 0 0 1.4rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; perspective: 2400px; }
.ub-lid .ub-cover { width: 100%; margin: 0; transform-origin: 50% 0; transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.55s ease; }
.ub-lid.is-open .ub-cover { transform: rotateX(46deg) scale(0.9); box-shadow: 0 34px 40px -26px rgba(21, 20, 18, 0.6), 0 2px 6px rgba(21, 20, 18, 0.18); }
.ub-lid-say { display: inline-block; margin-top: 0.9rem; min-height: 44px; padding: 0.7rem 1.3rem; border-radius: 4px; background: var(--ink); color: var(--paper); font-weight: 600; }
.ub-lid.is-open .ub-lid-say { background: none; color: var(--ink); padding-left: 0; }
.ub-lid:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .ub-lid .ub-cover { transition: none; } .ub-lid.is-open .ub-cover { transform: none; } }
/* no 3D: the same contents as a plain page, with the cover as a picture */
.ub.is-flat { display: block; max-width: 44rem; padding: 0 1.4rem; }
.ub.is-flat .ub-stage { display: none; }
.ub.is-flat .ub-head { padding: 3.4rem 0 0; }
.ub-cover { display: block; width: min(100%, 25rem); height: auto; margin: 0 0 2.4rem; border-radius: 6px; box-shadow: 0 22px 44px -22px rgba(21, 20, 18, 0.55), 0 2px 6px rgba(21, 20, 18, 0.18); }
.ub.is-flat .ub-contents { padding: 2.4rem 0 4rem; }
.ub.is-flat .ub-item > h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.95rem 0 0.5rem; }
.ub.is-flat .ub-screen { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 10; opacity: 1; pointer-events: auto; margin: 0 0 0.7rem; border-radius: 4px; }
.ub.is-flat .ub-player.is-full .ub-screen { aspect-ratio: auto; margin: 0; border-radius: 0; }

/* ───── a phone on its side, and other short wide windows: the wide layout, tightened ───── */
@media (max-height: 520px) and (orientation: landscape) {
  .ub { grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); }
  .ub-buybar { margin-top: 0.7rem; } .ub-buybar .ub-buy { min-height: 44px; padding: 0.6rem 1.1rem; font-size: 0.96rem; }
  .ub-stage { height: 100svh; min-height: 0; }
  .ub-head { padding: calc(var(--safe-t) + 1rem) 1.2rem 0 0.6rem; }
  .ub-mark { margin-bottom: 0.5rem; font-size: 0.9rem; }
  .ub h1 { font-size: 1.35rem; }
  .ub-lede { margin-top: 0.5rem; font-size: 0.94rem; }
  .ub-contents { padding: 1rem 1.2rem 2rem 0.6rem; }
  .ub-cta { padding-bottom: calc(var(--safe-b) + 0.7rem); }
  .ub-primary { padding: 0.6rem 1.1rem; font-size: 0.94rem; min-height: 44px; }
  .ub-pick { padding: 0.7rem 0; min-height: 44px; }
  .ub-ctl { min-height: 44px; }
  /* the grown player takes the whole window */
  .ub-player.is-grown { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; background: var(--ink); }
  .ub-player.is-grown .ub-screen { position: relative; flex: 1 1 auto; width: auto; height: auto; min-height: 0; opacity: 1; pointer-events: auto; }
  .ub-player.is-grown .ub-controls { flex: none; margin: 0; padding: 0.4rem calc(var(--safe-b) + 0.8rem) calc(var(--safe-b) + 0.4rem); }
  .ub-player.is-grown .ub-ctl { color: var(--paper); box-shadow: inset 0 0 0 1px rgba(243, 240, 233, 0.3); }
  .ub-player.is-grown .ub-ctl[aria-pressed="false"] { color: rgba(243, 240, 233, 0.66); }
  .ub-player.is-grown .ub-ctl.is-off { background: var(--red); color: #fff; box-shadow: none; }
  .ub-player.is-grown .ub-ctl-buy { display: inline-block; margin-left: auto; background: var(--red); color: #fff; box-shadow: none; }
  .ub-player.is-grown .ub-ctl-play { background: var(--paper); color: var(--ink); box-shadow: none; }
  .ub-player.is-grown .ub-seek { accent-color: var(--paper); }
  .ub-player.is-grown .ub-time { color: rgba(243, 240, 233, 0.8); }
  .ub-player.is-grown .ub-said { display: none; }
  .ub-player.is-grown :focus-visible { outline-color: var(--paper); }
}

/* ───── a phone held upright: the stage is the screen; chips along the bottom; details in a sheet over the lower third ───── */
@media (max-width: 760px) and (orientation: portrait) {
  .ub:not(.is-flat) { display: block; position: relative; height: 100svh; min-height: 0; overflow: hidden; }
  .ub:not(.is-flat) .ub-stage { position: absolute; top: 0; left: 0; right: 0; height: 100%; min-height: 0; display: block; }
  .ub:not(.is-flat) .ub-floor { position: absolute; inset: 0; }
  .ub:not(.is-flat) .ub-canvas { touch-action: none; }
  .ub:not(.is-flat) .ub-head { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: calc(var(--safe-t) + 0.9rem) 1.1rem 0; pointer-events: none; }
  .ub:not(.is-flat) .ub-mark { margin: 0 0 0.3rem; font-size: 0.88rem; }
  .ub:not(.is-flat) h1 { font-size: 1.34rem; max-width: 11.5em; }
  .ub:not(.is-flat) .ub-lede { margin-top: 0.45rem; font-size: 0.94rem; line-height: 1.4; max-width: 23em; }
  .ub:not(.is-flat) .ub-lede, .ub:not(.is-flat) .ub-needline { transition: opacity 0.4s ease 1.5s; }
  .ub:not(.is-flat) .ub-needline { margin-top: 0.35rem; font-size: 0.9rem; line-height: 1.38; max-width: 24em; }
  .ub:not(.is-flat) .ub-more { pointer-events: auto; padding: 0.5rem 0; }
  .ub:not(.is-flat)[data-state="open"] .ub-lede, .ub:not(.is-flat)[data-state="item"] .ub-lede, .ub:not(.is-flat)[data-state="open"] .ub-needline, .ub:not(.is-flat)[data-state="item"] .ub-needline { opacity: 0; transition: opacity 0.15s ease; }
  .ub:not(.is-flat)[data-state="open"] .ub-more, .ub:not(.is-flat)[data-state="item"] .ub-more { pointer-events: none; }
  .ub:not(.is-flat) .ub-need { margin: 0 0 0 0.2rem; border-left: 1px solid var(--line); }
  .ub:not(.is-flat) .ub-list { padding-left: 0.15rem; padding-right: 0.15rem; }
  .ub:not(.is-flat) .ub-need .ub-short { color: var(--soft); }
  .ub:not(.is-flat) .ub-need-list { font-size: 0.95rem; line-height: 1.38; }
  .ub-grown .ub:not(.is-flat) h1 { visibility: hidden; }

  /* the one button: large under the closed box, small in the corner once it is open */
  .ub.has-buy:not(.is-flat) { --bar: 80px; }
  .ub.has-buy:not(.is-flat) .ub-detail { max-height: 30svh; }
  .ub:not(.is-flat) .ub-cta { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-b) + 1.4rem + var(--bar)); z-index: 5; padding: 0; pointer-events: none; }
  .ub:not(.is-flat) .ub-primary { pointer-events: auto; min-height: 48px; padding: 0.8rem 1.6rem; }
  .ub:not(.is-flat)[data-state="open"] .ub-cta, .ub:not(.is-flat)[data-state="item"] .ub-cta { left: auto; right: 0.8rem; bottom: auto; top: calc(var(--safe-t) + 0.55rem); }
  .ub:not(.is-flat)[data-state="open"] .ub-primary, .ub:not(.is-flat)[data-state="item"] .ub-primary { min-height: 44px; padding: 0.4rem 0.8rem; font-size: 0.84rem; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(21, 20, 18, 0.4); }

  /* the buy bar: along the bottom, above the chips, under the sheet */
  .ub.has-buy:not(.is-flat) .ub-buybar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; margin: 0; padding: 0.5rem 0.9rem calc(var(--safe-b) + 0.5rem); flex-wrap: nowrap; justify-content: space-between; background: var(--paper); border-top: 1px solid var(--line); pointer-events: auto; }
  .ub.has-buy:not(.is-flat)[data-state="open"] .ub-buybar, .ub.has-buy:not(.is-flat)[data-state="item"] .ub-buybar { bottom: var(--chips); padding-bottom: 0.5rem; }
  .ub.has-buy:not(.is-flat) .ub-buybar .ub-buy { min-height: 44px; padding: 0.62rem 1.05rem; font-size: 0.98rem; white-space: nowrap; flex: none; }
  .ub.has-buy:not(.is-flat) .ub-buybar { min-height: var(--bar); }
  .ub.has-buy:not(.is-flat)[data-state="open"] .ub-buybar, .ub.has-buy:not(.is-flat)[data-state="item"] .ub-buybar { height: var(--bar); }
  .ub.has-buy:not(.is-flat) .ub-buy-side { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
  .ub.has-buy:not(.is-flat) .ub-buy-note { font-size: 0.74rem; line-height: 1.25; text-align: right; }
  .ub.has-buy:not(.is-flat) .ub-more-bar { display: inline-block; padding: 0.42rem 0 0.3rem; font-size: 0.86rem; }
  .ub.has-buy:not(.is-flat) .ub-termslink { padding: 0.5rem 0 0.3rem; font-size: 0.8rem; }
  .ub:not(.is-flat) .ub-needline .ub-termslink { pointer-events: auto; }
  /* chips */
  .ub:not(.is-flat) .ub-contents { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 0; }
  .ub:not(.is-flat)[data-state="closed"] .ub-contents { display: none; }
  .ub:not(.is-flat) h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ub:not(.is-flat) .ub-list { display: flex; max-width: none; background: var(--paper); border-top: 1px solid var(--line); padding: 0 0.3rem calc(var(--safe-b) + 0.3rem); }
  .ub:not(.is-flat) .ub-item { flex: 1 1 auto; min-width: 44px; border: 0; }
  .ub:not(.is-flat) .ub-pick { justify-content: center; align-items: center; min-height: 52px; padding: 0 0.1rem; gap: 0; }
  .ub:not(.is-flat) .ub-name, .ub:not(.is-flat) .ub-meta { display: none; }
  .ub:not(.is-flat) .ub-short { display: inline; font-size: 0.8rem; white-space: nowrap; font-weight: 600; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
  .ub:not(.is-flat) .ub-pick[aria-expanded="true"] .ub-short { border-bottom-color: var(--red); }

  /* the sheet */
  .ub:not(.is-flat) .ub-detail { position: absolute; left: 0; right: 0; bottom: calc(var(--chips) + var(--bar)); max-height: 34svh; max-width: none; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border-top: 1px solid var(--line); border-radius: 14px 14px 0 0; box-shadow: 0 -14px 34px rgba(21, 20, 18, 0.1); padding: 0.95rem 1.1rem 1rem; transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease; }
  @starting-style { .ub:not(.is-flat) .ub-detail { transform: translateY(28px); opacity: 0; } }
  .ub:not(.is-flat) .ub-dt { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 0.35rem; font-size: 1.16rem; font-weight: 640; }
  .ub:not(.is-flat) .ub-dt span { font-size: 0.9rem; font-weight: 400; color: var(--soft); }
  .ub:not(.is-flat) .ub-detail > p { margin-bottom: 0.7rem; font-size: 0.97rem; line-height: 1.42; }
  .ub:not(.is-flat) .ub-actions { margin-top: 0.8rem !important; }
  .ub:not(.is-flat) .ub-act { min-height: 46px; padding: 0.7rem 1.3rem; }
  .ub:not(.is-flat) .ub-parts li { padding: 0.24rem 0; font-size: 0.95rem; line-height: 1.38; }
  .ub:not(.is-flat) .ub-ctl { min-height: 44px; }
  .ub:not(.is-flat) .ub-seek { flex-basis: 100%; order: 5; height: 2rem; }
  .ub:not(.is-flat) .ub-time { margin-left: auto; min-width: 0; }
  /* chapters as a strip to swipe along */
  .ub:not(.is-flat) .ub-chapters { display: flex; gap: 0.5rem; margin: 0.8rem -1.1rem 0; padding: 0 1.1rem 0.3rem; overflow-x: auto; scrollbar-width: none; }
  .ub:not(.is-flat) .ub-chapters li { border: 0; flex: none; }
  .ub:not(.is-flat) .ub-chapters button { display: block; min-height: 52px; padding: 0.4rem 0.8rem; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; font-size: 0.92rem; line-height: 1.3; }
  .ub:not(.is-flat) .ub-chapters [aria-current="true"] { box-shadow: inset 0 0 0 1px var(--ink); }
  .ub:not(.is-flat) .ub-ch-t { display: block; font-size: 0.8rem; }
  .ub:not(.is-flat) .ub-modules { margin-top: 0.8rem; font-size: 0.94rem; }

  /* the grown player: across the top of the screen, out of the laptop */
  .ub-player.is-grown .ub-screen { position: fixed; top: calc(var(--safe-t) + 3.6rem); left: 0; width: 100vw; height: 62.5vw; z-index: 8; opacity: 1; pointer-events: auto; background: var(--ink); }
}
/* on any small screen the grown player has a way back into the laptop */
.ub-player.is-grown .ub-shrink { display: block; position: absolute; top: 0.5rem; right: 0.5rem; min-height: 44px; padding: 0 0.9rem; border: 0; border-radius: 4px; background: rgba(21, 20, 18, 0.74); color: var(--paper); font: inherit; font-weight: 600; font-size: 0.88rem; }

@media (max-width: 760px) and (orientation: portrait) {
  .ub.is-flat { padding: 0 1.25rem; }
  .ub.is-flat .ub-head { padding-top: calc(var(--safe-t) + 1.5rem); }
  .ub.is-flat h1 { font-size: 1.75rem; }
  .ub.is-flat .ub-cover { margin-bottom: 1.6rem; }
  .ub.is-flat .ub-buy, .ub.is-flat .ub-act, .ub.is-flat .ub-ctl { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .ub-canvas, .ub:not(.is-flat) .ub-detail { transition: none !important; } }
