/* Prototype H: Basecamp meets Calm meets G. Built on G's stylesheet; the H section at the end turns it into warm paper. */
:root {
  --text: #F6F1EA; --muted: rgba(246, 241, 234, .66); --faint: rgba(246, 241, 234, .42);
  --panel: rgba(18, 12, 9, .52); --panel-2: rgba(255, 255, 255, .06); --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .15);
  --accent: #F9393B; --gold: #E9C27A; --font: Inter, system-ui, -apple-system, sans-serif; --dev: "Noto Serif Devanagari", serif;
  --mini: 0px; color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: clip; }
html { background: #0E0A08; }
body { font: 400 16px/1.5 var(--font); font-optical-sizing: auto; color: var(--text); min-height: 100dvh; -webkit-font-smoothing: antialiased; letter-spacing: -.006em; }
body.has-mini { --mini: 66px; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; color: inherit; background: none; border: 0; letter-spacing: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.ic { width: 20px; height: 20px; flex: none; stroke-width: 1.7; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }

/* ---------- the living background ---------- */
#amb { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #0E0A08; }
.amb-img { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; object-position: center 25%; filter: blur(46px) saturate(1.25) brightness(.5); opacity: 0; transition: opacity 1.4s ease; }
.amb-img.on { opacity: 1; }
.amb-tex { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; mix-blend-mode: soft-light; filter: blur(2px); }
.amb-fx { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; opacity: .55; }
.amb-grain { position: absolute; inset: -50%; opacity: .09; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(4) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }
#amb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 10, 8, .15) 0%, rgba(14, 10, 8, .35) 40%, rgba(14, 10, 8, .72) 100%); }

#view { position: relative; max-width: 680px; margin: 0 auto; padding: 8px 16px calc(110px + var(--mini) + env(safe-area-inset-bottom)); outline: none; }

/* top bar */
#top { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); background: linear-gradient(180deg, rgba(14, 10, 8, .7), rgba(14, 10, 8, 0)); }
.tb-in { max-width: 680px; margin: 0 auto; display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 12px 0 16px; }
.logo { height: 22px; width: auto; }
.back-btn { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 14px 0 8px; margin-left: -8px; border-radius: 12px; font-weight: 600; font-size: 15px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(16px); }
.sp { flex: 1; }
kbd.hint { display: none; font: 500 11px var(--font); border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 6px; color: var(--faint); }
@media (hover: hover) { kbd.hint { display: inline-block; } }

/* type */
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 500; margin-top: 14px; }
.eyebrow.link { color: var(--gold); }
.h1 { font-size: 31px; line-height: 1.12; font-weight: 600; letter-spacing: -.025em; margin: 4px 0 8px; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.pad { padding: 14px 0; }
.lbl { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--gold); margin-bottom: 8px; }
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 32px 0 10px; }
.sec h2 { font-size: 15px; font-weight: 600; }
.sec a { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 14px; }
.sec a .ic { width: 15px; height: 15px; }
.count { color: var(--faint); font-size: 14px; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(249, 57, 59, .2); animation: blink 1.8s infinite; flex: none; display: inline-block; }
@keyframes blink { 50% { opacity: .35; } }

/* panels */
.card, .group, .fold, .tabpane, .live-row, .faq { background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.card { border-radius: 20px; padding: 18px; margin-top: 12px; }
.group { border-radius: 16px; overflow: hidden; }
.group > * + * { border-top: 1px solid var(--line); }
.intent .big { font-size: 22px; line-height: 1.35; font-weight: 500; letter-spacing: -.015em; }
.q { font-size: 19px; line-height: 1.45; font-weight: 500; }
textarea { width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); resize: vertical; font-size: 16px; color: var(--text); outline: none; }
textarea::placeholder { color: var(--faint); }
.verse-card .vs { font-size: 19px; line-height: 1.55; font-weight: 500; color: #FBE3B6; letter-spacing: -.005em; }
.verse-card .ve { font-size: 17px; line-height: 1.55; margin-top: 8px; }
.verse-card .src { color: var(--faint); font-size: 14px; margin-top: 6px; }
.carry { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.carry span { font-size: 13px; color: var(--muted); }
.carry p { font-size: 17px; font-weight: 500; margin-top: 2px; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .06); font-weight: 600; font-size: 16px; transition: transform .15s; }
.btn.primary { background: #F6F1EA; color: #1A110C; border-color: transparent; }
.btn.big { height: 54px; padding: 0 26px; font-size: 17px; }
.btn:active, .chip-btn:active { transform: scale(.97); }
.btn .ic { width: 18px; height: 18px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); font-size: 15px; font-weight: 500; margin-top: 14px; transition: transform .15s; }
.chip-btn[aria-pressed="true"] { background: rgba(233, 194, 122, .16); border-color: rgba(233, 194, 122, .5); color: var(--gold); }
.chip-btn .ic { width: 17px; height: 17px; }
.link-btn { color: var(--gold); font-weight: 600; font-size: 15px; min-height: 44px; margin-top: 4px; }
.ic-btn { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; }
.ic-btn.bordered { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); }
.play-sm { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); flex: none; }
.play-sm .ic { width: 16px; height: 16px; }
.play-sm.solid { background: #F6F1EA; color: #1A110C; border: 0; }

/* Daily Mantra / start-here card */
.dm { padding: 0; overflow: hidden; }
.dm-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.dm-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.dm-img:hover img { transform: scale(1.03); }
.dm-in { padding: 16px 18px 18px; }
.dm h2 { font-size: 23px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; margin-bottom: 4px; }

/* rows */
.str, .row, .lesson, .live-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; min-height: 68px; }
.str > .ic, .lesson > .ic { color: var(--faint); width: 18px; }
.ic-art { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; flex: none; background: #F2E9DA; }
.ic-art.lg { width: 76px; height: 76px; border-radius: 20px; }
.ic-art img, .th img, .av img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.th { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; flex: none; background: var(--panel-2); }
.row-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.list .row { padding-left: 12px; }
.idx { width: 20px; text-align: right; color: var(--faint); font-size: 14px; font-variant-numeric: tabular-nums; flex: none; }
.rt { flex: 1; min-width: 0; text-align: left; }
.rt b { display: block; font-weight: 500; font-size: 16px; line-height: 1.3; }
.rt small { display: block; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-row { margin-top: 12px; border-radius: 16px; padding-left: 16px; }
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; width: 18px; }
.eq i { width: 4px; height: 6px; border-radius: 2px; background: var(--accent); }
.eq.on i { animation: eq 1s ease-in-out infinite; }
.eq.on i:nth-child(2) { animation-delay: -.3s; } .eq.on i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 50% { height: 18px; } }
.pbar { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); margin-top: 8px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.pct { color: var(--faint); font-size: 14px; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { height: 42px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); backdrop-filter: blur(14px); font-size: 15px; font-weight: 500; }
.s-head { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.s-head .eyebrow { margin-top: 0; }
.av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; }
.av.xl { width: 84px; height: 84px; }

/* tiles */
.hs { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.hs::-webkit-scrollbar { display: none; }
.tile { flex: none; width: 150px; scroll-snap-align: start; }
.tile-img { display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.tile b { display: block; font-size: 15px; font-weight: 500; line-height: 1.3; margin-top: 8px; }
.tile small { color: var(--muted); font-size: 13px; }
.lesson-card { flex: none; width: 250px; scroll-snap-align: start; padding: 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(20px); }
.ln-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(233, 194, 122, .16); color: var(--gold); font-weight: 700; font-size: 14px; }
.lesson-card b { display: block; font-size: 17px; margin: 10px 0 4px; }
.lesson-card p { color: var(--muted); font-size: 15px; }

/* segmented + folds */
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(16px); margin: 14px 0; }
.seg > * { flex: 1; height: 40px; display: grid; place-items: center; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--muted); }
.seg [aria-current="true"] { background: rgba(255, 255, 255, .12); color: var(--text); }
.fold { border-radius: 14px; margin-bottom: 8px; overflow: hidden; }
.fold summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; min-height: 64px; cursor: pointer; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary b { flex: 1; font-weight: 600; }
.fold summary .ic { color: var(--faint); transition: transform .2s; }
.fold[open] summary .ic { transform: rotate(180deg); }
.fold .list { border-top: 1px solid var(--line); }
.fold .list > * + * { border-top: 1px solid var(--line); }

/* mantra hero */
.m-hero { margin-top: 10px; }
.m-img { display: block; width: min(100%, 360px); aspect-ratio: 1; margin: 0 auto; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.m-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }

/* tabs under the playing mantra */
.tabs2 { display: flex; gap: 4px; margin-top: 26px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); }
.tabs2 button { flex: 1; height: 44px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--muted); }
.tabs2 [aria-selected="true"] { background: rgba(255, 255, 255, .12); color: var(--text); }
.tabpane { border-radius: 20px; padding: 6px 20px 20px; margin-top: 10px; }
.shows { display: flex; gap: 6px; padding: 12px 0 4px; }
.shows button { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--faint); }
.shows button[aria-pressed="true"] { color: var(--text); background: rgba(255, 255, 255, .08); }

/* the words: world-class setting */
.verse { position: relative; padding: 18px 0 6px; }
.vn { position: absolute; right: 0; top: 20px; font-size: 12px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.ln { padding: 0 0 18px; }
.dev { font-family: var(--dev); font-weight: 500; font-size: 22px; line-height: 1.75; color: #FBE3B6; letter-spacing: 0; }
.tr { font-size: 19px; line-height: 1.5; font-weight: 500; letter-spacing: -.012em; margin-top: 4px; }
.mn { font-size: 16px; line-height: 1.55; color: var(--muted); margin-top: 6px; padding-left: 12px; border-left: 2px solid rgba(233, 194, 122, .35); }
.orn { text-align: center; font-family: var(--dev); color: rgba(233, 194, 122, .55); font-size: 18px; padding: 2px 0 6px; }
.life-lead { font-size: 18px; line-height: 1.55; padding-top: 14px; }
.sub-h { font-size: 14px; font-weight: 600; color: var(--gold); margin: 22px 0 10px; }
.steps { list-style: none; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 0 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: rgba(233, 194, 122, .16); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.steps b { font-size: 16px; }
.steps span { color: var(--muted); font-size: 15px; }
.why { padding-left: 18px; color: var(--muted); }
.why li { padding: 4px 0; }
.body { font-size: 16px; line-height: 1.65; color: rgba(246, 241, 234, .86); }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.faq { border: 0; border-radius: 0; background: none; backdrop-filter: none; box-shadow: none; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; font-weight: 500; cursor: pointer; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--faint); transition: transform .2s; }
.faq[open] summary .ic { transform: rotate(180deg); }
.faq p { padding: 0 16px 16px; color: var(--muted); }

/* chant-along counter */
.ctr-goals { display: flex; gap: 6px; margin: 14px 0; }
.ctr-goals button { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; color: var(--muted); }
.ctr-goals [aria-pressed="true"] { background: rgba(233, 194, 122, .16); border-color: rgba(233, 194, 122, .5); color: var(--gold); }
.ctr { position: relative; width: 190px; height: 190px; margin: 8px auto 4px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(233, 194, 122, .18), rgba(0, 0, 0, .2)); transition: transform .12s; }
.ctr:active { transform: scale(.96); }
.ctr b { font-size: 52px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.ctr small { color: var(--muted); }
.ctr svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ctr circle { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 3; }
#ctr-arc { stroke: var(--gold); stroke-linecap: round; transition: stroke-dasharray .3s; }
.counter { text-align: center; }
.counter .lbl { justify-content: center; }
.counter .ctr-goals { justify-content: center; }

/* radio */
.radio { text-align: center; padding-top: 10px; }
.onair { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(14px); }
.r-art { position: relative; width: min(68vw, 280px); aspect-ratio: 1; margin: 34px auto 26px; }
.r-art img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; border-radius: 50%; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.halo { position: absolute; inset: -10%; border-radius: 50%; border: 1px solid rgba(233, 194, 122, .3); opacity: 0; }
.r-art.on .halo { animation: halo 4s ease-out infinite; }
.r-art.on .h2 { animation-delay: 2s; }
@keyframes halo { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.25); opacity: 0; } }
.r-title { font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.r-play { width: 84px; height: 84px; border-radius: 50%; background: #F6F1EA; color: #1A110C; display: grid; place-items: center; margin: 22px auto 10px; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .8); transition: transform .15s; }
.r-play:active { transform: scale(.95); }
.r-play .ic { width: 32px; height: 32px; }
.r-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* programmes: posters */
.poster { position: relative; display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line-2); margin-top: 12px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.poster.big { aspect-ratio: 4 / 4.4; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 38%, transparent 70%, rgba(0, 0, 0, .55)); }
.poster .pt { position: absolute; z-index: 1; left: 18px; right: 18px; top: 18px; font-size: 30px; line-height: 1.02; font-weight: 700; letter-spacing: -.035em; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.poster .pt::after { content: "."; color: var(--accent); }
.poster.big .pt { font-size: 40px; }
.poster .pm { position: absolute; z-index: 1; left: 18px; bottom: 16px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .9); }
.posters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.posters .poster .pt { font-size: 21px; }
.meter { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.st { width: 20px; height: 20px; border-radius: 50%; border: 1.6px solid var(--faint); flex: none; display: grid; place-items: center; margin: 0 6px 0 4px; }
.st-next { border-color: var(--gold); background: conic-gradient(var(--gold) 0 50%, transparent 0); }
.st-done { border-color: var(--gold); background: var(--gold); color: #1A110C; }
.st-done .ic { width: 12px; height: 12px; stroke-width: 3; }
.vid { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #000; margin: 14px 0 4px; }
.read { font-size: 19px; line-height: 1.65; margin: 14px 0; }

/* dock */
#tabs { position: fixed; left: 0; right: 0; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 25; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 0 10px; pointer-events: none; }
.dock, .dock-search { pointer-events: auto; background: rgba(24, 16, 12, .62); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); border: 1px solid var(--line-2); box-shadow: 0 14px 40px -14px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06); }
.dock { display: flex; padding: 5px; border-radius: 22px; flex: 1; max-width: 520px; }
.dock a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 54px; border-radius: 17px; font-size: 11.5px; font-weight: 500; color: var(--faint); }
.dock a .ic { width: 21px; height: 21px; }
.dock a[aria-current] { background: rgba(255, 255, 255, .1); color: var(--text); }
.dock a[aria-current] .ic { color: var(--gold); }
.dock-search { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; flex: none; }
#mini { position: fixed; left: 10px; right: 10px; bottom: calc(82px + env(safe-area-inset-bottom)); z-index: 24; max-width: 600px; margin: 0 auto; }
#mini:not(:empty) { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 7px; border-radius: 14px; background: rgba(28, 19, 14, .82); backdrop-filter: blur(20px); border: 1px solid var(--line-2); overflow: hidden; }
.mini-open { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
#mini .th { width: 44px; height: 44px; }
#mini .rt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.mb i { display: block; height: 100%; width: 0; background: var(--gold); }

/* search */
#cmd { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); display: none; padding: max(10px, env(safe-area-inset-top)) 10px 10px; }
#cmd.open { display: block; }
.cmd-in { max-width: 620px; margin: 0 auto; background: rgba(28, 19, 14, .96); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; max-height: calc(100dvh - 40px); display: flex; flex-direction: column; }
.cmd-q { display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px; height: 58px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cmd-q input { flex: 1; border: 0; outline: none; background: none; font: 400 17px var(--font); color: var(--text); min-width: 0; }
.esc { height: 40px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-size: 15px; }
.cmd-r { overflow-y: auto; padding: 6px; }
.cg { font-size: 13px; font-weight: 500; color: var(--faint); padding: 10px 10px 4px; }
.ci { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 10px; border-radius: 10px; }
.ci img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; object-position: center 25%; }
.ci > .ic { width: 36px; color: var(--muted); }
.ci span { display: flex; flex-direction: column; font-size: 16px; }
.ci small { color: var(--muted); font-size: 13px; }

/* player: a scrolling sheet; controls first, words below */
#player { position: fixed; inset: 0; z-index: 50; background: rgba(10, 6, 4, .38); transform: translateY(100%); transition: transform .38s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; overscroll-behavior: contain; }
#player.open { transform: none; }
.pp { max-width: 600px; margin: 0 auto; padding: max(10px, env(safe-area-inset-top)) 18px calc(30px + env(safe-area-inset-bottom)); }
.pp-top { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2; padding: 6px 0; }
.close-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px 0 10px; border-radius: 999px; background: rgba(24, 16, 12, .7); border: 1px solid var(--line-2); backdrop-filter: blur(14px); font-weight: 600; font-size: 15px; }
.pp-head { text-align: center; margin-top: 8px; }
.pp-art { display: block; width: min(70vw, 300px); aspect-ratio: 1; margin: 0 auto 18px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.pp-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.pp-info h2 { font-size: 25px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
#seek { width: 100%; accent-color: #F6F1EA; height: 28px; margin-top: 16px; }
.times { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.live-l { display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--muted); margin-top: 14px; }
.pp-c { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 6px; }
.pp-c:has(> :only-child) { justify-content: center; }
.pp-c button { width: 52px; height: 52px; display: grid; place-items: center; }
.pp-c .ic { width: 26px; height: 26px; }
.pp-play { width: 76px !important; height: 76px !important; border-radius: 50%; background: #F6F1EA; color: #1A110C; }
.pp-play .ic { width: 30px; height: 30px; }
.pp-row { display: flex; justify-content: center; gap: 8px; }
.pp-row .chip-btn { margin-top: 6px; }

/* motion */
.rv { animation: rvIn .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms); }
@keyframes rvIn { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } }
.h1 .w { display: inline-block; opacity: 0; transform: translateY(8px); filter: blur(10px); animation: wIn .6s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 60ms); }
@keyframes wIn { to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { *, .rv, .h1 .w { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; } .amb-grain { display: none; } }


/* ================= H: Basecamp × Calm ================= */
:root {
  --text: #1F2A30; --muted: #5C6770; --faint: #8C959B; --panel: #FFFFFF; --panel-2: #F4F0E8; --line: #E8E2D6; --line-2: #DCD4C5;
  --accent: #E5322F; --gold: #B7791F; --green: #2E9E5B; --link: #1D63C1; --font: "Nunito Sans", system-ui, -apple-system, sans-serif; color-scheme: light;
}
html { background: #FBF8F2; }
body { letter-spacing: 0; }
/* Calm's imagery lives in a band at the top, fading into paper */
#amb { height: 360px; bottom: auto; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); background: #FBF8F2; }
#amb::after { background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .25)); }
.amb-img { filter: blur(36px) saturate(1.2) brightness(.75); }
body.locked #amb { height: 100%; -webkit-mask-image: none; mask-image: none; }
#top { background: rgba(251, 248, 242, .92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.back-btn { background: #fff; border-color: var(--line); backdrop-filter: none; }
.hey-btn { position: relative; height: 40px; padding: 0 14px; border-radius: 999px; background: #FFE65C; color: #1F2A30; font-weight: 800; font-size: 15px; }
.hey-btn i { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: #fff; font: 800 12px/20px var(--font); font-style: normal; text-align: center; padding: 0 5px; }
.find-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 700; font-size: 15px; color: var(--text); }
.find-btn .ic { width: 17px; height: 17px; }
.band { color: #fff; padding: 22px 2px 26px; text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.band .eyebrow { color: rgba(255, 255, 255, .9); margin-top: 0; }
.band .h1 { font-size: 34px; font-weight: 800; }
.band-line { font-size: 18px; line-height: 1.45; max-width: 30em; font-weight: 600; }
.h1 { font-weight: 800; letter-spacing: -.02em; }
.eyebrow { color: var(--muted); }
.eyebrow.link, .lbl, .sub-h { color: var(--gold); }
.lead { color: var(--muted); }
.card, .group, .fold, .tabpane, .live-row, .todo-card, .seg, .chips a, .lesson-card { background: #fff; border: 1px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 2px rgba(31, 42, 48, .04), 0 6px 20px -12px rgba(31, 42, 48, .18); }
.faq { box-shadow: none; }
textarea { background: #FBF8F2; border-color: var(--line); color: var(--text); }
.verse-card .vs, .todo .vs { color: #8A4B12; }
.dev { color: #8A2E12; }
.mn { border-left-color: rgba(183, 121, 31, .4); }
.orn { color: rgba(183, 121, 31, .6); }
.btn { background: #fff; border-color: var(--line-2); color: var(--text); }
.btn.primary { background: var(--green); color: #fff; }
.chip-btn { background: #fff; border-color: var(--line-2); }
.chip-btn[aria-pressed="true"], .ctr-goals [aria-pressed="true"], .shows button[aria-pressed="true"] { background: #E9F6EE; border-color: #A9D9BC; color: #1E7A44; }
.play-sm { border-color: var(--line-2); }
.play-sm.solid { background: var(--green); color: #fff; }
.ic-btn.bordered { background: #fff; border-color: var(--line-2); }
.tabs2 { background: var(--panel-2); border-color: var(--line); }
.tabs2 [aria-selected="true"], .seg [aria-current="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.shows button { border-color: var(--line-2); color: var(--faint); }
.th, .tile-img, .ic-art { background: var(--panel-2); }
.pbar { background: var(--panel-2); }
.pbar i, #ctr-arc { background: var(--green); stroke: var(--green); }
.st-next { border-color: var(--green); background: conic-gradient(var(--green) 0 50%, transparent 0); }
.st-done { border-color: var(--green); background: var(--green); color: #fff; }
.ctr { background: radial-gradient(circle at 50% 40%, #EAF6EF, #fff); border: 1px solid var(--line); }
.ctr circle { stroke: var(--panel-2); }
.ln-n, .steps li::before { background: #FFF3C4; color: #7A5A00; }
.onair { background: #fff; border-color: var(--line); }
.r-play, .pp-play { background: var(--green); color: #fff; }
.r-art img { border-color: #fff; border-width: 4px; }
.halo { border-color: rgba(46, 158, 91, .35); }
.m-img, .pp-art, .poster { border-color: #fff; border-width: 4px; box-shadow: 0 24px 50px -24px rgba(31, 42, 48, .45); }
.dm-in h2, .pp-info h2, .r-title { font-weight: 800; }
.dot { background: var(--accent); }
.eq i { background: var(--green); }

/* Basecamp to-dos */
.todo-card { border-radius: 16px; padding: 18px 18px 8px; margin-top: 4px; }
.todo-h { display: flex; justify-content: space-between; align-items: baseline; }
.todo-h h2 { font-size: 20px; font-weight: 800; }
.todo-bar { height: 6px; border-radius: 6px; background: var(--panel-2); margin: 10px 0 6px; overflow: hidden; }
.todo-bar i { display: block; height: 100%; background: var(--green); border-radius: 6px; transition: width .4s; }
.todo { border-top: 1px solid var(--line); }
.todo summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 60px; cursor: pointer; font-size: 17px; font-weight: 700; }
.todo summary::-webkit-details-marker { display: none; }
.todo summary > span { flex: 1; }
.todo summary > .ic { color: var(--faint); transition: transform .2s; }
.todo[open] summary > .ic { transform: rotate(180deg); }
.todo.done summary > span { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.tick { width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; flex: none; background: #fff; transition: background .2s, border-color .2s; }
.tick .ic { width: 18px; height: 18px; stroke-width: 3; }
.tick[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; animation: pop .3s; }
@keyframes pop { 50% { transform: scale(1.18); } }
.todo-b { padding: 0 0 16px 42px; }
.todo-b .big { font-size: 19px; font-weight: 600; line-height: 1.45; }
.todo-b .q { font-size: 17px; }
.todo-b .vs { font-size: 17px; font-weight: 600; }
.todo-b .ve { margin-top: 6px; }
.todo-b .src { color: var(--faint); font-size: 14px; margin-top: 4px; }
.well { text-align: center; color: var(--green); font-weight: 800; padding: 14px 0 10px; }

/* HQ tiles */
.hq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hq-t { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(31, 42, 48, .04), 0 6px 20px -12px rgba(31, 42, 48, .18); min-height: 150px; transition: transform .15s; }
.hq-t:active { transform: scale(.98); }
.hq-t.big { grid-column: span 2; }
.hq-t b { font-size: 17px; font-weight: 800; margin-top: 8px; }
.hq-t small { color: var(--muted); font-size: 14px; }
.hq-img { display: block; aspect-ratio: 16 / 8; border-radius: 10px; overflow: hidden; }
.hq-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hq-ic { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--panel-2); }
.hq-ic img { width: 100%; height: 100%; object-fit: cover; }
.hq-ic.live { background: #FDECEB; }
.hq-ic.num { font-weight: 800; font-size: 18px; color: var(--gold); background: #FFF3C4; }

/* Hey! panel */
#hey { position: fixed; inset: 0; z-index: 60; background: rgba(31, 42, 48, .35); display: none; padding: calc(64px + env(safe-area-inset-top)) 10px 10px; }
#hey.open { display: block; }
.hey-in { max-width: 520px; margin: 0 0 0 auto; background: #fff; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .35); overflow: hidden; }
.hey-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 8px 18px; }
.hey-h h2 { font-size: 22px; font-weight: 800; }
.hey-i { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; min-height: 64px; border-top: 1px solid var(--line); }
.hey-i > .ic { color: var(--faint); }
.hey-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--link); flex: none; }
.hey-i.read .hey-dot { background: transparent; border: 1.5px solid var(--line-2); }
.esc { color: var(--link); font-weight: 700; }

/* Basecamp-style bottom tabs (plain, labelled) */
#tabs { left: 0; right: 0; bottom: 0; gap: 0; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); pointer-events: auto; }
#tabs a { flex: 1; max-width: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; font-size: 12px; font-weight: 700; color: var(--faint); }
#tabs a .ic { width: 22px; height: 22px; }
#tabs a[aria-current] { color: var(--text); }
#tabs a[aria-current] .ic { color: var(--green); stroke-width: 2.3; }
#mini { bottom: calc(72px + env(safe-area-inset-bottom)); }
#mini:not(:empty) { background: #fff; border-color: var(--line-2); box-shadow: 0 12px 30px -12px rgba(31, 42, 48, .3); }
.mb i { background: var(--green); }
.cmd-in { background: #fff; }
.ci:hover { background: var(--panel-2); }
#cmd { background: rgba(31, 42, 48, .35); }
/* the player stays Calm: dark and immersive */
#player { background: rgba(10, 6, 4, .45); color: #F6F1EA; --text: #F6F1EA; --muted: rgba(246, 241, 234, .7); --faint: rgba(246, 241, 234, .45); --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .16); }
#player .tabpane, #player .tabs2 { background: rgba(18, 12, 9, .55); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
#player .tabs2 [aria-selected="true"] { background: rgba(255, 255, 255, .14); color: #F6F1EA; }
#player .chip-btn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #F6F1EA; }
#player .dev { color: #FBE3B6; }
#player .shows button { color: rgba(246, 241, 234, .5); border-color: rgba(255, 255, 255, .16); }
#player .shows button[aria-pressed="true"] { background: rgba(255, 255, 255, .1); color: #F6F1EA; border-color: rgba(255, 255, 255, .25); }
#player .close-btn { color: #F6F1EA; }
#player .steps li::before { background: rgba(233, 194, 122, .16); color: #E9C27A; }
#player .sub-h { color: #E9C27A; }

/* while the player is open, only the background and the player show */
body.locked #view, body.locked #tabs, body.locked #mini, body.locked #top { visibility: hidden; }

.vhead { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding: 2px 0 12px; }
.ln:has(> .mn:only-child) .mn { margin-top: 0; }
