:root { color-scheme: light; --green: #2b8068; --ink: #18312b; --muted: #61716b; --line: #dfe8e3; --bg: #f5f8f6; }
    * { box-sizing: border-box; }
    body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
    main { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 56px; }
    header { margin-bottom: 24px; }
    h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; }
    h2 { margin: 0 0 16px; font-size: 1.1rem; }
    p { color: var(--muted); }
    .filters, .stats, .charts { display: grid; gap: 16px; }
    .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 18px; background: white; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 18px; }
    label { display: block; font-size: .85rem; font-weight: 650; margin-bottom: 6px; }
    input, select, button { font: inherit; }
    input, select { width: 100%; min-height: 40px; border: 1px solid #cbd8d1; border-radius: 8px; background: white; padding: 8px 10px; color: var(--ink); }
    .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
    .stat, .panel { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-width: 0; }
    .stat-label { color: var(--muted); font-size: .85rem; }
    .stat-value { display: block; font-size: clamp(1.15rem, 2vw, 1.65rem); font-weight: 750; overflow-wrap: anywhere; margin-top: 5px; }
    .stat-detail { color: var(--muted); font-size: .8rem; }
    .charts { grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
    .chart-wrap { position: relative; height: 320px; }
    .table-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
    .pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #e7f4ee; color: #24634f; font-size: .8rem; font-weight: 650; }
    .table-scroll { overflow-x: auto; }
    table { width: 100%; border-collapse: collapse; font-size: .9rem; }
    th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #e9efeb; white-space: nowrap; }
    th { color: var(--muted); font-size: .8rem; font-weight: 700; background: #f8faf9; }
    td.price { font-weight: 700; font-variant-numeric: tabular-nums; }
    .pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 16px; }
    .pagination label { margin: 0; }
    .pagination select { width: auto; min-width: 76px; }
    button { border: 1px solid #cbd8d1; border-radius: 8px; padding: 8px 12px; background: white; color: var(--ink); cursor: pointer; }
    button:hover:not(:disabled) { border-color: var(--green); }
    button:disabled { opacity: .45; cursor: not-allowed; }
    #status { color: var(--muted); font-size: .85rem; margin: 12px 0 0; }
    #empty { padding: 24px; text-align: center; color: var(--muted); }
    @media (max-width: 800px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .charts { grid-template-columns: 1fr; } }
    @media (max-width: 480px) { main { width: min(100% - 20px, 1200px); padding-top: 22px; } .filters { grid-template-columns: 1fr; padding: 14px; } .stat, .panel { padding: 14px; } .pagination { justify-content: flex-start; } }

header { margin-bottom: 24px; }
.tabs { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 16px; }
.tab-button[aria-selected="true"] { background:var(--green); border-color:var(--green); color:white; }
[hidden] { display:none !important; }
.seasonal-intro { margin:0 0 16px; color:var(--muted); }
.seasonal-filters { margin-bottom:18px; }
.seasonal-panel { margin-top:18px; }
.seasonal-panel p { color:var(--muted); }
.seasonal-chart-wrap { height:360px; }
footer { width:min(1200px,calc(100% - 32px)); margin:0 auto; padding:0 0 28px; color:var(--muted); font-size:12px; }
footer a { color:var(--green); }
@media(max-width:800px){ .seasonal-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:480px){ .seasonal-stats { grid-template-columns:1fr 1fr; } .seasonal-chart-wrap { height:300px; } }


/* ---------- acrescentos ---------- */
.note { margin: -8px 0 12px; font-size: .85rem; color: var(--muted); }
.chart-wrap.short { height: 250px; }
.chart-wrap[hidden], .chart-wrap.is-hidden { display: none; }
.chart-msg { margin: 8px 0 0; padding: 12px 14px; border-radius: 10px; background: #f3f7f5; color: var(--muted); font-size: .88rem; }
.coverage { margin: -4px 0 16px; padding: 10px 14px; border-radius: 10px; background: #fff8e8; border: 1px solid #f0e0b5; color: #6b5413; font-size: .88rem; }
.coverage:empty { display: none; }
.load-error { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: #fdeceb; border: 1px solid #f1c3bf; color: #8a2a22; }
.trend-panel { margin-bottom: 18px; }
.empty-state { padding: 28px 16px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; background: #fbfdfc; }
footer p { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
@media (min-width: 801px) { .seasonal-filters { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- seletor de idioma (PT / EN) ---------- */
.tabs-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.tabs-row .tabs { margin: 0; }
.lang-switch { display: inline-flex; border: 1px solid #cbd8d1; border-radius: 8px; overflow: hidden; background: white; }
.lang-switch button { border: 0; border-radius: 0; padding: 8px 14px; background: transparent; font-weight: 650; letter-spacing: .02em; }
.lang-switch button + button { border-left: 1px solid #cbd8d1; }
.lang-switch button[aria-pressed="true"] { background: var(--green); color: white; }
.lang-switch button:hover:not([aria-pressed="true"]) { background: #f1f6f3; }
