﻿/**
 * MenuUSA — assets/css/MenuUSA.css
 * Custom theme stylesheet for the MenuUSA WordPress theme.
 *
 * Design: clean, warm food-guide look. Mobile-first responsive,
 * system font stack only (no web fonts, no CDNs). Warm accents:
 * primary #C0392B (warm tomato red), secondary #E8A020 (golden amber).
 * Background #FFFDF8 (warm white), text #2B2B2B.
 *
 * Text domain: MenuUSA
 */

/* -------------------------------------------------------------------------
   1. Tokens
-------------------------------------------------------------------------- */

:root {
  --menuusa-accent: #C0392B;               /* settable via Customizer */
  --menuusa-accent-dark: #96281B;
  --menuusa-secondary: #E8A020;
  --menuusa-secondary-dark: #B97B0F;
  --menuusa-bg: #FFFDF8;
  --menuusa-surface: #FFFFFF;
  --menuusa-text: #2B2B2B;
  --menuusa-text-muted: #6E655A;
  --menuusa-border: #EDE3D3;
  --menuusa-border-strong: #DAC9AC;
  --menuusa-shadow: 0 1px 3px rgba(60, 40, 20, 0.08), 0 4px 14px rgba(60, 40, 20, 0.06);
  --menuusa-shadow-hover: 0 2px 6px rgba(60, 40, 20, 0.10), 0 10px 26px rgba(60, 40, 20, 0.10);
  --menuusa-radius: 12px;
  --menuusa-radius-sm: 8px;
  --menuusa-header-height: 68px;
  --menuusa-content-max: 1120px;
  --menuusa-narrow-max: 760px;
  --menuusa-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

/* -------------------------------------------------------------------------
   2. Reset / base
-------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--menuusa-font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--menuusa-text);
  background: var(--menuusa-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--menuusa-accent, #C0392B);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
  color: var(--menuusa-accent-dark);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  margin: 1.6em 0 0.6em;
  font-weight: 700;
  color: var(--menuusa-text);
  letter-spacing: -0.01em;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.1em 1.4em; padding: 0; }
li { margin-bottom: 0.4em; }

blockquote {
  margin: 1.4em 0;
  padding: 0.9em 1.2em;
  border-left: 4px solid var(--menuusa-secondary);
  background: #FDF6E7;
  border-radius: 0 var(--menuusa-radius-sm) var(--menuusa-radius-sm) 0;
  font-style: italic;
  color: #54462F;
}

blockquote p:last-child { margin-bottom: 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #F6EEDC;
  padding: 0.15em 0.45em;
  border-radius: 4px;
}

pre {
  background: #2B2B2B;
  color: #F6EEDC;
  padding: 1.1em 1.3em;
  border-radius: var(--menuusa-radius-sm);
  overflow-x: auto;
  line-height: 1.5;
}

pre code { background: none; padding: 0; color: inherit; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

th, td {
  text-align: left;
  padding: 0.7em 0.9em;
  border-bottom: 1px solid var(--menuusa-border);
}

thead th {
  background: #FAF3E3;
  font-weight: 700;
  white-space: nowrap;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--menuusa-secondary);
  outline-offset: 2px;
  border-radius: 3px;
}

/* -------------------------------------------------------------------------
   3. Accessibility helpers
-------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--menuusa-text);
  color: #fff;
  padding: 0.7em 1.2em;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 12px;
  color: #fff;
}

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

/* -------------------------------------------------------------------------
   4. Layout containers
-------------------------------------------------------------------------- */

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
  padding: 1.5rem 0 3rem;
}

.wrap,
.content-area > .wrap {
  max-width: var(--menuusa-content-max);
  margin: 0 auto;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

/* Content column: always a single flow column.
   Sidebar is a SIBLING under .content-wrapper — never nest a sidebar grid here. */
.content-area {
  display: block;
  min-width: 0;
  max-width: var(--menuusa-content-max);
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.comments-area,
.related-posts,
.post-navigation {
  display: block;
  width: 100%;
  max-width: 100%;
  grid-column: 1 / -1;
}

.widget-area {
  font-size: 0.94rem;
}

@media (min-width: 900px) {
  .widget-area {
    position: sticky;
    top: calc(var(--menuusa-header-height) + 1.2rem);
  }
}

.widget {
  background: var(--menuusa-surface);
  border: 1px solid var(--menuusa-border);
  border-radius: var(--menuusa-radius);
  box-shadow: var(--menuusa-shadow);
  padding: 1.25rem;
  margin-bottom: 1.4rem;
}

.widget-title {
  margin: 0 0 0.8em;
  font-size: 1.05rem;
  padding-bottom: 0.6em;
  border-bottom: 2px solid var(--menuusa-border);
}

/* Gutenberg-ish alignment helpers */
.alignwide {
  max-width: 100%;
}

.alignfull {
  width: 100%;
  max-width: none;
}

@media (min-width: 900px) {
  .alignwide { max-width: var(--menuusa-content-max); margin-left: auto; margin-right: auto; }
}

/* -------------------------------------------------------------------------
   5. Header
-------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--menuusa-header-height);
  background: var(--menuusa-surface);
  border-bottom: 1px solid var(--menuusa-border);
  box-shadow: 0 1px 6px rgba(60, 40, 20, 0.07);
}

.site-header .header-inner {
  max-width: var(--menuusa-content-max);
  margin: 0 auto;
  padding: 0 1.1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.site-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--menuusa-accent, #C0392B), var(--menuusa-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

.site-title a {
  color: var(--menuusa-text);
  text-decoration: none;
}

.site-description {
  margin: 0;
  font-size: 0.78rem;
  color: var(--menuusa-text-muted);
  line-height: 1.3;
}

/* -------------------------------------------------------------------------
   6. Navigation
-------------------------------------------------------------------------- */

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--menuusa-border);
  border-radius: var(--menuusa-radius-sm);
  background: var(--menuusa-surface);
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--menuusa-text);
  border-radius: 2px;
  position: relative;
  transition: background 0.2s;
}

.mobile-menu-toggle .bar::before,
.mobile-menu-toggle .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--menuusa-text);
  border-radius: 2px;
  transition: transform 0.2s;
}

.mobile-menu-toggle .bar::before { top: -7px; }
.mobile-menu-toggle .bar::after { top: 7px; }

.mobile-menu-toggle[aria-expanded="true"] .bar { background: transparent; }
.mobile-menu-toggle[aria-expanded="true"] .bar::before { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] .bar::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--menuusa-text);
  font-weight: 600;
  font-size: 0.96rem;
  display: block;
  padding: 0.55em 0.9em;
  border-radius: var(--menuusa-radius-sm);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--menuusa-accent, #C0392B);
  background: #FBF3E4;
}

.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a {
  color: var(--menuusa-accent, #C0392B);
  background: #FBEFE0;
}

/* Mobile nav: hidden until toggled */
@media (max-width: 859px) {
  .site-nav {
    display: none;
    position: absolute;
    top: var(--menuusa-header-height);
    left: 0;
    right: 0;
    background: var(--menuusa-surface);
    border-bottom: 1px solid var(--menuusa-border);
    box-shadow: 0 12px 24px rgba(60, 40, 20, 0.12);
    padding: 0.6rem 1.1rem 1rem;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav li {
    border-bottom: 1px solid #F3EBDB;
  }

  .site-nav li:last-child { border-bottom: 0; }
}

/* Desktop nav */
@media (min-width: 860px) {
  .mobile-menu-toggle { display: none; }

  .site-nav .menu-primary-container > ul,
  .site-nav > ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.05rem;
  }

  .site-nav a {
    font-size: 0.88rem;
    padding: 0.45em 0.55em;
  }

  .site-nav li {
    position: relative;
  }

  .site-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--menuusa-surface);
    border: 1px solid var(--menuusa-border);
    border-radius: var(--menuusa-radius-sm);
    box-shadow: var(--menuusa-shadow-hover);
    padding: 0.5rem;
    z-index: 120;
  }

  .site-nav li:hover > .sub-menu,
  .site-nav li:focus-within > .sub-menu {
    display: block;
  }

  .site-nav .sub-menu a {
    font-weight: 500;
    padding: 0.55em 0.9em;
  }
}

/* Footer nav */
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.footer-nav a {
  color: var(--menuusa-text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-nav a:hover { color: var(--menuusa-accent, #C0392B); text-decoration: underline; }

/* -------------------------------------------------------------------------
   7. Breadcrumbs
-------------------------------------------------------------------------- */

.breadcrumbs {
  font-size: 0.82rem;
  color: var(--menuusa-text-muted);
  margin-bottom: 1.1rem;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumbs li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumbs li + li::before {
  content: "›";
  color: var(--menuusa-border-strong);
  font-size: 1em;
}

.breadcrumbs a {
  color: var(--menuusa-text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--menuusa-accent, #C0392B);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--menuusa-text);
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   8. Blog: post cards & pagination
-------------------------------------------------------------------------- */

.posts-list {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .posts-list {
    grid-template-columns: repeat(var(--mmu-feed-cols, 2), minmax(0, 1fr));
  }
}

.post-card {
  background: var(--menuusa-surface);
  border: 1px solid var(--menuusa-border);
  border-radius: var(--menuusa-radius);
  box-shadow: var(--menuusa-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--menuusa-shadow-hover);
}

/* Legacy selector kept for older markup; prefer .mmu-media */
.post-card .post-thumbnail,
.post-card .mmu-media {
  display: block;
  overflow: hidden;
  background: #F3EBDB;
}

.post-card .post-thumbnail img,
.post-card .mmu-media img,
.post-card .mmu-media .mmu-media__img {
  width: 100%;
  height: 100%;
  object-position: center;
  transition: transform 0.25s ease;
}

/* Editorial cards: cover crop. Product cards: contain (see .mmu-media--product). */
.post-card .mmu-media--editorial img,
.post-card .mmu-media--editorial .mmu-media__img,
.post-card .post-thumbnail img {
  object-fit: cover;
}

.post-card .mmu-media--product img,
.post-card .mmu-media--product .mmu-media__img {
  object-fit: contain;
}

.post-card:hover .mmu-media--editorial.mmu-media--has-image img,
.post-card:hover .mmu-media--editorial.mmu-media--has-image .mmu-media__img {
  transform: scale(1.03);
}

.post-card .card-body {
  padding: 1.15rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.post-card .entry-title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.35;
}

.post-card .entry-title a {
  color: var(--menuusa-text);
  text-decoration: none;
}

.post-card .entry-title a:hover {
  color: var(--menuusa-accent, #C0392B);
}

.entry-meta {
  font-size: 0.82rem;
  color: var(--menuusa-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
  align-items: center;
}

.entry-meta a {
  color: var(--menuusa-text-muted);
  text-decoration: none;
}

.entry-meta a:hover {
  color: var(--menuusa-accent, #C0392B);
  text-decoration: underline;
}

.entry-meta .posted-on::before { content: "📅 "; }
.entry-meta .byline::before { content: "✍️ "; }
.entry-meta .cat-links::before { content: "📁 "; }
.entry-meta .comments-link::before { content: "💬 "; }

.post-card .entry-excerpt {
  color: var(--menuusa-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.post-card .read-more {
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--menuusa-accent, #C0392B);
  text-decoration: none;
}

.post-card .read-more:hover { text-decoration: underline; }

.pagination {
  margin: 2.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.7em;
  border: 1px solid var(--menuusa-border);
  border-radius: var(--menuusa-radius-sm);
  background: var(--menuusa-surface);
  color: var(--menuusa-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
}

.pagination a.page-numbers:hover {
  border-color: var(--menuusa-accent, #C0392B);
  color: var(--menuusa-accent, #C0392B);
}

.pagination .page-numbers.current {
  background: var(--menuusa-accent, #C0392B);
  border-color: var(--menuusa-accent, #C0392B);
  color: #fff;
}

/* -------------------------------------------------------------------------
   9. Menu pages: category nav, grid, cards, tables
-------------------------------------------------------------------------- */

/* Sticky category pill nav, sits just under the sticky header */
nav.cat-nav {
  position: sticky;
  top: var(--menuusa-header-height);
  z-index: 90;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--menuusa-border);
  padding: 0.65rem 0;
  margin: 0 -1.1rem 1.6rem;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

nav.cat-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

nav.cat-nav li { margin: 0; flex-shrink: 0; }

nav.cat-nav a {
  display: inline-block;
  padding: 0.45em 1em;
  border: 1px solid var(--menuusa-border);
  border-radius: 999px;
  background: var(--menuusa-surface);
  color: var(--menuusa-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

nav.cat-nav a:hover {
  border-color: var(--menuusa-accent, #C0392B);
  color: var(--menuusa-accent, #C0392B);
}

nav.cat-nav a.active {
  background: var(--menuusa-accent, #C0392B);
  border-color: var(--menuusa-accent, #C0392B);
  color: #fff;
}

/* Responsive card grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0 2.2rem;
}

@media (min-width: 640px) {
  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
}

.menu-item-card {
  background: var(--menuusa-surface);
  border: 1px solid var(--menuusa-border);
  border-radius: var(--menuusa-radius);
  box-shadow: var(--menuusa-shadow);
  padding: 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/*
 * Product cards use .post-card + media: keep photo flush to card edges.
 * Body padding lives on .post-card-content only (avoid double inset).
 */
.post-card.menu-item-card,
.post-card.mmu-product-card {
  padding: 0;
  gap: 0;
}

.menu-item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--menuusa-shadow-hover);
}

.menu-item-card .item-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.menu-item-card .item-desc {
  font-size: 0.86rem;
  color: var(--menuusa-text-muted);
  margin: 0;
  flex: 1;
}

.menu-item-card .item-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.45rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--menuusa-border);
}

.menu-item-card .item-price {
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--menuusa-accent, #C0392B);
  white-space: nowrap;
}

.menu-item-card .item-kcal {
  font-size: 0.8rem;
  color: var(--menuusa-text-muted);
  white-space: nowrap;
}

/* Striped responsive table */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.4rem 0;
  border: 1px solid var(--menuusa-border);
  border-radius: var(--menuusa-radius);
  background: var(--menuusa-surface);
  box-shadow: var(--menuusa-shadow);
}

.table-wrap table {
  margin: 0;
  min-width: 560px;
  font-size: 0.93rem;
}

.menu-table tbody tr:nth-child(odd) {
  background: #FDF9F0;
}

.menu-table tbody tr:hover {
  background: #FBF3E0;
}

.menu-table td.price,
.menu-table th.price {
  font-weight: 800;
  color: var(--menuusa-accent, #C0392B);
  white-space: nowrap;
}

.menu-table td.kcal,
.menu-table th.kcal {
  color: var(--menuusa-text-muted);
  white-space: nowrap;
}

/* Price info box */
.price-note {
  background: #FDF6E7;
  border: 1px solid var(--menuusa-secondary);
  border-left: 5px solid var(--menuusa-secondary);
  border-radius: var(--menuusa-radius-sm);
  padding: 0.9em 1.2em;
  font-size: 0.92rem;
  color: #54462F;
  margin: 1.4em 0;
}

.price-note strong { color: var(--menuusa-text); }

.price-note p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------------
   10. Ad slots (neutral when empty)
-------------------------------------------------------------------------- */

.ad-slot {
  margin: 1.6rem auto;
  text-align: center;
  max-width: 100%;
}

.ad-slot:empty {
  display: none;
}

.ad-slot iframe,
.ad-slot ins,
.ad-slot img {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------------------------------
   11. Single post / page: entry content, navigation, FAQ
-------------------------------------------------------------------------- */

.entry-header {
  margin-bottom: 1.4rem;
}

.entry-header .entry-title {
  margin: 0.25em 0 0.4em;
  font-size: 2rem;
}

.entry-content {
  max-width: var(--menuusa-narrow-max);
  font-size: 1.02rem;
}

.entry-content > *:first-child { margin-top: 0; }

.entry-content h2 {
  padding-top: 0.4em;
  border-top: 1px solid var(--menuusa-border);
  margin-top: 2em;
  scroll-margin-top: calc(var(--menuusa-header-height) + 70px);
}

.entry-content h2:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.entry-content ul,
.entry-content ol {
  padding-left: 0.2em;
}

.entry-content li::marker {
  color: var(--menuusa-accent, #C0392B);
}

.entry-content blockquote { font-size: 1.02rem; }

.entry-content .table-wrap { max-width: none; }

.entry-content img {
  border-radius: var(--menuusa-radius-sm);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.entry-content .alignwide img,
.entry-content .alignfull img,
.entry-content figure img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.widget img,
.widget-area img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.widget .wp-post-image,
.widget img[class*="attachment-"] {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--menuusa-radius-sm, 8px);
}

.entry-content figure {
  margin: 1.5em 0;
}

.entry-content figcaption {
  font-size: 0.85rem;
  color: var(--menuusa-text-muted);
  text-align: center;
  margin-top: 0.5em;
}

.entry-footer {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--menuusa-border);
  font-size: 0.9rem;
  color: var(--menuusa-text-muted);
}

.tags-links a {
  display: inline-block;
  background: #FBF3E4;
  border: 1px solid var(--menuusa-border);
  border-radius: 999px;
  padding: 0.25em 0.85em;
  margin: 0 0.35em 0.35em 0;
  font-size: 0.85rem;
  color: var(--menuusa-text);
  text-decoration: none;
}

.tags-links a:hover {
  border-color: var(--menuusa-accent, #C0392B);
  color: var(--menuusa-accent, #C0392B);
}

.post-navigation {
  margin: 2.5rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 2px solid var(--menuusa-border);
}

.post-navigation .nav-links {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .post-navigation .nav-links { grid-template-columns: 1fr 1fr; }
  .post-navigation .nav-next { text-align: right; }
}

.post-navigation a {
  display: block;
  background: var(--menuusa-surface);
  border: 1px solid var(--menuusa-border);
  border-radius: var(--menuusa-radius);
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: var(--menuusa-text);
  box-shadow: var(--menuusa-shadow);
}

.post-navigation a:hover {
  border-color: var(--menuusa-accent, #C0392B);
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--menuusa-text-muted);
  margin-bottom: 0.3em;
}

.post-navigation .nav-title {
  font-weight: 700;
  color: var(--menuusa-accent, #C0392B);
}

/* FAQ accordion (details/summary) */
.faq {
  margin: 2rem 0;
}

details.faq-item {
  background: var(--menuusa-surface);
  border: 1px solid var(--menuusa-border);
  border-radius: var(--menuusa-radius-sm);
  margin-bottom: 0.7rem;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

details.faq-item[open] {
  box-shadow: var(--menuusa-shadow);
}

details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95em 1.15em;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FBF3E4;
  color: var(--menuusa-accent, #C0392B);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

details.faq-item[open] summary::after {
  content: "−";
  background: var(--menuusa-accent, #C0392B);
  color: #fff;
}

details.faq-item summary:hover {
  color: var(--menuusa-accent, #C0392B);
}

details.faq-item .faq-answer {
  padding: 0 1.15em 1.1em;
  color: var(--menuusa-text-muted);
  border-top: 1px dashed var(--menuusa-border);
  padding-top: 0.9em;
  margin: 0 1.15em 1.1em;
  padding-left: 0;
  padding-right: 0;
}

/* -------------------------------------------------------------------------
   12. Footer
-------------------------------------------------------------------------- */

.site-footer {
  background: #2E2620;
  color: #D9CFC0;
  margin-top: auto;
  padding: 2.6rem 0 1.4rem;
  font-size: 0.93rem;
}

.site-footer a {
  color: #F3E7CF;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--menuusa-secondary);
  text-decoration: underline;
}

.site-footer .footer-inner {
  max-width: var(--menuusa-content-max);
  margin: 0 auto;
  padding: 0 1.1rem;
}

.footer-widgets {
  display: grid;
  gap: 1.8rem;
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .footer-widgets { grid-template-columns: repeat(3, 1fr); }
}

.site-footer .widget {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  color: #D9CFC0;
}

.site-footer .widget-title {
  color: #F3E7CF;
  border-bottom-color: rgba(243, 231, 207, 0.25);
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(243, 231, 207, 0.18);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  align-items: center;
  justify-content: space-between;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: #A99B87;
  line-height: 1.6;
  max-width: 720px;
}

.footer-disclaimer p { margin: 0 0 0.6em; }

.site-info {
  font-size: 0.85rem;
  color: #A99B87;
  width: 100%;
  text-align: center;
  margin-top: 0.4rem;
}

/* -------------------------------------------------------------------------
   13. Comments
-------------------------------------------------------------------------- */

.comments-area {
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 2px solid var(--menuusa-border);
  max-width: var(--menuusa-narrow-max);
}

.comment-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.comment-list .comment {
  background: var(--menuusa-surface);
  border: 1px solid var(--menuusa-border);
  border-radius: var(--menuusa-radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}

.comment-list .children {
  list-style: none;
  margin: 1rem 0 0 1rem;
  padding: 0;
}

.comment-meta {
  font-size: 0.84rem;
  color: var(--menuusa-text-muted);
  margin-bottom: 0.6em;
}

.comment-form label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35em;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
  width: 100%;
  max-width: 100%;
  padding: 0.7em 0.9em;
  border: 1px solid var(--menuusa-border-strong);
  border-radius: var(--menuusa-radius-sm);
  background: var(--menuusa-surface);
  color: var(--menuusa-text);
  margin-bottom: 1em;
}

.comment-form input:focus,
.comment-form textarea:focus,
.search-form input:focus {
  border-color: var(--menuusa-accent, #C0392B);
  outline: 2px solid rgba(192, 57, 43, 0.25);
}

.comment-form .submit,
.search-form .search-submit,
button[type="submit"],
input[type="submit"] {
  background: var(--menuusa-accent, #C0392B);
  color: #fff;
  border: 0;
  border-radius: var(--menuusa-radius-sm);
  padding: 0.75em 1.6em;
  font-weight: 700;
  cursor: pointer;
}

.comment-form .submit:hover,
.search-form .search-submit:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--menuusa-accent-dark);
}

/* -------------------------------------------------------------------------
   14. Back to top
-------------------------------------------------------------------------- */

.back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 150;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--menuusa-accent, #C0392B);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(60, 40, 20, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--menuusa-accent-dark);
}

/* -------------------------------------------------------------------------
   15. Search results / archives / 404
-------------------------------------------------------------------------- */

.page-header {
  margin-bottom: 1.6rem;
}

.page-title {
  margin: 0.2em 0 0.3em;
  font-size: 1.9rem;
}

.archive-description {
  color: var(--menuusa-text-muted);
  max-width: var(--menuusa-narrow-max);
}

.search-form {
  display: flex;
  gap: 0.6rem;
  max-width: 480px;
}

.search-form label { flex: 1; margin: 0; }
.search-form input[type="search"] { margin: 0; }

.error-404 .page-content {
  max-width: var(--menuusa-narrow-max);
}

/* -------------------------------------------------------------------------
   16. Print
-------------------------------------------------------------------------- */

@media print {
  .site-header,
  .site-nav,
  .mobile-menu-toggle,
  nav.cat-nav,
  .ad-slot,
  .back-to-top,
  .post-navigation,
  .comments-area,
  .widget-area,
  .site-footer .footer-nav {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.5;
  }

  .site-main { padding: 0; }

  .menu-item-card,
  .post-card {
    box-shadow: none;
    break-inside: avoid;
  }

  a { color: #000; text-decoration: none; }

  .entry-content { max-width: none; }
}


/* -------------------------------------------------------------------------
   17. Template class aliases + layout (aligned with reference markup)
-------------------------------------------------------------------------- */

.site-header .site-header-inner {
  max-width: var(--menuusa-content-max);
  margin: 0 auto;
  padding: 0 1.1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.site-branding .custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-branding .custom-logo {
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 56px;
}

@media (max-width: 859px) {
  .site-branding .custom-logo {
    max-width: 160px;
    max-height: 44px;
  }
}

@media (min-width: 860px) {
  .site-nav .menu,
  .site-nav ul.menu {
    display: flex;
    align-items: center;
    gap: 0.15rem;
  }
}

.mobile-menu-toggle-icon {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--menuusa-text);
  border-radius: 2px;
  position: relative;
  transition: background 0.2s;
}

.mobile-menu-toggle-icon::before,
.mobile-menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--menuusa-text);
  border-radius: 2px;
  transition: transform 0.2s;
}

.mobile-menu-toggle-icon::before { top: -7px; }
.mobile-menu-toggle-icon::after { top: 7px; }

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle-icon {
  background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle-icon::before {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle-icon::after {
  transform: translateY(-7px) rotate(-45deg);
}

.content-wrapper {
  max-width: var(--menuusa-content-max);
  margin: 0 auto;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.has-sidebar .content-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
}

@media (min-width: 900px) {
  .has-sidebar .content-wrapper {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
}

.has-sidebar .content-wrapper > .content-area {
  max-width: none;
  margin: 0;
  padding: 0;
}

.post-feed {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  width: 100%;
}

@media (min-width: 640px) {
  .post-feed {
    grid-template-columns: repeat(var(--mmu-feed-cols, 2), minmax(0, 1fr));
  }
}

/* One editorial card can span the row; product cards keep a normal card width
   so 4:3 media never becomes a full-bleed ~800px-tall hero. */
.post-feed:not(.menu-item-feed) > .post-card:only-child,
.post-feed:not(.menu-item-feed) > article:only-child {
  grid-column: 1 / -1;
  max-width: 100%;
  width: 100%;
}

.post-feed.menu-item-feed > .mmu-product-card:only-child,
.post-feed.menu-item-feed > .menu-item-card:only-child,
.post-feed.menu-item-feed > article:only-child {
  grid-column: auto;
  width: 100%;
  max-width: min(100%, 420px);
}

/* Explicit column modes (admin / body class) — blog feeds only.
   Homepage / menu product grids must stay multi-column. */
body.mmu-cols-1 .post-feed:not(.menu-item-feed):not(.mmu-updates-feed):not(.mmu-guides-feed),
body.mmu-cols-1 .posts-list,
body.mmu-cols-1 .related-posts .post-feed:not(.menu-item-feed):not(.mmu-guides-feed) {
  --mmu-feed-cols: 1;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .menu-item-feed,
  .mmu-updates-feed,
  .mmu-guides-feed,
  body.menuusa-front .home-section .post-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  body.menuusa-front .home-section .menu-item-feed,
  body.menuusa-front .home-section .mmu-guides-feed,
  .mmu-full-menu .menu-item-feed,
  .mmu-guides-feed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.mmu-cols-2 .post-feed,
body.mmu-cols-2 .posts-list,
body.mmu-cols-2 .related-posts .post-feed {
  --mmu-feed-cols: 2;
}

body.mmu-cols-3 .post-feed,
body.mmu-cols-3 .posts-list,
body.mmu-cols-3 .related-posts .post-feed {
  --mmu-feed-cols: 3;
}

@media (max-width: 639px) {
  .post-feed,
  .posts-list,
  .related-posts .post-feed {
    grid-template-columns: 1fr !important;
  }
}

.post-card .post-card-content {
  padding: 1.15rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.post-card .entry-summary {
  color: var(--menuusa-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.site-footer .site-footer-inner {
  max-width: var(--menuusa-content-max);
  margin: 0 auto;
  padding: 0 1.1rem;
}

.site-footer .footer-nav a {
  color: #F3E7CF;
}

.site-footer .footer-nav a:hover {
  color: var(--menuusa-secondary);
}

.site-footer .disclaimer {
  font-size: 0.8rem;
  color: #A99B87;
  line-height: 1.6;
  max-width: 720px;
  margin: 0.8rem auto 0;
  text-align: center;
}

.site-footer .disclaimer p { margin: 0 0 0.6em; }

.site-footer .copyright {
  font-size: 0.85rem;
  color: #A99B87;
  width: 100%;
  text-align: center;
  margin-top: 0.4rem;
}

.site-footer .site-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(243, 231, 207, 0.18);
}

.breadcrumbs {
  max-width: var(--menuusa-content-max);
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 1.1rem 0;
}

.single .post-thumbnail,
.page .post-thumbnail {
  margin: 0 0 1.5rem;
  border-radius: var(--menuusa-radius);
  overflow: hidden;
}

.single .post-thumbnail img,
.page .post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: var(--menuusa-radius);
}

.related-posts {
  margin: 2.5rem 0 0;
  padding-top: 1.6rem;
  border-top: 2px solid var(--menuusa-border);
}

.related-posts > h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.related-posts .post-feed {
  margin-top: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .related-posts .post-feed {
    grid-template-columns: repeat(var(--mmu-related-cols, var(--mmu-feed-cols, 2)), minmax(0, 1fr));
  }
}

/* Single article reading width */
.single-layout-full .content-wrapper {
  max-width: var(--menuusa-content-max);
}
.single-layout-full .has-sidebar .content-wrapper,
.single-layout-full .content-wrapper {
  display: block;
}
.single-layout-full .widget-area { display: none; }
.single-layout-narrow .entry-content,
.single-layout-narrow .entry-header {
  max-width: var(--menuusa-narrow-max);
  margin-left: auto;
  margin-right: auto;
}
.single-layout-wide .entry-content {
  max-width: none;
}

.home-featured {
  margin-bottom: 2.2rem;
}

.home-featured > h2,
.home-latest > h2 {
  margin-top: 0;
  font-size: 1.45rem;
}

.section-intro {
  color: var(--menuusa-text-muted);
  margin: -0.3rem 0 1.2rem;
}

/* -------------------------------------------------------------------------
   18. Newsletter
-------------------------------------------------------------------------- */

.mcd-newsletter-premium {
  background: linear-gradient(135deg, #1a1a2e 0%, #c8102e 100%);
  padding: 50px 20px;
  text-align: center;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.mcd-newsletter-premium::before {
  content: "";
  position: absolute;
  opacity: 0.12;
  top: 10px;
  left: 5%;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 30%, #FFC72C, transparent 60%);
  transform: rotate(-15deg);
}

.mcd-newsletter-premium::after {
  content: "";
  position: absolute;
  opacity: 0.12;
  bottom: 10px;
  right: 5%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 40%, #FFC72C, transparent 65%);
  transform: rotate(15deg);
}

.mcd-newsletter-premium h2,
.mcd-newsletter-premium h3 {
  color: #ffffff;
  font-size: 1.75rem;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.mcd-newsletter-premium p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin: 0 0 25px 0;
}

.mcd-newsletter-premium .newsletter-form,
.mcd-newsletter-premium .menuusa-newsletter-form {
  max-width: 450px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.mcd-newsletter-premium .newsletter-form input[type="email"],
.mcd-newsletter-premium .menuusa-newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  outline: none;
  margin: 0;
}

.mcd-newsletter-premium .newsletter-form button,
.mcd-newsletter-premium .menuusa-newsletter-form button {
  background: #FFC72C;
  color: #1a1a2e;
  border: none;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
}

.mcd-newsletter-premium .newsletter-form button:hover,
.mcd-newsletter-premium .menuusa-newsletter-form button:hover {
  transform: scale(1.05);
  background: #FFC72C;
  color: #1a1a2e;
}

.mcd-newsletter-premium .newsletter-note {
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.featured-badge {
  display: inline-block;
  background: var(--menuusa-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25em 0.7em;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.page-legal .entry-content {
  max-width: var(--menuusa-narrow-max);
}

.updated:not(.published) {
  display: none;
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget li {
  margin: 0 0 0.55em;
  padding-bottom: 0.55em;
  border-bottom: 1px solid var(--menuusa-border);
}

.widget li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.widget a {
  color: var(--menuusa-text);
  text-decoration: none;
}

.widget a:hover {
  color: var(--menuusa-accent);
  text-decoration: underline;
}

.wp-block-search__inside-wrapper {
  display: flex;
  gap: 0.5rem;
}

.wp-block-search__input {
  flex: 1;
  padding: 0.7em 0.9em;
  border: 1px solid var(--menuusa-border-strong);
  border-radius: var(--menuusa-radius-sm);
}

.wp-block-search__button {
  background: var(--menuusa-accent);
  color: #fff;
  border: 0;
  border-radius: var(--menuusa-radius-sm);
  padding: 0.7em 1.1em;
  font-weight: 700;
  cursor: pointer;
}

/* v2.0 article enhancements */
.entry-category-label {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.entry-category-label a {
  color: var(--menuusa-accent);
  text-decoration: none;
}
.entry-intro {
  font-size: 1.08rem;
  color: var(--menuusa-text-muted);
  margin: 0.4rem 0 0.9rem;
  max-width: var(--menuusa-narrow-max);
}
.entry-meta .updated-on::before { content: "🔄 "; }
.entry-meta .reading-time::before { content: "⏱️ "; }
.entry-meta .reviewed-by::before { content: "✅ "; }
.mmu-reviewer-box .mmu-reviewer-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #FBF3E4;
}
.related-menu-items { margin-top: 2rem; }

/* -------------------------------------------------------------------------
   V4 Homepage + Menu directory
-------------------------------------------------------------------------- */

.home-menu-directory .content-wrapper.home-sections {
  max-width: var(--menuusa-content-max);
}

.home-content-full {
  max-width: none !important;
  width: 100%;
}

.home-hero {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(232, 160, 32, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(192, 57, 43, 0.12), transparent 50%),
    linear-gradient(180deg, #FFF8EE 0%, var(--menuusa-bg) 100%);
  padding: 2.8rem 1.1rem 2.4rem;
  border-bottom: 1px solid var(--menuusa-border);
}

.home-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.home-hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
}

.home-hero-sub {
  margin: 0 0 1.35rem;
  color: var(--menuusa-text-muted);
  font-size: 1.08rem;
}

.home-menu-search {
  display: flex;
  gap: 0.5rem;
  position: relative;
  max-width: 560px;
  margin: 0 auto 0.85rem;
}

.home-menu-search input[type="search"] {
  flex: 1 1 auto;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: var(--menuusa-radius-sm);
  border: 1px solid var(--menuusa-border-strong);
  font-size: 1rem;
  min-height: 48px;
  max-height: 56px;
  box-sizing: border-box;
}

.home-menu-search button,
.button.button-primary {
  background: var(--menuusa-accent);
  color: #fff;
  border: none;
  border-radius: var(--menuusa-radius-sm);
  padding: 0.85rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.button.button-secondary {
  display: inline-block;
  background: transparent;
  color: var(--menuusa-accent);
  border: 2px solid var(--menuusa-accent);
  border-radius: var(--menuusa-radius-sm);
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.home-popular-searches {
  font-size: 0.92rem;
  color: var(--menuusa-text-muted);
  margin: 0 0 1.1rem;
}

.home-popular-searches a {
  margin: 0 0.35rem;
}

.home-hero-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
}

.home-section {
  margin: 2.4rem 0;
}

.menu-category-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .menu-category-grid {
    grid-template-columns: repeat(var(--mmu-cat-cols, 2), minmax(0, 1fr));
  }
}

.menu-category-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.15rem 1.2rem;
  background: var(--menuusa-surface);
  border: 1px solid var(--menuusa-border);
  border-radius: var(--menuusa-radius);
  box-shadow: var(--menuusa-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.menu-category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--menuusa-shadow-hover);
  color: inherit;
}

.menu-category-card-title {
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--menuusa-text);
}

.menu-category-card-desc {
  font-size: 0.92rem;
  color: var(--menuusa-text-muted);
}

.menu-category-card-meta {
  font-size: 0.88rem;
  color: var(--menuusa-accent);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Replaced by .mmu-media system in V4.1.1 */
.menu-card-placeholder {
  display: none !important;
}

.menu-card-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--menuusa-text-muted);
}

.mmu-unverified {
  color: var(--menuusa-text-muted);
  font-style: italic;
}

.mmu-state {
  font-size: 0.82rem;
  color: var(--menuusa-text-muted);
  margin: 0.2rem 0 0;
}

.mmu-price-estimated,
.mmu-price-est-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--menuusa-text-muted);
  font-weight: 500;
}

.mmu-price-est-label {
  display: inline;
  margin-left: 0.35rem;
  font-weight: 600;
}

/* Fact cards — see V4.3.4 single-menu-item block for full system */

.menu-nutrition-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
}

.menu-nutrition-table th,
.menu-nutrition-table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--menuusa-border);
}

.menu-directory-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.menu-directory-filters input,
.menu-directory-filters select {
  margin: 0;
  min-height: 44px;
}

.menu-directory-filters input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.menu-directory-filters button,
.menu-directory-filters .button {
  min-height: 44px;
  flex: 0 0 auto;
}

.mmu-results-count {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--menuusa-text-muted);
}

.mmu-empty-state {
  margin: 0.5rem 0 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--menuusa-surface);
  border: 1px dashed var(--menuusa-border);
  border-radius: var(--menuusa-radius-sm);
  color: var(--menuusa-text-muted);
}

.home-faq details {
  background: var(--menuusa-surface);
  border: 1px solid var(--menuusa-border);
  border-radius: var(--menuusa-radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 0.55rem;
}

.home-faq summary {
  font-weight: 600;
  cursor: pointer;
}

.home-disclaimer {
  font-size: 0.85rem;
  color: var(--menuusa-text-muted);
  margin: 2rem 0 1rem;
}

.mmu-search-suggestions,
.mmu-search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--menuusa-border);
  border-radius: var(--menuusa-radius-sm);
  box-shadow: var(--menuusa-shadow-hover);
  z-index: 40;
  text-align: left;
  max-height: 280px;
  overflow: auto;
}

.mmu-search-suggestions a,
.mmu-search-suggest a {
  display: block;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
  color: var(--menuusa-text);
  border-bottom: 1px solid var(--menuusa-border);
}

.mmu-search-suggestions a:hover,
.mmu-search-suggest a:hover {
  background: #FFF8EE;
}

.mmu-suggest-badge {
  font-size: 0.75rem;
  color: var(--menuusa-accent);
  font-weight: 600;
  margin-right: 0.4rem;
}

.home-callout {
  background: var(--menuusa-surface);
  border: 1px solid var(--menuusa-border);
  border-radius: var(--menuusa-radius);
  padding: 1.35rem 1.4rem;
}

/* =========================================================================
   V4.1 — Responsive system, overflow guards, context sidebar
========================================================================= */

:root {
  /* Single gutter model — avoid calc(100%-2rem) + padding-inline double shrink */
  --menuusa-container: 1120px;
  --menuusa-gutter: clamp(0.75rem, 3.2vw, 1.25rem);
  --menuusa-sidebar-w: clamp(280px, 30vw, 320px);
}

body.menu-open {
  overflow: hidden;
}

.site-header {
  height: auto;
  min-height: var(--menuusa-header-height);
}

.site-header .site-header-inner,
.site-header .header-inner {
  flex-wrap: wrap;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.content-wrapper {
  width: 100%;
  max-width: var(--menuusa-container);
  margin-inline: auto;
  padding-inline: var(--menuusa-gutter);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.has-sidebar .content-wrapper {
  gap: 1.5rem 2rem;
}

@media (min-width: 900px) {
  .has-sidebar .content-wrapper {
    grid-template-columns: minmax(0, 1fr) var(--menuusa-sidebar-w);
    align-items: start;
  }
}

body.menuusa-front .content-wrapper,
body.no-sidebar .content-wrapper {
  display: block;
}

.home-menu-search {
  flex-wrap: wrap;
  position: relative;
  align-items: stretch;
}

/* Horizontal flex-basis ONLY — never use as column height (see V4.2.1) */
.home-menu-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 48px;
  max-height: 56px;
  box-sizing: border-box;
}

.home-menu-search button {
  flex: 0 0 auto;
  min-height: 48px;
  max-height: 56px;
  min-width: 0;
  box-sizing: border-box;
}

.mmu-suggest-group {
  margin: 0;
  padding: 0.45rem 0.85rem 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--menuusa-text-muted);
}

.mmu-suggest-meta {
  font-size: 0.78rem;
  color: var(--menuusa-accent);
  font-weight: 600;
}

.menuusa-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menuusa-side-list li {
  margin: 0;
  border-bottom: 1px solid var(--menuusa-border);
}

.menuusa-side-list a {
  display: block;
  padding: 0.55rem 0;
  text-decoration: none;
  color: var(--menuusa-text);
  font-weight: 600;
}

.menuusa-side-list a:hover {
  color: var(--menuusa-accent);
}

.entry-content {
  overflow-wrap: anywhere;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.menu-category-grid,
.post-feed,
.menu-item-feed {
  min-width: 0;
}

.menu-category-card,
.menu-item-card,
.post-card {
  min-width: 0;
  max-width: 100%;
}

nav.cat-nav {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 899px) {
  .has-sidebar .content-wrapper {
    display: flex;
    flex-direction: column;
  }

  .has-sidebar #secondary {
    order: 2;
    width: 100%;
    max-width: 100%;
  }

  .has-sidebar .content-area {
    order: 1;
    width: 100%;
  }

  .menu-category-grid {
    grid-template-columns: 1fr !important;
  }

  .post-feed,
  .menu-item-feed {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .menu-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .post-feed,
  .menu-item-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 430px) {
  .home-hero h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .home-hero-sub {
    font-size: 0.98rem;
  }

  .home-popular-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
  }

  .site-title {
    font-size: 1.05rem;
  }
}

.footer-fallback-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  justify-content: center;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.footer-fallback-links a {
  color: var(--menuusa-text);
  font-weight: 600;
  text-decoration: none;
}

.footer-fallback-links a:hover {
  color: var(--menuusa-accent);
}

/* Legacy .menu-item-facts rules replaced by V4.3.4 system below */

.menu-item-related-wrap {
  margin-top: 2rem;
  max-width: none;
}

.search-result-group {
  margin-bottom: 2rem;
}

/* =========================================================================
   V4.1.1 — Shared media + card system (aspect-ratio standards)
   Product cards: 4:3 contain | Product detail: 4:3 contain
   Editorial/hero: 16:9 cover | Sidebar: 4:3 cover | Logos: contain
   NCalc tiles: 1:1 contain (nutrition-calculator.css)
========================================================================= */

.mmu-media {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #F7F0E4 0%, #EFE4D0 100%);
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

/* Product cards — 4:3 frame, full product visible (contain; no crop) */
.mmu-media--product.mmu-media--has-image {
  aspect-ratio: 4 / 3;
  background: #fff;
  padding: 0;
  box-sizing: border-box;
  border-bottom: 1px solid var(--menuusa-border, #EDE3D3);
}

/* Compact strip when no product photo exists (fixed height; avoid max-height vs AR clash) */
.mmu-media--product.mmu-media--fallback {
  aspect-ratio: auto;
  height: 88px;
  max-height: none;
  min-height: 72px;
}

/* Individual product main image — 4:3 contain */
.mmu-media--product-detail.mmu-media--has-image {
  aspect-ratio: 4 / 3;
  max-width: min(720px, 100%);
  margin: 0 auto 1.25rem;
  background: #fff;
  padding: 0;
  box-sizing: border-box;
  border-radius: var(--menuusa-radius);
}

.mmu-media--product-detail.mmu-media--fallback {
  aspect-ratio: 2.4 / 1;
  max-width: min(560px, 100%);
  max-height: 148px;
  min-height: 96px;
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--menuusa-radius);
  background:
    radial-gradient(circle at 28% 30%, rgba(232, 160, 32, 0.16), transparent 55%),
    linear-gradient(145deg, #F7F0E4, #E8DCC6);
}

.mmu-media--product-detail.mmu-media--fallback .mmu-media-fallback {
  position: static;
  inset: auto;
  background: transparent;
}

.mmu-media--product-detail.mmu-media--fallback .mmu-media-initial {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.15rem;
}

/* Guide / article cards — 16:9 cover */
.mmu-media--editorial.mmu-media--has-image {
  aspect-ratio: 16 / 9;
}

.mmu-media--editorial.mmu-media--fallback {
  aspect-ratio: auto;
  min-height: 56px;
  max-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mmu-media--editorial.mmu-media--fallback .mmu-media-fallback {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  min-height: 56px;
}

/* Article / category featured hero — 16:9 cover */
.mmu-media--hero.mmu-media--has-image {
  aspect-ratio: 16 / 9;
  border-radius: var(--menuusa-radius);
  margin: 0 0 1.25rem;
  max-height: none;
}

.mmu-media--hero {
  border-radius: var(--menuusa-radius);
  margin: 0 0 1.25rem;
}

.mmu-media--hero.mmu-media--fallback {
  aspect-ratio: auto;
  min-height: 72px;
  max-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mmu-media--hero.mmu-media--fallback .mmu-media-fallback {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  min-height: 72px;
}

/* Sidebar thumbnails — 4:3 cover */
.mmu-media--sidebar.mmu-media--has-image {
  aspect-ratio: 4 / 3;
}

.mmu-media img,
.mmu-media .mmu-media__img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-position: center;
}

/*
 * Product frames: fill aspect box; padding on the img keeps a clean frame
 * while object-fit:contain shows the full photo (no stretch / crop).
 */
.mmu-media--product.mmu-media--has-image img,
.mmu-media--product.mmu-media--has-image .mmu-media__img {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0.85rem;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}

.mmu-media--product-detail.mmu-media--has-image img,
.mmu-media--product-detail.mmu-media--has-image .mmu-media__img {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1rem;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}

.mmu-media--editorial img,
.mmu-media--editorial .mmu-media__img,
.mmu-media--hero img,
.mmu-media--hero .mmu-media__img,
.mmu-media--sidebar img,
.mmu-media--sidebar .mmu-media__img {
  object-fit: cover;
}

.mmu-media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(232, 160, 32, 0.18), transparent 55%),
    linear-gradient(145deg, #F7F0E4, #E8DCC6);
}

.mmu-media-initial {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(192, 57, 43, 0.12);
  color: var(--menuusa-accent, #C0392B);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0;
}

.mmu-media--editorial .mmu-media-initial {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 0.92rem;
}

.mmu-product-card,
.mmu-article-card {
  height: 100%;
}

.mmu-card-category {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mmu-card-category a {
  color: var(--menuusa-accent);
  text-decoration: none;
}

.mmu-card-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--menuusa-text-muted);
  line-height: 1.45;
}

.mmu-update-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #F8E8D8;
  color: var(--menuusa-accent);
}

.mmu-update-badge--editorial {
  background: #EAF2F8;
  color: #2C5F7C;
}

.mmu-update-badge--lto {
  background: #FBE4E1;
  color: #A93226;
}

.mmu-product-card .entry-title {
  font-size: 1.05rem;
}

.mmu-article-card .entry-title {
  font-size: 1.12rem;
}

.mmu-article-card .entry-meta {
  gap: 0.35rem 0.75rem;
}

.mmu-article-card .entry-meta .emoji,
.mmu-article-card .entry-meta .dashicons {
  display: none;
}

@media (max-width: 639px) {
  .mmu-media--product.mmu-media--fallback {
    aspect-ratio: auto;
    height: 76px;
    max-height: none;
  }

  .mmu-media-initial {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.85rem;
  }
}

/* =========================================================================
   V4.1.2 — Category directory, Full Menu, Guides, responsive polish
========================================================================= */

.home-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.35rem;
}

.home-section-head h2 {
  margin: 0;
}

.mmu-cat-spotlight {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .mmu-cat-spotlight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mmu-cat-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  gap: 0;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  background: var(--menuusa-surface);
  border: 1px solid var(--menuusa-border);
  border-radius: var(--menuusa-radius);
  box-shadow: var(--menuusa-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mmu-cat-card:hover,
.mmu-cat-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--menuusa-shadow-hover);
  border-color: var(--menuusa-border-strong);
  color: inherit;
  outline: none;
}

.mmu-cat-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  max-height: 140px;
  background: linear-gradient(160deg, #F7EBD8 0%, #E8D4B8 100%);
}

.mmu-cat-card--v2,
.mmu-cat-card--spotlight,
.mmu-cat-card--featured,
.mmu-cat-card--lto {
  grid-template-columns: minmax(0, 1fr) !important;
}

.mmu-cat-card-count-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(43, 43, 43, 0.82);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.mmu-cat-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.95rem 1rem 1.05rem;
  min-width: 0;
}

.mmu-cat-card--v2 .mmu-cat-visual svg {
  width: 48px;
  height: 48px;
}

.mmu-cat-card-media[data-cat="breakfast"] { background: linear-gradient(145deg, #FFE7B8, #F2C46D); }
.mmu-cat-card-media[data-cat="burgers"] { background: linear-gradient(145deg, #F6D3B0, #D89A6A); }
.mmu-cat-card-media[data-cat="chicken-fish-sandwiches"] { background: linear-gradient(145deg, #F8E0C8, #E0B07A); }
.mmu-cat-card-media[data-cat="mcnuggets-mccrispy-strips"] { background: linear-gradient(145deg, #FFE0A8, #E8B45A); }
.mmu-cat-card-media[data-cat="snack-wraps"] { background: linear-gradient(145deg, #E8F0D8, #C5D69A); }
.mmu-cat-card-media[data-cat="fries-sides"] { background: linear-gradient(145deg, #FFE9A0, #F0C040); }
.mmu-cat-card-media[data-cat="happy-meal"] { background: linear-gradient(145deg, #FFD4C8, #F0A090); }
.mmu-cat-card-media[data-cat="sweets-treats"] { background: linear-gradient(145deg, #F5D0E8, #D890C0); }
.mmu-cat-card-media[data-cat="mccafe"] { background: linear-gradient(145deg, #E8D5C4, #A67C52); }
.mmu-cat-card-media[data-cat="drinks"] { background: linear-gradient(145deg, #D6EEF8, #7EB8D4); }
.mmu-cat-card-media[data-cat="sauces-condiments"] { background: linear-gradient(145deg, #F8D8C8, #E09070); }
.mmu-cat-card-media[data-cat="extra-value-meals"] { background: linear-gradient(145deg, #E8F5D8, #A8C878); }
.mmu-cat-card-media[data-cat="mcvalue"] { background: linear-gradient(145deg, #FFF0C8, #E8C050); }
.mmu-cat-card-media[data-cat="featured-favorites"] { background: linear-gradient(145deg, #FFE2B8, #E8A84A); }
.mmu-cat-card-media[data-cat="limited-time-offers"] { background: linear-gradient(145deg, #F8C8C0, #D87060); }

.mmu-cat-card .menu-category-card-title {
  font-size: 1.02rem;
  line-height: 1.3;
}

.mmu-cat-card .menu-category-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.88rem;
  line-height: 1.4;
}

.mmu-cat-card--spotlight {
  border-color: #E8C9A0;
}

.mmu-cat-card--featured .mmu-cat-card-media {
  background: linear-gradient(160deg, #FBE8D0 0%, #F0C48A 100%);
}

.mmu-cat-card--lto .mmu-cat-card-media {
  background: linear-gradient(160deg, #F8D9D4 0%, #E8A090 100%);
}

.mmu-cat-card--compact .menu-category-card-desc {
  display: none;
}

.mmu-cat-visual {
  display: inline-flex;
  color: var(--menuusa-accent);
  opacity: 0.9;
}

.mmu-cat-visual svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mmu-cat-visual--burgers,
.mmu-cat-visual--sweets-treats,
.mmu-cat-visual--featured-favorites {
  color: #B45309;
}

.mmu-cat-visual--mccafe,
.mmu-cat-visual--drinks {
  color: #6B3F2A;
}

.mmu-cat-visual--breakfast {
  color: #C27803;
}

.mmu-cat-visual--limited-time-offers {
  color: #A93226;
}

@media (min-width: 640px) {
  .mmu-cat-grid.menu-category-grid {
    grid-template-columns: repeat(var(--mmu-cat-cols, 3), minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .home-categories .mmu-cat-grid {
    --mmu-cat-cols: 3;
  }
}

/* Full Menu chips + filters */
.mmu-cat-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem 0 0.85rem;
  margin: 0 0 1rem;
  scrollbar-width: thin;
}

.mmu-cat-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--menuusa-border);
  background: var(--menuusa-surface);
  color: var(--menuusa-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.mmu-cat-chip:hover,
.mmu-cat-chip:focus-visible {
  border-color: var(--menuusa-accent);
  color: var(--menuusa-accent);
  outline: none;
}

.mmu-cat-chip.is-active {
  background: var(--menuusa-accent);
  border-color: var(--menuusa-accent);
  color: #fff;
}

.mmu-cat-chip-count {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.75;
}

.mmu-cat-chip.is-active .mmu-cat-chip-count {
  opacity: 0.9;
}

.menu-directory-filters,
.mmu-full-menu-filters,
.mmu-cat-filters,
.mmu-guides-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
  margin: 0 0 1rem;
  position: relative;
}

.menu-directory-filters input[type="search"],
.mmu-full-menu-filters input[type="search"],
.mmu-cat-filters input[type="search"],
.mmu-guides-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 48px;
  max-height: 56px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--menuusa-border);
  border-radius: var(--menuusa-radius-sm);
  font: inherit;
  background: var(--menuusa-surface);
  box-sizing: border-box;
}

.menu-directory-filters select,
.mmu-full-menu-filters select {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 48px;
  max-height: 56px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--menuusa-border);
  border-radius: var(--menuusa-radius-sm);
  font: inherit;
  background: var(--menuusa-surface);
  box-sizing: border-box;
}

.menu-directory-filters .button,
.mmu-full-menu-filters .button,
.mmu-cat-filters .button,
.mmu-guides-search .button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
}

.mmu-article-card .entry-title {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mmu-article-card .entry-summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mmu-full-menu .content-area,
.home-content-full {
  max-width: 100%;
}

.mmu-full-menu-header .page-title {
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
}

/* Responsive safety */
@media (max-width: 639px) {
  .mmu-cat-card-media {
    max-height: 112px;
  }

  .home-hero h1 {
    font-size: clamp(1.45rem, 7vw, 1.85rem);
  }

  .home-hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .home-hero-ctas .button {
    text-align: center;
  }

  /* Fact card stacking handled in V4.3.4 single-menu-item block */

  .site-header .primary-menu,
  .site-header #primary-menu {
    max-width: 100%;
  }
}

/* V4.1.3 / V4.2 fluid type (page overflow fixed at source — no global clip) */
h1, .page-title, .entry-title, .home-hero h1 {
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2.25rem);
}

h2 {
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.75rem);
}

.mmu-full-menu-filters,
.mmu-cat-filters,
.home-menu-search {
  width: 100%;
  max-width: 100%;
}

.mmu-cat-card--compact {
  grid-template-columns: 1fr;
}

.mmu-cat-card--compact .mmu-cat-card-media {
  aspect-ratio: 2.4 / 1;
  max-height: 72px;
}

.mmu-cat-card--spotlight {
  border-width: 2px;
}

.mmu-cat-card--featured {
  box-shadow: var(--menuusa-shadow-hover);
}

.mmu-cat-card--lto {
  border-color: #E8A090;
}

.site-main,
.content-wrapper,
.content-area,
.post-feed,
.menu-category-grid,
.mmu-cat-chips {
  max-width: 100%;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mmu-cat-archive-title-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.mmu-cat-archive-visual {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--menuusa-radius);
  background: linear-gradient(160deg, #F7EBD8 0%, #E8D4B8 100%);
}

.mmu-cat-archive-visual .mmu-cat-visual svg {
  width: 36px;
  height: 36px;
}

@media (max-width: 374px) {
  .mmu-cat-archive-title-row {
    flex-direction: column;
  }
}

/* =========================================================================
   V4.2 — Mobile fit, sidebar restore, filter stacking, Explore More
========================================================================= */

html {
  overflow-x: visible;
}

body {
  overflow-x: visible;
}

/* Contained scroll only for chip rails / tables — not the page shell */
.mmu-cat-chips {
  max-width: 100%;
}

.menuusa-explore-more {
  border: 0;
  margin: 0;
  padding: 0;
}

.menuusa-explore-more__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.85rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--menuusa-text);
  background: var(--menuusa-surface);
  border: 1px solid var(--menuusa-border);
  border-radius: var(--menuusa-radius);
  box-shadow: var(--menuusa-shadow);
}

.menuusa-explore-more__summary::-webkit-details-marker {
  display: none;
}

.menuusa-explore-more__summary::after {
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
  color: var(--menuusa-accent);
}

.menuusa-explore-more[open] > .menuusa-explore-more__summary::after {
  content: "−";
}

.menuusa-explore-more__body {
  display: block;
}

.menuusa-side-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.menuusa-side-search-form input[type="search"] {
  flex: 1 1 8rem;
  min-width: 0;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--menuusa-border);
  border-radius: var(--menuusa-radius-sm);
  font: inherit;
}

.menuusa-side-search-form .button {
  min-height: 44px;
}

.menuusa-side-count {
  font-weight: 500;
  color: var(--menuusa-text-muted);
  font-size: 0.85em;
}

/* Desktop: always show sidebar body; hide Explore More chrome.
   Closed <details> collapses to 0 height in Chromium — keep [open] and force visible body. */
@media (min-width: 900px) {
  .menuusa-explore-more {
    display: block;
    height: auto;
  }

  .menuusa-explore-more > .menuusa-explore-more__summary {
    display: none;
  }

  .menuusa-explore-more > .menuusa-explore-more__body,
  .menuusa-explore-more .menuusa-explore-more__body {
    display: block !important;
    height: auto;
    overflow: visible;
  }

  .has-sidebar .content-area {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  .has-sidebar .widget-area,
  .has-sidebar #secondary {
    width: 100%;
    min-width: 0;
    height: auto;
    align-self: start;
  }
}

/* Mobile/tablet: stack filters, search, CTAs — flex-basis must NOT inflate height */
@media (max-width: 899px) {
  .home-menu-search,
  .mmu-full-menu-filters,
  .menu-directory-filters,
  .mmu-cat-filters,
  .mmu-guides-search {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    gap: 0.65rem;
  }

  .home-menu-search input[type="search"],
  .home-menu-search button,
  .mmu-full-menu-filters input[type="search"],
  .mmu-full-menu-filters select,
  .mmu-full-menu-filters .button,
  .mmu-full-menu-filters .button-secondary,
  .menu-directory-filters input[type="search"],
  .menu-directory-filters select,
  .menu-directory-filters .button,
  .menu-directory-filters .button-secondary,
  .mmu-cat-filters input[type="search"],
  .mmu-cat-filters .button,
  .mmu-guides-search input[type="search"],
  .mmu-guides-search .button {
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 48px;
    max-height: 56px;
    box-sizing: border-box !important;
  }

  .site-header-inner {
    padding-inline: var(--menuusa-gutter);
  }

  /* Hero already has horizontal padding — do not double-pad inner */
  .home-hero {
    padding-left: var(--menuusa-gutter);
    padding-right: var(--menuusa-gutter);
  }

  .home-hero-inner {
    padding-inline: 0;
    width: 100%;
    max-width: 100%;
  }

  .home-popular,
  .home-popular-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    align-items: baseline;
    justify-content: center;
    max-width: 100%;
  }

  .home-popular-searches a {
    margin: 0;
  }

  .mmu-cat-card .menu-category-card-title {
    font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  }

  .mmu-cat-card .menu-category-card-desc {
    font-size: 0.84rem;
  }
}

@media (max-width: 374px) {
  :root {
    --menuusa-gutter: 0.65rem;
  }

  h1, .page-title, .entry-title, .home-hero h1 {
    font-size: clamp(1.35rem, 7.5vw, 1.7rem);
  }

  .button,
  .home-hero-ctas .button {
    padding-inline: 0.9rem;
    font-size: 0.95rem;
  }
}

/* Prefer content readability over sticky compression */
@media (min-width: 900px) and (max-width: 1099px) {
  .has-sidebar .content-wrapper {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 28%);
  }
}

/* =========================================================================
   V4.2.1 — Critical mobile fit (flex-basis-as-height bug + containers)
========================================================================= */

html,
body,
.site,
.site-main,
.content-wrapper,
.content-area,
.home-hero,
.home-hero-inner,
.mmu-full-menu,
.archive-description,
.page-header,
.post-feed,
.menu-item-feed,
.menu-category-grid {
  max-width: 100%;
}

.site,
.content-wrapper,
.content-area {
  min-width: 0;
  box-sizing: border-box;
}

/* Product / post cards must shrink inside grids */
.post-card,
.menu-item-card,
.mmu-product-card,
.mmu-cat-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Contain media in grids without overriding per-variant aspect ratios */
.mmu-media,
.post-card .mmu-media,
.menu-item-card .mmu-media {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.mmu-media-fallback,
.mmu-media-initial {
  max-width: 100%;
}

.archive-description,
.mmu-card-desc,
.entry-title,
.page-title {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Desktop search: horizontal when space allows */
@media (min-width: 900px) {
  .home-menu-search {
    flex-direction: row;
    flex-wrap: nowrap;
    max-width: 560px;
  }

  .home-menu-search input[type="search"] {
    flex: 1 1 auto;
    width: auto;
  }

  .home-menu-search button {
    flex: 0 0 auto;
    width: auto;
    padding-inline: 1.15rem;
  }

  .mmu-full-menu-filters,
  .menu-directory-filters {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .mmu-full-menu-filters input[type="search"],
  .menu-directory-filters input[type="search"] {
    flex: 1 1 12rem;
    width: auto;
  }

  .mmu-full-menu-filters select,
  .menu-directory-filters select {
    flex: 0 1 10rem;
    width: auto;
  }

  .mmu-full-menu-filters .button,
  .menu-directory-filters .button {
    flex: 0 0 auto;
    width: auto;
  }
}

@media (max-width: 430px) {
  :root {
    --menuusa-gutter: clamp(0.6rem, 3.5vw, 0.9rem);
  }

  .home-hero {
    padding-top: 1.6rem;
    padding-bottom: 1.5rem;
  }

  .home-hero h1 {
    font-size: clamp(1.4rem, 7vw, 1.75rem);
  }

  .home-hero-sub {
    font-size: 0.95rem;
  }

  .home-menu-search input[type="search"] {
    font-size: 16px; /* avoid iOS zoom */
    padding: 0.7rem 0.85rem;
  }

  /* Text-only legacy cards; media product cards keep padding:0 via rule above */
  .menu-item-card:not(.post-card) {
    padding: 0.85rem;
  }

  .mmu-media--product.mmu-media--fallback {
    height: 72px;
    max-height: none;
  }
}



/* =========================================================================
   V4.2.2 — Header, footer, legal pages, contact form (newsletter removed)
========================================================================= */

.mcd-newsletter-premium,
.menuusa-newsletter-form,
#mcd-newsletter-section,
.mmu-newsletter-block {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 252, 247, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--menuusa-border);
  box-shadow: 0 1px 0 rgba(60, 40, 20, 0.04);
}

.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.site-header-inner {
  max-width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0.65rem var(--menuusa-gutter);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
  box-sizing: border-box;
  width: 100%;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
}

.site-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(145deg, #da291c 0%, #b71c12 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-title {
  margin: 0;
  font-size: clamp(0.95rem, 2.6vw, 1.15rem);
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-title a {
  color: var(--menuusa-text);
  text-decoration: none;
}

.site-title--with-logo {
  margin-left: 0.25rem;
}

.site-header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-search--desktop {
  display: none;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--menuusa-border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  min-width: 180px;
  max-width: 240px;
}

.header-search--desktop input[type="search"] {
  border: 0;
  padding: 0.45rem 0.85rem;
  min-width: 0;
  width: 100%;
  font: inherit;
  background: transparent;
}

.header-search--desktop .header-search__btn {
  border: 0;
  background: transparent;
  padding: 0 0.75rem;
  cursor: pointer;
  color: var(--menuusa-text-muted);
}

.header-search--desktop .header-search__btn:hover,
.header-search--desktop .header-search__btn:focus-visible {
  color: var(--menuusa-accent);
}

.mobile-menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--menuusa-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-nav__panel-head,
.header-search--mobile {
  display: none;
}

@media (max-width: 899px) {
  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(20, 16, 12, 0.42);
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav__panel {
    margin-left: auto;
    width: min(100%, 360px);
    height: 100%;
    background: #fffaf4;
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.18);
    padding: 0.85rem 1rem 1.5rem;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .site-nav__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
  }

  .site-nav__panel-title {
    font-weight: 750;
    font-size: 1rem;
  }

  .site-nav__close {
    width: 42px;
    height: 42px;
    border: 1px solid var(--menuusa-border);
    border-radius: 10px;
    background: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
  }

  .header-search--mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
  }

  .header-search--mobile input[type="search"],
  .header-search--mobile button {
    width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    border-radius: 10px;
    border: 1px solid var(--menuusa-border);
    font: inherit;
    padding: 0.65rem 0.85rem;
  }

  .header-search--mobile button {
    background: var(--menuusa-accent, #c0392b);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
    cursor: pointer;
  }

  .site-nav .menu-primary-container > ul {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .site-nav a {
    padding: 0.8rem 0.65rem;
    border-radius: 10px;
    font-size: 1rem;
  }
}

@media (min-width: 900px) {
  .mobile-menu-toggle,
  .site-nav__panel-head,
  .header-search--mobile {
    display: none !important;
  }

  .header-search--desktop {
    display: inline-flex;
  }

  .site-nav {
    display: block;
    position: static;
    flex: 2 1 auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .site-nav__panel {
    display: contents;
  }

  .site-nav .menu-primary-container > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.1rem;
  }

  .site-nav a {
    font-size: 0.86rem;
    padding: 0.45rem 0.55rem;
    white-space: nowrap;
  }

  .site-header-inner {
    gap: 1rem;
  }

  .site-branding {
    flex: 0 1 auto;
  }
}

/* Footer */
.site-footer {
  background: #1f1a16;
  color: #f4ebe1;
  margin-top: 2.5rem;
  border-top: 0;
}

.site-footer a {
  color: #f7d9c4;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.site-footer-inner {
  max-width: min(1180px, 100%);
  margin: 0 auto;
  padding: 2.25rem var(--menuusa-gutter) 1.25rem;
  box-sizing: border-box;
  width: 100%;
}

/* ncalc-inline-cta styles live in V4.3.4 single-menu-item block */

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 1.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  font-weight: 750;
  margin-bottom: 0.75rem;
}

.footer-brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(145deg, #da291c 0%, #b71c12 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
}

.footer-brand__desc {
  margin: 0;
  color: #cbb9a8;
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 34ch;
}

.footer-col__title {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.footer-col__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-col__list a {
  font-size: 0.95rem;
  line-height: 1.35;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 0.65rem;
}

.footer-bottom__copy,
.footer-bottom__disclaimer {
  margin: 0;
  color: #cbb9a8;
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-bottom__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.footer-bottom__links a {
  font-size: 0.88rem;
  font-weight: 600;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr));
  }
}

/* Legal / trust pages */
.content-wrapper--legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.25rem var(--menuusa-gutter) 2.5rem;
  width: 100%;
  box-sizing: border-box;
}

.page-legal .entry-title {
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  margin-bottom: 0.35rem;
}

.legal-updated {
  margin: 0 0 1.25rem;
  color: var(--menuusa-text-muted);
  font-size: 0.9rem;
}

.legal-content {
  font-size: 1.02rem;
  line-height: 1.7;
}

.legal-content h2 {
  margin-top: 1.75rem;
  font-size: 1.28rem;
}

.legal-content h3 {
  margin-top: 1.25rem;
  font-size: 1.08rem;
}

.legal-toc {
  background: #faf4ea;
  border: 1px solid var(--menuusa-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 0 0 1.5rem;
}

.legal-toc ol {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.legal-toc a {
  text-decoration: none;
}

.legal-toc a:hover {
  text-decoration: underline;
}

.legal-callout {
  border-left: 3px solid var(--menuusa-accent, #c0392b);
  background: #fff8f0;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
}

/* Contact form */
.menuusa-contact-form-wrap {
  margin-top: 1.25rem;
}

.menuusa-contact-notice {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.menuusa-contact-notice--success {
  background: #eaf7ee;
  border: 1px solid #b7dfc3;
}

.menuusa-contact-notice--error {
  background: #fdeceb;
  border: 1px solid #f0b8b3;
}

.menuusa-contact-form label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.menuusa-contact-form input,
.menuusa-contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--menuusa-border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  min-height: 46px;
  background: #fff;
}

.menuusa-contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.menuusa-contact-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .menuusa-contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.menuusa-contact-form p {
  margin: 0 0 0.95rem;
}

.menuusa-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.menuusa-contact-privacy {
  font-size: 0.92rem;
  color: var(--menuusa-text-muted);
}

.menuusa-contact-actions .button {
  min-height: 48px;
  padding-inline: 1.25rem;
}

/* =========================================================================
   V4.2.3 — Minimal professional logo header
========================================================================= */

.site-header--minimal {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fffdf9;
  border-bottom: 1px solid #ebe3d6;
  box-shadow: none;
  backdrop-filter: none;
  min-height: 64px;
}

.admin-bar .site-header--minimal {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header--minimal {
    top: 46px;
  }
}

.site-header--minimal .site-header-inner {
  max-width: min(1120px, 100%);
  margin: 0 auto;
  min-height: 64px;
  padding: 0.55rem var(--menuusa-gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem 1rem;
  box-sizing: border-box;
  width: 100%;
}

.site-header--minimal .site-branding {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 0 auto;
}

.site-header--minimal .custom-logo-link,
.site-header--minimal .site-logo-fallback {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  max-width: 100%;
}

.site-header--minimal .custom-logo,
.site-header--minimal .site-logo-fallback .custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 36px;
  max-width: min(145px, 52vw);
  object-fit: contain;
}

.site-header--minimal .site-title,
.site-header--minimal .site-branding-text,
.site-header--minimal .site-description {
  display: none !important;
}

.site-header--minimal .site-header-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: end;
}

.header-search-popover {
  position: relative;
}

.header-search-popover > summary {
  list-style: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border: 1px solid #e6ddd0;
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2a241e;
}

.header-search-popover > summary::-webkit-details-marker {
  display: none;
}

.header-search-popover > summary:hover,
.header-search-popover > summary:focus-visible {
  border-color: #c0392b;
  color: #c0392b;
  outline: none;
}

.header-search-popover[open] > summary {
  border-color: #c0392b;
  color: #c0392b;
}

.header-search-popover .header-search--desktop {
  display: flex;
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  width: min(320px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid #e6ddd0;
  border-radius: 12px;
  padding: 0.45rem;
  gap: 0.35rem;
  box-shadow: 0 10px 28px rgba(40, 28, 16, 0.12);
  z-index: 30;
}

.header-search-popover .header-search--desktop input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #e6ddd0;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: #fff;
}

.header-search-popover .header-search--desktop button {
  border: 0;
  border-radius: 8px;
  background: #c0392b;
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.site-header--minimal .mobile-menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #e6ddd0;
  background: #fff;
}

.site-header--minimal .site-nav {
  justify-self: center;
}

html.menu-open,
body.menu-open {
  overflow: hidden;
}

@media (max-width: 899px) {
  .site-header--minimal .site-header-inner {
    grid-template-columns: 1fr auto;
  }

  .site-header--minimal .site-nav {
    justify-self: stretch;
  }

  .header-search-popover {
    display: none;
  }

  .site-header--minimal .custom-logo,
  .site-header--minimal .site-logo-fallback .custom-logo {
    max-height: 32px;
    max-width: min(140px, 58vw);
  }
}

@media (min-width: 900px) {
  .site-header--minimal .mobile-menu-toggle,
  .site-header--minimal .site-nav__panel-head,
  .site-header--minimal .header-search--mobile {
    display: none !important;
  }

  .site-header--minimal .custom-logo,
  .site-header--minimal .site-logo-fallback .custom-logo {
    max-height: 40px;
    max-width: 180px;
  }

  .site-header--minimal .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .site-header--minimal .site-nav__panel {
    display: contents;
  }

  .site-header--minimal .site-nav .menu-primary-container > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.15rem 0.1rem;
  }

  .site-header--minimal .site-nav a {
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.4rem 0.65rem;
    color: #2a241e;
    border-radius: 8px;
    white-space: nowrap;
  }

  .site-header--minimal .site-nav a:hover,
  .site-header--minimal .site-nav a:focus-visible {
    background: #f7efe4;
    color: #c0392b;
  }

  .site-header--minimal .site-nav .current-menu-item > a,
  .site-header--minimal .site-nav .current_page_item > a {
    color: #c0392b;
    background: #f8ebe1;
  }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .site-header--minimal .site-nav a {
    font-size: 0.84rem;
    padding: 0.35rem 0.45rem;
  }

  .site-header--minimal .custom-logo,
  .site-header--minimal .site-logo-fallback .custom-logo {
    max-width: 155px;
  }
}

.footer-brand__logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 34px;
  max-width: 170px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-brand {
  margin-bottom: 0.85rem;
}

/* =========================================================================
   V4.2.4 — Sidebar restoration (details open height fix)
========================================================================= */

.has-sidebar .content-wrapper {
  gap: 1.5rem 1.75rem;
}

@media (min-width: 900px) {
  .has-sidebar .content-wrapper {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  }

  /* Ensure closed-details never collapses the complementary column */
  .has-sidebar #secondary details.menuusa-explore-more:not([open]) > .menuusa-explore-more__body {
    display: block !important;
  }

  .has-sidebar #secondary .widget {
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 899px) {
  .has-sidebar #secondary {
    order: 2;
    width: 100%;
    max-width: 100%;
    margin-top: 0.5rem;
  }

  .menuusa-explore-more__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 48px;
    padding: 0.85rem 1rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--menuusa-text);
    background: var(--menuusa-surface, #fff);
    border: 1px solid var(--menuusa-border, #e6ddd0);
    border-radius: var(--menuusa-radius, 12px);
    box-shadow: var(--menuusa-shadow, 0 1px 4px rgba(0,0,0,.04));
  }

  .menuusa-explore-more__body {
    padding-top: 0.85rem;
  }
}

/* =========================================================================
   V4.3.4 — Single menu item: balanced fact cards + detail polish
========================================================================= */

.single-menu-item .entry-header {
  margin-bottom: 0.85rem;
}

.single-menu-item .entry-category {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  color: var(--menuusa-text-muted, #6e655a);
}

.single-menu-item .entry-category a {
  color: var(--menuusa-accent, #C0392B);
  text-decoration: none;
  font-weight: 600;
}

.single-menu-item .entry-category a:hover,
.single-menu-item .entry-category a:focus-visible {
  text-decoration: underline;
}

.single-menu-item .entry-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 1.25rem + 1.1vw, 2.05rem);
  line-height: 1.2;
}

.single-menu-item .entry-intro {
  margin: 0.35rem 0 0;
  max-width: 42rem;
  color: var(--menuusa-text-muted, #6e655a);
  font-size: 1rem;
  line-height: 1.5;
}

.menu-item-facts-wrap {
  margin: 0 0 1.35rem;
  max-width: 100%;
}

.menu-item-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0;
  align-items: stretch;
}

.menu-item-fact,
.menu-fact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--menuusa-surface, #fff);
  border: 1px solid var(--menuusa-border, #ede3d3);
  border-radius: var(--menuusa-radius-sm, 8px);
  padding: 0.85rem 1rem;
  min-height: 0;
  height: auto;
  box-sizing: border-box;
}

.menu-fact__label {
  display: block;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--menuusa-text-muted, #6e655a);
  line-height: 1.3;
}

.menu-fact__value {
  margin: 0.1rem 0 0;
  font-size: clamp(1.35rem, 1.15rem + 0.6vw, 1.65rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--menuusa-text, #2b2b2b);
  letter-spacing: -0.01em;
}

.menu-fact__value--muted {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--menuusa-text-muted, #6e655a);
}

.menu-fact__value--date {
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.25rem);
  font-variant-numeric: tabular-nums;
}

.menu-item-fact .mmu-state,
.menu-fact .mmu-state {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
}

.menu-item-fact .mmu-unverified,
.menu-fact .mmu-unverified {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Price / estimated disclaimer — OUTSIDE the three cards */
.menu-item-price-note {
  margin: 0.7rem 0 0;
  padding: 0.65rem 0.8rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--menuusa-text-muted, #6e655a);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--menuusa-border, #ede3d3);
  border-left: 3px solid var(--menuusa-accent, #C0392B);
  border-radius: var(--menuusa-radius-sm, 8px);
  max-width: 100%;
  box-sizing: border-box;
}

.menu-item-price-note strong {
  color: var(--menuusa-text, #2b2b2b);
  font-weight: 700;
}

.menu-item-price-note.mmu-price-estimated {
  margin-top: 0.7rem;
  display: block;
}

.ncalc-inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  margin: 0.35rem 0 1.35rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, #FFF9F2 0%, #FFFDF8 100%);
  border: 1px solid var(--menuusa-border, #ede3d3);
  border-radius: var(--menuusa-radius-sm, 8px);
  box-sizing: border-box;
}

.ncalc-inline-cta .button {
  flex: 0 0 auto;
  margin: 0;
  text-decoration: none;
}

.ncalc-inline-cta__desc,
.ncalc-inline-cta .item-desc {
  flex: 1 1 12rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--menuusa-text-muted, #6e655a);
}

.single-menu-item .entry-content > h2 {
  margin-top: 1.65rem;
  margin-bottom: 0.55rem;
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
}

.single-menu-item .entry-content > h2:first-child {
  margin-top: 0.5rem;
}

.single-menu-item .menu-nutrition-table {
  margin-top: 0.35rem;
}

.single-menu-item .post-feed.menu-item-feed {
  margin-top: 0.75rem;
}

@media (min-width: 640px) and (max-width: 899px) {
  .menu-item-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-item-facts .menu-item-fact:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .menu-item-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .menu-item-fact,
  .menu-fact {
    padding: 0.95rem 1.05rem;
  }
}

@media (max-width: 639px) {
  .menu-item-facts {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .menu-item-fact,
  .menu-fact {
    padding: 0.8rem 0.9rem;
  }

  .ncalc-inline-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .ncalc-inline-cta .button {
    text-align: center;
  }

  .mmu-media--product-detail.mmu-media--fallback,
  .mmu-media--product-detail.mmu-media--has-image {
    max-width: 100%;
  }
}
