/*
 * GymDesh — জিমের পাবলিক সাইটের সাজ: "০১ সংকেত" (Signal)
 * ======================================================================
 *
 * মালিকের বাছাই, ২৬ সেপ্টেম্বর ২০২৬ (নমুনা: docs/themes/sanket.html,
 * পর্দা ১ ও ২; বিবরণ: docs/themes/spec/sanket.json → screens.public_home)।
 *
 *   • মেঝে ও লেখা সব জিমে এক — সাইটের সাদা (#F7F6FA) আর কালি। জিমের
 *     রঙ কেবল পরিচয়ের জায়গায় (--gym: লোগোর টালি, "আজকের বোর্ড"-এর
 *     মাথা) আর প্রধান বোতামে (--cta)। চলকগুলো লেআউটের `<style>`-এ,
 *     প্রতিটি জিমের নিজের — `SiteColors` লেখার রঙ মিলিয়ে (৪.৫:১) ঠিক করে।
 *   • সমতল: ছায়া, ঝাপসা, গ্লো কিছুই নয়। কোণ ১০px (কার্ড, বোতাম),
 *     ১৪px (মেনুর পাতা)। বাছাই মানে ২px রেখা + হালকা আভা।
 *   • অবস্থা বোঝায় চারটি চিহ্ন (<x-core::status-sign>) — সবসময় শব্দসহ।
 *   • কোনো JavaScript নেই: মেয়াদের সুইচ, বারের ট্যাব, ভর্তির দুই ফরম
 *     লুকানো radio দিয়ে; ফোনের "মেনু" `:target` দিয়ে — মেনুর কোনো লিংকে
 *     চাপলে ঠিকানা বদলায়, আর মেনু নিজে থেকেই বন্ধ হয়ে যায় (checkbox
 *     দিয়ে করলে খোলা থেকে যেত); ফোনের Back বোতামেও বন্ধ হয়।
 *
 * কেন `public/`-এ: এই প্রজেক্টে CSS বিল্ড নেই (ভাগের সার্ভারে npm চলে
 * না) — panel.css-এর মতোই সরাসরি পরিবেশনযোগ্য একটি ফাইল।
 *
 * বাংলার নিয়ম: `letter-spacing` বা `uppercase` কোথাও নয় (যুক্তাক্ষর
 * ভাঙে); একাধিক লাইনের শিরোনামে line-height ১.৪-এর কম নয়, আর
 * `text-wrap: balance` (Google Sans-এর ু নিচের লাইনে ঠেকে যায়)।
 */

/* ═══ ১. হরফ ═════════════════════════════════════════════════════ */

/* GD Ank — দামের ঘরে সমান-চওড়া বাংলা অঙ্ক (Noto Sans Bengali-র অংশ, OFL) */
@font-face {
    font-family: 'GD Ank';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('../../fonts/gd-ank.woff2') format('woff2');
    unicode-range: U+2C, U+2E, U+9E6-9EF, U+9F3;
}

/* ═══ ২. রঙ ও মাপ ════════════════════════════════════════════════ */

:root {
    --site:    #F7F6FA;   /* সাইটের সাদা */
    --surface: #FFFFFF;   /* কার্ড ও বোর্ড */
    --canvas:  #EFEEF4;   /* হালকা ঘর (টিপ, চিপ) */
    --hair:    #CFCDD9;   /* সরু রেখা */
    --ctl:     #8C86A0;   /* ঘর ও দ্বিতীয় বোতামের কিনারা (৩:১) */
    --ink:     #16131D;
    --muted:   #58536B;
    --band:    #16131D;   /* নিচের পট্টি — দুই মোডেই গাঢ় */
    --on-band: #FFFFFF;
    --on-band-muted: #C9C4D6;

    --ok: #0A7A3B;     --ok-bg: #E7F5EC;
    --watch: #9A4A00;  --watch-bg: #FDF0E3;
    --stop: #C4122F;   --stop-bg: #FDE8EC;
    --pause: #58536B;
    --sign-on: #FFFFFF;

    /* ভিড়ের দণ্ড */
    --crowd-low: #C9C5D6;
    --crowd-mid: #8C86A0;
    --crowd-high: #16131D;

    /* জিমের রঙে লেখা (লিংক, বাছাই) — `SiteColors`-এর মান, না থাকলে বেগুনি */
    --link: var(--gym-text, #7318CC);
    --tint: color-mix(in srgb, var(--link) 10%, var(--surface));

    --font: 'Google Sans', 'Noto Sans Bengali', ui-sans-serif, system-ui, sans-serif;
    --latin: 'Schibsted Grotesk', 'Google Sans', ui-sans-serif, system-ui, sans-serif;
    --num: 'GD Ank', 'Google Sans', 'Noto Sans Bengali', ui-sans-serif, system-ui, sans-serif;

    --radius: 10px;
    --radius-lg: 14px;
    --gutter: 64px;
    --head: 64px;

    color-scheme: light dark;
}

/* রাতের মোড — যন্ত্রের পছন্দ থেকে (সাইটে থিমের বোতাম নেই) */
@media (prefers-color-scheme: dark) {
    :root {
        --site:    #17121F;
        --surface: #221B2D;
        --canvas:  #1D1727;
        --hair:    #3B3249;
        --ctl:     #7A7390;
        --ink:     #F2EFF7;
        --muted:   #ADA6BD;
        --band:    #0F0C15;

        --ok: #4FCB84;     --ok-bg: #17301F;
        --watch: #F39A3E;  --watch-bg: #33230F;
        --stop: #FF6F86;   --stop-bg: #3A1520;
        --pause: #ADA6BD;
        --sign-on: #17121F;

        --crowd-low: #3B3249;
        --crowd-mid: #7A7390;
        --crowd-high: #F2EFF7;

        --link: var(--gym-text-dark, #C4A3FF);
    }
}

/* ═══ ৩. ভিত্তি ═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--site);
    color: var(--ink);
    font-family: var(--font);
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* মেনু খোলা থাকলে পেছনের পাতা নড়ে না */
body:has(#menu:target) { overflow: hidden; }

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: normal;
    text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ইংরেজিতে শিরোনাম Schibsted Grotesk-এ — পণ্যের নিজের মুখ (বাংলা অক্ষর Google Sans-এই থাকে) */
html[lang="en"] h1, html[lang="en"] h2 { font-family: var(--latin); font-weight: 800; }

:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1312px; margin: 0 auto; padding: 0 var(--gutter); }

.num { font-family: var(--num); font-weight: 700; font-variant-numeric: tabular-nums; }

.muted { color: var(--muted); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
    position: absolute; left: 16px; top: -60px; z-index: 60;
    background: var(--surface); color: var(--ink); border: 2px solid var(--link);
    border-radius: var(--radius); padding: 8px 14px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 8px; }

svg.i {
    width: 20px; height: 20px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* অংশে লাফ দিলে শিরোনাম উপরের পট্টির নিচে ঢাকা পড়ে না */
[id] { scroll-margin-top: calc(var(--head) + 16px); }

/* ═══ ৪. বোতাম ও ছোট উপাদান ══════════════════════════════════════ */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px;
    border-radius: var(--radius); border: 1px solid transparent;
    font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
    text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn.fill { background: var(--cta, #7318CC); color: var(--on-cta, #FFFFFF); }
.btn.fill:hover { filter: brightness(1.06); }
.btn.sec { background: var(--surface); color: var(--ink); border-color: var(--ctl); }
.btn.sec:hover { border-color: var(--ink); }
.btn.ghost { background: transparent; color: #FFFFFF; border: 1.5px solid rgba(255, 255, 255, .9); }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.btn.big { min-height: 52px; padding: 0 24px; font-size: 17px; }
.btn.wide { width: 100%; }

/* বাং | EN */
.seg {
    display: inline-flex; border: 1px solid var(--ctl); border-radius: var(--radius);
    overflow: hidden; min-height: 40px;
}
.seg a {
    display: grid; place-items: center; padding: 0 12px;
    font-size: 15px; color: var(--muted); text-decoration: none;
}
.seg a.on { background: var(--ink); color: var(--site); font-weight: 600; }

.chip {
    display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px;
    border-radius: 17px; background: var(--surface); border: 1px solid var(--hair);
    font-size: 15px; line-height: 1.4;
}

.link {
    color: var(--link); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* অবস্থার চিহ্ন — <x-core::status-sign>; রঙ কোনো জিমের জন্য বদলায় না */
.gd-sign {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; line-height: 1.4;
}
.gd-sign-icon { flex: 0 0 auto; width: 18px; height: 18px; }
.gd-sign-shape { fill: currentColor; }
.gd-sign-shape-stroked, .gd-sign-ring { stroke: currentColor; }
.gd-sign-mark { fill: var(--sign-on); }
.gd-sign-mark-line { stroke: var(--sign-on); }
.gd-sign-ok    { color: var(--ok); }
.gd-sign-watch { color: var(--watch); }
.gd-sign-stop  { color: var(--stop); }
.gd-sign-pause { color: var(--pause); }
.gd-sign.bare .gd-sign-label { display: none; }

/* ═══ ৫. উপরের পট্টি ═══════════════════════════════════════════════ */

/* স্টাফের দরজা — একেবারে উপরের সরু সারি, ডান কোণে; স্ক্রল করলে সরে যায়,
   আটকে থাকে কেবল নিচের মূল পট্টি */
.s-top { background: var(--canvas); border-bottom: 1px solid var(--hair); }
.s-top-in { display: flex; justify-content: flex-end; align-items: center; min-height: 36px; }
.staff-login {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 2px;
    color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.4; text-decoration: none;
}
.staff-login:hover, .staff-login:focus-visible { color: var(--ink); text-decoration: underline; }
.staff-login .i { width: 16px; height: 16px; }
.sheet-foot .staff-login { justify-self: center; min-height: 44px; }
@media (max-width: 767px) {
    .s-top-in, .staff-login { min-height: 40px; }
}

.s-head {
    position: sticky; top: 0; z-index: 30;
    background: var(--surface); border-bottom: 1px solid var(--hair);
}
.s-head-in {
    min-height: var(--head); display: flex; align-items: center; gap: 32px;
}

.brand {
    display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; max-width: 320px;
    font-weight: 700; font-size: 20px; line-height: 1.3; text-decoration: none; color: var(--ink);
}
.brand .mk {
    width: 40px; height: 40px; flex: none; border-radius: var(--radius);
    background: var(--gym, #7318CC); color: var(--on-gym, #FFFFFF); display: grid; place-items: center;
}
.brand .mk svg { width: 24px; height: 24px; stroke-width: 2.2; }
.brand img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.brand .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.s-nav { flex: 1 1 auto; display: flex; justify-content: center; gap: 24px; min-width: 0; }
.s-nav a {
    color: var(--muted); font-size: 16px; font-weight: 500; text-decoration: none;
    padding: 8px 0; white-space: nowrap;
}
.s-nav a:hover { color: var(--ink); }

.s-right { display: flex; align-items: center; gap: 12px; }
.s-mob { display: none; margin-left: auto; align-items: center; gap: 6px; }

.ib {
    width: 48px; height: 48px; border-radius: var(--radius); display: grid; place-items: center;
    border: 1px solid var(--hair); background: var(--surface); color: var(--ink);
}
.menu-btn {
    min-height: 48px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--ctl);
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 600; font-size: 16px; text-decoration: none; color: var(--ink); background: var(--surface);
}

/* ═══ ৬. ফোনের মেনু (:target) ═══════════════════════════════════════ */

.sheet { display: none; }
.sheet:target {
    display: block; position: fixed; inset: 0; z-index: 50;
}
.sheet-dim { position: absolute; inset: 0; background: rgba(22, 19, 29, .55); }
.sheet-panel {
    position: absolute; left: 0; right: 0; bottom: 0; top: 12px;
    background: var(--surface); border-radius: 20px 20px 0 0;
    display: flex; flex-direction: column; overflow-y: auto;
    max-width: 560px; margin: 0 auto;
}
.sheet-h {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 16px 12px;
}
.sheet-h b { font-size: 18px; line-height: 1.4; }
.close {
    min-height: 48px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--ctl);
    display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 16px;
    text-decoration: none; color: var(--ink); flex: none;
}
.today {
    margin: 0 16px 8px; padding: 12px 14px; border-radius: var(--radius);
    background: var(--canvas); font-weight: 600; font-size: 16px; line-height: 1.5;
    display: flex; gap: 10px; align-items: center;
}
.today.ok { background: var(--ok-bg); color: var(--ok); }
.sheet-nav { border-top: 1px solid var(--hair); margin-top: 8px; }
.sheet-nav a {
    min-height: 56px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px; border-bottom: 1px solid var(--hair);
    font-size: 17px; font-weight: 500; text-decoration: none; color: var(--ink);
}
.sheet-nav a svg { color: var(--muted); }
.addr { margin: 16px 16px 0; display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.addr svg { margin-top: 2px; color: var(--muted); }
.addr .link { display: inline-block; margin-top: 2px; }
.sheet-foot { margin-top: auto; padding: 20px 16px 24px; display: grid; gap: 14px; }
.sheet-foot .seg { width: max-content; min-height: 44px; }
.sheet-foot .seg a { padding: 0 18px; }

/* ═══ ৭. হিরো ও "আজকের বোর্ড" ═══════════════════════════════════════ */

.hero {
    position: relative; color: #FFFFFF;
    min-height: min(78vh, 700px);
    display: flex; align-items: flex-end;
    /* ছবি না থাকলে কালি আর জিমের রঙের মিশ্রণ — সমতল, কোনো গ্লো নয় */
    background: color-mix(in srgb, var(--gym-brand, #7318CC) 28%, #16131D);
}
/* ছবি না থাকলে এত উঁচু ফাঁকা পট দরকার নেই */
.hero-photo-less { min-height: 460px; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* নিচের দিকে কালির আভা — লেখা ছবির উপর পড়ার মতো থাকে (৮০%+ পেছনে) */
.scrim {
    position: absolute; inset: 0;
    background: linear-gradient(0deg,
        rgba(22, 19, 29, .92) 0%, rgba(22, 19, 29, .8) 30%,
        rgba(22, 19, 29, .45) 55%, rgba(22, 19, 29, .08) 78%);
}
.hero-in {
    position: relative; width: 100%;
    display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: end;
}
.hero-copy { padding: 96px 0 72px; max-width: 720px; }
.strip { width: 72px; height: 6px; border-radius: 3px; background: var(--cta, #FFFFFF); margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.25rem, 3.6vw + 1rem, 4.1rem); line-height: 1.45; }
.hero .sub { font-size: 20px; line-height: 1.6; margin-top: 10px; color: rgba(255, 255, 255, .92); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.board {
    align-self: end; margin-bottom: -116px; position: relative; z-index: 2;
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden;
}
.board-h {
    min-height: 44px; padding: 8px 18px;
    background: var(--gym, #7318CC); color: var(--on-gym, #FFFFFF);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-weight: 600; font-size: 16px; line-height: 1.4;
}
.board-h small { font-size: 14px; font-weight: 500; opacity: .92; }
.brow {
    min-height: 52px; padding: 10px 18px; display: flex; align-items: center; gap: 12px;
    border-top: 1px solid var(--hair); font-size: 16px; line-height: 1.5;
}
.board-h + .brow { border-top: 0; }
.brow .ic { width: 24px; flex: none; display: grid; place-items: center; color: var(--muted); }
.brow .taka { font-family: var(--num); font-weight: 700; font-size: 18px; color: var(--ink); }
.brow .txt { flex: 1; min-width: 0; }
.brow .link { margin-left: auto; }
.brow.ok .txt b { color: var(--ok); }

/* ═══ ৮. অংশ ══════════════════════════════════════════════════════ */

.ssec { padding: 72px 0; }
.ssec.first { padding-top: 168px; }    /* বোর্ডটি উপরে ঝুলে থাকে */
.ssec + .ssec { padding-top: 8px; }
.sec-h {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    margin-bottom: 24px;
}
.sec-h h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.25rem); }
.sec-h p { color: var(--muted); font-size: 17px; margin-top: 4px; max-width: 62ch; }

.card {
    background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius);
    padding: 24px; min-width: 0;
}
.card h3 { font-size: 22px; }
.card > p.muted { font-size: 16px; margin-top: 4px; }

.two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.two.single { grid-template-columns: minmax(0, 1fr); }

/* ═══ ৯. প্ল্যান ও দাম ═════════════════════════════════════════════ */

.price-board { position: relative; }

/* লুকানো radio — সুইচ কেবল CSS দিয়ে */
.pick { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

.dur-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.dur-t {
    min-height: 44px; padding: 0 16px; border-radius: var(--radius);
    border: 1px solid var(--hair); background: var(--surface); color: var(--muted);
    display: inline-grid; place-items: center; font-size: 16px; cursor: pointer; white-space: nowrap;
}
.dur-t:hover { color: var(--ink); border-color: var(--ctl); }

.dur-p { display: none; }
.plans {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}

.dur-r-0:checked ~ .dur-panels .dur-p-0,
.dur-r-1:checked ~ .dur-panels .dur-p-1,
.dur-r-2:checked ~ .dur-panels .dur-p-2,
.dur-r-3:checked ~ .dur-panels .dur-p-3,
.dur-r-4:checked ~ .dur-panels .dur-p-4,
.dur-r-5:checked ~ .dur-panels .dur-p-5,
.dur-r-6:checked ~ .dur-panels .dur-p-6,
.dur-r-7:checked ~ .dur-panels .dur-p-7 { display: grid; }

.dur-r-0:checked ~ .sec-h .dur-t-0,
.dur-r-1:checked ~ .sec-h .dur-t-1,
.dur-r-2:checked ~ .sec-h .dur-t-2,
.dur-r-3:checked ~ .sec-h .dur-t-3,
.dur-r-4:checked ~ .sec-h .dur-t-4,
.dur-r-5:checked ~ .sec-h .dur-t-5,
.dur-r-6:checked ~ .sec-h .dur-t-6,
.dur-r-7:checked ~ .sec-h .dur-t-7 {
    outline: 2px solid var(--link); outline-offset: -2px; border-color: transparent;
    background: var(--tint); color: var(--link); font-weight: 600;
}

.dur-r-0:focus-visible ~ .sec-h .dur-t-0,
.dur-r-1:focus-visible ~ .sec-h .dur-t-1,
.dur-r-2:focus-visible ~ .sec-h .dur-t-2,
.dur-r-3:focus-visible ~ .sec-h .dur-t-3,
.dur-r-4:focus-visible ~ .sec-h .dur-t-4,
.dur-r-5:focus-visible ~ .sec-h .dur-t-5,
.dur-r-6:focus-visible ~ .sec-h .dur-t-6,
.dur-r-7:focus-visible ~ .sec-h .dur-t-7 { box-shadow: 0 0 0 4px var(--site), 0 0 0 6px var(--link); }

/* মেয়াদের সুইচ না থাকলে (একটিমাত্র মেয়াদ) — ঘরটি সবসময় দেখা যায় */
.dur-p.always { display: grid; }

.plan {
    background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius);
    padding: 26px 26px 24px; display: flex; flex-direction: column; min-width: 0;
}
.plan.best { outline: 2px solid var(--link); outline-offset: -2px; border-color: transparent; }
.plan h3 { font-size: 20px; line-height: 1.4; }
.plan .mark { margin-top: 6px; font-size: 15px; }
.plan .price { font-size: 46px; line-height: 1.1; margin-top: 16px; }
.plan .per { font-size: 16px; margin-top: 8px; }
.plan .fee { font-size: 15px; color: var(--muted); }
.plan .fee.free { color: var(--ok); font-weight: 600; }
.plan ul {
    list-style: none; margin: 18px 0 22px; padding: 16px 0 0; border-top: 1px solid var(--hair);
    display: grid; gap: 8px;
}
.plan li { display: flex; gap: 10px; font-size: 16px; line-height: 1.5; }
.plan li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--ok); stroke-width: 2.2; }
.plan li.no svg { color: var(--muted); }
.plan .btn { margin-top: auto; width: 100%; }

/* ফোনে দামের অংশের ভেতরেই নিচে লেগে থাকা বার — অংশের বাইরে নয় */
.plan-bars { display: none; }
.plan-bar { display: none; }

/* ═══ ১০. কখন ফাঁকা থাকে ═══════════════════════════════════════════ */

.day-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 14px 0 18px; }
.day-t {
    min-height: 40px; padding: 0 12px; border-radius: 8px; display: inline-grid; place-items: center;
    font-size: 15px; color: var(--muted); cursor: pointer; border: 1px solid transparent;
}
.day-t:hover { border-color: var(--hair); color: var(--ink); }
.day-p { display: none; }

.day-r-0:checked ~ .day-panels .day-p-0,
.day-r-1:checked ~ .day-panels .day-p-1,
.day-r-2:checked ~ .day-panels .day-p-2,
.day-r-3:checked ~ .day-panels .day-p-3,
.day-r-4:checked ~ .day-panels .day-p-4,
.day-r-5:checked ~ .day-panels .day-p-5,
.day-r-6:checked ~ .day-panels .day-p-6 { display: block; }

.day-r-0:checked ~ .day-tabs .day-t-0,
.day-r-1:checked ~ .day-tabs .day-t-1,
.day-r-2:checked ~ .day-tabs .day-t-2,
.day-r-3:checked ~ .day-tabs .day-t-3,
.day-r-4:checked ~ .day-tabs .day-t-4,
.day-r-5:checked ~ .day-tabs .day-t-5,
.day-r-6:checked ~ .day-tabs .day-t-6 {
    outline: 2px solid var(--link); outline-offset: -2px;
    background: var(--tint); color: var(--link); font-weight: 600;
}

.day-r-0:focus-visible ~ .day-tabs .day-t-0,
.day-r-1:focus-visible ~ .day-tabs .day-t-1,
.day-r-2:focus-visible ~ .day-tabs .day-t-2,
.day-r-3:focus-visible ~ .day-tabs .day-t-3,
.day-r-4:focus-visible ~ .day-tabs .day-t-4,
.day-r-5:focus-visible ~ .day-tabs .day-t-5,
.day-r-6:focus-visible ~ .day-tabs .day-t-6 { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--link); }

.crowd {
    position: relative; height: 200px; padding-top: 34px;
    display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; align-items: end;
}
.bar { height: var(--h); border-radius: 4px 4px 0 0; background: var(--crowd-low); position: relative; z-index: 1; }
.bar.mid { background: var(--crowd-mid); }
.bar.high { background: var(--crowd-high); }
.bar.shut { background: var(--hair); }
/* কলামের শুরু থেকে: (১০০% + ফাঁক) × ভাগ − অর্ধেক ফাঁক */
.crowd .ladies {
    position: absolute; top: 0; bottom: 0; border-radius: 6px;
    left: calc((100% + 6px) * var(--p) - 3px); width: calc((100% + 6px) * var(--w));
    background: color-mix(in srgb, var(--link) 12%, transparent);
}
.crowd .ladies span {
    position: absolute; top: 4px; left: 0; right: 0; text-align: center;
    font-size: 14px; font-weight: 600; color: var(--link); line-height: 1.4; white-space: nowrap;
}
.crowd .now { position: absolute; top: 0; bottom: 0; left: calc((100% + 6px) * var(--p) - 3px); border-left: 2px dashed var(--ink); z-index: 2; }
.crowd .now span { position: absolute; top: 0; left: 6px; font-size: 14px; font-weight: 700; white-space: nowrap; line-height: 1.4; }
.axis { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); margin-top: 8px; }
.leg { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-top: 14px; }
.leg i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tip {
    margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--canvas);
    font-size: 16px; line-height: 1.5; display: flex; gap: 10px; align-items: center;
}

/* ═══ ১১. ক্লাস ═════════════════════════════════════════════════════ */

.dayhead { font-size: 15px; font-weight: 600; color: var(--muted); padding: 14px 0 2px; border-top: 1px solid var(--hair); }
.dayhead:first-of-type { border-top: 0; padding-top: 10px; }
.cls {
    display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 16px;
    padding: 12px 0; border-top: 1px solid var(--hair);
}
.dayhead + .cls { border-top: 0; }
.cls .t { font-weight: 600; font-size: 16px; line-height: 1.5; }
.cls .n { font-weight: 700; font-size: 17px; line-height: 1.4; }
.cls .who { color: var(--muted); font-size: 15px; line-height: 1.5; }
.cls .st { grid-column: 2; font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; line-height: 1.5; }
.seats { display: inline-flex; gap: 3px; align-items: center; }
.seats i { width: 9px; height: 14px; border-radius: 2px; background: var(--ink); }
.seats i.e { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ctl); }
.cls .gd-sign { font-size: 15px; white-space: normal; }

/* ═══ ১২. ট্রেইনার, ছবি, সুবিধা ════════════════════════════════════ */

.trainers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.tcard { min-width: 0; }
.tcard .ph {
    position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
    background: var(--canvas);
}
.tcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.tile {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: var(--gym, #7318CC); color: var(--on-gym, #FFFFFF);
    font-size: 96px; font-weight: 700; line-height: 1.4;
}
.tcard h3 { font-size: 19px; margin-top: 12px; }
.tcard p { font-size: 15px; color: var(--muted); line-height: 1.5; }
.tcard .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tcard .tags span { font-size: 14px; padding: 2px 10px; border-radius: 12px; background: var(--canvas); line-height: 1.5; }

.shots {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 30%);
    gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
    overscroll-behavior-x: contain;
}
.shots figure { margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--canvas); }
.shots img { width: 100%; height: 100%; object-fit: cover; }

.facil { display: flex; flex-wrap: wrap; gap: 8px; }

/* ═══ ১৩. যোগাযোগ ও ঠিকানা ═════════════════════════════════════════ */

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.contact .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.contact .where { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 17px; line-height: 1.6; }
.contact .where svg { margin-top: 4px; color: var(--muted); }
.hours { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 16px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-top: 1px solid var(--hair); vertical-align: top; line-height: 1.5; }
.hours th { font-weight: 600; padding-right: 16px; white-space: nowrap; }
.hours tr:first-child th, .hours tr:first-child td { border-top: 0; }
.hours .today-row th, .hours .today-row td { color: var(--link); }
.note { margin-top: 12px; font-size: 15px; color: var(--muted); line-height: 1.6; }
.rules { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rules li { display: flex; gap: 10px; font-size: 16px; line-height: 1.6; }
.rules li svg { margin-top: 4px; color: var(--muted); }
.contact .card + .card, .join .card + .card { margin-top: 20px; }

/* ═══ ১৪. শেষের ডাক ও নিচের অংশ ════════════════════════════════════ */

.band { background: var(--surface); border-top: 1px solid var(--hair); }
.band-in { padding-block: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem); }
.band p { color: var(--muted); font-size: 17px; margin-top: 4px; max-width: 56ch; }

.s-foot { background: var(--band); color: var(--on-band); font-size: 15px; line-height: 1.6; }
.s-foot-in { padding-block: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.s-foot .who b { display: block; font-size: 17px; }
.s-foot .who span { color: var(--on-band-muted); }
.s-foot a { color: var(--on-band); }
.s-foot .seg { border-color: #7A7390; }
.s-foot .seg a { color: var(--on-band-muted); }
.s-foot .seg a.on { background: #FFFFFF; color: #16131D; }
.s-foot .by { color: var(--on-band-muted); }
.s-foot .by b { font-family: var(--latin); font-weight: 800; color: var(--on-band); }

/* ═══ ১৫. ভর্তির পাতা ══════════════════════════════════════════════ */

.page-h { padding-top: 56px; padding-bottom: 8px; }
.page-h h1 { font-size: clamp(2rem, 2.2vw + 1rem, 2.75rem); }
.page-h p { color: var(--muted); font-size: 18px; margin-top: 8px; max-width: 60ch; }

.join { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; padding-top: 24px; padding-bottom: 72px; }

.mode-tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--ctl);
    border-radius: var(--radius); overflow: hidden; margin-bottom: 20px;
}
.mode-t {
    min-height: 48px; display: grid; place-items: center; padding: 6px 12px; text-align: center;
    font-size: 16px; font-weight: 500; color: var(--muted); cursor: pointer; line-height: 1.35;
}
.mode-t + .mode-t { border-left: 1px solid var(--ctl); }
.mode-p { display: none; }
.mode-r-trial:checked ~ .mode-tabs .mode-t-trial,
.mode-r-join:checked ~ .mode-tabs .mode-t-join { background: var(--ink); color: var(--site); font-weight: 600; }
.mode-r-trial:focus-visible ~ .mode-tabs .mode-t-trial,
.mode-r-join:focus-visible ~ .mode-tabs .mode-t-join { outline: 2px solid var(--link); outline-offset: 2px; }
.mode-r-trial:checked ~ .mode-p-trial,
.mode-r-join:checked ~ .mode-p-join { display: block; }
.mode-p.always { display: block; }

.field { margin-top: 16px; }
.field:first-child { margin-top: 0; }
.field label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; line-height: 1.5; }
.field .hint { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 10px 14px;
    font: inherit; font-size: 17px; line-height: 1.5; color: var(--ink);
    background: var(--surface); border: 1px solid var(--ctl); border-radius: var(--radius);
}
.field textarea { min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--link); outline-offset: 0; border-color: var(--link); }

.sum { display: none; margin-top: 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--canvas); font-size: 16px; line-height: 1.6; }
.sum b { font-family: var(--num); }

.msg { border-radius: var(--radius); padding: 12px 14px; font-size: 16px; line-height: 1.6; margin-bottom: 16px; border: 1px solid; }
.msg.err { background: var(--stop-bg); color: var(--stop); border-color: currentColor; }
.done {
    background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius);
    overflow: hidden; margin-bottom: 20px;
}
.done-h { padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; font-size: 18px; font-weight: 600; line-height: 1.5; background: var(--ok-bg); color: var(--ok); }
.done-h .gd-sign-icon { width: 24px; height: 24px; margin-top: 2px; }
.done p { padding: 12px 18px 16px; font-size: 16px; color: var(--muted); }
.steps { margin: 12px 0 0; padding-left: 1.3em; display: grid; gap: 8px; font-size: 16px; line-height: 1.6; }
html[lang="bn"] .steps { list-style-type: bengali; }

/* ═══ ১৬. মাপ অনুযায়ী ══════════════════════════════════════════════ */

@media (max-width: 1180px) {
    :root { --gutter: 32px; }
    .s-head-in { gap: 20px; }
    .s-nav { gap: 18px; }
    .s-right .btn.sec .ph-txt { display: none; }
    .hero-in { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; }
}

/* ট্যাবলেট ও ফোন: উপরের পট্টি সরু, মেনু একটি বোতামে */
@media (max-width: 1023px) {
    :root { --head: 56px; }
    .s-nav, .s-right { display: none; }
    .s-mob { display: flex; }
    .brand { font-size: 18px; }
    .brand .mk { width: 36px; height: 36px; }
    .brand img { height: 36px; }

    /* ফোনে: ওপরে ছবি ও শিরোনাম, ঠিক নিচে সাইটের সাদায় "আজকের বোর্ড" */
    .brand .nm {
        white-space: normal; line-height: 1.3;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    }
    .hero { min-height: 0; display: block; background: transparent; color: inherit; }
    .hero-in { position: static; display: block; }
    .hero-media { height: min(62vh, 560px); position: relative; }
    .hero .scrim { height: min(62vh, 560px); bottom: auto; }
    .hero-copy {
        position: absolute; left: 0; right: 0; top: 0; height: min(62vh, 560px);
        display: flex; flex-direction: column; justify-content: flex-end;
        padding: 24px var(--gutter); max-width: none; color: #FFFFFF;
    }
    .hero-photo-less .hero-copy {
        position: static; height: auto; margin: 0 calc(var(--gutter) * -1);
        padding: 48px var(--gutter) 32px;
        background: color-mix(in srgb, var(--gym-brand, #7318CC) 28%, #16131D);
    }
    .board { margin: 16px 0 0; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
    .ssec.first { padding-top: 64px; }
    .two, .contact, .join { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
    :root { --gutter: 16px; }
    body { font-size: 17px; }
    .hero h1 { font-size: 34px; }
    .hero .sub { font-size: 17px; }
    .hero-copy { padding-bottom: 20px; }
    .board { margin: 0 16px; }
    .brow { padding: 10px 14px; font-size: 15px; }
    .ssec { padding: 48px 0; }
    .card { padding: 18px; }

    .dur-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; width: 100%; }
    .plans { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .plan { padding: 16px; }
    .plan .price { font-size: 32px; margin-top: 6px; }
    .plan ul { margin: 12px 0 14px; padding-top: 12px; }
    .plan li { font-size: 15px; }

    /* "এই প্ল্যান নিন" — দামের অংশ পর্দায় থাকলেই, অংশ পেরোলে সরে যায় */
    .plan-bars {
        display: block; position: sticky; bottom: 0; z-index: 5;
        margin: 16px calc(var(--gutter) * -1) -48px;
        background: var(--surface); border-top: 1px solid var(--hair);
    }
    .plan-bar { align-items: center; gap: 12px; padding: 12px 16px 16px; }
    .plan-bar .l { flex: 1; min-width: 0; line-height: 1.35; }
    .plan-bar small { display: block; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .plan-bar b { font-size: 18px; }
    .plan-bar .btn { min-height: 48px; }
    .dur-r-0:checked ~ .plan-bars .dur-b-0,
    .dur-r-1:checked ~ .plan-bars .dur-b-1,
    .dur-r-2:checked ~ .plan-bars .dur-b-2,
    .dur-r-3:checked ~ .plan-bars .dur-b-3,
    .dur-r-4:checked ~ .plan-bars .dur-b-4,
    .dur-r-5:checked ~ .plan-bars .dur-b-5,
    .dur-r-6:checked ~ .plan-bars .dur-b-6,
    .dur-r-7:checked ~ .plan-bars .dur-b-7,
    .plan-bar.always { display: flex; }

    .day-tabs { flex-wrap: nowrap; overflow-x: auto; }
    .crowd { gap: 3px; height: 170px; }
    .crowd .ladies { left: calc((100% + 3px) * var(--p) - 1.5px); width: calc((100% + 3px) * var(--w)); }
    .crowd .now { left: calc((100% + 3px) * var(--p) - 1.5px); }
    .axis { font-size: 13px; }

    .cls { grid-template-columns: minmax(0, 1fr); }
    .cls .st { grid-column: 1; }

    .trainers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .tile { font-size: 64px; }
    .shots { grid-auto-columns: 78%; }

    .band-in { padding-block: 36px; }
    .band .btn { width: 100%; }
    .contact .actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
