@font-face {
  font-family: 'Mawgoud Arabic';
  src: url('assets/arabic-400.woff') format('woff');
  font-style: normal;
  font-weight: 100 500;
  font-display: swap;
}
@font-face {
  font-family: 'Mawgoud Arabic';
  src: url('assets/arabic-800.woff') format('woff');
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}
:root {
  --paper: #faf8f1;
  --ink: #263c2b;
  --green: #344b31;
  --muted: #76796c;
  --orange: #bc5934;
  --line: #dedfd2;
  --cream: #eeeddf;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Mawgoud Arabic', 'Tahoma', sans-serif;
  line-height: 1.85;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button,
select,
input {
  color: var(--ink);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}
img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}
.wrap {
  width: min(1240px, calc(100% - 96px));
  margin-inline: auto;
}
.topline {
  text-align: center;
  padding: 7px 16px;
  color: #f8f7ec;
  background: var(--green);
  font-size: 11px;
  letter-spacing: 0.2px;
}
.header {
  min-height: 108px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 800;
  font-size: 27px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand-icon {
  color: var(--orange);
  font-size: 47px;
  line-height: 1;
}
.brand small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2px;
  margin-top: -5px;
  color: var(--muted);
}
.header nav {
  display: flex;
  gap: 32px;
  margin-inline: auto;
  font-size: 13px;
}
.header nav a:hover,
.footer-links a:hover {
  color: var(--orange);
}
.nav-save,
.bag {
  border: 0;
  background: none;
  padding: 8px;
  font-size: 15px;
  white-space: nowrap;
}
.bag {
  border-right: 1px solid var(--line);
  padding-right: 20px;
  font-size: 23px;
  position: relative;
}
.bag b {
  font-size: 10px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  position: absolute;
  top: 0;
  left: 0;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
  padding-block: 50px 58px;
}
.eyebrow {
  display: block;
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.eyebrow i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  margin-left: 6px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
.hero h1 {
  font-size: clamp(44px, 5.1vw, 74px);
  line-height: 1.45;
  letter-spacing: -3px;
  margin: 18px 0;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
  position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  height: 8px;
  width: 100%;
  border-top: 2px solid var(--orange);
  border-radius: 50%;
  transform: rotate(-2deg);
}
.hero-copy > p {
  font-size: 15px;
  color: #73766a;
  line-height: 2.1;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 13px 22px;
  font-size: 12px;
  font-weight: bold;
  transition:
    transform 0.18s,
    background 0.18s;
}
.btn:hover {
  transform: translateY(-2px);
}
.primary {
  background: var(--green);
  color: #fffdf1;
}
.primary:hover {
  background: #253a25;
}
.cream {
  background: #f8f2df;
  color: var(--green);
}
.outline {
  border-color: var(--line);
  background: transparent;
}
.under-link {
  font-size: 12px;
  padding-block: 4px;
  border-bottom: 1px solid #9ba391;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 29px;
  color: var(--muted);
  font-size: 10px;
}
.hero-note span {
  color: var(--orange);
  font-size: 25px;
}
.hero-note b {
  font-weight: normal;
  color: #a4aa95;
}
.hero-image {
  position: relative;
  min-width: 0;
}
.hero-image > img {
  height: 490px;
  width: 100%;
  border-radius: 140px 14px 14px 14px;
}
.round-stamp {
  position: absolute;
  top: -20px;
  right: -25px;
  width: 100px;
  height: 100px;
  background: #f4e7b8;
  color: var(--green);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
  transform: rotate(12deg);
  box-shadow: 0 0 0 6px var(--paper);
}
.round-stamp b {
  font-size: 15px;
}
.photo-caption {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(253, 250, 240, 0.94);
  border-radius: 9px;
  font-size: 10px;
}
.photo-caption strong {
  display: block;
  font-size: 17px;
}
.circle-arrow {
  border: 1px solid #c7cbbb;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.values {
  background: #eceedd;
  border-block: 1px solid #e0e3ce;
}
.values .wrap {
  display: flex;
  justify-content: space-around;
  padding-block: 18px;
  font-size: 12px;
}
.finder {
  padding-block: 66px 58px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 28px;
}
h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.5;
  letter-spacing: -0.7px;
  margin: 6px 0 10px;
}
.section-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}
#finder-form {
  padding: 28px 30px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f2f2e8;
}
.ingredient-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dedfd1;
  border-radius: 8px;
  padding: 10px 17px;
  background: var(--paper);
  font-size: 13px;
}
.chip span {
  font-size: 19px;
}
.chip[aria-pressed='true'] {
  background: var(--green);
  color: white;
  border-color: var(--green);
  box-shadow: 0 0 0 2px #b9c1a9;
}
.finder-bottom {
  border-top: 1px solid #dddccd;
  padding-top: 20px;
  display: flex;
  gap: 16px;
  align-items: end;
}
.finder-bottom label {
  font-size: 10px;
  color: var(--muted);
  min-width: 145px;
}
select {
  display: block;
  width: 100%;
  padding: 9px 12px;
  background: #fffdf7;
  border: 1px solid #d5d8c7;
  border-radius: 6px;
  font-size: 12px;
}
.finder-bottom .btn {
  margin-right: auto;
}
.reset {
  border: 0;
  background: none;
  font-size: 11px;
  text-decoration: underline;
  padding: 14px 5px;
  color: var(--muted);
}
#finder-message {
  font-size: 12px;
  margin: 12px 0 0;
  min-height: 18px;
}
.section-number {
  color: var(--muted);
  font-size: 10px;
}
.recipes-section {
  padding-block: 10px 70px;
}
.recipe-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 28px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filters button {
  border: 1px solid transparent;
  background: none;
  padding: 7px 17px;
  border-radius: 25px;
  font-size: 12px;
}
.filters button.active {
  background: var(--green);
  color: white;
}
.search-box {
  display: flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid #cbd0c2;
}
.search-box span {
  font-size: 25px;
}
.search-box input {
  border: 0;
  padding: 9px 0;
  background: transparent;
  font-size: 11px;
  width: 190px;
  outline-offset: 2px;
}
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 24px;
}
.recipe-card {
  position: relative;
  min-width: 0;
}
.card-photo {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.card-photo img {
  height: 235px;
  width: 100%;
  transition: transform 0.4s;
}
.card-photo:hover img {
  transform: scale(1.04);
}
.photo-tag {
  position: absolute;
  bottom: 13px;
  right: 13px;
  background: #fffcf1;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 10px;
}
.heart {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 50%;
  background: #fffcf2;
  font-size: 23px;
  display: grid;
  place-items: center;
  line-height: 1;
}
[aria-pressed='true'][data-save] {
  color: var(--orange);
}
.card-copy {
  padding: 16px 0 0;
}
.card-copy .eyebrow {
  color: var(--muted);
  font-size: 10px;
}
h3 {
  font-size: 19px;
  line-height: 1.7;
  margin: 7px 0;
}
.card-copy p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 13px;
}
.text-link {
  font-size: 12px;
  font-weight: bold;
  display: inline-flex;
  gap: 18px;
  align-items: center;
  color: var(--green);
}
.text-link:hover {
  color: var(--orange);
}
.editorial-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--green);
  color: #faf6e8;
  border-radius: 14px;
  overflow: hidden;
}
.feature-image {
  order: 2;
}
.feature-image img {
  height: 100%;
  min-height: 430px;
  width: 100%;
}
.feature-copy {
  padding: 46px 55px;
  position: relative;
}
.feature-copy .eyebrow {
  color: #e8cb96;
}
.feature-copy h2 {
  font-size: 37px;
  margin: 16px 0;
}
.feature-copy p {
  color: #cfd7c5;
  font-size: 13px;
  line-height: 2;
  max-width: 360px;
  margin-bottom: 24px;
}
.hand-note {
  display: block;
  color: #d8bd7a;
  margin-top: 25px;
  font-size: 12px;
  transform: rotate(-3deg);
}
.journal {
  padding-block: 75px;
}
.journal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.journal-card {
  border-top: 1px solid #b9c1ac;
  padding-top: 16px;
}
.journal-index {
  font:
    35px Georgia,
    serif;
  color: #bcc4af;
  display: block;
  margin-bottom: 17px;
}
.journal-card h3 {
  font-size: 18px;
  margin-block: 10px;
}
.journal-card p {
  font-size: 12px;
  color: var(--muted);
}
.journal-card:hover h3 {
  color: var(--orange);
}
.closing {
  text-align: center;
  padding: 40px 20px 55px;
  border-top: 1px solid var(--line);
}
.closing > span {
  font-size: 38px;
  color: var(--orange);
}
.closing p {
  font-size: 13px;
  color: var(--muted);
}
footer {
  background: #eeeee3;
  padding: 35px 0;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}
footer .brand {
  font-size: 21px;
}
footer p,
footer small {
  font-size: 10px;
  color: var(--muted);
  margin: 3px 0 0;
}
.footer-links {
  display: flex;
  gap: 20px;
  font-size: 11px;
}
.skip {
  position: absolute;
  right: 0;
  top: -100px;
  background: white;
  z-index: 20;
  padding: 10px;
}
.skip:focus {
  top: 0;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.result {
  background: #fffdf6;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 8px;
}
.result h3 {
  font-size: 16px;
}
.result p {
  color: var(--muted);
  font-size: 11px;
}
.result strong {
  color: var(--orange);
  font-size: 11px;
}
.empty {
  padding: 35px;
  background: var(--cream);
  text-align: center;
  border-radius: 10px;
  font-size: 13px;
}
[hidden] {
  display: none !important;
}
.detail,
.article-page {
  padding-block: 35px 70px;
}
.back {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 25px;
}
.detail-heading {
  max-width: 800px;
  margin-bottom: 30px;
}
.detail h1,
.article-page h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.5;
  margin-block: 12px;
  letter-spacing: -1px;
}
.detail-heading p,
.lead {
  font-size: 16px;
  color: var(--muted);
}
.detail-photo {
  width: 100%;
  height: 430px;
  border-radius: 14px;
}
.image-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.recipe-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  margin-block: 35px;
  align-items: start;
}
.ingredients-box {
  background: #eeefe1;
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 12px;
}
.ingredients-box label {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}
.ingredients-box select {
  width: 85px;
}
.ingredients-box ul {
  padding-right: 18px;
  font-size: 14px;
}
.ingredients-box li {
  padding-block: 7px;
  border-bottom: 1px solid #d9decb;
}
.ingredients-box .btn {
  width: 100%;
  margin-top: 10px;
  font-size: 11px;
  padding-inline: 8px;
}
.small {
  font-size: 11px;
  color: var(--muted);
}
.method ol {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.method ol li {
  counter-increment: step;
  position: relative;
  padding: 8px 50px 20px 0;
  line-height: 2.1;
  font-size: 15px;
}
.method li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  right: 0;
  top: 9px;
  font:
    23px Georgia,
    serif;
  color: var(--orange);
}
.tip {
  padding: 23px;
  background: #efedda;
  border-right: 3px solid var(--orange);
  border-radius: 5px;
  margin-block: 30px;
  font-size: 13px;
}
.tip p {
  margin: 8px 0 0;
}
.article-page {
  max-width: 880px;
}
.article-page .lead {
  margin-bottom: 18px;
}
.author {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 25px;
}
.author span {
  padding-inline: 12px;
}
.article-photo {
  width: 100%;
  height: 380px;
  border-radius: 12px;
  margin-bottom: 35px;
}
.article-body {
  max-width: 700px;
  margin-inline: auto;
  font-size: 16px;
  line-height: 2.3;
}
.article-body h2 {
  font-size: 25px;
  margin-top: 32px;
}
.article-body p {
  color: #626958;
}
dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 25px;
  width: min(580px, calc(100% - 24px));
  max-height: 85vh;
}
dialog::backdrop {
  background: #18251788;
  backdrop-filter: blur(3px);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.panel-head h2 {
  font-size: 23px;
}
.panel-head button {
  background: none;
  border: 0;
  font-size: 30px;
  padding: 0 8px;
}
.saved-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.saved-row button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
  padding: 5px 10px;
}
.shopping-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  padding-block: 9px;
}
.shopping-row input {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 4px;
}
.shopping-row:has(input:checked) span {
  text-decoration: line-through;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  background: var(--green);
  color: white;
  padding: 12px 24px;
  border-radius: 9px;
  z-index: 30;
  font-size: 12px;
  max-width: 90%;
  transition: 0.2s;
}
#toast.show {
  transform: translateX(-50%);
  opacity: 1;
}
@media (min-width: 1450px) {
  .hero {
    padding-block: 65px;
  }
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .header {
    gap: 15px;
  }
  .header nav {
    gap: 18px;
  }
  .hero {
    gap: 35px;
  }
  .hero-image > img {
    height: 440px;
  }
  .hero-actions {
    gap: 14px;
  }
  .hero h1 {
    font-size: 54px;
  }
  .card-photo img {
    height: 200px;
  }
  .journal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-copy {
    padding: 35px;
  }
  .feature-copy h2 {
    font-size: 31px;
  }
  .finder-bottom {
    flex-wrap: wrap;
  }
  .recipe-layout {
    grid-template-columns: 280px 1fr;
    gap: 30px;
  }
  .footer-inner {
    flex-wrap: wrap;
  }
}
@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .topline {
    font-size: 9px;
    padding-block: 5px;
  }
  .header {
    min-height: 112px;
    flex-wrap: wrap;
    gap: 7px 12px;
    padding-block: 12px;
  }
  .brand {
    font-size: 22px;
  }
  .brand-icon {
    font-size: 34px;
  }
  .brand small {
    font-size: 8px;
  }
  .header nav {
    order: 5;
    width: 100%;
    justify-content: space-between;
    font-size: 11px;
    padding-top: 8px;
  }
  .nav-save {
    margin-right: auto;
    font-size: 19px;
  }
  .nav-save span {
    display: none;
  }
  .bag {
    font-size: 22px;
    padding-right: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 29px 30px;
  }
  .hero h1 {
    font-size: 51px;
    line-height: 1.4;
    letter-spacing: -2px;
    margin-block: 12px;
  }
  .hero-copy > p {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .hero-copy > p br {
    display: none;
  }
  .hero-actions {
    gap: 18px;
  }
  .btn {
    padding: 12px 16px;
    font-size: 11px;
  }
  .under-link {
    font-size: 11px;
  }
  .hero-note {
    margin-top: 19px;
    gap: 9px;
    font-size: 9px;
  }
  .hero-image > img {
    height: 330px;
    border-top-left-radius: 100px;
  }
  .round-stamp {
    width: 75px;
    height: 75px;
    top: -13px;
    right: 8px;
    font-size: 9px;
  }
  .round-stamp b {
    font-size: 12px;
  }
  .photo-caption {
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 10px 15px;
  }
  .photo-caption strong {
    font-size: 15px;
  }
  .values .wrap {
    gap: 10px;
    justify-content: center;
    font-size: 9px;
    flex-wrap: wrap;
    padding-block: 12px;
  }
  .values .wrap span:last-child {
    display: none;
  }
  .finder {
    padding-block: 38px;
  }
  .section-heading {
    gap: 10px;
    align-items: start;
    margin-bottom: 22px;
  }
  .section-heading p {
    font-size: 11px;
  }
  .finder .section-heading {
    flex-direction: column;
  }
  h2 {
    font-size: 26px;
  }
  #finder-form {
    padding: 19px 16px 10px;
  }
  .ingredient-chips {
    gap: 8px;
    margin-bottom: 18px;
  }
  .chip {
    padding: 8px 12px;
    font-size: 11px;
    gap: 7px;
  }
  .chip span {
    font-size: 17px;
  }
  .finder-bottom {
    gap: 12px;
  }
  .finder-bottom label {
    min-width: 0;
    width: calc(50% - 6px);
  }
  .finder-bottom .btn {
    width: 100%;
    margin: 5px 0 0;
  }
  .reset {
    margin-inline: auto;
    padding: 2px;
  }
  .recipe-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .filters {
    gap: 2px;
  }
  .filters button {
    padding: 6px 12px;
    font-size: 11px;
  }
  .search-box input {
    width: 100%;
  }
  .recipe-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .card-photo img {
    height: 240px;
  }
  .card-copy {
    padding-top: 12px;
  }
  .card-copy h3 {
    font-size: 21px;
  }
  .card-copy p {
    font-size: 13px;
  }
  .recipes-section {
    padding-bottom: 40px;
  }
  .section-number {
    font-size: 8px;
    margin-top: 8px;
  }
  .editorial-feature {
    grid-template-columns: 1fr;
  }
  .feature-image {
    order: 0;
  }
  .feature-image img {
    height: 260px;
    min-height: 0;
  }
  .feature-copy {
    padding: 30px 25px;
  }
  .feature-copy h2 {
    font-size: 32px;
  }
  .journal {
    padding-block: 42px;
  }
  .journal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .journal-index {
    font-size: 28px;
    float: left;
    margin-right: 10px;
  }
  .journal-card h3 {
    font-size: 20px;
  }
  .journal-card p {
    font-size: 13px;
  }
  .closing {
    padding-block: 30px;
  }
  .closing h2 {
    font-size: 23px;
  }
  .footer-inner {
    display: block;
  }
  .footer-links {
    margin-block: 20px;
  }
  .result-grid {
    grid-template-columns: 1fr;
  }
  .recipe-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .detail-photo,
  .article-photo {
    height: 260px;
  }
  .detail h1,
  .article-page h1 {
    font-size: 32px;
  }
  .detail-heading p,
  .lead {
    font-size: 14px;
  }
  .method ol li {
    font-size: 14px;
    padding-right: 40px;
  }
  .article-body {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}


/* Editorial expansion and accessible utility controls. */
@font-face {
  font-family: 'Mawgoud Symbols';
  src: url('assets/symbols.woff') format('woff');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+2190-21FF, U+2661, U+2665, U+2713, U+00D7, U+2637, U+2315, U+2733, U+274B;
}
body { font-family: 'Mawgoud Symbols', 'Mawgoud Arabic', 'Tahoma', sans-serif; }
.circle-arrow, .btn > span { font-family: 'Mawgoud Symbols', sans-serif; }
.page-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-block: 15px; }
.finder-bottom .strict-label { width: auto; min-width: 0; display: flex; align-items: center; gap: 7px; padding-block: 11px; font-size: 11px; }
.strict-label input { width: 17px; height: 17px; accent-color: var(--green); }
.finder-bottom { flex-wrap: wrap; }
.toc { padding: 20px 24px; background: #eeefe1; border-radius: 10px; margin: 5px 0 28px; font-size: 13px; }
.toc ol { margin: 10px 0 0; padding-right: 20px; }
.toc a:hover { color: var(--orange); text-decoration: underline; }
.faq { margin-block: 30px; }
.faq h2 { font-size: 25px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 15px; }
.faq summary { cursor: pointer; font-size: 14px; font-weight: bold; }
.faq p { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.related { margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--line); }
.related h2 { font-size: 25px; }
.related-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.related-grid a { display: flex; align-items: center; gap: 18px; font-size: 14px; background: #eeefe1; padding: 12px; border-radius: 8px; }
.related-grid img { width: 95px; height: 75px; border-radius: 6px; }
.sources { background: #f0f0e8; border-radius: 8px; padding: 20px; font-size: 13px; }
.sources a { text-decoration: underline; }
.shopping-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
#recipe-count { white-space: nowrap; }
.recipe-toolbar { flex-wrap: wrap; }
.journal-grid { row-gap: 38px; }
@media (max-width:680px) {
  .related-grid { grid-template-columns: 1fr; }
  .finder-bottom .strict-label { width: 100%; justify-content: center; }
  .footer-links { flex-wrap: wrap; }
}
@media print {
  body { background: white; color: black; font-size: 12pt; }
  .topline, .header, footer, .page-actions, .back, .related, .skip, #toast, dialog, .ingredients-box .btn, main > .text-link { display: none !important; }
  .wrap { width: 100%; max-width: none; }
  .detail { padding: 0; }
  .detail h1 { font-size: 24pt; }
  .detail-photo, .image-note { display: none; }
  .recipe-layout { display: block; margin-block: 12px; }
  .ingredients-box { background: none; border: 1px solid #aaa; padding: 12px; break-inside: avoid; }
  .ingredients-box ul { columns: 2; }
  .method { margin-top: 15px; }
  .method li, .faq details { break-inside: avoid; }
  select { border: 0; appearance: none; }
}

/* Expandable pantry and larger recipe collection. */
[hidden] { display: none !important; }
.ingredient-drawer { width: 100%; }
.pantry-drawer { border: 1px solid #cbd2c0; border-radius: 18px; background: #fffdf6; }
.pantry-drawer > summary { padding: 22px 26px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; list-style: none; }
.pantry-drawer > summary::after { content: '+'; font-size: 28px; color: #344b31; }
.pantry-drawer[open] > summary::after { content: '−'; }
.pantry-drawer summary::-webkit-details-marker { display: none; }
.pantry-drawer summary small { display: block; color: #68715e; font-size: 12px; margin-top: 5px; }
#ingredient-count { font-size: 12px; color: #68715e; margin-inline-start: auto; }
.drawer-inside { border-top: 1px solid #e0e4d6; padding: 24px; }
.ingredient-search-label { display: grid; gap: 8px; font-weight: 700; }
.ingredient-search-label input { width: 100%; padding: 13px 16px; border: 1px solid #cbd2c0; border-radius: 10px; background: white; font: inherit; font-weight: 400; color: #293c27; }
.ingredient-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.ingredient-group { border: 1px solid #e0e4d6; border-radius: 12px; background: #faf9f2; }
.ingredient-group > summary { cursor: pointer; padding: 15px; font-weight: 700; }
.ingredient-group > summary span { font-size: 12px; color: #7b826e; margin-inline-start: 8px; }
.ingredient-group .ingredient-chips { padding: 6px 14px 16px; margin: 0; gap: 8px; }
.ingredient-group .chip { font-size: 13px; padding: 8px 13px; min-height: 42px; }
.selected-ingredients { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
.selected-chip { border: 1px solid #344b31; border-radius: 100px; background: #344b31; color: #fffdf6; padding: 8px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.selected-chip span { margin-inline-start: 8px; }
.recipe-toolbar { flex-wrap: wrap; align-items: center; gap: 16px; }
.filters { flex-wrap: wrap; flex: 1 1 100%; gap: 8px; }
.filters button { white-space: nowrap; }
.cuisine-control { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.cuisine-control select { font: inherit; background: #fffdf6; border: 1px solid #d3d8c9; border-radius: 9px; padding: 10px; color: #344b31; }
.load-more-wrap { text-align: center; margin-top: 30px; }
.cuisine-tag { display: inline-block; margin: 12px 0; padding: 5px 12px; border-radius: 20px; background: #ecebdc; color: #344b31; font-size: 13px; }
summary:focus-visible, .chip:focus-visible, .selected-chip:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #ad5b35; outline-offset: 4px; }
@media (max-width: 640px) {
  .ingredient-groups { grid-template-columns: 1fr; }
  .pantry-drawer > summary { padding: 17px; flex-wrap: wrap; gap: 8px; }
  .pantry-drawer > summary > span:first-child { flex: 1 1 75%; }
  #ingredient-count { margin-inline-start: 0; }
  .drawer-inside { padding: 15px; }
  .filters { flex-wrap: wrap; overflow: visible; }
  .filters button { padding: 8px 12px; font-size: 12px; }
  .cuisine-control { width: 100%; justify-content: space-between; }
  .search-box { width: 100%; }
}
