/*
 * Informational content layout
 *
 * Tips, Guides, Techniques, and References share recipe.php for storage and
 * rendering, but they read more naturally as illustrated articles than as
 * recipe cards. Keep the normal recipe layout untouched and apply this layer
 * only when recipe.php marks the current entry as informational content.
 */

.informational-content-page {
  max-width: 1080px;
}

.informational-content-page .recipe-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 34px;
}

.informational-content-page .recipe-hero-image {
  min-width: 0;
}

.informational-content-page .recipe-hero-image img {
  width: 100%;
  max-width: none;
  max-height: 470px;
  object-fit: cover;
  border-radius: 14px;
}

.informational-content-page .recipe-title {
  margin-bottom: 0.55rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.08;
}

.informational-content-page .content-type-badge {
  margin-bottom: 0.8rem;
  padding: 0.28rem 0.72rem;
  background: rgba(215, 166, 106, 0.1);
  color: var(--accent-light);
  font-size: 0.75rem;
}

.informational-content-page .recipe-subtitle {
  margin-bottom: 0.8rem;
  font-size: 1.14rem;
  line-height: 1.45;
}

.informational-content-page .recipe-description {
  max-width: 42rem;
  margin-top: 0.7rem;
  font-size: 1rem;
  line-height: 1.65;
}

.informational-content-page .recipe-action-row {
  margin-top: 1.1rem;
}

/*
 * Article sections use a single readable measure rather than the wider recipe
 * card treatment. A restrained accent rule gives each section a clear start
 * without making every paragraph look like an independent widget.
 */
.informational-content-page > .section-block,
.informational-content-page > .recipe-card-section,
.informational-content-page > .related-recipes-block {
  width: min(100%, 900px);
  margin-left: auto;
  margin-right: auto;
}

.informational-content-page > .section-block {
  margin-top: 18px;
  padding: 22px 26px;
  border-color: rgba(255, 255, 255, 0.07);
  border-left: 3px solid rgba(215, 166, 106, 0.65);
  background: rgba(255, 255, 255, 0.025);
}

.informational-content-page > .section-block h2,
.informational-content-page > .recipe-card-section h2 {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.informational-content-page > .section-block p,
.informational-content-page > .section-block li,
.informational-content-page .recipe-extra-text {
  font-size: 1rem;
  line-height: 1.65;
}

.informational-content-page .recipe-extra-line + .recipe-extra-line {
  margin-top: 0.85rem;
}

.informational-content-page .recipe-note-list {
  padding-left: 1.65rem;
}

.informational-content-page .recipe-note-list li + li {
  margin-top: 0.6rem;
}

.informational-content-page .recipe-step-image {
  --step-image-default-width: 760px;
  margin-top: 20px;
  margin-bottom: 10px;
  border-radius: 12px;
}

.informational-content-page .recipe-video-section,
.informational-content-page .recipe-audio-section {
  padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.informational-content-page .recipe-video-frame {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.informational-content-page .recipe-audio-player {
  max-width: 100%;
}

/* Section types can keep the shared article geometry while gaining a subtle cue. */
.informational-content-page .extra-section--tips,
.informational-content-page .extra-section--troubleshooting {
  background: rgba(215, 166, 106, 0.045);
}

.informational-content-page .extra-section--source {
  border-left-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.015);
}

.informational-content-page .extra-section--source,
.informational-content-page .extra-section--source p,
.informational-content-page .extra-section--source li {
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .informational-content-page .recipe-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .informational-content-page .recipe-hero-image {
    width: min(100%, 640px);
    margin: 0 auto;
  }

  .informational-content-page .recipe-hero-image img {
    max-height: none;
    object-fit: contain;
  }
}

@media (max-width: 560px) {
  .informational-content-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .informational-content-page > .section-block,
  .informational-content-page .recipe-video-section,
  .informational-content-page .recipe-audio-section {
    padding: 18px;
  }

  .informational-content-page > .section-block {
    border-left-width: 2px;
  }
}

/* Waffle maker tip: present illustrated instructions as a full-width article,
   not the narrow recipe ingredients/instructions grid. */
.informational-content-page:has(.recipe-instructions-section) .recipe-sections {
  display: block;
  width: min(100%, 900px);
  margin-inline: auto;
}
.informational-content-page .recipe-sections .recipe-instructions-section {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 24px clamp(18px, 4vw, 36px);
}
.informational-content-page .recipe-instructions-section ol {
  padding-left: 1.6rem;
}
.informational-content-page .recipe-instructions-section li {
  line-height: 1.7;
  margin-bottom: 1.6rem;
}
.informational-content-page .recipe-instructions-section .recipe-step-image {
  max-width: min(100%, 740px);
  height: auto;
  object-fit: contain;
  display: block;
  margin: 18px auto 12px;
  border-radius: 12px;
}
.informational-content-page .recipe-hero-image img {
  object-position: center 44%;
}
