:root {
  --bt-green: #00743f;
  --bt-green-deep: #08402a;
  --bt-yellow: #f6c026;
  --bt-blue: #17407a;
  --bt-ink: #1c2226;
  --bt-muted: #5a666d;
  --bt-line: #d9e0e3;
  --bt-paper: #ffffff;
  --bt-wash: #f2f5f4;
  --bt-ticker: #1c2226;
  --bt-link: #0b5c9e;
  --bt-radius: 6px;
  --bt-serif: Georgia, "Times New Roman", Times, serif;
  --bt-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bt-ink: #e8edef;
    --bt-muted: #a2aeb5;
    --bt-line: #2f3a40;
    --bt-paper: #12181b;
    --bt-wash: #192024;
    --bt-link: #7fb8ee;
    --bt-green: #2fae74;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bt-wash);
  color: var(--bt-ink);
  font-family: var(--bt-sans);
  font-size: 1rem;
  line-height: 1.55;
}

a {
  color: var(--bt-link);
}

img {
  max-width: 100%;
  height: auto;
}

.bt-wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

.bt-sr,
.bt-skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.bt-skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 50;
  padding: 8px 12px;
  background: var(--bt-yellow);
  color: #111;
}

/* Top bar and masthead */
.bt-topbar {
  background: var(--bt-green-deep);
  color: #dfeee6;
  font-size: 0.8125rem;
}

.bt-topbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
}

.bt-topbar-weather {
  flex: 1 1 auto;
  color: #bcd8c9;
}

.bt-topbar-links {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bt-topbar a {
  color: #fff;
  text-decoration: none;
}

.bt-topbar a:hover {
  text-decoration: underline;
}

.bt-masthead {
  background: var(--bt-paper);
  border-bottom: 4px solid var(--bt-yellow);
}

.bt-masthead-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
}

.bt-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
}

.bt-brand-text {
  display: flex;
  flex-direction: column;
}

.bt-brand-name {
  font-family: var(--bt-serif);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--bt-green);
}

.bt-brand-tag {
  font-size: 0.8125rem;
  color: var(--bt-muted);
}

.bt-search {
  display: flex;
  gap: 6px;
}

.bt-search-input {
  width: 220px;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--bt-line);
  border-radius: var(--bt-radius);
  background: var(--bt-wash);
  color: var(--bt-ink);
  font: inherit;
}

.bt-search-go,
.bt-menu-toggle {
  padding: 8px 14px;
  border: 0;
  border-radius: var(--bt-radius);
  background: var(--bt-green);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.bt-search-go:hover,
.bt-menu-toggle:hover {
  background: var(--bt-green-deep);
}

.bt-search-wide {
  max-width: 520px;
  margin-bottom: 12px;
}

.bt-search-wide .bt-search-input {
  flex: 1 1 auto;
  width: auto;
}

.bt-menu-toggle {
  display: none;
}

.bt-nav {
  background: var(--bt-green);
}

.bt-nav-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
  list-style: none;
}

.bt-nav-link {
  display: block;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.bt-nav-link:hover,
.bt-nav-link.bt-is-active {
  background: var(--bt-green-deep);
}

/* Last-minute ticker */
.bt-ticker {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--bt-ticker);
  color: #fff;
  font-size: 0.875rem;
}

.bt-ticker-label {
  flex: none;
  padding: 7px 14px;
  background: #c62828;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.bt-ticker-track {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.bt-ticker-list {
  display: inline-flex;
  gap: 40px;
  margin: 0;
  padding: 7px 0 7px 14px;
  white-space: nowrap;
  list-style: none;
  animation: bt-scroll 90s linear infinite;
}

.bt-ticker-list:hover {
  animation-play-state: paused;
}

.bt-ticker-list a {
  color: #fff;
  text-decoration: none;
}

.bt-ticker-list a:hover {
  text-decoration: underline;
}

@keyframes bt-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* Layout */
.bt-main {
  padding-top: 24px;
  padding-bottom: 48px;
}

.bt-front {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
}

.bt-front-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bt-hero {
  margin-bottom: 8px;
}

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

.bt-section,
.bt-box {
  min-width: 0;
}

.bt-box {
  padding: 16px;
  border: 1px solid var(--bt-line);
  border-top: 3px solid var(--bt-green);
  border-radius: var(--bt-radius);
  background: var(--bt-paper);
}

.bt-box-title,
.bt-section-title {
  margin: 0 0 8px;
  font-family: var(--bt-serif);
  font-size: 1.25rem;
  line-height: 1.25;
}

.bt-section-title {
  padding-bottom: 6px;
  border-bottom: 2px solid var(--bt-green);
  font-size: 1.4rem;
}

.bt-section-title a {
  color: var(--bt-green);
  text-decoration: none;
}

.bt-section-blurb {
  margin: 0 0 12px;
  color: var(--bt-muted);
  font-size: 0.875rem;
}

.bt-band {
  margin-top: 36px;
}

/* Cards and lines */
.bt-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.bt-card-media {
  display: block;
  overflow: hidden;
  border-radius: var(--bt-radius);
}

.bt-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.bt-card-big .bt-card-title {
  font-size: 1.9rem;
}

.bt-card-title {
  margin: 4px 0 6px;
  font-family: var(--bt-serif);
  font-size: 1.25rem;
  line-height: 1.25;
}

.bt-card-title a {
  color: var(--bt-ink);
  text-decoration: none;
}

.bt-card-title a:hover,
.bt-line-title:hover {
  color: var(--bt-green);
  text-decoration: underline;
}

.bt-card-lead {
  margin: 0 0 6px;
}

.bt-kicker {
  color: var(--bt-green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bt-meta,
.bt-note {
  color: var(--bt-muted);
  font-size: 0.8125rem;
}

.bt-note {
  margin: 8px 0 0;
}

.bt-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bt-line {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--bt-line);
}

.bt-line-title {
  color: var(--bt-ink);
  font-family: var(--bt-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.bt-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.bt-ph {
  background: linear-gradient(135deg, var(--bt-green), var(--bt-blue));
}

.bt-ph-economia {
  background: linear-gradient(135deg, #7a5b00, #c99a10);
}

.bt-ph-internacional {
  background: linear-gradient(135deg, #17407a, #4a78b8);
}

.bt-ph-esportes {
  background: linear-gradient(135deg, #0a5c2e, #36a35c);
}

.bt-ph-cultura {
  background: linear-gradient(135deg, #6a2c70, #b75a9a);
}

.bt-rank {
  margin: 0;
  padding-left: 1.4rem;
}

.bt-rank-item {
  padding: 6px 0;
  border-top: 1px solid var(--bt-line);
  font-family: var(--bt-serif);
  font-weight: 700;
  line-height: 1.3;
}

.bt-rank-item:first-child {
  border-top: 0;
}

.bt-rank-item a {
  color: var(--bt-ink);
  text-decoration: none;
}

.bt-rank-item a:hover {
  text-decoration: underline;
}

.bt-more {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--bt-green);
  border-radius: var(--bt-radius);
  color: var(--bt-green);
  font-weight: 600;
  text-decoration: none;
}

.bt-more:hover {
  background: var(--bt-green);
  color: #fff;
}

/* Weather */
.bt-weather,
.bt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.bt-weather th,
.bt-weather td,
.bt-table th,
.bt-table td {
  padding: 6px 4px;
  border-top: 1px solid var(--bt-line);
  text-align: left;
  vertical-align: top;
}

.bt-weather thead th,
.bt-table thead th {
  border-top: 0;
  color: var(--bt-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.bt-num {
  white-space: nowrap;
  text-align: right;
}

/* Outlets */
.bt-outlets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.bt-outlet {
  padding: 14px;
  border: 1px solid var(--bt-line);
  border-radius: var(--bt-radius);
  background: var(--bt-paper);
}

.bt-outlet-name {
  margin: 0 0 8px;
  color: var(--bt-blue);
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bt-outlet-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bt-outlet-item {
  padding: 8px 0;
  border-top: 1px solid var(--bt-line);
}

.bt-outlet-item:first-child {
  border-top: 0;
}

.bt-outlet-link {
  font-weight: 700;
  line-height: 1.3;
}

.bt-outlet-teaser {
  margin: 4px 0 0;
  color: var(--bt-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* Videos */
.bt-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bt-strip-link {
  display: block;
  color: var(--bt-ink);
  text-decoration: none;
}

.bt-strip-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--bt-radius);
  object-fit: cover;
}

.bt-strip-title {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  line-height: 1.3;
}

.bt-strip-link:hover .bt-strip-title {
  text-decoration: underline;
}

.bt-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}

.bt-video {
  margin: 0;
}

.bt-video-player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--bt-radius);
  background: #000;
}

.bt-video-title {
  margin: 10px 0 4px;
  font-family: var(--bt-serif);
  font-size: 1.15rem;
}

.bt-video-caption p {
  margin: 0 0 4px;
}

/* Article */
.bt-crumbs {
  margin-bottom: 10px;
  color: var(--bt-muted);
  font-size: 0.8125rem;
}

.bt-page-title,
.bt-article-title {
  margin: 4px 0 8px;
  font-family: var(--bt-serif);
  font-size: 2.1rem;
  line-height: 1.2;
}

.bt-article-title {
  font-size: 2.4rem;
}

.bt-page-lead,
.bt-standfirst {
  margin: 0 0 18px;
  color: var(--bt-muted);
  font-size: 1.15rem;
  line-height: 1.45;
}

.bt-standfirst {
  color: var(--bt-ink);
  font-family: var(--bt-serif);
}

.bt-article-meta {
  margin: 0 0 16px;
}

.bt-byline {
  font-weight: 700;
}

.bt-figure {
  margin: 0 0 20px;
}

.bt-figure-img {
  display: block;
  width: 100%;
  max-height: 520px;
  border-radius: var(--bt-radius);
  object-fit: cover;
}

.bt-figure-cap {
  margin-top: 6px;
  color: var(--bt-muted);
  font-size: 0.8125rem;
}

.bt-credit {
  display: block;
  font-style: italic;
}

.bt-prose {
  max-width: 68ch;
  font-family: var(--bt-serif);
  font-size: 1.125rem;
  line-height: 1.7;
}

.bt-prose p {
  margin: 0 0 1.1em;
}

.bt-prose blockquote {
  margin: 0 0 1.1em;
  padding: 4px 0 4px 16px;
  border-left: 4px solid var(--bt-yellow);
  color: var(--bt-muted);
}

.bt-subhead {
  margin: 1.4em 0 0.5em;
  font-family: var(--bt-sans);
  font-size: 1.2rem;
}

.bt-legal {
  font-family: var(--bt-sans);
  font-size: 1rem;
}

.bt-attrib {
  max-width: 68ch;
  margin: 24px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--bt-green);
  border-radius: 0 var(--bt-radius) var(--bt-radius) 0;
  background: var(--bt-paper);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.bt-attrib p {
  margin: 0 0 6px;
}

.bt-empty {
  padding: 24px;
  border: 1px dashed var(--bt-line);
  border-radius: var(--bt-radius);
  color: var(--bt-muted);
}

/* Footer */
.bt-footer {
  background: var(--bt-green-deep);
  color: #d4e6dc;
  font-size: 0.875rem;
}

.bt-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 20px;
}

.bt-footer a {
  color: #fff;
}

.bt-footer-name {
  margin: 0 0 6px;
  font-family: var(--bt-serif);
  font-size: 1.4rem;
  font-weight: 700;
}

.bt-footer-head {
  margin: 0 0 6px;
  font-weight: 700;
  text-transform: uppercase;
}

.bt-footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bt-footer-list li {
  padding: 2px 0;
}

.bt-footer-base {
  padding-top: 12px;
  padding-bottom: 20px;
  border-top: 1px solid rgb(255 255 255 / 15%);
  color: #a9c6b8;
}

@media (max-width: 900px) {
  .bt-front {
    grid-template-columns: minmax(0, 1fr);
  }

  .bt-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bt-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bt-menu-toggle {
    display: block;
  }

  .bt-js .bt-nav:not(.bt-open) {
    display: none;
  }

  .bt-nav-list {
    flex-direction: column;
  }

  .bt-search {
    width: 100%;
  }

  .bt-search-input {
    flex: 1 1 auto;
    width: auto;
  }

  .bt-sections,
  .bt-card-grid,
  .bt-video-grid,
  .bt-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bt-brand-name {
    font-size: 1.6rem;
  }

  .bt-card-big .bt-card-title,
  .bt-article-title {
    font-size: 1.7rem;
  }

  .bt-prose {
    font-size: 1.0625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bt-ticker-list {
    flex-wrap: wrap;
    padding-left: 12px;
    white-space: normal;
    animation: none;
  }
}
