/* HubBico live widgets — paleta 100% do site (hb-tokens). Prefixo .hb- para não vazar no Muse. */
@font-face{font-family:"Plus Jakarta Sans";font-weight:400;src:url("assets/fonts/PlusJakartaSans-latin-400.woff2") format("woff2");unicode-range:U+0000-00FF,U+2000-206F,U+20AC;font-display:swap}
@font-face{font-family:"Plus Jakarta Sans";font-weight:500;src:url("assets/fonts/PlusJakartaSans-latin-500.woff2") format("woff2");unicode-range:U+0000-00FF,U+2000-206F,U+20AC;font-display:swap}
@font-face{font-family:"Plus Jakarta Sans";font-weight:600;src:url("assets/fonts/PlusJakartaSans-latin-600.woff2") format("woff2");unicode-range:U+0000-00FF,U+2000-206F,U+20AC;font-display:swap}
@font-face{font-family:"Plus Jakarta Sans";font-weight:700;src:url("assets/fonts/PlusJakartaSans-latin-700.woff2") format("woff2");unicode-range:U+0000-00FF,U+2000-206F,U+20AC;font-display:swap}
@font-face{font-family:"Plus Jakarta Sans";font-weight:800;src:url("assets/fonts/PlusJakartaSans-latin-800.woff2") format("woff2");unicode-range:U+0000-00FF,U+2000-206F,U+20AC;font-display:swap}
@font-face{font-family:"Plus Jakarta Sans";font-weight:600;src:url("assets/fonts/PlusJakartaSans-latin-ext-600.woff2") format("woff2");unicode-range:U+0100-024F,U+1E00-1EFF;font-display:swap}
@font-face{font-family:"Plus Jakarta Sans";font-weight:700;src:url("assets/fonts/PlusJakartaSans-latin-ext-700.woff2") format("woff2");unicode-range:U+0100-024F,U+1E00-1EFF;font-display:swap}
@font-face{font-family:"Plus Jakarta Sans";font-weight:800;src:url("assets/fonts/PlusJakartaSans-latin-ext-800.woff2") format("woff2");unicode-range:U+0100-024F,U+1E00-1EFF;font-display:swap}

.hb-widgets-root{
  --orange:#FF6600; --orange-600:#E85D00; --orange-700:#C2410C;
  --orange-50:#FFF4EC; --orange-100:#FFE6D3; --orange-200:#FFD0AE; --orange-tint:#FFA25E;
  --ink:#1C1917; --ink-2:#292524; --text-2:#57534E; --text-3:#78716C;
  --line:#E7E5E4; --line-2:#F0EEEC; --stone-100:#F5F5F4; --stone-300:#D6D3D1; --stone-400:#A8A29E;
  --surface:#FFFFFF; --bg-soft:#FAFAF9;
  --up:#16A34A; --up-bg:#DCFCE7; --success-strong:#15803D;
  --down:#DC2626; --down-bg:#FEE2E2; --down-deep:#B91C1C;
  --r-sm:10px; --r-md:14px; --r-lg:20px; --r-full:999px;
  --sh:0 1px 2px rgb(28 25 23 / 5%), 0 8px 20px rgb(28 25 23 / 8%);
  --font:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  box-sizing:border-box;
  font-family:var(--font);
  color:var(--ink);
  font-size:12px;
  line-height:1.35;
  -webkit-font-smoothing:antialiased;
  width:100%;
  max-width:560px;
}
.hb-widgets-root *,.hb-widgets-root *::before,.hb-widgets-root *::after{box-sizing:border-box}
.hb-widgets-root button,.hb-widgets-root select,.hb-widgets-root input{
  font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;appearance:none;-webkit-appearance:none;
}
.hb-widgets-root button{cursor:pointer}
.hb-widgets-root a{color:var(--orange-700);text-decoration:none}
.hb-widgets-root a:hover{text-decoration:underline}

.hb-strip{
  display:grid;
  grid-template-columns:1fr 1fr 1.15fr;
  gap:7px;
  align-items:stretch;
}
@media (max-width:639px){
  .hb-widgets-root{max-width:none}
  /* Auditoria 26/11/2026: a faixa quebrava em 2 linhas no celular.
     Agora os 3 cartões ficam em UMA linha só, dividindo a largura. */
  .hb-strip{grid-template-columns:1fr 1fr 1.15fr;gap:6px}
  .hb-card-wx{grid-column:auto}
  .hb-strip .hb-card{padding:6px 7px;overflow:hidden}
}

.hb-card{
  background:#FFF7ED;
  border:1px solid var(--orange-100);
  border-top:2px solid var(--orange);
  border-radius:var(--r-md);
  box-shadow:var(--sh);
  padding:7px 9px 7px;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
  position:relative;
  min-height:0;
}
.hb-card-hd{
  display:flex;
  align-items:center;
  gap:6px;
  min-height:20px;
}
.hb-ico{
  flex:none;
  width:20px;height:20px;
  display:grid;place-items:center;
  border-radius:7px;
  background:var(--orange-50);
  color:var(--orange-700);
}
.hb-ico svg{width:14px;height:14px;display:block}
.hb-title{
  font-size:10px;
  font-weight:800;
  letter-spacing:.7px;
  text-transform:uppercase;
  color:var(--orange-700);
  margin:0;
  line-height:1;
  flex:1 1 auto;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.hb-main{
  font-size:14px;
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--ink);
  line-height:1.2;
  margin:3px 0 1px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.hb-sub{
  font-size:10.5px;
  font-weight:600;
  color:var(--text-2);
  line-height:1.3;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.hb-delta{
  flex:none;
  font-size:10px;
  font-weight:800;
  letter-spacing:.02em;
  line-height:1;
  padding:3px 6px;
  border-radius:var(--r-full);
  background:var(--stone-100);
  color:var(--text-2);
}
.hb-delta.is-up{background:var(--up-bg);color:var(--success-strong)}
.hb-delta.is-down{background:var(--down-bg);color:var(--down-deep)}
.hb-delta[hidden]{display:none}

.hb-cur{
  flex:none;
  max-width:96px;
  font-size:10px;
  font-weight:700;
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:var(--r-full);
  padding:3px 18px 3px 7px;
  background-color:var(--stone-100);
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%2357534E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat:no-repeat;
  background-position:right 7px center;
  background-size:9px 6px;
  cursor:pointer;
  line-height:1.2;
}
.hb-cur:focus-visible{outline:2px solid var(--orange);outline-offset:1px}

.hb-unit{
  flex:none;
  font-size:10px;
  font-weight:800;
  color:var(--orange-700);
  background:var(--orange-50);
  border:1px solid var(--orange-200);
  border-radius:var(--r-full);
  padding:3px 7px;
  line-height:1;
}
.hb-unit:hover{background:var(--orange-100)}
.hb-unit:focus-visible{outline:2px solid var(--orange);outline-offset:1px}

/* Weather / Henry */
/* HB-HENRY-VAZADO (Angelo, 04/12/2026 ~02:32): fora o circulo (fundo
   creme + anel laranja) atras da raposinha da faixa; o Henry fica
   VAZADO, direto sobre o fundo da faixa, com a plaquinha oval HubBico
   (a foto antiga tinha o pingente "H", proibido). */
.hb-henry{
  position:relative;
  flex:none;
  width:46px;height:46px;
  margin:-2px 0 -4px;
}
.hb-henry img{
  width:44px;height:44px;
  object-fit:contain;
  display:block;
  margin:1px auto 0;
  pointer-events:none;
}
.hb-acc{position:absolute;pointer-events:none;display:none}
.hb-henry[data-mood="sun"] .hb-acc-glasses{display:block}
.hb-henry[data-mood="rain"] .hb-acc-umbrella,
.hb-henry[data-mood="storm"] .hb-acc-umbrella,
.hb-henry[data-mood="snow"] .hb-acc-umbrella{display:block}
.hb-acc-glasses{
  left:7px;top:16px;width:28px;height:11px;
}
.hb-henry{overflow:visible}
.hb-acc-umbrella{
  right:-10px;top:-11px;width:30px;height:28px;
  filter:drop-shadow(0 1px 1px rgb(28 25 23 / 25%));
}

.hb-city-btn{
  display:inline-flex;align-items:center;gap:3px;
  font-size:10.5px;font-weight:700;color:var(--text-2);
  max-width:100%;
  min-width:0;
  border-radius:6px;
  padding:1px 2px;
  line-height:1.2;
}
.hb-city-btn:hover{color:var(--orange-700)}
.hb-city-btn:focus-visible{outline:2px solid var(--orange);outline-offset:1px}
.hb-city-btn svg{width:10px;height:10px;flex:none;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hb-city-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.hb-now{
  display:flex;align-items:baseline;gap:6px;
  margin-top:2px;
  min-width:0;
}
.hb-now-ic{flex:none;width:20px;height:20px;color:var(--orange);align-self:center}
.hb-now-ic svg{width:20px;height:20px;display:block}
.hb-temp{
  font-size:22px;font-weight:800;letter-spacing:-.03em;line-height:1;color:var(--ink);
}
.hb-cond{
  font-size:11px;font-weight:700;color:var(--text-2);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  min-width:0;
}
.hb-days{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:4px;
  margin-top:6px;
}
.hb-day{
  background:var(--orange-50);
  border:1px solid var(--orange-100);
  border-radius:10px;
  padding:4px 4px 5px;
  text-align:center;
  min-width:0;
}
.hb-day b{
  display:block;
  font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  color:var(--orange-700);
}
.hb-day .hb-day-ic{display:block;margin:2px auto;width:16px;height:16px;color:var(--orange)}
.hb-day .hb-day-ic svg{width:16px;height:16px;display:block;margin:0 auto}
.hb-day span{
  display:block;
  font-size:10px;font-weight:700;color:var(--ink);
  white-space:nowrap;
}

/* City popover */
.hb-pop{
  display:none;
  position:absolute;
  z-index:20;
  top:calc(100% + 6px);
  left:0;right:0;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 12px 32px rgb(28 25 23 / 16%);
  padding:8px;
  max-height:280px;
  overflow:auto;
}
.hb-card-wx{overflow:visible}
.hb-card-wx.is-open .hb-pop{display:block}
.hb-pop-search{
  width:100%;
  border:1px solid var(--line);
  background:var(--bg-soft);
  border-radius:10px;
  padding:7px 10px;
  font-size:12px;font-weight:600;
  margin-bottom:6px;
}
.hb-pop-search:focus{outline:2px solid var(--orange);border-color:transparent}
.hb-geo{
  display:flex;align-items:center;gap:6px;
  width:100%;
  text-align:left;
  padding:7px 8px;
  border-radius:10px;
  font-size:12px;font-weight:700;color:var(--orange-700);
}
.hb-geo:hover{background:var(--orange-50)}
.hb-geo svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hb-pop-group{
  font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  color:var(--text-3);
  padding:8px 8px 2px;
}
.hb-pop-item{
  display:block;width:100%;text-align:left;
  padding:6px 8px;border-radius:8px;
  font-size:12px;font-weight:600;color:var(--ink);
}
.hb-pop-item:hover,.hb-pop-item.is-on{background:var(--orange-50);color:var(--orange-700)}

/* States */
.hb-skel{
  display:block;height:14px;width:70%;
  background:linear-gradient(90deg,var(--line-2),var(--stone-100),var(--line-2));
  background-size:200% 100%;
  animation:hb-pulse 1.2s ease-in-out infinite;
  border-radius:6px;margin:6px 0;
}
.hb-skel.s{width:40%;height:10px}
@keyframes hb-pulse{0%{background-position:100% 0}100%{background-position:-100% 0}}
.hb-err{
  font-size:11px;font-weight:700;color:var(--text-2);
  padding:6px 0 2px;
}
.hb-retry{
  margin-top:4px;
  font-size:10.5px;font-weight:800;color:#fff;
  background:var(--btn, linear-gradient(180deg,#FF8A2A,#FF6600));
  border-radius:var(--r-full);
  padding:4px 10px;
}
.hb-retry:hover{filter:brightness(1.05)}

.hb-note{
  margin:8px 2px 0;
  font-size:10px;
  font-weight:500;
  line-height:1.45;
  color:var(--text-3);
}
.hb-srcs{
  display:flex;flex-wrap:wrap;gap:2px 0;
  margin:3px 2px 0;
  font-size:10px;font-weight:700;line-height:1.45;
  color:var(--text-3);
}
.hb-srcs a{white-space:nowrap;font-weight:700}
.hb-srcs span{margin:0 6px;color:var(--stone-400);font-weight:500}

.hb-spark{display:block;width:100%;height:16px;margin-top:3px;color:var(--stone-400)}
.hb-fx-body,.hb-btc-body{display:flex;flex-direction:column;flex:1;min-width:0}
.hb-foot{
  margin-top:auto;padding-top:6px;
  font-size:9.5px;font-weight:600;color:var(--text-3);
}
.hb-spark[hidden]{display:none}
.hb-card.is-up .hb-spark{color:var(--up)}
.hb-card.is-down .hb-spark{color:var(--down)}
.hb-spark .spark-line{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.hb-spark .spark-area{fill:currentColor;opacity:.15;stroke:none}

@media (prefers-reduced-motion:reduce){
  .hb-skel{animation:none}
}

/* Desktop menor (pedido do Angelo, 29/11/2026): faixa dólar/bitcoin/tempo
   com ~metade do tamanho SÓ no computador (min-width:640px).
   No celular (max-width:639px) nada muda. Mesma cara, mesmo conteúdo.
   Seletores reforçados: o reset .hb-widgets-root button/select (0,1,1) e o
   min-height:44px do hubbico-leve.css venciam as regras simples. */
@media (min-width:640px){
  .hb-widgets-root{max-width:280px}
  body .hb-widgets-root button,body .hb-widgets-root select{min-height:0}
  .hb-strip{gap:4px}
  .hb-strip .hb-card{padding:4px 5px;gap:1px;border-radius:10px}
  .hb-card-hd{min-height:14px;gap:4px;row-gap:2px;flex-wrap:wrap}
  .hb-ico{width:15px;height:15px;border-radius:5px}
  .hb-ico svg{width:10px;height:10px}
  .hb-title{font-size:8.5px;letter-spacing:.5px}
  .hb-main{font-size:10.5px;margin:1px 0 1px}
  .hb-sub{font-size:8.5px}
  .hb-delta{font-size:8px;padding:2px 4px}
  .hb-widgets-root .hb-cur{max-width:58px;font-size:8.5px;padding:2px 12px 2px 5px;background-position:right 4px center;background-size:7px 5px}
  .hb-widgets-root .hb-unit{font-size:8px;padding:2px 5px;line-height:1}
  .hb-henry{width:20px;height:20px;margin:-1px 0 -2px}
  .hb-henry img{width:19px;height:19px;margin:0 auto}
  .hb-acc-glasses{left:3px;top:8px;width:15px;height:6px}
  .hb-acc-umbrella{right:-5px;top:-6px;width:16px;height:15px}
  .hb-widgets-root .hb-city-btn{font-size:8.5px;gap:2px;padding:1px;line-height:1.2}
  .hb-city-btn svg{width:8px;height:8px}
  .hb-now{gap:4px;margin-top:1px}
  .hb-now-ic{width:13px;height:13px}
  .hb-now-ic svg{width:13px;height:13px}
  .hb-temp{font-size:12.5px}
  .hb-cond{font-size:8.5px}
  .hb-days{gap:3px;margin-top:3px}
  .hb-day{border-radius:6px;padding:1px 2px 2px}
  .hb-day b{font-size:7px}
  .hb-day .hb-day-ic{width:10px;height:10px;margin:1px auto}
  .hb-day .hb-day-ic svg{width:10px;height:10px}
  .hb-day span{font-size:8px}
  .hb-spark{height:9px;margin-top:2px}
  .hb-foot{padding-top:2px;font-size:8px}
  .hb-note{margin:4px 1px 0;font-size:7.5px;line-height:1.3}
  .hb-srcs{margin:2px 1px 0;font-size:7.5px;line-height:1.3}
  .hb-err{font-size:9px;padding:3px 0 1px}
  .hb-widgets-root .hb-retry{font-size:8.5px;padding:3px 8px;margin-top:2px;line-height:1.2}
  .hb-pop{padding:6px;max-height:200px;border-radius:10px}
  .hb-widgets-root .hb-pop-search{font-size:10px;padding:5px 8px;margin-bottom:4px}
  .hb-widgets-root .hb-geo{font-size:10px;padding:5px 6px}
  .hb-geo svg{width:11px;height:11px}
  .hb-pop-group{font-size:8px;padding:6px 6px 1px}
  .hb-widgets-root .hb-pop-item{font-size:10px;padding:5px 6px}
}

/* Cartões-link (Angelo, 01/12/2026): Dólar, Bitcoin e Tempo clicáveis */
.hb-card.hb-linked{cursor:pointer;transition:transform .15s ease, box-shadow .15s ease}
.hb-card.hb-linked:hover{transform:translateY(-1px);box-shadow:0 2px 3px rgb(28 25 23 / 6%), 0 10px 22px rgb(28 25 23 / 10%)}
.hb-card.hb-linked:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
