/* Sofraty — site chrome (header, breadcrumb, footer)
 * Layout uses CSS logical properties (inline-start/end, not left/right) so RTL
 * mirrors automatically — no direction-specific overrides to maintain by hand.
 */

* { box-sizing: border-box; }

.mark { width: 34px; height: 34px; color: var(--ground); flex: none; }

.site-header {
  background: var(--molokhia);
  padding-inline: 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup { display: flex; align-items: center; gap: 10px; color: var(--ground); }
.brand-lockup .wordmark { font-weight: 900; font-size: 22px; }

.site-nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 600; }
.site-nav a { color: var(--molokhia-soft); }
.site-nav a[aria-current="page"] { color: var(--ground); }
.site-nav a:hover { color: var(--ground); }
/* A destination that is not built yet renders as text, not a link — see
 * NAV_LINKS in site-chrome.mjs. Dimmed so it reads as "later", not "broken". */
.site-nav .nav-pending { color: var(--molokhia-soft); opacity: .75; cursor: default; }

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(253, 250, 246, .13);
  border-radius: 8px;
  padding: 8px 14px;
  max-width: 240px;
  flex: 1 1 auto;
}
.site-search svg { width: 16px; height: 16px; color: var(--molokhia-soft); flex: none; }
.site-search input {
  background: none;
  border: none;
  color: var(--ground);
  font-family: var(--font-ar);
  font-size: 14px;
  width: 100%;
  outline: none;
}
.site-search input::placeholder { color: var(--molokhia-soft); }
/* No results page exists yet, so the box is presentational — see renderSearch(). */
.site-search-pending { color: var(--molokhia-soft); font-size: 14px; opacity: .8; cursor: default; }

.breadcrumb { padding: 14px 24px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--shatta); }
.breadcrumb [aria-current="page"] { color: var(--ink); }
.crumb-sep { width: 14px; height: 14px; color: var(--ink-3); }
[dir="rtl"] .crumb-sep { transform: scaleX(-1); }

.site-footer {
  margin-top: 48px;
  background: var(--molokhia);
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ground); }
.footer-brand .wordmark { font-weight: 900; font-size: 18px; }
.footer-brand .tagline { font-size: 13px; color: #8FBBA4; margin-inline-start: 8px; }
.footer-links { display: flex; gap: 20px; font-size: 13px; color: var(--molokhia-soft); flex-wrap: wrap; }
.footer-links a { color: inherit; }
.footer-links a:hover { color: var(--ground); }
.footer-pending { cursor: default; opacity: .7; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ar);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 9px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}
.btn-primary { background: var(--shatta); color: #fff; }
.btn-primary:hover { background: var(--shatta); filter: brightness(1.05); }
.btn-primary:focus-visible, .btn-ghost:focus-visible { outline: 2px solid var(--molokhia); outline-offset: 3px; }
.btn-ghost { background: transparent; border-color: var(--rule); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-icon { padding: 12px; }
.btn-icon svg { width: 18px; height: 18px; }
.btn-block { width: 100%; }
.btn-pending { cursor: default; opacity: .8; }
.btn[aria-pressed="true"] { background: var(--molokhia-soft); border-color: var(--molokhia); color: var(--molokhia); }

.ad-slot {
  border: 1px dashed var(--rule);
  border-radius: 10px;
  background: var(--surface-2);
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-header { padding-inline: 16px; }
  .breadcrumb { padding: 12px 16px; }
  .site-footer { padding: 22px 16px; flex-direction: column; align-items: flex-start; }
}

@media print {
  .site-header, .breadcrumb, .site-footer, .ad-slot, .hero-actions,
  .servings-stepper, .related-section, .swap-card, .card-footer { display: none !important; }
}
