/*
 * os-all-access, the pass page only (.osp, UX page AA3, from the approved
 * design reference _local/ux-os-all-access/pass-template.js). Loaded only on
 * a page holding [os_all_access]. One motion moment: the poster fans once and
 * lifts on hover; settled under reduced motion.
 */
.osp{--navy:#1a2236;--ink:#16213a;--mut:#55637c;--line:#e1e7f0;--blue:#046bd2;--blue-h:#0d6fe8;--tint:#eff4fb;--teal:#12a594;
 max-width:1316px;margin:0 auto;padding:0 24px 72px;color:var(--ink);font-size:16px;line-height:1.55}
.osp *{box-sizing:border-box}.osp ::selection{background:#bfe3f7}
.osp a{color:inherit;text-underline-offset:3px}.osp a:focus-visible,.osp button:focus-visible,.osp summary:focus-visible,.osp select:focus-visible{outline:3px solid #00a3d9;outline-offset:2px;border-radius:6px}
.osp-top{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;margin-top:16px}

.osp-badge{display:inline-flex;align-items:center;gap:6px;background:var(--teal);color:#fff;font-weight:800;font-size:12px;letter-spacing:.08em;text-transform:uppercase;padding:4px 12px;border-radius:999px}
.osp-badge svg{width:12px;height:12px;fill:currentColor}
.osp h1{font-size:44px;line-height:1.1;letter-spacing:-.015em;margin:12px 0 8px;color:var(--navy);max-width:24ch;text-wrap:balance}
.osp-sub{font-size:19px;color:#3b4a66;margin:0 0 14px;max-width:62ch}
.osp-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;font-size:15px;color:var(--ink);margin-bottom:22px;font-variant-numeric:tabular-nums}
.osp-by{display:inline-flex;align-items:center;gap:10px;font-weight:600}.osp-by img,.osp-av{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#dfe7f3;display:inline-flex;align-items:center;justify-content:center;font-weight:800;color:var(--mut);font-size:13px}
.osp-dot{width:3px;height:3px;border-radius:50%;background:#9aa7bd}
.osp-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;grid-template-areas:"stage buy" "rest buy";grid-template-rows:auto 1fr;column-gap:32px;align-items:start}.osp-gs{grid-area:stage}.osp-gr{grid-area:rest}
.osp-stage{container-type:inline-size;position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:
  radial-gradient(60% 70% at 50% 42%,rgba(0,163,217,.28),rgba(0,163,217,0) 70%),radial-gradient(90% 80% at 80% 100%,#17325c,rgba(23,50,92,0) 60%),linear-gradient(160deg,#0a1226,#101d3a 60%,#0a1226);
  box-shadow:0 18px 48px rgba(10,18,38,.28)}
.osp-stage:before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.08) 1px,transparent 1.2px);background-size:22px 22px;mask-image:radial-gradient(70% 70% at 50% 45%,#000,transparent);-webkit-mask-image:radial-gradient(70% 70% at 50% 45%,#000,transparent)}
.osp-card{position:absolute;left:calc(50% - 13cqw);top:calc(40% - 9.75cqw);width:26cqw;aspect-ratio:4/3;border-radius:1.2cqw;overflow:hidden;border:2px solid rgba(255,255,255,.18);box-shadow:0 1.6cqw 3.4cqw rgba(0,0,0,.5);z-index:var(--z);
  transform:translate(var(--x),var(--y)) rotate(var(--r));animation:osp-fan 1.1s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--n) * 70ms);transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.osp-card img,.osp-card i{width:100%;height:100%;display:block;object-fit:cover}
.osp-card i{background:linear-gradient(135deg,#2a4a82,#0e1c38)}
.osp-stage:hover .osp-card{transform:translate(calc(var(--x) * 1.08),calc(var(--y) - .6cqw)) rotate(calc(var(--r) * 1.12))}
@keyframes osp-fan{from{transform:translate(0,2cqw) rotate(0);opacity:.0}to{transform:translate(var(--x),var(--y)) rotate(var(--r));opacity:1}}
.osp-play{position:absolute;left:50%;bottom:5.2cqw;transform:translateX(-50%);display:inline-flex;align-items:center;gap:12px;border:0;cursor:pointer;background:rgba(10,18,38,.78);backdrop-filter:blur(8px);color:#fff;font:700 16px/1 inherit;white-space:nowrap;padding:10px 22px 10px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.22);z-index:30;min-height:52px}
.osp-play b{width:34px;height:34px;border-radius:50%;background:var(--blue);display:inline-flex;align-items:center;justify-content:center}.osp-play svg{width:14px;height:14px;fill:#fff;margin-left:2px}
.osp-h2{font-size:26px;line-height:1.2;margin:40px 0 6px;color:var(--navy)}.osp-h2small{color:var(--mut);margin:0 0 16px;font-size:16px;font-variant-numeric:tabular-nums}
.osp-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.osp-poster{position:absolute;inset:0}
.osp-row{display:grid;grid-template-columns:116px 1fr auto;gap:14px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:10px;background:#fff;text-decoration:none;color:inherit}
.osp-row:hover{border-color:#b7c6de;box-shadow:0 4px 16px rgba(20,40,80,.07)}
.osp-th{width:116px;aspect-ratio:4/3;border-radius:8px;overflow:hidden;background:#dfe7f3}.osp-th img,.osp-th i{width:100%;height:100%;display:block;object-fit:cover}.osp-th i{background:linear-gradient(135deg,#2a4a82,#0e1c38)}
.osp-t{font-weight:700;font-size:15px;line-height:1.3;color:var(--navy);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.osp-m{font-size:13px;color:var(--mut);margin-top:4px}.osp-p{font-weight:700;font-variant-numeric:tabular-nums;color:var(--navy);align-self:start;padding-top:2px}
/* DEV-446 P1: a sale shows struck and current; a course no longer sold on its own says so. */
.osp-p del{color:var(--mut);font-weight:500;margin-right:4px}.osp-p ins{text-decoration:none}.osp-p .osp-only{color:var(--mut);font-weight:600;font-size:13px;white-space:nowrap}
.osp-train{display:grid;grid-template-columns:72px 1fr;gap:18px;border:1px solid var(--line);border-radius:14px;padding:20px;background:#fff;align-items:start}
.osp-train .osp-av,.osp-train img{width:72px;height:72px;font-size:22px}.osp-train img{border-radius:50%;object-fit:cover}
.osp-train h3{margin:0 0 2px;font-size:19px;color:var(--navy)}.osp-train p{margin:8px 0 0;color:#3b4a66;font-size:15px;max-width:68ch}.osp-train a{font-weight:700;color:var(--blue)}
.osp-faq{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
.osp-faq details{border-bottom:1px solid var(--line)}.osp-faq details:last-child{border:0}
.osp-faq summary{cursor:pointer;list-style:none;padding:16px 20px;font-weight:700;color:var(--navy);display:flex;justify-content:space-between;gap:16px;min-height:52px;align-items:center}
.osp-faq summary::-webkit-details-marker{display:none}.osp-faq summary:after{content:"+";font-size:22px;color:var(--mut);line-height:1}.osp-faq details[open] summary:after{content:"\2212"}
.osp-faq details p{margin:0;padding:0 20px 18px;color:#3b4a66;font-size:15px;max-width:70ch}
.osp-buy{grid-area:buy;position:sticky;top:20px;border:1px solid var(--line);border-radius:16px;padding:14px;background:#fff;box-shadow:0 8px 28px rgba(20,40,80,.07)}
.osp-buyin{border:1px solid var(--line);border-radius:12px;padding:22px 20px}
.osp-price{font-size:40px;font-weight:800;letter-spacing:-.01em;color:var(--navy);font-variant-numeric:tabular-nums;line-height:1.1}.osp-price small{font-size:15px;font-weight:600;color:var(--mut);margin-left:6px;letter-spacing:0}
.osp-val{margin:6px 0 14px;color:#3b4a66;font-size:15px;font-variant-numeric:tabular-nums}
.osp-cur{width:100%;border:1px solid #c9d3e3;border-radius:8px;padding:10px 12px;font-size:15px;background:#fff;margin-bottom:14px;color:var(--ink);min-height:44px}
.osp-btn{display:block;width:100%;text-align:center;background:var(--blue);color:#fff;border:0;border-radius:8px;padding:14px;font-weight:700;font-size:17px;min-height:50px;cursor:pointer}.osp-btn:hover{background:var(--blue-h)}
.osp-terms{margin:16px 0 0;padding:0;list-style:none;font-size:14px;color:#3b4a66}.osp-terms li{padding:5px 0 5px 24px;position:relative}.osp-terms li:before{content:"\2713";position:absolute;left:0;color:var(--blue);font-weight:800}
.osp-perk{margin-top:14px;border:1px solid #9bd8c2;background:#f1fbf6;border-radius:10px;padding:12px 14px;font-size:14px;line-height:1.45;color:#0b5a3e}.osp-perk b{font-size:15px;display:block;margin-bottom:2px}.osp-perk small{display:block;margin-top:6px;color:#2f7a5d;font-size:12.5px}
.osp-bar{display:none}
/* Round 2b S7: the theme keeps the pass block narrower than the window, so the left column is only about 270 to 860 px. One column up to 1699 px, and the compact row (price under the meta line) up to 1279 px, where the column is under about 480 px. */
@media (min-width:981px) and (max-width:1699px){.osp-list{grid-template-columns:1fr}}
@media (min-width:981px) and (max-width:1279px){.osp-row{grid-template-columns:96px 1fr}.osp-th{width:96px}.osp-p{grid-column:2;padding:0}}
@media (prefers-reduced-motion:reduce){.osp-card{animation:none;transition:none}}
@media (max-width:980px){.osp-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"stage" "buy" "rest";row-gap:20px}.osp-buy{position:static}.osp-list{grid-template-columns:1fr}.osp h1{font-size:32px}.osp-sub{font-size:17px}}
@media (max-width:980px){.osp-bar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -6px 20px rgba(20,40,80,.1)}.osp-bar[hidden]{display:none}.osp-bar .osp-price{font-size:22px}.osp-bar .osp-price small{display:block;margin:0;font-size:12px}.osp-bar .osp-btn{width:auto;padding:12px 22px;white-space:nowrap}}
@media (max-width:520px){.osp-meta .osp-by{flex-basis:100%}.osp-meta .osp-dot{display:none}.osp-meta{gap:6px 16px}.osp{padding:0 16px 56px}.osp-row{grid-template-columns:96px 1fr;}.osp-th{width:96px}.osp-p{grid-column:2;padding:0}.osp-train{grid-template-columns:1fr}.osp-play{font-size:15px;padding-right:18px;bottom:3.4cqw}.osp-play b{width:30px;height:30px}.osp-h2{font-size:23px}}
/* Round 3 R3.2: .osp a{color:inherit} is more specific than .osp-btn{color:#fff}, so the link button text came out dark navy (3.08 to 1 on the blue). White is 5.2 to 1. */
.osp a.osp-btn{text-decoration:none;display:flex;align-items:center;justify-content:center;color:#fff}
/* Round 3 R3.1: the myCRED Rewards launcher is fixed at the bottom right (z-index 99999) and sat on the bar's Add to basket button. While the bar shows, lift it clear. It is matched by the widget's own id and first child, not its generated class; if myCRED changes that markup this matches nothing and the launcher stays where it is. */
@media (max-width:980px){body.osp-bar-on #mycred-loyalty-widget-root>.MuiBox-root{bottom:calc(var(--osp-bar-h,72px) + 12px)!important}}
/* The open Rewards panel is the launcher wrapper's second child (position:absolute; bottom:60px; height:min(652px,100vh - 120px)), sized for a wrapper at bottom:20px. Lifted by the bar it would lose its 40px top gap on phones under about 772px tall, so cap it by the same amount. The svh version sits in @supports because a declaration holding var() is not dropped at parse time by a browser without svh: it would replace the vh line and then compute to none, losing the cap. */
@media (max-width:980px){body.osp-bar-on #mycred-loyalty-widget-root>.MuiBox-root>.MuiBox-root+.MuiBox-root{max-height:calc(100vh - 112px - var(--osp-bar-h,72px))!important}}
@supports (max-height:100svh){@media (max-width:980px){body.osp-bar-on #mycred-loyalty-widget-root>.MuiBox-root>.MuiBox-root+.MuiBox-root{max-height:calc(100svh - 112px - var(--osp-bar-h,72px))!important}}}
.osp-own{margin:0 0 10px;font-weight:700;color:var(--navy)}
.osp-stage video{position:absolute;inset:0;width:100%;height:100%;z-index:40;background:#000}
.osp-buyin .yay-currency-switcher,.osp-buyin .yay-currency-custom-select-wrapper{margin-bottom:14px}


/* The theme gives a plain page an empty left sidebar column and its own title.
   The pass is full width, as course pages are, and has its own h1. */
body.os-aa-pass-page #secondary,body.os-aa-pass-page .entry-header{display:none}
body.os-aa-pass-page #primary{float:none;width:100%;max-width:none;margin:0;padding:0}
