/* Sibelle Editorial Guides & Recipes styles
   Extends styles.css and support.css with magazine-grade editorial layout
   and HD velvet character visual explanations. Zero decorative divider lines. */

.guide-hero {
  padding: 40px 0 44px;
  background: var(--bg);
}

.guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 40px;
  align-items: center;
}

.guide-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.guide-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--action);
  font-size: 13.5px;
  font-weight: 800;
}

.guide-meta-text {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.guide-h1 {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 900;
  line-height: 1.09;
  letter-spacing: -0.025em;
  color: var(--forest);
}

.guide-standfirst {
  margin-top: 16px;
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
}

.guide-byline {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.guide-byline strong {
  color: var(--forest);
}

.guide-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.guide-hero-visual img {
  width: 210px;
  height: 210px;
  object-fit: contain;
  display: block;
  transform: rotate(4deg);
  filter: drop-shadow(0 18px 26px rgba(18, 63, 53, 0.14));
}

/* Visual 3-stage mechanism diagram */
.mechanism-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.mechanism-card {
  padding: 22px 20px;
  border-radius: 24px;
  background: var(--soft-mint);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mechanism-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mechanism-step {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--forest);
  color: #ffffff;
  font-family: 'Nunito', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.mechanism-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.mechanism-card h3 {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--forest);
  line-height: 1.25;
}

.mechanism-card p {
  font-size: 15px;
  line-height: 1.55;
  color: #294d44;
}

/* Comparison cards (SIBO vs IBS vs Lactose) */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.compare-card {
  padding: 22px 20px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(18, 63, 53, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-card.is-focus {
  background: var(--linen);
  border-color: #e6dac6;
}

.compare-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compare-head img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}

.compare-head h3 {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 18.5px;
  font-weight: 900;
  color: var(--forest);
}

.compare-dl {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.compare-dl dt {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--action);
}

.compare-dl dd {
  font-size: 14.5px;
  line-height: 1.5;
  color: #23473f;
  margin: 0;
}

/* Gentle recipe preview cards */
.recipe-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.recipe-card {
  padding: 22px 24px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--sibelle-card-elevation);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recipe-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recipe-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--forest);
  font-size: 12.5px;
  font-weight: 700;
}

.recipe-card h3 {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 900;
  color: var(--forest);
  line-height: 1.25;
}

.recipe-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.recipe-tip {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--soft-mint);
  font-size: 14px;
  line-height: 1.5;
  color: var(--forest);
}

/* Guide CTA banner */
.guide-cta-box {
  margin-top: 40px;
  padding: 28px 30px;
  border-radius: 26px;
  background: var(--linen);
  border: 1px solid #eadfcd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.guide-cta-copy {
  max-width: 520px;
}

.guide-cta-copy h2 {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--forest);
  margin-bottom: 6px;
}

.guide-cta-copy p {
  font-size: 15.5px;
  line-height: 1.55;
  color: #35524a;
}

/* Guides hub pillars */
.hub-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.hub-pillar-card {
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--soft-mint);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hub-pillar-card h2 {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--forest);
}

.hub-pillar-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.hub-featured-card {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px 30px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--sibelle-card-elevation);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}

@media (hover: hover) {
  .hub-featured-card:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 127, 101, 0.36);
  }
}

.hub-featured-thumb {
  width: 170px;
  height: 170px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-featured-thumb img {
  width: 158px;
  height: 158px;
  object-fit: contain;
  transform: rotate(-4deg);
  filter: drop-shadow(0 14px 20px rgba(18, 63, 53, 0.14));
}

@media (max-width: 860px) {
  .guide-hero-grid,
  .mechanism-grid,
  .compare-grid,
  .recipe-preview-grid,
  .hub-pillars,
  .hub-featured-card {
    grid-template-columns: 1fr;
  }

  .guide-hero-visual {
    justify-content: flex-start;
    padding: 4px 0 0;
  }

  .guide-hero-visual img {
    width: 120px;
    height: 120px;
  }

  .hub-featured-thumb {
    width: 124px;
    height: 124px;
  }

  .hub-featured-thumb img {
    width: 116px;
    height: 116px;
  }

  .guide-cta-box {
    padding: 22px 18px;
  }
}

/* ==========================================================================
   Vague 2: Food Index (/foods/ & /fr/aliments/) & Food Detail Pages
   Design System B + B2C Mobile 390px patterns (Flo, Monash, Yuka, ZOE)
   Zero boxes behind transparent 3D velvet food icons.
   ========================================================================== */

.guides-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.guide-list-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--sibelle-card-elevation);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}

@media (hover: hover) {
  .guide-list-card:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 127, 101, 0.36);
  }
}

.guide-list-thumb {
  width: 108px;
  height: 108px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-list-thumb img {
  width: 102px;
  height: 102px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(18, 63, 53, 0.14));
}

.guide-list-card h3 {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--forest);
  line-height: 1.22;
  margin-top: 6px;
}

.guide-list-card p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* Semantic pills (strict Sibelle V7 tokens) */
.food-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.food-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--forest);
}

.food-pill.is-mint {
  background: var(--mint);
  border-color: #d0eadc;
  color: var(--forest);
}

.food-pill.is-amber {
  background: #fff0c4;
  border-color: #f0da96;
  color: #785300;
}

.food-pill.is-coral {
  background: #fce8e3;
  border-color: #f2cdc3;
  color: #923a29;
}

.food-pill.is-neutral {
  background: #ffffff;
  border-color: var(--border);
  color: var(--forest);
}

/* Filter bar on /foods/ & /fr/aliments/ */
.food-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.food-filter-btn {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s var(--ease-out), color 0.16s var(--ease-out), border-color 0.16s var(--ease-out);
}

.food-filter-btn[aria-pressed='true'] {
  background: var(--forest);
  border-color: var(--forest);
  color: #ffffff;
}

.food-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.food-hub-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--sibelle-card-elevation);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}

.food-hub-card[hidden] {
  display: none;
}

@media (hover: hover) {
  .food-hub-card:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 127, 101, 0.36);
  }
}

.food-hub-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.food-hub-icon {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(18, 63, 53, 0.13));
}

.food-hub-card h2 {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--forest);
  line-height: 1.2;
}

.food-hub-card .food-pill {
  white-space: normal;
  max-width: 100%;
  font-size: 12.5px;
}

.food-hub-summary {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* Food Detail Page */
.food-verdict-card {
  margin-top: 22px;
  padding: 24px 26px;
  border-radius: 24px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  box-shadow: var(--sibelle-card-elevation);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.food-verdict-text {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--forest);
}

/* Portion & Profile Matrix: table-like grid desktop -> stacked cards on 390px */
.profile-matrix {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.profile-row {
  display: grid;
  grid-template-columns: 160px 155px 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.profile-row.is-head {
  background: var(--soft-mint);
  padding: 11px 18px;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--action);
}

.profile-name {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--forest);
}

.profile-portion {
  font-size: 14px;
  font-weight: 700;
  color: var(--forest);
}

.profile-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.profile-cell-label {
  display: none;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--action);
  margin-bottom: 2px;
}

/* 3 Field cards (Traps, Nuance, Restaurant) */
.field-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.field-card {
  padding: 22px 20px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(18, 63, 53, 0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.field-card h3 {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--forest);
  line-height: 1.25;
}

.field-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* 3 Actionable swaps with floating 3D velvet icons */
.swaps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.swap-card {
  padding: 20px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--sibelle-card-elevation);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.swap-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(18, 63, 53, 0.13));
}

.swap-card h3 {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 16.5px;
  font-weight: 900;
  color: var(--forest);
  line-height: 1.25;
  margin-bottom: 4px;
}

.swap-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.related-foods-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.related-food-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--forest);
  font-family: 'Nunito', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 15px;
}

.related-food-link img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 8px rgba(18, 63, 53, 0.12));
}

@media (max-width: 960px) {
  .food-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guides-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .food-hub-grid,
  .field-cards-grid,
  .swaps-grid,
  .related-foods-strip {
    grid-template-columns: 1fr;
  }

  .guide-list-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }

  .guide-list-thumb {
    width: 88px;
    height: 88px;
  }

  .guide-list-thumb img {
    width: 82px;
    height: 82px;
  }

  .food-verdict-card {
    padding: 18px;
  }

  .food-pill {
    white-space: normal;
  }

  .profile-row.is-head {
    display: none;
  }

  .profile-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }

  .profile-cell-label {
    display: block;
  }
}
