/* /practice chooser on yoga.org chrome (brand1128). Only the opening screen (#gate) and the finish view are restyled;
   the practice room itself (#room) keeps its own dark stage. */
body.practice-page:not(.in-room){background:#f8f6f1;color:#1f2a24}
body.practice-page.in-room .yo-nav,body.practice-page.in-room .bg-foot,body.practice-page.show-done .bg-gate-foot{display:none}
body.practice-page.in-room #gate,body.practice-page.show-done #gate,body.practice-page.show-done #room{display:none!important}
body.practice-page.show-done #done{display:block}
body.practice-page #gate.prep-room{position:static;inset:auto;z-index:auto;width:auto;height:auto;min-height:0;display:block;background:#f8f6f1;color:#1f2a24;padding:0;overflow:visible;font-family:var(--sans)}
body.practice-page #gate .e-start{display:block;position:static;padding:0;background:none;backdrop-filter:none;overflow:visible;min-height:0;height:auto}
body.practice-page #gate .e-start-card{display:block;width:auto;max-width:1120px;margin:0 auto;padding:40px 32px 72px;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;color:#1f2a24}
body.practice-page #gate .e-start-copy{display:block;padding:0;max-width:none;align-items:stretch}
body.practice-page #gate .e-start-copy p{max-width:none}
body.practice-page #gate #live-demo,body.practice-page #gate .e-start-art,body.practice-page #gate #start-eyebrow,body.practice-page #gate .e-start-copy>h2,body.practice-page #gate .e-start-copy>h2+p,body.practice-page #gate .e-why,body.practice-page #gate .prep-fine,body.practice-page #gate #paths-q,body.practice-page #gate .e-start-copy>.button.secondary{display:none!important}
#gate .bg-k,.bg-k{margin:0 0 10px;font:600 13px/1.2 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:#9a4524}
#gate .bg-head h1{margin:0;font:500 clamp(32px,4vw,46px)/1.1 var(--serif);letter-spacing:-.01em;color:#1f2a24}
#gate .bg-head p.bg-sub{margin:10px 0 0;font-size:18px;color:#4c544f;max-width:640px}
#gate .bg-head .bg-s2-line{margin:8px 0 0;font:italic 400 19px/1.4 var(--serif);color:#3a423d}
.bg-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0 0 6px -4px;padding:0 6px;border:0;background:none;color:#2e5440;font:600 15px/1 var(--sans);cursor:pointer}
.bg-back:hover{text-decoration:underline}
#gate[data-step="1"] .bg-s2,#gate[data-step="1"] #intention,#gate[data-step="1"] #modes,#gate[data-step="1"] #length-pick.e-length,body.practice-page #gate[data-step="1"] #begin.button,#gate[data-step="1"] .e-cam-need,#gate[data-step="1"] .bg-start-more,#gate[data-step="1"] #beta-optin,#gate[data-step="1"] .bg-beta{display:none!important}
#gate[data-step="2"] .bg-s1,#gate[data-step="2"] #paths{display:none!important}
/* Step 1: four limb cards */
#gate .e-paths{margin:28px 0 0;padding:0;border:0;background:none}
#gate #path-pick.e-path-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#gate #path-pick .e-path{display:grid;grid-template-columns:240px minmax(0,1fr);align-items:center;gap:0;width:100%;min-height:0;margin:0;padding:0;border:1px solid #e4e0d8;border-radius:18px;background:#fff;color:#1f2a24;text-align:left;overflow:hidden;cursor:pointer;box-shadow:none;transition:box-shadow .15s,border-color .15s,transform .15s}
#gate #path-pick .e-path:hover{border-color:#2e5440;transform:translateY(-1px);box-shadow:0 16px 36px -24px rgba(31,42,36,.5)}
#gate #path-pick .e-path:focus-visible{outline:3px solid #8a3a1c;outline-offset:2px}
#gate #path-pick .e-path[aria-checked="true"]{border-color:#e4e0d8;box-shadow:none}
#gate #path-pick .e-path .e-path-ic{display:none}
.bg-pimg{display:block;width:100%;height:100%;min-height:180px;aspect-ratio:4/3;overflow:hidden}
.bg-pimg img{display:block;width:100%;height:100%;object-fit:cover}
#gate #path-pick .e-path .e-path-t{display:flex;flex-direction:column;align-items:flex-start;padding:18px 22px;gap:0;background:none}
#gate #path-pick .e-path .e-path-t em{order:-1;font:600 12px/1 var(--sans);font-style:normal;letter-spacing:.12em;text-transform:uppercase;color:#9a4524;margin:0 0 8px;opacity:1}
#gate #path-pick .e-path .e-path-t b{font:500 24px/1.15 var(--serif);color:#1f2a24}
#gate #path-pick .e-path .e-path-t small{display:block;margin-top:6px;font:italic 400 17px/1.4 var(--serif);color:#4c544f;opacity:1}
#gate #path-pick .e-path .e-path-t .bg-go{margin-top:12px;font:600 14px/1 var(--sans);font-style:normal;color:#2e5440;letter-spacing:0;text-transform:none}
#gate .bg-note{margin:22px 0 0;color:#4c544f;font-size:15px}
/* Step 2 */
#gate .bg-s2{margin:0 0 22px}
#gate #intention.e-intent{margin:0;padding:0;border:0;background:none}
#gate #intention #intention-q{display:none}
#gate #intention-pick.e-int-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#gate #intention-pick .e-int{display:flex;flex-direction:column;align-items:stretch;width:100%;margin:0;padding:0;border:1px solid #e4e0d8;border-radius:16px;background:#fff;color:#1f2a24;overflow:hidden;text-align:left;cursor:pointer;box-shadow:none}
#gate #intention-pick .e-int:hover{border-color:#2e5440}
#gate #intention-pick .e-int[aria-checked="true"]{border:2px solid #2e5440;box-shadow:0 0 0 3px #dbe6df}
#gate #intention-pick .e-int .e-int-img{display:block;width:100%;aspect-ratio:16/9;height:auto;border-radius:0;margin:0}
#gate #intention-pick .e-int .e-int-img img{width:100%;height:100%;object-fit:cover}
#gate #intention-pick .e-int b{display:block;padding:12px 14px 14px;font:600 16px/1.3 var(--sans);color:#1f2a24}
#gate #intention-pick .e-int b small,#gate #intention-pick .e-int small{color:#4c544f;font-weight:400}
#gate #intention-note{margin:12px 0 0;color:#4c544f;font-size:15px}
#gate #modes.e-modes{margin:0;padding:0;border:0;background:none}
#gate #modes .e-mode-head .e-q{margin:0 0 10px;font:600 15px/1.3 var(--sans);color:#1f2a24}
#gate #mode-pick.e-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#gate #mode-pick .e-mode-card{display:grid;grid-template-columns:132px minmax(0,1fr);align-items:center;gap:0;width:100%;margin:0;padding:0;border:1px solid #e4e0d8;border-radius:16px;background:#fff;color:#1f2a24;text-align:left;overflow:hidden;cursor:pointer;min-height:110px}
#gate #mode-pick .e-mode-card[hidden]{display:none}
#gate #mode-pick .e-mode-card[aria-checked="true"]{border:2px solid #2e5440;box-shadow:0 0 0 3px #dbe6df}
#gate #mode-pick .e-mode-card .e-mode-ic{display:grid;place-items:center;width:100%;height:100%;min-height:110px;aspect-ratio:auto;border-radius:0;background:linear-gradient(160deg,#1f3a2d,#10271c);margin:0}
#gate #mode-pick .e-mode-card .e-mode-ic svg{width:100%;height:auto;max-height:70px}
#gate #mode-pick .e-mode-card b{display:block;padding:14px 16px;font:500 21px/1.2 var(--serif);color:#1f2a24}
#gate #mode-pick .e-mode-card b small{display:block;margin-top:5px;font:400 14px/1.35 var(--sans);color:#4c544f}
#gate[data-path="breath"] #mode-pick,#gate[data-path="meditation"] #mode-pick{grid-template-columns:max-content}
/* Official modes.css hides #mode-pick on single-mode paths. Show that one card, but size it to the photo + title so it is not a wide blank tile. */
#gate[data-path="breath"] #mode-pick.e-mode-grid,
#gate[data-path="meditation"] #mode-pick.e-mode-grid{display:grid!important;grid-template-columns:max-content;justify-content:start;max-width:none}
#gate[data-path="breath"] #modes,#gate[data-path="meditation"] #modes{max-width:none}

#gate[data-path="breath"] #mode-pick .e-mode-card,#gate[data-path="meditation"] #mode-pick .e-mode-card{grid-template-columns:200px auto;min-height:0;width:max-content;max-width:100%}
#gate #mode-pick .e-mode-card .bg-mimg{display:none}
#gate[data-path="breath"] #mode-pick .e-mode-card .bg-mimg,#gate[data-path="meditation"] #mode-pick .e-mode-card .bg-mimg,#gate[data-path="focus"] #mode-pick .e-mode-card .bg-mimg{display:block;width:100%;height:100%;object-fit:cover;min-height:110px}
#gate[data-path="breath"] #mode-pick .e-mode-card .e-mode-ic,#gate[data-path="meditation"] #mode-pick .e-mode-card .e-mode-ic,#gate[data-path="focus"] #mode-pick .e-mode-card .e-mode-ic{display:none}
#gate #mode-note{margin:12px 0 0;color:#3a423d;font-size:16px}
/* Official #mode-opts has Count + Length. Keep our Short/Full length pills; show only the 3/4/5/6 count chips on box breathing. */
#gate #mode-opts.e-mode-opts{display:none}
#gate #mode-opts.e-mode-opts:not([hidden]):has([data-k="count"]){display:grid;gap:8px;margin:18px 0 0;padding:0;width:100%;border:0;background:none}
#gate #mode-opts .e-mo-row:not(:has([data-k="count"])),#gate #mode-opts .e-mode-fine{display:none}
#gate #mode-opts .e-mo-row:has([data-k="count"]){display:flex;align-items:center;gap:10px 12px;flex-wrap:wrap}
#gate #mode-opts .e-mo-row>span{min-width:0;font:600 13px/1.2 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:#4c544f}
#gate #mode-opts [role="radiogroup"]{display:flex;gap:8px;flex-wrap:wrap}
#gate #mode-opts .e-mo{min-height:44px;min-width:48px;padding:0 16px;border:1px solid #d6cfc3;border-radius:999px;background:#fff;color:#1f2a24;font:600 16px/1 var(--sans);cursor:pointer}
#gate #mode-opts .e-mo[aria-checked="true"]{border:2px solid #2e5440;background:#dbe6df;color:#1f2a24;box-shadow:0 0 0 3px #dbe6df}
#gate #mode-opts .e-mo:focus-visible{outline:3px solid #8a3a1c;outline-offset:2px}
/* length + start */
#gate #length-pick.e-length{display:grid!important;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0 0;width:100%}
#gate #length-pick .e-len{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:64px;margin:0;padding:10px;border:1px solid #d6cfc3;border-radius:14px;background:#fff;color:#1f2a24;cursor:pointer;text-align:center}
#gate #length-pick .e-len svg{display:none}
#gate #length-pick .e-len b{font:600 16px/1.2 var(--sans);color:#1f2a24}
#gate #length-pick .e-len .e-min{font:400 14px/1.2 var(--sans);color:#3a423d}
#gate #length-pick .e-len small{font:400 12px/1.2 var(--sans);color:#5a625c}
#gate #length-pick .e-len[aria-checked="true"]{border:2px solid #2e5440;box-shadow:0 0 0 3px #dbe6df}
body.practice-page #gate #begin.button{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;margin:16px 0 0;padding:0 24px;border:0;border-radius:999px;background:#2e5440;color:#fff;font:600 18px/1 var(--sans);box-shadow:none;cursor:pointer}
body.practice-page #gate #begin.button:hover{background:#1f3a2d}
body.practice-page #gate #begin.button:disabled{opacity:.6}
#gate .e-cam-need{display:flex;gap:8px;align-items:flex-start;margin:12px 0 0;color:#3a423d;font-size:15px;line-height:1.5}
#gate .e-cam-need::before{content:"";flex:0 0 18px;height:18px;margin-top:2px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e5440' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E") center/contain no-repeat}
#gate .prep-status{color:#1f2a24;margin:10px 0 0;max-width:640px}
#gate .prep-status.err{color:#9a2a1c}
#gate .e-cam-help{max-width:640px;margin:16px 0 0;padding:18px 20px;border-radius:14px;background:#fff;border:1px solid #e4c9bb;color:#1f2a24}
#gate .e-cam-help h3{margin:0 0 6px;font:500 20px/1.25 var(--serif);color:#1f2a24}
#gate .e-cam-help p,#gate .e-cam-help li{color:#3a423d}
#gate .e-cam-help .button.gold{background:#2e5440;color:#fff;border:0;border-radius:999px}
#gate .e-cam-help .button.secondary{display:none}
.bg-start-more{margin:16px 0 0;border-top:1px solid #e4e0d8;padding-top:6px}
.bg-start-more summary{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;color:#2e5440;font:600 15px/1.3 var(--sans);list-style:none}
.bg-start-more summary::-webkit-details-marker{display:none}
.bg-start-more summary::after{content:"";width:7px;height:7px;margin-left:4px;border-right:2px solid;border-bottom:2px solid;transform:translateY(-2px) rotate(45deg)}
.bg-start-more[open] summary::after{transform:translateY(1px) rotate(-135deg)}
.bg-start-more ul{list-style:none;margin:4px 0 8px;padding:0;display:grid;gap:10px}
.bg-start-more li{display:flex;gap:10px;color:#3a423d;font-size:15px;line-height:1.5}
.bg-start-more li i{flex:0 0 30px;height:30px;border-radius:9px;background:#dbe6df;display:grid;place-items:center;color:#1f3a2d;font-style:normal}
#gate .bg-beta{margin:20px 0 0;max-width:800px}
#gate .bg-beta #beta-optin.e-beta{margin:0 0 12px;padding:16px 18px;border:1px solid #e4e0d8;border-radius:14px;background:#fff;color:#1f2a24;max-width:none;width:100%}
#gate .bg-beta .e-eyebrow{display:block;margin:0 0 6px;font:600 13px/1.2 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:#9a4524}
#gate .bg-beta .e-beta-q{color:#1f2a24;font-size:17px;line-height:1.4;margin:0 0 12px}
#gate .bg-beta .e-beta-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#gate .bg-beta .e-beta-b{border:1px solid #d6cfc3;background:#fff;color:#1f2a24;border-radius:999px;min-height:44px;padding:0 18px;font:600 16px/1.2 var(--sans);cursor:pointer}
#gate .bg-beta .e-beta-b[aria-checked="true"]{border:2px solid #2e5440;background:#dbe6df}
#gate .bg-beta .e-beta-note{margin:10px 0 6px;color:#3a423d;font-size:14.5px}
#gate .bg-beta .e-beta-fine{color:#4c544f;font-size:13px;line-height:1.45;margin:0}
#gate[data-path="breath"] .bg-beta,#gate[data-path="meditation"] .bg-beta{display:none!important}
.bg-gate-foot{margin-top:0}
/* finish view on yoga.org chrome */
body.practice-page #done{background:#f8f6f1;color:#1f2a24}
body.practice-page #done>header.header{display:none}
body.practice-page #done .page{padding-top:40px}
body.practice-page #done .eyebrow{color:#9a4524}
body.practice-page #done h1,body.practice-page #done h2,body.practice-page #done h3{color:#1f2a24;font-family:var(--serif)}
body.practice-page #done .muted,body.practice-page #done p{color:#3a423d}
body.practice-page #done .button.gold{background:#2e5440;color:#fff;border:0;border-radius:999px}
body.practice-page #done .button.secondary{background:#fff;color:#2e5440;border:1px solid #2e5440;border-radius:999px}
body.practice-page #done .panel,body.practice-page #done .stats>div{background:#fff;border:1px solid #e4e0d8;color:#1f2a24}
/* official .stats strong/small are pale gold/green for a dark tile; on the white brand tiles they fail contrast */
body.practice-page #done .stats strong{color:#1f2a24}
body.practice-page #done .stats small,body.practice-page #done .stats span,body.practice-page #done .stats p{color:#2e5440}
body.practice-page #done .text-link{color:#2e5440}
body.practice-page #done>.footer{display:none}
/* camera-free practices (box breathing, breath counting): the stage takes the whole room, no mirror */
#room.bg-nocam .d-mirror{display:none!important}
#room.bg-nocam .room-media{grid-template-columns:minmax(0,1fr)!important}
#room.bg-nocam .room-bottom>span:first-child{visibility:hidden}
@media (max-width:900px){
 body.practice-page #gate .e-start-card{padding:24px 18px 48px}
 #gate #path-pick.e-path-grid{grid-template-columns:1fr;gap:12px}
 #gate #path-pick .e-path{grid-template-columns:116px minmax(0,1fr)}
 .bg-pimg{min-height:0;height:100%;aspect-ratio:auto}
 #gate #path-pick .e-path .e-path-t{padding:14px 14px}
 #gate #path-pick .e-path .e-path-t b{font-size:20px}
 #gate #path-pick .e-path .e-path-t small{font-size:15px}
 #gate #path-pick .e-path .e-path-t .bg-go{display:none}
 #gate #intention-pick.e-int-grid{grid-template-columns:1fr 1fr;gap:10px}
 #gate #intention-pick .e-int b{padding:9px 10px 11px;font-size:14.5px}
 #gate #mode-pick.e-mode-grid{grid-template-columns:1fr}
 #gate[data-path="breath"] #mode-pick .e-mode-card,#gate[data-path="meditation"] #mode-pick .e-mode-card{grid-template-columns:1fr;min-height:0;width:100%}
 #gate[data-path="breath"] #mode-pick .e-mode-card .bg-mimg,#gate[data-path="meditation"] #mode-pick .e-mode-card .bg-mimg{aspect-ratio:16/9;height:auto}
 #gate #mode-pick .e-mode-card{grid-template-columns:110px minmax(0,1fr)}
}
#room.bg-nocam .m-follow{display:none!important}
body.practice-page #gate #intention,body.practice-page #gate #modes{max-width:800px;width:100%}
body.practice-page #gate .bg-head{max-width:800px}
/* Step 2: one centered 800px column; every row left-aligned to the same edge (title, card, chips, button, shield). */
#gate[data-step="2"] .e-start-copy{max-width:800px;width:100%;margin:0 auto}
#gate[data-step="2"] .bg-s2,
#gate[data-step="2"] .bg-head,
#gate[data-step="2"] #intention,
#gate[data-step="2"] #modes,
#gate[data-step="2"] #mode-note,
#gate[data-step="2"] #mode-opts,
#gate[data-step="2"] #length-pick.e-length,
#gate[data-step="2"] .e-cam-need,
#gate[data-step="2"] .prep-status,
#gate[data-step="2"] .bg-start-more,
#gate[data-step="2"] .bg-beta,
body.practice-page #gate[data-step="2"] #begin.button{margin-left:0;margin-right:0;max-width:none;width:100%}
