@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* === кукинг — design tokens === */
:root {
  --cream:        #F5EDDE;
  --cream-deep:   #EFE4D0;
  --milk:         #FBF6EC;
  --paper:        #FFFCF5;
  --ink:          #2A1F18;
  --ink-soft:     #4A3B2E;
  --muted:        #8B7866;
  --muted-2:      #B5A593;
  --rule:         #E6D9C2;
  --rule-soft:    #EFE5D2;
  --terracotta:   #B85440;
  --terra-deep:   #9A4231;
  --ochre:        #C99A3F;
  --ochre-soft:   #E2C285;
  --leaf:         #6E7F4A;

  --serif: "Newsreader", "Georgia", serif;
  --sans:  "DM Sans", "Inter", system-ui, sans-serif;

  --t-display: 56px;
  --t-h1:  44px;
  --t-h2:  32px;
  --t-h3:  22px;
  --t-body: 16px;
  --t-small: 14px;
  --t-xs:  12px;

  --gap-xs: 6px;
  --gap-s:  12px;
  --gap-m:  20px;
  --gap-l:  32px;
  --gap-xl: 56px;

  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 14px;

  --shell-w: 1280px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

/* === Utility classes === */
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.italic { font-style: italic; }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}
.dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ochre);
  display: inline-block;
  vertical-align: middle;
}

/* === Layout shell === */
.shell {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 32px;
}
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* === Utility bar (top dark strip) === */
.utility-bar {
  background: var(--ink);
  color: var(--cream-deep);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
}
.utility-bar .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}
.utility-bar a { opacity: 0.8; }
.utility-bar a:hover { opacity: 1; color: var(--ochre-soft); }
.utility-links,
.utility-meta {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* === Masthead === */
.masthead {
  background: var(--milk);
  border-bottom: 1px solid var(--rule);
}
.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px 0 24px;
  gap: 32px;
}
.masthead-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  max-width: 320px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.masthead-search:hover { border-color: var(--ochre); }
.masthead-search input[type="search"] {
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  color: var(--ink);
  width: 100%;
  min-width: 0;
  padding: 0;
}
.masthead-search input[type="search"]::placeholder { color: var(--muted); }
.masthead-search svg { flex-shrink: 0; color: var(--muted); }
.masthead-search button[type="submit"] {
  padding: 0;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  flex-shrink: 0;
}
.masthead-logo { text-align: center; }
.masthead-logo .word {
  font-family: var(--serif);
  font-size: 48px;
  letter-spacing: -0.02em;
  line-height: 1;
  font-style: italic;
  color: var(--ink);
}
.masthead-logo .word b {
  font-weight: 600;
  font-style: normal;
  color: var(--terracotta);
}
.masthead-logo .tag {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
.masthead-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}
.iconbtn {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--ink-soft);
  position: relative;
}
.iconbtn:hover { border-color: var(--rule); background: var(--paper); }

/* === Primary nav === */
.primary-nav {
  background: var(--milk);
  border-bottom: 1px solid var(--rule);
}
.primary-nav .shell { display: flex; justify-content: center; }
.primary-nav ul {
  display: flex;
  gap: 0;
}
.primary-nav li { display: block; }
.primary-nav a {
  display: block;
  padding: 16px 18px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.primary-nav a:hover { color: var(--terracotta); }
.primary-nav a.active {
  border-bottom-color: var(--terracotta);
  color: var(--ink);
}

/* === Meal type chips strip === */
.meal-strip {
  background: var(--cream);
  padding: 28px 0 8px;
  border-bottom: 1px solid var(--rule-soft);
}
.meal-strip .row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}
.meal-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 4px 16px;
  border-radius: var(--radius-m);
  text-align: center;
  cursor: pointer;
  color: var(--ink);
  border: none;
  background: transparent;
  text-decoration: none;
}
.meal-chip:hover { background: var(--milk); }
.meal-chip .thumb {
  width: 88px; height: 88px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  border: 2px solid var(--paper);
  box-shadow: 0 1px 0 var(--rule);
  background: var(--cream-deep);
}
.meal-chip .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.meal-chip .thumb-ph {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.meal-chip .lbl-t {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  display: block;
}
.meal-chip .lbl-s {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: block;
}

/* === Page container === */
.page-body { padding: 24px 0 80px; }
.breadcrumbs {
  padding: 18px 0 4px;
  font-size: var(--t-small);
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumbs a:hover { color: var(--terracotta); }
.breadcrumbs .sep { color: var(--muted-2); }

/* === Buttons === */
.btn-k {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--terracotta);
  color: white;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid var(--terracotta);
  transition: background 0.15s;
  text-decoration: none;
}
.btn-k:hover { background: var(--terra-deep); border-color: var(--terra-deep); color: white; }
.btn-k.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-k.ghost:hover { background: var(--paper); border-color: var(--ink-soft); }
.btn-k.dark { background: var(--ink); border-color: var(--ink); }
.btn-k.dark:hover { background: #0F0A07; border-color: #0F0A07; }
.btn-k.sm { padding: 8px 14px; font-size: 13px; }
.btn-k.lg { padding: 16px 30px; font-size: 15px; }

/* Override DLE default btn in our template */
a.btn, button.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--terracotta);
  color: white;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--terracotta);
  text-decoration: none;
}
a.btn:hover, button.btn:hover {
  background: var(--terra-deep);
  color: white;
}

/* === Tag pills === */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-soft);
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.tag-pill:hover { border-color: var(--ochre); color: var(--terracotta); }

/* === Section headers === */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 56px 0 28px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head .titles { flex: 1 1 auto; min-width: 0; }
.section-head .titles .eyebrow { display: block; margin-bottom: 6px; }
.section-head .titles h2 {
  font-family: var(--serif);
  font-size: 34px;
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.section-head .see-all {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.section-head .see-all:hover { color: var(--terracotta); }

/* === Hero magazine card (main.tpl hero zone) === */
.hero-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-l);
  padding: 28px;
  margin-bottom: 48px;
}
.hero-card .hero-thumb {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--cream-deep);
}
.hero-card .hero-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-card h1 {
  font-family: var(--serif);
  font-size: var(--t-display);
  line-height: 1.05;
  margin: 0 0 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero-card .lead-p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 0 22px;
}
.hero-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.hero-meta .hm-item {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.hero-meta .hm-item b { color: var(--ink); font-weight: 600; }

/* === Services strip === */
.services-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 48px 0;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-l);
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
  color: var(--ink);
}
.service-card:hover { border-color: var(--terracotta); background: var(--milk); }
.service-card .svc-ico {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--cream-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  flex-shrink: 0;
  font-size: 22px;
}
.service-card .svc-lbl b {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}
.service-card .svc-lbl span {
  font-size: 13px;
  color: var(--muted);
}

/* === Recipe card (shortstory) === */
.rc {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.rc-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.rc-author-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ochre-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
  color: var(--ink);
  text-transform: uppercase;
}
.rc-author-name { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.rc-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  overflow: hidden;
  position: relative;
  background: var(--cream-deep);
}
.rc-thumb .news_image,
.rc-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.rc-thumb .savetag {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(255,252,245,0.92);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  z-index: 1;
}
.rc-thumb .savetag:hover { color: var(--terracotta); }
.rc-thumb .cat-pill {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ink);
  color: var(--cream-deep);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  z-index: 1;
}
.rc-thumb .time-pill {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(255,252,245,0.92);
  backdrop-filter: blur(4px);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 1;
}
.rc-body { padding: 16px 2px 0; display: flex; flex-direction: column; gap: 6px; }
.rc-cat {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}
.rc-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.18;
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.rc-title:hover { color: var(--terra-deep); }
.rc-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.rc-meta .sep { color: var(--muted-2); }
.rc-rating { display: inline-flex; gap: 4px; align-items: center; color: var(--ochre); }
.rc-desc { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }

/* Cards grid layouts */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 28px;
}
.cards-grid.three { grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
.cards-grid.four  { grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }

/* Ad slot placeholder */
.ad-slot {
  border: 1px dashed var(--muted-2);
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(139,120,102,0.06) 14px 15px);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-m);
  min-height: 110px;
}
.ad-slot .ad-label { font-weight: 600; color: var(--ink-soft); margin-bottom: 4px; font-size: 11px; font-family: monospace; }
.ad-slot.side { aspect-ratio: 1 / 1.1; }
.ad-slot.inline { min-height: 140px; margin: 28px 0; }

/* === Sidebar === */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.side-block {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  padding: 22px 22px 24px;
}
.side-block h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side-block h3::after {
  content: "";
  display: block;
  width: 28px; height: 2px;
  background: var(--terracotta);
}
.cat-list { }
.cat-list li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 14px;
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a { color: var(--ink-soft); display: flex; gap: 10px; align-items: center; }
.cat-list a:hover { color: var(--terracotta); }
.cat-list .count { color: var(--muted-2); font-size: 12px; }

/* DLE catmenu in sidebar */
.side-catmenu ul { display: flex; flex-direction: column; }
.side-catmenu li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 14px;
}
.side-catmenu li:last-child { border-bottom: none; }
.side-catmenu a { color: var(--ink-soft); }
.side-catmenu a:hover { color: var(--terracotta); }

/* DLE topnews in sidebar */
.side-top-news li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
  align-items: center;
}
.side-top-news li:last-child { border-bottom: none; }
.side-top-news .tn-thumb {
  width: 64px; height: 64px;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--cream-deep);
  flex-shrink: 0;
}
.side-top-news .tn-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-top-news .tn-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}
.side-top-news .tn-title:hover { color: var(--terra-deep); }

/* Sidebar newsletter box */
.side-newsletter {
  background: var(--ink);
  color: var(--cream-deep);
  border-radius: var(--radius-m);
  padding: 24px;
  text-align: center;
}
.side-newsletter h4 {
  font-family: var(--serif);
  font-size: 20px;
  color: white;
  margin: 0 0 8px;
}
.side-newsletter p { font-size: 13px; color: rgba(245,237,222,0.7); margin: 0 0 16px; }
.side-newsletter input[type="email"] {
  width: 100%;
  border: 1px solid rgba(245,237,222,0.2);
  background: rgba(255,255,255,0.08);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  outline: none;
  margin-bottom: 10px;
}
.side-newsletter input::placeholder { color: rgba(245,237,222,0.4); }
.side-newsletter button {
  width: 100%;
  padding: 11px;
  background: var(--terracotta);
  color: white;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  border: none;
  cursor: pointer;
}
.side-newsletter button:hover { background: var(--terra-deep); }

/* === Magazine hubs grid === */
.hubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hub-card {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  display: block;
  background: var(--cream-deep);
  text-decoration: none;
}
.hub-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hub-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,31,24,0) 35%, rgba(42,31,24,0.80) 100%);
}
.hub-card .hub-meta {
  position: absolute;
  left: 22px; right: 22px; bottom: 20px;
  color: white;
  z-index: 1;
}
.hub-card .hub-meta .eyebrow { color: var(--ochre-soft); display: block; margin-bottom: 8px; }
.hub-card .hub-meta h3 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0 0 6px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hub-card .subtags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 12px;
}
.hub-card .subtags span {
  padding: 3px 9px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* === Author cards strip === */
.authors-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.author-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-l);
  padding: 22px 18px;
  text-align: center;
}
.author-card .av {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 12px;
  background: var(--ochre-soft);
  color: var(--ink);
}
.author-card .av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.author-card .au-name { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.author-card .au-role { font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.author-card .au-stats { font-size: 12px; color: var(--ink-soft); }
.author-card .au-stats b { color: var(--ink); font-weight: 600; }

/* === Tag cloud === */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 32px 36px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-l);
  align-items: baseline;
  line-height: 1.6;
}
.tag-cloud .tc-item {
  font-family: var(--serif);
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 1px dotted transparent;
}
.tag-cloud .tc-item:hover { color: var(--terracotta); border-color: var(--terracotta); }
.tag-cloud .tc-s1 { font-size: 16px; }
.tag-cloud .tc-s2 { font-size: 20px; font-weight: 500; }
.tag-cloud .tc-s3 { font-size: 26px; font-style: italic; color: var(--ink); }
.tag-cloud .tc-s4 { font-size: 18px; }
.tag-cloud .tc-sep { color: var(--muted-2); font-size: 14px; }

/* === Editorial pull quote === */
.pull-quote {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.3;
  font-style: italic;
  color: var(--ink);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px 0;
  margin: 48px 0;
  text-align: center;
  letter-spacing: -0.01em;
}
.pull-quote .pq-author {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 18px;
}

/* === Article row (editorial mixed with recipes) === */
.article-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: start;
}
.article-side-stack { display: flex; flex-direction: column; gap: 28px; }
.rc.article .rc-thumb { aspect-ratio: 5/3; }
.rc.article-sm {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
}
.rc.article-sm .rc-thumb { aspect-ratio: 1/1; }
.rc.article-sm .rc-body { padding: 0; }

/* === Pagination (DLE navigation) === */
.navigation {
  margin: 40px 0 20px;
}
.navigation .pages {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.navigation .pages a,
.navigation .pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--paper);
  text-decoration: none;
}
.navigation .pages a:hover { border-color: var(--terracotta); color: var(--terracotta); }
.navigation .pages .current_page,
.navigation .pages span.current_page {
  background: var(--terracotta);
  color: white;
  border-color: var(--terracotta);
}
.page_next-prev {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}
.page_next-prev a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--paper);
}
.page_next-prev a:hover { border-color: var(--terracotta); color: var(--terracotta); }

/* === Full story (рецепт полностью) === */
.recipe-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin: 12px 0 40px;
  align-items: center;
}
.recipe-hero .rh-lead .rh-eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 14px;
}
.recipe-hero .rh-lead h1 {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1.03;
  margin: 0 0 16px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.recipe-hero .rh-lead .deck {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 24px;
}
.recipe-hero .rh-author {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.recipe-hero .rh-author .av {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ochre-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}
.recipe-hero .rh-author b { color: var(--ink); }
.recipe-hero .rh-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--cream-deep);
}
.recipe-hero .rh-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Stat bar */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  margin: 0 0 48px;
}
.stat-bar .sb-cell {
  padding: 20px 24px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-bar .sb-cell:last-child { border-right: none; }
.stat-bar .sb-k { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.stat-bar .sb-v { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--ink); }
.stat-bar .sb-v .sb-u { font-size: 13px; color: var(--muted); margin-left: 4px; font-family: var(--sans); }

/* Fullstory two-column layout */
.fullstory-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

/* Recipe steps */
.recipe-body { }
.recipe-body h2 {
  font-family: var(--serif);
  font-size: 32px;
  margin: 48px 0 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.recipe-body h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 32px 0 16px;
  font-weight: 500;
}
.recipe-body p { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin: 0 0 16px; }
.recipe-body ul, .recipe-body ol {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 24px;
}
.recipe-body li { color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
.recipe-body .tip-block {
  padding: 16px 20px;
  border-left: 2px solid var(--ochre);
  background: rgba(201,154,63,0.07);
  font-style: italic;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-soft);
  margin: 24px 0;
}

.recipe-steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 42px 0 8px;
}
.recipe-step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--rule);
}
.recipe-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.recipe-step > .recipe-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}
.recipe-step-content {
  min-width: 0;
}
.recipe-step-title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 500;
  margin: 2px 0 12px;
  color: var(--ink);
}
.recipe-step-description {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}
.recipe-step-image {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-m);
  margin: 18px 0 0;
  background: var(--cream-deep);
}
.recipe-step-tip {
  margin-top: 16px;
  padding: 14px 18px;
  border-left: 2px solid var(--ochre);
  background: rgba(201,154,63,0.08);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
}

/* Ingredients sticky card */
.ingr-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-l);
  padding: 28px;
  position: sticky;
  top: 24px;
}
.ingr-card h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 8px; font-weight: 500; }
.ingr-card .servings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.ingr-list { }
.ingr-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
  align-items: baseline;
  font-size: 14px;
}
.ingr-list li:last-child { border-bottom: none; }
.ingr-list .il-name { flex: 1; color: var(--ink-soft); }
.ingr-list .il-qty { font-family: var(--serif); color: var(--ink); font-size: 16px; }

/* === Rating block === */
.rating-block {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-l);
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 48px;
}
.rating-block .rb-big {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}
.rating-block .rb-stars { color: var(--ochre); font-size: 20px; letter-spacing: 2px; }
.rating-block .rb-count { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* DLE star rating display */
.rate_stars { color: var(--ochre); }
.rate_stars img { display: inline; }
.rate_like, .rate_like-dislike {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rate_like svg, .rate_like-dislike svg { color: var(--terracotta); }

/* === Comments === */
.comments-section { margin-top: 64px; }
.comments-section h2 {
  font-family: var(--serif);
  font-size: 32px;
  margin: 0 0 32px;
  font-weight: 500;
}
.comment {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.comment:last-child { border-bottom: none; }
.comment .com-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink-soft);
  font-weight: 600;
  flex-shrink: 0;
}
.comment .com-avatar img,
.comment .com-avatar .cover {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.comment .cover {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  display: block;
}
.comment .com-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.comment .com-name { font-weight: 600; color: var(--ink); font-size: 14px; }
.comment .com-date { font-size: 12px; color: var(--muted-2); }
.comment .com-body { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.comment .com-body .text { }
.comment .com-actions {
  margin-top: 10px;
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.comment .com-actions a:hover { color: var(--terracotta); }
.comment .meta { }
.comment .meta ul { display: flex; gap: 12px; flex-wrap: wrap; }
.comment .meta li { list-style: none; }

/* DLE comment structure adaptation */
.com_list .comment .com_info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.com_list .comment .com_info .avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--cream-deep);
  overflow: hidden;
  flex-shrink: 0;
}
.com_list .comment .com_user { flex: 1; }
.com_list .comment .com_user b { display: block; font-weight: 600; color: var(--ink); }
.com_list .comment .com_user .grey { font-size: 12px; color: var(--muted-2); }
.com_list .comment .com_content .text { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

/* Add comment form */
.addcomment .plus_icon {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--ink);
}
.addcomment .box_in { }
.addcomment h3 { font-family: var(--serif); font-size: 28px; margin: 0 0 24px; font-weight: 500; }
.addcomment .ui-form { display: flex; flex-direction: column; gap: 16px; }
.addcomment .form-group { display: flex; gap: 16px; }
.addcomment .combo_field { flex: 1; }
.addcomment input[type="text"],
.addcomment input[type="email"],
.addcomment textarea {
  font: inherit;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 12px 16px;
  border-radius: var(--radius-m);
  color: var(--ink);
  width: 100%;
  outline: none;
  font-size: 15px;
}
.addcomment input:focus,
.addcomment textarea:focus { border-color: var(--terracotta); }
.addcomment .form_submit {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.addcomment button[type="submit"],
.addcomment .btn-big {
  padding: 14px 28px;
  background: var(--terracotta);
  color: white;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  border: none;
  cursor: pointer;
}
.addcomment button:hover { background: var(--terra-deep); }

/* === Story tools (DLE elements in cards) === */
.story_icons { display: none; }
.story_tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.story_tools .category { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.story_tools .category a:hover { color: var(--terracotta); }
.story_tools .rate { margin-left: auto; }

/* Next/prev in fullstory */
.box.next-prev {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.box.next-prev a {
  padding: 11px 20px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--paper);
}
.box.next-prev a:hover { border-color: var(--terracotta); color: var(--terracotta); }
.box.next-prev a.right { margin-left: auto; }

/* === Search === */
.search-hero-block {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-l);
  padding: 36px;
  margin-bottom: 32px;
}
.big-search-form {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 2px solid var(--ink);
  padding: 0 0 14px;
  margin-bottom: 24px;
}
.big-search-form input[type="search"] {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--serif);
  font-size: 28px;
  flex: 1;
  color: var(--ink);
  padding: 0;
}
.big-search-form input::placeholder { color: var(--muted-2); font-style: italic; }
.big-search-form button { color: var(--ink); }

/* === Footer === */
.site-footer {
  background: var(--ink);
  color: var(--cream-deep);
  margin-top: 80px;
  padding: 64px 0 28px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-cols h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--ochre-soft);
}
.footer-cols ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-cols a { color: var(--cream-deep); opacity: 0.8; }
.footer-cols a:hover { opacity: 1; color: var(--ochre-soft); }
.footer-brand .foot-word {
  font-family: var(--serif);
  font-style: italic;
  font-size: 36px;
  color: white;
  line-height: 1;
}
.footer-brand .foot-word b { color: var(--ochre-soft); font-style: normal; font-weight: 600; }
.footer-brand p { color: rgba(245,237,222,0.6); font-size: 14px; line-height: 1.6; max-width: 280px; margin: 12px 0 0; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(245,237,222,0.12);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(245,237,222,0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(245,237,222,0.5); }
.footer-bottom a:hover { color: var(--ochre-soft); }

/* === Form inputs === */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.input-k, .textarea-k, .select-k {
  font: inherit;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 12px 16px;
  border-radius: var(--radius-m);
  color: var(--ink);
  width: 100%;
  outline: none;
  font-size: 15px;
}
.input-k:focus, .textarea-k:focus, .select-k:focus {
  border-color: var(--terracotta);
  background: white;
}
.textarea-k { resize: vertical; min-height: 90px; line-height: 1.55; }

/* === DLE info/notice blocks === */
.dle-info { padding: 16px 0; }
#info { }

/* === DLE login block === */
.login_form { display: flex; align-items: center; gap: 8px; }
.login_form .logged-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--paper);
}
.login_form .logged-btn:hover { border-color: var(--ochre); }

/* === Misc / engine overrides === */
.grey { color: var(--muted); }
.clrfix::after { content: ""; display: table; clear: both; }
.quote, .title_quote { border-left-color: var(--terracotta); }
.scriptcode { background: var(--paper); border-color: var(--rule); }

/* === Responsive === */
@media (max-width: 1100px) {
  .layout-grid { grid-template-columns: 1fr 280px; gap: 32px; }
  .meal-strip .row { grid-template-columns: repeat(8, 1fr); }
  .meal-chip .thumb { width: 72px; height: 72px; }
  .hero-card h1 { font-size: 44px; }
  .authors-strip { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .shell { padding: 0 20px; }
  .layout-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .meal-strip .row { grid-template-columns: repeat(4, 1fr); }
  .hero-card { grid-template-columns: 1fr; gap: 24px; }
  .hero-card h1 { font-size: 36px; }
  .recipe-hero { grid-template-columns: 1fr; }
  .recipe-hero .rh-photo { aspect-ratio: 16/9; }
  .recipe-hero .rh-lead h1 { font-size: 40px; }
  .fullstory-grid { grid-template-columns: 1fr; }
  .ingr-card { position: static; }
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .masthead-inner { grid-template-columns: 1fr auto; gap: 16px; }
  .masthead-search { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .services-strip { grid-template-columns: repeat(2, 1fr); }
  .hubs-grid { grid-template-columns: repeat(2, 1fr); }
  .authors-strip { grid-template-columns: repeat(3, 1fr); }
  .article-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .shell { padding: 0 16px; }
  .cards-grid { grid-template-columns: 1fr; gap: 28px; }
  .cards-grid.three { grid-template-columns: 1fr; }
  .meal-strip .row { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .meal-chip .thumb { width: 60px; height: 60px; }
  .meal-chip .lbl-t { font-size: 13px; }
  .meal-chip .lbl-s { display: none; }
  .hero-card { padding: 18px; }
  .hero-card h1 { font-size: 28px; }
  .masthead-logo .word { font-size: 36px; }
  .footer-cols { grid-template-columns: 1fr; }
  .services-strip { grid-template-columns: 1fr; }
  .hubs-grid { grid-template-columns: 1fr; }
  .authors-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .recipe-hero .rh-lead h1 { font-size: 32px; }
  .primary-nav ul { flex-wrap: wrap; }
  .primary-nav a { padding: 12px 12px; font-size: 11px; }
  .section-head .titles h2 { font-size: 26px; }
  .rating-block { grid-template-columns: 1fr; }
}

/* ================================================================
   MOBILE COMPONENTS & RESPONSIVE LAYOUT (≤767px)
   Source: mobile.css from Anthropic design bundle
   ================================================================ */

/* ---- Mobile-only elements: hidden on desktop by default ---- */
.m-topbar,
.m-tabbar,
.m-meal-strip-m,
.m-recipe-wrap { display: none; }

.m-drawer,
.m-drawer-backdrop { display: none; }

@media (min-width: 768px) {
  .m-topbar,
  .m-tabbar,
  .m-meal-strip-m,
  .m-recipe-wrap,
  .m-drawer,
  .m-drawer-backdrop {
    display: none !important;
  }

  body { padding-bottom: 0 !important; }
}

/* === Mobile top bar === */
.m-topbar {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 30;
}
.m-topbar .row {
  display: grid;
  grid-template-columns: 40px 1fr 40px 40px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}
.m-topbar .logo {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  display: block;
}
.m-topbar .logo b { color: var(--terracotta); font-weight: 600; font-style: normal; }
.m-topbar .iconbtn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); border-radius: 999px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.m-topbar .iconbtn:active { background: var(--milk); }

/* === Mobile bottom tab bar === */
.m-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 4px 22px;
  z-index: 40;
}
.m-tabbar .tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 4px;
  color: var(--muted); font-size: 10px;
  letter-spacing: 0.04em; font-weight: 500;
  text-decoration: none;
}
.m-tabbar .tab.active { color: var(--terracotta); }
.m-tabbar .tab.fab { padding: 0; }
.m-tabbar .tab.fab .ico {
  width: 48px; height: 48px;
  background: var(--terracotta); color: white;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: -12px;
  box-shadow: 0 6px 14px rgba(184,84,64,0.32);
}
.m-tabbar .tab.fab .lbl { font-size: 10px; color: var(--terracotta); margin-top: 2px; }

/* === Slide-in drawer menu === */
.m-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(42,31,24,0.45);
  z-index: 60;
}
.m-drawer {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: 86%; max-width: 340px;
  background: var(--cream);
  z-index: 61;
  padding: 16px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.m-drawer.open { transform: translateX(0); }
.m-drawer .brand {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 4px 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 16px;
}
.m-drawer .brand .word {
  font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--ink);
}
.m-drawer .brand .word b { color: var(--terracotta); font-weight: 600; font-style: normal; }
.m-drawer .brand .close-btn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 22px; line-height: 1;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.m-drawer .brand .close-btn:active { background: var(--cream-deep); }
.m-drawer .sect { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.m-drawer .sect h4 {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px; font-weight: 600;
}
.m-drawer .sect a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 4px; font-size: 15px; color: var(--ink);
  border-bottom: 1px solid rgba(42,31,24,0.06);
}
.m-drawer .sect a:last-child { border-bottom: none; }
.m-drawer .sect .count { color: var(--muted-2); font-size: 12px; }
.m-drawer .login { padding: 20px 0 0; }
.m-drawer .login a {
  display: block; padding: 14px;
  background: var(--ink); color: white;
  border-radius: 999px; font-size: 14px; font-weight: 500;
  text-align: center;
}

/* === Mobile meal chips strip === */
.m-meal-strip-m {
  gap: 12px; padding: 16px;
  overflow-x: auto; scrollbar-width: none;
  background: var(--cream);
}
.m-meal-strip-m::-webkit-scrollbar { display: none; }
.m-meal-strip-m .m-meal {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 72px;
  text-decoration: none; color: var(--ink);
}
.m-meal-strip-m .m-meal .thumb {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; line-height: 1;
}
.m-meal-strip-m .m-meal .lbl { font-size: 12px; font-weight: 500; text-align: center; }

/* === Mobile recipe hero === */
.m-rec-hero {
  position: relative;
  aspect-ratio: 4 / 4.2;
  overflow: hidden;
  background: var(--cream-deep);
}
.m-rec-hero .hero-img { position: absolute; inset: 0; }
.m-rec-hero .hero-img a { display: block; width: 100%; height: 100%; }
.m-rec-hero .hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-rec-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,31,24,0.3) 0%, transparent 25%, transparent 50%, rgba(42,31,24,0.92) 100%);
  pointer-events: none;
}
.m-rec-hero .top-controls {
  position: absolute; top: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; z-index: 1;
}
.m-rec-hero .top-controls .iconbtn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,252,245,0.92); backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); text-decoration: none; border: none; cursor: pointer;
}
.m-rec-hero .top-controls .group { display: flex; gap: 8px; }
.m-rec-hero .meta {
  position: absolute; left: 18px; right: 18px; bottom: 22px;
  color: white; z-index: 1;
}
.m-rec-hero .meta .cat-badge {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ochre-soft); margin-bottom: 8px; display: block;
}
.m-rec-hero .meta .cat-badge a { color: inherit; text-decoration: none; }
.m-rec-hero .meta h1 {
  font-family: var(--serif);
  font-size: 28px; line-height: 1.1;
  margin: 0 0 14px;
  font-weight: 500; letter-spacing: -0.015em;
}
.m-rec-hero .meta .author-row {
  display: flex; gap: 8px; align-items: center;
  font-size: 12px; opacity: 0.9;
}
.m-rec-hero .meta .author-row .av {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ochre-soft); color: var(--ink);
  font-family: var(--serif); font-size: 10px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}

/* === Mobile stats bar === */
.m-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.m-stats .cell { padding: 14px 8px; border-right: 1px solid var(--rule); text-align: center; }
.m-stats .cell:last-child { border-right: none; }
.m-stats .k { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.m-stats .v { font-family: var(--serif); font-size: 18px; font-weight: 500; margin-top: 4px; }
.m-stats .v .u { font-size: 11px; color: var(--muted); }

/* === Mobile recipe tabs === */
.m-rec-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
  position: sticky; top: 60px; z-index: 20;
  overflow-x: auto; scrollbar-width: none;
}
.m-rec-tabs::-webkit-scrollbar { display: none; }
.m-rec-tabs .tab {
  padding: 14px 20px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  border: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap; background: none; cursor: pointer;
  font-family: var(--sans);
}
.m-rec-tabs .tab.active { color: var(--ink); border-color: var(--terracotta); }

/* === Mobile tab panels === */
.m-rec-panel { display: none; }
.m-rec-panel.active { display: block; }
.m-rec-panel .recipe-body-m { padding: 20px 16px; line-height: 1.75; color: var(--ink-soft); }
.m-rec-panel .recipe-body-m h2,
.m-rec-panel .recipe-body-m h3 { font-family: var(--serif); color: var(--ink); margin: 24px 0 12px; }
.m-rec-panel .recipe-steps {
  gap: 20px;
  margin: 28px 0 0;
}
.m-rec-panel .recipe-step {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 22px;
}
.m-rec-panel .recipe-step > .recipe-step-number {
  width: 42px;
  height: 42px;
  font-size: 18px;
}
.m-rec-panel .recipe-step-title {
  font-size: 21px;
  margin-top: 0;
}
.m-rec-panel .recipe-step-description {
  font-size: 15px;
  line-height: 1.7;
}
.m-rec-panel .recipe-step-image {
  max-height: 320px;
  margin-top: 14px;
}
.m-rec-panel .recipe-step-tip {
  font-size: 15px;
  padding: 12px 14px;
}

/* Mobile ingredients in tab panel */
.m-ingr-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 16px 8px;
}
.m-ingr-head h3 { font-family: var(--serif); font-size: 18px; margin: 0; font-weight: 500; }
.m-ingr-panel-body { padding: 0 16px 24px; }
.m-ingr-panel-body ul { list-style: none; padding: 0; margin: 0; }
.m-ingr-panel-body li {
  padding: 10px 0; border-bottom: 1px dashed var(--rule);
  font-size: 14px; color: var(--ink-soft);
}
.m-ingr-panel-body li:last-child { border-bottom: none; }

/* Mobile comments in tab panel */
.m-reviews-cta {
  padding: 24px 16px; text-align: center;
}
.m-reviews-cta .count { font-family: var(--serif); font-size: 18px; font-weight: 500; margin: 0 0 16px; }
.m-reviews-cta .btn-k { display: inline-flex; }

/* ================================================================
   @media ≤767px  — activate mobile layout
   ================================================================ */
@media (max-width: 767px) {

  /* Show mobile chrome */
  .m-topbar    { display: block; }
  .m-tabbar    { display: grid; }
  .m-meal-strip-m { display: flex; }
  .m-recipe-wrap  { display: block; }

  /* Hide desktop chrome */
  .utility-bar,
  .masthead,
  .primary-nav,
  .meal-strip { display: none !important; }

  /* Body & layout */
  body { padding-bottom: 90px; }
  .shell { max-width: 100% !important; padding: 0 !important; width: 100%; }
  .page-body { padding: 0 !important; }
  .layout-grid { display: block; }
  .sidebar { display: none !important; }
  .breadcrumbs { display: none; }

  /* Recipe card list — full-width single column */
  .cards-grid { grid-template-columns: 1fr; gap: 0; }
  .rc {
    border-radius: 0;
    border-bottom: 1px solid var(--rule);
    padding: 16px;
    margin: 0;
  }
  .rc .rc-thumb { border-radius: 12px; }

  /* Full-story page: hide desktop layout, show mobile layout */
  article.fullstory .recipe-hero,
  article.fullstory .stat-bar,
  article.fullstory .fullstory-grid,
  article.fullstory .fs-admin-bar { display: none !important; }
  article.fullstory { padding: 0; background: none; border: none; margin: 0; }

  /* Desktop comments section: mobile-friendly sizing */
  .comments-section { margin-top: 0; padding: 0 16px; }
  .comments-section h2 { font-size: 22px; margin-bottom: 20px; }

  /* Next/prev navigation */
  .box.next-prev { border-radius: 0; margin: 0; padding: 14px 16px; }

  /* Footer */
  .footer-cols { display: none; }
  .site-footer { padding: 20px 0; margin-top: 0; }
  .footer-bottom {
    padding: 0 16px; font-size: 12px;
    flex-direction: column; align-items: flex-start; gap: 8px;
  }

  /* Search page */
  .search-hero-block { margin: 0; border-radius: 0; border-left: none; border-right: none; }
}
