/* ============================================================
   «مائدة» — مكونات موقع الكاترينج (md-*). شغالة مع أي قالب: الألوان والخطوط توكنز
   (:where = أقل أولوية ⇒ القالب يغيّرها). القالب «مائدة» بيدي التوكنز الحقيقية في themes/maida.css.
   حركة: 300–500ms، من غير parallax، وprefers-reduced-motion بيوقف كل حاجة.
   ============================================================ */
:where(body) {
    --md-bg: var(--bg, #F7F2EA); --md-paper: var(--surface, #FFFCF7); --md-ink: var(--ink, #231E1A); --md-muted: var(--muted, #6B6157);
    --md-dark: var(--navy, #171310); --md-dark-2: #221c17; --md-on-dark: #F7F2EA; --md-on-dark-2: #CFC5B8;
    --md-accent: var(--gold, #A5802C); --md-accent-ink: #8A6A22; --md-accent-soft: rgba(165, 128, 44, .14); --md-olive: #4F5D3A;
    --md-line: rgba(35, 30, 26, .12); --md-line-dark: rgba(247, 242, 234, .16);
    --md-display: var(--font-display, 'Amiri', serif); --md-body: var(--font, 'IBM Plex Sans Arabic', sans-serif); --md-latin: 'Cormorant Garamond', 'Amiri', serif; --md-script: 'Aref Ruqaa', 'Amiri', serif;
    --md-r: 4px; --md-r-lg: 10px; --md-ease: cubic-bezier(.2, .7, .2, 1); --md-hdr: 76px;
}

.md { font-family: var(--md-body); color: var(--md-ink); font-size: 17px; line-height: 1.8; }
.md *, .md *::before, .md *::after { box-sizing: border-box; }
.md img, .md video { max-width: 100%; display: block; }
:where(.md) a { color: inherit; }
.md :focus-visible { outline: 2px solid var(--md-accent); outline-offset: 3px; }
.md-wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.md-narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
.md-sec { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.md-sec--paper { background: var(--md-paper); }
.md-sec--dark { background: var(--md-dark); color: var(--md-on-dark); }
.md-sec--dark .md-lead, .md-sec--dark .md-muted { color: var(--md-on-dark-2); }
.md-sec--tight { padding-block: clamp(40px, 6vw, 72px); }

/* ── الطباعة ── */
.md-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--md-accent-ink); margin: 0 0 14px; }
.md-sec--dark .md-eyebrow, .md-hero .md-eyebrow { color: #D8BC7C; }
.md-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.md-h1, .md-h2, .md-h3 { font-family: var(--md-display); font-weight: 700; letter-spacing: 0; margin: 0 0 .45em; color: inherit; }
.md-h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.8rem); line-height: 1.22; }
.md-h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); line-height: 1.3; }
.md-h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); line-height: 1.4; }
.md-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--md-muted); max-width: 62ch; margin: 0 0 1.4em; }
.md-muted { color: var(--md-muted); }
.md-small { font-size: .88rem; }
.md-center { text-align: center; }
.md-center .md-lead { margin-inline: auto; }
.md-center .md-eyebrow { justify-content: center; }
.md-script { font-family: var(--md-script); font-weight: 700; color: var(--md-accent); }
.md-orn { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--md-accent); margin: 6px auto 22px; max-width: 220px; }
.md-orn::before, .md-orn::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .55; }
.md-orn i { width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); }
.md-head { margin-bottom: clamp(28px, 4vw, 48px); }
.md-head--row { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.md-head--row .md-lead { margin-bottom: 0; }
[dir="ltr"] .md-h1, [dir="ltr"] .md-h2, [dir="ltr"] .md-h3 { font-family: var(--md-latin); font-weight: 600; letter-spacing: -.01em; }

/* ── الأزرار ── */
.md-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
    font: 600 1rem/1 var(--md-body); text-decoration: none; cursor: pointer; transition: background .3s var(--md-ease), color .3s var(--md-ease), border-color .3s var(--md-ease), transform .3s var(--md-ease); }
.md-btn:hover { transform: translateY(-1px); }
.md-btn--brass { background: var(--md-accent); color: #171310; }
.md-btn--brass:hover { background: #B8923A; color: #171310; }
.md-btn--dark { background: var(--md-dark); color: var(--md-on-dark); }
.md-btn--dark:hover { background: #2c241e; color: var(--md-on-dark); }
.md-btn--ghost { border-color: currentColor; background: transparent; color: inherit; }
.md-btn--ghost:hover { background: rgba(127, 127, 127, .1); }
.md-btn--sm { min-height: 42px; padding: 0 18px; font-size: .93rem; }
.md-btn svg { width: 18px; height: 18px; }
.md-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.md-link { color: var(--md-accent-ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.md-sec--dark .md-link { color: #D8BC7C; }

/* ── الواجهة ── */
.md-hero { margin-top: calc(-1 * var(--md-hdr)); position: relative; min-height: min(100svh, 980px); min-height: max(620px, min(100svh, 980px)); display: grid; align-items: end; color: #F7F2EA; background: var(--md-dark); overflow: hidden; isolation: isolate; }
.md-hero-media, .md-hero-media > *, .md-hero-media picture, .md-hero-media img, .md-hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.md-hero-media { z-index: -2; }
.md-hero-media img { animation: mdSettle 1.6s var(--md-ease) both; }
.md-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(23, 19, 16, .92) 0%, rgba(23, 19, 16, .55) 38%, rgba(23, 19, 16, .15) 70%, rgba(23, 19, 16, .45) 100%); }
.md-hero-in { padding-block: calc(var(--md-hdr) + 40px) clamp(56px, 9vh, 110px); }
.md-hero .md-h1 { max-width: 15ch; text-wrap: balance; }
.md-hero .md-lead { color: #E7DED2; max-width: 52ch; }
.md-hero-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-size: .9rem; color: #CFC5B8; }
.md-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.md-hero-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #D8BC7C; }
.md-hero-ctl { position: absolute; inset-block-end: 22px; inset-inline-end: 22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(247, 242, 234, .5); background: rgba(23, 19, 16, .35);
    color: #F7F2EA; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.md-hero-ctl svg { width: 16px; height: 16px; }
.md-hero-ctl[hidden] { display: none; }

/* ── شريط الثقة ── */
.md-trust { background: var(--md-paper); border-bottom: 1px solid var(--md-line); }
.md-trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.md-trust li { padding: 28px 22px; display: grid; gap: 4px; border-inline-start: 1px solid var(--md-line); }
.md-trust li:first-child { border-inline-start: 0; }
.md-trust b { font-family: var(--md-display); font-size: clamp(1.7rem, 1.3rem + 1vw, 2.3rem); color: var(--md-accent-ink); line-height: 1.2; font-weight: 700; }
.md-trust span { color: var(--md-muted); font-size: .95rem; }

/* ── المناسبات ── */
.md-occ { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(230px, 21vw); grid-auto-flow: dense; gap: 14px; }
.md-occ-card { position: relative; overflow: hidden; border-radius: var(--md-r); color: #F7F2EA; text-decoration: none; display: flex; align-items: flex-end; background: var(--md-dark-2); min-height: 250px; isolation: isolate; }
.md-occ-card picture, .md-occ-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s var(--md-ease); }
.md-occ-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(23, 19, 16, .88), rgba(23, 19, 16, .05) 62%); }
.md-occ-card:hover img { transform: scale(1.03); }
.md-occ-card div { padding: 22px 24px; }
.md-occ-card h3 { font-family: var(--md-display); font-size: clamp(1.35rem, 1.1rem + .7vw, 1.8rem); margin: 0 0 4px; line-height: 1.35; }
.md-occ-card p { margin: 0; font-size: .95rem; color: #E1D7CA; max-width: 40ch; }
.md-occ-card em { display: inline-block; margin-top: 10px; font-style: normal; font-size: .85rem; color: #D8BC7C; }
.md-occ-card.is-big { grid-column: span 2; grid-row: span 2; }
.md-occ-card.is-wide { grid-column: 1 / -1; grid-row: span 1; }
.md-occ-card.is-wide div { max-width: 640px; }

/* ── كروت المنيو ── */
.md-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 22px; }
.md-card { position: relative; background: var(--md-paper); border: 1px solid var(--md-line); border-radius: var(--md-r); display: flex; flex-direction: column; text-decoration: none; color: inherit;
    transition: border-color .3s var(--md-ease), box-shadow .3s var(--md-ease); }
.md-card:hover { border-color: rgba(165, 128, 44, .55); box-shadow: 0 18px 40px -26px rgba(23, 19, 16, .45); }
.md-card-media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--md-r) var(--md-r) 0 0; background: #EDE5D8; }
.md-card-media img { width: 100%; height: 100%; object-fit: cover; }
.md-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.md-card small { color: var(--md-accent-ink); font-weight: 600; font-size: .82rem; }
.md-card h3 { font-family: var(--md-display); font-size: 1.45rem; line-height: 1.35; margin: 0; }
.md-card p { margin: 0; color: var(--md-muted); font-size: .95rem; }
.md-card-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px dashed var(--md-line); font-size: .92rem; }
.md-price { color: var(--md-ink); font-weight: 600; }
.md-price em { font-style: normal; color: var(--md-muted); font-weight: 400; }
.md-card--print { border: 0; box-shadow: inset 0 0 0 1px var(--md-line), inset 0 0 0 6px var(--md-paper), inset 0 0 0 7px rgba(165, 128, 44, .45); }
.md-card--print .md-card-body { text-align: center; align-items: center; padding: 24px 28px 26px; }
.md-card--print .md-card-media { border-radius: var(--md-r) var(--md-r) 0 0; margin: 8px 8px 0; }
.md-cmp-pick { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 252, 247, .94); border-radius: 999px; padding: 6px 12px;
    font-size: .82rem; font-weight: 600; cursor: pointer; z-index: 2; }
.md-cmp-pick input { accent-color: var(--md-accent); width: 16px; height: 16px; margin: 0; }

/* ── القصة (من مطبخنا لترابيزتك) ── */
.md-story { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.md-story-stage { position: sticky; top: calc(var(--md-hdr) + 24px); aspect-ratio: 4 / 5; border-radius: var(--md-r); overflow: hidden; background: var(--md-dark-2); }
.md-story-stage > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--md-ease); }
.md-story-stage > *.is-on { opacity: 1; }
.md-story-stage img, .md-story-stage video, .md-story-stage picture img { width: 100%; height: 100%; object-fit: cover; }
.md-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.md-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding-block: 24px; opacity: .38; transition: opacity .4s var(--md-ease); counter-increment: st; }
.md-step.is-on { opacity: 1; }
.md-step::before { content: "0" counter(st); font-family: var(--md-latin); font-size: 1.1rem; color: #D8BC7C; letter-spacing: .1em; margin-bottom: 8px; }
.md-step h3 { font-family: var(--md-display); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); margin: 0 0 8px; line-height: 1.3; }
.md-step p { margin: 0; color: var(--md-on-dark-2); max-width: 40ch; font-size: 1.05rem; }
.md-step figure { display: none; margin: 0 0 18px; border-radius: var(--md-r); overflow: hidden; aspect-ratio: 16 / 10; }
.md-step figure img, .md-step figure video { width: 100%; height: 100%; object-fit: cover; }

/* ── الحاسبة المصغرة ── */
.md-est { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.md-est-card { background: var(--md-paper); color: var(--md-ink); border-radius: var(--md-r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.md-est-card label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.md-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.md-chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--md-line); background: transparent; font: 500 .92rem var(--md-body); color: var(--md-ink); cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.md-chip[aria-pressed="true"], .md-chip.is-on { background: var(--md-dark); color: var(--md-on-dark); border-color: var(--md-dark); }
.md-range { display: grid; grid-template-columns: 1fr 96px; gap: 14px; align-items: center; margin-bottom: 18px; }
.md-range input[type=range] { accent-color: var(--md-accent); width: 100%; height: 32px; }
.md-input, .md-select, .md-textarea { width: 100%; min-height: 50px; padding: 10px 14px; border-radius: var(--md-r); border: 1px solid rgba(35, 30, 26, .2); background: #fff; font: 400 1rem var(--md-body); color: var(--md-ink); }
.md-textarea { min-height: 110px; resize: vertical; }
.md-input:focus, .md-select:focus, .md-textarea:focus { outline: 2px solid var(--md-accent-soft); border-color: var(--md-accent); }
.md-est-out { border-top: 1px solid var(--md-line); margin-top: 6px; padding-top: 18px; display: grid; gap: 4px; min-height: 104px; }
.md-est-total { font-family: var(--md-display); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); line-height: 1.2; color: var(--md-ink); }
.md-est-total small { font-family: var(--md-body); font-size: .95rem; color: var(--md-muted); font-weight: 400; }
.md-est-note { font-size: .85rem; color: var(--md-muted); }
.md-est-out[aria-busy="true"] .md-est-total { opacity: .4; }

/* ── الشيف ── */
.md-chef { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.md-chef-ph { position: relative; aspect-ratio: 4 / 5; border-radius: var(--md-r); overflow: hidden; }
.md-chef-ph img { width: 100%; height: 100%; object-fit: cover; }
.md-chef-ph::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(247, 242, 234, .6); pointer-events: none; }
.md-quote { font-family: var(--md-display); font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); line-height: 1.55; margin: 0 0 22px; position: relative; }
.md-quote::before { content: "”"; font-family: var(--md-latin); font-size: 5rem; line-height: 0; color: var(--md-accent); position: relative; top: .42em; margin-inline-end: 6px; }
.md-sign { font-family: var(--md-script); font-size: 1.7rem; color: var(--md-accent-ink); margin: 0; }

/* ── المعرض ── */
.md-gal { columns: 3 260px; column-gap: 14px; }
.md-gal figure { break-inside: avoid; margin: 0 0 14px; border-radius: var(--md-r); overflow: hidden; position: relative; background: #EDE5D8; }
.md-gal img { width: 100%; height: auto; }
.md-gal figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 26px 14px 10px; font-size: .82rem; color: #F7F2EA; background: linear-gradient(0deg, rgba(23, 19, 16, .75), transparent); }

/* ── آراء (بس اللي الشركة كتبتها) ── */
.md-voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.md-voice { background: var(--md-paper); border: 1px solid var(--md-line); border-radius: var(--md-r); padding: 26px; margin: 0; }
.md-voice p { font-family: var(--md-display); font-size: 1.2rem; line-height: 1.7; margin: 0 0 14px; }
.md-voice footer { color: var(--md-muted); font-size: .9rem; }

/* ── التذوق ── */
.md-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.md-split-media { aspect-ratio: 4 / 3; border-radius: var(--md-r); overflow: hidden; background: #EDE5D8; }
.md-split-media img { width: 100%; height: 100%; object-fit: cover; }
.md-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.md-list li { display: flex; gap: 12px; align-items: baseline; }
.md-list li::before { content: ""; flex: 0 0 7px; height: 7px; transform: translateY(-2px) rotate(45deg); border: 1px solid var(--md-accent); }

/* ── الأسئلة ── */
.md-faq { border-top: 1px solid var(--md-line); }
.md-faq details { border-bottom: 1px solid var(--md-line); }
.md-faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; font-family: var(--md-display); font-size: 1.25rem; font-weight: 700; }
.md-faq summary::-webkit-details-marker { display: none; }
.md-faq summary::after { content: "+"; font-family: var(--md-latin); font-size: 1.6rem; line-height: 1; color: var(--md-accent); transition: transform .3s var(--md-ease); }
.md-faq details[open] summary::after { transform: rotate(45deg); }
.md-faq details p { margin: 0 0 20px; color: var(--md-muted); max-width: 70ch; }

/* ── الختام ── */
.md-close { text-align: center; background-color: var(--md-dark); background-size: cover; background-position: center; color: var(--md-on-dark); }
.md-close .md-h2 { max-width: 18ch; margin-inline: auto; }
.md-close .md-btns { justify-content: center; }

/* ── رأس الصفحات الداخلية ── */
.md-phead { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 56px); background: var(--md-bg); border-bottom: 1px solid var(--md-line); }
.md-phead--img { position: relative; color: #F7F2EA; background: var(--md-dark); border: 0; isolation: isolate; min-height: 420px; display: flex; align-items: flex-end; }
.md-phead--img > picture, .md-phead--img > img { position: absolute; inset: 0; z-index: -2; }
.md-phead--img img { width: 100%; height: 100%; object-fit: cover; }
.md-phead--img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(23, 19, 16, .9), rgba(23, 19, 16, .25) 70%, rgba(23, 19, 16, .5)); }
.md-phead--img .md-lead { color: #E1D7CA; }
.md-crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--md-muted); margin: 0 0 12px; padding: 0; list-style: none; }
.md-phead--img .md-crumbs { color: #CFC5B8; }
.md-crumbs a { text-decoration: none; }
.md-crumbs li + li::before { content: "/"; margin-inline-end: 8px; opacity: .5; }

/* ── المنيوهات: الفلاتر والمقارنة ── */
.md-filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; align-items: end; padding: 18px; background: var(--md-paper); border: 1px solid var(--md-line); border-radius: var(--md-r-lg); margin-bottom: 30px; }
.md-filters label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; }
.md-filters .md-chips { margin: 0; }
.md-group { margin-bottom: 52px; }
.md-group > h2 { font-family: var(--md-display); font-size: 1.8rem; margin: 0 0 4px; }
.md-group > p { margin: 0 0 20px; color: var(--md-muted); }
.md-empty { padding: 40px; text-align: center; border: 1px dashed var(--md-line); border-radius: var(--md-r-lg); color: var(--md-muted); }
.md-cmp { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; background: var(--md-dark); color: var(--md-on-dark); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .35s var(--md-ease); }
.md-cmp.is-on { transform: none; }
.md-cmp .md-wrap { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; }
.md-cmp-list { display: flex; gap: 8px; flex-wrap: wrap; font-size: .9rem; }
.md-cmp-list span { background: rgba(247, 242, 234, .1); border-radius: 999px; padding: 6px 12px; }
.md-cmpd { position: fixed; inset: 0; z-index: 80; background: rgba(23, 19, 16, .6); display: grid; place-items: center; padding: 16px; }
.md-cmpd[hidden] { display: none; }
.md-cmpd-in { background: var(--md-paper); border-radius: var(--md-r-lg); width: min(980px, 100%); max-height: 88vh; overflow: auto; padding: 24px; }
.md-cmpd table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.md-cmpd th, .md-cmpd td { text-align: start; padding: 12px 10px; border-bottom: 1px solid var(--md-line); vertical-align: top; }
.md-cmpd thead th { font-family: var(--md-display); font-size: 1.2rem; }

/* ── صفحة المنيو: كارت مطبوع + كارت الحجز ── */
.md-menu { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.md-print { background: var(--md-paper); padding: clamp(28px, 5vw, 64px) clamp(22px, 5vw, 72px); position: relative; text-align: center;
    box-shadow: inset 0 0 0 1px var(--md-line), inset 0 0 0 10px var(--md-paper), inset 0 0 0 11px rgba(165, 128, 44, .5), 0 30px 60px -40px rgba(23, 19, 16, .4); }
.md-print-sec { margin: 0 auto 34px; max-width: 520px; }
.md-print-sec h2 { font-family: var(--md-display); font-size: 1.5rem; margin: 0 0 2px; }
.md-print-sec .md-pick { display: block; font-size: .85rem; color: var(--md-accent-ink); margin-bottom: 10px; }
.md-print-sec ul { list-style: none; margin: 0; padding: 0; }
.md-print-sec li { padding: 7px 0; border-bottom: 1px dotted rgba(35, 30, 26, .14); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
.md-print-sec li:last-child { border-bottom: 0; }
.md-print-sec li small { color: var(--md-muted); }
.md-al { display: inline-flex; align-items: center; gap: 3px; font-size: .74rem; color: var(--md-olive); background: rgba(79, 93, 58, .09); border-radius: 999px; padding: 1px 8px; }
.md-al svg { flex: none; }
.md-al-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.md-book { position: sticky; top: calc(var(--md-hdr) + 18px); background: var(--md-dark); color: var(--md-on-dark); border-radius: var(--md-r-lg); padding: 26px; display: grid; gap: 14px; }
.md-book .md-input { background: rgba(247, 242, 234, .08); border-color: var(--md-line-dark); color: var(--md-on-dark); }
.md-book .md-est-total { color: var(--md-on-dark); }
.md-book .md-est-out { border-color: var(--md-line-dark); }
.md-book .md-est-note, .md-book .md-est-total small { color: var(--md-on-dark-2); }
.md-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; color: var(--md-on-dark-2); }
.md-facts b { color: var(--md-on-dark); font-weight: 600; }

/* ── المخطط (4 خطوات) ── */
.md-plan { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.md-progress { display: flex; gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; counter-reset: pg; }
.md-progress li { flex: 1; counter-increment: pg; font-size: .82rem; color: var(--md-muted); display: grid; gap: 8px; }
.md-progress li::before { content: ""; height: 3px; border-radius: 3px; background: var(--md-line); }
.md-progress li.is-on, .md-progress li.is-done { color: var(--md-ink); font-weight: 600; }
.md-progress li.is-on::before, .md-progress li.is-done::before { background: var(--md-accent); }
.md-stepp { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.md-stepp legend { font-family: var(--md-display); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); font-weight: 700; margin-bottom: 18px; padding: 0; }
.md-js .md-stepp:not(.is-on) { display: none; }
.md-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.md-opt { position: relative; display: grid; gap: 4px; padding: 18px; border: 1px solid var(--md-line); border-radius: var(--md-r); background: var(--md-paper); cursor: pointer; transition: border-color .3s, box-shadow .3s; }
.md-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.md-opt b { font-family: var(--md-display); font-size: 1.15rem; }
.md-opt span { font-size: .88rem; color: var(--md-muted); }
.md-opt:has(input:checked) { border-color: var(--md-accent); box-shadow: inset 0 0 0 1px var(--md-accent); background: #FFF9EE; }
.md-opt:has(input:focus-visible) { outline: 2px solid var(--md-accent); outline-offset: 2px; }
.md-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.md-field { display: grid; gap: 6px; }
.md-field > span { font-weight: 600; font-size: .92rem; }
.md-field--full { grid-column: 1 / -1; }
.md-hint { font-size: .85rem; color: var(--md-muted); margin: 0; }
.md-hint.is-busy { color: #8a5a00; }
.md-hint.is-full { color: #a12c1c; }
.md-plan-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.md-aside { position: sticky; top: calc(var(--md-hdr) + 18px); background: var(--md-paper); border: 1px solid var(--md-line); border-radius: var(--md-r-lg); padding: 22px; display: grid; gap: 12px; }
.md-aside dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .92rem; }
.md-aside dt { color: var(--md-muted); }
.md-aside dd { margin: 0; font-weight: 600; }
.md-ok { background: #F1F4EC; border: 1px solid rgba(79, 93, 58, .3); border-radius: var(--md-r-lg); padding: 26px; }
.md-err { background: #FBEDEA; color: #8E2617; border-radius: var(--md-r); padding: 12px 16px; margin-bottom: 18px; }
.md-timeline { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; }
.md-timeline li { position: relative; padding: 0 30px 18px 0; }
[dir="ltr"] .md-timeline li { padding: 0 0 18px 30px; }
.md-timeline li::before { content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--md-accent); background: var(--md-paper); }
.md-timeline li::after { content: ""; position: absolute; inset-inline-start: 5px; top: 22px; bottom: 0; width: 1px; background: var(--md-line); }
.md-timeline li:last-child::after { display: none; }
.md-timeline li.is-done::before { background: var(--md-accent); }
.md-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.md-slots label { position: relative; }
.md-slots input { position: absolute; opacity: 0; }
.md-slots span { display: inline-flex; min-height: 42px; align-items: center; padding: 0 14px; border: 1px solid var(--md-line); border-radius: 999px; cursor: pointer; font-size: .92rem; }
.md-slots input:checked + span { background: var(--md-dark); color: var(--md-on-dark); border-color: var(--md-dark); }
.md-slots input:focus-visible + span { outline: 2px solid var(--md-accent); outline-offset: 2px; }
.md-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── الحركة: ظهور هادي ── */
.md-rv.md-pre { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--md-ease), transform .5s var(--md-ease); }
.md-rv.md-pre.is-in { opacity: 1; transform: none; }
@keyframes mdSettle { from { transform: scale(1.05); } to { transform: none; } }

/* ── الموبايل والتابلت ── */
@media (max-width: 1024px) {
    .md-menu, .md-plan { grid-template-columns: 1fr; }
    .md-book, .md-aside { position: static; }
    .md-filters { grid-template-columns: 1fr 1fr; }
    .md-filters > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    .md-story, .md-est, .md-chef, .md-split { grid-template-columns: 1fr; }
    .md-story-stage { display: none; }
    .md-step { min-height: 0; opacity: 1; padding-block: 18px 30px; }
    .md-step figure { display: block; }
    .md-occ { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(210px, 54vw); gap: 10px; }
    .md-occ-card.is-big { grid-column: 1 / -1; grid-row: span 1; }
    .md-occ-card div { padding: 16px; }
    .md-occ-card p { display: none; }
    .md-trust li { padding: 20px 16px; }
    .md-trust ul { grid-template-columns: 1fr 1fr; }
    .md-trust li:nth-child(odd) { border-inline-start: 0; }
    .md-trust li:nth-child(n+3) { border-top: 1px solid var(--md-line); }
    .md-chef-ph { max-width: 420px; }
}
@media (max-width: 560px) {
    .md { font-size: 16.5px; }
    .md-fields { grid-template-columns: 1fr; }
    .md-filters { grid-template-columns: 1fr; padding: 14px; }
    .md-occ { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .md-occ-card.is-big, .md-occ-card.is-wide { grid-column: auto; }
    .md-hero-in { padding-bottom: 96px; }
    .md-btns .md-btn { flex: 1 1 auto; }
    .md-print { box-shadow: inset 0 0 0 1px var(--md-line), inset 0 0 0 6px var(--md-paper), inset 0 0 0 7px rgba(165, 128, 44, .5); }
    .md-cmpd-in { padding: 14px; }
    .md-gal { columns: 2 140px; column-gap: 8px; }
    .md-gal figure { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .md *, .md *::before, .md *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .md-rv.md-pre { opacity: 1; transform: none; }
}
@media print {
    .md-hdr, .md-ftr, .md-mbar, .md-book, .md-cmp, #rqChat, .sk-wa-float { display: none !important; }
    .md-menu { grid-template-columns: 1fr; }
    .md-print { box-shadow: none; }
}
.md-phead--slim { padding-block: 22px 0; border: 0; background: transparent; }
.md-print figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; height: auto; }
.md-cmp:not(.is-on) { visibility: hidden; }
.md [hidden], .md[hidden] { display: none !important; }
.md-stepp legend:focus { outline: none; }
