/* Hayat. Colours and fonts from sites/04-cafe-live/DESIGN.md (fig leaf green, pistachio = free, lime plaster, espresso, brick, crema). */

@font-face { font-family: Markazi; src: url(../fonts/markazi-text-latin-wght-normal.woff2) format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
/* Persian headings and text: Samim (Saber Rastikerdar, OFL), cut down to the Persian letters only (fontTools subset). Kia chose it 30 Oct. */
@font-face { font-family: Samim; src: url(../fonts/samim-400.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Samim; src: url(../fonts/samim-500.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Samim; src: url(../fonts/samim-700.woff2) format('woff2'); font-weight: 600 900; font-display: swap; unicode-range: U+0600-06FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Hanken; src: url(../fonts/hanken-grotesk-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --fig: #1E3B2C; --fig2: #26493A; --pist: #A9C76E; --pist2: #BCD68A; --plaster: #EEF2E6; --esp: #2A1C15; --brick: #B98A5E; --crema: #E8C58F;
  --muted: #5B5148;
  --head: Markazi, Georgia, serif; --text: Hanken, system-ui, sans-serif;
  --hdr: 64px; --pad: clamp(16px, 5vw, 72px);
}
html[lang^=fa] { --text: Samim, Hanken, system-ui, sans-serif; --head: Samim, Markazi, Georgia, serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr); }
body { margin: 0; background: var(--fig); color: var(--plaster); font: 400 18px/1.55 var(--text); -webkit-text-size-adjust: 100%; }
html[lang^=fa] body { font-size: 17px; line-height: 1.8; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.05; margin: 0; }
html[lang^=fa] :is(h1, h2, h3) { line-height: 1.3; }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 50; padding: 10px 14px; background: var(--pist); color: var(--fig); clip-path: inset(50%); }
.skip:focus { clip-path: none; }
:focus-visible { outline: 3px solid var(--pist); outline-offset: 3px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; height: var(--hdr); display: flex; align-items: center; gap: 28px; padding: 0 var(--pad); background: var(--fig); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 30px/1 var(--head); color: var(--plaster); }
.logo .mark { width: 34px; height: 34px; color: var(--plaster); }
.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
html[lang^=fa] .nav a { font-size: 17px; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { border-color: var(--pist); }
.lang { display: inline-flex; align-items: center; justify-content: center; height: 36px; min-width: 76px; text-decoration: none; border: 1.5px solid var(--pist); color: var(--pist); border-radius: 18px; padding: 0 16px; font-size: 15px; line-height: 1; }
.lang[lang=fa] { font-size: 16px; padding-bottom: 2px; }
.lang[lang=fa] { font-family: Samim, sans-serif; }
.lang[lang=en] { font-family: Hanken, sans-serif; }
.lang:hover { background: var(--pist); color: var(--fig); }
.staff-page .lang, body:has(.staff) .lang { margin-inline-start: auto; }

.btn { display: inline-block; background: var(--pist); color: var(--fig); border: 0; border-radius: 8px; padding: 14px 26px; font: 600 18px/1 var(--text); text-decoration: none; transition: transform .12s, background .2s; }
.btn:hover { background: var(--pist2); }
.btn:active { transform: translateY(2px); }

/* ---------- hero: full-screen photo, the question, the live answer ---------- */
.hero { position: relative; height: calc(100svh - var(--hdr)); min-height: 520px; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(calc(1.1 - var(--hp, 0) * .1)); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 36, 26, .88) 0%, rgba(18, 36, 26, .4) 42%, rgba(18, 36, 26, 0) 66%); }
.hero__text { position: absolute; z-index: 2; inset-inline: var(--pad); bottom: clamp(28px, 7vh, 80px); max-width: 1100px; transform: translateY(calc(var(--hp, 0) * -60px)); }
.hero h1 { font-size: clamp(60px, 11vw, 168px); line-height: .88; letter-spacing: -.01em; }
html[lang^=fa] .hero h1 { letter-spacing: 0; line-height: 1.15; font-size: clamp(54px, 9.5vw, 148px); }
.live { margin: 14px 0 0; font: 500 clamp(24px, 3.2vw, 44px)/1.15 var(--head); color: var(--pist); }
.live b { font-weight: 700; display: inline-block; }
/* A small "on air" dot: this number is live. */
.live--open::before { content: ''; display: inline-block; width: .36em; height: .36em; margin-inline-end: .45em; vertical-align: .14em; border-radius: 50%; background: var(--pist); box-shadow: 0 0 0 0 rgba(169, 199, 110, .6); animation: beat 2.4s ease-out infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(169, 199, 110, .6); } 70%, 100% { box-shadow: 0 0 0 .45em rgba(169, 199, 110, 0); } }
.live b.tick { animation: tick .6s ease-out; }
@keyframes tick { from { color: var(--plaster); transform: translateY(-.15em); } }
.hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.status { font-size: 16px; margin: 0; }
.live--closed { display: none; color: var(--crema); }
.is-closed .live--closed { display: block; }
.is-closed .live--open, .is-closed .hero__status { display: none; }

/* ---------- the scene: the balcony photo shrinks into the courtyard of the plan ---------- */
.scene { position: relative; background: var(--fig); }
.stage { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.25fr); align-items: center; gap: 4vw; padding: 6vh var(--pad); }
.copy { position: relative; z-index: 3; max-width: 470px; }
.cap h2 { margin-bottom: 12px; font-size: clamp(40px, 4.6vw, 72px); }
.cap p { margin: 0; font-size: 19px; }
html[lang^=fa] .cap p { font-size: 21px; }
.c1, .photo, .photo-scrim { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px !important; font-size: 16px !important; align-items: center; }
.legend i { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: -3px; margin-inline-end: 8px; }
.lf i { background: var(--pist); }
.lt i { border: 2px solid var(--brick); background: repeating-linear-gradient(45deg, transparent 0 3px, var(--brick) 3px 4.5px); }
.ago { width: 100%; font-size: 15px; color: #C9D3C2; min-height: 1.5em; }
.closed-note { display: none; margin-top: 18px !important; padding: 12px 16px; border-radius: 8px; background: var(--crema); color: var(--esp); font-weight: 600; }
.is-closed .closed-note { display: block; }
.is-closed .scene .plan .tables { opacity: .6; }
.planbox { position: relative; display: flex; align-items: center; justify-content: center; }
.plan { width: 100%; max-height: 86vh; overflow: visible; direction: ltr; }

/* With scripts and motion: the section is tall and its stage stays pinned while the photo folds in. */
.scrub .scene { height: 330svh; }
.scrub .stage { position: sticky; top: var(--hdr); height: calc(100svh - var(--hdr)); overflow: hidden; padding-block: 3vh; }
.scrub .plan { height: calc(100svh - var(--hdr) - 7vh); width: auto; max-width: 100%; }
.scrub .c1, .scrub .photo, .scrub .photo-scrim { display: block; }
.scrub .cap { transition: opacity .5s, transform .5s; }
/* Both captions share one grid cell, so the copy is as tall as the taller one and never spills onto the plan. */
.scrub .copy { display: grid; }
.scrub .cap { grid-area: 1 / 1; }
.scrub .scene:not(.late) .c2, .scrub .scene.late .c1 { opacity: 0; transform: translateY(14px); pointer-events: none; }
.scrub .photo { position: absolute; z-index: 2; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform-origin: 50% 100%; pointer-events: none; }
.photo-scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(18, 36, 26, .8), rgba(18, 36, 26, 0) 55%); }
[dir=rtl] .photo-scrim { background: linear-gradient(-90deg, rgba(18, 36, 26, .8), rgba(18, 36, 26, 0) 55%); }

/* ---------- the plan drawing ---------- */
.plan .grid { fill: none; stroke: rgba(238, 242, 230, .06); stroke-width: 1.5; }
.plan .walls path { fill: none; stroke: var(--brick); stroke-width: 7; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 0); stroke-linecap: square; }
.plan .walls .thin { stroke-width: 3; }
.plan .pool .edge { fill: none; stroke: var(--brick); stroke-width: 10; }
.plan .pool .water { fill: rgba(169, 199, 110, .16); stroke: rgba(238, 242, 230, .5); stroke-width: 2; }
.plan .pool .wave { fill: none; stroke: rgba(238, 242, 230, .45); stroke-width: 2.5; stroke-linecap: round; }
.plan .fig circle { fill: rgba(169, 199, 110, .13); stroke: rgba(169, 199, 110, .45); stroke-width: 2; }
.plan .fig .trunk { fill: var(--brick); stroke: none; }
.plan .names text { fill: var(--plaster); opacity: .8; font: 500 34px var(--head); }
.plan .names text:nth-child(n+3) { font-size: 28px; fill: var(--crema); opacity: 1; }
.plan .hatch { stroke: var(--brick); stroke-width: 3; }
.plan .tbl { opacity: var(--show, 1); transition: opacity .35s; }
.plan .tbl .tt { fill: none; stroke: var(--brick); stroke-width: 4; transition: fill .4s, stroke .4s; }
.plan .tbl .hatchfill { stroke: none; transition: opacity .4s; }
.plan .tbl .chair rect { fill: none; stroke: var(--brick); stroke-width: 3; transition: stroke .4s; }
.plan .tbl .chair { transform: translate(calc(var(--dx) * -10px), calc(var(--dy) * -10px)); transition: transform .45s cubic-bezier(.3, .7, .2, 1); }
.plan .tbl .num { fill: var(--plaster); font: 600 34px var(--head); transition: fill .4s; }
.plan .tbl.free .tt { fill: var(--pist); stroke: var(--pist); }
.plan .tbl.free .hatchfill { opacity: 0; }
.plan .tbl.free .chair { transform: none; }
.plan .tbl.free .chair rect { stroke: var(--pist); }
.plan .tbl.free .num { fill: var(--fig); }
.plan .tbl.flash .tt { animation: flash .9s ease-out; }
@keyframes flash { 0% { stroke-width: 18; } 100% { stroke-width: 4; } }

/* ---------- the menu: one category at a time, its photo beside it ---------- */
.mscene { background: var(--plaster); color: var(--esp); }
.mstage { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - var(--hdr)); }
.mphotos { position: relative; overflow: hidden; background: var(--esp); }
.mphoto { margin: 0; position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.mphoto.is-on { opacity: 1; }
.mphoto img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
/* The category's name, big, painted over the bottom of its photo. */
.mphoto figcaption { position: absolute; inset: auto 0 0; padding: 18vh var(--pad) 5vh; background: linear-gradient(to top, rgba(42, 28, 21, .78), rgba(42, 28, 21, 0)); color: var(--plaster); font: 600 clamp(56px, 7vw, 120px)/1 var(--head); transform: translateY(16px); opacity: 0; transition: transform .7s .15s, opacity .7s .15s; }
.mphoto.is-on figcaption { transform: none; opacity: 1; }
.mphoto.is-on img { transform: none; }
.mlist { padding: clamp(28px, 6vh, 72px) var(--pad); display: flex; flex-direction: column; }
.mlist h2 { font-size: clamp(40px, 4.6vw, 72px); }
.mtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 18px; }
.mtabs button { background: none; border: 1.5px solid rgba(42, 28, 21, .25); color: var(--esp); border-radius: 20px; padding: 7px 16px; font: 600 19px/1 var(--head); transition: background .25s, color .25s, border-color .25s; }
.mtabs button:hover { border-color: var(--esp); }
.mtabs button.is-on { background: var(--esp); border-color: var(--esp); color: var(--plaster); }
.mcats { position: relative; flex: 1; }
.mcat h3 { display: none; }
.mcat { display: none; }
.mcat.is-on { display: block; animation: rise .45s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.items { list-style: none; padding: 0; margin: 0; }
/* name ........ price, like a menu board; the description sits under it */
.items li { display: grid; grid-template-columns: auto minmax(24px, 1fr) auto; align-items: baseline; gap: 2px 12px; padding: 13px 0; }
.iname { font: 600 25px/1.2 var(--head); }
.lead { align-self: end; margin-bottom: .45em; border-bottom: 2px dotted rgba(42, 28, 21, .35); }
.iprice { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 17px; font-weight: 600; }
.idesc, .items em { grid-column: 1 / -1; }
.idesc { font-size: 16px; color: var(--muted); }
.items .out .iname, .items .out .iprice { color: #6B5D50; text-decoration: line-through; text-decoration-thickness: 1px; }
.items em { justify-self: start; font: 600 13px var(--text); font-style: normal; margin: 2px 0; padding: 3px 9px; border-radius: 4px; background: var(--crema); color: var(--esp); }
html[lang^=fa] .items em { font-size: 14px; }
.more { align-self: start; margin-top: 22px; padding: 12px 22px; border-radius: 8px; background: var(--esp); color: var(--plaster); font-weight: 600; text-decoration: none; transition: background .2s; }
.more:hover { background: var(--fig); }
.more span { display: inline-block; transition: transform .2s; }
.more:hover span { transform: translateX(4px); }
[dir=rtl] .more:hover span { transform: translateX(-4px); }
.scrub .mscene { height: calc(var(--n) * 60svh + 100svh); }
.scrub .mstage { position: sticky; top: var(--hdr); height: calc(100svh - var(--hdr)); }

/* ---------- the house: photos slide sideways ---------- */
.house { background: var(--fig); overflow: clip; }
.hstage { padding: 8vh 0; }
.house h2 { font-size: clamp(40px, 4.6vw, 72px); padding: 0 var(--pad) 4vh; }
.track { display: flex; gap: 2vw; padding: 0 var(--pad); overflow-x: auto; will-change: transform; }
.card { margin: 0; flex: 0 0 min(42vw, 640px, (100svh - var(--hdr) - 240px) * 1.5); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.card figcaption { margin-top: 14px; font: 500 26px/1.2 var(--head); color: var(--plaster); }
.scrub .house { height: 260svh; }
.scrub .hstage { position: sticky; top: var(--hdr); height: calc(100svh - var(--hdr)); display: flex; flex-direction: column; justify-content: center; }
.scrub .track { overflow: visible; }

/* ---------- visit: the live open/closed line big, buttons to call or find us, the hours with today marked ---------- */
.visit { background: var(--plaster); color: var(--esp); padding: clamp(56px, 12vh, 140px) var(--pad); }
.visit h2 { font-size: clamp(56px, 8vw, 128px); }
.visit__lede { margin: 10px 0 44px; font-size: 20px; color: var(--muted); }
.visit h3, .visit--page h2 { font-size: 30px; margin-bottom: 10px; }
.visit__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); max-width: 1200px; align-items: start; }
.now { margin: 0; font: 600 clamp(30px, 3.4vw, 46px)/1.15 var(--head); color: var(--fig); }
.now::before { content: ''; display: inline-block; width: .32em; height: .32em; margin-inline-end: .4em; vertical-align: .12em; border-radius: 50%; background: #5E8F2E; }
.is-closed .now { color: #8A4B22; }
.is-closed .now::before { background: #B4562A; }
.area { margin: 8px 0 0; color: var(--muted); }
.acts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; max-width: 460px; }
.act { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: 10px; background: #fff; border: 1.5px solid rgba(42, 28, 21, .12); text-decoration: none; font-weight: 600; transition: border-color .2s, transform .12s; }
.act:hover { border-color: var(--esp); }
.act:active { transform: translateY(2px); }
.act b { font-weight: 400; color: var(--muted); margin-inline-start: 4px; }
.ico { flex: 0 0 24px; width: 24px; height: 24px; fill: none; stroke: var(--fig); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(42, 28, 21, .15); }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours .today { margin-inline: -14px; padding-inline: 14px; border-radius: 8px; border-color: transparent; background: rgba(169, 199, 110, .35); }
.hours small { margin-inline-start: 8px; padding: 2px 8px; border-radius: 4px; background: var(--fig); color: var(--plaster); font-size: 13px; font-weight: 600; vertical-align: 2px; }

/* ---------- footer ---------- */
.foot { padding: 48px var(--pad); font-size: 16px; border-top: 1px solid rgba(185, 138, 94, .45); }
.foot__in { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 32px; align-items: start; }
.foot p { margin: 10px 0 0; }
.foot nav { display: grid; gap: 6px; }
.foot nav a { text-decoration: none; padding: 4px 0; }
.foot nav a:hover { text-decoration: underline; }
.credit { color: #C9D3C2; font-size: 15px; }

/* ---------- inner pages ---------- */
.pg { background: var(--plaster); color: var(--esp); padding: clamp(36px, 7vh, 80px) var(--pad) clamp(48px, 10vh, 110px); min-height: 60vh; }
.phead { max-width: 900px; margin-bottom: 36px; }
.phead h1 { font-size: clamp(52px, 7vw, 110px); }
.phead p { font-size: 19px; margin: 14px 0 0; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; position: sticky; top: var(--hdr); z-index: 5; padding: 12px 0; background: var(--plaster); }
.jump a { text-decoration: none; padding: 8px 18px; border: 1.5px solid var(--esp); border-radius: 20px; font-weight: 600; }
.jump a:hover { background: var(--esp); color: var(--plaster); }
.mgroup { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 4vw; padding: 40px 0; border-top: 1px solid rgba(42, 28, 21, .2); max-width: 1200px; }
.mgroup h2 { font-size: 44px; margin-bottom: 8px; }
.mgroup__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.story, .find { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: start; max-width: 1300px; }
.story__img, .find__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.story__text p { font-size: 20px; margin: 0 0 18px; max-width: 34em; }
.visit--page { padding: 0; background: none; }
.visit--page .visit__grid { grid-template-columns: 1fr; }
.prose { max-width: 40em; }

/* ---------- staff screen ---------- */
body:has(.staff) { background: var(--fig); }
.staff { max-width: 560px; margin: 0 auto; padding: 18px 16px 48px; }
.in-admin .staff { padding-top: 8px; }
.staff h1 { font-size: 44px; }
.staff h2 { font-size: 32px; margin-top: 40px; }
.staff h3 { font-size: 24px; margin: 22px 0 6px; color: var(--crema); }
.srow { display: flex; justify-content: space-between; align-items: center; }
.srow .out { font-size: 16px; }
.staff .sub { margin: 6px 0 14px; font-size: 16px; }
.splan .plan { max-height: none; touch-action: manipulation; }
.splan .tbl { cursor: pointer; }
.splan .tbl:focus { outline: none; }
.splan .tbl:focus-visible .tt { stroke: var(--plaster); stroke-width: 8; }
.splan .tbl.saving { opacity: .6; }
.msg { min-height: 1.6em; margin: 12px 0; font: 600 22px/1.3 var(--head); color: var(--pist); }
.msg.bad { color: var(--crema); }
.allfree { width: 100%; background: none; border: 2px solid var(--plaster); color: var(--plaster); border-radius: 8px; padding: 14px; font-size: 17px; }
.allfree:hover, .allfree:active { background: var(--plaster); color: var(--fig); }
.allfree:disabled { opacity: .6; }
.outs { list-style: none; padding: 0; margin: 0; }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(238, 242, 230, .15); cursor: pointer; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw__ui { flex: 0 0 52px; height: 30px; border-radius: 15px; background: #3D5E4D; position: relative; transition: background .2s; }
.sw__ui::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--plaster); transition: transform .2s; }
.sw input:checked ~ .sw__ui { background: var(--crema); }
.sw input:checked ~ .sw__ui::after { transform: translateX(22px); }
[dir=rtl] .sw input:checked ~ .sw__ui::after { transform: translateX(-22px); }
.sw input:checked ~ .sw__name { color: var(--crema); text-decoration: line-through; }
.sw input:focus-visible ~ .sw__ui { outline: 3px solid var(--pist); outline-offset: 3px; }
.sw input:disabled ~ .sw__ui { opacity: .5; }
.login { display: grid; gap: 16px; margin-top: 20px; }
.login label { display: grid; gap: 6px; font-weight: 600; }
.login input:not([type=checkbox]) { font: inherit; font-size: 18px; padding: 12px; border-radius: 8px; border: 2px solid #4F6E5E; background: var(--fig2); color: var(--plaster); }
.login input:focus { border-color: var(--pist); outline: none; }
.login .check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.err { padding: 12px 16px; border-radius: 8px; background: var(--crema); color: var(--esp); font-weight: 600; }

/* ---------- phones ---------- */
@media (max-width: 820px) {
  :root { --hdr: 58px; }
  .nav { display: none; }
  .lang { margin-inline-start: auto; }
  .stage { grid-template-columns: 1fr; gap: 3vh; }
  .scrub .stage { grid-template-rows: auto 1fr; align-items: start; gap: 2vh; padding-top: 2.5vh; }
  .cap h2 { font-size: 36px; }
  .cap p, html[lang^=fa] .cap p { font-size: 16px; }
  .legend { margin-top: 12px !important; font-size: 15px !important; }
  .scrub .plan { height: 100%; max-height: 62svh; }
  .mstage { grid-template-columns: 1fr; grid-template-rows: 30% 1fr; }
  .scrub .mstage { grid-template-rows: 28svh 1fr; }
  .mlist { padding-top: 22px; }
  .mlist h2 { font-size: 34px; }
  .mtabs { font-size: 18px; margin: 10px 0 8px; }
  .items li { padding: 8px 0; }
  .iname { font-size: 21px; }
  .idesc { font-size: 14px; }
  .card { flex-basis: 80vw; }
  .visit__grid { grid-template-columns: 1fr; }
  .mphoto figcaption { padding: 10vh var(--pad) 18px; font-size: 44px; }
  .mtabs button { font-size: 17px; padding: 6px 13px; }
  .foot__in { grid-template-columns: 1fr; }
  .mgroup, .story, .find { grid-template-columns: 1fr; }
  .jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
  .jump a { flex: 0 0 auto; }
}
@media (max-width: 820px) and (max-height: 760px) { .cap p:not(.legend):not(.closed-note), .idesc { display: none; } }
@media (max-height: 700px) and (min-width: 821px) { .idesc { display: none; } }
@media (max-height: 820px) and (min-width: 821px) { .items li { padding: 7px 0; } .iname { font-size: 22px; } .idesc { font-size: 15px; } .mlist h2 { font-size: 52px; } .mtabs { margin: 14px 0 10px; } .more { margin-top: 14px; } }

/* No scripts, or "reduce motion": every section is a plain page, the menu shows all categories. */
html:not(.scrub) .mphoto { position: relative; display: none; }
html:not(.scrub) .mphoto[data-k="0"] { display: block; opacity: 1; height: 100%; }
html:not(.scrub) .mcat { display: block; margin-bottom: 26px; animation: none; }
html:not(.scrub) .mcat h3 { display: block; font-size: 30px; }
html:not(.scrub) .mtabs { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__img, .hero__text { transform: none; }
  .live--open::before { animation: none; }
  .plan .tbl .chair, .plan .tbl .tt, .plan .tbl .num, .mphoto, .mphoto img { transition: none; }
}
