/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Author: Tom Usborne
Author URI: https://generatepress.com/about
Description: A child theme for GeneratePress.
Version: 1.0.0
Template: generatepress
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-child
Tags: two-columns, three-columns, one-column, right-sidebar, left-sidebar, footer-widgets, blog, e-commerce, flexible-header, full-width-template, custom-header, custom-background, custom-menu, custom-colors, sticky-post, threaded-comments, translation-ready
*/

/* ============================================================
   DESIGN SYSTEM — single source of truth
   Palette: warm whites + slate text + one accent (coral-orange)
   Everything inherits from these tokens.
============================================================ */
:root {
  /* Neutral palette — all warm-white family so pages feel unified */
  --c-bg:          #fafaf9;       /* page background */
  --c-surface:     #ffffff;       /* cards, panels */
  --c-surface-2:   #f5f4f2;       /* subtle inset panels */
  --c-border:      #e8e6e1;       /* all dividers */
  --c-border-soft: #f0eeea;       /* very faint separators */

  /* Text */
  --c-ink:         #1c1917;       /* headings */
  --c-body:        #44403c;       /* body copy */
  --c-muted:       #78716c;       /* meta, captions */
  --c-placeholder: #a8a29e;       /* placeholders */

  /* Accent — single warm coral/orange */
  --c-accent:      #d4601a;       /* primary CTA / active */
  --c-accent-h:    #b85215;       /* hover */
  --c-accent-pale: #fef3ec;       /* tinted backgrounds */
  --c-accent-ring: #f8d5bc;       /* tinted borders */

  /* Dark (header + footer only) */
  --c-dark:        #1c1917;
  --c-dark-2:      #292524;       /* slightly lighter for footer cols */

  /* Typography */
  --f-serif: Georgia, 'Times New Roman', serif;
  --f-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;

  /* Layout */
  --max-w:   1160px;
  --max-prose: 720px;
  --px:      clamp(20px, 4vw, 40px);

  /* Shape */
  --r-sm:    6px;
  --r-md:    10px;
  --r-lg:    16px;
  --r-pill:  999px;

  /* Shadow */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.09), 0 2px 8px rgba(0,0,0,0.05);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  180ms;
}

/* ============================================================
   RESET — scoped so we don't break WP admin or block plugins.
   We only reset box-sizing globally.
   margin/padding zeroing is intentionally LIMITED to our own
   theme UI components — never applied to .mp-page-wrap * because
   that would wipe every block plugin's internal spacing.
============================================================ */
.mp-home *,
.mp-home *::before,
.mp-home *::after {
  box-sizing: border-box;
}

/* Inner-page shell also gets box-sizing only — no margin/padding wipe */
.mp-page-wrap *,
.mp-page-wrap *::before,
.mp-page-wrap *::after {
  box-sizing: border-box;
}

.mp-home {
  font-family: var(--f-sans);
  font-size: 16px;
  color: var(--c-body);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mp-home a       { color: inherit; text-decoration: none; }
.mp-home ul      { list-style: none; }
.mp-home button  { cursor: pointer; font-family: inherit; }
.mp-home img     { display: block; max-width: 100%; height: auto; }

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Shared container */
.mp-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}


/* ============================================================
   HEADER
   — white on dark, slim, no visible seam into hero
============================================================ */
.mp-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--c-dark);
}

.mp-header__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  height: 58px;
  display: flex;
  align-items: center;
}

/* Logo */
.mp-logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--f-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
}
.mp-logo__first  { color: #ffffff; }
.mp-logo__second { color: var(--c-accent); }

/* Desktop nav */
.mp-nav { margin-left: auto; }

.mp-nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-nav__list a {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.mp-nav__list a:hover,
.mp-nav__list .current-menu-item > a {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}

/* Burger icon */
.mp-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-sm);
  padding: 0;
}
.mp-burger__bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 250ms var(--ease), opacity 200ms var(--ease);
}
.mp-burger[aria-expanded="true"] .mp-burger__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mp-burger[aria-expanded="true"] .mp-burger__bar:nth-child(2) { opacity: 0; }
.mp-burger[aria-expanded="true"] .mp-burger__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mp-mobile-menu {
  display: none;
  background: var(--c-dark-2);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.mp-mobile-menu.is-open { display: block; }

.mp-mobile-menu__list {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 8px var(--px) 16px;
  list-style: none;
}
.mp-mobile-menu__list li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mp-mobile-menu__list li:last-child { border-bottom: none; }
.mp-mobile-menu__list a {
  display: block;
  padding: 13px 0;
  color: rgba(255,255,255,0.80);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--dur);
}
.mp-mobile-menu__list a:hover { color: var(--c-accent); }


/* ============================================================
   HERO
   — same dark as header so the page opens seamlessly,
     then transitions to the warm white index below
============================================================ */
.mp-hero {
  background: var(--c-dark);
  /* Smooth gradient dissolve at the bottom edge */
  padding: 80px var(--px) 88px;
  text-align: center;
}

.mp-hero__inner {
  max-width: 680px;
  margin-inline: auto;
}

.mp-hero__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: rgba(212,96,26,0.12);
  border: 1px solid rgba(212,96,26,0.25);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  margin-bottom: 24px;
}

.mp-hero__headline {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.mp-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.7;
  max-width: 440px;
  margin-inline: auto;
  margin-bottom: 40px;
}

/* Search */
.mp-search {
  display: flex;
  align-items: stretch;
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.mp-search:focus-within {
  border-color: var(--c-accent);
  background: rgba(255,255,255,0.09);
}

.mp-search__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.95rem;
  padding: 14px 18px;
}
.mp-search__input::placeholder { color: rgba(255,255,255,0.32); }

.mp-search__btn {
  background: var(--c-accent);
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--dur) var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}
.mp-search__btn:hover { background: var(--c-accent-h); }

/* Category pills */
.mp-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.mp-pills__item {
  display: inline-block;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-pill);
  padding: 6px 15px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.mp-pills__item:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #ffffff;
}


/* ============================================================
   RESTAURANT INDEX
   — warm white, zero visual jump from hero (they share dark top,
     then we add a clean divider arc via border-radius on the section)
============================================================ */
.mp-index {
  background: var(--c-bg);
  padding: 72px var(--px) 80px;
}

.mp-index__inner {
  max-width: var(--max-w);
  margin-inline: auto;
}

.mp-index__kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 14px;
}

.mp-index__title {
  font-family: var(--f-serif);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.mp-index__title em          { color: var(--c-accent); font-style: italic; }
.mp-index__title-em2         { color: var(--c-accent); font-style: italic; display: block; }

.mp-index__desc {
  font-size: 0.97rem;
  color: var(--c-muted);
  max-width: 500px;
  line-height: 1.65;
  margin-bottom: 40px;
}

/* Filter tabs */
.mp-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1.5px solid var(--c-border);
  margin-bottom: 0;
  gap: 0;
}

.mp-filter-tabs__btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-muted);
  transition: color var(--dur), border-color var(--dur);
}
.mp-filter-tabs__btn:hover { color: var(--c-ink); }
.mp-filter-tabs__btn--active {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
  font-weight: 600;
}

/* Restaurant rows */
.mp-restaurant-list {
  border-top: 1.5px solid var(--c-border);
}

.mp-restaurant-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 17px 12px;
  border-bottom: 1px solid var(--c-border-soft);
  color: var(--c-ink);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: background var(--dur) var(--ease);
}
.mp-restaurant-row:hover { background: var(--c-surface-2); }

.mp-restaurant-row__num {
  font-size: 0.75rem;
  color: var(--c-placeholder);
  font-weight: 500;
  min-width: 26px;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.mp-restaurant-row__name {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-ink);
  flex: 1;
  min-width: 0;
}

.mp-restaurant-row__cat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
  color: var(--c-muted);
  flex-shrink: 0;
}

.mp-restaurant-row__menus {
  font-size: 0.84rem;
  color: var(--c-accent);
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}


/* ============================================================
   EDITORIAL STANDARDS
   — same bg as index so there's no abrupt colour break,
     we delineate sections with padding + a subtle top border
============================================================ */
.mp-editorial {
  background: var(--c-surface-2);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 72px var(--px) 80px;
}

.mp-editorial__inner {
  max-width: var(--max-w);
  margin-inline: auto;
}

.mp-editorial__heading {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.mp-editorial__sub-heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-accent);
  margin-bottom: 12px;
}

.mp-editorial__intro {
  font-size: 0.94rem;
  color: var(--c-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Cards grid */
.mp-editorial__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mp-editorial__card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.mp-editorial__card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.mp-editorial__card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.mp-editorial__card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.4;
  margin-bottom: 8px;
}

.mp-editorial__card p {
  font-size: 0.84rem;
  color: var(--c-muted);
  line-height: 1.68;
  margin: 0;
}


/* ============================================================
   FOOTER
   — back to dark, matching the header for visual bookending
============================================================ */
.mp-footer {
  background: var(--c-dark);
  padding: 56px var(--px) 0;
}

.mp-footer__inner {
  max-width: var(--max-w);
  margin-inline: auto;
}

.mp-footer__brand { margin-bottom: 40px; }

.mp-logo--footer .mp-logo__first  { color: #ffffff; }
.mp-logo--footer .mp-logo__second { color: var(--c-accent); }

.mp-footer__tagline {
  margin-top: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.42);
  max-width: 300px;
  line-height: 1.6;
}

.mp-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mp-footer__col-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}

.mp-footer__col ul  { list-style: none; padding: 0; margin: 0; }
.mp-footer__col li  { margin-bottom: 9px; }
.mp-footer__col a   {
  color: rgba(255,255,255,0.62);
  font-size: 0.875rem;
  transition: color var(--dur);
}
.mp-footer__col a:hover { color: var(--c-accent); }

.mp-footer__bottom {
  padding: 20px 0;
  text-align: center;
}
.mp-footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.28);
  line-height: 1.6;
}
.mp-footer__bottom a {
  color: rgba(255,255,255,0.42);
}
.mp-footer__bottom a:hover { color: var(--c-accent); }


/* ============================================================
   HOMEPAGE RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .mp-editorial__grid { grid-template-columns: repeat(2, 1fr); }
  .mp-footer__cols    { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
}

@media (max-width: 640px) {
  .mp-nav    { display: none; }
  .mp-burger { display: flex; }

  .mp-hero { padding: 56px var(--px) 64px; }
  .mp-hero__headline { font-size: 1.85rem; }

  .mp-search { flex-direction: column; }
  .mp-search__btn { padding: 13px; text-align: center; }

  .mp-index { padding: 52px var(--px) 60px; }

  .mp-filter-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .mp-filter-tabs__btn { white-space: nowrap; }

  .mp-editorial { padding: 52px var(--px) 60px; }
  .mp-editorial__grid { grid-template-columns: 1fr; }

  .mp-footer__cols { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
}

@media (max-width: 420px) {
  .mp-footer__cols { grid-template-columns: 1fr; }
  .mp-pills { gap: 6px; }
}


/* ============================================================
   INNER PAGES — shared layout shell
============================================================ */
.mp-page-wrap {
  background: var(--c-bg);
  min-height: 60vh;
  padding: 28px 0 80px;  /* 28px top gives space between sticky header and breadcrumb */
}

.mp-container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}


/* ============================================================
   BREADCRUMBS
============================================================ */
.mp-breadcrumbs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--c-muted);
  margin-bottom: 20px;   /* gap between breadcrumb and the white card */
  padding: 10px 0;       /* breathing room top and bottom */
  min-width: 0;
  overflow: hidden;
}
.mp-bc__link {
  color: var(--c-accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.mp-bc__link:hover { text-decoration: underline; }
.mp-bc__sep {
  color: var(--c-border);
  white-space: nowrap;
  flex-shrink: 0;
}
/* Current crumb: takes remaining space, truncates with ellipsis */
.mp-bc__current {
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}


/* ============================================================
   ARCHIVE HEADER
============================================================ */
.mp-archive-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1.5px solid var(--c-border);
}

.mp-archive-header__icon {
  font-size: 2.6rem;
  line-height: 1;
  flex-shrink: 0;
  background: var(--c-accent-pale);
  border: 1px solid var(--c-accent-ring);
  border-radius: var(--r-md);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-archive-header__title {
  font-family: var(--f-serif);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 4px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.mp-archive-header__desc {
  font-size: 0.94rem;
  color: var(--c-muted);
  margin-bottom: 6px;
  max-width: 520px;
  line-height: 1.6;
}

.mp-archive-header__count {
  font-size: 0.82rem;
  color: var(--c-placeholder);
}


/* ============================================================
   CARD GRID — archive / index pages
============================================================ */
.mp-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}

.mp-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--c-ink);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.mp-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.mp-card__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-surface-2);
}
.mp-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 300ms var(--ease);
}
.mp-card:hover .mp-card__img img { transform: scale(1.05); }

.mp-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-accent-pale) 0%, #fde8d3 100%);
}
.mp-card__img--placeholder span { font-size: 2rem; }

.mp-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.mp-card__top {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.mp-card__num {
  font-size: 0.68rem;
  color: var(--c-placeholder);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.mp-card__name {
  font-family: var(--f-serif);
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.3;
  margin: 0;
}

.mp-card__cat {
  font-size: 0.78rem;
  color: var(--c-muted);
}

.mp-card__menus {
  font-size: 0.78rem;
  color: var(--c-accent);
  font-weight: 600;
  margin-top: auto;
}
.mp-card__menus--soon {
  color: var(--c-placeholder);
  font-weight: 400;
  font-style: italic;
}


/* ============================================================
   PAGINATION
============================================================ */
.mp-pagination {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.mp-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.mp-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  color: var(--c-body);
  background: var(--c-surface);
  text-decoration: none;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.mp-pagination .page-numbers:hover,
.mp-pagination .page-numbers.current {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #ffffff;
}
.mp-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  pointer-events: none;
}


/* ============================================================
   SINGLE POST
============================================================ */
.mp-single {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  margin-bottom: 32px;
}

.mp-single__header {
  padding: 32px 36px 24px;
  border-bottom: 1px solid var(--c-border-soft);
}

.mp-single__cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--c-accent-pale);
  border: 1px solid var(--c-accent-ring);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.mp-single__cat-link {
  color: var(--c-accent);
  text-decoration: none;
}
.mp-single__cat-link:hover { text-decoration: underline; }

.mp-single__title {
  font-family: var(--f-serif);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.mp-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.mp-single__meta-item {
  font-size: 0.82rem;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.mp-single__meta-menus {
  color: var(--c-accent);
  font-weight: 600;
}

.mp-single__thumb {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  max-height: 400px;
}
.mp-single__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Body copy */
.mp-single__body {
  padding: 28px 36px 36px;
}

.mp-single__body,
.mp-single__body p {
  font-size: 1.03rem;
  line-height: 1.78;
  color: var(--c-body);
}
.mp-single__body p { margin-bottom: 1.3em; }

.mp-single__body h2,
.mp-single__body h3,
.mp-single__body h4 {
  font-family: var(--f-serif);
  color: var(--c-ink);
  letter-spacing: -0.01em;
  margin: 1.8em 0 0.55em;
  line-height: 1.25;
}
.mp-single__body h2 { font-size: 1.55rem; }
.mp-single__body h3 { font-size: 1.25rem; }
.mp-single__body h4 { font-size: 1.05rem; }

.mp-single__body a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mp-single__body a:hover { color: var(--c-accent-h); }

.mp-single__body ul,
.mp-single__body ol {
  padding-left: 1.5em;
  margin-bottom: 1.3em;
}
.mp-single__body li { margin-bottom: 0.4em; }

.mp-single__body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.93rem;
}
/* Scope border rules ONLY to plain content tables, not plugin tables.
   Plugin tables use .mc-table, .mc-ms-*, .wp-block-table and
   manage their own borders with !important — we must not conflict. */
.mp-single__body table:not(.mc-table):not([class*="mc-"]):not(.wp-block-table) th,
.mp-single__body table:not(.mc-table):not([class*="mc-"]):not(.wp-block-table) td {
  border: 1px solid var(--c-border);
  padding: 10px 14px;
  text-align: left;
  line-height: 1.5;
}
.mp-single__body table:not(.mc-table):not([class*="mc-"]):not(.wp-block-table) th {
  background: var(--c-surface-2);
  font-weight: 700;
  color: var(--c-ink);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mp-single__body table:not(.mc-table):not([class*="mc-"]):not(.wp-block-table) tr:nth-child(even) td { background: var(--c-bg); }

/* Tags */
.mp-single__tags {
  padding: 16px 36px;
  border-top: 1px solid var(--c-border-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}
.mp-single__tags-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-placeholder);
}
.mp-single__tag {
  display: inline-block;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  padding: 4px 11px;
  font-size: 0.78rem;
  color: var(--c-muted);
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.mp-single__tag:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #ffffff;
}

/* Post navigation */
.mp-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}
.mp-post-nav__prev,
.mp-post-nav__next {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur);
}
.mp-post-nav__prev:hover,
.mp-post-nav__next:hover { box-shadow: var(--shadow-sm); }
.mp-post-nav__next { text-align: right; }

.mp-post-nav__prev a,
.mp-post-nav__next a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--c-ink);
  text-decoration: none;
}
.mp-post-nav__next a { align-items: flex-end; }

.mp-post-nav__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-accent);
}
.mp-post-nav__title {
  font-family: var(--f-serif);
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-ink);
}

/* Comments */
.mp-comments {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-xs);
}


/* ============================================================
   SEARCH PAGE
============================================================ */
.mp-search-header {
  margin-bottom: 36px;
}
.mp-search-header__title {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.mp-search-header__title em {
  color: var(--c-accent);
  font-style: normal;
}
.mp-search-header__count {
  font-size: 0.875rem;
  color: var(--c-muted);
  margin-bottom: 20px;
}

/* Inline search form (light context) */
.mp-search--inline {
  max-width: 520px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
}
.mp-search--inline:focus-within {
  border-color: var(--c-accent);
  background: var(--c-surface);
}
.mp-search--inline .mp-search__input {
  color: var(--c-ink);
  font-size: 0.93rem;
}
.mp-search--inline .mp-search__input::placeholder { color: var(--c-placeholder); }

/* Light pill variant (no-results page) */
.mp-pills--light .mp-pills__item {
  background: var(--c-surface);
  color: var(--c-body);
  border-color: var(--c-border);
}
.mp-pills--light .mp-pills__item:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #ffffff;
}

.mp-no-results-wrap { padding: 32px 0; }
.mp-no-results {
  font-size: 1rem;
  color: var(--c-muted);
  margin-bottom: 20px;
}

/* Read-more inline link */
.mp-read-more {
  color: var(--c-accent);
  font-weight: 600;
  text-decoration: none;
}
.mp-read-more:hover { text-decoration: underline; }


/* ============================================================
   INNER PAGE RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .mp-card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .mp-card-grid { grid-template-columns: repeat(2, 1fr); }

  .mp-archive-header { flex-direction: column; gap: 12px; }
  .mp-archive-header__icon { width: 52px; height: 52px; font-size: 1.8rem; }

  .mp-single__header { padding: 24px 20px 20px; }
  .mp-single__body   { padding: 20px 20px 28px; }
  .mp-single__tags   { padding: 14px 20px; }
  .mp-post-nav { grid-template-columns: 1fr; }
  .mp-post-nav__next { text-align: left; }
  .mp-post-nav__next a { align-items: flex-start; }
  .mp-comments { padding: 24px; }
}

@media (max-width: 520px) {
  .mp-card-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mp-page-wrap { padding-top: 28px; }
}

@media (max-width: 360px) {
  .mp-card-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   INNER PAGE BODY RESET
   Cancels GeneratePress body/layout rules that bleed through
   when the child header.php + footer.php are used.
   NOTE: We do NOT use "all: unset" — that kills block plugin
   styles. We only neutralise specific GP layout containers.
============================================================ */
body.mp-inner-page {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  font-family: var(--f-sans);
  font-size: 16px;
  color: var(--c-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Cancel GP's site container / grid wrappers geometry only —
   do NOT reset all properties, just the layout ones that
   would add unwanted margin/padding/background to the page. */
body.mp-inner-page #page,
body.mp-inner-page .site {
  margin: 0;
  padding: 0;
  background: transparent;
}

body.mp-inner-page #content,
body.mp-inner-page .site-content,
body.mp-inner-page .grid-container {
  margin: 0;
  padding: 0;
  max-width: none;
  width: 100%;
}

/* GP sometimes adds a padding-top equal to header height via JS.
   Our header is sticky so we don't need that offset. */
body.mp-inner-page .site-content {
  padding-top: 0 !important;
}

/* Make sure mp- elements inherit correctly */
body.mp-inner-page *,
body.mp-inner-page *::before,
body.mp-inner-page *::after {
  box-sizing: border-box;
}

/* ============================================================
   LOGO IMAGE SIZING
   Constrains the custom logo <img> so it fits neatly inside
   the 58px header and the footer brand area.
============================================================ */

/* The <a> wrapper */
.mp-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
}

/* Image logo — header: max 36px tall, auto width */
.mp-header .mp-logo .mp-logo__img,
.mp-header .mp-logo img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* Image logo — footer: slightly larger */
.mp-footer .mp-logo .mp-logo__img,
.mp-footer .mp-logo img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* Make sure WP's custom_logo() <a> wrapper doesn't interfere
   (WP wraps the img in <a class="custom-logo-link">) */
.mp-logo .custom-logo-link {
  display: contents; /* collapses the extra <a> visually */
}

/* Kill the WP site-branding tagline that sometimes renders
   alongside the_custom_logo() output */
.mp-logo .site-description,
.mp-logo p,
.mp-logo .site-branding {
  display: none !important;
}

/* Text fallback spans — keep the serif two-tone style */
.mp-logo__first {
  font-family: var(--f-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.mp-logo__second {
  font-family: var(--f-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-accent);
}

/* Footer text fallback — slightly smaller */
.mp-footer .mp-logo__first  { font-size: 1.25rem; }
.mp-footer .mp-logo__second { font-size: 1.25rem; }

/* ============================================================
   BLOCK PLUGIN COMPATIBILITY
   Ensures Gutenberg blocks and third-party block plugins
   render correctly inside .mp-single__body / .entry-content.
   We only add what's missing — we don't re-define what
   wp-block-library.css already provides.
============================================================ */

/* Restore standard box model and image behaviour inside
   block content areas that our reset may have affected. */
.mp-single__body img,
.entry-content img {
  max-width: 100%;
  height: auto;
  display: inline-block; /* keep inline for figure/caption layouts */
}

/* Figures / captions */
.mp-single__body figure,
.entry-content figure {
  margin: 1.5em 0;
}
.mp-single__body figcaption,
.entry-content figcaption {
  font-size: 0.85rem;
  color: var(--c-muted);
  text-align: center;
  margin-top: 6px;
}

/* Block: separator */
.mp-single__body hr,
.entry-content hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 2em 0;
}

/* Block: quote */
.mp-single__body blockquote,
.entry-content blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-left: 3px solid var(--c-accent);
  background: var(--c-accent-pale);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: italic;
  color: var(--c-body);
}

/* Block: code / pre */
.mp-single__body code,
.entry-content code {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.88em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}
.mp-single__body pre,
.entry-content pre {
  background: var(--c-ink);
  color: #e5e7eb;
  border-radius: var(--r-sm);
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1.4em;
}
.mp-single__body pre code,
.entry-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: inherit;
}

/* Block: buttons */
.mp-single__body .wp-block-button__link,
.entry-content .wp-block-button__link {
  background: var(--c-accent);
  color: #ffffff;
  border-radius: var(--r-sm);
  padding: 10px 20px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background var(--dur);
}
.mp-single__body .wp-block-button__link:hover,
.entry-content .wp-block-button__link:hover {
  background: var(--c-accent-h);
}

/* Block: columns — keep flex layout intact */
.mp-single__body .wp-block-columns,
.entry-content .wp-block-columns {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 1.4em;
}
.mp-single__body .wp-block-column,
.entry-content .wp-block-column {
  flex: 1 1 200px;
  min-width: 0;
}

/* Block: cover / group — allow full-width inside content */
.mp-single__body .wp-block-cover,
.mp-single__body .wp-block-group,
.entry-content .wp-block-cover,
.entry-content .wp-block-group {
  margin-bottom: 1.4em;
}

/* Prevent our list reset from stripping block list styles.
   IMPORTANT: scope strictly — exclude plugin list classes so
   menu-connect's custom ::before dot bullets are not overridden. */
.mp-single__body ul:not(.mc-ms-ingredients-list):not(.mc-faq-list):not(.mc-mt-cards),
.entry-content ul:not(.mc-ms-ingredients-list):not(.mc-faq-list):not(.mc-mt-cards) {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}
.mp-single__body ol,
.entry-content ol {
  list-style: decimal;
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}
/* Only restore list-style on plain li — not plugin component li */
.mp-single__body li:not(.mc-ms-ingredients-list li):not(.mc-faq-list li),
.entry-content li:not(.mc-ms-ingredients-list li):not(.mc-faq-list li) {
  list-style: inherit;
  margin-bottom: 0.4em;
}

/* Alignment helpers GP/Gutenberg adds */
.mp-single__body .alignleft,
.entry-content .alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.mp-single__body .alignright,
.entry-content .alignright { float: right; margin: 0 0 1em 1.5em; }
.mp-single__body .aligncenter,
.entry-content .aligncenter { text-align: center; margin-inline: auto; display: block; }

/* Clearfix for floated content */
.mp-single__body::after,
.entry-content::after {
  content: '';
  display: table;
  clear: both;
}

/* Remove underline from all nav links */
.mp-nav__list a,
.mp-nav__list a:hover,
.mp-nav__list a:focus,
.mp-mobile-menu__list a,
.mp-mobile-menu__list a:hover,
.mp-mobile-menu__list a:focus {
  text-decoration: none !important;
}

/* Remove underline from all footer links */
.mp-footer a,
.mp-footer a:hover,
.mp-footer a:focus {
  text-decoration: none !important;
}

/* ============================================================
   CONTENT H2 BADGE STYLE
   Matches both plugin headings (.mc-ms-heading) and standard
   block headings (.wp-block-heading) inside single post content.
============================================================ */
.mp-single__body h2.mc-ms-heading,
.mp-single__body h2.wp-block-heading,
.entry-content h2.mc-ms-heading,
.entry-content h2.wp-block-heading {
  display: block;
  width: 100%;
  text-align: center !important;
  background: #a52020;
  color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 900 !important;
  font-family: var(--f-sans) !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  padding: 14px 28px !important;
  border-radius: 12px !important;
  border: 2px dashed rgba(255, 255, 255, 0.55) !important;
  margin: 2rem 0 1.2rem !important;
  box-shadow: none !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

/* ============================================================
   STICKY "OUR MENU" TABS BAR
============================================================ */

/* ============================================================
   STICKY "OUR MENU" TABS BAR — single row with scroll arrows
============================================================ */

/* Allow sticky children to escape the white card */
.mp-single {
  overflow: visible;
}

/* Stick the whole Our Menu block below the 58px header */
.mc-our-menu-wrap {
  position: sticky;
  top: 58px;
  z-index: 100;
  background: #ffffff;
  padding: 10px 0 8px;
  margin-left: -36px;
  margin-right: -36px;
  border-bottom: 1px solid #e8e6e1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

/* Hide the plugin title/subtitle when sticky (save space) */
.mc-our-menu-wrap .mc-our-menu-title,
.mc-our-menu-wrap .mc-our-menu-subtitle {
  display: none;
}

/* Scroll container wrapper — positions arrows absolutely */
.mc-tabs-bar-wrap {
  position: relative;
  padding: 0 36px;
}

/* Force single row, hide native scrollbar */
.mc-tabs-bar {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  gap: 6px !important;
  padding-bottom: 2px !important;
  scroll-behavior: smooth;
}
.mc-tabs-bar::-webkit-scrollbar {
  display: none !important;
}

/* Hide plugin's built-in fade overlay — we use arrow buttons instead */
.mc-tabs-bar-wrap::after {
  display: none !important;
}

/* Arrow buttons — injected by JS below */
.mc-tabs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: 1.5px solid #e8e6e1;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  font-size: 0;        /* hide any text, use SVG/border arrow */
  line-height: 1;
}
.mc-tabs-arrow:hover {
  background: #c8102e;
  border-color: #c8102e;
}
/* Chevron via CSS border trick */
.mc-tabs-arrow::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #374151;
  border-bottom: 2px solid #374151;
  transition: border-color 0.15s;
}
.mc-tabs-arrow:hover::before {
  border-color: #ffffff;
}
.mc-tabs-arrow--prev {
  left: 0;
}
.mc-tabs-arrow--prev::before {
  transform: rotate(135deg) translate(-1px, -1px);
}
.mc-tabs-arrow--next {
  right: 0;
}
.mc-tabs-arrow--next::before {
  transform: rotate(-45deg) translate(-1px, -1px);
}
/* Hide arrow when not needed */
.mc-tabs-arrow[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  .mc-our-menu-wrap {
    margin-left: -20px;
    margin-right: -20px;
  }
  .mc-tabs-bar-wrap {
    padding: 0 20px;
  }
}
