/*
Theme Name:   Scott Pete
Theme URI:    https://scottpete.com
Description:  Scott Pete child theme for IPC Base
Author:       Overtime Agency
Author URI:   https://overtimeagency.com
Template:     ipc-base
Version:      1.0.9
Text Domain:  scott-pete
*/

/* =========================================================
   SCOTT PETE — BRAND VARIABLE OVERRIDES
   ========================================================= */

:root {

  /* --- Core Brand Colors --- */
  --color-primary:          #152e86;
  --color-primary-dark:     #0e1f5e;
  --color-primary-light:    #1e3fa8;

  --color-secondary:        #ab162b;
  --color-secondary-dark:   #8a1122;
  --color-secondary-light:  #c91a33;

  --color-accent:           #fcc278;
  --color-accent-dark:      #e8a44e;
  --color-accent-light:     #fdd49a;

  /* --- Neutrals --- */
  --color-white:            #ffffff;
  --color-off-white:        #f8f6f2;
  --color-light-gray:       #ebebeb;
  --color-mid-gray:         #999999;
  --color-dark-gray:        #333333;
  --color-black:            #111111;

  /* --- UI Roles --- */
  --color-bg:               #ffffff;
  --color-bg-alt:           #152e86;
  --color-bg-dark:          #152e86;
  --color-text:             #111111;
  --color-text-light:       #666666;
  --color-text-muted:       #666666;
  --color-border:           #ddd;
  --color-border-dark:      #152e86;

  --color-cta:              #fcc278;
  --color-cta-hover:        #e8a44e;
  --color-cta-text:         #152e86;

  --color-nav-bg:           transparent;
  --color-nav-text:         #ffffff;
  --color-nav-hover:        #fcc278;
  --color-nav-border:       #fcc278;

  /* --- Typography ---
     Adobe Fonts kit ipc5oaz:
       futura-pt            400/700  body and UI
       futura-pt-condensed  700      headings (Cond Bold — matches designer PSD)
       futura-pt-condensed  500      CTAs and labels (Cond Medium) */
  --font-heading:           'futura-pt-condensed', sans-serif;
  --font-subheading:        'futura-pt-condensed', sans-serif;
  --font-body:              'futura-pt', sans-serif;
  --font-accent:            'futura-pt-condensed', sans-serif;
  --font-cta:               'futura-pt-condensed', sans-serif;
  --font-display:           'futura-pt-condensed', sans-serif;
  --font-primary:           'futura-pt', sans-serif;

  /* --- Font Weights --- */
  --fw-regular:             400;
  --fw-medium:              500;
  --fw-semibold:            600;
  --fw-bold:                700;
  --fw-black:               900;

  /* --- Spacing & Layout --- */
  --section-padding-y:      clamp(3rem, 6vw, 6rem);
  --container-max:          1200px;
  --border-radius:          4px;
  --border-radius-lg:       8px;

  /* --- Shadows --- */
  --shadow-sm:              0 2px 6px rgba(21, 46, 134, 0.15);
  --shadow-md:              0 4px 16px rgba(21, 46, 134, 0.2);
  --shadow-lg:              0 8px 32px rgba(21, 46, 134, 0.25);

  /* --- Transitions --- */
  --transition-fast:        150ms ease;
  --transition-base:        250ms ease;
  --transition-slow:        400ms ease;

  /* --- Header --- */
  --header-bg:              transparent;
  --header-height:          80px;

  /* --- Footer --- */
  --footer-bg:              #fcc278;
  --footer-text:            #152e86;
  --footer-link:            #152e86;
  --footer-link-hover:      #c8102e;
  --footer-border:          rgba(21, 46, 134, 0.2);

  /* --- Forms --- */
  --input-bg:               #ffffff;
  --input-border:           rgba(255, 255, 255, 0.4);
  --input-border-focus:     #fcc278;
  --input-text:             #111111;
  --input-placeholder:      #999999;
  --input-radius:           3px;

  /* --- Product tokens ---
     225x400 per mockup, confirmed against the PSD. */
  --product-flip-width:         225px !important;
  --product-flip-height:        400px !important;
  --product-flip-bg:            #ab162b;
  --product-flip-back-bg:       #ab162b;
  --product-flip-back-text:     #ffffff;
  --product-nutrition-bg:       #ab162b;
  --product-nutrition-text:     #ffffff;
  --product-nutrition-label:    rgba(255, 255, 255, 0.75);
  --product-tab-active-color:   #ab162b;
  --product-tab-border:         #cccccc;
  --product-scroll-arrow-bg:    #ab162b;
  --product-scroll-arrow-color: #ffffff;
  --product-detail-bg:          #152e86;

  /* --- Section-specific --- */
  --section-perks-bg:           #152e86;
  --section-perks-city-overlay: rgba(21, 46, 134, 0.75);

  /* --- Stat pills ---
     Single source of truth for every stat-pill number size across the
     theme: the single-recipe pills, the recipe archive-card pills, AND
     the product-detail nutrition circles all read this. Bumping pill
     number size is a one-line change here. */
  --stat-pill-value-size:     2rem;

}


/* =========================================================
   GLOBAL FONT ENFORCEMENT
   ========================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: 'futura-pt-condensed', sans-serif !important;
  font-weight: 800 !important;
}

.btn {
  font-family: 'futura-pt-condensed', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  border-radius: 6px;
  text-transform: uppercase;
  font-size: 1.5em;
  padding: .2em .5em;
}

/* Default button: gold bg / navy text */
:root {
  --btn-bg:           #fcc278;
  --btn-color:        #152e86;
  --btn-border-color: #fcc278;
  --btn-bg-hover:     #e8a44e;
}


/* =========================================================
   HEADER — TRANSPARENT ON HOME, GOLD FIXED ON INTERNAL PAGES
   ========================================================= */

.brand-scott-pete {
  --header-top-bg:   transparent;
  --header-brand-bg: transparent;
}

.site-header {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: transparent;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header .header-brand { display: none; }

.site-header .header-top .site-wrapper {
  justify-content: flex-end;
  min-height: auto;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.site-header .primary-nav { flex: 0 0 auto; }

.site-header .primary-nav .nav-menu li a {
  color: #ffffff;
  text-transform: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.75rem;
}

.site-header .primary-nav .nav-menu li a:hover,
.site-header .primary-nav .nav-menu li.current-menu-item > a {
  color: #fcc278;
}

.site-header .primary-nav .nav-menu li + li > a::before {
  content: '|';
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
  margin-right: 0.75rem;
  pointer-events: none;
}

.brand-scott-pete .site-main { padding-top: 0 !important; }

/* Sticky (home, scrolled past threshold) */
.site-header.is-sticky {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  background: #fcc278;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.site-header.is-sticky .header-top { height: 75px; }

.site-header.is-sticky .header-top .site-wrapper {
  height: 75px;
  padding-top: 0;
  padding-bottom: 0;
  justify-content: flex-end;
  align-items: center;
}

.site-header.is-sticky .header-brand {
  display: block;
  position: relative;
  height: 0;
  overflow: visible;
}

.site-header.is-sticky .header-brand .site-wrapper {
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
}

.site-header.is-sticky .site-logo {
  position: absolute;
  top: -60px;
  left: var(--wrapper-padding);
  max-height: 140px;
  width: auto;
}

.site-header.is-sticky .primary-nav .nav-menu li a { color: #152e86; }
.site-header.is-sticky .primary-nav .nav-menu li a:hover,
.site-header.is-sticky .primary-nav .nav-menu li.current-menu-item > a { color: #ab162b; }
.site-header.is-sticky .primary-nav .nav-menu li + li > a::before { color: rgba(21, 46, 134, 0.35); }

/* Admin bar (logged-in): offset EVERY fixed/absolute header state by the WP
   toolbar height. Without it the header stays pinned to the viewport top while
   the toolbar's html{margin-top} pushes page content (the hero) down, opening a
   gap above the hero. Generalized from the old .is-sticky-only rule so the home
   transparent header, internal fixed header, and sticky header all line up. */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* Internal pages: always gold, always fixed */
body:not(.home) .site-header {
  position: fixed !important;
  background: #fcc278;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

body:not(.home) .site-header .header-top { height: 75px; }

body:not(.home) .site-header .header-top .site-wrapper {
  height: 75px;
  padding-top: 0;
  padding-bottom: 0;
  justify-content: flex-end;
  align-items: center;
}

body:not(.home) .site-header .header-brand {
  display: block;
  position: relative;
  height: 0;
  overflow: visible;
}

body:not(.home) .site-header .header-brand .site-wrapper {
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
}

body:not(.home) .site-header .site-logo {
  position: absolute;
  left: var(--wrapper-padding);
  top: -70px;
  max-height: 140px;
  width: auto;
  transition: max-height 250ms ease, top 250ms ease;
}

body:not(.home) .site-header.logo-scrolled .site-logo { top: -55px; max-height: 110px; }


body:not(.home) .site-header .primary-nav .nav-menu li a { color: #152e86; }
body:not(.home) .site-header .primary-nav .nav-menu li a:hover,
body:not(.home) .site-header .primary-nav .nav-menu li.current-menu-item > a { color: #ab162b; }
body:not(.home) .site-header .primary-nav .nav-menu li + li > a::before { color: rgba(21, 46, 134, 0.35); }

body:not(.home) .site-main { padding-top: 75px !important; }

/* Mobile */
@media (max-width: 768px) {
  .site-header {
    position: fixed !important;
    background: rgba(21, 46, 134, 0.92) !important;
    backdrop-filter: blur(6px);
  }
  .site-header .header-brand { display: block; }
  .site-header .header-top .site-wrapper {
    justify-content: space-between;
    padding: 0.6rem var(--wrapper-padding);
  }
}


/* =========================================================
   HOME BANNER / HERO
   ========================================================= */

.home-banner { position: relative; width: 100%; }
.home-banner-track { width: 100%; }

.home-banner-slide {
  min-height: 90vh !important;
  background-position: top center !important;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  width: 100%;
}

.home-banner-heading-image {
  width: 340px;
  max-width: 60vw;
  height: auto !important;
  max-height: none !important;
  display: block;
  margin: 0 auto 1.5rem;
}

.home-banner-content .btn {
  background: #152e86;
  color: #fcc278;
  border-color: #152e86;
  font-size: 1.2rem;
  letter-spacing: 0;
  padding: 0.45em 1em;
}
.home-banner-content .btn:hover {
  background: #0e1f5e;
  border-color: #0e1f5e;
  color: #ffffff;
}


/* =========================================================
   PRODUCTS PAGE BANNER
   Full-bleed hero on page-products.php
   ========================================================= */

.products-banner {
  position: relative;
  width: 100%;
  min-height: 75vh;
  background-color: #152e86;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 180px;
  overflow: visible;
}

.products-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    rgba(21, 46, 134, 0.85) 100%
  );
}

.products-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-4xl) var(--wrapper-padding) var(--space-xl);
  max-width: 900px;
}

.products-banner-subtitle {
  display: block;
  color: #fcc278;
  font-family: 'futura-pt-condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-sm);
}

.products-banner-title {
  color: #ffffff;
  font-family: 'futura-pt-condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 6rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 var(--space-md);
  line-height: 0.95;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.products-banner-body {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin: 0;
}

/* Floating product PNG — overlaps into the section below */
.products-banner-product {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 450px;
  max-width: 90vw;
  pointer-events: none;
}
.products-banner-product img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

@media (max-width: 768px) {
  .products-banner { padding-bottom: 120px; }
  .products-banner-product { width: 360px; bottom: -70px; }
}
@media (max-width: 480px) {
  .products-banner-product { width: 260px; bottom: -50px; }
}


/* =========================================================
   PRODUCTS PAGE CONTENT WRAPPER
   ========================================================= */

.products-page-content {
  position: relative;
  z-index: 1;
}

/* Extra top padding on first block to clear the floating product PNG.
   page-products.php wraps its content in .products-page-content; the
   taxonomy-product_category.php and single-product.php overrides render
   the banner and the category section as direct siblings with no
   wrapper, so the adjacent-sibling selector covers those two instead.

   .products-banner-product still floats via position:absolute and
   bottom:-120px — it overlaps into this section on all three templates,
   same as the day this was written. A prior edit dropped this to
   var(--space-xl) on the premise that the hero photo no longer floats
   out of the banner; it still does, that premise was wrong, restoring
   the original compensation. */
.products-page-content > .product-category-section:first-child,
.products-page-content > .product-category-grid:first-child,
.products-banner + .product-category-section {
  padding-top: calc(var(--section-padding) + 130px) !important;
}

@media (max-width: 768px) {
  .products-page-content > .product-category-section:first-child,
  .products-page-content > .product-category-grid:first-child,
  .products-banner + .product-category-section {
    padding-top: calc(var(--section-padding) + 80px) !important;
  }
}


/* =========================================================
   PRODUCT CATEGORY SECTION
   Navy background, flip-card grid
   ========================================================= */

/* Override base --color-bg-dark (#111 near-black) with brand navy */
.product-category-section {
  background-color: #152e86 !important;
}

/* "PREMIUM PRODUCTS" heading — white, centered */
.product-category-section .section-heading {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.product-category-section .section-heading h2,
.product-category-section h2 {
  color: #ffffff !important;
  font-family: 'futura-pt-condensed', sans-serif !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 var(--space-sm);
}

.product-category-section .section-heading p,
.product-category-section .eyebrow {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-top: var(--space-sm);
}

/* Card face structure — reworked to match .product-category-card__front/
   __back, the flip module already built for the homepage/main products
   grid: white front card, photo constrained to the top with a solid
   label bar underneath, instead of products.css's default full-bleed
   photo with a dark overlay label. !important throughout the face
   rules because parent's products.css loads after this stylesheet
   (same load-order issue as product-detail-section above) and silently
   wins on anything not flagged. */
/* Parent hardcodes .product-category-card__flip at 215x330 in its own
   block CSS (blocks/product-category-grid/product-category-grid.css),
   doesn't use the shared --product-flip-width/height vars at all. Override
   directly to match the same 225x400 mockup spec as .product-flip-card. */
.product-category-card__flip {
  display: block !important;
  position: relative !important;
  width: 225px !important;
  height: 400px !important;
}

/* Same anchor-tag vulnerability as above, old class system. The <a>
   defaults to inline/static without !important on display/position,
   and .product-flip-front/back (position:absolute) then skip past it
   looking for the next positioned ancestor instead of filling it. */
.product-flip-card a {
  display: block !important;
  position: relative !important;
}

/* Block background — parent CSS never sets one here, page renders on
   whatever the page background is (white) without this.

   padding-bottom forced here for the same reason padding-top needed
   forcing on the wrapper selector above: parent's own
   "padding: var(--section-padding) 0" on this class has no !important
   and has been losing outright, not just on one side.

   Scoped to :not(.brand-container ...) so this only paints the navy box
   on the standalone product templates (archive / single), where the block
   is a direct child of .products-page-content. On the homepage the block
   is nested inside red-container's .brand-container, which supplies the red
   section background via its ACF bg_color; the block must stay transparent
   there so that red shows through. See the homepage override below. */
.brand-container .product-category-grid {
  background-color: transparent !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.products-page-content .product-category-grid,
.products-banner + .product-category-grid {
  background-color: #152e86 !important;
  padding-bottom: var(--section-padding) !important;
}

/* Cards row — parent's display:flex/justify-content:center have no
   !important, same load-order loss as everything else here, so it
   was rendering as plain block flow (one card, pinned left). Also
   never had a max-width at all; the block's own PHP skips .site-wrapper
   entirely and nothing else supplied one. */
.product-category-grid__cards {
  display: flex !important;
  justify-content: center !important;
  gap: var(--space-lg);
  max-width: var(--wrapper-width, 1200px);
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--wrapper-padding);
  padding-right: var(--wrapper-padding);
}

/* Homepage instance: the block already lives inside red-container's
   .site-wrapper, so the block supplying its own max-width + wrapper padding
   double-insets the card row (the narrow centered look in the blue box).
   Strip the block's own wrapper constraints here and let the cards fill the
   red-container wrapper. Keep justify-content:center so a short row still
   centers per the mock. */
.brand-container .product-category-grid__cards {
  max-width: none !important;
  padding-left: 0;
  padding-right: 0;
}

.product-category-grid .section-heading {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.product-category-grid .section-heading h2 {
  color: #ffffff !important;
  font-family: 'futura-pt-condensed', sans-serif !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 var(--space-sm);
}

.product-category-grid .section-heading .eyebrow {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-top: var(--space-sm);
}

/* Front-face visual treatment shared by both card systems (white card,
   photo-over-label). NOTE: no transform here — the two systems flip
   differently and mixing them broke the taxonomy cards:
     - .product-flip-* (taxonomy archive): parent products.css rotates the
       INNER wrapper (.product-flip-inner) on hover; the faces stay static.
     - .product-category-card__* (homepage/products block): the block CSS
       rotates the FACES themselves.
   Face-rotation !important rules are therefore scoped to the __card system
   ONLY (below), so they can't pin the taxonomy system's faces and cancel
   the parent's inner-rotation. */
.product-flip-front,
.product-category-card__front {
  position: absolute !important;
  inset: 0 !important;
  background-color: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  padding: 0 !important;
  border: 4px solid #ffffff !important;
  box-sizing: border-box;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

.product-flip-front img,
.product-category-card__front img {
  position: relative !important;
  inset: auto !important;
  flex: 1;
  min-height: 0;
  width: 100% !important;
  object-fit: cover !important;
  display: block;
}

/* Front label — solid bar under the photo, not an overlay on it */
.product-flip-front-label,
.product-category-card__label {
  position: relative !important;
  z-index: auto !important;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  background-color: #ffffff !important;
  color: #152e86 !important;
  font-family: 'futura-pt-condensed', sans-serif;
  font-weight: 800 !important;
  font-size: 1.2rem !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
  text-align: center !important;
  padding: 0.25em 0.4em 0.3em !important;
  border-radius: 0 !important;
  white-space: nowrap;
}

/* Back face — brand red. No border (design shows a clean red panel),
   content centered both axes with the title stacked above the body.
   As with the front, no transform here — face-rotation is scoped to the
   __card system only, below. */
.product-flip-back,
.product-category-card__back {
  position: absolute !important;
  inset: 0 !important;
  background-color: #ab162b !important;
  border: none !important;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: var(--space-lg) !important;
  gap: var(--space-sm);
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

/* __card system only: the homepage/products block rotates faces, so the
   back starts flipped 180deg and the hover rules below bring it around.
   The taxonomy .product-flip-back is intentionally excluded — its parent
   rotates the inner wrapper instead. */
.product-category-card__back {
  transform: rotateY(180deg) !important;
  transition: transform 0.45s ease;
}
.product-category-card__front {
  transform: rotateY(0deg) !important;
  transition: transform 0.45s ease;
}

/* Hover states — __card system ONLY (homepage/products block), which
   flips by rotating the faces. The .product-flip-* taxonomy system is
   deliberately not here: its parent rotates .product-flip-inner instead,
   and adding face-rotation rules for it cancels that out (the bug this
   split fixes). */
.product-category-card__flip:hover .product-category-card__front {
  transform: rotateY(-180deg) !important;
}
.product-category-card__flip:hover .product-category-card__back {
  transform: rotateY(0deg) !important;
}

/* Homepage instance (nested in red-container): back face is navy with the
   same white card border as the front, per mock. The base rule above uses
   brand red with no border for the standalone product templates — scope
   this to .brand-container so only the homepage flips to navy. */
.brand-container .product-category-card__back {
  background-color: #152e86 !important;
  border: 4px solid #ffffff !important;
}

.product-flip-back h3,
.product-category-card__back h3 {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 2rem !important;
  margin: 0 0 var(--space-xs);
  order: 0;
}

.product-flip-back p,
.product-category-card__back p {
  color: #ffffff;
  margin: 0;
  order: 1;
}

/* Parent's products.css has its own .product-flip-card--active .product-flip-inner
   rule (box-shadow using --color-accent) that our removed duplicate never touched.
   Kill it explicitly. */
.product-flip-card--active .product-flip-inner {
  box-shadow: none !important;
}

/* Scroll arrows */
.product-scroll-arrow { background-color: #ab162b; }
.product-scroll-arrow:hover { background-color: #8a1122; }

/* CTA below grid */
.product-grid-cta .btn,
.product-category-grid__cta .btn {
  background: #fcc278;
  color: #152e86;
  border-color: #fcc278;
}
.product-grid-cta .btn:hover,
.product-category-grid__cta .btn:hover {
  background: #e8a44e;
  border-color: #e8a44e;
}

/* Homepage instance (nested in red-container):
   center "ALL PRODUCTS" under the card row and give it breathing room
   above (the block's own bottom padding is zeroed on the homepage, so the
   gap has to come from the CTA row itself). Colors already match. */
.brand-container .product-category-grid__cta {
  text-align: center;
  margin-top: var(--space-2xl);
}


/* =========================================================
   PRODUCT LIST SECTION
   Red background, white rounded container with circles
   ========================================================= */

.product-list-section {
  background-color: #ab162b !important;
  padding: var(--section-padding) 0;
}

.product-list-section h2 {
  color: #ffffff;
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Red rounded box, same shade as the section — the border alone defines it */
.product-list-section .product-list-grid {
  display: flex !important;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
  list-style: none;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-3xl);
  max-width: 860px;
  background-color: transparent;
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
}

.product-list-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: var(--space-sm);
  width: 180px;
  text-decoration: none;
  color: #ffffff;
  transition: transform var(--transition-base);
}
.product-list-item:hover { transform: translateY(-4px); color: #ffffff; }

.product-list-item-images {
  width: 160px;
  height: 160px;
  border-radius: 50% !important;
  border: 4px solid #ffffff;
  overflow: hidden;
  background-color: #8a1122 !important;
  aspect-ratio: unset !important;
}

.product-list-item-images .img-default,
.product-list-item-images .img-hover {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  padding: 0 !important;
}

.product-list-item:hover .img-default { opacity: 0; }
.product-list-item:hover .img-hover   { opacity: 1; }

.product-list-item h3 {
  color: #ffffff;
  font-family: 'futura-pt-condensed', sans-serif;
  font-weight: 500;
  font-size: 2rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  max-width: 180px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@media (max-width: 640px) {
  .product-list-section .product-list-grid { padding: var(--space-xl) var(--space-lg); gap: var(--space-xl); }
  .product-list-item-images { width: 120px; height: 120px; }
}


/* =========================================================
   PRODUCT DETAIL SECTION
   Navy background, white card inner panel.

   Layout strategy: display:contents on the two column wrappers
   promotes their children into the outer CSS Grid, so the
   variation nav and panels span full-width (rows 4+) while
   title/desc/CTAs sit in col 1 and the hero circle in col 2.

   Specificity note: several parent rules use .is-active or
   .product-variation-panel.is-active which outrank plain class
   selectors. Those overrides require !important here.
   ========================================================= */

.product-detail-section {
  background-color: #152e86 !important;
  padding: var(--space-2xl) 0 var(--space-3xl);
}

/* White card with red keyline, per mockup (white card floating on navy).
   overflow:visible lets the oversized hero circle break the card edges
   (KYL pulls the image out with negative margins). */
.product-detail-section .site-wrapper {
  position: relative;
  background-color: #ffffff;
  border: 3px solid #ab162b;
  border-radius: 20px;
  padding: var(--space-3xl) 5%;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.25);
  overflow: visible;
}

/* Back-link: KYL shows ONLY a large centered up-arrow above the card,
   no term text, no divider line. The term name is printed by PHP, so we
   zero its font-size to hide it and enlarge just the inline SVG arrow. */
.product-detail-section .back-to-grid {
  position: relative;
  display: flex;
  justify-content: center;
  margin: calc(-1 * var(--space-3xl) - 3px) 0 var(--space-xl);
  transform: translateY(calc(-1 * var(--space-2xl) - var(--space-md)));
  padding: 0;
  border-bottom: none;
}

.product-detail-section .back-to-grid a {
  font-size: 0; /* hides the BOLOGNA term text */
  color: #ffffff;
  border: none;
}
.product-detail-section .back-to-grid a:hover { color: #fcc278; }

.product-detail-section .back-to-grid svg {
  width: 40px;
  height: 40px;
  transform: rotate(-90deg); /* parent chevron points right; rotate to point up */
  stroke: #ffffff;
  stroke-width: 2.5;
}
.product-detail-section .back-to-grid a:hover svg { stroke: #fcc278; }

/* ── Outer grid ─────────────────────────────────────────── */

.product-detail-layout {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-template-rows: auto auto auto auto auto !important;
  gap: var(--space-lg) var(--space-2xl) !important;
  align-items: start;
}

/* Flatten wrappers so children participate directly in the grid */
.product-detail-content,
.product-detail-visual {
  display: contents;
}

/* Left col, rows 1–3 */
.product-detail-title       { grid-column: 1; grid-row: 1; }
.product-detail-description { grid-column: 1; grid-row: 2; }
.product-detail-ctas        { grid-column: 1; grid-row: 3; }

/* Hero circle: occupies the right column across the content rows, but its
   SIZE is explicit (not derived from row height), so it can't be squished
   by the left column's content. Positioned per the designer PSD: ~56px
   inset from the card top, ~73px from the card right edge.

   Key fix: align-self:start + justify-self:end keep the item from stretching
   to fill the grid area; the image's own fixed width/height define the box.

   TODO (deferred): PSD shows the circle breaching the card's TOP border and
   overflowing onto the navy above (KYL does this with a negative top margin).
   Currently it sits fully inside the card. Revisit with a negative margin-top
   on the img once the rest of the layout is locked — needs care because
   negative margins previously reintroduced clipping. */
.product-detail-hero-image {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: start;
  justify-self: end;
  display: block;
  overflow: visible;
  margin: 0;
  border: none;
  z-index: 10;
  padding-top: 56px;   /* PSD: circle top inset from card top */
}

.product-detail-hero-image img {
  display: block;
  width: 460px;
  height: 460px;
  max-width: 100%;
  margin-right: -33px;  /* PSD: pull toward card edge for ~73px net inset */
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 5px solid #ab162b;
}

/* Variation nav: full-width, row 4 */
.product-variation-nav { grid-column: 1 / -1; grid-row: 4; }

/* Variation panels: full-width, row 5 */
.product-variation-panels { grid-column: 1 / -1; grid-row: 5; }

/* ── Title & copy ───────────────────────────────────────── */

.product-detail-title {
  color: #152e86;
  font-family: 'futura-pt-condensed', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(3rem, 4.5vw, 4rem);
  line-height: 0.95;
  margin-bottom: var(--space-lg);
}

.product-detail-description {
  color: #333333;
  font-size: 20px;
  line-height: 30px;
  margin-bottom: var(--space-xl);
}

/* ── CTAs ───────────────────────────────────────────────── */

.product-detail-ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* "Where to Buy" — solid gold */
.product-detail-ctas .btn {
  background-color: #fcc278;
  color: #152e86;
  border-color: #fcc278;
  font-family: 'futura-pt-condensed', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.35em 1.2em;
  letter-spacing: 0.06em;
}
.product-detail-ctas .btn:hover {
  background-color: #e8a44e;
  border-color: #e8a44e;
}

/* "Meal Ideas" — solid red. inline-flex centers the label vertically
   (parent .btn line-height was letting it ride high). */
.product-detail-ctas .btn--outline,
.product-meal-ideas-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  background-color: #ab162b !important;
  color: #ffffff !important;
  border-color: #ab162b !important;
}
.product-detail-ctas .btn--outline:hover,
.product-meal-ideas-link:hover {
  background-color: #8a1122 !important;
  border-color: #8a1122 !important;
}

/*
   "Where to Buy" — Destini widget button.
   productWidgetSnippet.js injects a Chakra UI <button class="chakra-button">
   into .destini-locator-class. We style THAT to look like the gold CTA,
   matching how the live brand-family sites (e.g. Kentucky Legend) do it.
   Renders only when destini_locator_id + destini_alpha_code ACF options
   are set and the product has Destini SKUs.
*/
.product-detail-ctas .destini-locator-class {
  display: inline-block;
  order: -1; /* Where to Buy renders first, ahead of Meal Ideas, per mockup */
}

.product-detail-ctas .destini-locator-class .chakra-button {
  background-color: #fcc278 !important;
  color: #152e86 !important;
  border: none !important;
  border-radius: 6px !important;
  font-family: 'futura-pt-condensed', sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.9rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 0.55em 1.4em !important;
  height: auto !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
}

.product-detail-ctas .destini-locator-class .chakra-button:hover {
  background-color: #e8a44e !important;
  color: #152e86 !important;
}

/* ── Variation nav — centered pipe-separated tabs, no rule lines ── */

.product-variation-nav {
  border-top: none;
  border-bottom: none;
  padding: 0;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

/* Hide "Select a variety:" label */
.product-variation-nav-label { display: none; }

.product-variation-nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-variation-nav-list li {
  display: flex;
  align-items: center;
}

/* Pipe separator between tabs */
.product-variation-nav-list li + li::before {
  content: "|";
  color: #cccccc;
  padding: 0 0.85rem;
  font-weight: 300;
  line-height: 1;
  pointer-events: none;
}

/*
   Parent CSS has .product-variation-nav-list li button.is-active
   with a filled background. We need !important on all resets here
   so the plain-text tab style wins regardless of specificity order.
*/
.product-detail-section .product-variation-nav-list li button {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0;
  font-family: 'futura-pt-condensed', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.5rem !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #152e86;
  cursor: pointer;
  line-height: 1;
  transition: color 150ms ease;
  box-shadow: none !important;
}

.product-detail-section .product-variation-nav-list li button:hover { color: #ab162b !important; }

.product-detail-section .product-variation-nav-list li button.is-active {
  color: #ab162b !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ── Variation panel — inner two-col grid ───────────────── */

/*
   Panel visibility is JS-driven: main.js toggles .is-active on exactly
   one panel at a time. Inactive panels MUST stay hidden.

   Parent CSS:
     .product-variation-panel            { display: none }
     .product-variation-panel.is-active  { display: block }

   We keep the hidden default and only restyle the ACTIVE panel to grid.
   Do NOT put .product-variation-panel (base) in the grid rule, or every
   panel renders and the JS toggle appears broken.
*/
.product-variation-panel:not(.is-active) {
  display: none !important;
}

.product-variation-panel.is-active {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg) var(--space-xl);
  align-items: start;
}

/*
   Single-variation products have no nav and the sole panel may not carry
   .is-active (JS only runs when nav buttons exist). Force it visible.
*/
.product-variation-panel--single {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg) var(--space-xl);
  align-items: start;
}

/* Package image: left col, spans all right-col rows */
.product-variation-image {
  grid-column: 1;
  grid-row: 1 / span 5;
}

/* Package image is rectangular — no circle */
.product-variation-image img {
  width: 100% !important;
  height: auto !important;
  max-height: 420px;
  border-radius: 0 !important;
  border: none !important;
  object-fit: contain;
  display: block;
}

/* Right col items. Scoped under .product-detail-section + !important so the
   parent products.css .product-variation-name rule can't win on load order. */
.product-detail-section .product-variation-name {
  grid-column: 2;
  grid-row: 1;
  color: #152e86 !important;
  font-family: 'futura-pt-condensed', sans-serif !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  text-align: left !important;
  font-size: clamp(2.25rem, 3.5vw, 3rem) !important;
  line-height: 1;
  margin-bottom: var(--space-lg);
}

/* Single-variation: name is redundant; shift other items up */
.product-variation-panel--single .product-variation-name { display: none; }
.product-variation-panel--single .product-certifications { grid-row: 1; }
.product-variation-panel--single .product-nutrition      { grid-row: 2; }
.product-variation-panel--single .product-ingredients    { grid-row: 3; }

.product-certifications { grid-column: 2; grid-row: 2; }

.product-nutrition {
  grid-column: 2;
  grid-row: 3;
  background: none !important;
  background-color: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  margin-bottom: 0;
}

.product-ingredients {
  grid-column: 2;
  grid-row: 4;
  border-top: none;
  margin-top: var(--space-lg);
  padding-top: 0;
}

.product-ingredients-label {
  color: #152e86;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.product-ingredients p {
  font-size: 1rem;
  line-height: 1.6;
}

/* ── Nutrition — solid red circles, white text (KYL proportions) ── */

.product-nutrition-grid {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  text-align: center;
}

.product-nutrition-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background-color: #ab162b !important;
  border: none;
  gap: 1px;
  flex-shrink: 0;
}

.product-nutrition-value {
  font-family: 'futura-pt-condensed', sans-serif;
  font-weight: 800;
  font-size: var(--stat-pill-value-size);
  color: #ffffff !important;
  line-height: 1;
}

.product-nutrition-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.1;
  text-align: center;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .product-detail-section .site-wrapper { padding: var(--space-xl); }

  .product-detail-layout {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
  }

  .product-detail-title,
  .product-detail-description,
  .product-detail-ctas,
  .product-detail-hero-image,
  .product-variation-nav,
  .product-variation-panels {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .product-detail-hero-image {
    order: -1;
    justify-content: center;
  }
  .product-detail-hero-image img {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .product-variation-panel.is-active,
  .product-variation-panel--single {
    grid-template-columns: 1fr !important;
  }

  .product-variation-image,
  .product-variation-name,
  .product-certifications,
  .product-nutrition,
  .product-ingredients {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .product-variation-panel--single .product-certifications,
  .product-variation-panel--single .product-nutrition,
  .product-variation-panel--single .product-ingredients {
    grid-row: auto !important;
  }
}

@media (max-width: 640px) {
  .product-detail-section .site-wrapper { padding: var(--space-lg); border-radius: 12px; }
  .product-detail-ctas { flex-direction: column; }
  .product-detail-ctas .btn { width: 100%; text-align: center; }
  .product-detail-hero-image img { width: 160px; height: 160px; }
  .product-nutrition-item { width: 80px; height: 80px; }
  .product-nutrition-value { font-size: 1.4rem; }
}


/* =========================================================
   TWO-COL BANNER
   ========================================================= */

.two-col-banner {
  background-color: #152e86 !important;
  padding: 0 !important;
  overflow: hidden;
  border-bottom: 6px solid #fcc278;
}
.two-col-banner .site-wrapper { max-width: 100%; padding: 0; }
.two-col-banner-inner { grid-template-columns: 1fr 1fr; gap: 0 !important; align-items: stretch !important; }
.two-col-banner-image {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-3xl) var(--space-2xl);
  gap: var(--space-xl);
}
.two-col-banner-image img { width: 100%; max-width: 520px; height: auto; border-radius: 0 !important; object-fit: contain !important; }
.two-col-banner-content {
  background-color: #ab162b;
  background-image: var(--two-col-banner-bg-image, none);
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  padding: var(--space-3xl) var(--space-3xl) var(--space-3xl) var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
}
.brand-scott-pete .two-col-banner-content {
  --two-col-banner-bg-image: url('/wp-content/themes/scott-pete/img/cityscape.png');
}
.two-col-banner-text, .two-col-banner-text p { color: rgba(255, 255, 255, 0.92); font-size: 1rem; line-height: 1.7; }
.two-col-banner .btn {
  display: inline-block;
  width: auto;
  background: #fcc278;
  color: #152e86;
  border-color: #fcc278;
  font-size: 1.2rem;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 0.15em 1em;
  margin: 0;
}
.two-col-banner .btn:hover { background: #e8a44e; border-color: #e8a44e; }

@media (max-width: 768px) {
  .two-col-banner .site-wrapper { padding: 0; }
  .two-col-banner-image { padding: var(--space-xl) var(--space-lg); }
  .two-col-banner-content { padding: var(--space-xl) var(--space-lg); }
}


/* =========================================================
   FLAVOR FAN (article-bg override)
   ========================================================= */

.flavor-fan {
  position: relative;
  background-color: #152e86;
  padding: var(--section-padding) 0;
  text-align: center;
  border-top: 4px solid #fcc278;
  overflow: hidden;
}
.flavor-fan::before {
  content: '';
  position: absolute;
  width: 200%; height: 200%;
  top: -50%; left: -50%;
  z-index: 0;
  background-image: url('/wp-content/themes/scott-pete/img/scatterprint.png');
  background-size: 300px;
  background-repeat: repeat;
  transform: rotate(-30deg);
  opacity: 1;
}
.flavor-fan .site-wrapper { position: relative; z-index: 1; max-width: var(--wrapper-width); }
.flavor-fan-title { color: #ffffff; font-family: 'futura-pt-condensed', sans-serif; font-size: clamp(2rem, 5vw, 3.5rem); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.2em; }
.flavor-fan-subtitle { color: rgba(255, 255, 255, 0.85); font-size: 1rem; margin-bottom: var(--space-xl); }
.flavor-fan-main { width: 100%; max-width: 700px; margin: 0 auto var(--space-xl); }
.flavor-fan-main-image { width: 100%; height: auto; display: block; transition: opacity 150ms ease; }
.flavor-fan-thumbs { display: flex; justify-content: center; gap: var(--space-lg); flex-wrap: wrap; padding: 0 var(--wrapper-padding); }
.flavor-fan-thumb { flex: 0 0 160px; cursor: pointer; }
.flavor-fan-thumb img { width: 100%; height: auto; display: block; transition: transform 200ms ease; }
.flavor-fan-thumb:hover img, .flavor-fan-thumb.is-active img { transform: scale(1.12); }
.flavor-fan-label { display: block; color: #ffffff; font-family: 'futura-pt-condensed', sans-serif; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: var(--space-sm); }

@media (max-width: 768px) { .flavor-fan-thumb { flex: 0 0 120px; } }


/* =========================================================
   RECIPES CTA
   ========================================================= */

.recipes-cta .btn { background: #ab162b; color: #ffffff; border-color: #ab162b; }
.recipes-cta .btn:hover { background: #8a1122; border-color: #8a1122; }


/* =========================================================
   PETE'S PERKS (join-now-form)
   ========================================================= */

.join-form-section { background-color: #152e86 !important; }
.join-form-header h2 { color: #fcc278; }
.join-form-section .btn { background: #fcc278; color: #152e86; border-color: #fcc278; }
.join-form-section .btn:hover { background: #e8a44e; border-color: #e8a44e; color: #152e86; }


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer { border-top: 6px solid #152e86; }
.footer-main { padding: var(--space-xl) 0 var(--space-lg); }

.site-footer .footer-nav .footer-menu li a {
  color: #152e86;
  font-family: 'futura-pt-condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.site-footer .footer-nav .footer-menu li a:hover { color: #ab162b; }

.site-footer .footer-nav .footer-menu li + li::before {
  content: 'I';
  color: #152e86;
  font-weight: 300;
  margin-right: var(--space-md);
  pointer-events: none;
  speak: none;
}

/* Footer copyright + legal line — dark blue for contrast on the gold footer.
   Scoped to .site-footer so it outranks ipc-base/css/base.css, which loads
   after this file and otherwise greys these out via --footer-link-color. */
.site-footer .footer-copyright { font-size: 0.78rem; }
.site-footer .footer-copyright,
.site-footer .footer-legal-link,
.site-footer .footer-legal-sep { color: var(--color-primary); }
.site-footer .footer-legal-link:hover { color: var(--color-primary-dark); text-decoration: underline; }


/* =========================================================
   BUN OR NO BUN (archive-recipe.php override)
   Two large link-cards above the category slider on the
   recipes hub. Images are expected pre-rendered (polaroid tilt,
   shadow, handwritten label baked in) — same assumption as the
   Recipe Decision Tree polaroids in reciepes-cta.css, so no
   polaroid framing is built in CSS here.
   ========================================================= */

.recipe-bun-section {
  background-color: #ffffff;
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.recipe-bun-section .section-heading h2 {
  font-family: 'futura-pt-condensed', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #ab162b;
  margin: 0 0 var(--space-xs);
}

.recipe-bun-section .section-subtitle {
  font-family: 'futura-pt', sans-serif;
  font-size: 0.95rem;
  color: #4a4a4a;
  margin: 0;
}

.recipe-bun-cards {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.recipe-bun-card {
  display: block;
  width: 100%;
  max-width: 340px;
  text-align: center;
  transition: transform 250ms ease;
}

.recipe-bun-card:hover {
  transform: scale(1.03);
}

.recipe-bun-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Visually hidden — the label is baked into the polaroid image
   itself, this is here for accessibility / screen readers only. */
.recipe-bun-card-label {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .recipe-bun-cards { gap: var(--space-lg); }
  .recipe-bun-card { max-width: 280px; }
}


/* =========================================================
   RECIPE BANNER
   ipc-base's version left-aligns the title with padding-based
   height. Center it and pin it to ~400px to match the mock.
   ========================================================= */

.recipe-banner {
  display: flex;
  align-items: center;
  height: 400px;
  padding: 0;
}

.recipe-banner-content {
  margin: 0 auto;
  text-align: center;
}

.recipe-banner-content h1 {
  font-weight: var(--fw-bold);
}


/* =========================================================
   RECIPE CATEGORY FLIP CARDS
   ipc-base's default overlays a dark label pill on a full-bleed
   photo. Match the white-card-with-bottom-label pattern already
   built for product-category-grid instead — same white border,
   same label bar treatment, same font.

   !important throughout: recipes.css loads after this stylesheet
   (same load-order quirk documented above the product card rules)
   and wins on anything left unflagged.
   ========================================================= */

/* Same anchor vulnerability caught on the product cards — an <a>
   defaults to inline/static, which breaks the containing block for
   .recipe-flip-front/back below unless forced here too. */
.recipe-flip-card a {
  display: block !important;
  position: relative !important;
}

.recipe-flip-front {
  position: absolute !important;
  inset: 0 !important;
  background-color: #ffffff !important;
  display: flex !important;
  border: 4px solid #ffffff !important;
  box-sizing: border-box;
  padding: 0 !important;
  justify-content: flex-start !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  transform: rotateY(0deg) !important;
  transition: transform 0.45s ease;
}

.recipe-flip-front img {
  position: relative !important;
  inset: auto !important;
  flex: 1;
  min-height: 0;
  width: 100% !important;
  height: auto;
  object-fit: cover !important;
}

.recipe-flip-front-label {
  position: relative !important;
  z-index: auto !important;
  background-color: #ffffff !important;
  color: var(--color-primary) !important;
  font-family: 'futura-pt-condensed', sans-serif;
  font-weight: 800 !important;
  font-size: 1.7rem !important;
  letter-spacing: 0.08em !important;
  border-radius: 0 !important;
  padding: 0.25em 0.5em 0.3em !important;
  flex-shrink: 0;
}

.recipe-flip-back {
  position: absolute !important;
  inset: 0 !important;
  border: 4px solid #ffffff !important;
  box-sizing: border-box;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  transform: rotateY(180deg) !important;
  transition: transform 0.45s ease;
}

.recipe-flip-card:hover .recipe-flip-front,
.recipe-flip-card:focus-within .recipe-flip-front {
  transform: rotateY(-180deg) !important;
}
.recipe-flip-card:hover .recipe-flip-back,
.recipe-flip-card:focus-within .recipe-flip-back {
  transform: rotateY(0deg) !important;
}


/* =========================================================
   RECIPE DIRECTIONS — KILL AUTONUMBERING
   Source content being migrated from the old site isn't consistently
   formatted, some recipes mix section headers ("Pretzels Part 1:",
   "For Sausages:") in with the numbered steps, some don't. Rather
   than write a parser that reliably detects headers across
   inconsistent source formatting, or clean up every recipe by hand
   during migration, the numbers just come off. ipc_get_recipe_directions()
   and the template's own numbered <span> are untouched, this only
   hides the number visually and strips list markers from anything
   nested inside the field content too, in case pasted-in source HTML
   brings its own <ol>.
   ========================================================= */

.recipe-directions-list,
.recipe-directions-list ol,
.recipe-step-text ol {
  list-style: none !important;
  margin: 0;
  padding-left: 0;
}

.recipe-step-number {
  display: none !important;
}


/* =========================================================
   SINGLE RECIPE (single-recipe.php)
   White card, red keyline, rounded corners, on navy. Left column:
   breadcrumb, title, ingredients, directions, meta circles, actions.
   Right column: circular food photo + tag package shot. "You Might
   Also Like" runs full-width below the card.

   Mirrors the product-detail-section card treatment. !important used
   where recipes.css (loads after this file) would otherwise win.
   ========================================================= */

.recipe-detail-section {
  background-color: #152e86 !important;
  padding: var(--space-2xl) 0 var(--space-3xl);
}

/* White card shell */
.recipe-detail-section .site-wrapper {
  position: relative;
  background-color: #ffffff;
  border: 3px solid #ab162b;
  border-radius: 24px;
  padding: var(--space-3xl) 5%;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.25);
}

/* Hide the top back-link chevron block — design uses the breadcrumb instead */
.recipe-detail-section .back-to-recipes {
  display: none !important;
}

/* Two-column layout inside the card */
.recipe-detail-section .recipe-detail-layout {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: var(--space-2xl) var(--space-3xl) !important;
  align-items: start;
}

/* generic wrappers back to normal flow within each column */
.recipe-detail-section .recipe-detail-content,
.recipe-detail-section .recipe-detail-visual {
  display: block;
}

/* Breadcrumb — red, uppercase, top of left column */
.recipe-detail-section .recipe-breadcrumb ol {
  font-family: 'futura-pt-condensed', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}
.recipe-detail-section .recipe-breadcrumb a,
.recipe-detail-section .recipe-breadcrumb li {
  color: #ab162b !important;
}
.recipe-detail-section .recipe-breadcrumb li + li::before {
  content: ':';
  color: #ab162b;
}

/* Title — large navy condensed */
.recipe-detail-section .recipe-detail-title {
  color: #152e86 !important;
  font-family: 'futura-pt-condensed', sans-serif !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  line-height: 0.95;
  margin: var(--space-sm) 0 var(--space-lg);
}

/* Section titles ("Ingredients", "Directions") — plain, no rule line,
   per design (bold navy label, not the underlined parent style) */
.recipe-detail-section .recipe-section-title {
  color: #152e86 !important;
  font-family: 'futura-pt-condensed', sans-serif !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  font-size: 1.25rem !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  margin-bottom: var(--space-sm) !important;
}

/* Ingredients / directions body copy */
.recipe-detail-section .recipe-ingredients-list li,
.recipe-detail-section .recipe-step-text {
  color: #333333;
  border-bottom: none !important;
}
.recipe-detail-section .recipe-directions-list li {
  border-bottom: none !important;
  padding: 2px 0;
}

/* Meta circles — now in the RIGHT column under the photo, centered
   to sit where the WTB button does in the design. */
.recipe-detail-section .recipe-meta {
  --recipe-pill-size: 58px;
  background: none !important;
  padding: 0 !important;
  margin: 0 0 var(--space-xl) !important;
  border-radius: 0 !important;
  gap: var(--space-lg) !important;
  justify-content: center;
}

.recipe-detail-section .recipe-meta-item {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  justify-content: center;
  gap: 0;
  padding: 0;
}
.recipe-detail-section .recipe-meta-item:nth-child(1) { background-color: #4c8c3f; }
.recipe-detail-section .recipe-meta-item:nth-child(2) { background-color: #ab162b; }
.recipe-detail-section .recipe-meta-item:nth-child(3) { background-color: #e8dcc0; }

.recipe-detail-section .recipe-meta-value {
  font-family: 'futura-pt-condensed', sans-serif !important;
  font-weight: 800 !important;
  font-size: var(--stat-pill-value-size) !important;
  color: #ffffff !important;
}
.recipe-detail-section .recipe-meta-item:nth-child(3) .recipe-meta-value {
  color: #152e86 !important;
}
.recipe-detail-section .recipe-meta-unit {
  font-size: 0.5rem;
  color: #ffffff;
}
.recipe-detail-section .recipe-meta-label {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.55rem;
  color: var(--color-text-light);
}

/* Actions — solid buttons like the design (gold print, red share) */
.recipe-detail-section .recipe-actions {
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}
.recipe-detail-section .recipe-action-btn {
  border-radius: 4px;
  border: none;
  padding: 0.6em 2em;
  font-family: 'futura-pt-condensed', sans-serif;
  background-color: #ab162b;
  color: #ffffff;
}
.recipe-detail-section .recipe-action-btn:hover {
  background-color: #8a1122;
  color: #ffffff;
}
/* First action (share) gold, matching the PRINT-first design ordering */
.recipe-detail-section .recipe-action-btn:first-child {
  background-color: #fcc278;
  color: #152e86;
}
.recipe-detail-section .recipe-action-btn:first-child:hover {
  background-color: #e8a44e;
}

/* ---- Right column ---- */

/* Circular food photo */
.recipe-detail-section .recipe-detail-photo {
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 5px solid var(--color-accent);
  box-shadow: none;
  margin: 0 auto var(--space-xl);
  max-width: 440px;
}
.recipe-detail-section .recipe-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tag package shot below the food photo */
.recipe-detail-package {
  text-align: center;
}
.recipe-detail-package img {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

/* ---- You Might Also Like ---- */
/* Hidden on the single recipe page per design direction. Markup stays
   in the template (harmless, and keeps the related-recipe query wired
   up if it's ever wanted back), just not shown. Scoped to the detail
   section so the .recipe-related class stays reusable elsewhere. */
.recipe-detail-section .recipe-related {
  display: none !important;
}

@media (max-width: 900px) {
  .recipe-detail-section .recipe-detail-layout {
    grid-template-columns: 1fr !important;
  }
  /* photo above the text on mobile */
  .recipe-detail-section .recipe-detail-visual { order: -1; }
}


/* =========================================================
   RECIPE LIST PANEL + CARD (taxonomy-recipe_category/tag archives)
   Brand tokens for the framed panel and colored stat pills. All the
   structure lives in ipc-base/css/recipes.css; this only supplies
   Scott Pete colors and the panel shell, matching the KYL reference:
   cream panel, red keyline, circular photos, navy titles, green/red/
   tan stat pills.
   ========================================================= */

.recipe-list-grid {
  --recipe-panel-bg:        var(--color-accent);   /* #fcc278 — brand accent, matches KYL peach panel */
  --recipe-panel-border:    3px solid #ab162b;
  --recipe-panel-radius:    24px;
  --recipe-panel-padding:   var(--space-3xl) var(--space-2xl);

  --recipe-card-photo-size:     220px;
  --recipe-card-photo-border:   4px solid #ffffff;
  --recipe-card-title-color:    #152e86;

  --recipe-pill-size:           58px;
  --recipe-pill-prep-bg:        #4c8c3f;
  --recipe-pill-total-bg:       #ab162b;
  --recipe-pill-servings-bg:    #e8dcc0;
  --recipe-pill-text:           #ffffff;
  --recipe-pill-servings-text:  #152e86;
}

/* Recipe list section background — white behind the accent panel */
.recipe-list-section {
  background-color: #ffffff !important;
}

.recipe-list-title {
  color: #152e86 !important;
}

/* Card title — capital case (not uppercase), 36px.
   min-height reserves two lines' worth of space so a one-line title
   takes the same height as a two-line one, keeping every card's pill
   row aligned across the grid regardless of title length. 2 lines at
   36px * 1.15 line-height = ~2.3em. */
.recipe-card-title {
  text-transform: none !important;
  font-size: 36px !important;
  min-height: 2.3em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Pill numbers — max two digits, so there's room. Size comes from
   --stat-pill-value-size (set in :root) so this and the single-recipe
   pills stay in sync from one place. */
.recipe-card .recipe-meta-value {
  font-family: 'futura-pt-condensed', sans-serif !important;
  font-weight: 800 !important;
  font-size: var(--stat-pill-value-size) !important;
}

/* Dotted divider between grid rows (KYL reference). No image, no
   template change: every card that starts a new row (4th, 7th, … in a
   3-col grid) except the first row draws a full-panel-width dotted
   line above itself via a pseudo-element that spans all three columns.
   Survives any recipe count, wraps with the grid. If the column count
   changes, update the 3n+1 / left:-... span math to match. */
.recipe-list-grid .recipe-card:nth-child(3n+1):not(:first-child) {
  position: relative;
}

.recipe-list-grid .recipe-card:nth-child(3n+1):not(:first-child)::before {
  content: '';
  position: absolute;
  /* span the full 3-col grid width from this first-column card */
  left: 0;
  right: calc(-200% - (2 * var(--space-xl)));
  top: calc(-1 * var(--space-2xl) / 2);
  height: 0;
  border-top: 3px dotted #111111;
}

@media (max-width: 900px) {
  /* grid drops to 2 cols on narrower screens — divider math changes */
  .recipe-list-grid .recipe-card:nth-child(3n+1):not(:first-child)::before {
    display: none;
  }
  .recipe-list-grid .recipe-card:nth-child(2n+1):not(:first-child) {
    position: relative;
  }
  .recipe-list-grid .recipe-card:nth-child(2n+1):not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    right: calc(-100% - var(--space-xl));
    top: calc(-1 * var(--space-2xl) / 2);
    height: 0;
    border-top: 3px dotted #111111;
  }
}



/* =========================================================
   HISTORY PAGE — "The Saga of Scott Pete" (page id 537)
   Story built with core blocks; these styles give it a
   readable column, centered title, and framed photos so it
   sits in the new theme's look.
   ========================================================= */

body.page-id-537 .page-content { max-width: 900px; }

body.page-id-537 .entry-title {
  text-align: center;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: var(--space-sm);
}

body.page-id-537 .entry-content { font-size: 1.05rem; margin-left: auto; margin-right: auto; }
body.page-id-537 .entry-content p { line-height: 1.75; }

.history-lead {
  text-align: center;
  font-family: 'futura-pt-condensed', sans-serif;
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: var(--color-primary);
  margin: 0 0 var(--space-2xl);
}

.history-row { margin: var(--space-2xl) 0; }

.history-photo img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.history-photo figcaption {
  text-align: center;
  font-style: italic;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: var(--space-sm);
}


/* =========================================================
   CONTACT PAGE (page-contact.php) - Indiana Kitchen style:
   a heading, then a square framed photo beside the details.
   ========================================================= */

.contact-page { padding: var(--section-padding) 0; }

.contact-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  color: var(--color-primary);
  margin: 0 0 var(--space-2xl);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-photo {
  border: 6px solid var(--color-primary);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.contact-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-details { padding-top: var(--space-sm); }
.contact-details p { line-height: 1.7; margin: 0 0 var(--space-lg); }

.contact-company { margin-bottom: var(--space-md); }
.contact-company strong {
  font-family: 'futura-pt', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  color: var(--color-primary);
  line-height: 1.15;
}

.contact-address { font-size: 1.05rem; line-height: 1.85; margin-bottom: var(--space-lg); }

.contact-email a { color: var(--color-primary); text-decoration: underline; }
.contact-email a:hover { color: var(--color-primary-dark); }

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; gap: var(--space-xl); }
  .contact-photo { max-width: 420px; }
}


/* =========================================================
   NOV 2026 PUNCH LIST (Azizza review + Dana's comps)
   Scoped + !important where ipc-base CSS loads after this file.
   ========================================================= */

/* Top nav: the "|" divider lives inside each <a>, after its left padding,
   so labels sat closer to the divider on their left. Drop the left padding
   on every item after the first so the divider is centered in the gap. */
@media (min-width: 769px) {
  .site-header .primary-nav .nav-menu li + li > a { padding-left: 0; }
}

/* Footer: divider gap matched to the flex column gap (was md vs lg). */
.site-footer .footer-nav .footer-menu li + li::before { margin-right: var(--space-lg); }

/* Page hero titles: Futura extra-bold, larger than section headings. */
.recipe-banner-content h1,
.products-banner-title,
.wtb-banner h1 {
  font-family: 'futura-pt-condensed', sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(3.5rem, 8vw, 6.5rem) !important;
  line-height: 0.95 !important;
  letter-spacing: 0.02em;
}

/* Homepage category tiles: same red back as the products page tiles
   (Dana 6). White frame kept so the card edge still reads on the red
   section. Padding trimmed so longer copy stays inside the card. */
.brand-container .product-category-card__back {
  background-color: #ab162b !important;
  border: 4px solid #ffffff !important;
  padding: var(--space-md) !important;
}
.product-category-card__back h3 { font-size: 1.75rem !important; line-height: 1 !important; }
.product-category-card__back p  { font-size: 1rem; line-height: 1.4; }

/* Products grid subtitle: sentence case body copy, not an all-caps eyebrow. */
.product-category-grid .section-heading .eyebrow,
.product-category-section .eyebrow {
  font-family: 'futura-pt', sans-serif !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 1.1rem !important;
  line-height: 1.5;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Recipes hub ───────────────────────────────────────── */

.recipe-bun-section .section-heading h2 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
.recipe-bun-section .section-subtitle {
  font-size: 1.2rem;
  color: #152e86;
}

.recipe-category-section .section-heading h2 {
  color: #ffffff !important;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  text-align: center;
}

/* "Browse by Products": red section, white rounded outline box, circles. */
.recipe-tag-section--circles {
  background-color: #ab162b !important;
  padding: var(--space-3xl) 0 !important;
}
.recipe-tag-section--circles .section-heading {
  text-align: center;
  margin-bottom: var(--space-lg) !important;
}
.recipe-tag-section--circles .section-heading h2 {
  color: #ffffff !important;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  margin: 0;
}
.recipe-tag-section--circles .recipe-tag-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl) var(--space-2xl) !important;
  max-width: 1040px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  border: 4px solid #ffffff;
  border-radius: 28px;
}
.recipe-tag-section--circles .recipe-tag-card { width: 170px; color: #ffffff !important; }
.recipe-tag-section--circles .recipe-tag-card-image {
  width: 170px !important;
  height: 170px !important;
  border-radius: 50% !important;
  border: 4px solid #ffffff;
  background-color: rgba(255, 255, 255, 0.15) !important;
}
.recipe-tag-section--circles .recipe-tag-card-label {
  font-family: 'futura-pt-condensed', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.5rem !important;
  letter-spacing: 0.02em !important;
  color: #ffffff !important;
}
.recipe-tag-section--circles .recipe-tag-card--active .recipe-tag-card-image { box-shadow: 0 0 0 4px #fcc278; }
@media (max-width: 640px) {
  .recipe-tag-section--circles .recipe-tag-card,
  .recipe-tag-section--circles .recipe-tag-card-image { width: 120px !important; }
  .recipe-tag-section--circles .recipe-tag-card-image { height: 120px !important; }
}

/* ── Product detail: closer to Dana's comp ─────────────── */
/* products.css loads after this file, so every rule here is scoped to
   .product-detail-section and flagged. */

.product-detail-section .product-detail-layout { row-gap: var(--space-md) !important; }

.product-detail-section .product-detail-title {
  font-family: 'futura-pt-condensed', sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(3rem, 5vw, 4.5rem) !important;
  line-height: 0.95 !important;
  letter-spacing: 0.01em !important;
  margin-bottom: var(--space-sm) !important;
}

.product-detail-section .product-detail-description,
.product-detail-section .product-detail-description p {
  font-family: 'futura-pt', sans-serif !important;
  font-size: 1.2rem !important;
  line-height: 1.5 !important;
  color: #1f1f1f !important;
  margin-bottom: 0 !important;
}

.product-detail-section .product-detail-ctas { margin-top: var(--space-md) !important; gap: var(--space-md) !important; }

.product-detail-section .product-detail-ctas .btn,
.product-detail-section .product-meal-ideas-link {
  height: 44px !important;
  padding: 0 1.4em !important;
  border-radius: 0 !important;
  font-family: 'futura-pt-condensed', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  letter-spacing: 0.06em !important;
}

.product-detail-section .product-variation-nav {
  margin-top: var(--space-lg) !important;
  margin-bottom: var(--space-md) !important;
}
.product-detail-section .product-variation-nav-list li button { font-weight: 800 !important; }

.product-detail-section .unit {
  text-transform: lowercase;
  font-size: 0.65em;
  letter-spacing: 0;
}

.product-detail-section .product-variation-panel.is-active,
.product-detail-section .product-variation-panel--single {
  align-items: center !important;
  row-gap: var(--space-sm) !important;
}
.product-detail-section .product-variation-name { margin-bottom: var(--space-sm) !important; }

.product-detail-hero-image img { border: 5px solid #fcc278 !important; }

/* Nutrition circle labels lowercase, per comp. */
.product-detail-section .product-nutrition-label {
  text-transform: lowercase !important;
  font-size: 0.8rem !important;
  letter-spacing: 0 !important;
}

/* Site-wide font consistency (Dana row 9). ipc-base/css/base.css loads
   after this file and its own :root redefines --font-primary and
   --font-display as Gotham, so body copy across the site was falling
   back to Gotham/Helvetica instead of futura-pt. html:root outranks
   :root, so these win regardless of load order. */
html:root {
  --font-primary: 'futura-pt', sans-serif;
  --font-body:    'futura-pt', sans-serif;
  --font-display: 'futura-pt-condensed', sans-serif;
  --font-heading: 'futura-pt-condensed', sans-serif;
}

/* 100th anniversary badge in the header (functions.php §13). The badge is
   portrait (416×510) where the round logo was landscape, so it gets more
   height than the old 140px cap to keep the "100" legible. Removed a dead
   rule above that tried to swap the logo via `.site-logo img { content }`
   — .site-logo IS the img, so that selector never matched. */
@media (min-width: 769px) {
  body:not(.home) .site-header .site-logo,
  .site-header.is-sticky .site-logo {
    max-height: 160px;
    top: -64px;
  }
  body:not(.home) .site-header.logo-scrolled .site-logo { max-height: 120px; top: -52px; }
}


/* =========================================================
   NOV 9 ROUND (Michael + Dana follow-ups)
   ========================================================= */

/* M2 — 100 badge vs. left-aligned page titles (Where to Buy, Contact):
   badge back down a little (160 → 140) and those titles pushed down. */
@media (min-width: 769px) {
  body:not(.home) .site-header .site-logo,
  .site-header.is-sticky .site-logo { max-height: 140px; top: -60px; }
  body:not(.home) .site-header.logo-scrolled .site-logo { max-height: 110px; top: -50px; }
  .wtb-banner .wtb-title,
  .contact-page .contact-title { margin-top: 2.5rem !important; }
}

/* D1 — body copy larger site-wide (Nov 9: ~1.5pt, then ~1pt more on
   Dana's second pass — base 16 → 19px, explicit body-copy rules ~+0.25rem). */
body { font-size: 19px; }
.entry-content p,
.entry-content li,
.two-col-banner-text,
.two-col-banner-text p,
.flavor-fan-subtitle,
.products-banner-body,
.recipe-detail-section .recipe-ingredients-list li,
.recipe-detail-section .recipe-step-text { font-size: 1.25rem !important; }
.product-category-grid .section-heading .eyebrow,
.product-category-section .eyebrow { font-size: 1.3rem !important; }
.product-detail-section .product-detail-description,
.product-detail-section .product-detail-description p { font-size: 1.4rem !important; }
body.page-id-537 .entry-content { font-size: 1.3rem !important; }
.recipe-bun-section .section-subtitle { font-size: 1.3rem; }
.perks-body { font-size: 1.2rem !important; }
.rdt-subtitle { font-size: clamp(1.2rem, 1.6vw, 1.35rem) !important; }

/* D2 — "Our History" centered under the 100-years image. The image column
   becomes a one-track grid sized to the image, items centered in it, so
   the image keeps its left position and the button centers under it. */
.two-col-banner-image {
  display: grid !important;
  justify-content: start;
  justify-items: center;
  align-content: center;
  row-gap: var(--space-xl);
}

/* D3 — headlines: no extra letter-spacing. */
h1, h2, h3, h4, h5, h6,
.products-banner-title,
.product-detail-title,
.flavor-fan-title,
.wtb-title,
.contact-title,
.recipe-card-title,
.product-variation-name,
.product-detail-section .product-variation-nav-list li button { letter-spacing: 0 !important; }

/* D4 — product and recipe category tabs share one label style: the recipe
   card's bold condensed face, sized so "SOUPS & SALADS" stays on one line. */
.product-flip-front-label,
.product-category-card__label,
.recipe-flip-front-label {
  font-family: 'futura-pt-condensed', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.5rem !important;
  letter-spacing: 0.01em !important;
  line-height: 1.1 !important;
  white-space: nowrap;
  text-transform: uppercase;
  padding: 0.25em 0.3em 0.3em !important;
}

/* D5 — Browse by Products shows package shots: whole product on a white
   circle instead of a cover-cropped photo. */
.recipe-tag-section--circles .recipe-tag-card-image {
  background-color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.recipe-tag-section--circles .recipe-tag-card-image img {
  width: 78% !important;
  height: 78% !important;
  object-fit: contain !important;
}

/* D6 — recipe meta circles (prep / total / servings) larger. */
.recipe-card .recipe-meta { --recipe-pill-size: 72px; }
.recipe-card .recipe-meta-item { width: 72px !important; height: 72px !important; }
.recipe-detail-section .recipe-meta-item { width: 76px; height: 76px; }
.recipe-card .recipe-meta-label,
.recipe-detail-section .recipe-meta-label { font-size: 0.68rem !important; font-weight: 700; }
.recipe-card .recipe-meta-unit,
.recipe-detail-section .recipe-meta-unit { font-size: 0.65rem !important; }

/* M1 — History: tighter gap between the photo rows and the running copy. */
body.page-id-537 .history-row { margin: var(--space-xl) 0 !important; }

/* Nov 9, Dana pass 2: "More Products to Explore" (home, core heading in the
   red container) at the same size as the neighbouring section headlines
   ("A Flavor For Every Fan"). */
.brand-container h2.wp-block-heading {
  font-size: clamp(2.25rem, 5vw, 3.5rem) !important;
  line-height: 1 !important;
}
