/* ─────────────────────────────────────────────────────────
   Poster Recipe Theme v2 — main.css
   Desktop: Clean Magazine split layout
   Mobile:  Swipeable step cards with tab nav
   ───────────────────────────────────────────────────────── */

:root {
  --prt-bg:        #fafaf8;
  --prt-paper:     #ffffff;
  --prt-text:      #18160f;
  --prt-muted:     #787470;
  --prt-accent:    #c94a38;
  --prt-gold:      #b8892a;
  --prt-green:     #3a5a3c;
  --prt-dark:      #18160f;
  --prt-border:    rgba(24,22,15,0.09);
  --prt-shadow:    0 4px 24px rgba(24,22,15,0.08);
  --prt-shadow-lg: 0 12px 40px rgba(24,22,15,0.12);
  --prt-radius:    12px;
  --prt-radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  background: var(--prt-bg);
  color: var(--prt-text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--prt-accent);
  outline-offset: 2px;
}

/* ── Site header ──────────────────────────────────────────── */
.prt-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--prt-border);
  backdrop-filter: blur(8px);
}

.prt-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
  gap: 1rem;
}

.prt-language-switcher,
.prt-social-links {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.prt-language-switcher a,
.prt-social-links a {
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.prt-language-switcher a.is-active {
  font-weight: 700;
  background: rgba(201,74,56,0.1);
  color: var(--prt-accent);
}

.prt-language-switcher a:hover,
.prt-social-links a:hover {
  background: rgba(24,22,15,0.05);
}

/* ── Shared buttons ───────────────────────────────────────── */
.prt-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: none;
  background: var(--prt-accent);
  color: #fff;
  padding: 0.6rem 1.2rem;
  min-height: 44px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.9rem;
  transition: background 0.15s, transform 0.1s;
}

.prt-button:hover { background: #b5402f; }
.prt-button:active { transform: scale(0.98); }

.prt-button--ghost {
  background: transparent;
  color: var(--prt-text);
  border: 1px solid var(--prt-border);
}

.prt-button--ghost:hover { background: rgba(24,22,15,0.05); }

.prt-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--prt-accent);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   RECIPE PAGE — DESKTOP (Clean Magazine split layout)
   ═══════════════════════════════════════════════════════════ */

.prt-recipe-main {
  padding: 0;
  width: 100%;
  max-width: 100%;
}

/* ── Split hero ───────────────────────────────────────────── */
.prt-recipe-hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.prt-recipe-hero__panel {
  background: var(--prt-dark);
  color: #faf5e8;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.prt-recipe-hero__panel .prt-kicker {
  color: var(--prt-gold);
  margin-bottom: 0.5rem;
}

.prt-recipe-hero__panel h1 {
  font-family: "Fraunces", "Iowan Old Style", serif;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.04;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #faf5e8;
}

.prt-recipe-hero__subtitle {
  color: rgba(250,245,232,0.6);
  font-size: 0.95rem;
  margin: 0 0 1.2rem;
}

.prt-recipe-hero__meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  margin-bottom: 1.4rem;
}

.prt-recipe-hero__meta-item {
  border-top: 1px solid rgba(250,245,232,0.15);
  padding-top: 0.4rem;
}

.prt-recipe-hero__meta-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(250,245,232,0.4);
  display: block;
  margin-bottom: 0.12rem;
}

.prt-recipe-hero__meta-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: #faf5e8;
}

.prt-hero-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.prt-recipe-hero--split .prt-button--ghost {
  color: rgba(250,245,232,0.8);
  border-color: rgba(250,245,232,0.3);
}

.prt-recipe-hero--split .prt-button--ghost:hover {
  background: rgba(250,245,232,0.07);
}

.prt-recipe-hero__image {
  position: relative;
  overflow: hidden;
  background: #0d0b08;
}

.prt-recipe-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Body layout ──────────────────────────────────────────── */
.prt-recipe-layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── Ingredients sidebar ──────────────────────────────────── */
.prt-ingredients-panel {
  background: var(--prt-paper);
  border: 1px solid var(--prt-border);
  border-radius: var(--prt-radius);
  box-shadow: var(--prt-shadow);
  padding: 1.25rem;
  position: sticky;
  top: 5rem;
}

.prt-ingredients-panel h2 {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--prt-border);
}

.prt-servings-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(24,22,15,0.04);
  border: 1px solid var(--prt-border);
  border-radius: var(--prt-radius-sm);
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.9rem;
}

.prt-servings-control label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--prt-muted);
}

.prt-servings-control__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prt-servings-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--prt-border);
  background: var(--prt-paper);
  color: var(--prt-accent);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 0;
}

.prt-servings-input {
  width: 36px;
  height: 28px;
  border: 1px solid var(--prt-border);
  border-radius: 6px;
  text-align: center;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.9rem;
  background: #fff;
}

/* hide the number spinners */
.prt-servings-input::-webkit-inner-spin-button,
.prt-servings-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.prt-servings-input { -moz-appearance: textfield; }

.prt-unit-control { margin-top: 0.6rem; }
.prt-unit-control label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--prt-muted);
  margin-bottom: 0.3rem;
}

.prt-unit-system {
  width: 100%;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid var(--prt-border);
  background: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.3rem 0.5rem;
  color: var(--prt-text);
}

.prt-ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.prt-ingredients-list li {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--prt-border);
  font-size: 0.88rem;
  line-height: 1.4;
}

.prt-ingredients-list li::before {
  content: "—";
  color: var(--prt-accent);
  flex-shrink: 0;
  font-size: 0.8rem;
}

.prt-side-card {
  margin-top: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--prt-radius-sm);
  border-left: 3px solid var(--prt-green);
  background: rgba(58,90,60,0.07);
  font-size: 0.82rem;
  line-height: 1.5;
}

.prt-side-card h3 {
  margin: 0 0 0.2rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--prt-green);
}

/* ── Steps section ────────────────────────────────────────── */
.prt-steps-section-wrap h2 {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  margin: 0 0 0.9rem;
}

.prt-steps-section {
  display: grid;
  gap: 0.55rem;
}

/* Accordion step card */
.prt-step-card {
  background: var(--prt-paper);
  border: 1px solid var(--prt-border);
  border-radius: var(--prt-radius);
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s;
  cursor: pointer;
}

.prt-step-card.is-open {
  border-color: var(--prt-accent);
  box-shadow: var(--prt-shadow);
  cursor: default;
}

.prt-step-card__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  user-select: none;
}

.prt-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(24,22,15,0.07);
  color: var(--prt-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s;
}

.prt-step-card.is-open .prt-step-number {
  background: var(--prt-accent);
  color: #fff;
}

.prt-step-card__head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  flex: 1;
}

.prt-chip {
  background: rgba(24,22,15,0.06);
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  font-size: 0.73rem;
  color: var(--prt-muted);
  white-space: nowrap;
}

.prt-step-card__chevron {
  font-size: 0.72rem;
  color: var(--prt-muted);
  transition: transform 0.2s;
}

.prt-step-card.is-open .prt-step-card__chevron {
  transform: rotate(180deg);
}

.prt-step-card__body {
  display: none;
  padding: 0 1rem 1rem;
}

.prt-step-card.is-open .prt-step-card__body {
  display: block;
}

.prt-step-body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #3a3530;
  margin-bottom: 0.65rem;
}

.prt-step-tip {
  margin: 0 0 0.65rem;
  padding: 0.45rem 0.65rem;
  border-left: 3px solid var(--prt-gold);
  background: rgba(184,137,42,0.07);
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.prt-step-image { margin-top: 0.65rem; }
.prt-step-image img {
  width: 100%;
  border-radius: var(--prt-radius-sm);
  display: block;
}

/* Timer button */
.prt-step-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(201,74,56,0.07);
  border: 1px solid rgba(201,74,56,0.22);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  font-size: 0.8rem;
  color: var(--prt-accent);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  min-height: 0;
}

.prt-step-timer:hover { background: rgba(201,74,56,0.12); }

.prt-step-timer.is-running {
  background: rgba(201,74,56,0.12);
  border-color: rgba(201,74,56,0.4);
}

.prt-step-timer.is-complete {
  background: rgba(184,137,42,0.1);
  border-color: rgba(184,137,42,0.35);
  color: var(--prt-gold);
}

.prt-step-timer__value {
  font-family: "DM Mono", monospace;
  font-size: 0.85rem;
}

/* Editorial panels */
.prt-editorial-panel {
  background: linear-gradient(135deg, rgba(184,137,42,0.1), rgba(58,90,60,0.07));
  border: 1px solid rgba(184,137,42,0.18);
  border-radius: var(--prt-radius);
  padding: 1rem 1.1rem;
  cursor: default;
}

.prt-editorial-panel h3 {
  font-family: "Fraunces", serif;
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--prt-gold);
}

.prt-editorial-panel p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
}

/* Share / post content panels */
.prt-share-panel,
.prt-post-content {
  background: var(--prt-paper);
  border: 1px solid var(--prt-border);
  border-radius: var(--prt-radius);
  box-shadow: var(--prt-shadow);
  padding: 1.2rem;
  margin-top: 1.25rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
}

/* Star button */
.prt-star-button { gap: 0.4rem; }
.prt-star-button__icon { font-size: 1rem; line-height: 1; }
.prt-star-button.is-starred {
  border-color: rgba(255,215,101,0.8);
  background: rgba(255,215,101,0.12);
  color: var(--prt-dark);
}
.prt-star-button__count {
  padding: 0.08rem 0.4rem;
  background: rgba(24,22,15,0.08);
  border-radius: 999px;
  font-size: 0.8rem;
}

/* ── Home page ────────────────────────────────────────────── */
.prt-home { padding: 1.5rem; max-width: 1280px; margin: 0 auto; }

.prt-home-hero,
.prt-home-grid-section,
.prt-home-cuisines,
.prt-home-cooking-mode-teaser { margin-block: 2.5rem; }

.prt-home-hero { margin-top: 1rem; }

.prt-home-grid-section > h2,
.prt-home-cuisines > h2,
.prt-home-cooking-mode-teaser > h2 { font-family: "Fraunces", serif; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.15; margin: 0 0 1rem; }

/* Featured cover: readable scrim + capped height */
.prt-home-featured { border-radius: var(--prt-radius); overflow: hidden; box-shadow: var(--prt-shadow-lg); min-height: clamp(320px, 42vw, 460px) !important; }
.prt-home-featured .wp-block-cover__background { background: linear-gradient(105deg, rgba(14,10,7,0.82) 0%, rgba(14,10,7,0.45) 55%, rgba(14,10,7,0.15) 100%), linear-gradient(180deg, rgba(14,10,7,0.15) 0%, rgba(14,10,7,0) 45%, rgba(14,10,7,0.6) 100%) !important; opacity: 1 !important; }
.prt-home-featured .wp-block-cover__inner-container { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; max-width: 34ch; padding: clamp(1.2rem, 3vw, 2rem); }
.prt-home-featured .wp-block-post-title { font-family: "Fraunces", serif; font-size: clamp(1.8rem, 4vw, 3rem) !important; line-height: 1.04; margin: 0; }
.prt-home-featured .wp-block-post-title,
.prt-home-featured .wp-block-post-title a { color: #fff !important; text-decoration: none; text-shadow: 0 2px 14px rgba(0,0,0,0.45); }
.prt-home-featured .wp-block-post-excerpt { color: rgba(255,255,255,0.82) !important; font-size: 0.95rem; margin: 0; }
.prt-home-featured .wp-block-buttons { margin: 0; }

/* Recipe card grid */
.prt-recipe-grid .wp-block-post-template { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; list-style: none; padding: 0; margin: 0; }
.prt-recipe-grid .wp-block-post-template > li { margin: 0; }

.prt-recipe-card {
  background: var(--prt-paper);
  border-radius: var(--prt-radius);
  box-shadow: var(--prt-shadow);
  border: 1px solid var(--prt-border);
  overflow: clip;
  padding-bottom: 0.9rem;
  height: 100%;
  transition: box-shadow 0.18s, transform 0.18s;
}
.prt-recipe-card:hover { box-shadow: var(--prt-shadow-lg); transform: translateY(-2px); }

.prt-recipe-card .wp-block-post-featured-image { margin: 0 0 0.75rem; }
.prt-recipe-card .wp-block-post-featured-image img { width: 100%; height: 200px; object-fit: cover; display: block; }

.prt-recipe-card .wp-block-post-title,
.prt-recipe-card .wp-block-post-terms,
.prt-recipe-card .wp-block-post-excerpt { padding-inline: 1rem; }

.prt-recipe-card .wp-block-post-title { font-family: "Fraunces", serif; font-size: 1.05rem; line-height: 1.25; margin: 0 0 0.35rem; font-weight: 600; }
.prt-recipe-card .wp-block-post-title a { text-decoration: none; }
.prt-recipe-card .wp-block-post-title a:hover { color: var(--prt-accent); }
.prt-recipe-card .wp-block-post-terms { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--prt-accent); font-weight: 600; margin: 0 0 0.4rem; }
.prt-recipe-card .wp-block-post-terms a { text-decoration: none; }
.prt-recipe-card .wp-block-post-excerpt { font-size: 0.85rem; line-height: 1.55; color: var(--prt-muted); margin: 0; }
.prt-recipe-card .wp-block-post-excerpt__more-link { color: var(--prt-accent); font-weight: 600; }

/* Cuisine cloud */
.prt-cuisine-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.prt-cuisine-cloud a { text-decoration: none; background: var(--prt-paper); border: 1px solid var(--prt-border); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.85rem; font-weight: 500; transition: border-color 0.15s, background 0.15s; }
.prt-cuisine-cloud a:hover { border-color: var(--prt-accent); background: rgba(201,74,56,0.06); color: var(--prt-accent); }

/* Cooking-mode teaser */
.prt-home-cooking-mode-teaser { background: var(--prt-paper); border: 1px solid var(--prt-border); border-radius: var(--prt-radius); box-shadow: var(--prt-shadow); padding: 1.3rem 1.4rem; }
.prt-home-cooking-mode-teaser p { margin: 0; font-size: 0.9rem; color: var(--prt-muted); max-width: 62ch; }

/* Query pagination */
.wp-block-query-pagination { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.wp-block-query-pagination a { text-decoration: none; border: 1px solid var(--prt-border); border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.85rem; font-weight: 600; background: var(--prt-paper); }
.wp-block-query-pagination a:hover { border-color: var(--prt-accent); color: var(--prt-accent); }

@media (max-width: 980px) {
  .prt-home { padding: 1rem; }
  .prt-home-hero, .prt-home-grid-section, .prt-home-cuisines, .prt-home-cooking-mode-teaser { margin-block: 1.8rem; }
  .prt-home-featured { min-height: clamp(280px, 62vw, 380px) !important; }
  .prt-home-featured .wp-block-cover__inner-container { max-width: 100%; }
  .prt-recipe-grid .wp-block-post-template { grid-template-columns: 1fr; }
  .prt-recipe-card .wp-block-post-featured-image img { height: 180px; }
}

/* ── Archive / taxonomy back-navigation footer ────────────── */
.prt-archive-back { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 2rem auto 1rem; padding-top: 1.2rem; border-top: 1px solid var(--prt-border); max-width: 1280px; }
.prt-archive-back__link { margin: 0; }
.prt-archive-back__link a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.55rem 1.1rem; border: 1px solid var(--prt-border); border-radius: 999px; background: var(--prt-paper); color: var(--prt-text); font-size: 0.86rem; font-weight: 600; text-decoration: none; transition: background 0.15s, border-color 0.15s; }
.prt-archive-back__link a:hover { border-color: var(--prt-accent); background: rgba(201,74,56,0.06); color: var(--prt-accent); }
.prt-archive-back__link.is-home { margin-left: auto; }
.prt-archive-back__link.is-home a { background: var(--prt-dark); border-color: var(--prt-dark); color: #faf5e8; }
.prt-archive-back__link.is-home a:hover { background: var(--prt-accent); border-color: var(--prt-accent); color: #fff; }

@media (max-width: 980px) {
  .prt-archive-back { padding-inline: 0.85rem; }
  .prt-archive-back__link { flex: 1 1 100%; }
  .prt-archive-back__link.is-home { margin-left: 0; }
  .prt-archive-back__link a { width: 100%; justify-content: center; }
}

/* ── Query title on archives ──────────────────────────────── */
.wp-block-query-title { font-family: "Fraunces", serif; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1; margin: 1.5rem auto 0.5rem; max-width: 1280px; padding-inline: 1.5rem; }
.wp-block-term-description { max-width: 1280px; margin: 0 auto 1.5rem; padding-inline: 1.5rem; color: var(--prt-muted); font-size: 0.9rem; }
.wp-block-query.prt-recipe-grid { max-width: 1280px; margin: 0 auto; padding-inline: 1.5rem; }

@media (max-width: 980px) {
  .wp-block-query-title, .wp-block-term-description, .wp-block-query.prt-recipe-grid { padding-inline: 1rem; }
}

/* ── Site footer ──────────────────────────────────────────── */
.prt-site-footer {
  background: var(--prt-paper);
  border-top: 1px solid var(--prt-border);
}

.prt-site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  font-size: 0.82rem;
  color: var(--prt-muted);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE (≤ 980px) — swipeable step cards with tab nav
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 980px) {

  .prt-site-header { position: static; }

  /* Hero: full-bleed overlay on mobile */
  .prt-recipe-hero--split {
    display: block;
    min-height: 0;
  }

  .prt-recipe-hero__panel { display: none; }

  .prt-recipe-hero__image {
    height: clamp(240px, 55vw, 380px);
  }

  /* We show a floating content panel over the image */
  .prt-recipe-hero--split {
    position: relative;
  }

  .prt-recipe-hero__overlay-mobile {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(12,10,7,0.15) 0%, rgba(12,10,7,0) 35%,
                              rgba(12,10,7,0.72) 70%, rgba(12,10,7,1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.1rem;
    color: #fff;
  }

  .prt-recipe-hero__overlay-mobile .prt-kicker {
    color: #f5c46a;
    margin-bottom: 0.35rem;
  }

  .prt-recipe-hero__overlay-mobile h1 {
    font-family: "Fraunces", serif;
    font-size: clamp(1.5rem, 7vw, 2.1rem);
    line-height: 1.08;
    margin: 0 0 0.3rem;
    font-weight: 700;
    color: #fff;
  }

  .prt-recipe-hero__overlay-mobile .prt-recipe-hero__subtitle {
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
    margin: 0;
  }

  /* Meta strip */
  .prt-recipe-meta-strip {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-bottom: 1px solid var(--prt-border);
  }

  .prt-recipe-meta-strip__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0;
    border-right: 1px solid var(--prt-border);
    font-size: 0.68rem;
    color: var(--prt-muted);
    font-weight: 600;
  }

  .prt-recipe-meta-strip__item:last-child { border-right: none; }
  .prt-recipe-meta-strip__icon { font-size: 0.9rem; margin-bottom: 0.1rem; }

  /* Tab nav */
  .prt-recipe-tabs {
    display: flex !important;
    background: #fff;
    border-bottom: 1px solid var(--prt-border);
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .prt-recipe-tab {
    flex: 1;
    padding: 0.7rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--prt-muted);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
  }

  .prt-recipe-tab.is-active {
    color: var(--prt-accent);
    border-bottom-color: var(--prt-accent);
  }

  /* Panel visibility */
  .prt-recipe-tab-panel { display: none; }
  .prt-recipe-tab-panel.is-active { display: block; }

  /* Ingredients on mobile */
  .prt-recipe-layout {
    display: block;
    padding: 0;
  }

  .prt-ingredients-panel {
    position: static;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 1rem;
  }

  .prt-ingredients-panel h2 { display: none; }

  .prt-servings-control {
    border-radius: var(--prt-radius-sm);
    margin-bottom: 0.85rem;
  }

  /* Steps on mobile — swipeable cards */
  .prt-steps-section-wrap {
    padding: 0.85rem 0.85rem 0;
  }

  .prt-steps-section-wrap h2 { display: none; }

  /* Override accordion — cards are horizontal scroll on mobile */
  .prt-steps-section {
    display: flex !important;
    gap: 0;
    overflow: visible;
  }

  /* Mobile step card: full width single card shown via JS */
  .prt-step-card {
    display: none;
    cursor: default;
    border-color: var(--prt-accent);
    box-shadow: var(--prt-shadow);
  }

  .prt-step-card.is-mobile-active {
    display: flex;
    flex-direction: column;
  }

  .prt-step-card__head { cursor: default; }
  .prt-step-card__chevron { display: none; }

  /* Body always visible on mobile */
  .prt-step-card .prt-step-card__body {
    display: block !important;
  }

  .prt-step-card .prt-step-number {
    background: var(--prt-accent);
    color: #fff;
  }

  /* Dot pagination */
  .prt-step-dots {
    display: flex !important;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 0;
  }

  .prt-step-dot {
    height: 7px;
    border-radius: 999px;
    border: none;
    background: rgba(24,22,15,0.15);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
    width: 7px;
  }

  .prt-step-dot.is-active {
    background: var(--prt-accent);
    width: 20px;
  }

  /* Step nav arrows */
  .prt-step-nav {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    padding: 0 0.85rem 1rem;
    align-items: center;
  }

  .prt-step-nav__prev,
  .prt-step-nav__next {
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-size: 0.84rem;
  }

  .prt-step-nav__prev {
    background: var(--prt-paper);
    border: 1px solid var(--prt-border);
    color: var(--prt-text);
    justify-self: start;
  }

  .prt-step-nav__prev:disabled,
  .prt-step-nav__next:disabled {
    opacity: 0.35;
    cursor: default;
  }

  .prt-step-nav__next {
    justify-self: end;
  }

  .prt-step-nav__count {
    font-size: 0.8rem;
    color: var(--prt-muted);
    text-align: center;
  }

  .prt-editorial-panel,
  .prt-share-panel,
  .prt-post-content {
    margin: 0.85rem;
    border-radius: var(--prt-radius);
  }

  .prt-hero-actions {
    flex-direction: column;
  }

  .prt-button,
  .wp-block-button__link {
    width: 100%;
  }
}

/* ── Desktop: hide mobile-only elements ───────────────────── */
@media (min-width: 981px) {
  .prt-recipe-hero__overlay-mobile { display: none; }
  .prt-recipe-meta-strip { display: none; }
  .prt-recipe-tabs { display: none; }
  .prt-recipe-tab-panel { display: block !important; }
  .prt-step-dots { display: none; }
  .prt-step-nav { display: none; }
  .prt-step-card { display: block; }
  .prt-step-card__chevron { display: inline; }

  /* Accordion open state for desktop is handled by JS adding .is-open */
  /* First card open by default via JS */
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .prt-site-header, .prt-hero-actions, .prt-step-timer,
  .prt-share-panel, .prt-recipe-tabs, .prt-step-nav,
  .prt-step-dots { display: none !important; }

  .prt-recipe-hero--split { grid-template-columns: 1fr; }
  .prt-recipe-hero__image { display: none; }
  .prt-recipe-hero__panel {
    color: #000;
    background: #fff;
    padding: 1rem 0;
  }
  .prt-recipe-hero__panel h1 { color: #000; }
  .prt-recipe-layout { grid-template-columns: 1fr; }
  .prt-step-card { display: block !important; border: 1px solid #ddd; }
  .prt-step-card__body { display: block !important; }
  .prt-step-card__chevron { display: none; }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── Cooking mode (from JS toggle) ───────────────────────── */
body.prt-cooking-mode .prt-step-card__body {
  font-size: 1.1rem;
  line-height: 1.8;
}

body.prt-cooking-mode .prt-step-timer {
  min-height: 48px;
  font-size: 0.95rem;
}
