/* fretesmaritimo.com.br — linguagem do pátio de containers: aço galvanizado, casco azul-marinho,
   o amarelo dos guindastes como único destaque e a letra de estêncil das portas de container
   reservada para o Índice FM. Tipos: Big Shoulders (sinalização industrial) + Public Sans (texto). */
:root {
  --steel: #E8EDF0;
  --sheet: #FFFFFF;
  --hull: #0D2B45;
  --hull-2: #15406A;
  --ink-2: #4A6176;
  --ink-3: #6E8396;
  --sea: #1F6299;
  --crane: #F2B300;
  --crane-soft: #FCEBB3;
  --signal: #B93A26;
  --ok: #1D7650;
  --line: #C6D1D9;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --stencil: 'Big Shoulders Stencil Display', 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --text: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--steel); color: var(--hull); font: 400 16px/1.55 var(--text); overflow-x: hidden; }
a { color: var(--sea); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--crane); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--crane); color: var(--hull); padding: 8px 12px; z-index: 10; }
.arw { font-family: var(--text); font-weight: 500; font-size: .78em; letter-spacing: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
img, svg { max-width: 100%; }

/* ── títulos */
h1, h2, h3 { margin: 0; color: var(--hull); }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: .005em; line-height: .98; }
h1 { font-size: clamp(42px, 6.2vw, 80px); max-width: 16ch; }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font: 700 19px/1.3 var(--text); }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; margin: 18px 0 0; }

/* ── topo */
.top { background: var(--steel); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--hull); text-decoration: none; font: 700 25px/1 var(--display); letter-spacing: .01em; }
.brand b { font-weight: 800; color: var(--hull); }
.mark { width: 40px; height: 26px; flex-shrink: 0; }
.mark rect { fill: var(--hull); }
.mark path { stroke: var(--crane); stroke-width: 1.6; }
.mainnav { display: flex; gap: 2px; justify-content: center; flex-wrap: wrap; }
.mainnav a { color: var(--hull); text-decoration: none; padding: 8px 11px; font-weight: 600; font-size: 15px; border-radius: 2px; }
.mainnav a:hover { background: rgba(13, 43, 69, .07); }
.mainnav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--crane); border-radius: 0; }
.top-act { display: flex; gap: 8px; }
@media (max-width: 1020px) {
  .top-in { grid-template-columns: 1fr auto; row-gap: 8px; padding-bottom: 6px; }
  .mainnav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0; padding: 0 0 6px; scrollbar-width: none; min-width: 0; }
  .mainnav a { white-space: nowrap; }
}
@media (max-width: 460px) { .brand { font-size: 21px; } .top-act .btn-line { display: none; } }

/* ── botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px/1.2 var(--text); padding: 11px 18px; border-radius: 2px; cursor: pointer; text-decoration: none; border: 2px solid var(--hull); white-space: nowrap; }
.btn-main { background: var(--crane); color: var(--hull); border-color: var(--crane); box-shadow: inset 0 -3px 0 rgba(13, 43, 69, .18); }
.btn-main:hover { background: #FFC21A; }
.btn-line, .btn-ghost { background: transparent; color: var(--hull); }
.btn-line:hover, .btn-ghost:hover { background: rgba(13, 43, 69, .06); }
.btn-lg { font-size: 17px; padding: 15px 24px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ── estrutura */
main > * { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
main > .quote-band { max-width: none; padding-inline: 0; }
.crumbs { padding-top: 18px; font-size: 14px; color: var(--ink-2); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: '/'; margin: 0 8px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }

/* ── início: abertura */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(36px, 6vw, 80px); padding-bottom: clamp(24px, 4vw, 48px); }
.hero h1 { max-width: 12.5ch; font-size: clamp(48px, 7.4vw, 96px); line-height: .92; }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

/* o Índice FM pintado numa porta de container */
.placard { position: relative; margin: 0; color: #fff; border: 3px solid #0A2238; border-radius: 3px;
  background: repeating-linear-gradient(90deg, #123A5E 0 16px, #0E3253 16px 20px, #174571 20px 34px, #0E3253 34px 38px); }
.placard-door i { position: absolute; top: 6%; bottom: 6%; width: 5px; background: linear-gradient(90deg, #8BA0B3, #C9D4DD 45%, #6F8599); border-radius: 3px; }
.placard-door i:first-child { right: 46px; }
.placard-door i:last-child { right: 22px; }
.placard-door i::after { content: ''; position: absolute; left: -7px; top: 54%; width: 19px; height: 30px; border: 3px solid #A9B9C7; border-radius: 3px; }
.placard-in { position: relative; padding: clamp(22px, 3vw, 34px) clamp(72px, 9vw, 96px) clamp(22px, 3vw, 30px) clamp(20px, 3vw, 34px); }
.placard-code { display: flex; gap: 14px; margin: 0; font: 700 22px/1 var(--display); letter-spacing: .14em; color: rgba(255, 255, 255, .72); }
.placard-num { margin: 14px 0 0; font: 800 clamp(64px, 8.4vw, 118px)/.9 var(--stencil); color: var(--crane); letter-spacing: .01em; }
.placard-num > span { display: block; white-space: nowrap; }
.placard-num .cur { font-size: .3em; letter-spacing: .14em; color: #fff; margin-bottom: 8px; }
.placard-num small { font-size: .42em; color: #fff; letter-spacing: .04em; margin-right: .08em; vertical-align: .32em; }
.placard figcaption { margin-top: 16px; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .86); max-width: 34ch; }
.placard-facts { display: grid; grid-template-columns: repeat(4, auto); gap: 6px 22px; margin: 20px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .22); }
.placard-facts dt { font-size: 12.5px; color: rgba(255, 255, 255, .66); }
.placard-facts dd { margin: 0; font: 700 21px/1.1 var(--display); letter-spacing: .02em; }
@media (max-width: 520px) { .placard-facts { grid-template-columns: repeat(2, auto); } .placard-num { font-size: clamp(56px, 19vw, 80px); } }
@media (prefers-reduced-motion: no-preference) {
  .placard-num { animation: paint 900ms cubic-bezier(.2, .7, .2, 1) 120ms both; }
  @keyframes paint { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}

/* ── faixas da página inicial */
.band { padding-top: clamp(56px, 7vw, 96px); }
.band-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px 48px; align-items: end; margin-bottom: 24px; }
.band-head p { margin: 0; color: var(--ink-2); max-width: 56ch; }
@media (max-width: 860px) { .band-head { grid-template-columns: 1fr; } }

.tbl { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 22px; background: var(--sheet); border: 1px solid var(--line); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.tbl th { background: var(--hull); color: #fff; text-align: left; font: 600 13.5px/1.3 var(--text); padding: 11px 14px; white-space: nowrap; }
.tbl td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr:nth-child(even) td { background: #F6F8FA; }
.tbl td a { font-weight: 600; }
.manifest td:first-child, .manifest td:nth-child(2) { font-weight: 700; }
.manifest td:last-child { text-align: right; }

/* "preço do dia": o valor exato sai na cotação */
a.ask { color: var(--hull); font-weight: 700; text-decoration: none; white-space: nowrap; background: linear-gradient(transparent 58%, var(--crane-soft) 58%); padding: 0 2px; }
a.ask:hover { background: var(--crane); }

.band-quote .slip { margin-top: 4px; }
.forces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--hull); }
.force { padding: 22px 26px 4px 0; }
.force + .force { padding-left: 26px; border-left: 1px solid var(--line); }
.force-n { margin: 0 0 10px; font: 800 clamp(38px, 4vw, 52px)/1 var(--display); color: var(--hull); }
.force p:not(.force-n) { color: var(--ink-2); margin: 8px 0 0; }
@media (max-width: 860px) { .forces { grid-template-columns: 1fr; } .force, .force + .force { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); } }

.howto { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.howto li { counter-increment: step; position: relative; padding-top: 70px; }
.howto li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 52px; height: 52px; display: grid; place-items: center; background: var(--hull); color: var(--crane); font: 800 32px/1 var(--display); }
.howto li:not(:last-child)::after { content: ''; position: absolute; top: 26px; left: 64px; right: -16px; border-top: 2px dashed var(--line); }
.howto p { color: var(--ink-2); margin: 8px 0 0; }
@media (max-width: 760px) { .howto { grid-template-columns: 1fr; } .howto li:not(:last-child)::after { display: none; } }

.radar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.radar a { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--hull); text-decoration: none; }
.radar time { font-size: 13.5px; color: var(--ink-3); }
.radar strong { font: 700 24px/1.08 var(--display); }
.radar span { color: var(--ink-2); font-size: 15px; }
.radar a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 760px) { .radar { grid-template-columns: 1fr; } }

.band-who { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.band-who .who-copy p { color: var(--ink-2); max-width: 54ch; margin: 14px 0 0; }
.who-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; background: var(--sheet); border: 1px solid var(--line); }
.who-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.who-stats div:nth-child(odd) { border-right: 1px solid var(--line); }
.who-stats div:nth-last-child(-n+2) { border-bottom: 0; }
.who-stats dd { margin: 0; font: 800 clamp(44px, 5vw, 64px)/1 var(--display); }
.who-stats dt { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
@media (max-width: 860px) { .band-who { grid-template-columns: 1fr; } }

.shelves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.shelves a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 0 0; border-top: 3px solid var(--hull); color: var(--hull); text-decoration: none; }
.shelves strong { font: 800 28px/1 var(--display); }
.shelves span { color: var(--ink-2); font-size: 15px; }
.shelves em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--sea); margin-top: auto; }
.shelves a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 860px) { .shelves { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .shelves { grid-template-columns: 1fr; } }

/* ── perguntas frequentes */
.faq { border-top: 3px solid var(--hull); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 26px/1 var(--display); color: var(--sea); }
.faq details[open] summary::after { content: '−'; }
.faq-a { padding: 0 0 18px; color: var(--ink-2); line-height: 1.65; max-width: 68ch; }
.faq-a > :first-child { margin-top: 0; }
.faq-a > :last-child { margin-bottom: 0; }

/* ── páginas de conteúdo */
.doc-head { padding-top: clamp(20px, 3vw, 36px); max-width: 880px; }
.doc-head h1 { max-width: 20ch; font-size: clamp(40px, 5.6vw, 68px); }
.kicker { margin: 0 0 14px; font-weight: 600; font-size: 15px; color: var(--sea); }
.byline { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 20px 0 0; font-size: 14px; color: var(--ink-2); }
.byline a { color: var(--hull); font-weight: 600; }
.route-strip { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto auto; align-items: center; gap: 14px; margin-top: 26px; padding: 14px 16px; background: var(--sheet); border: 1px solid var(--line); border-left: 6px solid var(--hull); }
.rs-port { font-size: 13.5px; color: var(--ink-3); }
.rs-port b { display: block; font: 800 24px/1 var(--display); color: var(--hull); }
.rs-sea { height: 2px; background: repeating-linear-gradient(90deg, var(--sea) 0 8px, transparent 8px 14px); }
@media (max-width: 620px) { .route-strip { grid-template-columns: auto minmax(24px, 1fr) auto; } .route-strip .btn { grid-column: 1 / -1; } }

.doc-grid { display: grid; grid-template-columns: minmax(0, 70ch) minmax(240px, 300px); justify-content: space-between; gap: clamp(32px, 5vw, 72px); padding-top: 34px; }
@media (max-width: 1020px) { .doc-grid { grid-template-columns: minmax(0, 1fr); } .rail { order: -1; } .rail .toc { display: none; } }
.rail { align-self: start; position: sticky; top: 20px; display: grid; gap: 20px; }
@media (max-width: 1020px) { .rail { position: static; } }
.toc h2 { font: 700 14px/1.3 var(--text); color: var(--ink-2); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--hull); text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.toc a:hover { border-left-color: var(--crane); }
.rail-card { background: var(--hull); color: #fff; padding: 20px; }
.rail-k { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.rail-v { margin: 6px 0 0; font: 800 34px/1 var(--display); color: var(--crane); }
.rail-s { margin: 8px 0 16px; font-size: 14px; color: rgba(255, 255, 255, .82); }
.rail-card .btn { width: 100%; }

/* texto corrido */
.prose { font-size: 17.5px; line-height: 1.7; min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(30px, 3.2vw, 38px); margin: 56px 0 14px; scroll-margin-top: 16px; }
.prose h3 { font-size: 20px; margin: 34px 0 8px; scroll-margin-top: 16px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 24px; }
.prose li { margin: 0 0 8px; }
.prose li::marker { color: var(--sea); }
.prose strong { font-weight: 700; }
.prose .tbl { font-size: 15.5px; line-height: 1.5; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.small, .prose p.small { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

.answer { margin: 0 0 30px; padding: 18px 22px 4px; background: var(--sheet); border-left: 6px solid var(--crane); box-shadow: 0 0 0 1px var(--line); }
.answer::before { content: 'Resposta curta'; display: block; font: 700 14px/1 var(--text); color: var(--sea); margin-bottom: 10px; }
.note { margin: 6px 0 26px; padding: 16px 20px 2px; background: #DCE4EA; border-radius: 2px; }
.formula { margin: 6px 0 26px; padding: 16px 20px 2px; background: var(--sheet); border: 1.5px dashed var(--ink-3); font-variant-numeric: tabular-nums; }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 8px 0 30px; border-top: 3px solid var(--hull); }
.figures > div { padding: 14px 18px 12px 0; }
.figures > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.figures dt { font: 800 clamp(32px, 3.4vw, 44px)/1 var(--display); color: var(--hull); }
.figures dd { margin: 6px 0 0; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 520px) { .figures > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

.specs { margin: 8px 0 28px; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 6px 22px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 700; }
.specs dd { margin: 0; color: var(--ink-2); }
@media (max-width: 620px) { .specs > div { grid-template-columns: 1fr; } }

.prose ol.steps { list-style: none; counter-reset: s; padding: 0; }
.prose ol.steps > li { counter-increment: s; position: relative; padding: 2px 0 6px 54px; margin-bottom: 16px; min-height: 38px; }
.prose ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; display: grid; place-items: center; background: var(--hull); color: var(--crane); font: 800 22px/1 var(--display); }
.prose ol.warnings { list-style: none; counter-reset: w; padding: 0; border-top: 1px solid var(--line); }
.prose ol.warnings > li { counter-increment: w; position: relative; padding: 12px 0 12px 44px; margin: 0; border-bottom: 1px solid var(--line); }
.prose ol.warnings > li::before { content: counter(w); position: absolute; left: 0; top: 12px; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--signal); color: var(--signal); font: 800 17px/1 var(--display); border-radius: 50%; }
.prose ul.checks { list-style: none; padding: 0; }
.prose ul.checks > li { position: relative; padding-left: 34px; }
.prose ul.checks > li::before { content: ''; position: absolute; left: 4px; top: .42em; width: 7px; height: 13px; border: solid var(--ok); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.matrix td[data-v] { background: var(--crane-soft) !important; font-weight: 700; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0 0 18px; }
.split h3 { margin-top: 18px; }
@media (max-width: 680px) { .split { grid-template-columns: 1fr; } }
.prose blockquote { margin: 10px 0 30px; padding: 6px 0 6px 24px; border-left: 4px solid var(--crane); font-size: 19px; line-height: 1.55; }
.prose blockquote .cite { font-size: 14.5px; color: var(--ink-2); font-weight: 600; margin: 8px 0 0; }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; }
.az a { display: grid; place-items: center; width: 38px; height: 38px; background: var(--sheet); border: 1px solid var(--line); color: var(--hull); font: 800 20px/1 var(--display); text-decoration: none; }
.az a:hover { background: var(--crane); border-color: var(--crane); }
.doc-gloss .prose h2 { font-size: 46px; margin-top: 44px; padding-bottom: 6px; border-bottom: 3px solid var(--hull); }
.doc-gloss .prose h3 { scroll-margin-top: 16px; }
.faq-sec { margin-top: 56px; }
.faq-sec h2 { margin: 0 0 16px; }

/* faixa de cotação no fim das páginas */
.quote-band { margin-top: clamp(56px, 7vw, 96px); background: var(--hull); color: #fff; }
.quote-in { max-width: var(--max); margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--gutter); }
.quote-in > h2 { color: #fff; max-width: 22ch; }
.quote-in > p { color: rgba(255, 255, 255, .8); max-width: 60ch; margin: 12px 0 26px; }
.quote-in .slip { box-shadow: 8px 8px 0 var(--crane); border-color: #0A2238; }
.quote-band .results { background: var(--steel); color: var(--hull); padding: 4px 20px 12px; }

.related { padding-top: clamp(48px, 6vw, 80px); }
.related h2 { margin-bottom: 18px; }
.dir { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.dir a { display: grid; gap: 3px; padding: 15px 0; border-top: 1px solid var(--line); color: var(--hull); text-decoration: none; height: 100%; }
.dir strong { font-size: 17px; }
.dir span { color: var(--ink-2); font-size: 15px; }
.dir a:hover strong { text-decoration: underline; text-decoration-color: var(--crane); text-decoration-thickness: 3px; }
@media (max-width: 760px) { .dir { grid-template-columns: 1fr; } }

/* índices de seção */
.hub-head { padding-top: clamp(20px, 3vw, 36px); }
.hub-head h1 { max-width: 18ch; }
.hub-group { padding-top: clamp(40px, 5vw, 64px); }
.hub-group h2 { margin-bottom: 14px; }

/* ── formulário de cotação (B/L) */
.slip { background: var(--sheet); color: var(--hull); border: 2px solid var(--hull); box-shadow: 8px 8px 0 var(--hull); }
.slip-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; background: var(--hull); color: #fff; padding: 11px 16px; font: 800 22px/1.1 var(--display); letter-spacing: .01em; margin: 0; }
.slip-title span { font: 400 13.5px var(--text); color: #B9C8D6; }
.slip-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cell { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; min-width: 0; }
fieldset.cell { border-top: 0; border-left: 0; }
.cell-pol, .cell-pod { grid-column: span 3; }
.cell-mod { grid-column: span 2; }
.cell-go { grid-column: span 2; justify-content: flex-end; border-right: 0; }
.cell-label { font-size: 12.5px; color: var(--ink-2); font-weight: 600; padding: 0; }
.cell-label i { font-weight: 400; font-style: italic; color: var(--ink-3); margin-left: 4px; }
.cell select, .cell input { font: 600 18px var(--text); color: var(--hull); border: 0; background: transparent; padding: 4px 0; width: 100%; border-bottom: 1.5px dashed transparent; min-width: 0; }
.cell select:focus, .cell input:focus { outline: none; border-bottom-color: var(--sea); }
.cell:focus-within { background: #F5F8FA; }
.cell.is-invalid { background: #FBEDEA; }
.seg { display: flex; flex-direction: column; gap: 4px; }
.seg label { display: flex; gap: 8px; align-items: center; font-size: 14.5px; cursor: pointer; }
.seg input { accent-color: var(--hull); width: 16px; height: 16px; }
@media (max-width: 860px) {
  .slip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell-pol, .cell-pod, .cell-mod, .cell-go { grid-column: span 2; }
}
.route-line { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 16px 14px; border-top: 1px solid var(--line); }
.route-line span { font: 800 22px var(--display); letter-spacing: .04em; }
.route-line svg { width: 100%; height: 20px; }
.route-line path { fill: none; stroke: var(--sea); stroke-width: 2; stroke-dasharray: 6 6; }
.route-line.is-moving path { animation: sail 900ms ease-out; }
@keyframes sail { from { stroke-dashoffset: 120; opacity: .2; } to { stroke-dashoffset: 0; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .route-line.is-moving path { animation: none; } }
.form-msg { margin: 0; padding: 0 16px; color: var(--signal); font-weight: 600; font-size: 14.5px; }
.form-msg:empty { display: none; }
.slip .form-msg { padding: 0 16px 12px; }
.form-msg.ok { color: var(--ok); }

/* resultados = manifesto de ofertas */
.results { margin: 36px 0 8px; }
.results:empty { display: none; }
.res-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 3px solid var(--hull); padding-bottom: 10px; }
.res-head h2 { font-size: clamp(24px, 2.8vw, 32px); }
.res-head p { margin: 0; color: var(--ink-2); font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.filters button { font: 600 14px var(--text); border: 1.5px solid var(--hull); background: transparent; color: var(--hull); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--hull); color: #fff; }
.offer { border-bottom: 1px solid var(--line); }
.offer-row { display: grid; grid-template-columns: minmax(180px, 1.5fr) repeat(2, minmax(90px, .7fr)) minmax(150px, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; }
.offer-carrier strong { display: block; font-size: 17px; }
.offer-carrier span { font-size: 14px; color: var(--ink-2); }
.k { display: block; font-size: 12.5px; color: var(--ink-2); }
.v { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.offer-total .v { font: 800 30px/1.05 var(--display); }
.offer-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.offer-actions .btn { padding: 9px 14px; font-size: 14.5px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 2px; background: #DFE7EE; color: var(--hull); }
.tag-CHEAPEST { background: var(--crane); }
.tag-FASTEST { background: var(--hull); color: #fff; }
.tag-BEST_VALUE { background: #CFE1F2; }
.tag-DEMURRAGE_SAFE { background: #D8EEE2; color: var(--ok); }
.offer-detail { padding: 0 0 18px; }
.offer-detail table { width: 100%; max-width: 720px; border-collapse: collapse; font-size: 14.5px; }
.offer-detail td { padding: 6px 0; border-bottom: 1px dotted var(--line); }
.offer-detail td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.offer-detail .grp td { font-weight: 700; padding-top: 12px; border-bottom: 1px solid var(--hull); }
.offer-detail p { color: var(--ink-2); margin: 12px 0 0; max-width: 64ch; }
@media (max-width: 860px) {
  .offer-row { grid-template-columns: 1fr 1fr; }
  .offer-carrier, .offer-actions { grid-column: span 2; }
  .offer-actions { justify-content: flex-start; }
}
.empty-res { padding: 24px 0; color: var(--ink-2); }
.results .note { background: none; padding: 0; margin-top: 14px; font-size: 14.5px; color: var(--ink-2); }

/* ── simulador de impostos */
.tool { padding-bottom: 8px; }
.sim-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; background: var(--sheet); border: 2px solid var(--hull); }
.sim-form label { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.sim-form label.wide { grid-column: 1 / -1; }
.sim-form input, .sim-form select { font: 600 18px var(--text); color: var(--hull); border: 0; background: transparent; padding: 4px 0; min-width: 0; width: 100%; }
.sim-form input:focus, .sim-form select:focus { outline: none; }
.sim-form label:focus-within { background: #F5F8FA; }
.sim-form small { font-weight: 400; color: var(--ink-2); }
@media (max-width: 760px) { .sim-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sim-form { grid-template-columns: 1fr; } }
.sim-out { margin-top: 28px; min-height: 160px; transition: opacity .15s; }
.sim-out.busy { opacity: .5; }
.sim-total { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; border-bottom: 3px solid var(--hull); padding-bottom: 12px; }
.sim-total .v { font: 800 clamp(36px, 5vw, 56px)/1 var(--display); }
.cascade { width: 100%; max-width: 760px; border-collapse: collapse; margin-top: 8px; font-size: 15.5px; }
.cascade td { padding: 9px 0; border-bottom: 1px dotted var(--line); }
.cascade td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.cascade td small { color: var(--ink-2); font-weight: 400; margin-left: 6px; display: inline-block; }
.cascade tfoot td { border-bottom: 0; border-top: 2px solid var(--hull); font-weight: 800; font-size: 18px; }
@media (max-width: 520px) { .cascade td small { display: block; margin: 2px 0 0; } }
.sim-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding: 18px 0; border-top: 1px solid var(--line); }
.sim-cta p { margin: 0; font-weight: 600; }

/* ── diálogo de proposta */
dialog.lead { border: 2px solid var(--hull); padding: 0; width: min(560px, calc(100vw - 24px)); box-shadow: 10px 10px 0 var(--crane); color: var(--hull); }
dialog.lead::backdrop { background: rgba(13, 43, 69, .6); }
.lead-form header { display: flex; justify-content: space-between; align-items: center; background: var(--hull); color: #fff; padding: 10px 16px; }
.lead-form h2 { font-size: 26px; color: #fff; }
.lead-form .x { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lead-ctx { margin: 14px 16px 0; font-size: 14.5px; color: var(--ink-2); }
.fields { display: grid; grid-template-columns: 1fr 1fr; margin: 14px 16px 0; border: 1px solid var(--line); }
.fields label { display: flex; flex-direction: column; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 8px 12px 10px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 0; }
.fields label:nth-child(1) { grid-column: 1 / -1; }
.fields input { font: 600 16px var(--text); color: var(--hull); border: 0; padding: 4px 0 0; background: transparent; min-width: 0; width: 100%; }
.fields input:focus { outline: none; }
.fields label:focus-within { background: #F5F8FA; }
.fields .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 16px 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--hull); flex-shrink: 0; }
.lead-form .form-msg { margin-top: 12px; }
.lead-form footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px; }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }

/* ── rodapé */
.foot { margin-top: clamp(56px, 8vw, 104px); background: var(--hull); color: #CBD7E2; }
.quote-band + .related + .foot, .quote-band + .foot { margin-top: 0; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 44px var(--gutter) 10px; display: grid; grid-template-columns: 1.6fr repeat(5, minmax(0, 1fr)); gap: 28px; }
.foot h2 { font: 700 15px/1.3 var(--text); color: #fff; margin: 0 0 10px; }
.foot a { color: #E6EEF5; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 14.5px; }
.foot p { margin: 12px 0 0; font-size: 14.5px; max-width: 36ch; }
.brand-inv, .brand-inv b { color: #fff; }
.brand-inv .mark rect { fill: #fff; }
.brand-inv .mark path { stroke: var(--hull); }
.fx-ticker { font-variant-numeric: tabular-nums; color: #9FB4C7; }
.foot .foot-legal { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter) 28px; font-size: 13px; color: #93A9BD; border-top: 1px solid rgba(255, 255, 255, .12); }
@media (max-width: 1020px) { .foot-in { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-in { grid-template-columns: 1fr 1fr; } }

@media print { .top, .foot, .quote-band, .rail, .related, dialog { display: none !important; } body { background: #fff; } }
