@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(fonts/playfair-display-cyrillic.woff2?v=c108681cba6a9820) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(fonts/playfair-display-vietnamese.woff2?v=ef6446229b59773e) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(fonts/playfair-display-latin-ext.woff2?v=42898ad49a6b23f3) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(fonts/playfair-display-latin.woff2?v=e0c764a8e9e1cce9) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Shared layout, navigation and recipe components. Font files are versioned above. */
:root {
  color-scheme: light;
  --bg: #3b0612;
  --panel: #4b0c19;
  --card: #4f0e1c;
  --border: rgba(255,255,255,.12);
  --text: #fff;
  --muted: #f1d9de;
  --brand: #ffd9e2;
  --accent: #ff9ab3;
  --search-height: 30px;
  --heading-font: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
  --heading-gradient: linear-gradient(90deg,#fff 0%,#ffe5ec 45%,#ffd4e1 100%);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0; padding: 0;
  background: radial-gradient(1100px 600px at 15% -10%,#5b0f1f 0%,transparent 60%),
    radial-gradient(900px 800px at 110% 20%,#4a0d18 0%,transparent 50%),
    linear-gradient(180deg,var(--bg) 0%,#2a0410 100%);
  color: var(--text);
  font: 16px/1.6 system-ui,Segoe UI,Roboto,Arial,sans-serif;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }
.site-layout {
  display: grid; grid-template-columns: 320px minmax(0,1fr);
  grid-template-areas: 'header header' 'aside main' 'footer footer';
  gap: 16px; max-width: 1300px; margin: 0 auto; padding: 8px 16px 16px;
}
.site-header { grid-area: header; display: flex; align-items: center; justify-content: space-between; padding: 4px 0; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 1 auto; min-width: 0; color: var(--brand); }
.site-brand:hover { text-decoration: none; }
.site-brand-icon { display: block; width: 42px; height: 42px; flex: 0 0 42px; }
.site-brand-name {
  font: 800 20px/1.05 var(--heading-font); letter-spacing: .3px;
  background: linear-gradient(180deg,#fff 0%,#ffe7ee 70%,#ffd2e0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 2px 18px rgba(255,160,185,.18);
}
.button, .menu-toggle, .site-search button {
  align-items: center; justify-content: center;
  color: #fff; font-weight: 700; cursor: pointer; font-size: 16px;
}
.button, .site-search button {
  display: inline-flex;
  border: 1px solid var(--border); background: rgba(0,0,0,.22);
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.button { padding: 10px 12px; border-radius: 12px; }
.button:disabled { opacity: .6; cursor: default; }
.button--primary { background: rgba(255,154,179,.25); }
.site-sidebar { grid-area: aside; }
.site-nav { position: static; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.28); display: block; width: 100%; }
.language-switcher { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.language-link { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: #ffe5eb; font-size: 12px; overflow: hidden; padding: 0; }
.language-link img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.language-link.is-active { outline: 2px solid var(--accent); outline-offset: 1px; }
.site-search input[type="text"] { flex: 1; margin-bottom: 16px; height: var(--search-height); line-height: var(--search-height); padding: 0 8px; border: 1px solid var(--border); border-radius: 6px 0 0 6px; background: rgba(0,0,0,.18); color: #fff; font-size: 14px; }
.site-search input[type="text"]::placeholder { color: #f6dae1; }
.site-search button { height: var(--search-height); padding: 0 8px; font-size: 14px; border-left: 0; border-radius: 0 6px 6px 0; }
.nav-sections { list-style: none; margin: 0; padding: 0; }
.nav-sections > .nav-section-title { margin-top: 6px; color: #ffe9ee; font-size: 20px; font-weight: 800; }
.nav-groups { list-style: none; margin: 2px 0 6px; padding: 0; }
.nav-groups > .nav-group { margin: 4px 0 6px; }
.nav-group-toggle { display: flex; align-items: flex-start; justify-content: space-between; width: 100%; gap: 8px; padding: 6px 8px; border-radius: 12px; background: rgba(0,0,0,.12); border: 1px solid var(--border); color: #ffe5ea; cursor: pointer; }
.nav-group-toggle:hover { background: rgba(0,0,0,.18); }
.nav-group-label { font-size: 16px; font-weight: 700; color: #ffe5ea; flex: 1 1 auto; min-width: 0; display: block; text-align: left; white-space: normal; }
.nav-group-arrow { width: 22px; height: 22px; min-width: 22px; border-radius: 50%; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; position: relative; flex: 0 0 22px; align-self: center; }
.nav-group-arrow::before { content: ''; display: block; width: 6px; height: 6px; border-right: 2px solid #ffe5ea; border-bottom: 2px solid #ffe5ea; transform: rotate(45deg); transition: transform .15s ease; }
.nav-group-toggle[aria-expanded="true"] .nav-group-arrow::before { transform: rotate(225deg); }
.nav-links { list-style: none; margin: 6px 0 8px 12px; padding: 0; }
.nav-links > .nav-link { margin: 2px 0; }
.nav-links > .nav-link > a { font-size: 16px; font-weight: 400; color: #ffe1ea; }
.nav-links > .nav-link > a.is-active { color: #fff; font-weight: 700; text-decoration: underline; }
.site-main { grid-area: main; min-width: 0; }
.content-page h1, .recipe h1, .site-main > h1, .recipe h2, .popularity-heading {
  font-family: var(--heading-font); font-weight: 800; line-height: 1.2;
  background: var(--heading-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.content-page h1, .recipe h1, .site-main > h1 { font-size: 40px; margin: 0 0 .5em; letter-spacing: .2px; text-shadow: 0 2px 20px rgba(255,180,200,.25); }
.content-page .intro { margin: 12px 0 18px; color: #ffe0e6; }
.recipe-quicklinks { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 18px; }
.recipe-quicklinks a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.recipe #ingredients, .recipe #instructions { scroll-margin-top: 90px; }
.recipe h2 { margin: 10px 0 8px; font-size: 26px; text-shadow: 0 2px 18px rgba(255,170,195,.25); }
.related-recipes { margin-top: 12px; padding-top: 6px; }
.recipe-image { width: 100%; max-height: 520px; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); margin: 8px 0; box-shadow: 0 10px 26px rgba(0,0,0,.38); }
.recipe-grid { display: grid; gap: 14px; grid-template-columns: repeat(2,1fr); }
.recipe-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 24px rgba(0,0,0,.35); transition: transform .08s ease; }
.recipe-card:hover { transform: translateY(-2px); }
.recipe-card-image { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; object-position: center; }
.recipe-card-body { padding: 12px; }
.recipe-card h3 { margin: .2em 0 .1em; font-size: 16px; color: #fff; }
.recipe-card .text-small { font-size: 12px; }
.text-muted { color: #f0c9d2; }
.home-category { content-visibility: auto; contain-intrinsic-size: 620px; }
.category-link { margin-top: 8px; }
.popularity-heading { grid-column: 1 / -1; margin: 12px 0 0; font-size: 28px; text-shadow: 0 2px 16px rgba(255,170,195,.22); }
.load-more-sentinel { height: 1px; }
.recipe-panels { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 14px 0 20px; }
.recipe-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 12px; box-shadow: 0 8px 22px rgba(0,0,0,.32); }
.recipe-panel--full { grid-column: 1 / -1; }
.recipe-value { color: #fff; }
.section-overview { margin-bottom: 8px; }
.rating-scale { width: 4cm; max-width: none; display: flex; gap: 4px; }
.rating-segment { height: 8px; flex: 1; border-radius: 4px; background: rgba(255,255,255,.12); border: 1px solid var(--border); }
.rating-segment.is-filled { background: linear-gradient(180deg,#ff82a3,#ffc1d1); }
.preparation-summary { margin: 6px 0 12px; color: #ffdbe4; }
.recipe-fact { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.recipe-fact--origin { margin-top: 8px; }
.recipe-fact-label { min-width: 180px; color: #ffd7e1; font-weight: 700; }
.instruction-step { display: flex; gap: 8px; margin: 6px 0; }
.step-number { min-width: 2ch; font-weight: 800; color: #ffb3c6; }
.step-text { flex: 1; }
.dietary-row { display: flex; align-items: center; gap: 8px; }
.dietary-marker { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); font-weight: 800; }
.dietary-marker.is-yes { background: rgba(50,215,75,.25); color: #fff; }
.dietary-marker.is-no { background: rgba(255,59,48,.25); color: #ffd0d0; }
.recipe-list { list-style: disc; padding-left: 18px; margin: 0; }
.recipe-list--alternate-names { padding: 0; margin: 0 0 0 18px; }
.ingredient-list li { margin: 4px 0; }
.ingredient-line { display: grid; grid-template-columns: minmax(140px,1fr) auto auto; column-gap: 10px; align-items: baseline; }
.ingredient-name { min-width: 0; }
.ingredient-quantity { white-space: nowrap; }
.ingredient-optional { white-space: nowrap; font-style: italic; color: #ffd3de; }
.ingredient-notes { display: block; margin-top: 2px; color: #ffe0e7; font-size: .95em; }
.ad-spacer { height: 25px; }
.ad-placeholder { margin: 18px 0; border: 1px dashed var(--border); border-radius: 12px; padding: 12px; text-align: center; color: #ffd7e1; background: transparent; }
.site-footer { grid-area: footer; margin-top: 24px; color: #ffcedb; border-top: 1px solid var(--border); padding: 12px 0; }
.menu-toggle { display: none; }
.age-gate { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483647; padding: 10px 14px; background: linear-gradient(180deg,rgba(0,0,0,.55),rgba(0,0,0,.75)); border-top: 1px solid var(--border); backdrop-filter: blur(4px); }
.age-gate-inner { max-width: 1300px; margin: 0 auto; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.age-gate p { margin: 0; color: #fff; font-weight: 700; }
.age-gate-actions { display: flex; gap: 8px; }
.breadcrumbs { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.breadcrumb-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; list-style: none; margin: 0 0 3px; padding: 0; }
.breadcrumb-trail li { display: inline-flex; align-items: center; }
.breadcrumb-trail li + li::before { content: '›'; margin-right: 8px; color: var(--accent); }
.breadcrumb-trail a { color: var(--muted); }
.breadcrumb-trail a:hover { color: var(--accent); }
.breadcrumb-trail [aria-current="page"] { color: var(--text); font-weight: 600; }
@media (min-width: 900px) { .recipe-panels { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .recipe-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 900px) {
  .site-layout { grid-template-columns: 1fr; grid-template-areas: 'header' 'aside' 'main' 'footer'; }
  .site-nav { display: none; position: relative; }
  .site-nav.is-open { display: block; margin-bottom: 12px; }
  .site-header { position: sticky; top: 0; z-index: 1001; }
  .site-brand-name { font-size: 18px; overflow-wrap: anywhere; }
  .site-header.is-scrolled .site-brand { visibility: hidden; opacity: 0; pointer-events: none; }
  .menu-toggle { display: inline-flex; flex: 0 0 auto; margin-left: auto; border: 1px solid transparent; border-radius: 12px; box-shadow: none; background: transparent; padding: 12px 10px; }
  .site-header.is-scrolled .menu-toggle { background: var(--bg); border-color: var(--border); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
  .ingredient-line { grid-template-columns: 1fr auto auto; }
}
@media (max-width: 600px) {
  .age-gate-inner { flex-direction: column; align-items: stretch; gap: 8px; }
  .age-gate-actions { justify-content: stretch; }
  .age-gate-actions .button { width: 100%; }
}
