/*
 * Cobertura Online — componente compartilhado do Extremos.
 * Usado por notícias em atualização e diários de expedição.
 */

.live-coverage {
  width: min(780px, calc(100% - 40px));
  margin: 38px auto 64px;
}

.live-coverage__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--news-line);
}

.live-coverage__label {
  margin: 0 0 6px;
  color: var(--news-red);
  font: 800 12px/1.2 "Open Sans", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.live-coverage__title {
  scroll-margin-top: 120px;
  margin: 0;
  color: #071b34;
  font: 900 clamp(28px, 4vw, 44px)/1.05 "Raleway", sans-serif;
}

.live-coverage__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-bottom: 4px;
  padding: 8px 12px;
  border: 1px solid rgba(7, 27, 52, .12);
  border-radius: 999px;
  color: var(--news-blue);
  background: rgba(7, 27, 52, .035);
  font: 700 13px/1.2 "Open Sans", sans-serif;
}

.live-coverage__status::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--news-red);
  content: "";
  box-shadow: 0 0 0 5px rgba(190, 32, 39, .12);
}

.live-coverage[data-status="complete"] .live-coverage__status::before {
  background: #2f7a61;
  box-shadow: 0 0 0 5px rgba(47, 122, 97, .13);
}

.live-update {
  position: relative;
  display: flow-root;
  margin: 0;
  padding: 38px 0 42px 42px;
  border-bottom: 1px solid var(--news-line);
}

.live-update::before {
  position: absolute;
  top: 45px;
  left: 8px;
  z-index: 3;
  width: 13px;
  height: 13px;
  border: 3px solid var(--news-red);
  border-radius: 50%;
  background: #fff;
  content: "";
}

.live-update::after {
  position: absolute;
  top: 58px;
  bottom: -1px;
  left: 14px;
  z-index: 0;
  width: 1px;
  background: var(--news-line);
  content: "";
}

/* O conteúdo fica sobre o eixo; assim a linha desaparece sob as fotografias. */
.live-update > * {
  position: relative;
  z-index: 1;
}

.live-update > .tk-foto,
.live-update > .tk-dupla,
.live-update > .editorial-media,
.live-update > .editorial-media-grid {
  z-index: 2;
  background: var(--news-paper);
}

.live-update:last-of-type::after {
  display: none;
}

.live-update__time {
  display: block;
  margin-bottom: 8px;
  color: var(--news-red);
  font: 800 12px/1.2 "Open Sans", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.live-update h2 {
  margin: 0 0 16px;
  color: #247da0;
  font: 900 clamp(22px, 3vw, 31px)/1.12 "Raleway", sans-serif;
}

.live-update h3 {
  margin: 28px 0 16px;
  color: #071b34;
  font: 900 clamp(20px, 2.6vw, 27px)/1.15 "Raleway", sans-serif;
}

.live-update p {
  margin: 0 0 16px;
  color: #12263f;
  font: 400 18px/1.72 "Open Sans", sans-serif;
}

.live-update p:last-child {
  margin-bottom: 0;
}

.live-update__source {
  color: var(--news-muted);
  font-size: 14px !important;
}

.live-update__media {
  width: calc(100% + 84px);
  margin: 34px 0 4px -42px;
}

.live-update__media a,
.live-update__media img {
  display: block;
  width: 100%;
}

.live-update__media img {
  height: auto;
}

.live-update__media figcaption {
  padding: 10px 0 0 42px;
  color: var(--news-muted);
  font: 400 13px/1.5 "Open Sans", sans-serif;
}

.live-update .editorial-media,
.live-update .editorial-media-grid {
  --editorial-caption: var(--news-muted);
}

.live-update .editorial-media--wide:not(.full),
.live-update .tk-foto:not(.full) {
  max-width: calc(100vw - 28px);
}

.live-update > blockquote {
  margin: 24px 0;
  padding: 20px 0 20px 26px;
  border: 0;
  border-left: 4px solid #a71930;
  color: #182f4c;
  background: transparent;
  text-align: left;
}

.live-update > blockquote::before,
.live-update > blockquote::after {
  display: none;
}

.live-update > blockquote p {
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.65;
}

/* ENTRE ASPAS — mesmo padrão editorial usado no Trekking. */
.live-update .tk-citacao-central {
  width: min(720px, 100%);
  max-width: 720px;
  margin: 68px auto;
  text-align: center;
}

.live-update .tk-citacao-central blockquote {
  position: relative;
  margin: 0;
  padding: 36px 28px;
  border: 0;
  color: #243752;
  background: transparent;
  text-align: center;
}

.live-update .tk-citacao-central blockquote::before {
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 1;
  display: block;
  padding: 0 10px;
  color: #db0940;
  background: var(--news-paper, #fff);
  content: "\f10d";
  font: 900 20px/1 "Font Awesome 5 Free";
  transform: translateX(-50%);
}

.live-update .tk-citacao-central blockquote::after {
  position: absolute;
  inset: 0 auto 0 50%;
  display: block;
  width: 200px;
  border-top: 2px solid #db0940;
  border-bottom: 2px solid #db0940;
  content: "";
  transform: translateX(-50%);
}

.live-update .tk-citacao-central p {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  color: #243752;
  font: italic 42px/1.25 Georgia, "Times New Roman", serif;
}

.live-update .tk-citacao-central small {
  position: relative;
  z-index: 2;
  display: block;
  color: #7f8a98;
  font: italic 12px/1.5 "Open Sans", sans-serif;
  letter-spacing: .3px;
}

/*
 * EMBEDS
 * YouTube, Vimeo, Apple Podcasts, Instagram, áudio e vídeo nativo.
 */
.live-update__embed {
  width: 100%;
  max-width: 780px;
  margin: 36px auto;
}

.live-update__embed iframe,
.live-update__embed video,
.live-update__embed audio {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

/* Vídeos responsivos em proporção 16:9. */
.live-update__embed iframe[src*="youtube.com"],
.live-update__embed iframe[src*="youtu.be"],
.live-update__embed iframe[src*="youtube-nocookie.com"],
.live-update__embed iframe[src*="vimeo.com"] {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}

/* Fallback para outros iframes não identificados. */
.live-update__embed iframe {
  min-height: 300px;
}

/* Apple Podcasts usa altura fixa. */
.live-update__embed iframe[src*="podcasts.apple.com"] {
  height: 175px;
  min-height: 175px;
  aspect-ratio: auto;
  border-radius: 10px;
}

/* Instagram controla a própria altura. */
.live-update__embed iframe[src*="instagram.com"] {
  min-height: 0;
  aspect-ratio: auto;
}

/* Players de áudio. */
.live-update__embed audio {
  min-height: 54px;
}

/*
 * Variação larga:
 * faz o vídeo acompanhar a largura editorial das fotografias.
 */
.live-update__embed--wide {
  width: calc(100% + 84px);
  max-width: none;
  margin: 36px 0 36px -42px;
}

.live-update > ul,
.live-update > ol {
  margin: 22px 0 28px;
  padding-left: 24px;
  color: var(--news-text);
  font: 400 18px/1.75 "Open Sans", sans-serif;
}

.live-update > ul li,
.live-update > ol li {
  margin-bottom: 8px;
  padding-left: 5px;
}

.live-update__embed blockquote {
  margin: 0 auto !important;
  padding: 18px 20px !important;
  border: 1px solid rgba(7, 27, 52, .12) !important;
  border-radius: 4px !important;
  color: #247da0 !important;
  background: #fff !important;
  font: italic 17px/1.55 "Open Sans", sans-serif !important;
  text-align: center !important;
}

.live-update__embed blockquote::before,
.live-update__embed blockquote::after {
  display: none !important;
}

.live-update__embed blockquote a {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.live-coverage__context {
  margin: 28px 0 0;
  padding: 20px 24px;
  border-left: 4px solid var(--news-blue);
  color: var(--news-text);
  background: rgba(7, 27, 52, .045);
  font: 600 15px/1.6 "Open Sans", sans-serif;
}

.expedition-summary {
  width: min(980px, calc(100% - 40px));
  margin: 48px auto 16px;
  padding: 30px;
  color: #fff;
  background: #071b34;
}

.expedition-summary h2 {
  margin: 0 0 12px;
  color: #fff;
  font: 800 clamp(25px, 3vw, 36px)/1.1 "Raleway", sans-serif;
}

.expedition-summary p {
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font: 400 17px/1.7 "Open Sans", sans-serif;
}

@media (max-width: 720px) {
  .live-coverage,
  .expedition-summary {
    width: min(100% - 28px, 980px);
  }

  .live-coverage {
    margin-top: 28px;
  }

  .live-coverage__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .live-update {
    padding-left: 34px;
  }

  .live-update::before {
    left: 3px;
  }

  .live-update::after {
    left: 9px;
  }

  .live-update p {
    font-size: 17px;
  }

  .live-update .tk-citacao-central {
    margin: 50px auto;
  }

  .live-update .tk-citacao-central blockquote {
    padding-inline: 8px;
  }

  .live-update .tk-citacao-central p {
    font-size: clamp(30px, 9vw, 38px);
  }

  .live-update__media {
    width: calc(100% + 68px);
    margin-left: -34px;
  }

  .live-update__media figcaption {
    padding-left: 34px;
  }

  .live-update__embed {
    margin: 30px auto;
  }

  .live-update__embed--wide {
    width: calc(100% + 68px);
    margin-left: -34px;
  }

  .expedition-summary {
    padding: 24px;
  }
}