/* Lazy YouTube facade (shared/product-sites/video.py, assets/js/video.js). The frame holds its aspect ratio before and
   after the swap to the player (no layout shift). Button text: white on navy (12.1:1), duration: white on ink (17.2:1),
   captions and notes in --muted (9.0:1), all WCAG 2.2 AAA. Loaded only on pages that carry a video. Self-contained: each var() has a fallback, so any site can
   copy this file as is (docs/product-sites/VIDEO_EMBED_SPEC.md). */
.yt-split{display:grid;grid-template-columns:minmax(0,1fr);gap:1.5rem;align-items:start}
@media (min-width:900px){.yt-split{grid-template-columns:minmax(0,1fr) minmax(0,360px);gap:2.5rem}}
.yt-block{width:100%;max-width:360px;margin:0 auto 1.5rem}
.yt-block h3{margin-top:0}
.yt{margin:0}
.yt-frame{position:relative;width:100%;aspect-ratio:9/16;border-radius:var(--radius,10px);overflow:hidden;background:var(--ink,#0B1B33)}
.yt-16-9 .yt-frame{aspect-ratio:16/9}
/* A vertical player never grows taller than the screen: its width follows the viewport height (heading, play button
   and caption start stay in view, phone landscape included); the aspect ratio keeps the box size fixed (no shift). */
.yt-9-16 .yt-frame{width:min(100%,calc((100vh - 10rem) * 9 / 16));min-width:min(100%,120px);margin-inline:auto}
@supports (height:100svh){.yt-9-16 .yt-frame{width:min(100%,calc((100svh - 10rem) * 9 / 16))}}
.yt-frame{container-type:inline-size}
.yt-poster{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;margin:0;border:0;background:var(--ink,#0B1B33);cursor:pointer;color:var(--white,#FFFFFF);font:inherit;text-decoration:none}
.yt-poster picture,.yt-poster img{display:block;width:100%;height:100%;object-fit:cover}
.yt-play{position:absolute;left:50%;bottom:1.25rem;max-width:calc(100% - 1rem);transform:translateX(-50%);display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding:.6rem 1.2rem;border:2px solid var(--white,#FFFFFF);border-radius:999px;background:var(--navy,#1A365D);color:var(--white,#FFFFFF);font:700 1rem/1.2 var(--font-body,system-ui,sans-serif);white-space:nowrap}
.yt-play-icon{flex:none}
.yt-time{position:absolute;top:.75rem;right:.75rem;padding:.2rem .5rem;border-radius:6px;background:var(--ink,#0B1B33);color:var(--white,#FFFFFF);font:700 .875rem/1.3 var(--font-body,system-ui,sans-serif)}
.yt-poster:hover .yt-play{background:var(--ink,#0B1B33)}
.yt-poster:focus-visible{outline:3px solid var(--focus,#2B4B8C);outline-offset:2px}
.yt-poster:focus-visible .yt-play{outline:3px solid var(--white,#FFFFFF);outline-offset:3px;box-shadow:0 0 0 6px var(--navy,#1A365D)}
.yt-frame:focus-within{outline:3px solid var(--focus,#2B4B8C);outline-offset:3px}
.yt-iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.yt figcaption{margin-top:.6rem;color:var(--muted,#3A4A60);font-size:.95rem;line-height:1.5}
.yt-links{list-style:none;margin:.75rem 0 0;padding:0}
.yt-links li{margin:.25rem 0}
.yt-links a{display:inline-flex;align-items:center;min-height:44px}
.yt-note{margin:.25rem 0 .5rem;color:var(--muted,#3A4A60);font-size:.95rem}
.yt-transcript summary{display:flex;align-items:center;min-height:44px;cursor:pointer;font-weight:700;color:var(--royal,#2B4B8C)}
.yt-transcript summary:focus-visible{outline:3px solid var(--focus,#2B4B8C);outline-offset:2px}
.yt-transcript-body{padding:.25rem .75rem;border:1px solid var(--line,#6B7C93);border-radius:var(--radius,10px);background:var(--white,#FFFFFF)}
.yt-transcript-body p{font-size:1rem;line-height:1.6}
@media (min-width:900px){.yt-split .yt-block{margin:0}.yt-split-text>h2:first-child{margin-top:0}}
@media (prefers-reduced-motion:reduce){.yt-poster,.yt-play{transition:none}}
.yt-noscript{margin:.5rem 0 0}
.yt-noscript a{display:inline-flex;align-items:center;min-height:44px}
/* Stand-alone script page (/assets/video/<id>-transcript.html) */
.yt-page{max-width:46rem;padding-top:2rem;padding-bottom:3rem}
.yt-page .yt-transcript-body{padding:.5rem 1rem}
.yt-page .yt-transcript-body p{font-size:1.0625rem;line-height:1.7}
.yt-back a,.yt-page .yt-links a{display:inline-flex;align-items:center;min-height:44px}
.yt .visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* Narrow frame (phone landscape): the play button keeps its icon only, 48 px round; its name stays in aria-label. */
@container (max-width:220px){.yt-play{padding:0;width:48px;height:48px;justify-content:center;bottom:.75rem}.yt-play-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.yt-time{top:.5rem;right:.5rem}}
/* Phones and tablets: the site's floating back-to-top button (48 px, 1rem from the right edge) never covers the caption,
   the links or the note. */
@media (max-width:1023px){.yt figcaption,.yt-links,.yt-note,.yt-transcript>summary{padding-inline-end:56px}}
/* Vertical video in the sticky rail (owner rules 2 Dec 2026 and 3 Dec 2026, docs/product-sites/STICKY_SIDEBAR_SPEC.md
   4.0). The card (heading, poster, one link to the script) is the first box of the rail, inside .rail-yt-track
   (video.py rail_card); the caption, script links and language note stay in the body with the script.
   Desktop (>= 1024 px): the whole rail is sticky (sidebars.css: top 1rem, max-height 100svh - 2rem, its own scrollbar
   when the stack is taller than the window), the video card and every box under it (call to action, trust strip,
   facts, "On this page"). The sidebar is 340 / 360 / 380 px wide at 1024 / 1280 / 1440 px and up; the poster fills the
   card width at 9:16, its height --yt-h set by site.js so the stack fits the window (never under 42% of the window
   height; the "On this page" list folds first), else 50svh. The boxes under the card are compact (smaller type,
   tighter padding). Below 1024 px the rail column comes back into the flow above the body and shows the video card
   only (marketing and default rails; the mobile sticky bar carries the call to action), the poster at most
   min(100%, 420px) wide, centred, and at most 80svh tall. */
.rail-yt .yt-block{max-width:none;margin:0}
.rail-yt .yt-script-link{display:inline-flex;align-items:center;min-height:44px}
.yt-script{margin:0 0 1.5rem}
.yt-script .yt-caption{color:var(--muted,#4A5568);margin:0 0 .5rem}
@media (max-width:1023px){
  .layout-cols:has(>.rail-has-video){display:flex;flex-direction:column}
  .layout-cols>.rail-col.rail-has-video{display:block;order:-1;padding-top:1rem;position:static;max-height:none;overflow:visible}
  .rail-marketing.rail-has-video .rail>:not(.rail-yt-track):not(.rail-yt),.rail-video .rail>:not(.rail-yt-track):not(.rail-yt){display:none}
  .rail-yt .yt-9-16 .yt-frame{width:min(100%,420px,calc(80vh * 9 / 16));min-width:0;margin-inline:auto}
}
@supports (height:100svh){
  @media (max-width:1023px){.rail-yt .yt-9-16 .yt-frame{width:min(100%,420px,calc(80svh * 9 / 16))}}
}
@media (min-width:1024px){
  .layout-cols:has(>.rail-has-video){grid-template-columns:minmax(0,1fr) 340px}
  .layout-cols>.rail-col.rail-has-video{padding:0}
  .rail-yt-track{margin:0 0 .5rem}
  .rail-yt{padding:.45rem .6rem 0;margin-bottom:0}
  .rail-yt h3{font-size:.9375rem;line-height:1.3;margin:0 0 .35rem}
  .rail-yt .yt-script-link{font-size:.875rem;min-height:28px}
  .rail-yt .yt-9-16 .yt-frame{width:min(100%,calc(var(--yt-h,50vh) * 9 / 16));min-width:0}
  .rail-has-video .rail-box:not(.rail-yt){padding:.5rem .75rem;margin-bottom:.5rem}
  .rail-has-video .rail-box:not(.rail-yt):last-child{margin-bottom:0}
  .rail-has-video .rail-title{font-size:.9375rem;margin:0 0 .25rem}
  .rail-has-video .rail-box .rail-text{font-size:.8125rem;line-height:1.35;margin:0 0 .3rem}
  .rail-has-video .rail-trust .rail-text{font-size:.75rem;line-height:1.35;margin:0}
  .rail-has-video .rail-box .btn{min-height:36px;padding-block:.3rem;margin:.1rem 0}
  .rail-has-video .rail-box .rail-link{min-height:28px;font-size:.8125rem;line-height:1.3;padding:.1rem 0}
  .rail-has-video .rail-box .fact-chips{margin:0 0 .4rem;font-size:.8125rem}
}
@supports (height:100svh){
  @media (min-width:1024px){.rail-yt .yt-9-16 .yt-frame{width:min(100%,calc(var(--yt-h,50svh) * 9 / 16))}}
}
@media (min-width:1280px){.layout-cols:has(>.rail-has-video){grid-template-columns:minmax(0,1fr) 360px}}
@media (min-width:1440px){.layout-cols:has(>.rail-has-video){grid-template-columns:minmax(0,1fr) 380px}}
