/* SupriPrice — Arbitragem por porto (no ar desde 03/11/2026; portos.js).
   A costa de norte a sul: cada porto é uma parada da linha, com a arbitragem
   do dia num trilho comum e a média dos pontos como referência.
   Seletores com html.v2, não só .v2: linha que começa com ponto + 2 letras +
   espaço faz o detector de tipo do HTMLy achar que é troff e recusar o .css. */

html.v2 .portos { padding: 56px 0 24px; }
html.v2 .portos__topo {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 32px; margin-bottom: 28px;
}
html.v2 .portos__titulo { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.1; color: var(--asfalto); letter-spacing: -.01em; }
html.v2 .portos__resumo { margin: 10px 0 0; max-width: 60ch; color: var(--tinta); font-size: 1.05rem; line-height: 1.5; }
html.v2 .portos__resumo strong { color: var(--asfalto); }
html.v2 .portos__exemplo {
  display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px;
  background: #FFF4DC; color: var(--placa-esc); font-size: .82rem; font-weight: 600;
}

/* Escolha do produto: as duas placas de risco, como nos cartões do topo. */
html.v2 .portos__produtos { display: flex; gap: 8px; }
html.v2 .portos__produto {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px;
  border: 1px solid var(--fio); border-radius: 4px; background: var(--papel);
  font: inherit; font-weight: 700; color: var(--grafite); cursor: pointer;
}
html.v2 .portos__produto[aria-pressed="true"] { border-color: var(--asfalto); color: var(--asfalto); box-shadow: inset 0 -3px 0 var(--placa); }
html.v2 .portos__produto:focus-visible { outline: 3px solid var(--placa); outline-offset: 2px; }
html.v2 .placa-mini {
  display: inline-grid; grid-template-rows: 1fr 1fr; width: 34px; border: 2px solid #111; border-radius: 2px;
  background: var(--placa); color: #111; font-size: .62rem; font-weight: 800; line-height: 1.25; text-align: center;
}
html.v2 .placa-mini span + span { border-top: 2px solid #111; }

html.v2 .portos__corpo { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }

/* ---------- a linha da costa ---------- */
html.v2 .costa { list-style: none; margin: 0; padding: 0; position: relative; }
html.v2 .costa__eixo {
  display: grid; grid-template-columns: 36px minmax(150px, 1.1fr) minmax(0, 2fr) 92px; align-items: end;
  padding: 0 0 8px; color: var(--grafite); font-size: .8rem;
}
html.v2 .costa__eixo-trilho { position: relative; height: 18px; }
html.v2 .costa__eixo-brasil {
  position: absolute; bottom: 0; transform: translateX(-50%); white-space: nowrap;
  color: var(--asfalto); font-weight: 700;
}
html.v2 .costa__regiao {
  display: grid; grid-template-columns: 36px 1fr; align-items: center;
  padding: 18px 0 6px; color: var(--grafite); font-size: .85rem; font-weight: 600;
}
html.v2 .costa__regiao::before {
  content: ""; justify-self: center; width: 9px; height: 2px; background: var(--fio-escuro);
}
html.v2 .costa__porto { margin: 0; }
html.v2 .costa__botao {
  display: grid; grid-template-columns: 36px minmax(150px, 1.1fr) minmax(0, 2fr) 92px; align-items: center;
  width: 100%; min-height: 52px; padding: 0; border: 0; border-radius: 4px; background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
html.v2 .costa__botao:hover { background: var(--concreto); }
html.v2 .costa__botao:focus-visible { outline: 3px solid var(--placa); outline-offset: 1px; }
html.v2 .costa__botao[aria-current="true"] { background: #FFF8E8; }

/* A linha contínua passa pela coluna da esquerda de todas as linhas. */
html.v2 .costa::before {
  content: ""; position: absolute; left: 17px; top: 40px; bottom: 26px; width: 2px;
  background: var(--asfalto); transform-origin: top; transition: transform 1.1s cubic-bezier(.3,.7,.2,1);
}
html.v2 .costa.is-espera::before { transform: scaleY(0); }
html.v2 .costa__parada {
  position: relative; justify-self: center; width: 12px; height: 12px; border-radius: 50%;
  background: var(--papel); border: 2px solid var(--asfalto);
  transition: opacity .3s ease, transform .3s ease;
}
html.v2 .costa.is-espera .costa__parada { opacity: 0; transform: scale(.4); }
html.v2 [aria-current="true"] .costa__parada { width: 18px; height: 18px; background: var(--placa); border-color: #111; }

html.v2 .costa__nome { display: flex; flex-direction: column; gap: 1px; padding: 6px 12px 6px 0; }
html.v2 .costa__porto-nome { font-weight: 700; color: var(--asfalto); font-size: 1.02rem; }
html.v2 .costa__polo { color: var(--grafite); font-size: .82rem; }

html.v2 .costa__trilho { position: relative; height: 28px; }
html.v2 .costa__trilho::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--fio); }
html.v2 .costa__media { position: absolute; top: 2px; bottom: 2px; width: 0; border-left: 2px dashed var(--asfalto-2); opacity: .45; }
html.v2 .costa__haste { position: absolute; top: 50%; height: 3px; margin-top: -1px; border-radius: 2px; }
html.v2 .costa__marca {
  position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  border: 2px solid var(--papel); box-shadow: 0 0 0 1px rgba(14, 42, 71, .25);
}
html.v2 .acima .costa__haste, html.v2 .acima .costa__marca { background: var(--placa); }
html.v2 .abaixo .costa__haste, html.v2 .abaixo .costa__marca { background: var(--asfalto-2); }

html.v2 .costa__valor { text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; color: var(--asfalto); padding-right: 12px; }
html.v2 .costa__valor small { display: block; font-weight: 600; font-size: .78rem; color: var(--grafite); }

/* ---------- o porto escolhido ---------- */
html.v2 .porto-foco {
  position: sticky; top: 88px; padding: 24px; border-radius: 4px;
  background: var(--asfalto); color: var(--on-navy-2);
}
html.v2 .porto-foco__nome { margin: 0; color: #fff; font-size: 1.35rem; line-height: 1.2; }
html.v2 .porto-foco__polo { margin: 4px 0 18px; font-size: .9rem; }
html.v2 .porto-foco__valor { margin: 0; color: #fff; font-size: clamp(2.4rem, 2rem + 1.6vw, 3.1rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
html.v2 .porto-foco__valor small { font-size: .95rem; font-weight: 600; color: var(--on-navy); margin-left: 6px; }
html.v2 .porto-foco__pct { margin: 10px 0 0; color: var(--placa); font-weight: 700; }
html.v2 .porto-foco__dif { margin: 4px 0 0; }
html.v2 .porto-foco__grafico { margin-top: 20px; }
html.v2 .porto-foco__grafico svg { display: block; width: 100%; height: 72px; overflow: visible; }
html.v2 .porto-foco__legenda { margin: 6px 0 0; font-size: .8rem; color: var(--on-navy); }
html.v2 .porto-foco__outro {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--fio-escuro); font-size: .92rem;
}
html.v2 .porto-foco__outro strong { color: #fff; font-variant-numeric: tabular-nums; }

html.v2 .portos__nota { margin: 22px 0 0; max-width: 72ch; color: var(--grafite); font-size: .85rem; line-height: 1.5; }

/* ---------- aviso de novidades (a caixa base está no postos.css) ---------- */
.lancamento__rota { position: relative; height: 92px; margin: 0; background: var(--asfalto); }
.lancamento__rota svg { display: block; width: 100%; height: 100%; }
.lancamento .rota-ponto { opacity: .25; }
.lancamento .rota-ponto.is-aceso { opacity: 1; transition: opacity .25s ease; }

@media (max-width: 900px) {
  html.v2 .portos__corpo { grid-template-columns: 1fr; gap: 20px; }
  html.v2 .porto-foco { position: static; order: -1; }
}
@media (max-width: 620px) {
  html.v2 .portos { padding-top: 40px; }
  html.v2 .costa__eixo { display: none; }
  html.v2 .costa__botao { grid-template-columns: 36px minmax(0, 1fr) 84px; grid-template-rows: auto 22px; padding-bottom: 6px; }
  html.v2 .costa__nome { grid-column: 2; grid-row: 1; }
  html.v2 .costa__valor { grid-column: 3; grid-row: 1; }
  html.v2 .costa__trilho { grid-column: 2 / 4; grid-row: 2; height: 22px; margin-right: 12px; }
  html.v2 .costa__parada { grid-row: 1; }
  html.v2 .portos__produtos { width: 100%; }
  html.v2 .portos__produto { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html.v2 .costa::before, html.v2 .costa__parada, .lancamento .rota-ponto.is-aceso { transition: none; }
}

html.v2 .portos__vivo { display: inline-flex; align-items: center; gap: 8px; margin: 10px 14px 0 0; font-size: .88rem; font-weight: 700; color: var(--baixa); }
html.v2 .portos__vivo-ponto { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }


.lancamento__itens { display: grid; gap: 10px; margin-top: 14px; }
.lancamento__item {
  display: grid; gap: 2px; width: 100%; padding: 12px 14px; text-align: left; cursor: pointer;
  border: 1px solid var(--fio); border-left: 4px solid var(--placa); border-radius: 4px;
  background: var(--papel); color: var(--tinta); font: inherit; line-height: 1.45;
}
.lancamento__item strong { color: var(--asfalto); font-size: 1.05rem; }
.lancamento__item:hover { background: #FFF8E8; }
.lancamento__item:focus-visible { outline: 3px solid var(--placa); outline-offset: 2px; }
#portos { scroll-margin-top: 84px; }
