/**
 * Theme Name: Yehuda's cooking blog
 * Description: Theme for Yehuda's cooking blog.
 * Author: Yehuda Tiram
 * Author URI: https://atarimtr.com/
 * Template: atr-starter-fse
 * Version: 1.1.0
 * Text Domain: atrfse-child-yehuda-cooking
 * Requires at least: 6.4
 * Tested up to: 6.7
 * Requires PHP: 7.4
 *
 * @format
 */

/* Child overrides below. The parent style.css loads first (see functions.php).
 *
 * RTL: write physical LTR properties here (float: left, border-left,
 * margin-left, border-width: 0 0 0 1px, ...). rtlcss flips them into
 * style-rtl.css via 'npm run compile:rtl'.
 * Do NOT hand-write .rtl { ... } overrides - rtlcss would double-flip
 * them in the RTL build, producing silent breakage on RTL locales only.
 *
 * Design source: Figma "Cooking - Recipes Blog Template", mapped to Hebrew RTL.
 * Tokens live in theme.json (palette, fonts, layout) and in
 * --wp--custom--yehuda-cooking--* (radii, borders, gutter).
 * Breakpoints (mobile-first): 600px, 1024px. */

/* ==========================================================================
   Base
   ========================================================================== */

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* The parent's core/heading block style is :root :where(.wp-block-heading), which
   outranks the h1 element style. Keep the design's heavier H1 (Headline 1, 800). */
:root h1 {
  font-weight: 800;
}

:where(a, button, input, .wp-element-button):focus-visible {
  outline: 2px solid var(--wp--preset--color--ti-fg);
  outline-offset: 2px;
}

.atrfse-child-yehuda-cooking-main,
.atrfse-child-yehuda-cooking-header,
.atrfse-child-yehuda-cooking-footer {
  padding-right: var(--wp--custom--yehuda-cooking--gutter);
  padding-left: var(--wp--custom--yehuda-cooking--gutter);
}

.atrfse-child-yehuda-cooking-main {
  padding-top: 24px;
  padding-bottom: 24px;
}

.atrfse-child-yehuda-cooking-main > * + * {
  margin-top: var(--wp--custom--yehuda-cooking--section-gap);
}

.atrfse-child-yehuda-cooking-panel {
  border: var(--wp--custom--yehuda-cooking--border);
  border-radius: var(--wp--custom--yehuda-cooking--radius-panel);
  padding: clamp(16px, 2.8vw, 40px);
}

.atrfse-child-yehuda-cooking-tag {
  display: table;
  margin: 0 0 8px;
  padding: 4px 8px;
  border-radius: 12px;
  background: var(--wp--preset--color--ti-accent);
  color: var(--wp--preset--color--ti-fg);
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
}

.atrfse-child-yehuda-cooking-muted {
  color: var(--wp--custom--yehuda-cooking--text-muted);
  font-size: 16px;
  line-height: 1.4;
}

.atrfse-child-yehuda-cooking-lead,
.atrfse-child-yehuda-cooking-lead p {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.4;
}

.atrfse-child-yehuda-cooking-subtitle,
.atrfse-child-yehuda-cooking-recipe__steps .wp-block-post-content :is(h2, h3, h4) {
  margin: 24px 0 12px;
  color: var(--wp--preset--color--ti-accent);
  font-family: var(--wp--preset--font-family--rubik);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.atrfse-child-yehuda-cooking-button--accent .wp-block-button__link {
  border-color: var(--wp--preset--color--ti-btn-bg);
  background: var(--wp--preset--color--ti-btn-bg);
  color: var(--wp--preset--color--ti-btn-fg);
}

.atrfse-child-yehuda-cooking-button--accent .wp-block-button__link:hover,
.atrfse-child-yehuda-cooking-button--accent .wp-block-button__link:focus-visible {
  border-color: var(--wp--preset--color--ti-fg);
  background: var(--wp--preset--color--ti-fg);
  color: var(--wp--preset--color--ti-fg-alt);
}

.atrfse-child-yehuda-cooking-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.atrfse-child-yehuda-cooking-section-head > * {
  margin: 0;
}

.atrfse-child-yehuda-cooking-section-head .atrfse-child-yehuda-cooking-muted {
  max-width: 426px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.atrfse-child-yehuda-cooking-header {
  padding-top: 16px;
}

.atrfse-child-yehuda-cooking-header__bar {
  gap: 16px;
  padding: 12px 16px;
  border: var(--wp--custom--yehuda-cooking--border);
  border-radius: var(--wp--custom--yehuda-cooking--radius-panel);
  background: var(--wp--preset--color--ti-bg);
}

.atrfse-child-yehuda-cooking-header__brand {
  gap: 8px;
  min-width: 0;
}

.atrfse-child-yehuda-cooking-header__title,
.atrfse-child-yehuda-cooking-footer__title {
  margin: 0;
  max-width: 11em;
  font-family: var(--wp--preset--font-family--rubik);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

.atrfse-child-yehuda-cooking-header__title a,
.atrfse-child-yehuda-cooking-footer__title a {
  color: inherit;
  text-decoration: none;
}

/* The parent colors nav hover/current with ti-accent !important. Re-scope that
   token for this menu (no !important) so links stay dark and readable. */
.atrfse-child-yehuda-cooking-header__nav {
  --wp--preset--color--ti-accent: var(--wp--preset--color--ti-fg);
  --wp--preset--color--ti-accent-secondary: var(--wp--preset--color--ti-fg);
  gap: 24px;
  font-family: var(--wp--preset--font-family--rubik);
  font-size: 15px;
  font-weight: 500;
}

.atrfse-child-yehuda-cooking-header__nav .wp-block-navigation-item__content {
  padding: 8px;
  color: rgba(38, 37, 34, 0.7);
  text-decoration: none;
}

.atrfse-child-yehuda-cooking-header__nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content {
  border-bottom: 4px solid #ee6352;
  border-radius: 2px;
  padding-bottom: 4px;
  color: var(--wp--preset--color--ti-fg);
}

.atrfse-child-yehuda-cooking-header .wp-block-navigation .wp-block-navigation-item:hover {
  background-color: transparent;
}

.atrfse-child-yehuda-cooking-header__nav .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--ti-fg);
}

/* Mobile overlay menu: a dark rounded card (Figma "Menu open"). */
.atrfse-child-yehuda-cooking-header__nav .wp-block-navigation__responsive-container.is-menu-open {
  --wp--preset--color--ti-fg: #f0ebe1;
  --wp--preset--color--ti-accent: #f29c33;
  --wp--preset--color--ti-bg-alt: rgba(240, 235, 225, 0.16);
  top: 16px;
  left: 16px;
  bottom: auto;
  right: 16px;
  border-radius: var(--wp--custom--yehuda-cooking--radius-card);
  padding: 72px 24px 32px;
}

.atrfse-child-yehuda-cooking-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  padding: 16px 0;
  color: #f0ebe1;
  font-size: 18px;
  font-weight: 500;
}

.atrfse-child-yehuda-cooking-header__nav .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content {
  border-bottom: 0;
  color: #f29c33;
}

.atrfse-child-yehuda-cooking-header__nav .wp-block-navigation__responsive-container-open {
  padding: 5px;
  border-radius: 16px;
  background: rgba(38, 37, 34, 0.08);
}

.atrfse-child-yehuda-cooking-header__search .wp-block-search__button {
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 16px;
  background: rgba(38, 37, 34, 0.08);
  color: var(--wp--preset--color--ti-fg);
}

.atrfse-child-yehuda-cooking-header__search .wp-block-search__inside-wrapper {
  border: 0;
  border-radius: 16px;
}

.atrfse-child-yehuda-cooking-header__search .wp-block-search__input {
  border: var(--wp--custom--yehuda-cooking--border);
  border-radius: 16px;
  background: var(--wp--preset--color--ti-bg-alt);
  font-size: 16px;
}

.atrfse-child-yehuda-cooking-search-form {
  width: min(100%, 480px);
}

.atrfse-child-yehuda-cooking-search-form .wp-block-search__inside-wrapper {
  padding: 4px;
  border: var(--wp--custom--yehuda-cooking--border);
  border-radius: var(--wp--custom--yehuda-cooking--radius-pill);
  background: var(--wp--preset--color--ti-bg-alt);
}

.atrfse-child-yehuda-cooking-search-form .wp-block-search__input {
  border: 0;
  background: transparent;
  font-size: 17px;
}

.atrfse-child-yehuda-cooking-search-form .wp-block-search__button {
  margin: 0;
  border: 0;
  border-radius: 20px;
  background: var(--wp--preset--color--ti-fg);
  color: var(--wp--preset--color--ti-fg-alt);
}

@media (min-width: 600px) {
  .atrfse-child-yehuda-cooking-header__bar {
    padding: 16px 24px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.atrfse-child-yehuda-cooking-footer {
  padding-bottom: 24px;
}

.atrfse-child-yehuda-cooking-footer__panel {
  border-radius: var(--wp--custom--yehuda-cooking--radius-panel);
  padding: 0 clamp(24px, 2.8vw, 40px) 24px;
}

.atrfse-child-yehuda-cooking-footer__row {
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(240, 235, 225, 0.12);
}

.atrfse-child-yehuda-cooking-footer__brand {
  gap: 8px;
}

.atrfse-child-yehuda-cooking-footer__title {
  font-weight: 400;
}

.atrfse-child-yehuda-cooking-footer__nav {
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
}

.atrfse-child-yehuda-cooking-footer__nav .wp-block-navigation-item + .wp-block-navigation-item {
  padding-right: 16px;
  border-right: 1px solid rgba(240, 235, 225, 0.2);
}

.atrfse-child-yehuda-cooking-footer__nav .wp-block-navigation-item__content {
  color: inherit;
  text-decoration: none;
}

.atrfse-child-yehuda-cooking-footer .wp-block-navigation .wp-block-navigation-item:hover {
  background-color: transparent;
}

.atrfse-child-yehuda-cooking-footer__bottom {
  gap: 8px 24px;
  padding-top: 16px;
  color: rgba(240, 235, 225, 0.7);
  font-size: 13px;
  font-weight: 500;
}

.atrfse-child-yehuda-cooking-footer__bottom p {
  margin: 0;
}

.atrfse-child-yehuda-cooking-footer__bottom a {
  color: inherit;
}

/* ==========================================================================
   Home: hero, explore, featured, recipes, about
   ========================================================================== */

.atrfse-child-yehuda-cooking-hero.wp-block-cover {
  overflow: hidden;
  border-radius: var(--wp--custom--yehuda-cooking--radius-panel);
  padding: clamp(64px, 8vw, 120px) 24px;
}

.atrfse-child-yehuda-cooking-hero__title {
  margin-bottom: 12px;
}

.atrfse-child-yehuda-cooking-hero .atrfse-child-yehuda-cooking-lead {
  max-width: 480px;
  margin: 0 auto 40px;
}

.atrfse-child-yehuda-cooking-explore {
  display: grid;
  gap: 40px;
  align-items: end;
  border: 0;
}

.atrfse-child-yehuda-cooking-explore__text > * {
  margin: 0 0 16px;
}

.atrfse-child-yehuda-cooking-explore__text .wp-block-buttons {
  margin: 40px 0 0;
}

.atrfse-child-yehuda-cooking-categories__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.atrfse-child-yehuda-cooking-categories--list .atrfse-child-yehuda-cooking-categories__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: var(--wp--custom--yehuda-cooking--border-soft);
  color: var(--wp--preset--color--ti-fg);
  text-decoration: none;
}

.atrfse-child-yehuda-cooking-categories--list .atrfse-child-yehuda-cooking-categories__name {
  font-family: var(--wp--preset--font-family--rubik);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
}

.atrfse-child-yehuda-cooking-categories--list .atrfse-child-yehuda-cooking-categories__count {
  color: var(--wp--custom--yehuda-cooking--text-muted);
  font-size: 15px;
}

.atrfse-child-yehuda-cooking-categories--list .atrfse-child-yehuda-cooking-categories__link:hover .atrfse-child-yehuda-cooking-categories__name {
  text-decoration: underline;
}

.atrfse-child-yehuda-cooking-categories--pills .atrfse-child-yehuda-cooking-categories__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
}

.atrfse-child-yehuda-cooking-categories--pills .atrfse-child-yehuda-cooking-categories__link {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid rgba(38, 37, 34, 0.4);
  border-radius: var(--wp--custom--yehuda-cooking--radius-pill);
  color: rgba(38, 37, 34, 0.75);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.atrfse-child-yehuda-cooking-categories--pills .atrfse-child-yehuda-cooking-categories__link:hover {
  border-color: var(--wp--preset--color--ti-fg);
  color: var(--wp--preset--color--ti-fg);
}

.atrfse-child-yehuda-cooking-categories--pills .atrfse-child-yehuda-cooking-categories__link.is-current {
  border-color: var(--wp--preset--color--ti-fg);
  background: var(--wp--preset--color--lime);
  color: var(--wp--preset--color--ti-fg);
}

.atrfse-child-yehuda-cooking-featured {
  padding-top: 40px;
}

.atrfse-child-yehuda-cooking-featured__title {
  margin: 0 0 32px;
  padding: 0 clamp(0px, 1.5vw, 24px);
}

.atrfse-child-yehuda-cooking-recipes {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: clamp(40px, 5vw, 80px);
}

.atrfse-child-yehuda-cooking-recipes > * {
  margin: 0;
}

.atrfse-child-yehuda-cooking-about {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.atrfse-child-yehuda-cooking-about__intro {
  padding: 24px;
}

.atrfse-child-yehuda-cooking-about__intro > * {
  margin: 0 0 12px;
}

.atrfse-child-yehuda-cooking-about__img {
  margin: 0;
}

.atrfse-child-yehuda-cooking-about__img img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  border-radius: var(--wp--custom--yehuda-cooking--radius-card);
  object-fit: cover;
}

@media (min-width: 1024px) {
  .atrfse-child-yehuda-cooking-explore {
    grid-template-columns: minmax(0, 1fr) minmax(0, 497px);
    column-gap: clamp(40px, 10vw, 238px);
  }

  .atrfse-child-yehuda-cooking-about {
    grid-template-columns: minmax(0, 1fr) minmax(0, 316px) minmax(0, 411px);
    grid-template-rows: 326px 331px;
  }

  .atrfse-child-yehuda-cooking-about__intro {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .atrfse-child-yehuda-cooking-about__img--small {
    grid-column: 2;
    grid-row: 1;
  }

  .atrfse-child-yehuda-cooking-about__img--wide {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .atrfse-child-yehuda-cooking-about__img--tall {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}

/* ==========================================================================
   Cards and grids (query loops)
   ========================================================================== */

.atrfse-child-yehuda-cooking-grid .wp-block-post-template {
  gap: 24px 16px;
  margin: 0;
}

.atrfse-child-yehuda-cooking-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.atrfse-child-yehuda-cooking-card > .atrfse-child-yehuda-cooking-card__body {
  margin-top: 0;
}

.atrfse-child-yehuda-cooking-card__image {
  overflow: hidden;
  margin: 0;
  border-radius: var(--wp--custom--yehuda-cooking--radius-card) var(--wp--custom--yehuda-cooking--radius-card) 0 0;
}

.atrfse-child-yehuda-cooking-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.atrfse-child-yehuda-cooking-card:hover .atrfse-child-yehuda-cooking-card__image img {
  transform: scale(1.03);
}

.atrfse-child-yehuda-cooking-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  padding: 24px 24px 16px;
  border: var(--wp--custom--yehuda-cooking--border-soft);
  border-top: 0;
  border-radius: 0 0 var(--wp--custom--yehuda-cooking--radius-card) var(--wp--custom--yehuda-cooking--radius-card);
  background: var(--wp--preset--color--ti-bg-alt);
}

.atrfse-child-yehuda-cooking-card__body:first-child {
  border-top: var(--wp--custom--yehuda-cooking--border-soft);
  border-radius: var(--wp--custom--yehuda-cooking--radius-card);
}

.atrfse-child-yehuda-cooking-card__body > * {
  margin: 0;
}

.atrfse-child-yehuda-cooking-card__title {
  font-size: 24px;
}

.atrfse-child-yehuda-cooking-card__title a {
  color: inherit;
  text-decoration: none;
}

.atrfse-child-yehuda-cooking-card__title a:hover {
  text-decoration: underline;
}

.atrfse-child-yehuda-cooking-card__excerpt,
.atrfse-child-yehuda-cooking-card__excerpt p {
  margin: 0;
  color: var(--wp--custom--yehuda-cooking--text-muted);
  font-size: 16px;
  line-height: 1.4;
}

.atrfse-child-yehuda-cooking-card__footer {
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
}

.atrfse-child-yehuda-cooking-recipe-meta--card,
.atrfse-child-yehuda-cooking-card__date {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.atrfse-child-yehuda-cooking-card__more.wp-block-read-more {
  flex-shrink: 0;
  padding: 12px 24px;
  border: 1px solid var(--wp--preset--color--ti-fg);
  border-radius: var(--wp--custom--yehuda-cooking--radius-pill);
  color: var(--wp--preset--color--ti-fg);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.atrfse-child-yehuda-cooking-card__more.wp-block-read-more:hover,
.atrfse-child-yehuda-cooking-card__more.wp-block-read-more:focus-visible {
  background: var(--wp--preset--color--ti-fg);
  color: var(--wp--preset--color--ti-fg-alt);
}

.atrfse-child-yehuda-cooking-pagination {
  gap: 8px;
  margin-top: 40px;
  font-weight: 600;
}

.atrfse-child-yehuda-cooking-pagination a,
.atrfse-child-yehuda-cooking-pagination .page-numbers {
  display: inline-block;
  min-width: 44px;
  padding: 10px 14px;
  border-radius: var(--wp--custom--yehuda-cooking--radius-pill);
  text-align: center;
  text-decoration: none;
}

.atrfse-child-yehuda-cooking-pagination .page-numbers.current {
  background: var(--wp--preset--color--ti-fg);
  color: var(--wp--preset--color--ti-fg-alt);
}

/* ==========================================================================
   Single recipe
   ========================================================================== */

.atrfse-child-yehuda-cooking-recipe__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.atrfse-child-yehuda-cooking-recipe__hero > * {
  margin: 0;
}

.atrfse-child-yehuda-cooking-breadcrumbs {
  color: var(--wp--custom--yehuda-cooking--text-muted);
  font-size: 14px;
}

.atrfse-child-yehuda-cooking-breadcrumbs a {
  color: inherit;
}

.atrfse-child-yehuda-cooking-terms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.atrfse-child-yehuda-cooking-terms a {
  padding: 8px 16px;
  border-radius: 16px;
  background: var(--wp--preset--color--ti-accent);
  color: var(--wp--preset--color--ti-fg);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.atrfse-child-yehuda-cooking-terms a:hover {
  background: var(--wp--preset--color--ti-fg);
  color: var(--wp--preset--color--ti-fg-alt);
}

.atrfse-child-yehuda-cooking-recipe__hero .atrfse-child-yehuda-cooking-lead {
  max-width: 648px;
  color: var(--wp--custom--yehuda-cooking--text-muted);
}

.atrfse-child-yehuda-cooking-recipe__hero .atrfse-child-yehuda-cooking-lead p {
  margin: 0 0 8px;
}

.atrfse-child-yehuda-cooking-recipe-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  margin: 28px 0 28px;
  padding: 0;
  list-style: none;
  font-family: var(--wp--preset--font-family--rubik);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.atrfse-child-yehuda-cooking-recipe-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.atrfse-child-yehuda-cooking-recipe-meta__item + .atrfse-child-yehuda-cooking-recipe-meta__item::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 16px;
  border-radius: 50%;
  background: var(--wp--preset--color--ti-fg);
}

.atrfse-child-yehuda-cooking-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.atrfse-child-yehuda-cooking-stars {
  display: inline-flex;
  gap: 2px;
}

.atrfse-child-yehuda-cooking-stars__star {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.atrfse-child-yehuda-cooking-stars__star svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: rgba(38, 37, 34, 0.2);
}

.atrfse-child-yehuda-cooking-stars__star--full svg,
.atrfse-child-yehuda-cooking-stars__fill svg {
  fill: #c47512;
}

.atrfse-child-yehuda-cooking-stars__fill {
  position: absolute;
  top: 0;
  right: 0;
  overflow: hidden;
  width: 50%;
  height: 100%;
}

.atrfse-child-yehuda-cooking-recipe-hero-image {
  width: 100%;
  margin-top: 12px;
}

.atrfse-child-yehuda-cooking-recipe-hero-image img {
  width: 100%;
  max-height: 640px;
  border-radius: var(--wp--custom--yehuda-cooking--radius-card);
  object-fit: cover;
}

.atrfse-child-yehuda-cooking-recipe__body {
  display: grid;
  gap: 32px;
}

.atrfse-child-yehuda-cooking-recipe__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  order: -1;
}

.atrfse-child-yehuda-cooking-recipe__aside > *,
.atrfse-child-yehuda-cooking-recipe__main > * {
  margin: 0;
}

.atrfse-child-yehuda-cooking-recipe__main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.atrfse-child-yehuda-cooking-recipe__steps > .wp-block-heading {
  margin-top: 0;
}

.atrfse-child-yehuda-cooking-recipe__steps .wp-block-post-content {
  font-size: 18px;
  line-height: 1.7;
}

.atrfse-child-yehuda-cooking-recipe__steps .wp-block-post-content a {
  text-decoration-color: var(--wp--preset--color--ti-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.atrfse-child-yehuda-cooking-recipe__steps .wp-block-post-content img {
  height: auto;
  border-radius: var(--wp--custom--yehuda-cooking--radius-card);
}

.atrfse-child-yehuda-cooking-recipe-ingredients {
  padding: 24px 16px;
  border: var(--wp--custom--yehuda-cooking--border);
  border-radius: var(--wp--custom--yehuda-cooking--radius-card);
  background: var(--wp--preset--color--ti-bg-alt);
}

.atrfse-child-yehuda-cooking-recipe-ingredients__title {
  margin: 0 0 16px;
  color: var(--wp--preset--color--ti-accent);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.atrfse-child-yehuda-cooking-recipe-ingredients__body {
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.4;
}

.atrfse-child-yehuda-cooking-recipe-ingredients__body ul,
.atrfse-child-yehuda-cooking-recipe-ingredients__body ol {
  margin: 0 0 16px;
  padding-right: 1.5em;
}

.atrfse-child-yehuda-cooking-recipe-ingredients__body li + li {
  margin-top: 4px;
}

.atrfse-child-yehuda-cooking-recipe-ingredients__body p {
  margin: 0 0 8px;
  font-weight: 700;
}

.atrfse-child-yehuda-cooking-recipe-source {
  margin: 0;
  color: var(--wp--custom--yehuda-cooking--text-muted);
  font-size: 15px;
}

.atrfse-child-yehuda-cooking-recipe-source__label {
  font-weight: 700;
}

/* In the recipe hero: centered under the preface, above the meta row. */
.atrfse-child-yehuda-cooking-recipe__hero .atrfse-child-yehuda-cooking-recipe-source {
  max-width: 648px;
}

.atrfse-child-yehuda-cooking-print {
  width: 100%;
  cursor: pointer;
}

.atrfse-child-yehuda-cooking-recipe-video {
  overflow: hidden;
  border-radius: var(--wp--custom--yehuda-cooking--radius-card);
}

.atrfse-child-yehuda-cooking-recipe-video iframe,
.atrfse-child-yehuda-cooking-recipe-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

.atrfse-child-yehuda-cooking-recipe-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.atrfse-child-yehuda-cooking-recipe-gallery__item {
  margin: 0;
}

.atrfse-child-yehuda-cooking-recipe-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  object-fit: cover;
}

.atrfse-child-yehuda-cooking-recipe-gallery__item figcaption {
  margin-top: 6px;
  color: var(--wp--custom--yehuda-cooking--text-muted);
  font-size: 14px;
}

/* Lightbox (assets/js/front.js): hero image + gallery in one dialog. */
.atrfse-child-yehuda-cooking-recipe-gallery a[data-atrfse-lightbox],
.atrfse-child-yehuda-cooking-lightbox-trigger {
  cursor: zoom-in;
}

.atrfse-child-yehuda-cooking-lightbox-open {
  overflow: hidden;
}

.atrfse-child-yehuda-cooking-lightbox {
  box-sizing: border-box;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 56px 16px 16px;
  border: 0;
  background: rgba(38, 37, 34, 0.94);
  color: var(--wp--preset--color--ti-fg-alt);
}

.atrfse-child-yehuda-cooking-lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.atrfse-child-yehuda-cooking-lightbox::backdrop {
  background: rgba(38, 37, 34, 0.6);
}

.atrfse-child-yehuda-cooking-lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 0;
  margin: 0;
}

.atrfse-child-yehuda-cooking-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 180px);
  border-radius: 16px;
  object-fit: contain;
}

.atrfse-child-yehuda-cooking-lightbox__caption {
  font-size: 16px;
  text-align: center;
}

.atrfse-child-yehuda-cooking-lightbox__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.atrfse-child-yehuda-cooking-lightbox__counter {
  font-family: var(--wp--preset--font-family--rubik);
  font-size: 16px;
}

.atrfse-child-yehuda-cooking-lightbox__prev,
.atrfse-child-yehuda-cooking-lightbox__next,
.atrfse-child-yehuda-cooking-lightbox__close {
  border: 1px solid currentColor;
  border-radius: var(--wp--custom--yehuda-cooking--radius-pill);
  background: transparent;
  color: inherit;
  font-family: var(--wp--preset--font-family--rubik);
  font-size: 16px;
  cursor: pointer;
}

.atrfse-child-yehuda-cooking-lightbox__prev,
.atrfse-child-yehuda-cooking-lightbox__next {
  padding: 10px 24px;
}

.atrfse-child-yehuda-cooking-lightbox__close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.atrfse-child-yehuda-cooking-lightbox__prev:hover,
.atrfse-child-yehuda-cooking-lightbox__next:hover,
.atrfse-child-yehuda-cooking-lightbox__close:hover {
  background: var(--wp--preset--color--ti-fg-alt);
  color: var(--wp--preset--color--ti-fg);
}

.atrfse-child-yehuda-cooking-lightbox :focus-visible {
  outline: 2px solid var(--wp--preset--color--ti-accent-secondary);
  outline-offset: 3px;
}

/* Comments closed and none posted: the comments block prints nothing, so drop the empty panel. */
.atrfse-child-yehuda-cooking-comments:not(:has(.wp-block-comments > *)) {
  display: none;
}

.atrfse-child-yehuda-cooking-comments .wp-block-comments-title {
  margin-top: 0;
}

.atrfse-child-yehuda-cooking-related > .wp-block-heading {
  margin: 0 0 32px;
}

@media (min-width: 1024px) {
  .atrfse-child-yehuda-cooking-recipe__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: 40px clamp(40px, 6vw, 96px);
    padding: 40px;
  }

  .atrfse-child-yehuda-cooking-recipe__aside {
    position: sticky;
    top: 24px;
    align-self: start;
    order: 0;
  }

  .atrfse-child-yehuda-cooking-recipe-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Page heroes (cooking tips, about)
   ========================================================================== */

.atrfse-child-yehuda-cooking-page-hero {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 64px) 0;
}

.atrfse-child-yehuda-cooking-page-hero > *,
.atrfse-child-yehuda-cooking-page-hero .wp-block-group > * {
  margin: 0 0 24px;
}

.atrfse-child-yehuda-cooking-page-hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.atrfse-child-yehuda-cooking-page-hero .atrfse-child-yehuda-cooking-lead {
  color: var(--wp--custom--yehuda-cooking--text-muted);
}

@media (min-width: 1024px) {
  .atrfse-child-yehuda-cooking-page-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}

/* ==========================================================================
   Print (recipe pages)
   ========================================================================== */

@media print {
  .atrfse-child-yehuda-cooking-header,
  .atrfse-child-yehuda-cooking-footer,
  .atrfse-child-yehuda-cooking-related,
  .atrfse-child-yehuda-cooking-comments,
  .atrfse-child-yehuda-cooking-breadcrumbs,
  .atrfse-child-yehuda-cooking-print,
  .atrfse-child-yehuda-cooking-recipe-video,
  .atr-fse-skip-link {
    display: none !important;
  }

  .atrfse-child-yehuda-cooking-panel {
    border: 0;
    padding: 0;
  }

  .atrfse-child-yehuda-cooking-recipe-hero-image img {
    max-height: 300px;
  }

  .atrfse-child-yehuda-cooking-recipe__aside {
    position: static;
  }
}
