/* Barlow Semi Condensed: placas, estações e títulos (linhagem de sinalização viária).
   Atkinson Hyperlegible Next: texto corrido, desenhada para leitura fácil.
   Ambas sob SIL OFL 1.1; licenças em public/assets/fonts/. */
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/barlowsc-600-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/barlowsc-700-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/atkinsonnext-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* B3dev — mapa de linhas.
   O site é um diagrama de transporte: chão branco de mapa, linhas grossas com
   cor reservada por setor, estações em anel, placas em verde petróleo.
   Barlow Semi Condensed nas placas e títulos; Atkinson Hyperlegible Next no
   texto. Cor é lei: cada cor de linha pertence a um setor só, e o petróleo é
   da linha B3dev e das ações. A cor de cada linha, e o fundo claro dela
   (--tint), chegam do build como regras [data-line]. */

:root {
  color-scheme: light;
  --ground: #ffffff;
  --ground-2: #f1f5f3;
  --ink: #0c1d20;
  --ink-2: #3d5054;
  --rule: #d3ddd8;
  --rule-strong: #9fb1ab;
  --b3: #006a70;
  --b3-deep: #004c51;
  --b3-soft: #d6ebe8;
  --on-ink: #ffffff;
  --on-ink-2: #c9d6d3;
  --on-b3: #ffffff;
  --line: var(--b3);
  --on-line: #ffffff;
  --sign: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Verdana, sans-serif;
  --track: 14px;
  --dot: 28px;
  --line-y: 34px;
  --radius: 10px;
  --t-small: 0.9375rem;
  --t-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --t-lead: clamp(1.1875rem, 1.06rem + 0.55vw, 1.4375rem);
  --t-h3: clamp(1.375rem, 1.2rem + 0.75vw, 1.875rem);
  --t-h2: clamp(2.125rem, 1.45rem + 2.8vw, 3.75rem);
  --t-h1: clamp(2.875rem, 1.6rem + 5.4vw, 6rem);
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(64px, 8vw, 120px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  accent-color: var(--b3);
  scrollbar-color: var(--rule-strong) var(--ground-2);
}
[data-line="b3"] {
  --line: var(--b3);
  --on-line: var(--on-b3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--t-body);
  line-height: 1.6;
  caret-color: var(--b3);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--sign);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}
img,
svg {
  display: block;
  max-width: 100%;
}
::selection {
  background: var(--b3);
  color: var(--on-b3);
}
:focus-visible {
  outline: 3px solid var(--b3);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus {
  outline: none;
}
.b3-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.b3-icon {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
}
.b3-arrow {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.3s var(--ease);
}
.b3-wrap {
  width: 100%;
  max-width: calc(1280px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.b3-skip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 50;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--b3);
  color: var(--on-b3);
  font-family: var(--sign);
  font-weight: 700;
  transform: translateY(-200%);
}
.b3-skip:focus {
  transform: none;
}

/* Botões: placas retangulares */
.b3-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: var(--sign);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.1;
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.b3-button:hover .b3-arrow,
.b3-link:hover .b3-arrow {
  transform: translateX(4px);
}
.b3-button--primary {
  background: var(--b3);
  color: var(--on-b3);
}
.b3-button--primary:hover {
  background: var(--b3-deep);
}
.b3-button--quiet {
  border-color: var(--ink);
  background: var(--ground);
  color: var(--ink);
}
.b3-button--quiet:hover {
  background: var(--ink);
  color: var(--ground);
}
.b3-button--light {
  background: var(--ground);
  color: var(--b3-deep);
}
.b3-button--light:hover {
  background: var(--b3-soft);
}
.b3-button--outline-light {
  border-color: #ffffff;
  color: #ffffff;
}
.b3-button--outline-light:hover {
  background: #ffffff1f;
}
.b3-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--b3);
  font-family: var(--sign);
  font-size: 1.1875rem;
  font-weight: 700;
}
.b3-link:hover {
  text-decoration: underline;
}
.b3-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.b3-stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.b3-stretched:focus-visible {
  outline: none;
}
.b3-stretched:focus-visible::after {
  outline: 3px solid var(--b3);
  outline-offset: 3px;
}

/* Cabeçalho: a barra da companhia de transporte */
.b3-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 6px solid var(--b3);
  background: #ffffffeb;
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
.b3-header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}
.b3-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: var(--sign);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.b3-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.b3-brand em {
  color: var(--b3);
  font-style: normal;
}
.b3-brand--light {
  color: var(--on-ink);
}
.b3-brand--light em {
  color: var(--b3-soft);
}
.b3-nav {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-left: auto;
  align-self: stretch;
}
.b3-nav a {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 6px solid transparent;
  margin-bottom: -6px;
  color: var(--ink-2);
  font-family: var(--sign);
  font-size: 1.1875rem;
  font-weight: 600;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.b3-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--rule-strong);
}
.b3-nav a[aria-current] {
  color: var(--b3);
  border-bottom-color: var(--ink);
}
.b3-header-cta {
  min-height: 46px;
  padding: 10px 18px;
}
.b3-mobile-menu {
  display: none;
  position: relative;
}
.b3-mobile-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-family: var(--sign);
  font-size: 1.125rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.b3-mobile-menu summary::-webkit-details-marker {
  display: none;
}
.b3-mobile-menu[open] summary {
  background: var(--ink);
  color: var(--ground);
}
.b3-mobile-menu nav {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  width: min(300px, calc(100vw - 2 * var(--gutter)));
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ground);
  box-shadow: 0 18px 40px -18px #0c1d2066;
}
.b3-mobile-menu nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 6px;
  font-family: var(--sign);
  font-size: 1.1875rem;
  font-weight: 600;
}
.b3-mobile-menu nav a:hover,
.b3-mobile-menu nav a[aria-current] {
  background: var(--b3-soft);
  color: var(--b3-deep);
}

/* Seções e títulos */
.b3-section {
  position: relative;
  padding-block: var(--section);
}
.b3-section--flush {
  padding-top: 0;
}
.b3-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 64px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.b3-section-head h2 {
  font-size: var(--t-h2);
  max-width: 18ch;
}
.b3-section-intro {
  max-width: 54ch;
  color: var(--ink-2);
  font-size: var(--t-lead);
  line-height: 1.5;
}
.b3-subhead {
  margin: clamp(48px, 6vw, 72px) 0 18px;
  font-size: var(--t-h3);
}
.b3-subhead:first-child {
  margin-top: 0;
}
.b3-lead {
  max-width: 58ch;
  color: var(--ink-2);
  font-size: var(--t-lead);
  line-height: 1.5;
}

/* A linha contínua que atravessa a página, com uma estação em cada título */
@media (min-width: 1240px) {
  main {
    position: relative;
  }
  main::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(max(var(--gutter), (100% - 1280px) / 2) - 40px);
    z-index: 2;
    width: 6px;
    background: var(--b3);
    pointer-events: none;
  }
  .b3-section-head h2,
  .b3-page-intro h1 {
    position: relative;
  }
  .b3-section-head h2::before,
  .b3-page-intro h1::before {
    content: "";
    position: absolute;
    left: -51px;
    top: 0.18em;
    width: 28px;
    height: 28px;
    border: 6px solid var(--ink);
    border-radius: 50%;
    background: var(--ground);
  }
}

/* Abertura da home */
.b3-hero {
  padding-block: clamp(28px, 3.5vw, 48px) clamp(40px, 5vw, 72px);
}
.b3-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: end;
  gap: 28px 64px;
}
.b3-hero h1 {
  font-size: clamp(2.875rem, 1.5rem + 4.6vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 13ch;
}
.b3-hero .b3-lead {
  max-width: 34em;
}

/* O mapa de linhas */
.b3-network {
  --spur-x: 22px;
  position: relative;
  margin-top: clamp(24px, 3vw, 36px);
  padding: 16px 0 8px;
  border-top: 2px solid var(--ink);
}
/* A rede em lista vertical: só aparece abaixo de 1180px */
.b3-network-list .b3-row,
.b3-network-list .b3-track {
  flex-direction: column;
  width: 100%;
}
.b3-network-list .b3-row {
  padding-bottom: 26px;
}
.b3-network-list .b3-track::before {
  right: auto;
  width: 30px;
}
.b3-network-list .b3-row--trunk .b3-terminal {
  align-self: flex-start;
  margin: 18px 0 0 26px;
}
.b3-network-list .b3-row-note {
  max-width: 46ch;
  margin: 10px 0 0 70px;
  padding-left: 0;
  border-left: 0;
}
.b3-network-list .b3-line-tag {
  margin-left: 26px;
}
.b3-network-list .b3-stops {
  flex-direction: column;
  align-self: stretch;
  gap: 0;
  margin: 12px 0 0 44px;
  padding: 8px 0 18px;
}
.b3-network-list .b3-row--trunk .b3-stops {
  padding-left: 0;
}
.b3-network-list .b3-stops::before {
  content: "";
  position: absolute;
  left: calc(22px - var(--track) / 2);
  top: -12px;
  bottom: 0;
  width: var(--track);
  border-radius: 999px;
  background: var(--line);
}
.b3-network-list .b3-station {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 52px;
  padding: 6px 10px;
  text-align: left;
}
.b3-network-list .b3-station-name {
  max-width: none;
}
/* O diagrama, em telas largas */
.b3-network-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.b3-network-list {
  display: none;
}
@media (max-width: 1179px) {
  .b3-network-svg {
    display: none;
  }
  .b3-network-list {
    display: block;
  }
  /* No catálogo, abaixo disso o mapa em lista sai: cada setor já é uma linha
     com o seu trilho logo abaixo (.b3-zoom). */
  .b3-diagram-only {
    display: none;
  }
}
.b3-svg-line {
  transition: opacity 0.4s var(--ease);
}
.b3-network-svg:has(.b3-svg-line:hover) .b3-svg-line:not(:hover),
.b3-network-svg:has(.b3-svg-line:focus-within) .b3-svg-line:not(:focus-within) {
  opacity: 0.18;
}
.b3-svg-casing {
  fill: none;
  stroke: color-mix(in srgb, var(--line) 60%, #000000);
  stroke-width: 17;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.b3-svg-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.b3-svg-sweep {
  fill: none;
  stroke: #ffffff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 90 2400;
  stroke-dashoffset: 90;
  opacity: 0;
}
.b3-svg-dot {
  fill: var(--ground);
  stroke: var(--ink);
  stroke-width: 7;
  transition: fill 0.25s var(--ease);
}
.b3-network-svg a:hover .b3-svg-dot,
.b3-network-svg a:focus-visible .b3-svg-dot {
  fill: var(--line);
}
.b3-network-svg a:hover text {
  text-decoration: underline;
}
.b3-svg-name {
  fill: var(--ink);
  font-family: var(--sign);
  font-size: 20px;
  font-weight: 600;
  text-anchor: middle;
}
.b3-svg-tag {
  fill: var(--line);
}
.b3-svg-bullet {
  fill: var(--ground);
}
.b3-svg-bullet-text {
  fill: var(--ink);
  font-family: var(--sign);
  font-size: 16px;
  font-weight: 700;
  text-anchor: middle;
}
.b3-svg-tag-text {
  fill: var(--on-line);
  font-family: var(--sign);
  font-size: 19px;
  font-weight: 700;
}
.b3-svg-note {
  fill: var(--ink-2);
  font-family: var(--text);
  font-size: 15px;
}
.b3-svg-sub {
  fill: var(--ink-2);
  font-family: var(--text);
  font-size: 15px;
  text-anchor: middle;
}
.b3-svg-terminal-ring {
  fill: none;
  stroke: var(--b3);
  stroke-width: 4;
}
.b3-svg-terminal-plate {
  fill: var(--b3);
  transition: fill 0.25s var(--ease);
}
.b3-svg-terminal:hover .b3-svg-terminal-plate {
  fill: var(--b3-deep);
}
.b3-svg-terminal-icon {
  /* o símbolo do WhatsApp é cheio e herda a cor: no terminal ele é branco */
  color: #ffffff;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.b3-svg-terminal-name {
  fill: #ffffff;
  font-family: var(--sign);
  font-size: 26px;
  font-weight: 700;
}
.b3-network-svg a:hover .b3-svg-terminal-name {
  text-decoration: none;
}
.b3-svg-hub rect {
  fill: var(--ground);
  stroke: var(--ink);
  stroke-width: 8;
}
.b3-svg-hub text {
  fill: var(--ink);
  font-family: var(--sign);
  font-size: 22px;
  font-weight: 700;
  text-anchor: middle;
}
/* uma varredura de luz percorre a linha-tronco já desenhada, uma vez */
@media (prefers-reduced-motion: no-preference) {
  .b3-svg-sweep {
    animation: b3-sweep 1.8s var(--ease) 0.3s 1;
  }
}
@keyframes b3-sweep {
  0% {
    opacity: 0;
    stroke-dashoffset: 90;
  }
  12%,
  85% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    stroke-dashoffset: -880;
  }
}
.b3-hub {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sign);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}
.b3-hub-ring {
  display: inline-block;
  flex-shrink: 0;
  width: 60px;
  height: 36px;
  border: 7px solid var(--ink);
  border-radius: 999px;
  background: var(--ground);
}
.b3-hub:hover span:last-child {
  text-decoration: underline;
}
.b3-rows {
  position: relative;
  margin-top: 10px;
  padding-left: var(--spur-x);
}
.b3-row,
.b3-strip {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
}
.b3-row {
  width: 100%;
}
.b3-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
}
.b3-row--trunk .b3-track {
  flex: 1;
  width: auto;
}
.b3-row--trunk .b3-terminal {
  margin-left: auto;
}
.b3-row-note {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  max-width: 38ch;
  margin: calc(var(--line-y) - 1.1em) 0 0 clamp(16px, 3vw, 48px);
  padding-left: 18px;
  border-left: 2px solid var(--rule);
  color: var(--ink-2);
  font-size: var(--t-small);
  line-height: 1.4;
}
.b3-row {
  padding-bottom: 18px;
}
/* a linha horizontal, do ramal até a última estação */
.b3-track::before,
.b3-strip::before {
  content: "";
  position: absolute;
  left: 0;
  right: 24px;
  top: calc(var(--line-y) - var(--track) / 2);
  height: var(--track);
  border-radius: 999px;
  background: var(--line);
  box-shadow: inset 0 0 0 1px #0c1d2026;
}
/* o ramal vertical que desce da baldeação */
.b3-row::after {
  content: "";
  position: absolute;
  left: calc(var(--track) / -2);
  top: -14px;
  bottom: 0;
  width: var(--track);
  background: var(--b3);
}
.b3-row:last-child::after {
  bottom: auto;
  height: calc(var(--line-y) + 14px);
}
.b3-line-tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: 44px;
  margin: calc(var(--line-y) - 22px) 12px 0 28px;
  padding: 0 18px 0 6px;
  border-radius: 999px;
  background: var(--line);
  color: var(--on-line);
  font-family: var(--sign);
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 0 0 4px var(--ground);
}
.b3-line-tag:hover span:last-child {
  text-decoration: underline;
}
.b3-line-tag--plain {
  padding-left: 18px;
}
.b3-bullet {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sign);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 0 0 3px var(--line);
}
.b3-stops {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: clamp(4px, 2vw, 36px);
}
.b3-row--trunk .b3-stops {
  padding-left: 16px;
}
.b3-station {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 124px;
  padding: calc(var(--line-y) - var(--dot) / 2) 10px 6px;
  border-radius: 8px;
  text-align: center;
}
.b3-dot {
  display: block;
  flex-shrink: 0;
  width: var(--dot);
  height: var(--dot);
  border: 6px solid var(--ink);
  border-radius: 50%;
  background: var(--ground);
  transition:
    background-color 0.25s var(--ease),
    transform 0.3s var(--ease);
}
.b3-station-name {
  max-width: 9em;
  font-family: var(--sign);
  font-size: clamp(1.1875rem, 1.05rem + 0.4vw, 1.4375rem);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}
.b3-station-code {
  color: var(--ink-2);
  font-family: var(--sign);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
a.b3-station:hover .b3-dot,
a.b3-station:focus-visible .b3-dot {
  background: var(--line);
  transform: scale(1.18);
}
a.b3-station:hover .b3-station-name {
  text-decoration: underline;
}
.b3-station--here .b3-dot {
  width: 34px;
  height: 34px;
  margin-top: -5px;
  border-color: var(--ink);
  background: var(--line);
  box-shadow:
    0 0 0 5px var(--ground),
    0 0 0 9px var(--ink);
}
.b3-here {
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  font-family: var(--sign);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.b3-terminal {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  min-height: 72px;
  margin: calc(var(--line-y) - 36px) 0 0 20px;
  padding: 10px 26px 10px 22px;
  border-radius: var(--radius);
  background: var(--b3);
  color: var(--on-b3);
  font-family: var(--sign);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1;
  box-shadow:
    0 0 0 5px var(--ground),
    0 0 0 9px var(--b3),
    0 18px 30px -16px #0c1d2080;
  transition: background-color 0.25s var(--ease);
}
.b3-terminal:hover {
  background: var(--b3-deep);
}
.b3-terminal .b3-icon {
  width: 30px;
  height: 30px;
}
/* só a linha tocada acende */
.b3-row > * {
  transition: opacity 0.4s var(--ease);
}
@media (hover: hover) {
  .b3-network:has(.b3-row:hover) .b3-row:not(:hover) > * {
    opacity: 0.2;
  }
}
.b3-network:has(.b3-row:focus-within) .b3-row:not(:focus-within) > * {
  opacity: 0.2;
}

/* Linha de um produto (página de estação) */
.b3-strip {
  margin-top: 28px;
  padding-bottom: 8px;
}
.b3-strip::before {
  right: 0;
}
.b3-strip .b3-line-tag {
  margin-left: 0;
}
.b3-transfer {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: calc(var(--line-y) - 18px) 0 0 16px;
  padding-right: 4px;
  background: var(--ground);
  font-family: var(--sign);
  font-size: 1.0625rem;
  font-weight: 700;
  white-space: nowrap;
}
.b3-transfer .b3-hub-ring {
  width: 48px;
  height: 30px;
  border-width: 6px;
}
.b3-transfer:hover {
  text-decoration: underline;
}

/* Placas de estação (produtos em destaque e projetos): a placa de plataforma
   na cor da linha, e embaixo o logotipo, o texto e a legenda filetada */
.b3-boards {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
}
.b3-board {
  position: relative;
}
.b3-board:hover .b3-board-sign a {
  text-decoration: underline;
}
.b3-board:hover .b3-arrow {
  transform: translateX(4px);
}
.b3-board-sign {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 14px 24px;
  border-radius: 8px;
  background: var(--line);
  color: var(--on-line);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3.125rem);
  line-height: 1;
}
.b3-board-sign .b3-bullet {
  width: 40px;
  height: 40px;
  font-size: 1.375rem;
  box-shadow: none;
}
.b3-board-line {
  margin-left: auto;
  font-size: 1.125rem;
  font-weight: 600;
}
.b3-board-code {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--ground);
  font-family: var(--sign);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.b3-board-sign .b3-board-code {
  background: var(--ground);
  color: var(--ink);
}
.b3-board-body {
  display: grid;
  grid-template-columns: 136px minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px 40px;
  padding-top: 24px;
}
.b3-board-logo {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--tint);
}
.b3-board-logo img {
  width: 76%;
  height: auto;
  max-height: 96px;
  padding: 10px;
  border-radius: 8px;
  background: var(--ground);
  object-fit: contain;
}
.b3-board-text {
  display: grid;
  gap: 10px;
}
.b3-board-tagline {
  font-family: var(--sign);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.15;
}
.b3-board-summary {
  max-width: 62ch;
  color: var(--ink-2);
}
.b3-board-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--b3);
  font-family: var(--sign);
  font-size: 1.1875rem;
  font-weight: 700;
}
.b3-board-body .b3-caption {
  margin-top: 0;
}

/* Legenda filetada: cada recurso numa linha */
.b3-caption {
  margin-top: 6px;
  border-bottom: 1px solid var(--rule);
}
.b3-caption li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
  font-size: var(--t-small);
  line-height: 1.4;
}
.b3-caption li::before {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--line);
  transform: translateY(1px);
}
.b3-caption--large li {
  padding: 16px 0;
  font-family: var(--sign);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.15;
}
.b3-caption--large li::before {
  width: 16px;
  height: 16px;
}

/* Quadro de horários: um produto por linha */
.b3-timetable {
  border-bottom: 2px solid var(--ink);
}
.b3-timetable-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px 86px minmax(150px, 0.8fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 8px 20px;
  padding: 16px 12px 16px 0;
  border-top: 2px solid var(--ink);
  transition: background-color 0.25s var(--ease);
}
.b3-timetable-row:hover {
  background: var(--tint);
}
.b3-timetable-row:hover .b3-arrow {
  transform: translateX(4px);
}
.b3-timetable-logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--tint);
}
.b3-timetable-logo img {
  width: 48px;
  height: 48px;
  padding: 4px;
  border-radius: 4px;
  background: var(--ground);
  object-fit: contain;
}
.b3-timetable-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sign);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.b3-timetable-name {
  font-size: var(--t-h3);
}
.b3-timetable-text {
  color: var(--ink-2);
  font-size: var(--t-small);
  line-height: 1.45;
}

/* Sob medida: três serviços como linhas de horário largas */
.b3-services {
  border-bottom: 2px solid var(--ink);
}
.b3-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.8fr);
  grid-template-rows: auto auto;
  gap: 14px 48px;
  padding: clamp(28px, 3.5vw, 44px) 0;
  border-top: 2px solid var(--ink);
}
.b3-service h3 {
  grid-row: span 2;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: clamp(1.875rem, 1.3rem + 1.6vw, 2.875rem);
  line-height: 0.98;
  overflow-wrap: break-word;
  hyphens: auto;
}
.b3-service-icon {
  width: 44px;
  height: 44px;
  margin-top: 0.1em;
  color: var(--b3);
}
.b3-service > p {
  color: var(--ink-2);
  font-size: var(--t-lead);
  line-height: 1.5;
}
.b3-service .b3-link {
  grid-column: 2;
  align-self: start;
}
.b3-mini-line {
  grid-column: 3;
  grid-row: 1 / span 2;
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  padding-left: 32px;
}
.b3-mini-line::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 6px;
  border-radius: 999px;
  background: var(--b3);
}
.b3-mini-line li {
  position: relative;
  font-family: var(--sign);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}
.b3-mini-line li::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 0.12em;
  width: 22px;
  height: 22px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--ground);
}

/* Como trabalhamos: uma rota com cinco paradas */
.b3-route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}
.b3-route::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12%;
  top: 12px;
  height: var(--track);
  border-radius: 999px;
  background: var(--line);
}
.b3-route-stop {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
}
.b3-route-stop .b3-dot {
  width: 36px;
  height: 36px;
  border-width: 8px;
  margin-bottom: 14px;
}
.b3-route-stop .b3-hub-ring {
  margin-bottom: 14px;
}
.b3-route-stop h3 {
  font-size: var(--t-h3);
}
.b3-route-stop p {
  max-width: 30ch;
  color: var(--ink-2);
  font-size: var(--t-small);
  line-height: 1.5;
}
.b3-route--vertical {
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  max-width: 820px;
  padding-left: 64px;
}
.b3-route--vertical::before {
  left: 15px;
  right: auto;
  top: 18px;
  bottom: 18px;
  width: var(--track);
  height: auto;
}
.b3-route--vertical .b3-route-stop .b3-dot {
  position: absolute;
  left: -61px;
  top: 0;
}
.b3-route--vertical .b3-route-stop h3 {
  font-size: var(--t-h2);
}
.b3-route--vertical .b3-route-stop p {
  max-width: 60ch;
  font-size: var(--t-lead);
}

/* Terminal: a chamada final, a placa mais alta da página */
.b3-terminal-band {
  padding-block: clamp(56px, 7vw, 104px);
  background: var(--b3);
  color: var(--on-b3);
}
.b3-terminal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: end;
  gap: 32px 64px;
}
.b3-terminal-band h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: var(--t-h2);
}
.b3-terminal-band h2 .b3-hub-ring {
  border-color: var(--ground);
  background: var(--b3);
}
.b3-terminal-text {
  max-width: 48ch;
  margin-top: 18px;
  color: #e3f1ee;
  font-size: var(--t-lead);
  line-height: 1.5;
}
.b3-terminal-actions {
  display: grid;
  justify-items: start;
  gap: 12px;
}
.b3-terminal-note {
  color: #e3f1ee;
  font-size: var(--t-small);
}
.b3-terminal-note a {
  text-decoration: underline;
  white-space: nowrap;
}

/* Páginas internas */
.b3-page-intro {
  padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 56px);
}
.b3-page-intro h1 {
  font-size: var(--t-h1);
  line-height: 0.96;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.b3-page-intro .b3-lead {
  margin-top: 24px;
}
/* Zoom do mapa, no catálogo: cada setor é a sua linha, ampliada. O trilho na
   cor da linha desce da etiqueta, e cada produto é uma estação nele. */
.b3-zooms {
  display: grid;
  gap: clamp(40px, 5vw, 72px);
}
.b3-zoom {
  --rail-x: 28px;
  --rail-pad: 56px;
  position: relative;
  padding-left: var(--rail-pad);
}
.b3-zoom-head {
  position: relative;
  padding-bottom: 18px;
}
.b3-zoom-tag {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-left: calc(var(--rail-x) - var(--rail-pad) - 24px);
  padding: 9px 24px 9px 9px;
  border-radius: 999px;
  background: var(--line);
  color: var(--on-line);
  font-family: var(--sign);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 4px var(--ground);
}
.b3-zoom-for {
  max-width: 56ch;
  margin-top: 14px;
  color: var(--ink-2);
}
/* o trilho: um segmento sob a etiqueta e um por estação, sem emenda */
.b3-zoom-head::after,
.b3-zoom-stop::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: calc(var(--rail-x) - var(--rail-pad) - var(--track) / 2);
  width: var(--track);
  background: var(--line);
  box-shadow:
    inset 1px 0 0 #0c1d2026,
    inset -1px 0 0 #0c1d2026;
}
.b3-zoom-head::after {
  top: 24px;
  bottom: 0;
}
.b3-zoom-stop::after {
  top: -2px;
  bottom: 0;
}
.b3-zoom-stop:last-child::after {
  bottom: calc(50% - var(--track) / 2);
  border-radius: 0 0 999px 999px;
}
.b3-zoom-stops {
  border-bottom: 2px solid var(--ink);
}
.b3-zoom-stop {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(170px, 0.8fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 8px 20px;
  padding: 16px 12px 16px 0;
  border-top: 2px solid var(--ink);
  transition: background-color 0.25s var(--ease);
}
.b3-zoom-stop::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: calc(var(--rail-x) - var(--rail-pad) - var(--dot) / 2);
  top: calc(50% - var(--dot) / 2);
  width: var(--dot);
  height: var(--dot);
  border: 6px solid var(--ink);
  border-radius: 50%;
  background: var(--ground);
  transition:
    background-color 0.25s var(--ease),
    transform 0.3s var(--ease);
}
.b3-zoom-stop:hover {
  background: var(--tint);
}
.b3-zoom-stop:hover::before,
.b3-zoom-stop:has(.b3-stretched:focus-visible)::before {
  background: var(--line);
  transform: scale(1.18);
}
.b3-zoom-stop:hover .b3-arrow {
  transform: translateX(4px);
}
.b3-zoom-logo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: var(--tint);
}
.b3-zoom-logo img {
  width: 56px;
  height: 56px;
  padding: 4px;
  border-radius: 4px;
  background: var(--ground);
  object-fit: contain;
}
.b3-zoom-title {
  display: grid;
  gap: 4px;
}
.b3-zoom-name {
  font-size: var(--t-h3);
}
.b3-zoom-kind {
  color: var(--ink-2);
  font-family: var(--sign);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.b3-zoom-text {
  color: var(--ink-2);
  font-size: var(--t-small);
  line-height: 1.45;
}
.b3-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px 72px;
}
.b3-story h2 {
  font-size: var(--t-h2);
}
.b3-story-copy {
  display: grid;
  gap: 18px;
  color: var(--ink-2);
  font-size: var(--t-lead);
  line-height: 1.5;
}

/* Página de estação */
.b3-station-page {
  padding-block: clamp(16px, 2.5vw, 28px) clamp(40px, 5vw, 64px);
}
.b3-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--ink-2);
  font-family: var(--sign);
  font-size: 1.0625rem;
  font-weight: 600;
}
.b3-breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--rule-strong);
}
.b3-breadcrumb a {
  display: inline-block;
  padding: 8px 0;
}
.b3-breadcrumb a:hover {
  color: var(--b3);
  text-decoration: underline;
}
.b3-breadcrumb [aria-current] {
  color: var(--ink);
}
.b3-nameboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 48px;
  margin-top: 12px;
  padding: clamp(24px, 4vw, 44px);
  border-top: 14px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--b3);
  color: var(--on-b3);
}
.b3-nameboard h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-size: clamp(3.25rem, 2rem + 6vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
}
.b3-nameboard h1 .b3-bullet {
  width: clamp(48px, 3vw + 30px, 72px);
  height: clamp(48px, 3vw + 30px, 72px);
  font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem);
  letter-spacing: 0;
  box-shadow: inset 0 0 0 6px var(--line);
}
.b3-nameboard h1 .b3-board-code {
  align-self: center;
  background: var(--ground);
  color: var(--ink);
  font-size: clamp(1rem, 0.8rem + 0.6vw, 1.375rem);
  letter-spacing: 0.08em;
}
.b3-nameboard-tagline {
  margin-top: 18px;
  color: #e3f1ee;
  font-family: var(--sign);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.15;
}
.b3-nameboard-plate {
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--tint);
}
.b3-nameboard-plate img {
  width: 200px;
  height: 170px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--ground);
  object-fit: contain;
}
.b3-station-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px 64px;
  margin-top: clamp(28px, 4vw, 48px);
}
.b3-station-intro .b3-actions {
  margin-top: 0;
}
.b3-story-jump {
  flex-basis: 100%;
}
.b3-station-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  gap: 40px 72px;
}
.b3-station-body h2 {
  margin-bottom: 20px;
  font-size: var(--t-h2);
}
.b3-facts-table {
  border-top: 2px solid var(--ink);
}
.b3-facts-table div {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.b3-facts-table dt {
  font-family: var(--sign);
  font-size: 1.0625rem;
  font-weight: 700;
}
.b3-facts-table dd {
  color: var(--ink-2);
  text-wrap: pretty;
}
.b3-facts-table dd a {
  color: var(--b3);
  font-weight: 700;
  text-decoration: underline;
}
.b3-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.b3-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sign);
  font-size: 1.0625rem;
  font-weight: 700;
}
.b3-social-link:hover {
  background: var(--ink);
  color: var(--ground);
}

/* Na prática (rotinas documentadas) */
.b3-use-case {
  border-top: 2px solid var(--ink);
}

.b3-use-case-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 32px 72px;
}
.b3-use-case-drawing {
  width: 220px;
  height: auto;
  margin-bottom: 20px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--ink);
}
.b3-use-case-mark {
  stroke: var(--b3);
}
.b3-use-case-intro h2 {
  font-size: var(--t-h2);
}
.b3-use-case-intro p {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: var(--t-lead);
  line-height: 1.5;
}
.b3-use-case-steps {
  border-bottom: 2px solid var(--ink);
}
.b3-use-case-steps li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 2px solid var(--ink);
}
.b3-use-case-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--b3);
  color: var(--on-b3);
  font-family: var(--sign);
  font-size: 1.125rem;
  font-weight: 700;
}
.b3-use-case-steps h3 {
  font-size: var(--t-h3);
}
.b3-use-case-steps p {
  margin-top: 6px;
  color: var(--ink-2);
}
.b3-use-case-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--b3);
  font-family: var(--sign);
  font-size: 1.1875rem;
  font-weight: 700;
}
.b3-use-case-source:hover {
  text-decoration: underline;
}

/* Contato: o quadro de partidas, com canais e assuntos */
.b3-departures {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  color: var(--on-ink-2);
}
.b3-departures thead th {
  padding: 14px 24px;
  border-bottom: 2px solid #ffffff33;
  color: var(--b3-soft);
  font-family: var(--sign);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}
.b3-departures tbody th,
.b3-departures td {
  padding: 20px 24px;
  border-top: 1px solid #ffffff1f;
  text-align: left;
  vertical-align: middle;
}
.b3-departures tbody th {
  color: var(--on-ink);
  font-family: var(--sign);
  font-size: var(--t-h3);
  font-weight: 700;
  line-height: 1.1;
}
.b3-departure-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--b3);
  color: var(--on-b3);
  font-family: var(--sign);
  font-size: 1.125rem;
  font-weight: 700;
  white-space: nowrap;
}
.b3-departure-go:hover {
  background: var(--ground);
  color: var(--b3-deep);
}
.b3-departures .b3-departures-group th {
  padding: 22px 24px 10px;
  border-top: 2px solid #ffffff33;
  color: var(--b3-soft);
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.b3-departures tbody:first-of-type .b3-departures-group th {
  border-top: 0;
}
.b3-departures tbody th .b3-departure-icon {
  display: inline-block;
  width: 26px;
  height: 26px;
  margin: 0 12px -4px 0;
  color: var(--b3-soft);
}
.b3-departure-value {
  display: block;
  margin-bottom: 2px;
  color: var(--on-ink);
  font-family: var(--sign);
  font-size: var(--t-h3);
  font-weight: 700;
  line-height: 1.1;
}
.b3-departures-main th,
.b3-departures-main .b3-departure-value {
  font-size: var(--t-h2);
}
.b3-departures-main .b3-departure-go {
  min-height: 56px;
  padding: 12px 22px;
  background: var(--ground);
  color: var(--b3-deep);
  font-size: 1.3125rem;
}
.b3-departures-main .b3-departure-go:hover {
  background: var(--b3-soft);
}
.b3-departure-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px 16px;
  white-space: nowrap;
}
.b3-departure-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-ink);
  font-family: var(--sign);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--b3-soft);
}

/* Rodapé: a legenda do mapa */
.b3-footer {
  padding-block: clamp(56px, 7vw, 88px) 28px;
  background: var(--ink);
  color: var(--on-ink-2);
}
.b3-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 0.8fr);
  gap: 48px;
}
.b3-footer-brand {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 20px;
}
.b3-footer-brand p {
  color: var(--on-ink);
  font-family: var(--sign);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.15;
}
.b3-footer-title {
  margin-bottom: 14px;
  color: var(--b3-soft);
  font-family: var(--sign);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.b3-legend li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 0 12px;
  padding: 4px 0;
  border-top: 1px solid #ffffff1f;
}
.b3-legend .b3-bullet {
  grid-row: span 2;
  background: var(--line);
  color: var(--on-line);
  box-shadow: none;
}
.b3-legend-line {
  color: var(--on-ink);
  font-family: var(--sign);
  font-size: 1.125rem;
  font-weight: 700;
}
.b3-legend-stations {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  font-size: var(--t-small);
}
.b3-footer a:hover {
  color: var(--on-ink);
  text-decoration: underline;
}
.b3-footer-col ul + .b3-footer-title {
  margin-top: 28px;
}
.b3-footer-col li {
  font-size: var(--t-small);
}
.b3-footer-col a,
.b3-legend-stations a,
.b3-legend-line,
.b3-footer-socials a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.b3-footer-col li:not(:has(a)) {
  padding-block: 10px;
}
.b3-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.b3-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid #ffffff26;
  font-size: var(--t-small);
}
.b3-footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.b3-arrow--up {
  transform: rotate(-45deg);
}

/* Responsivo */
@media (max-width: 1100px) {
  .b3-nav a {
    padding-inline: 8px;
    font-size: 1.0625rem;
  }
  .b3-route {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .b3-route::before {
    display: none;
  }
  .b3-route--vertical::before {
    display: block;
  }
  .b3-footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .b3-footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 960px) {
  .b3-nav,
  .b3-header-cta {
    display: none;
  }
  .b3-mobile-menu {
    display: block;
    margin-left: auto;
  }
  .b3-hero-top,
  .b3-section-head,
  .b3-terminal-grid,
  .b3-story,
  .b3-station-intro,
  .b3-station-body,
  .b3-use-case-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .b3-service {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .b3-service h3 {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .b3-service > p,
  .b3-service .b3-link {
    grid-column: 1;
  }
  .b3-mini-line {
    grid-column: 2;
    grid-row: 2 / span 2;
  }
  .b3-timetable-row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }
  .b3-timetable-logo {
    grid-row: span 3;
  }
  .b3-timetable-code,
  .b3-timetable-name,
  .b3-timetable-text {
    grid-column: 2;
  }
  .b3-timetable-row > .b3-arrow {
    grid-column: 3;
    grid-row: 1 / span 3;
  }
  .b3-zoom-stop {
    grid-template-columns: 72px minmax(0, 1fr) auto;
  }
  .b3-zoom-logo {
    grid-row: span 2;
  }
  .b3-zoom-title,
  .b3-zoom-text {
    grid-column: 2;
  }
  .b3-zoom-stop > .b3-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}
/* A linha do produto vira vertical no celular */
@media (max-width: 860px) {
  .b3-strip {
    flex-direction: column;
    width: 100%;
  }
  .b3-strip::before {
    display: none;
  }
  .b3-strip .b3-stops {
    flex-direction: column;
    align-self: stretch;
    gap: 0;
    margin: 12px 0 0 18px;
    padding: 6px 0 18px;
  }
  .b3-strip .b3-stops::before {
    content: "";
    position: absolute;
    left: calc(22px - var(--track) / 2);
    top: -12px;
    bottom: 0;
    width: var(--track);
    border-radius: 999px;
    background: var(--line);
  }
  .b3-strip .b3-station {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 52px;
    padding: 6px 10px;
    text-align: left;
  }
  .b3-strip .b3-station-name {
    max-width: none;
  }
  .b3-station--here .b3-dot {
    margin-top: 0;
    margin-left: -5px;
  }
  .b3-here {
    margin-top: 0;
  }
  .b3-transfer {
    margin: 6px 0 0;
  }
  .b3-board-body {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .b3-board-body .b3-caption {
    grid-column: 1 / -1;
  }
  .b3-nameboard {
    grid-template-columns: minmax(0, 1fr);
  }
  .b3-nameboard-plate {
    order: -1;
  }
  .b3-nameboard-plate img {
    width: 150px;
    height: 128px;
    padding: 14px;
  }
}
@media (max-width: 640px) {
  .b3-header-inner {
    min-height: 64px;
  }
  .b3-brand {
    font-size: 1.625rem;
  }
  .b3-brand img {
    width: 32px;
    height: 32px;
  }
  .b3-actions .b3-button,
  .b3-terminal-actions,
  .b3-terminal-actions .b3-button {
    width: 100%;
  }
  .b3-zoom {
    --rail-x: 20px;
    --rail-pad: 44px;
  }
  .b3-zoom-tag {
    font-size: 1.375rem;
  }
  .b3-zoom-stop {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 6px 14px;
  }
  .b3-zoom-logo {
    width: 64px;
    height: 64px;
  }
  .b3-zoom-logo img {
    width: 48px;
    height: 48px;
  }
  .b3-service {
    grid-template-columns: minmax(0, 1fr);
  }
  .b3-mini-line,
  .b3-service > p,
  .b3-service .b3-link {
    grid-column: 1;
    grid-row: auto;
  }
  .b3-route {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 56px;
    gap: 28px;
  }
  .b3-route::before {
    display: block;
    left: 12px;
    right: auto;
    top: 18px;
    bottom: 18px;
    width: var(--track);
    height: auto;
  }
  .b3-route-stop .b3-dot,
  .b3-route-stop .b3-hub-ring {
    position: absolute;
    left: -56px;
    top: 0;
    margin: 0;
  }
  .b3-route-stop .b3-hub-ring {
    left: -58px;
    width: 44px;
    height: 28px;
    border-width: 6px;
  }
  .b3-route--vertical {
    padding-left: 56px;
  }
  .b3-route--vertical .b3-route-stop .b3-dot {
    left: -56px;
  }
  .b3-departures thead {
    display: none;
  }
  .b3-departures,
  .b3-departures tbody,
  .b3-departures tr,
  .b3-departures th,
  .b3-departures td {
    display: block;
  }
  .b3-departures tr {
    padding: 18px 20px;
    border-top: 1px solid #ffffff1f;
  }
  .b3-departures tbody th,
  .b3-departures td {
    padding: 4px 0;
    border: 0;
  }
  .b3-departure-go {
    margin-top: 10px;
  }
  .b3-departures tr.b3-departures-group {
    padding: 22px 20px 6px;
  }
  .b3-departures .b3-departures-group th {
    padding: 0;
  }
  .b3-departure-links {
    flex-wrap: wrap;
  }
  .b3-footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .b3-header,
  .b3-mobile-menu,
  .b3-terminal-band,
  .b3-skip {
    display: none;
  }
  .b3-footer {
    background: none;
    color: var(--ink);
  }
}

/* Cores das linhas (src/data/site.js) */
[data-line="saude"]{--line:#c8302b;--on-line:#ffffff;--tint:color-mix(in srgb,#c8302b 12%,#ffffff)}
[data-line="educacao"]{--line:#f2b705;--on-line:#0c1d20;--tint:color-mix(in srgb,#f2b705 12%,#ffffff)}
[data-line="juridico"]{--line:#2858a6;--on-line:#ffffff;--tint:color-mix(in srgb,#2858a6 12%,#ffffff)}
[data-line="construcao"]{--line:#e0701f;--on-line:#0c1d20;--tint:color-mix(in srgb,#e0701f 12%,#ffffff)}
[data-line="negocios"]{--line:#7247a5;--on-line:#ffffff;--tint:color-mix(in srgb,#7247a5 12%,#ffffff)}
[data-line="institucional"]{--line:#5d6b77;--on-line:#ffffff;--tint:color-mix(in srgb,#5d6b77 12%,#ffffff)}
