/*
 * SOS Itupararanga — Previsão do Tempo
 * Folha de estilos consolidada.
 *
 * EDICAO RAPIDA DE FONTES:
 * Altere as variáveis --font-* abaixo. As regras responsivas também usam essas
 * variáveis, portanto uma mudança fica centralizada e consistente.
 */

:root {
  /* Cores */
  --sos-weather-deep: #2E5F74;
  --sos-weather-green: #467138;
  --sos-weather-sage: #8FA68A;
  --sos-weather-blue: #3C91BA;
  --sos-weather-sky: #6F9AAF;
  --sos-weather-sun: #F0A32E;
  --sos-weather-cream: #F4F2EA;
  --sos-weather-line: #DDE5E3;
  --sos-weather-ink: #2E3B43;
  --sos-weather-muted: #738087;
  --sos-weather-white: #FFFFFF;

  /* Tipografia — desktop */
  --font-home-temp: 40px;
  --font-home-condition: 14px;
  --font-home-muted: 10px;
  --font-home-select: 15px;
  --font-home-metric-label: 10px;
  --font-home-metric-value: 13px;
  --font-home-day-name: 13px;
  --font-home-day-date: 12px;
  --font-home-day-temp: 14px;
  --font-home-day-rain: 12px;

  --font-page-title: 30px;
  --font-intro-text: 16px;
  --font-city: 25px;
  --font-current-temp: 66px;
  --font-current-condition: 19px;
  --font-muted: 11px;
  --font-metric-label: 9.5px;
  --font-metric-value: 13px;
  --font-panel-title: 25px;
  --font-sun-label: 12px;
  --font-sun-time: 18px;
  --font-moon-label: 17px;
  --font-moon-meta: 10px;
  --font-section-title: 23px;
  --font-day-name: 17px;
  --font-day-date: 10px;
  --font-day-temp: 17px;
  --font-day-rain: 10px;
  --font-info-value: 15px;
  --font-chart-label: 10px;
  --font-chart-legend: 10px;
  --font-compare-name: 12px;
  --font-compare-temp: 20px;
  --font-compare-desc: 11px;
  --font-compare-detail: 10px;

  /* Ícones */
  --icon-home-current: 56px;
  --icon-home-day: 50px;
  --icon-detail: 41.4px;
  --icon-sun: 59.8px;
  --icon-moon: 94px;
  --icon-day: 88px;
  --icon-compare: 82px;
  --icon-info: 36px;
}

/* ========================================================================== */
/* BASE                                                                      */
/* ========================================================================== */
.sos-weather-v2 {
  width: 100%;
  min-width: 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--sos-weather-ink);
  box-sizing: border-box;
}

.sos-weather-v2 *,
.sos-weather-v2 *::before,
.sos-weather-v2 *::after {
  box-sizing: border-box;
}

.sos-weather-v2 a { text-decoration: none; }
.sos-weather-v2 svg { display: block; }
.sos-weather-v2 img { max-width: 100%; }
.sos-weather-v2__weather-icon { display: block; width: 100%; height: 100%; }
.sos-weather-v2__weather-icon img,
.sos-weather-v2__moon-icon,
.sos-weather-v2__sunline img,
.sos-weather-v2__metric img,
.sos-weather-v2__info-icon img,
.sos-weather-v2 .sos-w-icon--meteocons {
  display: block;
  object-fit: contain;
}

.sos-weather-v2__kicker,
.sos-weather-v2__eyebrow {
  letter-spacing: .08em;
  font: 800 13px/1.2 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  color: var(--sos-weather-green);
}

/* ========================================================================== */
/* HOME                                                                      */
/* ========================================================================== */
.sos-weather-v2--home {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.sos-weather-v2--home .sos-weather-v2__home-strip {
  width: calc(100% + 30px);
    max-width: none;
    min-width: 0;
    margin-left: -10px;  
  display: grid;
  grid-template-columns: 185px minmax(220px, 245px) 165px minmax(0, 1fr) 190px;
  gap: 12px;
  align-items: center;
  padding: 18px 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #FBFCFA, #F3F7F2);
  border: 1px solid var(--sos-weather-line);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(46, 95, 116, .07);
}

.sos-weather-v2--home .sos-weather-v2__home-brand,
.sos-weather-v2--home .sos-weather-v2__home-current,
.sos-weather-v2--home .sos-weather-v2__home-metrics,
.sos-weather-v2--home .sos-weather-v2__home-days,
.sos-weather-v2--home .sos-weather-v2__cta {
  min-width: 0;
}

.sos-weather-v2--home .sos-weather-v2__home-brand {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sos-weather-v2--home .sos-weather-v2__select--home,
.sos-weather-v2--home .sos-weather-v2__select--home select {
  width: 100%;
  min-width: 0;
}

.sos-weather-v2__select {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sos-weather-v2__select > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--sos-weather-green);
}

.sos-weather-v2__select select {
  appearance: none;
  min-width: 180px;
  padding: 10px 34px 10px 12px;
  border: 2px solid #9FB1D4;
border-radius: 10px 0 10px 0;
  background: #FFF;
  color: var(--sos-weather-deep);
  font: 700 var(--font-home-select)/1 "Open Sans", Arial, sans-serif;
  outline: none;
}

.sos-weather-v2__select::after {
  content: "⌄";
  position: absolute;
  top: 8px;
  right: 12px;
  color: var(--sos-weather-deep);
  font-size: 18px;
  pointer-events: none;
}

.sos-weather-v2--home .sos-weather-v2__home-current {
  display: grid;
  grid-template-columns: var(--icon-home-current) minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.sos-weather-v2__icon-home {
  width: var(--icon-home-current);
  height: var(--icon-home-current);
  flex: 0 0 var(--icon-home-current);
}

.sos-weather-v2__icon-home img,
.sos-weather-v2__icon-home .sos-w-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sos-weather-v2--home .sos-weather-v2__home-current-copy {
  min-width: 0;
  overflow: hidden;
}

.sos-weather-v2__temp {
  color: var(--sos-weather-deep);
  font: 800 48px/1 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  letter-spacing: -.025em;
}

.sos-weather-v2__temp--home {
  font-size: var(--font-home-temp);
  line-height: .94;
  white-space: nowrap;
}

.sos-weather-v2__condition {
  color: var(--sos-weather-ink);
  font-size: var(--font-home-condition);
  font-weight: 700;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.sos-weather-v2__muted,
.sos-weather-v2__datetime,
.sos-weather-v2__updated {
  color: var(--sos-weather-muted);
  font-size: var(--font-muted);
  line-height: 1.2;
}

.sos-weather-v2--home .sos-weather-v2__muted {
  font-size: var(--font-home-muted);
}

.sos-weather-v2--home .sos-weather-v2__home-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  padding-left: 14px;
  border-left: 1px solid var(--sos-weather-line);
}

.sos-weather-v2__metric,
.sos-weather-v2__info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sos-weather-v2__metric > svg,
.sos-weather-v2__metric > img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: contain;
}

.sos-weather-v2--home .sos-weather-v2__home-metrics .sos-weather-v2__metric {
  gap: 7px;
}

.sos-weather-v2--home .sos-weather-v2__home-metrics .sos-weather-v2__metric > svg,
.sos-weather-v2--home .sos-weather-v2__home-metrics .sos-weather-v2__metric > img {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
}

.sos-weather-v2__metric span,
.sos-weather-v2__info-item > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sos-weather-v2__metric small,
.sos-weather-v2__info-item small {
  color: var(--sos-weather-muted);
  font-size: var(--font-metric-label);
  line-height: 1.2;
}

.sos-weather-v2__metric strong,
.sos-weather-v2__info-item strong {
  color: var(--sos-weather-ink);
  font-size: var(--font-metric-value);
  line-height: 1.25;
}

.sos-weather-v2--home .sos-weather-v2__home-metrics .sos-weather-v2__metric small {
  font-size: var(--font-home-metric-label);
  line-height: 1.1;
}

.sos-weather-v2--home .sos-weather-v2__home-metrics .sos-weather-v2__metric strong {
  font-size: var(--font-home-metric-value);
  line-height: 1.2;
  white-space: nowrap;
}

.sos-weather-v2--home .sos-weather-v2__home-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: 0;
  padding-left: 8px;
  border-left: 1px solid var(--sos-weather-line);
}

.sos-weather-v2--home .sos-weather-v2__home-day {
  display: flex;
  min-width: 0;
  min-height: 82px;
  padding: 6px 4px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-left: 1px solid var(--sos-weather-line);
  text-align: center;
}

.sos-weather-v2--home .sos-weather-v2__home-day:first-child { border-left: 0; }
.sos-weather-v2--home .sos-weather-v2__home-day.is-selected { background: #EDF3EA; border-radius: 12px; }

.sos-weather-v2--home .sos-weather-v2__home-day > span {
  width: var(--icon-home-day);
  height: var(--icon-home-day);
  flex: 0 0 var(--icon-home-day);
}

.sos-weather-v2--home .sos-weather-v2__home-day > span img,
.sos-weather-v2--home .sos-weather-v2__home-day > span .sos-w-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sos-weather-v2--home .sos-weather-v2__home-day b {
  color: var(--sos-weather-ink);
  font: 800 var(--font-home-day-name)/1 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

.sos-weather-v2--home .sos-weather-v2__home-day small {
  color: var(--sos-weather-muted);
  font-size: var(--font-home-day-date);
}

.sos-weather-v2--home .sos-weather-v2__home-day strong {
  color: var(--sos-weather-ink);
  font: 800 var(--font-home-day-temp)/1 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

.sos-weather-v2--home .sos-weather-v2__home-day em {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--sos-weather-blue);
  font-size: var(--font-home-day-rain);
  font-style: normal;
}

.sos-weather-v2--home .sos-weather-v2__home-day em svg {
  width: 20px;
  height: 20px;
}

.sos-weather-v2__cta {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  background: #467138;
  border: 1px solid #467138;
  border-radius: 10px 0 10px 0;
  color: #FFF;
  font: 800 13px/1.1 "Open Sans", Arial, sans-serif;
  text-align: center; letter-spacing: -0.3px;
  white-space: nowrap;
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.3) !important;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.sos-weather-v2__cta:hover {
  background: #3D6331;
  border-color: #3D6331;
  transform: translateY(-1px);
}

.sos-weather-v2__cta svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.sos-weather-v2__credit {
  margin-top: 8px;
  color: #76848A;
  font-size: 11px;
}

.sos-weather-v2--home .sos-weather-v2__credit {
  grid-column: 1 / -1;
  margin-top: 2px;
  text-align: right;
}

/* ========================================================================== */
/* PAGINA COMPLETA                                                           */
/* ========================================================================== */
.sos-weather-v2__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: center;
  margin: 0 0 22px;
  padding: 6px 4px;
}

.sos-weather-v2__intro-copy {
  min-width: 0;
  max-width: 760px;
}

.sos-weather-v2__intro-copy h1,
.sos-weather-v2__title-one-line {
  margin: 8px 0 12px;
  max-width: 100%;
  color: var(--sos-weather-deep);
  font: 800 var(--font-page-title)/1.08 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  letter-spacing: -.015em;
  white-space: nowrap;
}

.sos-weather-v2__intro-copy p {
  max-width: 720px;
  margin: 0;
  color: #344650;
  font-size: var(--font-intro-text);
  line-height: 1.55;
}

.sos-weather-v2__intro-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #F6F8F4, #EDF3EC);
  border: 1px solid #DCE6D8;
  border-radius: 16px;
}

.sos-weather-v2__intro-mark-icon {
  width: 68px;
  height: 68px;
  color: var(--sos-weather-deep);
}

.sos-weather-v2__intro-mark-icon svg,
.sos-weather-v2__intro-mark-icon .sos-w-icon {
  width: 100%;
  height: 100%;
}

.sos-weather-v2__intro-mark strong {
  display: block;
  color: var(--sos-weather-green);
  font: 800 20px/1 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

.sos-weather-v2__intro-mark span {
  display: block;
  margin-top: 3px;
  color: var(--sos-weather-muted);
  font-size: 11px;
}

.sos-weather-v2__current-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(190px, .7fr) minmax(190px, .7fr);
  gap: 16px;
}

.sos-weather-v2__panel {
  min-width: 0;
  padding: 18px;
  background: var(--sos-weather-white);
  border: 1px solid var(--sos-weather-line);
  border-radius: 18px;
}

.sos-weather-v2__selector-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.sos-weather-v2__city-title {
  color: var(--sos-weather-deep);
  font: 800 var(--font-city)/1 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

.sos-weather-v2__datetime,
.sos-weather-v2__updated { margin-top: 5px; }

.sos-weather-v2__current-main {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 18px;
  align-items: center;
}

.sos-weather-v2__current-icon {
  width: 108px;
  height: 108px;
}

.sos-weather-v2__current-icon img,
.sos-weather-v2__current-icon .sos-w-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sos-weather-v2__temp--large { font-size: var(--font-current-temp); }

.sos-weather-v2__condition--large {
  margin-top: 2px;
  font-size: var(--font-current-condition);
  line-height: 1.15;
}

.sos-weather-v2__detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid var(--sos-weather-line);
}

.sos-weather-v2__detail-grid .sos-w-icon--meteocons {
  width: var(--icon-detail);
  height: var(--icon-detail);
  flex: 0 0 var(--icon-detail);
}

.sos-weather-v2__info-item > .sos-weather-v2__info-icon {
  width: var(--icon-info);
  height: var(--icon-info);
  min-width: var(--icon-info);
  flex: 0 0 var(--icon-info);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sos-weather-v2__info-item > .sos-weather-v2__info-icon svg,
.sos-weather-v2__info-item > .sos-weather-v2__info-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sos-weather-v2__info-item > span:last-child {
  flex: 1 1 auto;
}

.sos-weather-v2__info-grid .sos-weather-v2__info-item strong {
  font-size: var(--font-info-value);
}

.sos-weather-v2__sun-panel h2,
.sos-weather-v2__moon-panel h2,
.sos-weather-v2__panel-heading h2,
.sos-weather-v2__section-heading h2 {
  margin: 0;
  color: var(--sos-weather-deep);
  font: 800 var(--font-panel-title)/1.05 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

.sos-weather-v2__sunline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  border-top: 1px solid var(--sos-weather-line);
  color: var(--sos-weather-muted);
}

.sos-weather-v2__sunline:first-of-type { margin-top: 13px; }

.sos-weather-v2__sunline > svg,
.sos-weather-v2__sunline > img,
.sos-weather-v2__sunline > .sos-w-icon--meteocons {
  width: var(--icon-sun);
  height: var(--icon-sun);
  flex: 0 0 var(--icon-sun);
  object-fit: contain;
}

.sos-weather-v2__sunline span {
  display: flex;
  flex-direction: column;
  font-size: var(--font-sun-label);
}

.sos-weather-v2__sunline strong {
  margin-top: 3px;
  color: var(--sos-weather-ink);
  font: 800 var(--font-sun-time)/1 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

.sos-weather-v2__moon {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sos-weather-v2__moon-art {
  width: var(--icon-moon);
  height: var(--icon-moon);
  margin: 8px 0;
}

.sos-weather-v2__moon-icon {
  width: 100%;
  height: 100%;
  transform: scale(1.15);
  transform-origin: center;
}

.sos-weather-v2__moon strong {
  color: var(--sos-weather-deep);
  font: 800 var(--font-moon-label)/1.1 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  text-align: center;
}

.sos-weather-v2__moon small {
  margin-top: 5px;
  color: var(--sos-weather-muted);
  font-size: var(--font-moon-meta);
}

/* ========================================================================== */
/* SECOES / 7 DIAS                                                           */
/* ========================================================================== */
.sos-weather-v2__section { margin-top: 24px; }

.sos-weather-v2__section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 11px;
}

.sos-weather-v2__section-heading::before,
.sos-weather-v2__section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #A7B8BD;
}

.sos-weather-v2__section-heading h2 {
  flex: 0 1 auto;
  max-width: 100%;
  font-size: var(--font-section-title);
  line-height: 1.15;
  text-align: center;
}

.sos-weather-v2__days-full {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
  background: #FFF;
  border: 1px solid var(--sos-weather-line);
  border-radius: 16px;
}

.sos-weather-v2__full-day {
  display: flex;
  min-width: 0;
  min-height: 158px;
  padding: 10px 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-left: 1px solid var(--sos-weather-line);
  text-align: center;
}

.sos-weather-v2__full-day:first-child { border-left: 0; }
.sos-weather-v2__full-day.is-selected { background: #F2F6EF; }

.sos-weather-v2__full-day b {
  color: var(--sos-weather-ink);
  font: 800 var(--font-day-name)/1 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

.sos-weather-v2__full-day small {
  color: var(--sos-weather-muted);
  font-size: var(--font-day-date);
}

.sos-weather-v2__day-weather {
  width: var(--icon-day);
  height: var(--icon-day);
  margin: 3px 0 4px;
}

.sos-weather-v2__day-weather img,
.sos-weather-v2__day-weather .sos-w-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sos-weather-v2__full-day strong {
  color: var(--sos-weather-ink);
  font: 800 var(--font-day-temp)/1 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

.sos-weather-v2__full-day em {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--sos-weather-blue);
  font-size: var(--font-day-rain);
  font-style: normal;
}

.sos-weather-v2__full-day em svg {
  width: 15px;
  height: 15px;
}

/* ========================================================================== */
/* GRAFICO E INFORMACOES                                                     */
/* ========================================================================== */
.sos-weather-v2__hourly-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, .8fr);
  gap: 16px;
  margin-top: 24px;
}

.sos-weather-v2__panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.sos-weather-v2__panel-heading h2 span {
  color: var(--sos-weather-muted);
  font: 600 13px/1 "Open Sans", Arial, sans-serif;
}

.sos-weather-v2__chart {
  position: relative;
  min-height: 325px;
}

.sos-weather-v2__chart svg {
  width: 100%;
  height: auto;
}

.sos-weather-v2__chart-grid { stroke: #E3E9E8; stroke-width: 1; }
.sos-weather-v2__chart-temp-area { fill: transparent; }
.sos-weather-v2__chart-precip-area { fill: none; }
.sos-weather-v2__chart-temp-line { fill: none; stroke: #2E5F74; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.sos-weather-v2__chart-temp-line,
.sos-weather-v2__chart-point { stroke: #2E5F74; }
.sos-weather-v2__chart-rain-bar { fill: rgba(70, 113, 56, .42); }
.sos-weather-v2__chart-precip-mark { fill: #6F9AAF; }
.sos-weather-v2__chart-label { fill: #6E7E85; font: var(--font-chart-label)/1 "Open Sans", Arial, sans-serif; }
.sos-weather-v2__chart-point { fill: #FFF; stroke-width: 2.75; cursor: pointer; }

.sos-weather-v2__chart-tooltip {
  position: absolute;
  z-index: 5;
  display: none;
  min-width: 150px;
  padding: 10px 11px;
  border: 1px solid #D4DEDC;
  border-radius: 10px;
  background: #FFF;
  box-shadow: 0 8px 24px rgba(40, 68, 76, .14);
  font-size: 11px;
  pointer-events: none;
}

.sos-weather-v2__chart-tooltip.is-visible { display: block; }

.sos-weather-v2__chart-tooltip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--sos-weather-deep);
  font: 800 13px/1 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

.sos-weather-v2__chart-tooltip span {
  display: block;
  color: #56666D;
  line-height: 1.45;
}

.sos-weather-v2__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 4px;
  color: var(--sos-weather-muted);
  font-size: var(--font-chart-legend);
}

.sos-weather-v2__legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sos-weather-v2__legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.sos-weather-v2__legend .temp { background: #2E5F74; }
.sos-weather-v2__legend .rain { background: #467138; border-radius: 2px; }
.sos-weather-v2__legend .precip { background: #6F9AAF; border-radius: 2px; }

.sos-weather-v2__info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 18px;
  margin-top: 16px;
}

/* ========================================================================== */
/* COMPARATIVO                                                               */
/* ========================================================================== */
.sos-weather-v2__compare {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.sos-weather-v2__compare-card {
  display: flex;
  min-width: 0;
  padding: 12px 8px;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--sos-weather-line);
  border-radius: 14px;
  background: #FFF;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.sos-weather-v2__compare-card:hover {
  border-color: #B7C7C1;
  box-shadow: 0 6px 18px rgba(46, 95, 116, .08);
  transform: translateY(-2px);
}

.sos-weather-v2__compare-card.is-selected {
  background: #F1F6EF;
  border-color: #A9BFA3;
}

.sos-weather-v2__compare-icon {
  width: var(--icon-compare);
  height: var(--icon-compare);
}

.sos-weather-v2__compare-icon img,
.sos-weather-v2__compare-icon .sos-w-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sos-weather-v2__compare-card strong {
  color: var(--sos-weather-ink);
  font: 800 var(--font-compare-name)/1.15 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

.sos-weather-v2__compare-card b {
  color: var(--sos-weather-deep);
  font: 800 var(--font-compare-temp)/1 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

.sos-weather-v2__compare-card small {
  color: var(--sos-weather-muted);
  font-size: var(--font-compare-desc);
  line-height: 1.25;
}

.sos-weather-v2__compare-card > span:last-child {
  color: #7A878C;
  font-size: var(--font-compare-detail);
  line-height: 1.25;
}

.sos-weather-v2__credit--full {
  margin-top: 12px;
  text-align: center;
}

/* ========================================================================== */
/* ERRO                                                                      */
/* ========================================================================== */
.sos-weather-v2--error {
  padding: 18px;
  background: #FFF8EC;
  border: 1px solid #E5D2AB;
  border-radius: 14px;
}

.sos-weather-v2--error strong {
  display: block;
  margin-bottom: 6px;
  color: var(--sos-weather-deep);
  font: 800 20px "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

.sos-weather-v2--error p {
  margin: 0;
  color: #55646A;
  font-size: 13px;
}

/* ========================================================================== */
/* RESPONSIVO — TABLET / NOTEBOOK                                            */
/* ========================================================================== */
@media (max-width: 1160px) {
  .sos-weather-v2__current-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .sos-weather-v2__current-panel { grid-column: 1 / -1; }
  .sos-weather-v2__compare { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .sos-weather-v2--home .sos-weather-v2__home-strip {
    grid-template-columns: 180px minmax(0, 1fr) 165px;
  }

  .sos-weather-v2--home .sos-weather-v2__home-brand { grid-column: 1; }
  .sos-weather-v2--home .sos-weather-v2__home-current { grid-column: 2; }
  .sos-weather-v2--home .sos-weather-v2__home-metrics { grid-column: 3; }
  .sos-weather-v2--home .sos-weather-v2__home-days {
    grid-column: 1 / -1;
    padding-left: 0;
    border-left: 0;
  }
  .sos-weather-v2--home .sos-weather-v2__cta {
    grid-column: 1 / -1;
    justify-self: end;
    width: 200px;
  }
}

@media (max-width: 860px) {
  :root {
    --font-page-title: 28px;
    --font-intro-text: 14px;
    --font-current-temp: 58px;
    --font-section-title: 21px;
    --icon-sun: 52px;
    --icon-info: 34px;
    --icon-day: 78px;
    --icon-compare: 72px;
  }

  .sos-weather-v2__intro { grid-template-columns: 1fr; }
  .sos-weather-v2__intro-copy h1,
  .sos-weather-v2__title-one-line {
    white-space: normal;
  }
  .sos-weather-v2__intro-mark { max-width: 320px; }

  .sos-weather-v2__current-main {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .sos-weather-v2__current-icon {
    width: 88px;
    height: 88px;
  }

  .sos-weather-v2__detail-grid {
    grid-column: 1 / -1;
    padding: 14px 0 0;
    border-top: 1px solid var(--sos-weather-line);
    border-left: 0;
  }

  .sos-weather-v2__compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sos-weather-v2__hourly-grid { grid-template-columns: 1fr; }

  .sos-weather-v2--home .sos-weather-v2__home-strip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .sos-weather-v2--home .sos-weather-v2__home-brand { grid-column: 1; }
  .sos-weather-v2--home .sos-weather-v2__home-current { grid-column: 2; }
  .sos-weather-v2--home .sos-weather-v2__home-metrics {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px 0 0;
    border-top: 1px solid var(--sos-weather-line);
    border-left: 0;
  }
  .sos-weather-v2--home .sos-weather-v2__home-days { grid-column: 1 / -1; }
  .sos-weather-v2--home .sos-weather-v2__cta {
    grid-column: 1 / -1;
    justify-self: end;
    width: 210px;
  }
}

/* ========================================================================== */
/* RESPONSIVO — CELULAR                                                      */
/* ========================================================================== */
@media (max-width: 560px) {
  :root {
    /* Ajuste concentrado de fontes no smartphone */
    --font-home-temp: 38px;
    --font-home-condition: 14px;
    --font-home-muted: 10px;
    --font-home-metric-label: 8.5px;
    --font-home-metric-value: 12px;
    --font-home-day-name: 12px;
    --font-home-day-date: 8px;
    --font-home-day-temp: 12px;
    --font-home-day-rain: 8px;

    --font-page-title: 28px;
    --font-intro-text: 14px;
    --font-current-temp: 52px;
    --font-current-condition: 17px;
    --font-panel-title: 22px;
    --font-section-title: 19px;
    --font-day-name: 16px;
    --font-day-date: 10px;
    --font-day-temp: 16px;
    --font-day-rain: 10px;
    --font-info-value: 14px;
    --font-compare-name: 12px;
    --font-compare-temp: 19px;
    --font-compare-desc: 9px;
    --font-compare-detail: 8px;

    --icon-home-current: 52px;
    --icon-home-day: 48px;
    --icon-detail: 39.1px;
    --icon-sun: 55.2px;
    --icon-info: 34px;
    --icon-day: 72px;
    --icon-compare: 64px;
  }

  .sos-weather-v2__intro-copy h1,
  .sos-weather-v2__title-one-line {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .sos-weather-v2__selector-row { flex-direction: column; }
  .sos-weather-v2__select,
  .sos-weather-v2__select select { width: 100%; }
  .sos-weather-v2__select select { min-width: 0; }

  .sos-weather-v2__current-grid { grid-template-columns: 1fr; }
  .sos-weather-v2__sun-panel,
  .sos-weather-v2__moon-panel { grid-column: auto; }
  .sos-weather-v2__detail-grid { grid-template-columns: 1fr 1fr; }

  /* Todos os 7 dias, um abaixo do outro. Nenhum card é ocultado. */
  .sos-weather-v2__days-full {
    grid-template-columns: 1fr;
  }

  .sos-weather-v2__full-day {
    width: 100%;
    min-height: 158px;
    padding: 10px 8px;
    border-top: 1px solid var(--sos-weather-line);
    border-left: 0;
  }

  .sos-weather-v2__full-day:first-child {
    border-top: 0;
  }

  .sos-weather-v2__section-heading {
    gap: 8px;
  }

  .sos-weather-v2__section-heading::before,
  .sos-weather-v2__section-heading::after {
    display: none;
  }

  .sos-weather-v2__section-heading h2 {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .sos-weather-v2__info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
  }

  .sos-weather-v2__chart-tooltip {
    min-width: 128px;
    font-size: 10px;
  }

  .sos-weather-v2--home .sos-weather-v2__home-strip {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .sos-weather-v2--home .sos-weather-v2__home-brand,
  .sos-weather-v2--home .sos-weather-v2__home-current,
  .sos-weather-v2--home .sos-weather-v2__home-metrics,
  .sos-weather-v2--home .sos-weather-v2__home-days,
  .sos-weather-v2--home .sos-weather-v2__cta {
    grid-column: 1;
  }

  .sos-weather-v2--home .sos-weather-v2__home-current {
    grid-template-columns: var(--icon-home-current) minmax(0, 1fr);
  }

  .sos-weather-v2--home .sos-weather-v2__home-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 10px 0 0;
  }

  .sos-weather-v2--home .sos-weather-v2__home-days {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .sos-weather-v2--home .sos-weather-v2__home-day {
    min-height: 74px;
    padding: 6px 2px;
  }

  .sos-weather-v2--home .sos-weather-v2__cta {
    width: 100%;
  }

  /* Gráfico de 24h oculto em smartphone. */
  .sos-weather-v2__chart-panel {
    display: none;
  }
}

/* ========================================================================== */
/* GRAFICO — somente desktop                                                  */
/* ========================================================================== */
@media (max-width: 1024px) {
  .sos-weather-v2__chart-panel { display: none; }
  .sos-weather-v2__hourly-grid { grid-template-columns: 1fr; }
}

/* O gráfico continua em azul/verde no desktop. */
.sos-weather-v2__chart-temp-line { stroke: #2E5F74; }
.sos-weather-v2__chart-point { stroke: #2E5F74; fill: #FFF; }
.sos-weather-v2__chart-rain-bar { fill: rgba(70, 113, 56, .42); }
.sos-weather-v2__chart-precip-mark { fill: #6F9AAF; }

/* ========================================================================== */
/* ACESSIBILIDADE                                                            */
/* ========================================================================== */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
