/* RecipePortions.com Unified Style System */
:root {
  --rp-primary: #d35400;
  --rp-secondary: #2c3e50;
  --rp-accent: #f39c12;
  --rp-bg: #fafafa;
  --rp-text: #333333;
  --rp-light: #ecf0f1;
  --rp-white: #ffffff;
  --rp-border: #e0e0e0;
  --rp-shadow: rgba(0,0,0,0.08);
  --rp-max-width: 1200px;
  --rp-radius: 8px;
  --rp-font: 'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--rp-font);
  color: var(--rp-text);
  background: var(--rp-bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rp-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navigation */
.recipeportions-nav {
  background: var(--rp-white);
  border-bottom: 1px solid var(--rp-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.recipeportions-nav-inner {
  max-width: var(--rp-max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.recipeportions-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--rp-primary);
  letter-spacing: -0.5px;
}
.recipeportions-logo span { color: var(--rp-secondary); }
.recipeportions-nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.recipeportions-nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--rp-secondary);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.recipeportions-nav-links a:hover {
  border-color: var(--rp-primary);
  text-decoration: none;
}
.recipeportions-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--rp-secondary);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .recipeportions-nav-links {
    display: none !important;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--rp-white);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--rp-border);
    gap: 0;
    box-shadow: 0 4px 12px var(--rp-shadow);
  }
  .recipeportions-nav-links.active {
    display: flex !important;
  }
  .recipeportions-nav-links li {
    border-bottom: 1px solid var(--rp-border);
    padding: 12px 0;
  }
  .recipeportions-nav-links li:last-child { border-bottom: none; }
  .recipeportions-nav-toggle { display: block; }
}

/* Container */
.recipeportions-container {
  max-width: var(--rp-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Ad Slots */

/* Hero - Magazine Cover A */
.recipeportions-hero {
  background: linear-gradient(135deg, var(--rp-secondary) 0%, #1a252f 100%);
  color: var(--rp-white);
  padding: 80px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.recipeportions-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
}
.recipeportions-hero-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.recipeportions-hero h1 {
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -1px;
}
.recipeportions-hero p {
  font-size: 20px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}
.recipeportions-hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.recipeportions-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--rp-radius);
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
  border: none;
}
.recipeportions-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); text-decoration: none; }
.recipeportions-btn-primary { background: var(--rp-primary); color: var(--rp-white); }
.recipeportions-btn-secondary { background: var(--rp-white); color: var(--rp-secondary); }

@media (max-width: 768px) {
  .recipeportions-hero { padding: 60px 20px 40px; }
  .recipeportions-hero h1 { font-size: 32px; }
  .recipeportions-hero p { font-size: 17px; }
}

/* Section headers */
.recipeportions-section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--rp-secondary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--rp-primary);
  display: inline-block;
}

/* Cards - clickable whole card */
.recipeportions-card {
  background: var(--rp-white);
  border-radius: var(--rp-radius);
  box-shadow: 0 2px 8px var(--rp-shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.recipeportions-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  text-decoration: none;
}
.recipeportions-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  pointer-events: none;
}
.recipeportions-card-body {
  padding: 20px;
  pointer-events: none;
}
.recipeportions-card-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--rp-secondary);
  line-height: 1.3;
}
.recipeportions-card-body p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}
.recipeportions-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #999;
  margin-top: 12px;
  pointer-events: none;
}

/* Article cards grid */
.recipeportions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
@media (max-width: 640px) {
  .recipeportions-grid { grid-template-columns: 1fr; }
}

/* Tool cards - Community Plaza E style */
.recipeportions-tool-card {
  background: var(--rp-white);
  border-radius: var(--rp-radius);
  box-shadow: 0 2px 8px var(--rp-shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-left: 4px solid var(--rp-primary);
}
.recipeportions-tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  text-decoration: none;
}
.recipeportions-tool-icon {
  font-size: 36px;
  margin-bottom: 12px;
  pointer-events: none;
}
.recipeportions-tool-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--rp-secondary);
  pointer-events: none;
}
.recipeportions-tool-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  pointer-events: none;
  flex-grow: 1;
}
.recipeportions-tool-card .recipeportions-btn {
  margin-top: 16px;
  align-self: flex-start;
  pointer-events: none;
}

/* Inline tool cards in articles */
.recipeportions-inline-tool {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--rp-white);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius);
  padding: 16px 20px;
  margin: 24px 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow .2s, border-color .2s;
}
.recipeportions-inline-tool:hover {
  box-shadow: 0 4px 12px var(--rp-shadow);
  border-color: var(--rp-primary);
  text-decoration: none;
}
.recipeportions-inline-tool-icon {
  font-size: 32px;
  flex-shrink: 0;
  pointer-events: none;
}
.recipeportions-inline-tool-content {
  flex-grow: 1;
  pointer-events: none;
}
.recipeportions-inline-tool-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--rp-secondary);
  margin-bottom: 4px;
  pointer-events: none;
}
.recipeportions-inline-tool-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  pointer-events: none;
}
.recipeportions-inline-tool-privacy {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
  pointer-events: none;
}
@media (max-width: 640px) {
  .recipeportions-inline-tool { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Post layout - Data Dashboard B */
.recipeportions-post-header {
  background: var(--rp-white);
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--rp-border);
}
.recipeportions-post-header h1 {
  font-size: 36px;
  line-height: 1.2;
  color: var(--rp-secondary);
  margin-bottom: 12px;
  max-width: 800px;
}
.recipeportions-post-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #888;
  flex-wrap: wrap;
}
.recipeportions-post-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  font-size: 17px;
  line-height: 1.7;
  color: #444;
}
.recipeportions-post-body h2 {
  font-size: 26px;
  color: var(--rp-secondary);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rp-light);
}
.recipeportions-post-body h3 {
  font-size: 20px;
  color: var(--rp-secondary);
  margin: 28px 0 12px;
}
.recipeportions-post-body p { margin-bottom: 18px; }
.recipeportions-post-body ul, .recipeportions-post-body ol { margin: 0 0 18px 24px; }
.recipeportions-post-body li { margin-bottom: 8px; }
.recipeportions-post-body strong { color: var(--rp-text); }
.recipeportions-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}
.recipeportions-post-body th, .recipeportions-post-body td {
  border: 1px solid var(--rp-border);
  padding: 10px 12px;
  text-align: left;
}
.recipeportions-post-body th {
  background: var(--rp-light);
  font-weight: 600;
  color: var(--rp-secondary);
}

/* Two-column tail layout */
.recipeportions-tail {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
@media (max-width: 768px) {
  .recipeportions-tail { grid-template-columns: 1fr; }
}
.recipeportions-tail-section h3 {
  font-size: 18px;
  color: var(--rp-secondary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rp-primary);
}
.recipeportions-tail-card {
  background: var(--rp-white);
  border-radius: var(--rp-radius);
  box-shadow: 0 2px 8px var(--rp-shadow);
  padding: 16px;
  margin-bottom: 16px;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .2s;
}
.recipeportions-tail-card:hover {
  transform: translateY(-3px);
  text-decoration: none;
}
.recipeportions-tail-card h4 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--rp-secondary);
  pointer-events: none;
}
.recipeportions-tail-card p {
  font-size: 13px;
  color: #777;
  line-height: 1.4;
  pointer-events: none;
}

/* Author box */
.recipeportions-author-box {
  background: var(--rp-white);
  border-radius: var(--rp-radius);
  box-shadow: 0 2px 8px var(--rp-shadow);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 40px auto;
  max-width: 800px;
}
.recipeportions-author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.recipeportions-author-box h4 {
  font-size: 18px;
  color: var(--rp-secondary);
  margin-bottom: 4px;
}
.recipeportions-author-box p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .recipeportions-author-box { flex-direction: column; text-align: center; }
}

/* Footer */
.recipeportions-footer {
  background: var(--rp-secondary);
  color: var(--rp-light);
  padding: 48px 20px 24px;
  margin-top: 60px;
}
.recipeportions-footer-inner {
  max-width: var(--rp-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.recipeportions-footer h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--rp-white);
}
.recipeportions-footer ul { list-style: none; }
.recipeportions-footer li { margin-bottom: 8px; }
.recipeportions-footer a { color: #bdc3c7; font-size: 14px; }
.recipeportions-footer a:hover { color: var(--rp-white); }
.recipeportions-footer-bottom {
  max-width: var(--rp-max-width);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
  color: #95a5a6;
}

/* Breadcrumbs */
.recipeportions-breadcrumbs,
.recipeportions-breadcrumb {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
  padding-top: 20px;
}
.recipeportions-breadcrumbs a { color: #888; }
.recipeportions-breadcrumbs a:hover { color: var(--rp-primary); }

/* About page - Community Plaza F */
.recipeportions-about-hero {
  background: var(--rp-white);
  padding: 60px 20px;
  text-align: center;
  border-bottom: 1px solid var(--rp-border);
}
.recipeportions-about-hero img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--rp-light);
}
.recipeportions-about-hero h1 {
  font-size: 32px;
  color: var(--rp-secondary);
  margin-bottom: 8px;
}
.recipeportions-about-hero .recipeportions-subtitle {
  color: var(--rp-primary);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 16px;
}
.recipeportions-about-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  font-size: 17px;
  line-height: 1.7;
}
.recipeportions-cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.recipeportions-cred-item {
  background: var(--rp-light);
  border-radius: var(--rp-radius);
  padding: 20px;
}
.recipeportions-cred-item h4 {
  font-size: 14px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.recipeportions-cred-item p {
  font-size: 15px;
  color: var(--rp-secondary);
  font-weight: 600;
}

/* Contact - Minimal Cards D */
.recipeportions-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}
.recipeportions-contact-card {
  background: var(--rp-white);
  border-radius: var(--rp-radius);
  box-shadow: 0 2px 8px var(--rp-shadow);
  padding: 28px;
  text-align: center;
}
.recipeportions-contact-card h3 {
  font-size: 18px;
  color: var(--rp-secondary);
  margin-bottom: 8px;
}
.recipeportions-contact-card p {
  font-size: 14px;
  color: #666;
}
.recipeportions-contact-disclaimer {
  background: var(--rp-light);
  border-left: 4px solid var(--rp-primary);
  padding: 20px;
  border-radius: 0 var(--rp-radius) var(--rp-radius) 0;
  max-width: 800px;
  margin: 40px auto;
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* FAQ - Minimal Cards C */
.recipeportions-faq-list {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}
.recipeportions-faq-item {
  background: var(--rp-white);
  border-radius: var(--rp-radius);
  box-shadow: 0 2px 8px var(--rp-shadow);
  margin-bottom: 16px;
  overflow: hidden;
}
.recipeportions-faq-question {
  padding: 20px;
  font-weight: 700;
  color: var(--rp-secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}
.recipeportions-faq-answer {
  padding: 0 20px 20px;
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  display: none;
}
.recipeportions-faq-item.open .recipeportions-faq-answer { display: block; }
.recipeportions-faq-toggle {
  font-size: 20px;
  color: var(--rp-primary);
  transition: transform .2s;
}
.recipeportions-faq-item.open .recipeportions-faq-toggle { transform: rotate(45deg); }

/* 404 */
.recipeportions-404 {
  text-align: center;
  padding: 100px 20px;
}
.recipeportions-404 h1 {
  font-size: 80px;
  color: var(--rp-primary);
  margin-bottom: 16px;
}
.recipeportions-404 p {
  font-size: 18px;
  color: #666;
  margin-bottom: 24px;
}

/* Utility */
.recipeportions-text-center { text-align: center; }
.recipeportions-mt-40 { margin-top: 40px; }
.recipeportions-mb-24 { margin-bottom: 24px; }
.recipeportions-py-60 { padding-top: 60px; padding-bottom: 60px; }
.recipeportions-bg-white { background: var(--rp-white); }

/* === Post Template V3.0 CSS Injection for recipeportions === */

.recipeportions-ad-slot {
  display: flex;
  width: 100%;
  max-width: var(--rp-max-width, 1200px);
  height: 250px;
  margin: 24px auto;
  padding: 0 20px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: #0369a1;
  font-size: 14px;
  box-sizing: border-box;
}
.recipeportions-post-header {
  margin-bottom: 24px;
}
.recipeportions-post-header h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 12px;
}
.recipeportions-post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.recipeportions-category-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #e8f0fe;
  color: #1a73e8;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}
.recipeportions-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.recipeportions-post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
.recipeportions-post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}
.recipeportions-post-content p {
  margin-bottom: 1.2em;
}
.recipeportions-post-content h2 {
  font-size: 1.6rem;
  margin-top: 2em;
  margin-bottom: 0.8em;
}
.recipeportions-post-content h3 {
  font-size: 1.3rem;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}
.recipeportions-post-footer {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 40px auto 0;
  padding: 0 20px;
}
@media (max-width: 768px) {
  .recipeportions-post-footer {
    grid-template-columns: 1fr;
  }
}
.recipeportions-related-articles h3,
.recipeportions-recommended-tools h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}
.recipeportions-related-list,
.recipeportions-tool-rec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.recipeportions-related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  transition: box-shadow 0.2s, transform 0.2s;
}
.recipeportions-related-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.recipeportions-related-card * {
  pointer-events: none;
}
.recipeportions-related-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #1a73e8;
}
.recipeportions-related-card p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}
.recipeportions-author-box {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: #f8f9fa;
  border-radius: 12px;
  margin: 32px 0;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .recipeportions-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
.recipeportions-author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.recipeportions-author-info {
  flex: 1;
}
.recipeportions-author-name {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.recipeportions-author-title {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
}
.recipeportions-author-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 8px;
}
.recipeportions-author-location {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
}
.recipeportions-author-bio-link {
  font-size: 0.9rem;
  color: #1a73e8;
  text-decoration: none;
}
.recipeportions-author-bio-link:hover {
  text-decoration: underline;
}
.recipeportions-inline-tool {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin: 20px 0;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e8eaed;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.recipeportions-inline-tool:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.recipeportions-inline-tool * {
  pointer-events: none;
}
.recipeportions-inline-tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #e8f0fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.recipeportions-inline-tool-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #1a73e8;
}
.recipeportions-inline-tool-desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}
.recipeportions-inline-tool-privacy {
  font-size: 0.75rem;
  color: #888;
  font-style: italic;
  margin-top: 4px;
}

/* ---- Navigation Container Fix ---- */
.has-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--has-max-width, 1200px);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* ---- Breadcrumb Align Fix ---- */
.has-breadcrumb {
  max-width: var(--has-max-width, 1200px);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* ---- Mobile Menu Active Fix ---- */
@media (max-width: 768px) {
  .has-nav-links {
    display: none !important;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 999;
  }
  .has-nav-links.active {
    display: flex !important;
  }
  .has-nav-links li {
    width: 100%;
    list-style: none;
  }
  .has-nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
  }
  .has-nav-links a:last-child {
    border-bottom: none;
  }
}

/* ---- Hamburger Button Fix ---- */
.has-nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}
@media (max-width: 768px) {
  .has-nav-hamburger {
    display: block !important;
  }
}

/* 广告位在 grid 内横跨整行 */
.recipeportions-grid .recipeportions-ad-slot {
  grid-column: 1 / -1;
  width: 100%;
}
