/* ==========================================================
   SB2 Turbo — Blog / Article styles
   Carregado em /blog/ + cada /{slug}/index.html
   Usa variáveis de cor de style.css
   ========================================================== */

/* Breadcrumb */
.breadcrumbs {
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 24px 0;
  font-size: 13px;
  color: var(--ink-3);
}
.breadcrumbs a {
  color: var(--green-700);
  text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; color: var(--ink-3); opacity: .6; }

/* Article hero */
.article-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px 16px;
}
.article-hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.article-hero .article-subtitle {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 18px;
}
.article-hero .article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
}
.article-hero .article-meta .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink-3); opacity: .5;
}
.article-hero .article-meta .last-updated {
  color: var(--green-700);
  font-weight: 700;
}

/* Article body */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 24px 64px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.7;
}
.article-body h2 {
  font-size: 26px;
  color: var(--ink);
  margin: 40px 0 14px;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.article-body h3 {
  font-size: 19px;
  color: var(--green-900);
  margin: 28px 0 10px;
  font-weight: 700;
}
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol {
  padding-left: 22px;
  margin: 0 0 18px;
}
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--ink); }
.article-body a {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--green-900); }
.article-body blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  background: var(--green-50);
  border-left: 4px solid var(--green-500);
  border-radius: 0 8px 8px 0;
  color: var(--green-900);
  font-style: italic;
  font-size: 17px;
}

/* TL;DR */
.article-body .tldr {
  background: var(--green-50);
  border: 1px solid rgba(30,168,74,.30);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 0 0 32px;
}
.article-body .tldr strong {
  color: var(--green-900);
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.article-body .tldr ul { margin: 0; padding-left: 18px; }
.article-body .tldr li { margin-bottom: 4px; font-size: 15.5px; }

/* Comparison table */
.article-body table,
.article-body .compare-wrap {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  overflow: hidden;
}
.article-body th, .article-body td {
  text-align: left;
  padding: 12px 14px;
  vertical-align: top;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.article-body th {
  background: var(--green-50);
  color: var(--green-900);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .02em;
}
.article-body tr:last-child td { border-bottom: none; }

/* Inline CTA */
.article-body .inline-cta {
  background: linear-gradient(135deg, var(--green-50), #fff);
  border: 1px solid var(--green-500);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 30px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.article-body .inline-cta strong {
  color: var(--green-900);
  font-size: 14px;
  letter-spacing: .02em;
}
.article-body .inline-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--green-700);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: background .15s ease;
}
.article-body .inline-cta a:hover { background: var(--green-900); color: #fff; }

/* FAQ */
.article-body .faq-list { margin: 16px 0 24px; }
.article-body .faq-item {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.article-body .faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--ink);
  font-size: 15.5px;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.article-body .faq-item summary::-webkit-details-marker { display: none; }
.article-body .faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--green-700);
  font-weight: 400;
  transition: transform .2s ease;
}
.article-body .faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.article-body .faq-item summary:hover { background: var(--green-50); }
.article-body .faq-answer {
  padding: 0 20px 18px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}
.article-body .faq-answer p { margin: 0 0 10px; }
.article-body .faq-answer p:last-child { margin-bottom: 0; }

/* Article disclaimer */
.article-body .article-disclaimer,
.article-body p.article-disclaimer {
  background: rgba(15,122,54,.08);
  border: 1px solid rgba(15,122,54,.30);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 32px 0 24px;
  line-height: 1.6;
}
.article-body .article-disclaimer strong { color: var(--green-900); }

/* Article sources */
.article-body .article-sources {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,.10);
}
.article-body .article-sources h3 {
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 12px;
  font-weight: 700;
}
.article-body .article-sources ol {
  font-size: 13.5px;
  line-height: 1.55;
  padding-left: 22px;
}
.article-body .article-sources li {
  color: var(--ink-3);
  margin-bottom: 8px;
}
.article-body .article-sources a {
  color: var(--green-700);
  word-break: break-word;
}

/* CTA fim de artigo */
.article-cta-end {
  max-width: 720px;
  margin: 32px auto;
  padding: 28px 24px;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  border-radius: 16px;
  text-align: center;
  color: #fff;
}
.article-cta-end h3 {
  font-size: 22px;
  margin: 0 0 8px;
  color: #fff;
}
.article-cta-end p { margin: 0 0 16px; color: rgba(255,255,255,.85); font-size: 15px; }
.article-cta-end .btn {
  display: inline-block;
  background: #fff;
  color: var(--green-900);
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .15s ease;
}
.article-cta-end .btn:hover { transform: translateY(-1px); color: var(--green-900); }

/* Mobile */
@media (max-width: 720px) {
  .article-body { font-size: 16px; padding: 12px 20px 48px; }
  .article-body h2 { font-size: 22px; }
  .article-hero { padding: 24px 20px 12px; }
  .article-body .inline-cta { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================
   Audio player ("Ouvir matéria") — paleta verde SB2 Turbo
   ========================================================== */
.audio-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 4px 24px 0;
}
.audio-player {
  display: grid;
  grid-template-columns: 48px 36px 1fr auto auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 14px 10px 10px;
  background:
    linear-gradient(135deg, rgba(30,168,74,.10), rgba(255,179,0,.06) 80%),
    #fff;
  border: 1px solid rgba(15,122,54,.22);
  border-radius: 999px;
  max-width: 560px;
  box-shadow:
    0 8px 22px rgba(15,40,20,.08),
    inset 0 1px 0 rgba(255,255,255,.4);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.audio-player:hover {
  border-color: rgba(30,168,74,.55);
  box-shadow:
    0 12px 28px rgba(15,40,20,.12),
    inset 0 1px 0 rgba(255,255,255,.5);
}
.audio-player.is-loading,
.audio-player.is-playing {
  border-color: var(--green-500);
}

.audio-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    0 6px 18px rgba(15,122,54,.35),
    inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.audio-play-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.08);
}
.audio-play-btn:active { transform: scale(.95); }
.audio-play-btn:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 3px;
}
.audio-player.is-playing .audio-play-btn {
  background: linear-gradient(135deg, var(--amber-700), var(--amber));
  color: #fff;
}

.audio-play-btn svg {
  width: 24px;
  height: 24px;
  pointer-events: none;
}
.audio-play-btn .audio-icon-pause,
.audio-play-btn .audio-icon-loading { display: none; }
.audio-play-btn .audio-icon-play    { display: block; }

.audio-player.is-playing .audio-play-btn .audio-icon-play    { display: none; }
.audio-player.is-playing .audio-play-btn .audio-icon-pause   { display: block; }
.audio-player.is-playing .audio-play-btn .audio-icon-loading { display: none; }

.audio-player.is-loading .audio-play-btn .audio-icon-play    { display: none; }
.audio-player.is-loading .audio-play-btn .audio-icon-pause   { display: none; }
.audio-player.is-loading .audio-play-btn .audio-icon-loading {
  display: block;
  animation: audioSpin 1s linear infinite;
}
@keyframes audioSpin { to { transform: rotate(360deg); } }

/* Restart button */
.audio-restart-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(15,122,54,.22);
  background: rgba(232,247,236,.5);
  color: var(--green-700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
  padding: 0;
}
.audio-restart-btn:hover {
  background: var(--green-50);
  border-color: var(--green-500);
  transform: scale(1.05);
}
.audio-restart-btn:active { transform: scale(.95); }
.audio-restart-btn:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}
.audio-restart-btn svg { width: 22px; height: 22px; }

/* Speed pill */
.audio-speed-btn {
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,122,54,.22);
  background: rgba(232,247,236,.5);
  color: var(--green-700);
  font-family: var(--font);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .02em;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.audio-speed-btn:hover {
  background: var(--green-50);
  border-color: var(--green-500);
}
.audio-speed-btn:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}
.audio-speed-btn[data-speed="1"]    { color: var(--ink-3); }
.audio-speed-btn[data-speed="1.25"] { color: var(--green-700); }
.audio-speed-btn[data-speed="1.5"]  { color: var(--green-900); }
.audio-speed-btn[data-speed="2"]    { color: #fff; background: var(--green-700); border-color: var(--green-900); }

.audio-info { min-width: 0; }
.audio-info-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.audio-label {
  font-family: var(--font);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--green-700);
  letter-spacing: .02em;
  white-space: nowrap;
}

.audio-equalizer {
  display: inline-flex;
  align-items: end;
  gap: 2px;
  height: 14px;
  opacity: 0;
  transition: opacity .2s ease;
}
.audio-player.is-playing .audio-equalizer { opacity: 1; }
.audio-equalizer span {
  display: inline-block;
  width: 2px;
  background: var(--green-500);
  border-radius: 1px;
  animation: audioEq 1s ease-in-out infinite;
}
.audio-equalizer span:nth-child(1) { animation-delay: 0s; }
.audio-equalizer span:nth-child(2) { animation-delay: .15s; }
.audio-equalizer span:nth-child(3) { animation-delay: .30s; }
.audio-equalizer span:nth-child(4) { animation-delay: .45s; }
@keyframes audioEq {
  0%, 100% { height: 4px; }
  50%      { height: 14px; }
}

.audio-progress {
  position: relative;
  height: 4px;
  background: rgba(15,40,20,.10);
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
}
.audio-progress-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--green-500), var(--amber));
  border-radius: 2px;
  transition: width .15s linear;
}
.audio-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--green-700);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .15s ease, left .15s linear;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.audio-player:hover .audio-progress-thumb,
.audio-player.is-playing .audio-progress-thumb {
  transform: translate(-50%, -50%) scale(1);
}

.audio-time {
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  letter-spacing: .02em;
}
.audio-time-current { color: var(--green-700); font-weight: 700; }
.audio-time-sep { margin: 0 4px; color: var(--ink-3); opacity: .6; }

.audio-el { display: none; }

/* Share bar */
.audio-share-bar {
  display: flex;
  justify-content: center;
  margin: 8px 0 0;
  max-width: 560px;
}
.audio-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--font);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.audio-share-btn svg { width: 14px; height: 14px; }
.audio-share-btn:hover {
  color: var(--green-700);
  background: var(--green-50);
  border-color: rgba(30,168,74,.30);
}
.audio-share-btn:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}
.audio-share-btn.is-copied {
  color: var(--green-900);
  border-color: var(--green-500);
  background: var(--green-50);
}

/* Toast */
.audio-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 12px 32px rgba(15,40,20,.25), inset 0 1px 0 rgba(255,255,255,.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
}
.audio-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 540px) {
  .audio-player {
    grid-template-columns: 48px 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 6px;
    border-radius: 18px;
    padding: 10px 14px;
    max-width: 100%;
  }
  .audio-play-btn     { grid-column: 1; grid-row: 1 / span 2; }
  .audio-restart-btn  { grid-column: 3; grid-row: 1; }
  .audio-info         { grid-column: 2; grid-row: 1; }
  .audio-time         { grid-column: 2; grid-row: 2; font-size: 11px; }
  .audio-speed-btn    { grid-column: 3; grid-row: 2; }
  .audio-info-top     { margin-bottom: 4px; }
  .audio-toast        { font-size: 12.5px; padding: 10px 18px; bottom: 16px; }
}

/* ==========================================================
   Recipe styles — Categoria "Receitas Funcionais" (batch6)
   Usadas em /{slug}/index.html quando o draft inclui
   .recipe-meta / .recipe-ingredients / .recipe-steps
   ========================================================== */
.recipe-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-3); margin: 12px 0; }
.recipe-meta span { background: var(--green-50); color: var(--green-900); padding: 4px 12px; border-radius: 999px; font-weight: 600; }
.recipe-ingredients { background: rgba(232,247,236,.4); border-left: 4px solid var(--green-500); padding: 16px 22px; margin: 18px 0; list-style: none; padding-left: 22px; }
.recipe-ingredients li { padding: 4px 0; padding-left: 20px; position: relative; }
.recipe-ingredients li::before { content: '✓'; position: absolute; left: 0; color: var(--green-700); font-weight: 700; }
.recipe-steps { counter-reset: step; padding: 0; list-style: none; margin: 18px 0; }
.recipe-steps li { counter-increment: step; padding: 12px 0 12px 48px; position: relative; border-bottom: 1px solid var(--line); }
.recipe-steps li::before { content: counter(step); position: absolute; left: 0; top: 12px; width: 32px; height: 32px; background: var(--green-700); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.recipe-steps li:last-child { border-bottom: none; }
