/* tokens.css */
:root {
  color-scheme: dark;
  --bbr-accent: #00ffbf;
  --bbr-accent-muted: #5cb991;
  --bbr-yellow: #ffdf1b;
  --bbr-background: #101010;
  --bbr-surface: #1e1e1e;
  --bbr-surface-dark: #1b1b1b;
  --bbr-surface-raised: #282828;
  --bbr-border: #303030;
  --bbr-text: #fff;
  --bbr-text-soft: #eee;
  --bbr-text-secondary: #ccc;
  --bbr-text-body: #bcbcbc;
  --bbr-text-muted: #aaa;
  --bbr-text-subtle: #999;
  --bbr-container-width: 1280px;
  --bbr-page-gutter: 40px;
  --bbr-header-height: 70px;
  --bbr-space-8: 8px;
  --bbr-space-12: 12px;
  --bbr-space-16: 16px;
  --bbr-space-24: 24px;
  --bbr-space-32: 32px;
  --bbr-font-ui: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI",
    Tahoma, Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Open Sans", sans-serif;
}

/* base.css */
* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bbr-background);
  color: var(--bbr-text);
  font-family: var(--bbr-font-ui);
  -webkit-font-smoothing: antialiased;
}

body > main {
  flex: 1 0 auto;
}

.bbr-text-link {
  color: var(--bbr-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.bbr-text-link:hover { color: var(--bbr-text); }
.bbr-text-link:focus-visible { outline: 2px solid var(--bbr-accent); outline-offset: 3px; }

.bbr-mast-container,
.bbr-footer-container,
.bbr-home-surface,
.bbr-page-surface {
  width: calc(100% - var(--bbr-page-gutter));
  max-width: var(--bbr-container-width);
  margin-inline: auto;
}

.bbr-crumbs {
  margin-block: 20px 24px;
  font-size: 12px;
  line-height: 18px;
}

.bbr-crumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--bbr-space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bbr-crumbs-item {
  display: flex;
  align-items: center;
  gap: var(--bbr-space-8);
  min-width: 0;
  color: #ddd;
}

.bbr-crumbs a {
  color: #a5a5a5;
  text-decoration: none;
}

.bbr-crumbs a:hover {
  color: var(--bbr-accent);
}

.bbr-crumbs a:focus-visible {
  outline: 2px solid var(--bbr-yellow);
  outline-offset: 4px;
}

.bbr-crumbs-divider {
  color: #777;
  font-size: 16px;
}

/* header.css */
.bbr-mast {
  border-top: 1px solid #376456;
  background: radial-gradient(ellipse at 50% 0%, #126047 0%, transparent 78%),
    linear-gradient(180deg, #123e32 0%, #112a23 100%);
}

.bbr-mast-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: var(--bbr-space-24);
  align-items: center;
  min-height: var(--bbr-header-height);
}

.bbr-brand {
  display: flex;
  width: fit-content;
  align-items: center;
}

.bbr-brand img {
  display: block;
  width: 100px;
  height: auto;
}

.bbr-menu {
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 2vw, 30px);
  height: var(--bbr-header-height);
}

.bbr-menu-item {
  display: flex;
  align-items: center;
  position: relative;
  color: var(--bbr-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease;
}

.bbr-menu-item-current {
  color: var(--bbr-accent);
  box-shadow: inset 0 -2px 0 var(--bbr-accent);
}

.bbr-account {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: var(--bbr-space-12);
}

.bbr-control {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgb(40 255 187 / 40%);
  border-radius: 16px;
  background: rgb(255 255 255 / 7%);
  color: var(--bbr-text);
  font-family: var(--bbr-font-ui);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 150ms ease, color 150ms ease;
}

.bbr-control-register {
  border-color: var(--bbr-yellow);
  color: var(--bbr-yellow);
}

a.bbr-menu-item:hover {
  color: var(--bbr-accent);
}

.bbr-control:hover {
  border-color: var(--bbr-accent);
  color: var(--bbr-accent);
}

.bbr-control-register:hover {
  border-color: var(--bbr-yellow);
  color: var(--bbr-yellow);
  background: rgb(255 223 27 / 10%);
}

.bbr-mast a:focus-visible,
.bbr-mast button:focus-visible {
  outline: 2px solid var(--bbr-yellow);
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .bbr-control {
    min-height: 36px;
    border-radius: 18px;
  }
}

@media (max-width: 1000px) {
  .bbr-mast-container {
    grid-template-columns: 1fr auto;
  }

  .bbr-brand,
  .bbr-account {
    min-height: 64px;
  }

  .bbr-menu {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 24px;
    height: auto;
    min-height: 48px;
  }

  .bbr-menu-item {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bbr-mast a,
  .bbr-mast button {
    transition: none;
  }
}

/* footer.css */
.bbr-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid #2b2b2b;
  background: var(--bbr-surface-dark);
  color: var(--bbr-text-subtle);
}

.bbr-footer-marks {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 18px;
  padding-top: 36px;
}

.bbr-footer-mark {
  display: block;
  width: auto;
  max-width: 100%;
  height: 28px;
  object-fit: contain;
}

.bbr-footer-mark:first-child {
  justify-self: start;
}

.bbr-footer-mark:last-child {
  justify-self: end;
  width: 24px;
  height: 24px;
}

.bbr-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 48px;
  padding-block: 18px 14px;
}

.bbr-footer-brand {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
}

.bbr-footer-brand img {
  display: block;
  width: 100px;
  height: auto;
}

.bbr-footer-description,
.bbr-footer-copyright {
  margin: 0;
  font-size: 12px;
  line-height: 20px;
}

.bbr-footer-description {
  max-width: 480px;
  margin-bottom: var(--bbr-space-8);
}

.bbr-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bbr-footer a {
  color: inherit;
  font-size: 12px;
  line-height: 20px;
  text-decoration: none;
}

.bbr-footer a:hover {
  color: #ddd;
}

.bbr-footer a:focus-visible {
  outline: 2px solid var(--bbr-yellow);
  outline-offset: 4px;
}

.bbr-footer-note {
  margin: 0;
  padding-bottom: 14px;
  font-size: 11px;
  line-height: 18px;
}

.bbr-footer-note a {
  font-size: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bbr-footer-bottom {
  border-top: 1px solid #333;
}

.bbr-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding-block: 8px;
}

.bbr-footer-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.bbr-footer-networks {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 18px;
}

.bbr-footer-networks img {
  display: block;
  width: auto;
  height: 20px;
}

@media (max-width: 800px) {
  .bbr-footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .bbr-footer-marks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .bbr-footer-mark:first-child,
  .bbr-footer-mark:last-child {
    justify-self: center;
  }

  .bbr-footer-links {
    gap: 10px 12px;
  }

  .bbr-footer-shortcuts {
    gap: 6px 14px;
  }

  .bbr-footer-networks {
    gap: var(--bbr-space-12);
  }
}

/* content.css */
/* Conteúdo editorial compartilhado entre as páginas. */
.bbr-reading-content {
  display: grid;
  gap: 28px;
  padding-bottom: 48px;
}

.bbr-reading-section,
.bbr-reading-subsection {
  min-width: 0;
  scroll-margin-top: 96px;
}

.bbr-reading-section h1,
.bbr-reading-section h2,
.bbr-reading-section h3 {
  margin: 0 0 16px;
  color: #f5f5f5;
  font-weight: 700;
}

.bbr-reading-section h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.25;
  letter-spacing: -.5px;
}

.bbr-reading-section h2 {
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.35;
}

.bbr-reading-section h3 {
  font-size: 19px;
  line-height: 1.4;
}

.bbr-reading-section > h1,
.bbr-reading-section > h2 {
  position: relative;
  isolation: isolate;
  margin: 0 0 18px;
  padding: 14px 24px 18px;
  border: 1px solid #2b4438;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 0, #00ffbf0c, transparent 70%),
    linear-gradient(100deg, #141a16, #193328 50%, #141a16);
  text-align: center;
  text-wrap: balance;
  overflow-wrap: break-word;
  letter-spacing: -.4px;
}

.bbr-reading-section > h1::before,
.bbr-reading-section > h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 76px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 0 0 4px 4px;
  background: var(--bbr-accent);
}

.bbr-reading-section > h1::after,
.bbr-reading-section > h2::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 50%;
  width: 38px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--bbr-accent), var(--bbr-yellow));
}

.bbr-reading-intro > h1 {
  padding-block: 12px 16px;
  border-color: #365a47;
  background:
    radial-gradient(ellipse at 50% 0, #00ffbf16, transparent 75%),
    linear-gradient(100deg, #141d17, #1d3e2e 50%, #141d17);
}

.bbr-reading-subsection {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #29372e;
}

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

.bbr-reading-pair > .bbr-reading-subsection {
  margin-top: 0;
}

.bbr-reading-subsection > h3 {
  position: relative;
  margin-bottom: 16px;
  padding: 8px 20px 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, transparent, #19332880, transparent);
  color: #e4f4ea;
  text-align: center;
  text-wrap: balance;
}

.bbr-reading-subsection > h3::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 28px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: var(--bbr-accent-muted);
}

.bbr-reading-section p,
.bbr-reading-list,
.bbr-reading-steps {
  margin: 0 0 14px;
  color: var(--bbr-text-body);
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.bbr-reading-section p:last-child,
.bbr-reading-list:last-child { margin-bottom: 0; }
.bbr-reading-intro > p { color: var(--bbr-text-secondary); }
.bbr-reading-section strong { color: var(--bbr-text-soft); font-weight: 600; }

.bbr-reading-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.bbr-reading-meta > p {
  margin: 0;
  padding: 5px 12px;
  border: 1px solid var(--bbr-border);
  border-radius: 6px;
  background: var(--bbr-surface-dark);
  color: var(--bbr-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.bbr-reading-section > .bbr-reading-formula {
  margin-block: 20px;
  padding: 18px 20px;
  border: 1px solid #365a47;
  border-radius: 8px;
  background: #183026;
  color: var(--bbr-accent);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

.bbr-reading-section > .bbr-reading-contact {
  margin-block: 20px;
  padding: 16px 20px;
  border: 1px solid var(--bbr-border);
  border-left: 3px solid var(--bbr-accent-muted);
  border-radius: 8px;
  background: #181e1b;
  color: var(--bbr-text-secondary);
  overflow-wrap: anywhere;
}

.bbr-reading-contact a,
.bbr-reading-list a { color: var(--bbr-accent); text-underline-offset: 3px; }
.bbr-reading-contact a:hover,
.bbr-reading-list a:hover { color: var(--bbr-text); }
.bbr-reading-contact a:focus-visible,
.bbr-reading-list a:focus-visible { outline: 2px solid var(--bbr-accent); outline-offset: 3px; }

.bbr-reading-section > .bbr-reading-note {
  margin-top: 20px;
  padding: 14px 18px;
  border-left: 3px solid var(--bbr-accent-muted);
  border-radius: 0 6px 6px 0;
  background: #19221f;
  color: #c8d7d0;
  font-size: 14px;
}

.bbr-reading-list a { overflow-wrap: anywhere; }

.bbr-reading-figure {
  width: min(100%, 900px);
  margin: 22px auto 24px;
  overflow: hidden;
  border: 1px solid #2b493c;
  border-radius: 12px;
  background: #10291f;
}

.bbr-reading-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.bbr-reading-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--bbr-border);
  border-radius: 10px;
  background: var(--bbr-surface-dark);
  scrollbar-width: thin;
  scrollbar-color: #476455 var(--bbr-surface-dark);
}

.bbr-reading-table-scroll:focus-visible,
.bbr-reading-question summary:focus-visible {
  outline: 2px solid var(--bbr-accent);
  outline-offset: 3px;
}

.bbr-reading-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  line-height: 1.65;
  color: var(--bbr-text-body);
}

.bbr-reading-table-wide { min-width: 960px; }
.bbr-reading-table th,
.bbr-reading-table td { padding: 15px 18px; vertical-align: top; }
.bbr-reading-table thead { background: #17352a; color: var(--bbr-text-soft); }
.bbr-reading-table thead th { font-weight: 600; }
.bbr-reading-table tbody th { width: 28%; color: #e1e7e3; font-weight: 500; }
.bbr-reading-table tbody tr { border-top: 1px solid var(--bbr-border); }
.bbr-reading-table tbody tr:nth-child(even) { background: #202020; }
.bbr-reading-table tbody tr:hover { background: #233128; }
.bbr-reading-table-wide tbody th { width: 20%; }

.bbr-reading-list {
  display: grid;
  gap: 12px;
  padding-left: 22px;
  margin-block: 18px;
}

.bbr-reading-list li { padding-left: 5px; }
.bbr-reading-list li::marker { color: var(--bbr-accent); }

.bbr-reading-feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
}

.bbr-reading-steps {
  display: grid;
  gap: 12px;
  padding: 0;
  margin-block: 20px;
  list-style: none;
  counter-reset: bbr-guide-step;
}

.bbr-reading-steps li {
  position: relative;
  counter-increment: bbr-guide-step;
  padding: 16px 20px 16px 66px;
  border: 1px solid var(--bbr-border);
  border-radius: 8px;
  background: var(--bbr-surface-dark);
}

.bbr-reading-steps li::before {
  content: counter(bbr-guide-step, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #183a2d;
  color: var(--bbr-accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.bbr-reading-faq-list { display: grid; gap: 10px; margin-top: 20px; }
.bbr-reading-question { border: 1px solid var(--bbr-border); border-radius: 8px; background: var(--bbr-surface-dark); }
.bbr-reading-question summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 18px 20px; cursor: pointer; list-style: none; border-radius: 8px; }
.bbr-reading-question summary::-webkit-details-marker { display: none; }
.bbr-reading-question summary::marker { content: ""; }
.bbr-reading-question summary h3 { margin: 0; font-size: 15px; line-height: 1.6; }
.bbr-reading-question summary::after { content: "+"; flex: 0 0 24px; text-align: center; color: var(--bbr-accent); font-size: 24px; line-height: 1; font-weight: 400; }
.bbr-reading-question[open] { border-color: #3d6552; }
.bbr-reading-question[open] summary::after { transform: rotate(45deg); }
.bbr-reading-question summary:hover { background: #222c26; }
.bbr-reading-answer { padding: 0 20px 20px; }
.bbr-reading-answer p { font-size: 14px; }

@media (max-width: 800px) {
  .bbr-reading-pair { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 20px; }
  .bbr-reading-feature-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .bbr-reading-content { gap: 24px; padding-bottom: 36px; }
  .bbr-reading-section > h1,
  .bbr-reading-section > h2 { padding: 12px 14px 17px; margin-bottom: 16px; border-radius: 9px; }
  .bbr-reading-intro > h1 { padding-block: 10px 14px; }
  .bbr-reading-subsection { margin-top: 20px; padding-top: 14px; }
  .bbr-reading-subsection > h3 { padding-inline: 12px; font-size: 18px; }
  .bbr-reading-figure { margin-block: 18px 20px; border-radius: 8px; }
  .bbr-reading-table th,
  .bbr-reading-table td { padding: 12px 14px; }
  .bbr-reading-steps li { padding: 14px 14px 14px 58px; }
  .bbr-reading-steps li::before { top: 17px; left: 14px; width: 28px; height: 28px; }
  .bbr-reading-question summary { gap: 12px; padding: 16px; }
  .bbr-reading-question summary h3 { font-size: 14px; }
  .bbr-reading-answer { padding: 0 16px 16px; }
}
