@font-face {
  font-family: "Manrope Studio";
  src: url("../media/marca/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

/* The last chapter uses document scrolling, including when its content exceeds a short screen. */
:root {
  --mast-play-width: 150px;
  --chapter-gap: 28px;
  /* O selo de 646 × 250 determina a altura da linha que centraliza o logo. */
  --chapter-start: calc(var(--mast-top) + var(--mast-play-width) * 250 / 646 + var(--chapter-gap));
  --index-bottom: max(16px, env(safe-area-inset-bottom));
  --index-height: 46px;
  --index-gap: 12px;
}
.map {bottom: var(--index-bottom)}
.map summary {min-height: var(--index-height)}
.live #news.active .screen {position: relative; inset: auto; overflow: visible}
.bulletin {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
  padding: max(var(--chapter-start), 11svh) var(--pad) calc(var(--index-bottom) + var(--index-height) + var(--index-gap));
}
.bulletin .portal-footer {margin-top: auto}
.archive-link, .close-story, .bio-details summary {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  min-height: 44px;
  font-weight: 800;
}
.archive-link {
  align-self: flex-start;
  margin: 8px 0 14px;
  border-bottom: 1px solid currentColor;
}
.portal-footer, .bulletin .portal-footer {
  position: static;
  display: block;
  padding: 8px 0 0;
  color: #28342e;
  border-top: 1px solid #877d66;
}
.portal-footer nav {display: flex; align-items: center; flex-wrap: wrap; gap: 0 22px}
.portal-footer a {color: inherit}
.footer-brands {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0 16px;
}
.footer-brands .store-badge img {width: 122px}
@media (max-width: 600px) {
  .footer-brands {flex-direction: column; align-items: flex-start}
  .footer-brands .store-badge img {width: 108px}
}
.portal-footer .studio-signature {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  column-gap: .34em;
  color: #13262a;
  font: 700 22px/1 "Manrope Studio", sans-serif;
  letter-spacing: -.018em;
}
.studio-symbol {
  width: auto;
  height: 1.66em;
  aspect-ratio: 58.959 / 51.489;
  background: currentColor;
  mask: url("../media/marca/incisao-currentcolor.svg") center / contain no-repeat;
  -webkit-mask: url("../media/marca/incisao-currentcolor.svg") center / contain no-repeat;
}
.studio-word {color: #b85a2e; font-weight: 500}
.portal-footer p {font-size: 13px; line-height: 1.4; margin-top: 3px}
.bulletin a:focus-visible, .news-archive a:focus-visible, .story-dialog :focus-visible {
  outline: 3px solid #824225;
  outline-offset: 2px;
}

.news-archive {background: #e7ddc2; color: #28342e}
.news-archive .mast {position: sticky; inset: 0 0 auto; padding: 18px var(--pad); background: #14231f}
.news-archive main, .news-archive .portal-footer {margin-inline: var(--pad)}
.news-archive main {padding: clamp(26px,5vw,78px) 0 42px}
.news-archive h1 {font: 500 clamp(52px,7.5vw,120px)/1 var(--serif); letter-spacing: -.055em; margin: 0 0 .35em}
.news-archive .portal-footer {padding-bottom: max(20px,env(safe-area-inset-bottom))}
.news-archive [id] {scroll-margin-top: calc(46px + var(--mast-play-width) * 250 / 646)}
.dispatches article {display: block; min-width: 0; scroll-margin-top: 16px}
.dispatches article:nth-child(n) .story-card img {object-fit: contain}
.dispatches article[data-story="novidades/novas-rotas"] .story-card img {object-fit: cover}
.story-card {display: block; height: 100%}
.story-card:focus-visible h3, .story-card:hover h3, .portal-footer nav a:hover {text-decoration: underline; text-underline-offset: .15em}
.dispatches .story-full {padding: 0 clamp(10px,1.4vw,24px) 14px}
#news .story-full, .has-story-dialog .dispatches .story-full {display: none}
.news-archive .story-card {height: auto}
.bio-details summary {cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: .2em}
.bio-details summary::-webkit-details-marker {display: none}
.bio-details summary:focus-visible {outline: 2px solid currentColor; outline-offset: 2px}
.bio-details[open] {max-height: 36svh; overflow-y: auto}
html.reading-story, html.reading-story body {overflow: hidden; overscroll-behavior: none}
.story-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(900px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #887b5d;
  border-radius: 14px;
  background: #f5efdf;
  color: #28342e;
  color-scheme: light;
  overscroll-behavior: contain;
  overflow: auto;
}
.story-dialog::backdrop {background: rgb(8 20 20 / .82)}
.dialog-bar {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: end;
  padding: 6px 12px; background: #f5efdf; border-bottom: 1px solid #c8bda4;
}
.close-story {padding: 0 12px}
.dialog-body {display: grid; grid-template-columns: 1fr 1fr}
.detail-picture {display: grid; place-items: center; background: #d5c8a8}
.detail-picture img {width: 100%; height: clamp(280px,41vw,430px); object-fit: contain}
.detail-copy {align-self: center; padding: clamp(20px,3vw,44px)}
.detail-copy time {font-size: .875rem}
.detail-copy h2 {font: 500 clamp(34px,4vw,62px)/1 var(--serif); letter-spacing: -.035em; margin: 8px 0 18px}
.detail-copy p {line-height: 1.55}
.detail-play {margin-top: 16px}
.store-badge {display: inline-flex; align-items: center; max-width: 100%; vertical-align: middle}
.store-badge img {display: block; width: 165px; max-width: 100%; height: auto}
.mast .store-badge {grid-column: 3}
.mast .store-badge img {width: var(--mast-play-width)}
.hero-actions {display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; max-width: 100%}
@media (max-width: 650px) {
  .hero-actions .store-badge img {width: 145px}
}
.story-dialog [hidden] {display: none}
@media (max-width: 650px) {
  :root {--index-bottom: max(12px, env(safe-area-inset-bottom)); --index-height: 44px}
  .bulletin {padding-top: var(--chapter-start); padding-inline: 16px}
  .dispatches .story-card {display: grid; grid-template-columns: 23% 1fr; align-items: stretch}
  .dispatches .story-card img {max-height: 100px}
  .archive-link {margin: 3px 0 10px; font-size: 14px}
  .portal-footer nav {column-gap: 12px}
  .portal-footer nav a {font-size: 12px}
  .portal-footer .studio-signature {font-size: 19px}
  .portal-footer p {font-size: 11px}
  .dialog-body {grid-template-columns: 1fr}
  .detail-picture img {height: clamp(175px,31svh,300px)}
  .news-archive .mast {padding: 12px 16px}
}
@media (max-width: 650px) {
  .live[data-chapter="news"] .mast {
    inset: 0 0 auto;
    padding: max(12px,env(safe-area-inset-top)) 16px 5px 18px;
    background: #e7ddc2;
  }
}
