/* Chefs in My City: see design-system/MASTER.md for the reasoning behind these tokens */
:root {
  --ink: #14211C;
  --ink-2: #3D4A44;
  --muted: #5B6862;
  --tile: #EEF1EE;
  --paper: #FFFFFF;
  --sumac: #A3262E;
  --sumac-dark: #841D25;
  --saffron: #E8A317;
  --saffron-soft: #FBEFD3;
  --pistachio: #DCE8D5;
  --steel: #9AA5A0;
  --line: #D5DCD8;
  --ok: #1F6B45;
  --wa: #1B7F4B;

  --f-display: 'Bricolage Grotesque', 'Karla', system-ui, sans-serif;
  --f-body: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-hand: 'Gochi Hand', 'Comic Sans MS', cursive;

  --r: 6px;
  --shadow: 0 1px 0 rgba(20, 33, 28, .06), 0 6px 18px -8px rgba(20, 33, 28, .22);
  --shadow-lift: 0 2px 0 rgba(20, 33, 28, .05), 0 14px 30px -12px rgba(20, 33, 28, .32);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--tile); color: var(--ink); font: 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--sumac); text-underline-offset: 3px; }
a:hover { color: var(--sumac-dark); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 .8em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
/* marker handwriting, only ever on tickets, like an order written on the pass */
.hand { font-family: var(--f-hand); font-weight: 400; letter-spacing: .01em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-l { margin-top: 32px; } .mt-xl { margin-top: 56px; }
.row-gap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ic { flex: none; vertical-align: -4px; }

/* ---------- type ---------- */
.display { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.5rem, 6.4vw, 4.9rem); line-height: .98; letter-spacing: -.035em; }
.display-md { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.02em; margin-bottom: 18px; }
.h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 8px; }
.status-line { color: var(--ink-2); font-weight: 500; font-size: .92rem; margin-bottom: 2px; display: flex; align-items: center; gap: 7px; }
.store-where { color: var(--ink-2); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-weight: 500; }
.store-where .ic { width: 18px; height: 18px; color: var(--sumac); }
.result-count { color: var(--muted); margin: 10px 0 0; font-weight: 500; }

/* ---------- header ---------- */
.site-head { background: var(--tile); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.wordmark { text-decoration: none; color: var(--ink); display: inline-flex; align-items: baseline; gap: 6px; }
.wm-chefs { font-family: var(--f-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.04em; }
.wm-in { font-family: var(--f-hand); font-size: 1.2rem; color: var(--sumac); transform: rotate(-3deg); display: inline-block; }
.wordmark-light { color: #fff; } .wordmark-light .wm-in { color: var(--saffron); }
.main-nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a:not(.btn), .linkish { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--sumac); }
.main-nav form { display: contents; }
.linkish { background: none; border: 0; font: inherit; cursor: pointer; color: var(--sumac); text-decoration: underline; text-underline-offset: 3px; padding: 0; min-height: 0; }
.main-nav .linkish { color: var(--ink); text-decoration: none; padding: 10px 0; min-height: 44px; }

/* ---------- buttons ---------- */
.btn { --bg: var(--sumac); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bg); border-radius: var(--r); font: 700 1rem/1.2 var(--f-body);
  text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background-color .15s, box-shadow .15s; }
.btn:hover { --bg: var(--sumac-dark); color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { --bg: var(--ink); --fg: #fff; }
.btn-saffron { --bg: var(--saffron); --fg: var(--ink); }
.btn-saffron:hover { --bg: #D29210; --fg: var(--ink); }
.btn-wa { --bg: var(--wa); }
.btn-wa:hover { --bg: #146a3e; }
.btn-danger { --bg: transparent; --fg: var(--sumac); border-color: var(--sumac); }
.btn-danger:hover { --bg: var(--sumac); --fg: #fff; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(20, 33, 28, .82); color: #fff; display: grid; place-items: center; cursor: pointer; }

/* ---------- the ticket (signature element) ---------- */
.ticket { position: relative; background: var(--paper); border-radius: 3px; box-shadow: var(--shadow); }
/* perforated top edge, like a kitchen order ticket torn from the printer */
.ticket::before { content: ''; position: absolute; left: 0; right: 0; top: -5px; height: 6px;
  background: radial-gradient(circle at 5px -1px, transparent 4px, var(--paper) 4.5px) 0 0 / 10px 6px repeat-x; }
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 16px; border-bottom: 1.5px dashed var(--line); color: var(--muted); font-size: .9rem; }
.ticket-head .hand { color: var(--ink); font-size: 1.35rem; line-height: 1.2; margin: 0; }
.ticket-body { padding: 16px; }
.ticket-foot { padding: 10px 16px; border-top: 1.5px dashed var(--line); color: var(--ink-2); font-size: .95rem; }
.ticket-foot strong { color: var(--ink); font-weight: 700; }

.chef-ticket { display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s; }
.chef-ticket:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.chef-ticket:focus-within { box-shadow: var(--shadow-lift), 0 0 0 3px var(--saffron); }
.ticket-link { position: absolute; inset: 0; z-index: 2; }
.ticket-link:focus-visible { outline: none; }
.ticket-cover { aspect-ratio: 2 / 1; object-fit: cover; width: 100%; height: auto; background: var(--pistachio); }
.chef-ticket .ticket-body { flex: 1; }
.ticket-who { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.ticket-name { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; }
.ticket-headline { margin: 2px 0 0; color: var(--ink-2); font-size: .95rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ticket-grid { display: grid; gap: 28px 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }

.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--pistachio); }
.avatar-sm { width: 48px; height: 48px; }
.avatar-md { width: 64px; height: 64px; }
.avatar-lg { width: 120px; height: 120px; border: 4px solid var(--paper); box-shadow: var(--shadow); }
.avatar-mono { display: grid; place-items: center; background: var(--tint); font-family: var(--f-display); font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.avatar-sm.avatar-mono { font-size: 1.05rem; } .avatar-md.avatar-mono { font-size: 1.35rem; } .avatar-lg.avatar-mono { font-size: 2.6rem; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li, .chips a { background: var(--pistachio); color: var(--ink); border-radius: 999px; padding: 3px 11px; font-size: .85rem; text-decoration: none; }
.chips a:hover { background: #c9dcc0; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; gap: 48px; grid-template-columns: 1.25fr 1fr; align-items: center; }
.hero-copy .display { margin-bottom: 32px; }

.sentence { background: var(--paper); border-radius: 3px; box-shadow: var(--shadow); padding: 22px 22px 22px; position: relative; }
.sentence-line { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.9; margin-bottom: 18px; letter-spacing: -.01em; }
.blank { display: inline-block; position: relative; }
.blank select { appearance: none; -webkit-appearance: none; font: inherit; color: var(--sumac); background: transparent; border: 0; border-bottom: 2.5px solid var(--sumac);
  padding: 0 26px 0 2px; cursor: pointer; border-radius: 0; max-width: 100%; min-height: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A3262E' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; }
.blank select { field-sizing: content; }
.blank select:hover { background-color: var(--saffron-soft); }

/* the pass: a steel rail with order tickets clipped to it */
.pass { position: relative; padding-top: 34px; min-height: 380px; }
.pass-rail { position: absolute; left: -24px; right: -60px; top: 20px; height: 14px; border-radius: 7px;
  background: linear-gradient(180deg, #d8dedb 0%, #b4bdb8 45%, #8f9a95 55%, #c6cdc9 100%); box-shadow: 0 3px 6px rgba(20, 33, 28, .18); }
.pass-label { position: absolute; top: -12px; left: 0; color: var(--muted); font-size: .9rem; font-weight: 500; }
.pass-tickets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; }
.pass-ticket { display: block; min-height: 230px; color: var(--ink); text-decoration: none; transform: rotate(var(--tilt)); transform-origin: top center; padding-bottom: 14px;
  animation: hang .7s var(--ease) both; }
.pass-ticket:nth-child(2) { animation-delay: .08s; margin-top: 18px; }
.pass-ticket:nth-child(3) { animation-delay: .16s; margin-top: 6px; }
.pass-ticket::after { content: ''; position: absolute; top: -18px; left: 50%; width: 22px; height: 26px; margin-left: -11px; border-radius: 3px;
  background: linear-gradient(90deg, #7f8a85, #c3cbc7 50%, #7f8a85); box-shadow: 0 2px 3px rgba(0, 0, 0, .2); }
.pass-ticket .ticket-head { flex-direction: column; gap: 0; padding: 14px 12px 8px; font-size: .85rem; }
.pass-what { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; line-height: 1.25; padding: 12px 12px 0; margin: 0 0 8px; }
.pass-img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.pass-note { padding: 0 12px; margin: 0; font-size: .86rem; color: var(--ink-2); line-height: 1.4; }
a.pass-ticket:hover { box-shadow: var(--shadow-lift); }
@keyframes hang { from { transform: rotate(0) translateY(-16px); opacity: 0; } to { transform: rotate(var(--tilt)); opacity: 1; } }

/* ---------- bands ---------- */
.band { padding: clamp(48px, 7vw, 80px) 0; background: var(--paper); }
.band-tile { background: var(--tile); }
.band-ink { background: var(--ink); color: #fff; }
.h2-light { color: #fff; }
.eyebrow-light { color: var(--saffron); }
.muted-light { color: #B9C4BF; }
.label-light { font-weight: 700; color: var(--saffron); margin-bottom: 10px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.more { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }

.emirate-strip { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 2px solid var(--ink); }
.emirate-strip a { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px 16px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); height: 100%;
  transition: color .15s; }
.emirate-strip li + li a { padding-left: 14px; border-left: 1px solid var(--line); }
.em-name { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; line-height: 1.2; }
.em-count { color: var(--muted); font-size: .9rem; }
.emirate-strip a:hover { color: var(--sumac); }
.cuisine-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500;
  transition: background-color .15s, color .15s; }
.chip-link:hover { background: var(--ink); color: #fff; }

.how-rail { position: relative; padding-top: 26px; margin-top: 8px; }
.how-rail .pass-rail { top: 12px; left: -16px; right: -16px; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.how-ticket { --paper: #FFFFFF; position: relative; padding: 26px 22px 22px; transform: rotate(var(--tilt)); transform-origin: top center; min-height: 250px; }
.how-ticket::after { content: ''; position: absolute; top: -20px; left: 50%; width: 22px; height: 26px; margin-left: -11px; border-radius: 3px;
  background: linear-gradient(90deg, #7f8a85, #c3cbc7 50%, #7f8a85); box-shadow: 0 2px 3px rgba(0, 0, 0, .2); }
.how-saffron { --paper: #FCEFCF; background: var(--paper); }
.how-pistachio { --paper: #E4EEDD; background: var(--paper); }
.how-n { position: absolute; top: 14px; right: 18px; width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.9rem; color: var(--sumac);
  border: 2.5px solid var(--sumac); border-radius: 52% 48% 55% 45% / 48% 55% 45% 52%; transform: rotate(-8deg); }
.how-title { font-size: 1.9rem; line-height: 1.15; color: var(--ink); margin: 0 60px 12px 0; }
.how-ticket p { color: var(--ink-2); margin: 0 0 8px; max-width: 34ch; }
.doodle { color: var(--sumac); opacity: .75; margin: 6px 0 0 auto; display: block; transform: rotate(-6deg); }
.how-saffron .doodle { transform: rotate(5deg); }
.how-ticket:hover { transform: rotate(0deg) translateY(-2px); box-shadow: var(--shadow-lift); }
.how-ticket { transition: transform .25s var(--ease), box-shadow .25s; }

.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-row > div { max-width: 560px; }

/* ---------- directory ---------- */
.page-head { padding: 40px 0 28px; }
.page-head-tight { padding: 28px 0 20px; }
.dir-grid { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; padding-bottom: 80px; }
.filters { position: sticky; top: 84px; }
.filter-box { background: var(--paper); border-radius: 3px; box-shadow: var(--shadow); }
.filter-box summary { padding: 12px 16px; font-weight: 700; cursor: pointer; border-bottom: 1.5px dashed var(--line); list-style: none; color: var(--ink-2); }
.filter-box summary::-webkit-details-marker { display: none; }
.filter-box form { padding: 16px; }
.empty .ticket-body { padding: 28px; }

/* ---------- forms ---------- */
.stack { display: grid; gap: 16px; }
.narrow { max-width: 440px; }
.field { display: grid; gap: 6px; }
.label { font-weight: 700; font-size: .92rem; }
.hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
input:not([type="checkbox"]):not([type="file"]), select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--steel); border-radius: var(--r); padding: 10px 12px; min-height: 46px;
  transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--saffron); }
[aria-invalid="true"] { border-color: var(--sumac) !important; }
.field-error { color: var(--sumac); font-size: .88rem; font-weight: 700; margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; cursor: pointer; }
.check input { position: absolute; opacity: 0; inset: 0; }
.check span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1.5px solid var(--steel); border-radius: 999px; font-size: .92rem; background: var(--paper); transition: background-color .15s; }
.check input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.check input:focus-visible + span { box-shadow: 0 0 0 3px var(--saffron); }
.hp { position: absolute; left: -9999px; }
.success { display: flex; gap: 10px; align-items: flex-start; background: #E3F1E8; color: var(--ok); border-radius: var(--r); padding: 12px 14px; }
.success .ic { margin-top: 2px; }
.flash { margin-bottom: 18px; }
.notice { background: var(--saffron-soft); padding: 12px 16px; margin-top: 16px; border-radius: var(--r); }

/* ---------- storefront ---------- */
.store-hero { position: relative; padding: 48px 0 32px; }
.store-hero.has-cover { padding-top: 0; }
.store-cover { width: 100%; height: clamp(200px, 32vw, 380px); object-fit: cover; }
.has-cover .store-id { margin-top: -60px; position: relative; }
.store-id { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.has-cover .store-id > div { padding-top: 68px; }
.store-headline { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; margin: 8px 0 14px; }
.store-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; padding: 16px 0 88px; }
.store-main { display: grid; gap: 48px; min-width: 0; }
.store-side { position: sticky; top: 84px; }
.menu-list li { padding: 16px; border-bottom: 1px solid var(--line); }
.menu-list li:last-child { border-bottom: 0; }
.menu-line { display: flex; align-items: baseline; gap: 10px; }
.menu-line h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; }
.dots { flex: 1; border-bottom: 2px dotted var(--steel); transform: translateY(-4px); min-width: 20px; }
.price { font-size: 1.05rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.menu-detail { margin: 6px 0 0; color: var(--ink-2); font-size: .95rem; }
.unit { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.prose p { max-width: 68ch; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; border-radius: 3px; background: var(--pistachio); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 0; border-top: 2px solid var(--ink); padding-top: 18px; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 4px 0 0; font-weight: 500; }
.book-card .ticket-body { display: grid; gap: 10px; }
.or { text-align: center; color: var(--muted); margin: 8px 0 0; font-size: .92rem; }

/* mobile booking bar on storefronts */
.book-bar { display: none; }
@media (max-width: 960px) {
  .book-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper); box-shadow: 0 -6px 20px -10px rgba(20, 33, 28, .35); }
  .book-bar .btn { flex: 1; }
  .store-grid { padding-bottom: 120px; }
  .store-side { scroll-margin-top: 80px; }
}

/* ---------- auth ---------- */
.auth { padding: 64px 0 96px; display: grid; place-items: center; }
.auth-card { width: min(460px, 100%); }
.auth-card .ticket-body { padding: 24px; }

/* ---------- dashboard ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.dash-head .ticket-who { margin: 0; }
.dash-head .h2 { margin: 0; }

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--steel); display: inline-block; }
.dot-live { background: #2DA160; box-shadow: 0 0 0 3px #CFEBD9; }
.dot-off { background: var(--sumac); }
.checklist { background: var(--paper); border-left: 4px solid var(--saffron); padding: 14px 18px; margin-bottom: 20px; border-radius: 0 var(--r) var(--r) 0; }
.checklist p { color: var(--ink); margin-bottom: 8px; }
.checklist ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.checklist li { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.checklist li.ok { color: var(--ok); }
.box { width: 16px; height: 16px; border: 1.5px solid var(--steel); border-radius: 3px; display: inline-block; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--ink); scrollbar-width: none; }
.tabs a { padding: 12px 16px; white-space: nowrap; text-decoration: none; color: var(--ink-2); font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r) var(--r) 0 0; }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.badge { background: var(--sumac); color: #fff; border-radius: 999px; font-size: .75rem; padding: 1px 7px; }
.panel { background: var(--paper); padding: clamp(18px, 3vw, 32px); margin-bottom: 80px; box-shadow: var(--shadow); }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--paper) 30%); padding: 18px 0 6px; display: flex; gap: 14px; align-items: center; }
.offer-row { padding: 16px; display: grid; gap: 12px; box-shadow: none; border: 1.5px solid var(--line); }
.offer-row legend { padding: 0 6px; font-weight: 700; color: var(--ink-2); font-size: .92rem; }
.offer-row::before { display: none; }
.photo-top { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.photo-slot { display: grid; gap: 10px; align-content: start; }
.photo-frame { background: var(--tile); border: 1.5px dashed var(--steel); display: grid; place-items: center; overflow: hidden; border-radius: 3px; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-avatar { aspect-ratio: 1; border-radius: 50%; }
.photo-cover { aspect-ratio: 8 / 3; }
.upload { cursor: pointer; justify-self: start; }
.upload:focus-within { box-shadow: 0 0 0 3px var(--saffron); }
.gallery-edit li { position: relative; }
.gallery-edit form { position: absolute; top: 6px; right: 6px; }
.add-photo { aspect-ratio: 1; display: grid; place-content: center; justify-items: center; gap: 6px; border: 1.5px dashed var(--steel); border-radius: 3px; cursor: pointer; color: var(--ink-2); font-weight: 700; text-align: center; padding: 8px; }
.add-photo:hover, .add-photo:focus-within { border-color: var(--ink); background: var(--tile); }
.upload-status { min-height: 1.4em; margin-top: 10px; }
.inbox { display: grid; gap: 22px; }
.inq.unread { border-left: 4px solid var(--saffron); }
.inq-meta { color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: .92rem; }
.inq-meta .ic { width: 16px; height: 16px; }
.inq form { display: inline; }
.empty-inline { padding: 8px 0; }
.copy-line { background: var(--tile); padding: 10px 14px; display: inline-block; border-radius: var(--r); font-size: .9rem; }
.danger-zone { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }

.table-wrap { overflow-x: auto; background: var(--paper); box-shadow: var(--shadow); margin-bottom: 80px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { font-size: .88rem; color: var(--muted); font-weight: 700; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #fff; padding: 56px 0 24px; }
.band-ink + .site-foot { border-top: 1px solid #2a3832; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-grid p { max-width: 40ch; margin-top: 12px; }
.foot-list { display: grid; gap: 2px; }
.foot-list a { color: #DDE4E0; text-decoration: none; display: inline-block; padding: 4px 0; }
.foot-list a:hover { color: var(--saffron); }
.foot-base { margin-top: 40px; padding-top: 16px; border-top: 1px solid #2a3832; color: #8E9B95; font-size: .85rem; }


/* ---------- blog ---------- */
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; margin: 14px 0 0; }
.blog-wrap { padding-bottom: 88px; display: grid; gap: 40px; }
.post-card { position: relative; background: var(--paper); border-radius: 3px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.post-card:hover { box-shadow: var(--shadow-lift); }
.post-card:focus-within { box-shadow: var(--shadow-lift), 0 0 0 3px var(--saffron); }
.post-card-link { position: absolute; inset: 0; z-index: 2; }
.post-card-link:focus-visible { outline: none; }
.post-card-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--pistachio); }
.post-card-blank { background: repeating-linear-gradient(-45deg, var(--pistachio) 0 14px, #d2e1ca 14px 28px); }
.post-card-body { padding: 18px 20px 22px; }
.post-date { color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.post-card-title { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.015em; line-height: 1.2; margin-bottom: 8px; }
.post-card:hover .post-card-title { color: var(--sumac); }
.post-card-desc { color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-big { display: grid; grid-template-columns: 1.35fr 1fr; }
.post-card-big .post-card-img { height: 100%; min-height: 300px; aspect-ratio: auto; }
.post-card-big .post-card-body { padding: clamp(22px, 3vw, 40px); align-self: center; }
.post-card-big .post-card-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; }
.post-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.empty-blog { max-width: 520px; }

.post-head { padding: 36px 0 26px; max-width: 900px; margin-left: max(16px, calc((100% - var(--wrap)) / 2)); }
.crumbs { display: flex; gap: 8px; font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }
.post-title { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.04; margin-bottom: 18px; text-wrap: balance; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--ink-2); margin: 0; font-weight: 500; }
.post-cover { margin-block: 0 40px; }
.post-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 560px; object-fit: cover; border-radius: 3px; }
.post-grid-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding-bottom: 72px; }
.post-main { max-width: 70ch; }
.short-answer { --paper: #FCEFCF; background: var(--paper); margin: 12px 0 36px; }
.short-answer p { font-size: 1.15rem; line-height: 1.6; margin: 0; color: var(--ink); }
.post-body { font-size: 1.125rem; line-height: 1.75; }
.post-body > * + * { margin-top: 1.1em; }
.post-body p { margin: 0; }
.post-body h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 1.9rem); letter-spacing: -.02em; margin-top: 2em; scroll-margin-top: 90px; }
.post-body h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; margin-top: 1.6em; scroll-margin-top: 90px; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body ul { list-style: none; }
.post-body ul li { position: relative; }
.post-body ul li::before { content: ''; position: absolute; left: -1.05em; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); }
.post-body ol { list-style: decimal; }
.post-body ol li::marker { font-weight: 700; color: var(--sumac); }
.post-body li + li { margin-top: .4em; }
.post-body a { color: var(--sumac); text-decoration-thickness: 1.5px; }
.post-body strong { font-weight: 700; color: var(--ink); }
.post-body img { width: 100%; height: auto; border-radius: 3px; }
.post-body blockquote { margin-inline: 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--sumac); }
.post-body blockquote p { font-family: var(--f-hand); font-size: 1.55rem; line-height: 1.35; color: var(--ink); }
.table-scroll { overflow-x: auto; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 1rem; background: var(--paper); box-shadow: var(--shadow); }
.post-body th, .post-body td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body th { font-weight: 700; background: var(--pistachio); }
.post-body td { font-variant-numeric: tabular-nums; }
.post-body hr { border: 0; border-top: 1.5px dashed var(--steel); margin: 2.4em 0; }
.post-faq { margin-top: 56px; border-top: 2px solid var(--ink); padding-top: 18px; }
.post-faq h2 { font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; margin-bottom: 10px; }
.post-faq details { border-bottom: 1px solid var(--line); }
.post-faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 700; font-size: 1.1rem; position: relative; min-height: 44px; }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: '+'; position: absolute; right: 6px; top: 10px; font-size: 1.6rem; color: var(--sumac); transition: transform .2s var(--ease); }
.post-faq details[open] summary::after { transform: rotate(45deg); }
.post-faq details p { color: var(--ink-2); margin: 0 0 18px; font-size: 1.05rem; }
.post-side { position: sticky; top: 90px; display: grid; gap: 28px; }
.toc-title { font-weight: 700; margin-bottom: 10px; }
.toc ol { list-style: none; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--sumac); border-left-color: var(--sumac); }
.side-cta .ticket-body p { color: var(--ink-2); }
.post-chefs .ticket-grid { margin-top: 6px; }

/* ---------- blog editor ---------- */
.admin-tabs { margin-top: 16px; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding-bottom: 80px; }
.editor-form { margin-bottom: 0; }
.md-input { font-size: 1rem; line-height: 1.6; min-height: 420px; }
.cover-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cover-thumb { width: 192px; height: 108px; object-fit: cover; border-radius: 3px; }
.seo-more summary { cursor: pointer; font-weight: 700; padding: 8px 0; min-height: 44px; }
.seo-more[open] { display: grid; gap: 16px; }
.seo-panel { position: sticky; top: 84px; display: grid; gap: 26px; }
.serp { font-family: Arial, sans-serif; }
.serp-site { font-size: .85rem; color: #202124; margin-bottom: 4px; word-break: break-all; }
.serp-title { font-size: 1.2rem; color: #1a0dab; line-height: 1.3; margin-bottom: 4px; }
.serp-desc { font-size: .9rem; color: #4d5156; line-height: 1.5; margin: 0; }
.seo-checks { display: grid; gap: 12px; }
.seo-checks li { display: flex; gap: 10px; align-items: flex-start; }
.seo-checks strong { display: block; font-weight: 500; font-size: .95rem; }
.seo-checks .hint { display: block; }
.seo-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--steel); display: grid; place-items: center; font-size: .8rem; font-weight: 700; margin-top: 1px; }
.seo-checks li.ok .seo-mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.seo-checks li.ok strong { color: var(--ok); }

@media (max-width: 960px) {
  .post-grid-layout, .editor-grid { grid-template-columns: 1fr; }
  .post-side, .seo-panel { position: static; }
  .post-card-big { grid-template-columns: 1fr; }
  .post-card-big .post-card-img { min-height: 0; aspect-ratio: 16 / 9; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .store-grid, .dir-grid { grid-template-columns: 1fr; }
  .pass { min-height: 0; }
  .store-side, .filters { position: static; }
  .emirate-strip { grid-template-columns: repeat(4, 1fr); }
  .emirate-strip li:nth-child(5) a { padding-left: 0; border-left: 0; }
  .filter-box:not([open]) summary { border-bottom: 0; }
}
@media (max-width: 640px) {
  .main-nav a:not(.btn):not([href="/dashboard"]):not([href="/login"]) { display: none; }
  .wm-in { display: none; }
  .pass-tickets { grid-template-columns: 1fr 1fr; }
  .pass-ticket:nth-child(3) { display: none; }
  .pass-rail { left: -16px; right: -16px; }
  .emirate-strip { grid-template-columns: 1fr 1fr; }
  .emirate-strip li a { padding-left: 0 !important; border-left: 0 !important; }
  .emirate-strip li:nth-child(even) a { padding-left: 14px !important; border-left: 1px solid var(--line) !important; }
  .how-steps { grid-template-columns: 1fr; gap: 36px; }
  .how-rail .pass-rail { display: none; }
  .how-ticket { min-height: 0; }
  .foot-grid, .two, .photo-top { grid-template-columns: 1fr; }
  .photo-top .photo-avatar { max-width: 180px; }
  .store-id { gap: 14px; }
  .has-cover .store-id > div { padding-top: 0; }
  .avatar-lg { width: 96px; height: 96px; }
  .sentence { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
