/* Dancing with SARs — layout (usa os tokens de ../css/brasa.css) */
html, body { height: 100%; }
body { overflow: hidden; }
.shell { display: grid; grid-template-columns: minmax(340px, 420px) 1fr; height: 100dvh; }
.panel { overflow-y: auto; padding: 22px 24px 40px; border-right: 1px solid var(--line); background: var(--bg-2); }
.panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.brand { text-decoration: none; font-size: 14px; color: var(--muted); }
.brand:hover { color: var(--text); }
.langlink { background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; font-family: var(--font-mono); font-size: 12px; cursor: pointer; color: var(--muted); }
.langlink:hover { color: var(--text); }
.kicker { margin: 0 0 6px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4vw, 46px); line-height: 1.05; margin: 0 0 12px; }
h1 em { color: var(--flame); }
h2 { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 26px 0 10px; }
.lede { color: var(--muted); margin: 0 0 20px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tab { text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font-size: 14px; line-height: 1.3; }
.tab small { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
.tab:hover { border-color: var(--line-strong); }
.tab[aria-selected="true"] { border-color: var(--flame); background: var(--surface-2); }
.tab:focus-visible, .dates button:focus-visible, .langlink:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.theme h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.15; margin: 22px 0 10px; }
.theme ul { margin: 0 0 12px; padding-left: 18px; color: var(--muted); font-size: 14px; }
.theme li { margin-bottom: 4px; }
.theme .gives { padding: 12px 14px; border-left: 2px solid var(--flame); background: var(--surface); border-radius: 0 8px 8px 0; font-size: 14px; }
.dates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dates button { font-family: var(--font-mono); font-size: 12px; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; }
.dates button[aria-pressed="true"] { background: var(--flame); color: #1a0d03; border-color: var(--flame); }
.dates button:hover { border-color: var(--flame); }
.status { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.cmp select { width: 100%; margin: 6px 0 14px; padding: 8px; border-radius: 8px; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); font-family: var(--font-mono); }
.cmp input[type=range] { width: 100%; accent-color: var(--flame); margin-top: 6px; }
.cmp label { display: block; font-size: 12px; color: var(--muted); }
.note { font-size: 12.5px; color: var(--faint); margin: 14px 0 0; }
.honest { color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 26px; }
.stage { position: relative; min-width: 0; }
#map { position: absolute; inset: 0; }
.legend { position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; border-radius: 8px; background: rgba(11,9,7,.82); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.maplibregl-popup-content { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; font-family: var(--font-ui); font-size: 13px; max-width: 280px; }
.maplibregl-popup-tip { display: none; }
.maplibregl-popup-content dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.maplibregl-popup-content dt { color: var(--faint); font-family: var(--font-mono); font-size: 11px; }
.maplibregl-popup-content dd { margin: 0; }
@media (max-width: 860px) {
  body { overflow: auto; }
  .shell { grid-template-columns: 1fr; height: auto; }
  .stage { order: -1; height: 52dvh; }
  .panel { border-right: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
