:root { font-family: system-ui, sans-serif; color: #202327; background: #f1f2f3; }
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; align-items: center; gap: .5rem; min-height: 56px; background: #26282b; color: white; padding: .375rem max(1.25rem, calc((100% - 35rem) / 2)); font-size: 1.25rem; white-space: nowrap; }
.logo-cabecalho { display: block; width: 110px; height: 44px; object-fit: contain; }
.estrada-cabecalho { display: block; width: clamp(40px, 24vw, 100px); height: 46px; object-fit: contain; margin-left: auto; min-width: 0; }
header strong { color: #ff9b45; font-size: 1rem; }
.gps-cabecalho { flex: 0 0 2.5rem; width: 2.5rem; min-height: 2.5rem; height: 2.5rem; margin: 0; padding: .45rem; border: 1px solid #555b61; background: #34383c; color: white; }
.gps-cabecalho svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gps-cabecalho[data-gps="off"] { color: #ff5b52; border-color: #ff5b52; }
.gps-cabecalho[data-gps="searching"] { color: #ffbf47; border-color: #ffbf47; }
.gps-cabecalho[data-gps="on"] { color: #55d68b; border-color: #55d68b; }
.aviso-gps { position: fixed; z-index: 5; top: 3.6rem; left: 50%; transform: translate(-50%, -.5rem); width: min(92vw, 27rem); padding: .7rem 1rem; border-radius: .75rem; background: #26282b; color: white; box-shadow: 0 .5rem 1.5rem #0003; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; text-align: center; }
.aviso-gps.visivel { opacity: 1; transform: translate(-50%, 0); }
main { max-width: 37.5rem; margin: auto; padding: 2rem 1.25rem; }
h1 { margin: 0; font-size: clamp(1.1rem, 5vw, 1.5rem); }
.subtitulo { color: #51575e; margin: .35rem 0 1.5rem; display: flex; flex-direction: column; gap: .15rem; }
#municipio { font-size: .875rem; }
.card { background: white; border: 1px solid #d9dcdf; border-top: 4px solid #e67517; border-radius: .85rem; padding: 1.25rem; }
.rotulo { margin: 0; font-weight: 650; }
output { display: block; font-size: clamp(3rem, 13vw, 5rem); font-weight: 750; font-variant-numeric: tabular-nums; }
#status { margin: .25rem 0 1.25rem; min-height: 2.5em; color: #51575e; }
#status:empty { display: none; }
dl { border-top: 1px solid #d9dcdf; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 1rem; margin: 0; }
dt { color: #51575e; font-size: .875rem; }
dd { margin: .2rem 0 0; font-weight: 650; }
button { margin-top: 1rem; min-height: 3.25rem; width: 100%; border: 0; border-radius: .65rem; background: #ff9b45; color: #202327; font: inherit; font-weight: 750; cursor: pointer; }
button:focus-visible { outline: 3px solid #202327; outline-offset: 3px; }
[hidden] { display: none !important; }
button:disabled { opacity: .55; cursor: default; }
.foto { margin-top: 1rem; }
.foto p { color: #51575e; }
.foto video, .foto img { display: block; width: 100%; max-height: 65dvh; object-fit: contain; border-radius: .65rem; background: #26282b; }
.acao { display: block; text-align: center; margin-top: 1rem; padding: .9rem; font-weight: 700; border: 1px solid #26282b; border-radius: .65rem; color: #202327; }
@font-face {
  font-family: FonteEstampa;
  src: url('./DejaVuSans.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: FonteEstampa;
  src: url('./DejaVuSans-Bold.ttf') format('truetype');
  font-weight: 700;
}

.localizacao-principal { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.localizacao-principal .rotulo { margin-bottom: .25rem; }
.km { text-align: right; }
.km output { font-size: clamp(1.5rem, 6vw, 2.25rem); color: #e67517; font-weight: 750; }
.bussoleira { display: flex; align-items: center; gap: .85rem; border-top: 1px solid #d9dcdf; margin-top: 1rem; padding-top: 1rem; }
.compass { position: relative; display: grid; place-items: center; flex: 0 0 4.25rem; width: 4.25rem; height: 4.25rem; border: 2px solid #d9dcdf; border-radius: 50%; background: #f8f8f8; }
.norte { position: absolute; top: .1rem; font-size: .65rem; font-weight: 800; color: #51575e; }
.seta-bussola { color: #e67517; font-size: 2.3rem; line-height: 1; transform-origin: 50% 55%; transition: transform .25s ease; }
.bussoleira .rotulo { font-size: .8rem; color: #51575e; }
#destino-bussola { margin: .15rem 0; font-size: 1.25rem; font-weight: 750; }
.rumo { margin: 0; color: #51575e; font-size: .8rem; }
.localizacao-principal > div:first-child { min-width: 0; }
.localizacao-principal > div:first-child output { font-size: clamp(2.25rem, 11vw, 3.25rem); }
.localizacao-principal .km output { font-size: clamp(1.35rem, 5vw, 2rem); }
.bussoleira { flex-wrap: wrap; }
.bussoleira > div:nth-child(2) { min-width: 6rem; }

@media (max-width: 420px) {
  .logo-cabecalho { width: 88px; }
  header { gap: .4rem; }
  header strong { font-size: .9rem; }
  .estrada-cabecalho { width: 48px; }
  .gps-cabecalho { flex-basis: 2.35rem; width: 2.35rem; height: 2.35rem; min-height: 2.35rem; padding: .4rem; }
}
