/* Guide sections form one vertical document. Only the article and its rail
   share columns; nesting the entire document in that grid crushes the text. */
.wc-public #guideContent {
  display: block;
}

#guideContent > *, #restaurantGuide > *,
#guideContent .pro-guide-grid > *, #restaurantGuide .restaurant-guide-grid > * {
  min-width: 0;
}

#guideContent, #restaurantGuide {
  overflow-wrap: break-word;
}

#guideContent .pro-guide-hero, #restaurantGuide .restaurant-guide-hero {
  gap: 40px;
  align-items: start;
}

#guideContent .guide-hero-card {
  margin: 0;
}

#guideContent .guide-hero-card > span,
#restaurantGuide .restaurant-guide-answer > span,
#restaurantGuide .restaurant-guide-section > span,
#restaurantGuide .restaurant-ai-cta span,
#restaurantGuide .restaurant-related-guides > div > span {
  display: block;
  color: var(--wc-gold-dark);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

#guideContent .guide-hero-card h2 { font-size: 28px; margin: 0 0 16px; }
#guideContent .guide-hero-card p { font-size: 15px; }
#guideContent .guide-hero-card dl { margin: 22px 0 0; }
#guideContent .guide-hero-card dl > div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--wc-line);
  font-size: 14px;
}
#guideContent .guide-hero-card dt { color: var(--wc-muted); }
#guideContent .guide-hero-card dd { margin: 0; }

#guideContent .guide-toc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 24px;
  padding: 24px 28px;
  margin: 0 0 32px;
  background: #fff;
  border: 1px solid var(--wc-line);
  border-radius: 14px;
}
#guideContent .guide-toc strong { grid-column: 1 / -1; margin-bottom: 4px; }
#guideContent .guide-toc a { padding: 6px 0; }
#guideContent .guide-toc a:hover { text-decoration: underline; }

#guideContent .complete-guide-lead { margin: 0 0 24px; padding: 32px; }
#guideContent .complete-guide-lead > * { max-width: 80ch; }
#guideContent .complete-guide-matrix { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#guideContent .complete-guide-matrix article {
  padding: 24px;
  border: 1px solid var(--wc-line);
  border-radius: 14px;
  background: #fff;
}
#guideContent .complete-guide-matrix article > span,
#guideContent .guide-step { color: var(--wc-gold-dark); font-weight: 650; font-size: 13px; }
#guideContent .complete-guide-matrix h3 { margin: 12px 0; font-size: 20px; }
#guideContent .complete-guide-matrix p { font-size: 15px; }
#guideContent .complete-guide-matrix p:last-child { margin-bottom: 0; }

#guideContent .longform-guide-body {
  padding: 36px;
  border: 1px solid var(--wc-line);
  border-radius: 14px;
  background: #fff;
}
#guideContent .longform-guide-body article {
  max-width: 80ch;
  margin: 0 auto;
  padding: 28px 0;
  border-bottom: 1px solid var(--wc-line);
}
#guideContent .longform-guide-body article:first-child { padding-top: 0; }
#guideContent .longform-guide-body article:last-child { padding-bottom: 0; border: 0; }
#guideContent .longform-guide-body h2 { font-size: 28px; margin-bottom: 20px; }
#guideContent .longform-guide-body p:not(.eyebrow) { line-height: 1.8; }
#guideContent .longform-guide-body p:last-child { margin-bottom: 0; }

#guideContent .pro-guide-grid {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}
#guideContent .pro-guide-article { padding: 32px; margin: 0; }
#guideContent .pro-guide-article h2 { margin: 16px 0 20px; }
#guideContent .pro-guide-article h3 { margin: 0 0 14px; }
#guideContent .pro-guide-article ul, #guideContent .guide-side-rail ol { padding-left: 22px; }
#guideContent .pro-guide-article li + li, #guideContent .guide-side-rail li + li { margin-top: 10px; }
#guideContent .guide-intro-note { margin-top: 0; }
#guideContent .guide-research-panel, #guideContent .supplement-panel,
#guideContent .source-panel { padding: 24px; margin: 28px 0; }
#guideContent .research-columns { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
#guideContent .research-columns ul { margin-bottom: 0; }
#guideContent .guide-section-block { padding: 4px 0 28px; margin-bottom: 28px; }
#guideContent .guide-section-block:last-child { border: 0; margin-bottom: 0; padding-bottom: 0; }
#guideContent .guide-section-block p:last-child { margin-bottom: 0; }
#guideContent .guide-side-rail { position: static; display: grid; gap: 20px; }
#guideContent .side-rail-card { padding: 24px; margin: 0; }
#guideContent .related-guide-card a { display: block; padding: 12px 0; font-size: 14px; }
#guideContent .related-guide-card a + a { border-top: 1px solid var(--wc-line); }

/* The restaurant-specific guides use the same typography and reading rhythm. */
#restaurantGuide .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
#restaurantGuide .restaurant-guide-answer,
#restaurantGuide .restaurant-guide-section,
#restaurantGuide .restaurant-faq,
#restaurantGuide .restaurant-ai-cta,
#restaurantGuide .restaurant-related-guides {
  background: #fff;
  border: 1px solid var(--wc-line);
  border-radius: 14px;
  padding: 28px;
}
#restaurantGuide .restaurant-guide-answer > strong { display: block; font-size: 24px; line-height: 1.3; margin-bottom: 16px; }
#restaurantGuide .restaurant-guide-answer p:last-child { margin-bottom: 0; }
#restaurantGuide .restaurant-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
#restaurantGuide .restaurant-guide-section-large { grid-column: 1 / -1; }
#restaurantGuide .restaurant-guide-section h2,
#restaurantGuide .restaurant-ai-cta h2,
#restaurantGuide .restaurant-related-guides h2 { font-size: 28px; }
#restaurantGuide .restaurant-guide-section > p { max-width: 80ch; }
#restaurantGuide .restaurant-guide-section ul { padding-left: 22px; margin-bottom: 0; }
#restaurantGuide .restaurant-guide-section li + li { margin-top: 10px; }
#restaurantGuide .restaurant-order-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
#restaurantGuide .restaurant-order-cards article { min-width: 0; padding: 24px; background: var(--wc-page); border-radius: 10px; }
#restaurantGuide .restaurant-order-cards h3 { margin-bottom: 16px; }
#restaurantGuide .restaurant-order-cards p:last-child { margin-bottom: 0; }
#restaurantGuide .restaurant-builder-list { max-width: 80ch; }
#restaurantGuide .restaurant-builder-list p { padding-bottom: 16px; border-bottom: 1px solid var(--wc-line); }
#restaurantGuide .restaurant-builder-list p:last-child { border: 0; padding-bottom: 0; margin-bottom: 0; }
#restaurantGuide .restaurant-ai-cta { display: flex; align-items: center; gap: 32px; justify-content: space-between; }
#restaurantGuide .restaurant-ai-cta > div { max-width: 78ch; }
#restaurantGuide .restaurant-ai-cta > a { flex-shrink: 0; }
#restaurantGuide .restaurant-ai-cta p { margin-bottom: 0; }
#restaurantGuide .restaurant-faq summary { font-weight: 620; cursor: pointer; line-height: 1.5; }
#restaurantGuide .restaurant-faq p { margin: 16px 0 0; }
#restaurantGuide .restaurant-related-guides > div:last-child { display: flex; flex-wrap: wrap; gap: 12px 24px; }

@media (max-width: 1000px) {
  #guideContent .pro-guide-grid { grid-template-columns: 1fr; }
  #guideContent .guide-side-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #guideContent .related-guide-card { grid-column: 1 / -1; }
  #guideContent .complete-guide-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #guideContent .guide-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #restaurantGuide .restaurant-ai-cta { display: block; }
  #restaurantGuide .restaurant-ai-cta > a { margin-top: 20px; }
}

@media (max-width: 700px) {
  #guideContent .pro-guide-hero, #restaurantGuide .restaurant-guide-hero { gap: 24px; }
  #guideContent .guide-toc, #guideContent .complete-guide-matrix,
  #guideContent .guide-side-rail, #restaurantGuide .restaurant-guide-grid,
  #restaurantGuide .restaurant-order-cards { grid-template-columns: 1fr; }
  #guideContent .guide-toc a { min-height: 44px; display: flex; align-items: center; }
  #guideContent .guide-toc, #guideContent .complete-guide-lead,
  #guideContent .longform-guide-body, #guideContent .pro-guide-article,
  #guideContent .guide-hero-card, #restaurantGuide .restaurant-guide-answer,
  #restaurantGuide .restaurant-guide-section, #restaurantGuide .restaurant-faq,
  #restaurantGuide .restaurant-ai-cta, #restaurantGuide .restaurant-related-guides { padding: 22px; }
  #guideContent .pro-guide-article h2, #guideContent .longform-guide-body h2,
  #restaurantGuide .restaurant-guide-section h2, #restaurantGuide .restaurant-ai-cta h2,
  #restaurantGuide .restaurant-related-guides h2 { font-size: 25px; }
  /* Full-width sections avoid a second layer of padding around mobile prose. */
  #guideContent .guide-research-panel, #guideContent .supplement-panel,
  #guideContent .source-panel { padding: 24px 0; border: 0; border-top: 1px solid var(--wc-line); border-radius: 0; background: none; }
  #guideContent .guide-intro-note { padding: 0 0 20px; border: 0; border-bottom: 1px solid var(--wc-line); border-radius: 0; background: none; }
  #restaurantGuide .restaurant-order-cards article { padding: 20px; }
}

@media print {
  #guideContent .guide-toc, #guideContent .guide-side-rail,
  #guideContent .dashboard-actions, #restaurantGuide .hero-actions,
  #restaurantGuide .restaurant-ai-cta, #restaurantGuide .restaurant-related-guides { display: none; }
  #guideContent .pro-guide-hero, #guideContent .pro-guide-grid,
  #guideContent .complete-guide-matrix, #restaurantGuide .restaurant-guide-hero,
  #restaurantGuide .restaurant-guide-grid, #restaurantGuide .restaurant-order-cards { display: block; }
  #guideContent .longform-guide-body, #guideContent .pro-guide-article { padding: 0; border: 0; }
  #guideContent .longform-guide-body article { max-width: none; }
  #guideContent .complete-guide-matrix article, #restaurantGuide .restaurant-order-cards article { break-inside: avoid; margin-bottom: 16px; }
}
