/* Clima v4.409: estilos restritos à página e ao link do topo, sem tocar em temas globais */
html body.pc .spj-clima-page{width:min(1170px,calc(100% - 32px));max-width:1170px;margin:28px auto 58px;color:#232b36;font-family:inherit;box-sizing:border-box;}
html body.pc .spj-clima-page *,html body.pc .spj-clima-page *::before,html body.pc .spj-clima-page *::after{box-sizing:border-box}
html body.pc .spj-clima-breadcrumb{display:flex;align-items:center;gap:10px;margin:0 0 16px;color:#343d47;font-size:13px;}
html body.pc .spj-clima-breadcrumb a{text-decoration:underline;color:inherit}
html body.pc .spj-clima-page h1{margin:0 0 20px;font-size:42px;font-weight:800;line-height:1.12;color:#252b35}
html body.pc .spj-clima-page h2{font-size:24px;line-height:1.2;font-weight:800;color:#252b35;margin:0 0 18px}
html body.pc .spj-clima-city{font-size:15px;color:#606c7c;margin:-9px 0 14px}
html body.pc .spj-clima-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:stretch}
html body.pc .spj-clima-current,html body.pc .spj-clima-outlook{border:1px solid #e0e4e8;border-radius:12px;overflow:hidden;min-width:0;background:#fff}
html body.pc .spj-clima-current{display:flex;flex-direction:column}
html body.pc .spj-clima-hero{min-height:190px;padding:22px 18px 18px;background:linear-gradient(115deg,#45bbed 0%,#087ac8 100%);color:white;display:flex;align-items:center;justify-content:space-between;gap:15px;}
html body.pc .spj-clima-hero-copy{min-width:0}
html body.pc .spj-clima-temperature{display:block;color:#fff;font-size:54px;font-weight:800;line-height:1}
html body.pc .spj-clima-condition{display:block;margin:5px 0;font-size:16px;color:#fff}
html body.pc .spj-clima-hero-copy p{color:#fff;font-size:13px;margin:5px 0;line-height:1.4}
html body.pc .spj-clima-hero-icon{display:block;width:118px;height:118px;object-fit:contain;flex:0 0 118px;image-rendering:auto}
html body.pc .spj-clima-stats{padding:13px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;flex:1}
html body.pc .spj-clima-stat{background:#f5f7fa;border:1px solid #e6edf3;border-radius:9px;padding:14px 12px;min-height:77px}
html body.pc .spj-clima-stat span{display:block;color:#758196;font-size:13px;margin-bottom:8px}
html body.pc .spj-clima-stat strong{display:block;color:#171d27;font-size:20px;line-height:1.2;font-weight:800;overflow-wrap:anywhere}
html body.pc .spj-clima-outlook{display:flex;flex-direction:column}
html body.pc .spj-clima-periods,html body.pc .spj-clima-days{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:12px;flex:1}
html body.pc .spj-clima-periods{border-bottom:1px solid #e0e4e8}
html body.pc .spj-clima-period,html body.pc .spj-clima-day{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;padding:13px 11px;border:1px solid #e9edf1;background:#fafbfc;border-radius:10px}
html body.pc .spj-clima-period-icon,html body.pc .spj-clima-day-icon{height:35px;display:flex;align-items:center}
html body.pc .spj-clima-period-icon img,html body.pc .spj-clima-day-icon img{height:38px;width:38px;object-fit:contain}
html body.pc .spj-clima-period strong,html body.pc .spj-clima-day strong{font-size:14px;font-weight:800;color:#141a22}
html body.pc .spj-clima-period span,html body.pc .spj-clima-day span{font-size:13px;line-height:1.3;color:#424d59;overflow-wrap:anywhere}
html body.pc .spj-clima-period small,html body.pc .spj-clima-day small{font-size:12px;line-height:1.35;color:#66788d}
html body.pc .spj-clima-day b{font-size:14px;color:#111827}
html body.pc .spj-clima-source{color:#7a8795;font-size:12px;margin:16px 0 42px}
html body.pc .spj-clima-source a{color:inherit;text-decoration:underline}
html body.pc .spj-clima-faq{margin-top:42px}
html body.pc .spj-clima-faq details{border:1px solid #e0e4e8;border-radius:6px;background:#fff;margin-bottom:10px;overflow:hidden}
html body.pc .spj-clima-faq summary{list-style:none;cursor:pointer;padding:21px 52px 21px 22px;position:relative;font-size:16px;line-height:1.4;font-weight:700;color:#272d36}
html body.pc .spj-clima-faq summary::-webkit-details-marker{display:none}
html body.pc .spj-clima-faq summary::after{content:'';position:absolute;right:25px;top:calc(50% - 7px);height:10px;width:10px;border-right:2px solid #253544;border-bottom:2px solid #253544;transform:rotate(45deg);transition:transform .2s}
html body.pc .spj-clima-faq details[open] summary::after{transform:rotate(225deg);top:calc(50% - 2px)}
html body.pc .spj-clima-faq details[open] summary{border-bottom:1px solid #edf0f3}
html body.pc .spj-clima-answer{padding:18px 22px 22px;font-size:15px;color:#465363;line-height:1.6}
html body.pc .spj-clima-emergency{margin-top:30px}
html body.pc .spj-clima-emergency-inner{border:1px solid #e0e4e8;border-radius:12px;padding:20px}
html body.pc .spj-clima-caption{display:block;color:#798492;letter-spacing:.08em;font-size:12px;font-weight:800;margin-bottom:10px}
html body.pc .spj-clima-emergency-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
html body.pc .spj-clima-emergency-grid>a.spj-clima-emergency-card{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:5px;min-height:83px;background:#f5f7fa;border:1px solid #e6edf3;border-radius:11px;padding:10px 6px;text-decoration:none;cursor:pointer;color:inherit;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease}
html body.pc .spj-clima-emergency-grid>a.spj-clima-emergency-card span{color:#69788b;font-size:14px}
html body.pc .spj-clima-emergency-grid>a.spj-clima-emergency-card strong{font-weight:800;font-size:24px;color:#1560c0;line-height:1.2}
html body.pc .spj-clima-emergency-grid>a.spj-clima-emergency-card:hover,
html body.pc .spj-clima-emergency-grid>a.spj-clima-emergency-card:focus-visible{background:#edf5ff;background:color-mix(in srgb,var(--spb-page-accent,var(--spb-primary,var(--primary,#2161b7))) 8%,#ffffff);border-color:#cbdff8;border-color:color-mix(in srgb,var(--spb-page-accent,var(--spb-primary,var(--primary,#2161b7))) 25%,#ffffff)}
html body.pc .spj-clima-emergency-grid>a.spj-clima-emergency-card:focus-visible{outline:2px solid var(--spb-page-accent,var(--spb-primary,#2161b7));outline-offset:2px}
html body.pc .spj-clima-disclaimer{margin:30px 0 0;border:1px solid #f9c6bd;border-radius:12px;background:#fff0ef;color:#963b2a;padding:18px 20px;font-size:15px;line-height:2}
html body.pc .spj-clima-unavailable{padding:24px;background:#fff7ed;border:1px solid #ffddb7;border-radius:12px;font-size:16px;color:#75451d;margin:20px 0}
html body.pc .spj-clima-unavailable p{margin:8px 0 0}
@media(max-width:860px){html body.pc .spj-clima-grid{grid-template-columns:1fr}html body.pc .spj-clima-page{margin-top:20px}html body.pc .spj-clima-page h1{font-size:34px}}
@media(max-width:520px){html body.pc .spj-clima-page{width:calc(100% - 24px);margin-bottom:40px}html body.pc .spj-clima-periods,html body.pc .spj-clima-days{gap:5px;padding:8px}html body.pc .spj-clima-period,html body.pc .spj-clima-day{padding:10px 7px;gap:5px}html body.pc .spj-clima-period strong,html body.pc .spj-clima-day strong{font-size:12px}html body.pc .spj-clima-period span,html body.pc .spj-clima-day span{font-size:11px}html body.pc .spj-clima-day b{font-size:12px}html body.pc .spj-clima-day small{font-size:10px}html body.pc .spj-clima-hero{min-height:160px}html body.pc .spj-clima-hero-icon{width:75px;height:75px;flex-basis:75px}html body.pc .spj-clima-hero-copy p{font-size:12px}html body.pc .spj-clima-faq summary{padding:17px 40px 17px 15px;font-size:14px}html body.pc .spj-clima-answer{padding:15px;font-size:14px}html body.pc .spj-clima-emergency-inner{padding:11px}html body.pc .spj-clima-emergency-grid{gap:5px}html body.pc .spj-clima-emergency-grid span{font-size:11px}html body.pc .spj-clima-emergency-grid>a.spj-clima-emergency-card strong{font-size:21px}html body.pc .spj-clima-disclaimer{font-size:13px;line-height:1.65;padding:12px}}

/* v4.416 — somente /clima. Duas colunas de previsão no celular e
   respiro superior mesmo sem espaço publicitário. */
@media screen and (max-width: 600px) {
  html body.pc main.spj-clima-page {
    padding-top: 18px !important;
    margin-top: 24px !important;
  }
  html body.pc .spj-clima-periods,
  html body.pc .spj-clima-days {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 12px !important;
    align-content: start !important;
  }
  html body.pc .spj-clima-period,
  html body.pc .spj-clima-day {
    padding: 12px 10px !important;
    gap: 7px !important;
    min-height: 132px !important;
  }
  html body.pc .spj-clima-period:last-child:nth-child(odd),
  html body.pc .spj-clima-day:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    min-height: 112px !important;
  }
  html body.pc .spj-clima-period strong,
  html body.pc .spj-clima-day strong {font-size: 13px !important;}
  html body.pc .spj-clima-period span,
  html body.pc .spj-clima-day span {font-size: 12px !important;}
  html body.pc .spj-clima-day b {font-size: 14px !important;}
  html body.pc .spj-clima-day small {font-size: 11px !important;}
}


/* v4.417 — grade contínua de seis cartões no celular:
   manhã/tarde/noite + ontem/amanhã/depois, 2 colunas x 3 linhas.
   A mudança é apenas visual, sem duplicar nem mover dados da API. */
@media screen and (max-width: 600px) {
  html body.pc .spj-clima-outlook {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 10px !important;
    padding: 12px !important;
    align-content: start !important;
  }
  html body.pc .spj-clima-outlook > .spj-clima-periods,
  html body.pc .spj-clima-outlook > .spj-clima-days {
    display: contents !important;
  }
  html body.pc .spj-clima-outlook .spj-clima-period,
  html body.pc .spj-clima-outlook .spj-clima-day {
    grid-column: auto !important;
    min-width: 0 !important;
    min-height: 145px !important;
    height: auto !important;
  }
  html body.pc .spj-clima-outlook .spj-clima-period:last-child:nth-child(odd),
  html body.pc .spj-clima-outlook .spj-clima-day:last-child:nth-child(odd) {
    grid-column: auto !important;
    min-height: 145px !important;
  }
}
