/*
 * Inner pages: small additions the live site needs on top of the generated inner.css
 * (design/approved/04-inner-pages). Hand-written; keep it short. Each rule says why.
 */

/* a pain area without a published page yet: same pill as the linked ones, not clickable */
.g-inner main .region-links .region-plain{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:10px 20px 10px 14px;border-radius:var(--r-pill);background:var(--surface-soft);box-shadow:var(--e1);font-size:17px;font-weight:600;color:var(--p-ink)}
.g-inner main .region-links .region-plain .ico{color:var(--p-action)}

/* «نیازمند …» labels appear only in the panel preview (DESIGN-SYNC row 6) */
.g-inner main .need{display:inline-block}

/* native players inside the design's frames (own-server video and audio) */
.g-inner main .player video{display:block;width:100%;aspect-ratio:16/9;height:auto;border-radius:inherit;background:#0E3A47}
@media (max-width:767px){.g-inner main .region-links .region-plain{min-height:46px;font-size:16px}}

/* magazine and article (slice 3): the browser's own audio controls inside the design's audio frames,
   speed buttons beside them, Aparat/YouTube frame after the click, and the search form wrapper */
.g-inner main .audio-lite audio{flex:1;min-width:180px;height:40px}
.g-inner main .audio-site audio{display:block;width:100%;height:40px;margin-top:10px}
.g-inner main .spd-group{display:inline-flex;gap:4px;flex:none}
.g-inner main .spd[aria-pressed="true"]{border-color:var(--p-action);color:var(--p-action)}
.g-inner main .player.embed-gate iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.g-inner main .mag-search{display:contents}
.g-inner main .art-figure{margin:0;border-radius:var(--r-lg);overflow:hidden}
.g-inner main .art-figure img{display:block;width:100%;height:auto}
@media (max-width:767px){.g-inner main .audio-lite audio{flex-basis:100%;order:3}}

/* booking path (slice 4): the design's buttons are real form controls and links on the site.
   A ticked checkbox inside the card plays the role of the design's aria-pressed="true". */
.g-inner main .sp{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;cursor:pointer}
.g-inner main .sp:has(input:checked){border:2px solid var(--p-action);background:color-mix(in srgb,var(--p-action) 5%,#FFFFFF)}
.g-inner main .sp:has(input:checked) .box{background:var(--p-action);border-color:var(--p-action);color:#FFFFFF}
.g-inner main .sp:has(input:focus-visible){outline:3px solid var(--p-action);outline-offset:2px}
.g-inner main fieldset.svc-pick{border:0;margin:0;padding:0;min-width:0}
.g-inner main a.day,.g-inner main a.slot{text-decoration:none;color:inherit}
.g-inner main span.day[disabled]{cursor:default}
.g-inner main .days-site{overflow-x:auto;scrollbar-width:thin}
.g-inner main .bk-error,.g-inner main .field .err{color:var(--c-brick);font-weight:600}
.g-inner main .field .err{display:block;margin-top:6px;font-size:14px}
.g-inner main .h-sub{margin:30px 0 6px;font-size:24px;font-weight:650}
.g-inner main .picked-row .topic a{margin-inline-start:8px;color:var(--p-action);font-weight:650}
.g-inner main .bk-sum .ph{opacity:.7;font-weight:450}
.g-inner main .dev-hint{padding:10px 14px;border-radius:12px;background:var(--p-bg);font-size:14px}

/* contact (slice 5): the still map image (or the design's abstract drawing until the owner adds one) fills the box */
.g-inner main .mapbox img.map-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* step 57: optional «بار اول؟» as the design's segmented control (real radio buttons) */
.g-inner main fieldset.first-q{border:0;margin:0 0 18px;padding:0;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.g-inner main fieldset.first-q legend{float:inline-start;padding:0;font-weight:600}
.g-inner main .first-q .seg label{min-height:38px;padding:6px 16px;border-radius:var(--r-pill);font-size:14.5px;color:var(--p-text-2);display:inline-flex;align-items:center;cursor:pointer}
.g-inner main .first-q .seg label:has(input:checked){background:var(--surface-soft);box-shadow:var(--e1);color:var(--p-ink);font-weight:650}
.g-inner main .first-q .seg label:has(input:focus-visible){outline:3px solid var(--p-action);outline-offset:2px}
/* «نه، قبلاً آمده‌ام»: the visit card loses its first-visit tag and becomes a normal card (spec 6.1) */
.g-inner main form:has(input[name=first][value=no]:checked) .sp.first{grid-column:auto;background:#FFFFFF}
.g-inner main form:has(input[name=first][value=no]:checked) .sp.first .sp-tag{display:none}

/* step 57: one-week calendar arrows; «قبل» points the other way, an unavailable week is faded */
.g-inner main .cal-head .ico-go.flip{transform:scaleX(-1)}
.g-inner main .cal-head .icon-btn.is-off{opacity:.35}
.g-inner main .days-site{overflow:visible}

/* confirmation page: the step 55 page's own band (pain.css .bk) is replaced by the design's white card */
.g-inner.g-book main .bk.bk-done{padding:0;background:none}
.g-inner.g-book main .bk-done .bk-extra,.g-inner.g-book main .bk-done .pq{margin-top:22px}
