/* Portal Proença — "Quiosque" theme.
   Tokens: theme via body[data-t] (dark | light | auto), accent via body[data-a].
   Accents darkened where needed so text on them meets WCAG AA (see deploy notes). */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.938c6e8019b6.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-ext-wght-normal.6d36d5bdedfa.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- tokens ---------------------------------------------------------- */
.app {
  --acc: #ff6b4a; --on: #1f0b05;
  --bg: #f4f3f0; --s1: #fff; --s2: #ebe9e5; --ink: #15171a; --mut: #5f646b; --line: #e3e1dc;
  --ai: color-mix(in srgb, var(--acc) 62%, black);
  --ok: #1f7c49; --warn: #8a5a00; --bad: #b3261e;
  --r: 20px;
  color-scheme: light;
}
.app[data-t="dark"] {
  --bg: #121416; --s1: #1c1f23; --s2: #272b30; --ink: #eef0f2; --mut: #9aa1a8; --line: #2a2e33;
  --ai: color-mix(in srgb, var(--acc) 78%, white);
  --ok: #5dcd90; --warn: #f0c060; --bad: #ff8a80;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  .app[data-t="auto"] {
    --bg: #121416; --s1: #1c1f23; --s2: #272b30; --ink: #eef0f2; --mut: #9aa1a8; --line: #2a2e33;
    --ai: color-mix(in srgb, var(--acc) 78%, white);
    --ok: #5dcd90; --warn: #f0c060; --bad: #ff8a80;
    color-scheme: dark;
  }
}
.app[data-a="coral"]    { --acc: #ff6b4a; --on: #1f0b05; }
.app[data-a="azul"]     { --acc: #2c6bf0; --on: #fff; }
.app[data-a="medronho"] { --acc: #d33a1f; --on: #fff; }
.app[data-a="violeta"]  { --acc: #7a49f0; --on: #fff; }
.app[data-a="lima"]     { --acc: #2fbf71; --on: #05200f; }
/* Amarelo: a mustard/amber yellow (the flag yellow is too bright on screen). The
   generic --ai mix is wrong for yellow, so it gets its own link/focus colour per theme. */
.app[data-a="amarelo"]  { --acc: #e0b020; --on: #1f1600; --ai: #6b5200; }
.app[data-t="dark"][data-a="amarelo"] { --ai: #e0b020; }
@media (prefers-color-scheme: dark) { .app[data-t="auto"][data-a="amarelo"] { --ai: #e0b020; } }
/* Neutro: monochrome, follows the theme: graphite on light, near-white on dark. */
.app[data-a="neutro"] { --acc: #2b2f33; --on: #fff; --ai: #2b2f33; }
.app[data-t="dark"][data-a="neutro"] { --acc: #e6e8eb; --on: #121416; --ai: #e6e8eb; }
@media (prefers-color-scheme: dark) { .app[data-t="auto"][data-a="neutro"] { --acc: #e6e8eb; --on: #121416; --ai: #e6e8eb; } }


/* ---- base ------------------------------------------------------------ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; } /* in-page links land below the sticky .top header (64px) */
body.app {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  container-type: inline-size;
  min-height: 100vh;
  overflow-wrap: break-word; /* long emails/URLs wrap instead of overflowing */
}
.nw { white-space: nowrap; }
a { color: var(--ai); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ai); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 4cqi, 40px); font-weight: 800; margin: .5rem 0 1rem; }
h2 { font-size: 22px; font-weight: 800; margin: 2rem 0 .75rem; }
h3 { font-size: 17px; font-weight: 700; margin: 0 0 .2rem; }
img { max-width: 100%; height: auto; }
.mut, .meta { color: var(--mut); font-size: 13px; margin: 0; }
.meta a { color: inherit; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: max(4cqi, 16px); }
.skip { position: absolute; left: -999px; top: 0; background: var(--acc); color: var(--on); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 8px; }
.ic { width: 24px; height: 24px; flex-shrink: 0; }

/* ---- top bar --------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.logo { font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo span { color: var(--ai); }
.clock { color: var(--mut); font-size: 13px; font-variant-numeric: tabular-nums; }
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: .45rem .8rem; border-radius: 999px; }
.nav a:hover { background: var(--s2); }
.nav a[aria-current] { background: var(--s1); color: var(--ai); box-shadow: inset 0 0 0 1px var(--line); }
.round { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--s1); color: var(--ink); border: 1px solid var(--line); }
.round:hover { color: var(--ai); }
/* Staff only (never rendered for visitors) */
.admin-link { flex: none; font-weight: 700; font-size: 13px; color: var(--ai); text-decoration: none; padding: .4rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--s1); }
.admin-link:hover { background: var(--s2); }

/* ---- cards & chips ----------------------------------------------------- */
.c, .card { background: var(--s1); border-radius: var(--r); padding: 16px 18px; border: 1px solid var(--line); }
.c .lbl, .card h2 { font-size: 13px; color: var(--mut); font-weight: 600; margin: 0 0 .25rem; letter-spacing: 0; display: flex; align-items: center; gap: .4rem; }
.c .lbl .ic { width: 18px; height: 18px; color: var(--ai); }
.c .val, .big { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; margin: .15rem 0 .35rem; letter-spacing: -.02em; }
.c p { margin: .15rem 0; font-size: 14px; }
.c a { color: inherit; }
.c.hot { background: var(--acc); color: var(--on); border-color: transparent; }
.c.hot .lbl, .c.hot .mut, .c.hot .lbl .ic { color: var(--on); opacity: .85; }
.c.hot .val .ic { width: 30px; height: 30px; vertical-align: -3px; }
.chips { display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch; gap: 12px; margin: 0 0 1rem; }
/* Every day card is a flex column that fills its cell/strip slot, so a row of
   cards always has one height (no height:100%, which blocks flex stretching). */
.chips > * { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.c-link { color: inherit; text-decoration: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 12px; margin: 1rem 0; }
.dotok { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: .35rem; vertical-align: 1px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: .1rem .55rem; border-radius: 999px; background: var(--s2); color: var(--ink); vertical-align: middle; }
.badge.open { color: var(--ok); } .badge.closed { color: var(--mut); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-row a, .filters a { display: inline-block; padding: .35rem .8rem; border-radius: 999px; background: var(--s1); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.chip-row a:hover, .filters a:hover { border-color: var(--ai); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.filters a[aria-current] { background: var(--acc); color: var(--on); border-color: transparent; }

/* ---- home layout -------------------------------------------------------- */
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2rem 0 .75rem; }
.sec-h h2 { margin: 0; }
.sec-h a { font-weight: 700; font-size: 14px; }
.list { display: grid; gap: 2px; background: var(--line); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.list > * { background: var(--s1); }
.ni { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: start; padding: 14px 16px; text-decoration: none; color: inherit; }
.ni:hover .t { color: var(--ai); }
.ni .t { font-weight: 700; font-size: 17px; line-height: 1.3; }
.src { font-size: 11px; font-weight: 800; padding: .15rem .45rem; border-radius: 6px; background: var(--s2); color: var(--mut); letter-spacing: .03em; }
.ag-g { font-size: 13px; color: var(--mut); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 1rem 0 .4rem; }
.ag { display: flex; gap: 12px; align-items: center; background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; margin-bottom: 8px; text-decoration: none; color: inherit; }
.ag:hover .t { color: var(--ai); }
.db { width: 52px; flex-shrink: 0; text-align: center; background: var(--s2); border-radius: 12px; padding: 6px 0; line-height: 1.05; }
.db b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.db span { font-size: 12px; font-weight: 800; color: var(--ai); text-transform: uppercase; }
.ag .t { font-weight: 700; line-height: 1.3; }
.band { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 2rem 0; display: grid; gap: 1rem; }
.band-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.band-h h2 { margin: 0; }
.search, .band form { display: flex; gap: .5rem; margin: 0 0 1rem; }
.band form { margin: 0; flex: 1 1 16rem; min-width: 0; max-width: 28rem; }
.band { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.chip-row a { max-width: 100%; overflow-wrap: anywhere; }
input[type="search"], input[type="text"] { flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1rem; }
button, .btn { font: inherit; font-weight: 700; cursor: pointer; border: 0; border-radius: 999px; padding: .6rem 1.1rem; background: var(--acc); color: var(--on); text-decoration: none; display: inline-block; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tile { display: grid; gap: .35rem; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-decoration: none; color: var(--ink); }
.tile .ic { color: var(--ai); width: 28px; height: 28px; }
.tile b { font-size: 16px; }
.tile:hover { border-color: var(--ai); }
.cta { border: 2px dashed var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin: 2rem 0; }
.empty { color: var(--mut); background: var(--s1); border: 1px dashed var(--line); border-radius: var(--r); padding: 16px; }

/* ---- generic page pieces (lists, tables, details) ---------------------- */
.news-item { display: flex; gap: 14px; padding: 14px 16px; background: var(--s1); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 8px; }
.news-item img { width: 140px; height: 92px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.news-item h3 a { color: var(--ink); text-decoration: none; }
.news-item h3 a:hover { color: var(--ai); }
.news-item p { margin: .2rem 0 0; }
.news-detail, .business-detail { min-width: 0; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.news-detail img { border-radius: 12px; }
.pagination { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1rem; }
.facts dt { font-weight: 700; color: var(--mut); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .75rem; margin-top: 1rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 10rem; object-fit: cover; border-radius: 12px; }
.gallery figcaption { color: var(--mut); font-size: 13px; }
.alert { padding: .65rem .9rem; border-radius: 12px; border-left: 5px solid; background: var(--s1); margin: 0 0 .75rem; }
.alert-yellow { border-color: #e0b400; } .alert-orange { border-color: #e06d00; } .alert-red { border-color: #d32f2f; }
.fire-risk.level-3 .big { color: var(--warn); } .fire-risk.level-4 .big, .fire-risk.level-5 .big { color: var(--bad); }
.table-scroll { overflow-x: auto; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
th { font-size: 13px; color: var(--mut); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
/* Fuel table: fits its container (no horizontal scroll); cards below 640px. */
.fuel-prices { table-layout: fixed; width: 100%; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); border-collapse: separate; border-spacing: 0; }
.fuel-prices th, .fuel-prices td { white-space: normal; padding: .5rem .45rem; vertical-align: top; font-size: 14px; }
.fuel-prices thead th { font-size: 12px; line-height: 1.25; }
.fuel-prices thead th:first-child, .fuel-prices tbody th { width: 26%; }
.fuel-prices tbody th { font-weight: 400; color: var(--ink); text-align: left; }
.fuel-prices tbody th strong, .fuel-prices tbody th .meta { display: block; overflow-wrap: anywhere; }
.fuel-prices abbr { text-decoration: none; }
.fuel-prices td > span { display: block; }
.fuel-prices td > span.visually-hidden, .fuel-prices .change .visually-hidden { position: absolute; }
.fuel-prices .pr { font-weight: 800; font-size: 15px; white-space: nowrap; }
.fuel-prices tr:last-child > * { border-bottom: 0; }
.cheapest { background: color-mix(in srgb, var(--ok) 14%, transparent); }
.change { font-size: 12px; font-weight: 600; white-space: nowrap; } .change.up { color: var(--bad); } .change.down { color: var(--ok); }
.times { display: flex; flex-wrap: wrap; gap: .35rem .6rem; list-style: none; padding: 0; margin: .35rem 0 .9rem; }
.times li { background: var(--s2); border-radius: 10px; padding: .25rem .6rem; font-variant-numeric: tabular-nums; font-weight: 700; }
.route { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 12px; }
.route h2 { margin: 0 0 .25rem; font-size: 19px; }
.route h3 { font-size: 13px; color: var(--mut); margin: .6rem 0 0; }
.dest-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.dest-nav a { background: var(--s2); border-radius: 999px; padding: .3rem .8rem; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink); }
.dirs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 1.5rem; margin-bottom: .5rem; }
.dir .next { margin: .25rem 0 .4rem; }
.trips { list-style: none; padding: 0; margin: 0 0 .6rem; }
.trips li { padding: .3rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.trips li:last-child { border-bottom: 0; }
.trips .t { display: inline-block; min-width: 7.5em; }
.trips .meta { display: inline; }
.trips .past { opacity: .5; }
.on-duty, .after-hours { margin-bottom: 1rem; }
.source { margin-top: 1.5rem; }
.info-links { padding-left: 1.2rem; }
.err { text-align: center; padding: 3rem 0; }
.err .big { font-size: 64px; color: var(--ai); }

/* ---- weather page ------------------------------------------------------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wi { width: 36px; height: 36px; flex-shrink: 0; }
.wi-xl { width: 96px; height: 96px; }
.wi .sun { fill: color-mix(in srgb, #f5b400 35%, transparent); }
.wi .moon { fill: color-mix(in srgb, currentColor 14%, transparent); }
.wi .cloud { fill: color-mix(in srgb, currentColor 10%, transparent); }
.wi .bolt { stroke: #f5b400; }
.c.hot .wi .sun { fill: color-mix(in srgb, var(--on) 22%, transparent); }
.c.hot .wi .bolt { stroke: var(--on); }
.wind-arrow { vertical-align: -2px; margin-right: 2px; }
.wx-hero { display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; align-items: center; padding: 22px 24px; }
.wx-now { display: flex; gap: 16px; align-items: center; }
.wx-hero .wx-temp { font-size: clamp(48px, 9cqi, 72px); font-weight: 800; line-height: 1; margin: 0; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.wx-hero .wx-desc { font-size: 18px; font-weight: 700; margin: .25rem 0; }
.wx-hero p { margin: .1rem 0; }
.wx-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 10px 16px; margin: 0; }
.wx-facts dt { font-size: 13px; opacity: .85; }
.wx-facts dd { margin: 0; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wx-upd { grid-column: 1 / -1; font-size: 13px; opacity: .85; }
.wx-alerts { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 12px; margin: 12px 0; }
.pill { border-radius: 12px; padding: .45rem .75rem; margin: .35rem 0 0; font-size: 14px; color: #1d1a10; }
.pill span { font-size: 13px; }
.pill-yellow { background: #ffe066; } .pill-orange { background: #ffb15c; } .pill-red { background: #ff8a80; }
.pill-none { background: var(--s2); color: var(--ink); }
.wx-risk-name { font-size: 22px; font-weight: 800; margin: .1rem 0 .5rem; }
.risk-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; list-style: none; padding: 0; margin: 0; }
.risk-scale li { height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--rc) 30%, var(--s2)); position: relative; }
.risk-scale li.on { background: var(--rc); outline: 2px solid var(--ink); outline-offset: 1px; }
.risk-scale span { position: absolute; top: 14px; left: 0; right: 0; font-size: 11px; color: var(--mut); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.risk-scale li.on span { color: var(--ink); font-weight: 800; }
.wx-alerts .c:has(.risk-scale) { padding-bottom: 32px; }
.hours { overflow-x: auto; scroll-snap-type: x proximity; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 10px; scrollbar-width: thin; }
/* The strip fills the card on wide screens and scrolls when the cards need more
   room; the SVG line stretches with it (points sit at slot centres in viewBox units). */
.hours-in { position: relative; width: max-content; min-width: 100%; }
.hours-line { display: block; width: 100%; color: var(--ai); }
.hr-list { display: flex; list-style: none; padding: 0; margin: 0; }
.hr { flex: 1 0 72px; min-width: 72px; display: grid; justify-items: center; align-content: start; gap: 2px; scroll-snap-align: start; font-variant-numeric: tabular-nums; }
.hr-t { font-size: 13px; font-weight: 700; color: var(--mut); }
.hr b { font-size: 17px; }
.hr .mut { font-size: 12px; }
.hr-sun { font-size: 11px; font-weight: 800; color: var(--ai); }
.days { list-style: none; padding: 0; margin: 0; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); }
.day { display: grid; grid-template-columns: 7.5rem 40px minmax(0, 1fr) 3rem 2.5rem minmax(6rem, 14rem) 2.5rem 7rem; gap: 10px; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.day:last-child { border-bottom: 0; }
.day .wi { width: 34px; height: 34px; }
.day-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-min { text-align: right; color: var(--mut); font-weight: 700; } .day-max { font-weight: 800; }
.range { display: block; position: relative; height: 6px; border-radius: 3px; background: var(--s2); }
.range span { display: block; position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #4aa3df, #f5b400 55%, #f0643c); }
.meteo-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; list-style: none; padding: 0; margin: 0 0 .5rem; font-size: 13px; color: var(--mut); }
.meteo-legend li { display: flex; align-items: center; gap: .4rem; }
.lg-line { width: 18px; height: 3px; border-radius: 2px; background: var(--ai); }
.lg-bar { width: 9px; height: 12px; border-radius: 2px; background: #3d8bd9; }
.lg-night { width: 14px; height: 12px; border-radius: 3px; background: var(--s2); border: 1px solid var(--line); }
.meteo { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 3rem; grid-template-rows: 160px auto; column-gap: 6px; }
.meteo svg { width: 100%; height: 160px; display: block; grid-row: 1; grid-column: 2; overflow: visible; }
.meteo .night { fill: var(--s2); }
.meteo .base { stroke: var(--line); stroke-width: 1; }
.meteo .bar { fill: #3d8bd9; } .meteo .miss { fill: var(--mut); opacity: .5; }
.meteo .tline { fill: none; stroke: var(--ai); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.meteo .tdot { fill: var(--ai); }
.meteo-y { position: relative; grid-row: 1; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.meteo-y span { position: absolute; transform: translateY(-50%); white-space: nowrap; }
.meteo-y-t { grid-column: 1; color: var(--ai); text-align: right; } .meteo-y-t span { right: 0; }
.meteo-y-r { grid-column: 3; color: #24609f; } .meteo-y-r span { left: 0; }
.meteo-x { position: relative; grid-row: 2; grid-column: 2; height: 1.4rem; font-size: 12px; color: var(--mut); }
.meteo-x span { position: absolute; top: 4px; transform: translateX(-50%); }
.app[data-t="dark"] .meteo .bar, .app[data-t="dark"] .lg-bar { fill: #6aaef0; background: #6aaef0; }
.app[data-t="dark"] .meteo-y-r { color: #6aaef0; }
@media (prefers-color-scheme: dark) {
  .app[data-t="auto"] .meteo .bar { fill: #6aaef0; } .app[data-t="auto"] .lg-bar { background: #6aaef0; }
  .app[data-t="auto"] .meteo-y-r { color: #6aaef0; }
}
@container (max-width: 640px) {
  .fuel-prices, .fuel-prices tbody, .fuel-prices tr, .fuel-prices th, .fuel-prices td { display: block; width: auto; }
  .fuel-prices { background: none; border: 0; }
  .fuel-prices thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fuel-prices tr { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; padding: 12px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .fuel-prices tbody th { grid-column: 1 / -1; width: auto; padding: 0 0 4px; border: 0; }
  .fuel-prices td { padding: 6px 8px; border: 0; border-radius: 10px; }
  .fuel-prices td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--mut); }
  .fuel-prices td:has(> .mut:only-child) { display: none; }
}
@container (max-width: 700px) {
  .wx-hero { grid-template-columns: 1fr; margin-inline: calc(-1 * max(4cqi, 16px)); border-radius: 0; border-inline: 0; }
  .wi-xl { width: 72px; height: 72px; }
  .day { grid-template-columns: 3.6rem 32px 2.2rem 2.2rem minmax(3rem, 1fr) 2.2rem; padding: 8px 12px; gap: 6px; }
  .day-desc, .day-w { display: none; }
  .day-n .mut { display: block; font-size: 11px; }
}

/* ---- appearance + footer ------------------------------------------------ */
.ap { margin-top: 3rem; }
.ap h2 { font-size: 15px; color: var(--mut); margin: 0 0 .6rem; }
.ap-form { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.seg { display: inline-flex; background: var(--s2); border-radius: 999px; padding: 4px; }
.seg button { background: transparent; color: var(--ink); padding: .45rem .95rem; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--s1); color: var(--ai); box-shadow: 0 1px 2px rgb(0 0 0 / .15); }
.dots { display: flex; gap: .6rem; }
.dot { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line); }
.dot[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.dot-coral { background: #ff6b4a; } .dot-azul { background: #2c6bf0; } .dot-medronho { background: #d33a1f; } .dot-violeta { background: #7a49f0; } .dot-lima { background: #2fbf71; } .dot-amarelo { background: #e0b020; } .dot-neutro { background: linear-gradient(135deg, #e6e8eb 50%, #2b2f33 50%); }
.foot { padding-top: 1.5rem; padding-bottom: 2rem; border-top: 1px solid var(--line); margin-top: 1.5rem; }
.foot p { margin: .25rem 0; font-size: 14px; }
.tabs { display: none; }

/* ---- responsive (container queries on body.app) ------------------------- */
@container (max-width: 980px) {
  .chips { grid-template-columns: repeat(3, 1fr); }
  .chips > :nth-child(n+4) { display: none; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .clock { display: none; }
}
@container (max-width: 700px) {
  .nav, .round { display: none; }
  .admin-link { margin-left: auto; }
  .chips { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 4px; margin-inline: calc(-1 * max(4cqi, 16px)); padding-inline: max(4cqi, 16px); scroll-padding-inline: max(4cqi, 16px); scrollbar-width: none; }
  .chips { align-items: stretch; }
  .chips > * { flex: 0 0 72%; max-width: 20rem; scroll-snap-align: start; }
  .chips > :nth-child(n+4) { display: flex; }
  .cols { grid-template-columns: 1fr; gap: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .news-item img { width: 96px; height: 64px; }
  .tabs {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 20;
    background: color-mix(in srgb, var(--s1) 82%, transparent); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabs a { display: grid; justify-items: center; gap: 2px; color: var(--mut); text-decoration: none; font-size: 11px; font-weight: 700; padding: 4px 0; }
  .tabs a[aria-current] { color: var(--ai); }
  .foot { padding-bottom: 6rem; }
}

/* Business directory map (Leaflet) */
.dir-map-wrap { margin: 1rem 0 1.25rem; display: grid; gap: .5rem; }
.dir-map { height: 380px; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; background: var(--s2); z-index: 0; }
.dir-map-sm { height: 260px; margin: 1rem 0 .5rem; }
.dir-map .leaflet-popup-content-wrapper, .dir-map .leaflet-popup-tip { background: var(--s1); color: var(--ink); }
.dir-map .leaflet-popup-content { font: 14px/1.35 inherit; margin: 10px 14px; }
.dir-map.leaflet-container a { color: var(--ai); }
.map-pop a { font-weight: 700; }
.map-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.map-note { margin: 6px 0 0; font-size: 12px; }
.leaflet-tooltip.map-count { background: none; border: 0; box-shadow: none; padding: 0; font-weight: 800; font-size: 11px; color: var(--ink); }
.leaflet-tooltip.map-count::before { display: none; }
/* Controls follow the theme tokens (Leaflet's defaults are white in dark mode too). */
.dir-map .leaflet-bar { border-color: var(--line); }
.dir-map .leaflet-bar a { background: var(--s1); color: var(--ink); border-bottom-color: var(--line); }
.dir-map .leaflet-bar a:hover, .dir-map .leaflet-bar a:focus { background: var(--s2); color: var(--ink); }
.dir-map .leaflet-bar a.leaflet-disabled { background: var(--s2); color: var(--mut); }
.dir-map.leaflet-container .leaflet-control-attribution {
  background: color-mix(in srgb, var(--s1) 85%, transparent); color: var(--mut);
  font-size: 10px; line-height: 1.5; padding: 0 5px; border-top-left-radius: 6px;
}
@media (max-width: 600px) { .dir-map { height: 300px; } .dir-map-sm { height: 220px; } }
