/* Javidnaman: the memorial as a narrated journey in nine chapters (assets/js/journey.js).
   Without JS the chapters read as a normal page. With JS (.is-app) the journey fills the screen. */
.jy {
  --bg: #07080b;
  --fg: #efe9dd;
  --dim: #a8a092;
  --line: rgba(239, 233, 221, .16);
  --gold: #f2a900;
  --glass: rgba(10, 10, 12, .62);
  --h: var(--f-serif);
  --top: 64px;
  --navh: 84px;
  background: var(--bg);
  color: var(--fg);
}
:root:lang(fa) .jy { --h: 'Vazir', Tahoma, sans-serif; }
.page-javidnaman { background: #07080b; }

/* ---------- shared type ---------- */
.jy-kicker { margin: 0 0 .9rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
:root:lang(fa) .jy-kicker { letter-spacing: 0; font-size: .92rem; }
.jy-num { color: var(--gold); }
.jy-title { font-family: var(--h); font-weight: 400; font-size: clamp(3.2rem, 11vw, 8.5rem); line-height: .95; margin: 0 0 1.4rem; letter-spacing: -.015em; }
:root:lang(fa) .jy-title { font-weight: 700; line-height: 1.3; font-size: clamp(2.6rem, 9vw, 6rem); letter-spacing: 0; }
.jy-h { font-family: var(--h); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.04; margin: 0 0 1.1rem; text-wrap: balance; outline: none; }
:root:lang(fa) .jy-h { font-weight: 700; line-height: 1.4; font-size: clamp(1.7rem, 3.6vw, 2.8rem); }
.jy-lead { font-size: clamp(1.08rem, 1.8vw, 1.35rem); line-height: 1.6; max-width: 36rem; margin: 0 auto 2rem; }
:root:lang(fa) .jy-lead { line-height: 2; }
.jy-line { font-size: clamp(1.1rem, 1.7vw, 1.38rem); line-height: 1.55; margin: 0 0 .7rem; }
:root:lang(fa) .jy-line { line-height: 1.95; }

/* ---------- without JS: a plain page of chapters ---------- */
.jy-gl, .jy-shade, .jy-flash, .jy-event, .jy-tip, .jy-signal { display: none; }
.jy-start { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: calc(var(--top) + 3rem) var(--gutter) 3rem; background: linear-gradient(#07080bcc, #07080b), url(/assets/img/jn/night.webp) center / cover; }
.jy-start-in { max-width: 48rem; }
.jy-note { color: var(--dim); font-size: .95rem; margin: .4rem auto; max-width: 34rem; }
.jy-note--dim { opacity: .8; font-size: .85rem; }
.jy-ch { padding: clamp(3rem, 10vh, 6rem) var(--gutter); background: linear-gradient(90deg, #07080b 30%, #07080bb0), var(--bg-img, none) center / cover; border-top: 1px solid var(--line); }
.jy-panel { max-width: 40rem; }
.jy-more { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.jy-more summary { cursor: pointer; color: var(--gold); font-weight: 600; list-style: none; display: inline-flex; gap: .5rem; align-items: center; }
.jy-more summary::-webkit-details-marker { display: none; }
.jy-more summary::after { content: '+'; font-size: 1.2em; line-height: 1; }
.jy-more[open] summary::after { content: '−'; }
.jy-more-in { color: var(--dim); line-height: 1.7; }
.jy-more-in p { margin: .8rem 0; }
.jy-time { list-style: none; padding: 0; margin: 0; }
.jy-time li { margin: 0 0 1rem; }
.jy-time strong { color: var(--fg); display: block; }
.jy-time p { margin: .2rem 0 0; }
.jy-facts { padding-inline-start: 1.1rem; margin: .8rem 0; }
.jy-facts li { margin-bottom: .5rem; }
.jy-src { font-size: .85rem; }
.jy-src a, .jy-more-in a { color: var(--fg); }

.jy-cards { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.jy-card { border-inline-start: 2px solid var(--gold); padding: .2rem 0 .2rem 1rem; padding-inline: 1rem 0; }
.jy-card span { color: var(--gold); font-size: .85rem; letter-spacing: .06em; }
.jy-card p { margin: .2rem 0 0; color: var(--dim); font-size: .95rem; line-height: 1.55; }

.jy-people { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .5rem; }
.jy-people button { all: unset; cursor: pointer; display: grid; gap: .3rem; font-size: .78rem; color: var(--dim); text-align: center; border-radius: 6px; }
.jy-people button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.jy-people img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; filter: grayscale(1); }
.jy-people button[aria-current=true] img { filter: none; box-shadow: 0 0 0 2px var(--gold); }
.jy-person { min-height: 0; }
.jy-person strong { display: block; width: fit-content; font-family: 'Vazir', Tahoma, sans-serif; font-size: 1.5rem; line-height: 1.5; }
.jy-person .jy-latin { display: block; font-family: var(--h); font-size: 1.2rem; color: var(--fg); }
.jy-person span { display: block; color: var(--dim); }

.jy-chants { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 1rem; }
.jy-chants q { quotes: none; display: block; font-family: 'Vazir', Tahoma, sans-serif; font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.45; }
.jy-chants span { display: block; color: var(--dim); font-family: var(--h); font-style: italic; font-size: clamp(1rem, 1.6vw, 1.25rem); }
:root:lang(fa) .jy-chants span { font-style: normal; }

.jy-ask { display: grid; gap: 1.4rem; margin-top: 1rem; }
.jy-ask h3 { margin: 0 0 .4rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
:root:lang(fa) .jy-ask h3 { letter-spacing: 0; font-size: .95rem; }
.jy-ask p { margin: 0; line-height: 1.65; color: var(--fg); }
:root:lang(fa) .jy-ask p { line-height: 2; }
.jy-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.1rem 0 0; }

.jy-part { color: var(--dim); line-height: 1.6; margin: .2rem 0 1rem; }
.jy-tools { display: grid; gap: .6rem; }
.jy-search input { width: 100%; padding: .8rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--fg); font: inherit; }
.jy-search input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.jy-tool-btns { display: flex; flex-wrap: wrap; gap: .45rem; }
.jy-count, .jy-said { margin: 0; color: var(--dim); font-size: .92rem; }
.jy-said { color: var(--fg); min-height: 1.4em; }
.jy-said small { color: var(--dim); }
.jy-results { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.jy-results button { font: inherit; font-size: .9rem; background: rgba(255, 255, 255, .06); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .75rem; cursor: pointer; }
.jy-results button:hover, .jy-results button:focus-visible { border-color: var(--gold); outline: none; }
.jy-results-wrap .btn { margin-top: .5rem; }
.jy-wall-msg { color: var(--dim); }
.jy-wall-msg a { color: var(--fg); }
.jy-when { color: var(--gold); font-size: 1.05rem; margin: 0 0 .4rem; }
.jy-come-text { line-height: 1.65; margin: 0; }
.jy-flame { display: inline-block; width: .55em; height: .85em; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff6d0, #ffb21c 45%, #e05a00 80%); box-shadow: 0 0 10px #ffb21c; vertical-align: -.1em; }
.jy-candle-btn .jy-flame { margin-inline-end: .2rem; }

/* ---------- the journey (JS) ---------- */
html.jy-lock, html.jy-lock body { overflow: hidden; height: 100%; overscroll-behavior: none; }
.jy.is-app { position: fixed; inset: 0; z-index: 300; overflow: hidden; background: var(--bg); touch-action: pinch-zoom; }
.jy.is-app .jy-gl { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.jy.is-app .jy-shade { display: block; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to var(--side-end, right), rgba(7, 8, 11, .88) 0%, rgba(7, 8, 11, .58) 38%, rgba(7, 8, 11, 0) 62%),
  linear-gradient(to top, rgba(7, 8, 11, .8), rgba(7, 8, 11, 0) 26%),
  linear-gradient(to bottom, rgba(7, 8, 11, .6), rgba(7, 8, 11, 0) 16%); transition: opacity .8s; }
[dir=rtl] .jy.is-app .jy-shade { --side-end: left; }
.jy.is-app .jy-flash { display: block; position: absolute; inset: 0; background: #07080b; opacity: 0; pointer-events: none; z-index: 5; }
.jy.is-flat .jy-story::before { content: ''; position: absolute; inset: 0; background: var(--flat-bg, none) center / cover; opacity: .55; transition: background-image .6s; }

/* top bar */
.jy-top { position: absolute; inset: 0 0 auto; height: var(--top); z-index: 20; display: flex; align-items: center; gap: 1rem; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); padding-top: env(safe-area-inset-top); }
.jy-top[hidden], .jy-nav[hidden], .jy:not(.is-started) .jy-nav { display: none; }
.jy-home { display: inline-flex; align-items: center; gap: .55rem; color: var(--fg); text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.jy-home-mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font-family: var(--h); font-size: 1.15rem; }
.jy-where { flex: 1; margin: 0; text-align: center; color: var(--dim); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jy-where b { color: var(--fg); font-weight: 600; }
.jy-top-act { display: flex; align-items: center; gap: .5rem; }
.jy-langs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.jy-langs a { color: var(--dim); text-decoration: none; font-size: .78rem; font-weight: 600; padding: .3rem .55rem; border-radius: 999px; }
.jy-langs a[aria-current] { background: var(--fg); color: #111; }
.jy-langs a[lang=fa] { font-family: 'Vazir', Tahoma, sans-serif; font-size: .9rem; line-height: 1; }
.jy-ibtn, .jy-tbtn { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--fg); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: inherit; }
.jy-tbtn { display: inline-flex; gap: .45rem; align-items: center; padding: 0 1rem; font-weight: 600; font-size: .92rem; }
.jy-ibtn svg, .jy-tbtn svg { width: 20px; height: 20px; fill: currentColor; }
.jy-ibtn:hover, .jy-tbtn:hover { border-color: rgba(239, 233, 221, .45); }
.jy-ibtn:focus-visible, .jy-tbtn:focus-visible, .jy-next:focus-visible, .jy-back:focus-visible, .jy-progress button:focus-visible, .jy-event:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.jy-auto[aria-pressed=true] { background: var(--gold); color: #111; border-color: var(--gold); }

/* start screen */
.jy.is-app .jy-start { position: absolute; inset: 0; z-index: 15; min-height: 0; background: radial-gradient(ellipse at center, rgba(7, 8, 11, .35), rgba(7, 8, 11, .85) 75%); padding: var(--top) var(--gutter) 2rem; }
.jy.is-started .jy-start { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .9s, visibility 0s .9s; }
.jy-begin { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin: 0 0 1.4rem; }
.jy-begin[hidden] { display: none; }
.jy-go { font-size: 1.1rem; padding-inline: 1.8rem; box-shadow: 0 0 0 0 rgba(242, 169, 0, .5); animation: jy-pulse 2.4s infinite; }
.jy-go svg { width: 1.2em; height: 1.2em; fill: currentColor; }

/* chapters */
.jy.is-app .jy-story { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.jy.is-app .jy-ch { position: absolute; inset: var(--top) 0 var(--navh); padding: 0; border: 0; background: none; display: flex; align-items: flex-end; visibility: hidden; }
.jy.is-app .jy-ch.is-current { visibility: visible; }
.jy.is-app .jy-panel { pointer-events: auto; width: min(36rem, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; margin-inline-start: max(var(--gutter), env(safe-area-inset-left)); padding: 1.2rem 0 1.4rem; scrollbar-width: thin; }
.jy.is-app .jy-ch:not(.is-current) .jy-panel { pointer-events: none; }
.jy.is-app .jy-line { opacity: 0; transform: translateY(10px); transition: opacity .7s, transform .7s, color .7s; }
.jy.is-app .jy-line.is-said { opacity: .7; transform: none; }
.jy.is-app .jy-line.is-now { opacity: 1; transform: none; color: #fff; }
.jy.is-app .jy-ch--memory .jy-panel { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
.jy.is-app .jy-ch--memory .jy-h { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.jy.is-app .jy-results-wrap { max-height: 26vh; overflow-y: auto; }
.jy.is-app .jy-ch--courage .jy-chants { position: fixed; inset: var(--top) 0 var(--navh); margin: 0; pointer-events: none; display: block; }
.jy.is-app .jy-chants li { position: absolute; inset-inline: 0; top: 12%; text-align: center; padding: 0 var(--gutter); opacity: 0; transform: translateY(20px) scale(.97); transition: opacity 1s, transform 1.2s; }
.jy.is-app .jy-chants li.is-on { opacity: 1; transform: none; }
.jy.is-app .jy-chants q { font-size: clamp(2rem, 6vw, 4.6rem); text-shadow: 0 2px 30px #000; }
.jy.is-app .jy-chants span { font-size: clamp(1.05rem, 2vw, 1.5rem); color: var(--fg); opacity: .8; }
.jy.is-app .jy-ch--courage .jy-panel { width: min(30rem, 100%); transition: opacity .8s; }
.jy.is-app .jy-cards { position: relative; min-height: 6.5rem; }
.jy.is-app .jy-card { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s; background: var(--glass); padding: .7rem 1rem; border-radius: 0 10px 10px 0; }
[dir=rtl] .jy.is-app .jy-card { border-radius: 10px 0 0 10px; }
.jy.is-app .jy-card.is-on { opacity: 1; transform: none; position: relative; }
.jy.is-app .jy-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.jy.is-app .jy-people { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.jy.is-app .jy-people li { flex: 0 0 52px; }
.jy.is-app .jy-people li { position: relative; }
.jy.is-app .jy-people span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.jy.is-app .jy-person { min-height: 5.6rem; }
.jy.is-app .jy-ch--who .jy-panel { width: min(30rem, 100%); }
.jy-signal { gap: 4px; align-items: flex-end; height: 26px; margin: 0 0 1rem; }
.jy.is-app .jy-signal { display: inline-flex; }
.jy-signal i { width: 6px; background: var(--fg); border-radius: 2px; transition: opacity .5s, background .5s; }
.jy-signal i:nth-child(1) { height: 25%; } .jy-signal i:nth-child(2) { height: 50%; } .jy-signal i:nth-child(3) { height: 75%; } .jy-signal i:nth-child(4) { height: 100%; }
.jy-signal.is-cut i { opacity: .18; }
.jy-signal.is-cut::after { content: ''; width: 30px; height: 2px; background: #d2453a; transform: translate(-28px, -12px) rotate(-38deg); }
[dir=rtl] .jy-signal.is-cut::after { transform: translate(28px, -12px) rotate(38deg); }

/* bottom navigation */
.jy-nav { position: absolute; inset: auto 0 0; z-index: 20; min-height: var(--navh); display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1rem; padding: .7rem max(var(--gutter), env(safe-area-inset-right)) calc(.7rem + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left)); }
.jy-back { display: inline-flex; align-items: center; gap: .45rem; height: 48px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; }
.jy-back .arr { transform: scaleX(-1); }
[dir=rtl] .jy-back .arr { transform: none; }
.jy-back:disabled { opacity: .35; cursor: default; }
.jy-progress { display: flex; gap: 6px; align-items: center; min-width: 0; }
.jy-progress button { flex: 1; min-width: 0; height: 32px; padding: 0; background: none; border: 0; cursor: pointer; display: grid; align-items: center; }
.jy-progress i { display: block; height: 4px; border-radius: 4px; background: rgba(239, 233, 221, .2); overflow: hidden; transition: height .2s; }
.jy-progress button:hover i { height: 8px; }
.jy-progress b { display: block; height: 100%; width: 0; background: var(--gold); }
.jy-progress button.is-done b { width: 100%; background: rgba(239, 233, 221, .7); }
.jy-progress button[aria-current=step] i { height: 6px; }
.jy-audio { display: flex; gap: .4rem; }
.jy-next { position: relative; display: inline-flex; align-items: center; gap: .7rem; height: 58px; padding: 0 1.6rem 0 1.9rem; border-radius: 999px; border: 0; background: var(--gold); color: #111; font: inherit; font-size: 1.12rem; font-weight: 700; cursor: pointer; box-shadow: 0 8px 30px rgba(242, 169, 0, .25); transition: transform .2s, box-shadow .3s; }
.jy-next:hover { transform: translateY(-2px); }
.jy-next-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .14); }
.jy-next-ico .arr { width: 18px; height: 18px; }
.jy-next.is-ready { animation: jy-pulse 1.8s infinite; }
.jy-next.is-ready .jy-next-ico { animation: jy-nudge 1.8s infinite; }
[dir=rtl] .jy-next.is-ready .jy-next-ico { animation-name: jy-nudge-rtl; }
.jy-next[hidden] { display: none; }
.jy-hint { position: absolute; inset-inline-end: max(var(--gutter), env(safe-area-inset-right)); bottom: calc(100% - .2rem); margin: 0; font-size: .82rem; color: var(--dim); opacity: 0; transition: opacity .6s; pointer-events: none; }
.jy-hint.is-on { opacity: 1; }
.jy-hint-t { display: none; }
@media (hover: none) { .jy-hint-k { display: none; } .jy-hint-t { display: inline; } }
@keyframes jy-pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 169, 0, .55); } 70% { box-shadow: 0 0 0 16px rgba(242, 169, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 169, 0, 0); } }
@keyframes jy-nudge { 0%, 100% { transform: none; } 50% { transform: translateX(5px); } }
@keyframes jy-nudge-rtl { 0%, 100% { transform: none; } 50% { transform: translateX(-5px); } }

/* chapter menu */
.jy-menu { position: absolute; inset: 0; z-index: 40; background: rgba(5, 5, 7, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; padding: var(--gutter); }
.jy-menu[hidden] { display: none; }
.jy-menu-in { width: min(34rem, 100%); max-height: 100%; overflow-y: auto; }
.jy-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.jy-menu-head h2 { font-family: var(--h); font-weight: 400; font-size: 2rem; margin: 0; }
.jy-menu ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.jy-menu a { display: flex; gap: 1rem; align-items: center; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-size: 1.1rem; }
.jy-menu a:hover { border-color: var(--gold); }
.jy-menu a:focus-visible { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: -4px; }
.jy-menu-foot { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.jy-menu-foot .jy-langs { display: inline-flex; }
@media (min-width: 761px) { .jy-menu-foot { display: none; } }
.jy-menu a[aria-current=step] { background: rgba(242, 169, 0, .12); border-color: var(--gold); }
.jy-menu small { display: block; color: var(--dim); font-size: .78rem; }
.jy-menu-n { width: 2rem; height: 2rem; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font-weight: 700; }

/* memorial event: big floating button */
.jy.is-app .jy-event { display: flex; position: absolute; z-index: 25; inset-inline-end: max(var(--gutter), env(safe-area-inset-right)); top: calc(var(--top) + 14px); align-items: center; gap: .85rem; padding: .7rem 1rem .7rem .85rem; padding-inline: .85rem 1.1rem; border-radius: 18px; text-decoration: none; color: var(--fg); background: linear-gradient(135deg, rgba(40, 28, 8, .92), rgba(12, 10, 8, .92)); border: 1.5px solid var(--gold); box-shadow: 0 10px 40px rgba(0, 0, 0, .5), 0 0 26px rgba(242, 169, 0, .28); transition: transform .25s, box-shadow .3s, opacity .5s, visibility 0s; max-width: calc(100% - 2 * var(--gutter)); }
.jy.is-app .jy-event:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(0, 0, 0, .55), 0 0 40px rgba(242, 169, 0, .45); }
.jy.is-app .jy-event.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: transform .25s, box-shadow .3s, opacity .5s, visibility 0s .5s; }
.jy-event-flame { position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%; background: radial-gradient(circle, rgba(242, 169, 0, .35), transparent 70%); display: grid; place-items: center; }
.jy-event-flame i { width: 14px; height: 22px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff6d0, #ffb21c 45%, #e05a00 85%); box-shadow: 0 0 14px #ffb21c; animation: jy-flicker 2.2s infinite ease-in-out; transform-origin: 50% 90%; }
.jy-event-t { display: grid; line-height: 1.25; }
.jy-event-t strong { font-size: 1.02rem; }
.jy-event-t small { color: var(--gold); font-size: .85rem; font-weight: 600; }
.jy-event-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #111; flex: none; }
.jy-event-arrow .arr { width: 18px; height: 18px; }
@keyframes jy-flicker { 0%, 100% { transform: scale(1) rotate(-2deg); } 30% { transform: scale(1.06, .94) rotate(2deg); } 60% { transform: scale(.95, 1.05) rotate(-1deg); } }

/* tooltip for the map of names */
.jy.is-app .jy-tip { display: flex; position: absolute; z-index: 30; gap: .8rem; align-items: center; padding: .7rem 2.4rem .7rem .7rem; padding-inline: .7rem 2.4rem; background: rgba(12, 11, 10, .95); border: 1px solid var(--line); border-radius: 12px; max-width: 22rem; box-shadow: 0 10px 40px #000a; pointer-events: auto; }
.jy.is-app .jy-tip[hidden] { display: none; }
.jy-tip img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #222; flex: none; }
.jy-tip div { display: grid; gap: .1rem; }
.jy-tip strong { font-family: 'Vazir', Tahoma, sans-serif; font-size: 1.05rem; }
.jy-tip span { color: var(--dim); font-size: .85rem; }
.jy-tip-x { position: absolute; top: .3rem; inset-inline-end: .3rem; width: 32px; height: 32px; border: 0; background: none; color: var(--dim); font-size: 1.3rem; cursor: pointer; }

/* a flame that rises when someone lights a candle */
.jy-rise { position: fixed; z-index: 60; pointer-events: none; }

/* ---------- the footage: real video and photos between the 3D scene and the text ---------- */
.jy-film { display: none; }
.jy.is-app .jy-film { display: block; position: absolute; inset: 0; pointer-events: none; }
.jy-shot { position: absolute; inset: 0; overflow: hidden; background: #050506; opacity: 0; transition: opacity .9s ease; }
.jy-shot.is-on { opacity: 1; }
.jy-shot-bg { position: absolute; inset: -60px; background: center / cover no-repeat; filter: blur(34px) brightness(.32) saturate(.6); transform: scale(1.1); }
.jy-shot video, .jy-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.05); }
.jy-shot [hidden] { display: none; }
/* upright phone video: a column beside the text, centred when it plays on its own */
.jy-shot.is-v video, .jy-shot.is-v img { object-fit: contain; inset: calc(var(--top) + 10px) auto calc(var(--navh) + 10px); inset-inline-end: 7vw; width: min(62vh, 44vw); height: auto; max-height: calc(100% - var(--top) - var(--navh) - 20px); margin-block: auto; box-shadow: 0 30px 90px #000c; border-radius: 6px; }
.jy-shot.is-v.is-tail video, .jy-shot.is-v.is-tail img { inset-inline: 0; margin-inline: auto; width: min(60vh, 92vw); }
.jy-shot.is-img.is-on img { animation: jy-kb 16s ease-out both; }
@keyframes jy-kb { from { transform: scale(1.03); } to { transform: scale(1.13); } }
.jy-shot.is-blend { background: transparent; }
.jy-shot.is-blend .jy-shot-bg { display: none; }
.jy-shot.is-blend.is-on { opacity: .3; }
.jy-shot.is-blend video { inset: 0; width: 100%; height: 100%; max-height: none; margin: 0; object-fit: cover; mix-blend-mode: screen; filter: grayscale(1) contrast(1.15); box-shadow: none; border-radius: 0; }
.jy-film-card { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .5rem; text-align: center; padding: 0 var(--gutter); background: #050506; opacity: 0; transition: opacity 1s; }
.jy-film-card.is-on { opacity: 1; }
.jy-film-card p { font-family: var(--h); font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 1.25; max-width: 30ch; margin: 0; }
:root:lang(fa) .jy-film-card p { font-weight: 700; line-height: 1.6; }
.jy-film-card img { width: 180px; height: 180px; object-fit: cover; border: 2px solid var(--gold); border-radius: 4px; margin-bottom: .6rem; filter: saturate(.85); }
.jy-film-card strong { font-family: 'Vazir', Tahoma, sans-serif; font-size: 1.5rem; }
.jy-film-card span { color: var(--dim); }
.jy-film-label { position: absolute; margin: 0; bottom: calc(var(--navh) + .7rem); inset-inline-end: max(var(--gutter), env(safe-area-inset-right)); max-width: min(30rem, 60vw); font-size: .74rem; letter-spacing: .06em; color: rgba(239, 233, 221, .82); background: rgba(0, 0, 0, .55); padding: .28rem .6rem; border-radius: 4px; opacity: 0; transition: opacity .6s; }
:root:lang(fa) .jy-film-label { letter-spacing: 0; font-size: .82rem; }
.jy-film-label.is-on { opacity: 1; }
.jy-sub { position: absolute; margin: 0; left: 50%; transform: translateX(-50%); bottom: calc(var(--navh) + 3rem); width: max-content; max-width: min(40rem, 90vw); text-align: center; font-size: clamp(1.1rem, 1.9vw, 1.45rem); line-height: 1.45; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .72); padding: .3rem .8rem; border-radius: 6px; opacity: 0; transition: opacity .2s; text-wrap: balance; }
:root:lang(fa) .jy-sub { line-height: 1.9; }
.jy-sub.is-on { opacity: 1; }
/* while footage plays on its own, the text steps back */
.jy.is-app.is-tail .jy-ch.is-current:not(.jy-ch--courage) .jy-panel, .jy.is-app .jy-ch--courage.is-chanting .jy-panel > :not(.jy-chants) { opacity: 0; pointer-events: none; transition: opacity .8s; }
/* the chants live in the courage panel: while they play the panel itself steps back, but they stay */
.jy.is-app .jy-ch--courage.is-chanting .jy-panel { background: none; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
.jy.is-flat.is-film .jy-story::before { opacity: 0; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .jy { --top: 56px; --navh: 76px; }
  .jy-home span:last-child, .jy-top .jy-langs, .jy-top .jy-tbtn span, .jy-back-t, .jy-audio [data-replay], .jy-where { display: none; }
  .jy-top { gap: .5rem; justify-content: space-between; }
  .jy-top .jy-tbtn { padding: 0; width: 44px; justify-content: center; }
  .jy-nav { grid-template-columns: auto auto 1fr; gap: .5rem; }
  .jy-progress { position: absolute; inset: 0 max(var(--gutter), env(safe-area-inset-left)) auto; transform: translateY(-50%); gap: 4px; }
  .jy-progress button { height: 18px; }
  .jy-next { justify-self: end; height: 54px; padding: 0 1.1rem 0 1.4rem; font-size: 1.05rem; }
  .jy-back { width: 48px; padding: 0; justify-content: center; }
  .jy-audio .jy-auto { display: none; }
  .jy.is-app .jy-ch { align-items: flex-end; }
  .jy.is-app .jy-panel { margin-inline: var(--gutter); width: auto; max-height: 58%; padding: 1rem 1rem 1.1rem; margin-bottom: .6rem; background: rgba(8, 8, 10, .72); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .jy.is-app .jy-shade { background: linear-gradient(to top, rgba(7, 8, 11, .85), rgba(7, 8, 11, 0) 45%), linear-gradient(to bottom, rgba(7, 8, 11, .6), rgba(7, 8, 11, 0) 18%); }
  .jy.is-app .jy-panel { width: calc(100% - 2 * var(--gutter)); }
  .jy-h { font-size: 1.7rem; margin-bottom: .6rem; }
  :root:lang(fa) .jy-h { font-size: 1.45rem; }
  .jy-line { font-size: 1.02rem; margin-bottom: .45rem; }
  .jy.is-app .jy-line:not(.is-now):not(.is-said) { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .jy.is-app .jy-ch--began .jy-cards { min-height: 0; }
  .jy.is-app .jy-event { top: calc(var(--top) + 6px); inset-inline: var(--gutter); max-width: none; padding-block: .55rem; }
  .jy-event-t strong { font-size: .95rem; }
  .jy-event-arrow { margin-inline-start: auto; }
  .jy.is-app .jy-ch--memory .jy-panel { max-height: 50%; align-self: flex-end; display: block; }
  .jy.is-memory .jy-event { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s, visibility 0s .5s; }
  .jy.is-app:not(.is-started) .jy-event { display: none; }
  .jy.is-app .jy-start { overflow-y: auto; touch-action: pan-y pinch-zoom; }
  .jy.is-app .jy-chants li { top: 22%; }
  .jy.is-app .jy-hint { display: none; }
}
@media (max-width: 760px) {
  .jy-shot.is-v video, .jy-shot.is-v img, .jy-shot.is-v.is-tail video, .jy-shot.is-v.is-tail img { inset: 0; margin: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; box-shadow: none; border-radius: 0; }
  .jy-shot.is-h.is-tail video { object-fit: contain; }
  .jy-sub { bottom: calc(var(--navh) + 1.6rem); font-size: 1.05rem; }
  .jy-film-label { bottom: auto; top: calc(var(--top) + 4px); max-width: calc(100% - 2 * var(--gutter)); }
  .jy.is-film .jy-event { opacity: 0; visibility: hidden; pointer-events: none; }
  .jy.is-app.is-tail .jy-ch.is-current:not(.jy-ch--courage) .jy-panel { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .jy-shot.is-img.is-on img { animation: none; } }
@media (max-height: 640px) and (min-width: 761px) { .jy.is-app .jy-ch--memory .jy-lines { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .jy-go, .jy-next.is-ready, .jy-next.is-ready .jy-next-ico, .jy-event-flame i { animation: none; }
  .jy.is-app .jy-line, .jy.is-app .jy-card, .jy.is-app .jy-chants li { transition: opacity .3s; transform: none; }
}

/* ---------- the call: a clock that reaches eight ---------- */
.jy-clock { display: none; }
.jy.is-app .jy-clock { display: block; position: relative; width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(239, 233, 221, .55); margin: 0 0 1rem; background: radial-gradient(circle, rgba(242, 169, 0, .12), transparent 70%); }
.jy-clock::after { content: ''; position: absolute; inset: 50% auto auto 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--gold); }
.jy-clock i { position: absolute; left: 50%; bottom: 50%; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--fg); transform-origin: 50% 100%; transition: transform 3.2s cubic-bezier(.45, 0, .2, 1); }
.jy-clock-h { height: 17px; transform: rotate(229deg); }
.jy-clock-m { height: 25px; transform: rotate(228deg); background: var(--gold) !important; }
.jy-clock.is-eight .jy-clock-h { transform: rotate(240deg); }
.jy-clock.is-eight .jy-clock-m { transform: rotate(360deg); }

/* ---------- the end of a chapter: what comes next, counted down on the Continue button ---------- */
.jy-up { position: absolute; z-index: 2; bottom: calc(100% + .5rem); inset-inline-end: max(var(--gutter), env(safe-area-inset-right)); width: min(22rem, calc(100% - 2 * var(--gutter))); padding: .85rem 1.1rem .8rem; border-radius: 16px; background: linear-gradient(135deg, rgba(40, 28, 8, .94), rgba(12, 10, 8, .94)); border: 1.5px solid var(--gold); box-shadow: 0 14px 44px rgba(0, 0, 0, .55); animation: jy-up-in .5s ease-out both; }
.jy-up[hidden] { display: none; }
.jy-up p { margin: 0; }
.jy-up-k { color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
:root:lang(fa) .jy-up-k { letter-spacing: 0; font-size: .88rem; }
.jy-up-next { margin-top: .25rem !important; font-size: 1.02rem; line-height: 1.45; color: var(--dim); }
.jy-up-next strong { color: var(--fg); font-weight: 700; }
.jy-up-c { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; margin-top: .45rem !important; font-size: .88rem; color: var(--fg); }
.jy-up-c [data-up-count]:empty, .jy-up-c [data-up-note]:empty { display: none; }
.jy-up-stay { margin-inline-start: auto; padding: .2rem 0; border: 0; background: none; color: var(--dim); font: inherit; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.jy-up-stay:hover, .jy-up-stay:focus-visible { color: var(--fg); outline: none; }
.jy-up.is-wait .jy-up-stay { display: none; }
@keyframes jy-up-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.jy.is-ended .jy-hint { display: none; }
.jy-next { overflow: hidden; }
.jy-next > * { position: relative; z-index: 1; }
/* the countdown fills the arrow's disc like a clock face */
.jy-next-ico { background: conic-gradient(rgba(0, 0, 0, .62) calc(var(--cd, 0) * 1turn), rgba(0, 0, 0, .14) 0); }

/* ---------- the names: two ways in ---------- */
.jy-choose { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .4rem 0 .6rem; }
.jy-choose[hidden] { display: none; }
.jy-choice { display: flex; align-items: center; gap: .6rem; min-height: 54px; padding: .7rem 1rem; border-radius: 14px; border: 1.5px solid rgba(242, 169, 0, .55); background: rgba(20, 16, 10, .7); color: var(--fg); font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.3; text-align: start; cursor: pointer; transition: background .2s, border-color .2s; }
.jy-choice svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
.jy-choice .jy-flame { flex: none; }
.jy-choice:hover { border-color: var(--gold); background: rgba(40, 30, 12, .85); }
.jy-choice:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.jy-choice[aria-pressed=true] { background: var(--gold); border-color: var(--gold); color: #111; }
.jy-choice[aria-pressed=true] svg { color: #111; }
.jy-tools[hidden] { display: none; }
.jy-tip-act { display: flex; flex-wrap: wrap; gap: .4rem; margin: .55rem 0 0 !important; }
.jy-tip-act .btn { font-size: .85rem; }
.jy.is-app .jy-tip { max-width: 24rem; }

@media (max-width: 760px) {
  .jy-up { inset-inline: var(--gutter); width: auto; bottom: calc(100% + 1rem); padding: .7rem .95rem; }
  .jy-up-next { font-size: .95rem; }
  .jy.is-app.is-ended .jy-ch { bottom: calc(var(--navh) + 7.4rem); }
  .jy-choice { font-size: .92rem; min-height: 48px; padding: .55rem .75rem; }
  .jy.is-app .jy-clock { width: 48px; height: 48px; margin-bottom: .6rem; }
  .jy-clock-h { height: 13px; } .jy-clock-m { height: 19px; }
}
@media (prefers-reduced-motion: reduce) { .jy-up { animation: none; } .jy-clock i { transition: none; } }

/* ---------- layout fixes from the walkthroughs ---------- */
/* the clock sits beside the chapter title, not under the lines */
.jy.is-app .jy-ch--call .jy-panel { position: relative; }
.jy.is-app .jy-ch--call .jy-clock { position: absolute; top: 1.2rem; inset-inline-end: 0; margin: 0; }
.jy.is-app .jy-ch--call .jy-kicker, .jy.is-app .jy-ch--call .jy-h { padding-inline-end: 80px; }
/* a person's card on the map of names takes the place of the end-of-chapter card while it is open */
.jy.is-tip .jy-up { opacity: 0; visibility: hidden; pointer-events: none; }
/* upright footage beside the text starts below the memorial event button */
@media (min-width: 761px) {
  .jy.is-app:not([data-chapter=come]) .jy-shot.is-v:not(.is-tail) video, .jy.is-app:not([data-chapter=come]) .jy-shot.is-v:not(.is-tail) img { inset-block-start: calc(var(--top) + 92px); max-height: calc(100% - var(--top) - var(--navh) - 102px); }
}
@media (max-width: 760px) {
  .jy.is-app .jy-ch--call .jy-clock { top: .9rem; inset-inline-end: .9rem; }
  .jy.is-app .jy-ch--call .jy-kicker, .jy.is-app .jy-ch--call .jy-h { padding-inline-end: 58px; }
  /* the timeline cards are in "Read more"; on a phone the panel keeps to the narration */
  .jy.is-app .jy-ch--began .jy-cards { display: none; }
  /* once a way into the names is chosen, the narration steps aside for the search or the person */
  .jy.is-app .jy-ch--memory .jy-panel:has(.jy-choose.is-chosen) .jy-lines { display: none; }
}

/* ---------- second round of fixes from the layout review ---------- */
/* text over footage: a little shadow, and a darker side under the panel while footage plays beside it */
.jy.is-app .jy-panel { text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
.jy.is-app.is-film:not(.is-tail) .jy-shade { background:
  linear-gradient(to var(--side-end, right), rgba(7, 8, 11, .9) 0%, rgba(7, 8, 11, .62) 38%, rgba(7, 8, 11, 0) 60%),
  linear-gradient(to top, rgba(7, 8, 11, .8), rgba(7, 8, 11, 0) 26%),
  linear-gradient(to bottom, rgba(7, 8, 11, .6), rgba(7, 8, 11, 0) 16%); }
/* the last chant leaves with the chants */
.jy.is-ended .jy-chants li { opacity: 0 !important; }
/* subtitles: never an empty box; kept above a label that wraps */
.jy-sub:empty, .jy-sub:not(.is-on) { visibility: hidden; }
.jy-sub { bottom: calc(var(--navh) + 3.6rem); }
.jy-film-label { text-wrap: balance; }
/* the label sits with its video: under a centred clip, at the edge of a side clip */
@media (min-width: 761px) {
  .jy.is-tail[data-shot=v] .jy-film-label { inset-inline: 0; margin-inline: auto; width: max-content; max-width: min(60vh, 80vw); text-align: center; }
  .jy:not(.is-tail)[data-shot=v] .jy-film-label { inset-inline-end: 7vw; max-width: min(62vh, 44vw); }
  .jy.is-tail[data-shot=v] .jy-sub { max-width: min(64vh, 80vw); }
}
/* the person on the map of names: their line under the choices is for screen readers only */
.jy.is-app .jy-said { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.jy-tip img[hidden] { display: none; }
/* the two ways into the names appear with the last line */
.jy.is-app .jy-ch--memory:not(.is-ready) .jy-choose { display: none; }
.jy-up-next strong { text-wrap: balance; }
.jy-langs a { display: inline-grid; place-items: center; min-height: 26px; }
.jy-film-card .jy-latin { color: var(--fg); font-family: var(--h); font-size: 1.15rem; }
@media (max-width: 760px) {
  /* on a phone the panel keeps the line before and the line being read; the rest is in the text above */
  .jy.is-app .jy-line.is-said:not(.is-prev) { display: none; }
  /* the end-of-chapter card is one compact row, and the panel moves up above it */
  .jy-up { padding: .55rem .85rem; }
  .jy-up-k { display: none; }
  .jy-up-next { margin: 0 !important; font-size: .92rem; }
  .jy-up-c { margin-top: .2rem !important; font-size: .82rem; }
  .jy.is-app.is-ended .jy-ch { bottom: calc(var(--navh) + 6.2rem); }
  .jy.is-ended .jy-event { opacity: 0; visibility: hidden; pointer-events: none; }
  /* footage label starts where the text starts */
  .jy-film-label { inset-inline: max(var(--gutter), env(safe-area-inset-left)) auto; }
  /* a chosen person shows as a card under the top bar, over the map */
  .jy.is-app .jy-tip { left: var(--gutter) !important; right: var(--gutter); top: calc(var(--top) + 8px) !important; max-width: none; }
}

/* ---------- third round ---------- */
/* label and subtitles above the shading, and readable over bright footage */
.jy.is-app .jy-film-label, .jy.is-app .jy-sub { z-index: 6; }
.jy-film-label { color: #f3eee4; background: rgba(0, 0, 0, .72); font-size: .78rem; padding: .3rem .65rem; }
:root:lang(fa) .jy-film-label { font-size: .85rem; }
/* our subtitle laid over a clip's own burned-in captions */
.jy-sub.is-mask { bottom: auto; transform: translate(-50%, -50%); width: var(--mask-w, auto); max-width: 94vw; background: rgba(0, 0, 0, .94); padding: .45rem .9rem; }
/* the top bar stays readable over bright footage */
.jy.is-app.is-film .jy-top { background: linear-gradient(rgba(5, 6, 8, .7), rgba(5, 6, 8, 0)); }
.jy-langs { background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.jy-langs a { color: rgba(239, 233, 221, .78); }
/* the names: the event button steps aside for the map; search replaces the narration */
.jy.is-memory .jy-event { opacity: 0; visibility: hidden; pointer-events: none; }
.jy.is-app .jy-ch--memory .jy-panel:has(.jy-choose.is-chosen) .jy-lines { display: none; }
.jy.is-app .jy-results-wrap { max-height: 22vh; }
/* who: a more compact name block */
.jy.is-app .jy-person strong { font-size: 1.3rem; }
.jy.is-app .jy-person { min-height: 0; }
@media (max-width: 760px) {
  /* the panel may use the whole height between the bars; older content gives way instead of being cut */
  .jy.is-app .jy-panel { max-height: 100%; }
  .jy.is-ended .jy-line.is-prev, .jy.is-ended .jy-more { display: none; }
  .jy.is-app .jy-ch--who .jy-people, .jy.is-app .jy-ch--who .jy-more { display: none; }
  .jy.is-app .jy-results-wrap { max-height: 18vh; }
  /* the memorial event button: one compact line */
  .jy.is-app .jy-event { padding-block: .4rem; gap: .6rem; }
  .jy-event-t small { display: none; }
  .jy-event-t strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .jy-event-flame { width: 28px; height: 28px; }
  .jy-event-arrow { width: 28px; height: 28px; }
}

/* ---------- small things from the review ---------- */
.jy-up-stay { min-height: 32px; padding: .2rem .6rem; border: 1px solid rgba(239, 233, 221, .3); border-radius: 999px; text-decoration: none; color: var(--fg); }
.jy-up-stay:hover, .jy-up-stay:focus-visible { border-color: var(--gold); }
.jy-tip-act .btn { font-family: inherit; text-transform: none; letter-spacing: 0; font-weight: 600; }
.jy-kicker, .jy-chants q { text-wrap: balance; }

/* ---------- final round ---------- */
.jy-shot.is-img img[style*="contain"] { object-fit: contain; }
/* chant translations readable over bright footage */
.jy.is-app .jy-chants span { font-style: normal; font-weight: 500; color: #fff; opacity: .92; text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 16px rgba(0, 0, 0, .75); }
/* the end card does not sit on a credit line */
.jy.is-ended .jy-film-label { opacity: 0; }
/* darker behind the text where portraits and candles pass behind it */
.jy.is-app[data-chapter=who] .jy-shade, .jy.is-app[data-chapter=come] .jy-shade, .jy.is-app.is-film:not(.is-tail) .jy-shade { background:
  linear-gradient(to var(--side-end, right), rgba(7, 8, 11, .93) 0%, rgba(7, 8, 11, .74) 40%, rgba(7, 8, 11, 0) 66%),
  linear-gradient(to top, rgba(7, 8, 11, .8), rgba(7, 8, 11, 0) 26%),
  linear-gradient(to bottom, rgba(7, 8, 11, .6), rgba(7, 8, 11, 0) 16%); }
.jy-sub.is-mask { min-height: 3.4em; display: grid; place-items: center; }
/* short wide screens: a little smaller, so the whole panel fits */
@media (min-width: 761px) and (max-height: 820px) {
  .jy-h { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: .7rem; }
  :root:lang(fa) .jy-h { font-size: clamp(1.5rem, 3vw, 2.3rem); }
  .jy-line { font-size: clamp(1rem, 1.45vw, 1.2rem); margin-bottom: .5rem; }
  .jy-kicker { margin-bottom: .55rem; }
  .jy.is-app .jy-panel { padding-bottom: .8rem; }
  .jy.is-app .jy-person strong { font-size: 1.15rem; }
  .jy-more { margin-top: .6rem; padding-top: .5rem; }
}
@media (max-width: 760px) {
  .jy-film-label { width: fit-content; text-wrap: pretty; }
  .jy-kick-sep { display: none; }
  .jy-kick-d { display: block; margin-top: .15rem; }
  .jy.is-app .jy-ch--call .jy-kicker { padding-inline-end: 58px; }
  .jy.is-searching .jy-up { display: none; }
  .jy.is-app.is-searching .jy-ch--memory .jy-kicker { display: none; }
  .jy.is-app .jy-ch--come .jy-links { flex-wrap: nowrap; }
  .jy.is-app .jy-ch--come .jy-links .btn { flex: 1 1 0; justify-content: center; padding-inline: .7rem; font-size: .95rem; min-height: 46px; height: auto; }
}
@media (max-width: 760px) { .jy.is-app.is-searching .jy-ch--memory .jy-h { display: none; } }
