@font-face {
  font-family: Montserrat;
  src: url('/fonts/montserrat-v31-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('/fonts/IBMPlexSansArabic-Regular.woff2') format('woff2');
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('/fonts/IBMPlexSansArabic-SemiBold.woff2') format('woff2');
  font-weight: 600 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #192e24;
  --muted: #53604e;
  --background: #fcf7e8;
  --paper: #fffdf7;
  --cream: #fff2df;
  --line: #e5d9c6;
  --control-line: #847761;
  --brand: #0f6141;
  --brand-deep: #0e4230;
  --brand-dark: #0a3024;
  --brand-light: #e4efe5;
  --brand-tint: #f0f5e9;
  --brand-line: #b8cdbb;
  --accent: #fd7f23;
  --accent-deep: #93451d;
  --accent-tint: #fff0dc;
  --danger: #852d21;
  --shadow: 0 14px 38px #18392b12;
  --surface: linear-gradient(156deg, #fffefa 0%, var(--paper) 67%, #fbf5e6 100%);
  --surface-shine: inset 0 1px 0 #ffffffed;
  --page-glow: radial-gradient(ellipse at 16% 0%, #fff 0%, #fff0 60%), radial-gradient(ellipse at 95% 14%, #fde4be9e, transparent 65%), radial-gradient(ellipse at 12% 72%, #e4efdd86, transparent 60%);
  --max: 1280px;
  --gutter: clamp(16px, 3.3vw, 48px);
  --font: Montserrat, Arial, sans-serif;
  --display: Georgia, 'Times New Roman', serif;
  background: var(--background);
  color: var(--ink);
  font: 400 100% / 1.55 var(--font);
}

:root[lang='ar'] {
  --font: 'IBM Plex Sans Arabic', Arial, sans-serif;
  --display: 'IBM Plex Sans Arabic', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 84px; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background-color: var(--background); background-image: var(--page-glow); background-size: 100% 820px; background-repeat: no-repeat; }
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 4px; }
main:focus { outline: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); line-height: 1.05; letter-spacing: -.045em; }
[lang='ar'] h1, [lang='ar'] h2 { letter-spacing: 0; line-height: 1.25; }
h1 { font-size: clamp(2.25rem, 5.5vw, 5rem); }
h2 { font-size: clamp(1.85rem, 4vw, 3.45rem); }
h3 { font-size: 1.12rem; line-height: 1.35; }
p { color: var(--muted); }
.wrap { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: clamp(38px, 5.5vw, 80px); }
.icon { flex: 0 0 auto; vertical-align: middle; }
[dir='rtl'] .icon-arrow { transform: scaleX(-1); }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; inset: 14px auto auto 14px; z-index: 10; background: white; padding: 10px 16px; border-radius: 8px; }

.button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; text-align: center; text-decoration: none; color: #fff; background: linear-gradient(172deg, #ffffff12, transparent 55%), linear-gradient(114deg, var(--brand), var(--brand-deep)); border: 1px solid var(--brand-deep); border-radius: 12px; padding: .75rem 1.16rem; font-size: .92rem; font-weight: 700; line-height: 1.24; min-height: 45px; box-shadow: inset 0 1px 0 #fff4df3d, 0 3px 7px #0a302423; transition: box-shadow .18s; }
.button:hover { background: linear-gradient(160deg, #1a6f4e, var(--brand-deep) 72%); box-shadow: inset 0 1px 0 #fff4df33, 0 5px 14px #0a302432; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.button-outline { color: var(--brand-deep); border-color: #779382; background: var(--surface); box-shadow: var(--surface-shine); }
.button-outline:hover { color: var(--brand-dark); background: var(--brand-tint); box-shadow: none; }
.button-danger { background: linear-gradient(145deg, #a33628, #7a231c); border-color: #7a231c; }
.button-danger:hover { background: linear-gradient(145deg, #8e2a20, #671c16); }
.button-small { font-size: .86rem; padding: .56rem .85rem; min-height: 39px; }
.button-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.button-row form { margin: 0; }
.text-link { color: var(--brand-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #6d947b; }
.text-link:hover { text-decoration-color: currentColor; }
.eyebrow { color: var(--accent-deep); font-size: .81rem; font-weight: 750; letter-spacing: .105em; text-transform: uppercase; }
[lang='ar'] .eyebrow { letter-spacing: 0; font-size: .94rem; }
.eyebrow + h1, .eyebrow + h2 { margin-top: .45rem; }
.fine-print { color: var(--muted); font-size: .85rem; }
.literal-copy { white-space: pre-line; overflow-wrap: anywhere; }

.topbar { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: linear-gradient(110deg, #fffefa 8%, #fff7e6 100%); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 9px; color: var(--brand-deep); text-decoration: none; }
.brand-mark { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: var(--cream); box-shadow: 0 0 0 1px #0e423018; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.wordmark { font-size: 1.64rem; font-weight: 850; line-height: 1; letter-spacing: -.08em; }
[lang='ar'] .wordmark { font-size: 1.9rem; letter-spacing: 0; }
.desktop-nav, .header-actions { display: flex; align-items: center; gap: clamp(12px, 2vw, 29px); }
.desktop-nav a, .language { text-decoration: none; font-size: .89rem; font-weight: 700; }
.desktop-nav a:hover, .desktop-nav a[aria-current='page'] { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 6px; }
.header-actions .text-link { font-size: .86rem; text-decoration: none; }
.language { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--brand-deep); }
.language[lang='ar'] { font-family: 'IBM Plex Sans Arabic', Arial, sans-serif; }
.language[lang='en'] { font-family: Montserrat, Arial, sans-serif; }
.language:hover, .header-actions .text-link:hover { text-decoration: underline; }
.mobile-menu { display: none; position: relative; }
.mobile-menu > summary { list-style: none; }
.mobile-menu > summary::-webkit-details-marker { display: none; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--brand-deep); }
.mobile-menu nav { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); width: min(262px, calc(100vw - 34px)); padding: 7px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 24px #0a30242e; }
.mobile-menu nav a, .mobile-menu nav button { display: block; padding: 8px 11px; min-height: 40px; border: 0; background: transparent; color: var(--ink); text-decoration: none; text-align: start; font-weight: 650; width: 100%; }
.mobile-menu nav a:hover, .mobile-menu nav a[aria-current='page'], .mobile-menu nav button:hover { border-radius: 7px; background: var(--cream); }

.hero { margin-top: clamp(16px, 2.3vw, 34px); }
.hero-inner { display: grid; grid-template-columns: 1fr .99fr; min-height: clamp(440px, 38vw, 560px); position: relative; isolation: isolate; align-items: stretch; overflow: hidden; border-radius: clamp(18px, 3vw, 40px); background: radial-gradient(ellipse at 16% 0%, #24734d, transparent 65%), linear-gradient(114deg, var(--brand-deep), var(--brand-dark) 82%); box-shadow: 0 20px 50px #0c3b2c29; }
[dir='rtl'] .hero-inner { background: radial-gradient(ellipse at 84% 0%, #24734d, transparent 65%), linear-gradient(246deg, var(--brand-deep), var(--brand-dark) 82%); }
.hero-copy { align-self: center; position: relative; z-index: 1; min-width: 0; overflow-wrap: anywhere; padding: clamp(30px, 4.5vw, 64px); padding-inline-end: 0; }
.hero-eyebrow { color: #ffcfab; display: flex; gap: 10px; align-items: center; }
.hero-eyebrow span { width: 21px; height: 2px; background: var(--accent); }
.hero h1 { color: #fff6e7; font-size: clamp(3.25rem, 5.35vw, 5.9rem); white-space: pre-line; text-wrap: balance; line-height: .98; max-width: 690px; margin-top: .75rem; }
[lang='ar'] .hero h1 { line-height: 1.19; }
.hero-intro { font-size: clamp(.98rem, 1.35vw, 1.16rem); margin-top: 1.1rem; color: #ffebd8; max-width: 46ch; }
.hero-picture { position: relative; min-width: 0; min-height: 100%; }
.hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: 53% 50%; position: absolute; inset: 0; }
.hero-picture::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, #163e2c 0%, #103a2b68 13%, transparent 37%); }
[dir='rtl'] .hero-picture::after { background: linear-gradient(to left, #163e2c 0%, #103a2b68 13%, transparent 37%); }
.hero-spice { position: absolute; inset-block-start: clamp(12px, 2.5vw, 30px); inset-inline-end: clamp(12px, 2.5vw, 30px); z-index: 3; inline-size: clamp(66px, 8vw, 108px); aspect-ratio: 1; padding: 9px; border: 1px solid #fff8e6; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fffef4, #ffe8c7); box-shadow: 0 6px 25px #19251d45; pointer-events: none; }
.hero-spice img { width: 100%; height: 100%; object-fit: contain; }
.hero-search { display: flex; align-items: center; gap: 7px; position: relative; margin-top: 1.75rem; margin-inline-end: 6px; padding: 6px; padding-inline-start: 13px; max-width: 490px; border: 1px solid #fff2e8; border-radius: 15px; background: #fff9f0; color: var(--brand-deep); box-shadow: 0 7px 25px #0a302435; }
.hero-search select { color: var(--ink); font-weight: 650; min-width: 0; width: 100%; text-overflow: ellipsis; border: 0; background-color: transparent; padding: 8px 5px; }
.hero-search .button { white-space: nowrap; }
.benefits { margin-top: 18px; display: flex; justify-content: center; gap: clamp(12px, 5vw, 70px); padding: 17px 0; border-bottom: 1px solid var(--line); }
.benefits span { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-deep); font-weight: 650; font-size: .9rem; }
.benefits .icon { color: var(--brand); }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: clamp(18px, 3.4vw, 31px); }
.section-heading div > p:not(.eyebrow) { margin-top: 7px; }
.section-heading > a { flex: 0 0 auto; }
.home-market { padding-top: clamp(38px, 5vw, 72px); }
.home-market .section-heading > div, .home-steps .section-heading > div { min-width: 0; overflow-wrap: anywhere; }
.home-section-banner { margin-bottom: clamp(17px, 2.8vw, 27px); }
.home-section-banner .article-hero { margin-bottom: 0; }
.home-section-banner .gallery-display.gallery-display--blog .gallery-display-viewport { inline-size: 100%; block-size: clamp(170px, 27vw, 350px); aspect-ratio: auto; }
.home-no-meals { padding-block: 12px; }
.category-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(17px, 2.8vw, 27px); }
.category-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; min-height: 44px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; text-decoration: none; color: var(--brand-deep); font-size: .88rem; font-weight: 650; }
.category-chip:hover, .category-all { background: var(--brand-tint); border-color: var(--brand-line); color: var(--brand-deep); }
.meal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.65vw, 24px); }
.meal-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--surface-shine), var(--shadow); }
.meal-photo { display: block; position: relative; overflow: hidden; aspect-ratio: 1.35; background: var(--cream); }
.meal-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .22s; }
.meal-card:hover .meal-photo img { transform: scale(1.04); }
.photo-tag { position: absolute; inset-inline-start: 11px; top: 11px; color: var(--brand-deep); background: #fffaf0f5; border: 1px solid var(--line); padding: 4px 8px; border-radius: 7px; font-size: .73rem; font-weight: 700; }
.meal-copy { display: flex; flex: 1; flex-direction: column; gap: 5px; padding: clamp(13px, 1.6vw, 21px); }
.meal-category { color: var(--brand-deep); font-size: .77rem; font-weight: 700; }
.meal-copy h3 a { text-decoration: none; overflow-wrap: anywhere; }
.meal-copy h3 a:hover { color: var(--brand-deep); text-decoration: underline; }
.meal-byline { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; row-gap: 1px; color: var(--muted); font-size: .84rem; }
.meal-byline .icon { color: var(--brand-deep); }
.meal-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 12px; }
.meal-bottom > strong { color: var(--ink); font-size: 1rem; }
.meal-bottom .text-link { font-size: .82rem; }
.home-steps { background: radial-gradient(ellipse at 28% 0%, #fffaf1, transparent 68%), linear-gradient(120deg, var(--cream), var(--brand-tint) 65%, #f9eed8); border-block: 1px solid var(--line); }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2.5vw, 30px); }
.step-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 2.4vw, 30px); box-shadow: var(--surface-shine); }
.step-icon, .metric-icon { display: inline-grid; place-items: center; flex: 0 0 auto; width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(145deg, var(--brand-tint), var(--brand-light)); color: var(--brand-deep); box-shadow: inset 0 1px 0 #ffffffba; }
.step-grid h3 { margin-top: 14px; }
.step-grid p { margin-top: 7px; }
.partner-invite { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 2.8vw, 32px); }
.partner-art { inline-size: clamp(78px, 11vw, 135px); block-size: auto; aspect-ratio: 1; border-radius: clamp(14px, 2vw, 24px); box-shadow: var(--shadow); }
.partner-invite h2 { font-size: clamp(1.85rem, 3.7vw, 3rem); }
.partner-invite p { margin-top: 8px; }

.page-heading { margin-bottom: clamp(20px, 3.4vw, 35px); }
.page-heading p:not(.eyebrow) { font-size: clamp(1rem, 1.4vw, 1.14rem); margin-top: 13px; max-width: 65ch; }
.filters { display: grid; align-items: end; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--surface-shine); }
label > span:first-child, legend { display: block; color: var(--ink); font-size: .91rem; font-weight: 700; margin-bottom: 4px; }
input:not([type='hidden'], [type='radio'], [type='checkbox']), textarea, select { display: block; padding: .66rem .73rem; min-height: 45px; width: 100%; border: 1px solid var(--control-line); border-radius: 9px; background-color: #fffefa; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #665c4f; }
select { cursor: pointer; }
textarea { resize: vertical; }
input[type='radio'], input[type='checkbox'] { accent-color: var(--brand); }
label small { display: block; color: var(--muted); margin-top: 3px; font-size: .84rem; }
.form-stack { display: grid; gap: 13px; }
.form-stack > .button { justify-self: start; }
.form-grid, .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.results-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .9rem; padding-block: 16px; }
.empty { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; min-height: 230px; padding: 24px; text-align: center; border: 1px dashed var(--brand-line); border-radius: 16px; background: var(--paper); }
.empty > .icon { color: var(--brand-deep); }
.empty-small { min-height: 150px; }
.empty h2 { font-size: clamp(1.6rem, 3.2vw, 2rem); }

.breadcrumbs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 17px; color: var(--muted); font-size: .85rem; }
.breadcrumbs a { color: var(--brand-deep); font-weight: 700; text-underline-offset: 3px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); align-items: start; gap: clamp(20px, 4vw, 55px); }
.detail-story { grid-column: 1; grid-row: 1; }
.meal-order { grid-column: 2; grid-row: 1; }
.detail-photo, .article-hero { position: relative; overflow: hidden; border-radius: 23px; background: var(--cream); }
.detail-photo img { width: 100%; height: auto; aspect-ratio: 1.4; object-fit: cover; }
.detail-info { padding-top: 24px; }
.detail-info > p { margin-top: 9px; }
.panel { min-width: 0; border-radius: 16px; padding: clamp(14px, 2.3vw, 28px); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--surface-shine), var(--shadow); }
.meal-order h1 { font-size: clamp(2rem, 4vw, 3.6rem); overflow-wrap: anywhere; margin-bottom: 14px; }
.meal-order .meal-byline { margin-top: 8px; }
.base-price { display: flex; align-items: baseline; gap: 8px; margin: 17px 0; }
.base-price strong { color: var(--brand-deep); font-size: clamp(1.35rem, 2.5vw, 1.9rem); }
.base-price span { color: var(--muted); font-size: .85rem; }
.meal-order .button { width: 100%; }
.meal-order .fine-print { margin-top: 8px; }
.allergen-note { display: flex; gap: 10px; margin-top: 22px; padding: 15px; border: 1px solid #ecd2b9; border-radius: 11px; background: #fff3e6; }
.allergen-note .icon { color: var(--accent-deep); margin-top: 2px; }
.allergen-note p { margin-top: 3px; }
.checkout-total { display: grid; gap: 5px; padding: 10px 12px; background: var(--cream); border-radius: 8px; }
.checkout-total div { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .88rem; }
.checkout-total div:last-child { color: var(--brand-deep); }

.flashes { margin-top: 12px; }
.notice { display: block; margin-bottom: 12px; padding: 10px 13px; background: #fff1dc; border: 1px solid #ebc894; border-radius: 10px; color: #643615; font-size: .93rem; }
.notice-success { background: #eef7ed; border-color: #cbdcc4; color: #2f562d; }
.notice-error { background: #ffefeb; border-color: #e4b5ab; color: #77241f; }
.impersonation-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }

.auth-page { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1fr); gap: clamp(24px, 6vw, 90px); align-items: start; }
.auth-scene { position: sticky; top: 115px; overflow: hidden; min-height: 530px; display: flex; align-items: end; isolation: isolate; color: #fff8ec; padding: clamp(22px, 4vw, 54px); border-radius: 25px; background: var(--brand-deep); box-shadow: 0 20px 46px #0a302431; }
.auth-scene img, .auth-scene::before { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.auth-scene img { object-fit: cover; z-index: -2; }
.auth-scene::before { content: ''; background: radial-gradient(ellipse at 24% 0%, #ffe2ae37, transparent 48%), linear-gradient(transparent 25%, #0a3024ed); }
.auth-scene span { color: #ffcdab; }
.auth-scene p { color: inherit; font-family: var(--display); font-weight: 700; font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1.08; margin-top: 12px; }
.auth-form-wrap { max-width: 580px; min-width: 0; width: 100%; align-self: center; padding: clamp(13px, 2.6vw, 36px); border: 1px solid var(--line); border-radius: clamp(17px, 2vw, 25px); background: radial-gradient(ellipse at 100% 0%, #e5f0e38f, transparent 54%), var(--surface); box-shadow: var(--surface-shine), 0 20px 55px #173a2a15; }
.auth-form-wrap h1 { font-size: clamp(2.25rem, 4.5vw, 4rem); }
.auth-form-wrap .form-stack > .button { justify-self: stretch; }
.role-choices { border: 0; margin: 0; min-width: 0; padding: 0; }
.role-choices legend { padding: 0; }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.role-choice { display: block; position: relative; cursor: pointer; }
.role-choice input { position: absolute; inset-inline-start: 9px; top: 10px; margin: 0; }
.role-card { display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 107px; padding: 8px 8px 8px 28px; padding-inline: 26px 8px; border: 1px solid var(--line); border-radius: 9px; overflow-wrap: anywhere; background: var(--surface); box-shadow: var(--surface-shine); }
.role-card .icon { color: var(--brand-deep); }
.role-card strong { font-size: .84rem; }
.role-card small { margin: 0; font-size: .76rem; }
.role-choice input:checked + .role-card { border-color: var(--brand); background: linear-gradient(150deg, #fffaf2 5%, var(--brand-light)); }
.role-choice input:focus-visible + .role-card { outline: 3px solid var(--accent-deep); outline-offset: 2px; }
.auth-switch { margin-top: 13px; }

.editorial-page { max-width: 900px; }
.editorial-page.journal { max-width: var(--max); }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.article-card { overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--surface-shine), var(--shadow); }
.article-card > img { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; background: var(--cream); }
.article-card > div { display: flex; flex-direction: column; align-items: start; gap: 8px; padding: clamp(15px, 2vw, 24px); }
.article-card h2 { font-size: clamp(1.45rem, 2.5vw, 2.1rem); overflow-wrap: anywhere; }
.article-card h2 a { text-decoration: none; }
.article-card h2 a:hover { color: var(--brand-deep); text-decoration: underline; }
.article-card time { color: var(--muted); font-size: .84rem; }
.article-hero { width: 100%; height: auto; aspect-ratio: 1.78; object-fit: cover; margin-bottom: 24px; }
.prose { font-size: clamp(1rem, 1.4vw, 1.13rem); line-height: 1.8; max-width: 75ch; }
.prose p { white-space: pre-line; overflow-wrap: anywhere; }
.prose p + p { margin-top: 1rem; }
.editorial-actions { margin-top: 24px; }
.error-page { display: grid; align-items: center; }

.workspace { background-color: var(--background); }
.dashboard-layout { display: grid; grid-template-columns: minmax(169px, 206px) minmax(0,1fr); gap: clamp(12px, 2.6vw, 35px); align-items: start; }
.dashboard-sidebar { position: sticky; top: 94px; display: grid; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; min-width: 0; background: var(--surface); box-shadow: var(--surface-shine), var(--shadow); }
.dashboard-account { display: flex; align-items: center; gap: 8px; padding: 3px 2px 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.dashboard-account .step-icon { height: 40px; width: 40px; border-radius: 11px; }
.dashboard-account strong, .dashboard-account small { display: block; line-height: 1.3; }
.dashboard-account small { color: var(--muted); font-size: .81rem; margin-top: 3px; }
.dashboard-sidebar nav { display: grid; gap: 3px; }
.dashboard-sidebar nav a { display: flex; align-items: center; gap: 7px; padding: 8px; border-radius: 8px; min-height: 40px; font-size: .87rem; font-weight: 650; text-decoration: none; }
.dashboard-sidebar nav a:hover, .dashboard-sidebar nav a.active { color: var(--brand-deep); background: var(--brand-light); }
.dash-content { min-width: 0; }
.cook-onboarding { display: flex; align-items: flex-start; gap: clamp(10px, 2vw, 18px); padding: clamp(12px, 2vw, 20px); }
.cook-onboarding .step-icon { width: 38px; height: 38px; border-radius: 10px; }
.cook-onboarding h2 { font-size: clamp(1.08rem, 2.5vw, 1.38rem); }
.cook-onboarding p { margin-block-start: 4px; }
.cook-onboarding .text-link { display: inline-block; }
.cook-order-group + .cook-order-group { margin-block-start: 22px; }
.cook-order-group > h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-end: 8px; }
.cook-order-group > p { margin-block-end: 10px; }
.cook-order-count { display: inline-grid; place-items: center; min-width: 1.85em; border-radius: 20px; padding-inline: .35em; background: var(--brand-light); color: var(--brand-deep); font-size: .78em; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.dashboard-heading h1 { font-size: clamp(2rem, 4.6vw, 4rem); }
.dashboard-heading p { overflow-wrap: anywhere; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.7vw, 16px); }
.metric { display: grid; gap: 5px; padding: clamp(10px, 1.6vw, 19px); background: radial-gradient(ellipse at 100% 0%, #e4efe5b3, transparent 65%), var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--surface-shine), var(--shadow); overflow-wrap: anywhere; }
.metric-icon { width: 35px; height: 35px; margin-bottom: 3px; border-radius: 9px; }
.metric > span:not(.metric-icon) { color: var(--muted); font-size: .87rem; font-weight: 600; }
.metric > strong { color: var(--ink); font-size: clamp(1.03rem, 2.2vw, 1.6rem); }
.dash-section { margin-top: clamp(26px, 5vw, 48px); }
.dash-section .section-heading { margin-bottom: 13px; }
.dash-section h2 { font-size: clamp(1.8rem, 3.7vw, 2.85rem); }
.report-filters { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; margin-bottom: 12px; }
.order-grid, .cook-meal-list { display: grid; gap: 12px; }
.order-card { background: var(--surface); padding: clamp(12px, 1.9vw, 23px); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--surface-shine), var(--shadow); }
.order-card-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.order-card h3 { margin-top: 4px; overflow-wrap: anywhere; }
.order-ref { font-size: .82rem; }
.order-description, .order-people { display: flex; gap: 5px 13px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .87rem; margin-top: 9px; }
.order-description span { display: inline-flex; align-items: center; gap: 4px; }
.order-description .icon { color: var(--brand-deep); }
.order-description strong, .order-people strong { color: var(--ink); }
.order-locations { display: grid; gap: 7px; border-radius: 9px; padding: 9px 11px; margin: 11px 0 0; background: var(--brand-tint); }
.order-locations dt { color: var(--ink); font-weight: 650; font-size: .84rem; }
.order-locations dd { color: var(--muted); margin: 0; font-size: .87rem; overflow-wrap: anywhere; }
.order-timeline { margin-top: 10px; font-size: .89rem; }
.order-timeline summary { color: var(--brand-deep); font-weight: 700; }
.order-timeline li { margin-bottom: 4px; }
.order-timeline time { display: inline-block; margin-inline-start: 3px; color: var(--muted); }
.order-actions { margin-top: 12px; }
.cook-meal { padding: 13px; }
.cook-meal header { display: flex; align-items: center; gap: 9px; }
.cook-meal header img { object-fit: cover; border-radius: 9px; width: 70px; height: 56px; }
.cook-meal header .status { margin-inline-start: auto; }
.cook-meal header p { font-size: .88rem; }
.cook-meal-editor, .cook-meal > form, .cook-meal-editor > .meal-editor { margin-top: 10px; }
.cook-meal-editor > summary { list-style: none; }
.cook-meal-editor > summary::-webkit-details-marker { display: none; }
.cook-meal-editor[open] > summary .icon { transform: rotate(180deg); }
.add-meal { margin-top: 14px; }
.add-meal > h3 { margin-bottom: 13px; }
.meal-editor { gap: 16px; }
.meal-editor-section { min-inline-size: 0; margin: 0; padding: clamp(10px, 1.7vw, 18px); border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--surface-shine); }
.meal-editor-section legend { font-size: 1rem; padding-inline: 6px; }
.meal-language { min-width: 0; align-content: start; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: clamp(8px, 1.2vw, 13px); }
.meal-language > p { color: var(--brand-deep); font-size: .9rem; font-weight: 750; }
.meal-pickup-address { grid-column: 1 / -1; }
.meal-category-field { display: block; max-width: 24rem; margin-top: 13px; }
.meal-review-note { margin: 9px 0 0; overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; width: max-content; max-width: 100%; padding: 4px 8px; color: #5d3526; background: #f7e8dc; border-radius: 6px; font-size: .8rem; font-weight: 700; text-align: center; }
.status-delivered, .status-active, .status-ready { color: #2f592e; background: #e5f1e2; }
.status-pending, .status-cooking { color: #684015; background: #fcedcf; }
.status-picked_up, .status-assigned { color: #374476; background: #e8eaf7; }
.status-cancelled, .status-rejected, .status-deactivated { color: #76352b; background: #f9e6e0; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; }
table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: .88rem; }
th, td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--brand-tint); }
tbody tr:last-child td { border-bottom: 0; }

.footer { padding-top: 30px; border-top: 1px solid var(--brand-line); background: radial-gradient(ellipse at 18% 0%, #236046, transparent 67%), var(--brand-dark); color: #fff4e5; }
.footer .brand { color: #fff4e5; }
.footer p { color: #e9eddb; }
.footer :focus-visible { outline-color: #ffd0a4; }
.footer .cookie-panel :focus-visible { outline-color: var(--accent-deep); }
.footer-main { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 17px 30px; padding-bottom: 20px; }
.footer-main p { margin-top: 8px; }
.footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 17px; }
.footer nav a { text-decoration: none; font-weight: 650; }
.footer nav a:hover, .footer summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-main nav { padding-top: 9px; }
.footer-password { text-underline-offset: 4px; }
.footer-legal { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 13px 0 max(14px, env(safe-area-inset-bottom)); border-top: 1px solid #7a9885; color: #e9eddb; font-size: .85rem; }
.cookie-prefs { position: relative; }
.cookie-panel { position: absolute; z-index: 4; bottom: calc(100% + 10px); inset-inline-end: 0; min-width: min(290px, calc(100vw - 40px)); padding: 11px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px #0a302450; }
.cookie-panel p { margin-bottom: 8px; color: var(--muted); }
.install-dialog { max-width: min(calc(100% - 32px), 460px); padding: 20px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; }
.install-dialog::backdrop { background: #0a302491; }
.install-dialog h2 { font-size: 1.8rem; }
.install-dialog p { margin-block: 13px; }

@media (max-width: 1040px) {
  .topbar-inner { gap: 12px; }
  .desktop-nav, .header-actions { gap: 12px; }
  .meal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-copy { padding-inline-start: clamp(26px, 4.7vw, 48px); }
}

@media (max-width: 900px) {
  .desktop-nav, .desktop-signin { display: none; }
  .mobile-menu { display: block; }
}

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr .82fr; min-height: 380px; }
  .hero h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); }
  .hero-search .button { padding-inline: .62rem; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; gap: 7px; padding: 8px; }
  .dashboard-account { padding-bottom: 6px; }
  .dashboard-sidebar nav { display: flex; flex-wrap: wrap; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 69px; }
  .topbar-inner { min-height: 61px; }
  .brand-mark { width: 39px; height: 39px; }
  .wordmark { font-size: 1.38rem; }
  [lang='ar'] .wordmark { font-size: 1.64rem; }
  .hero-inner { display: flex; flex-direction: column-reverse; min-height: auto; }
  .hero-copy { width: 100%; padding: 17px clamp(16px, 4vw, 25px) 24px; margin-top: -17px; }
  .hero-picture { min-height: auto; height: clamp(180px, 53vw, 270px); }
  .hero-picture img { object-position: 50% 48%; }
  .hero-picture::after, [dir='rtl'] .hero-picture::after { background: linear-gradient(to top, #153d2c, #153d2c63 20%, transparent 49%); }
  .hero-spice { padding: 6px; }
  .hero h1 { font-size: clamp(2.55rem, 9vw, 4.1rem); text-wrap: initial; }
  .hero-intro { margin-top: .65rem; }
  .hero-search { margin-top: .95rem; margin-inline-end: 0; max-width: none; }
  .benefits { justify-content: space-between; gap: 6px; margin-top: 10px; padding-block: 11px; }
  .benefits span { gap: 4px; font-size: .72rem; font-weight: 650; }
  .benefits .icon { width: 17px; height: 17px; }
  .section-heading { align-items: start; flex-wrap: wrap; }
  .meal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meal-card { border-radius: 12px; }
  .meal-copy { padding: 9px; }
  .meal-byline { font-size: .79rem; }
  .meal-bottom > strong { font-size: .87rem; }
  .photo-tag { inset-inline-start: 6px; top: 6px; padding: 3px 5px; font-size: .68rem; }
  .step-grid { grid-template-columns: 1fr; }
  .step-grid article { position: relative; padding: 13px; padding-inline-start: 64px; min-height: 76px; }
  .step-grid .step-icon { position: absolute; inset-inline-start: 11px; top: 13px; width: 43px; height: 43px; }
  .step-grid h3 { margin-top: 0; }
  .partner-invite { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
  .partner-invite .button-row { grid-column: 1 / -1; }
  .dashboard-heading { flex-wrap: wrap; align-items: start; gap: 12px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; gap: 8px; }
  .filters:not(.report-filters) label:first-child, .filters .button { grid-column: 1 / -1; }
  .detail-grid, .auth-page { grid-template-columns: 1fr; }
  .meal-editor > .meal-editor-save { justify-self: stretch; }
  .detail-grid { display: flex; flex-direction: column; }
  .detail-grid > *, .detail-photo, .detail-info { width: 100%; }
  .detail-story { display: contents; }
  .detail-photo { order: -1; }
  .detail-info { padding-top: 0; }
  .auth-scene { display: none; }
  .auth-form-wrap { margin-inline: auto; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main, .footer-legal { flex-direction: column; }
  .footer-main nav { padding-top: 0; }
  .cookie-panel { position: static; margin-top: 6px; }
}

@media (max-width: 430px) {
  .header-cta { display: none; }
  .header-dashboard { display: inline-flex; padding-inline: 11px; }
  .header-dashboard span { display: none; }
  .header-actions { gap: 9px; }
  .hero-search select { font-size: .86rem; }
  .hero-search .button { font-size: .79rem; }
  .benefits span { flex-direction: column; text-align: center; }
  .article-grid { grid-template-columns: 1fr; }
  .role-card { padding-inline-start: 20px; }
  .role-choice input { inset-inline-start: 5px; }
  .role-card small { font-size: .72rem; }
  .form-grid, .field-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  @view-transition { navigation: auto; }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 225ms;
    animation-timing-function: ease-in-out;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button {
    transition: box-shadow 180ms ease, border-color 180ms ease, color 180ms ease, transform 160ms ease;
  }
  .button:active { transform: translateY(1px); }
  .admin-nav a, .dashboard-sidebar a, .category-chip {
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  }
  .admin-record[open] > .admin-record-body,
  .cook-meal-editor[open] > .meal-editor,
  .gallery-editor-samples[open] > .gallery-sample-list,
  .order-timeline[open] > ol,
  .mobile-menu[open] > nav {
    animation: reveal-panel 210ms ease-out both;
  }
}

@keyframes reveal-panel {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition: none !important; }
}
.meal-card-rating { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; width: fit-content; min-block-size: 29px; color: #69371d; font-size: .87rem; font-weight: 760; text-decoration: none; }
.meal-card-rating:hover { text-decoration: underline; text-underline-offset: .2em; }
.meal-card-rating .icon { color: #8e4c18; fill: #f4ba63; }
.meal-card-rating small { color: var(--muted); font-weight: 600; }
