* { box-sizing: border-box; }
:root { font: 17px/1.5 "Segoe UI",system-ui,sans-serif; color: #172c24; background: #f4f5ee; }
body { margin: 0; }
header { background: #173b2d; color: white; border-bottom: 5px solid #d4eb61; }
header div, main { max-width: 74rem; margin: auto; padding: 1rem clamp(1rem,4vw,3rem); }
header strong { font-size: 1.35rem; letter-spacing: .12em; }
header span { margin-left: 1rem; }
h1,h2,h3,p { overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem,6vw,3rem); margin: .5em 0; }
h2,h3 { margin: 0 0 .6rem; line-height: 1.2; }
section,details { background: white; border: 1px solid #bac7b9; border-radius: .6rem; padding: clamp(.8rem,2vw,1.4rem); margin: 1rem 0; }
summary { cursor: pointer; font-weight: 700; padding: .4rem; }
form, nav, .actions { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; margin: .8rem 0; }
label { display: grid; flex: 1 1 10rem; gap: .25rem; font-weight: 600; }
input,select,button { font: inherit; color: inherit; border: 1px solid #67806f; border-radius: .35rem; padding: .55rem .75rem; min-height: 44px; max-width: 100%; }
input,select { min-width: 0; background: white; }
button { background: #20553f; color: white; font-weight: 650; cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
a { color: #13533a; font-weight: 650; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #b84c00; outline-offset: 2px; }
#notice:not(:empty), .warning { background: #fff0c2; padding: .7rem; border-left: 4px solid #936300; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
td,th { text-align: left; padding: .6rem; border-bottom: 1px solid #d4dcd3; }
th { background: #edf2e8; white-space: nowrap; }
.map { height: clamp(280px,50vh,540px); background: #e7eee5; }
small { display: block; }
article { padding: .8rem 0; border-top: 1px solid #ccd6cd; }
@media(max-width:540px) { form > label { flex-basis: 100%; } th,td { padding: .45rem; } }
/* No celular, o ranking mostra só o essencial (posição, piloto, PCs perdidos e tempo), sem rolar para o lado. */
@media(max-width:540px) { .ranking th:nth-child(5), .ranking td:nth-child(5), .ranking th:nth-child(6), .ranking td:nth-child(6) { display: none; } .ranking th { white-space: normal; } }
