.oco-tempo,
.oco-tempo * { box-sizing: border-box; }

.oco-tempo {
    --oco-bg: #ffffff;
    --oco-bg-2: #f7f9fc;
    --oco-text: #172033;
    --oco-muted: #697386;
    --oco-line: #e7ebf1;
    --oco-accent: #1769e0;
    --oco-accent-soft: color-mix(in srgb, var(--oco-accent) 10%, transparent);
    display: block;
    width: 100%;
    max-width: 980px;
    min-width: 0;
    margin: 18px auto;
    padding: 24px;
    border: 1px solid var(--oco-line);
    border-radius: 22px;
    background: linear-gradient(180deg, var(--oco-bg) 0%, var(--oco-bg-2) 100%);
    color: var(--oco-text);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .09);
    font-family: inherit;
    line-height: 1.4;
    overflow: hidden;
    overflow-wrap: anywhere;
    container-type: inline-size;
    container-name: oco-tempo-card;
}

.oco-tempo img,
.oco-tempo svg { max-width: 100%; }

.oco-tempo button,
.oco-tempo input { font: inherit; max-width: 100%; }

.oco-tempo button { -webkit-tap-highlight-color: transparent; }

.oco-tempo__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
    margin-bottom: 16px;
}

.oco-tempo__heading { flex: 1 1 auto; min-width: 0; }
.oco-tempo__eyebrow {
    margin: 0 0 5px;
    color: var(--oco-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1.35;
    text-transform: uppercase;
}

.oco-tempo__location {
    margin: 0;
    padding: 0;
    color: var(--oco-text);
    font-family: inherit;
    font-size: clamp(21px, 3vw, 30px);
    font-weight: 700;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.oco-tempo__actions {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

.oco-tempo__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--oco-line);
    border-radius: 999px;
    background: var(--oco-bg);
    color: var(--oco-text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.oco-tempo__action:hover { border-color: var(--oco-accent); transform: translateY(-1px); }
.oco-tempo__action:focus-visible,
.oco-tempo__search-close:focus-visible,
.oco-tempo__city-result:focus-visible,
.oco-tempo__auto-location:focus-visible {
    outline: 2px solid var(--oco-accent);
    outline-offset: 2px;
}
.oco-tempo__action:disabled { opacity: .55; cursor: wait; transform: none; }
.oco-tempo__action-icon { flex: 0 0 auto; color: var(--oco-accent); font-size: 16px; line-height: 1; }

.oco-tempo__search {
    width: 100%;
    min-width: 0;
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid var(--oco-line);
    border-radius: 16px;
    background: var(--oco-bg);
}
.oco-tempo__searchbox { position: relative; width: 100%; min-width: 0; }
.oco-tempo__search-input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 44px 0 14px;
    border: 1px solid var(--oco-line);
    border-radius: 12px;
    outline: none;
    background: var(--oco-bg-2);
    color: var(--oco-text);
    font-size: 16px; /* evita zoom automático no iPhone */
    line-height: 1;
}
.oco-tempo__search-input:focus { border-color: var(--oco-accent); box-shadow: 0 0 0 3px var(--oco-accent-soft); }
.oco-tempo__search-close {
    position: absolute;
    right: 5px;
    top: 5px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--oco-muted);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}
.oco-tempo__search-results { display: grid; width: 100%; min-width: 0; gap: 6px; margin-top: 8px; color: var(--oco-muted); font-size: 12px; }
.oco-tempo__city-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--oco-text);
    cursor: pointer;
    text-align: left;
}
.oco-tempo__city-result:hover { background: var(--oco-bg-2); }
.oco-tempo__city-result strong { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.oco-tempo__city-result span { min-width: 0; color: var(--oco-muted); font-size: 11px; text-align: right; overflow-wrap: anywhere; }
.oco-tempo__auto-location {
    max-width: 100%;
    margin: 9px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--oco-accent);
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
}

.oco-tempo__status { width: 100%; min-width: 0; padding: 26px 0; color: var(--oco-muted); }
.oco-tempo__content { width: 100%; min-width: 0; }

.oco-tempo__now {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    gap: 26px;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 22px 0 24px;
    border-top: 1px solid var(--oco-line);
}

.oco-tempo__hero { display: flex; align-items: center; gap: 18px; min-width: 0; }
.oco-tempo__mainicon {
    display: grid;
    place-items: center;
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
    border-radius: 28px;
    background: var(--oco-accent-soft);
    color: var(--oco-accent);
}
.oco-tempo__weather-svg { display: block; width: 100%; height: 100%; }
.oco-tempo__weather-svg--main { width: 72px; height: 72px; }
.oco-tempo__current { min-width: 0; }
.oco-tempo__temperature {
    color: var(--oco-text);
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 850;
    letter-spacing: -.065em;
    line-height: .88;
    white-space: nowrap;
}
.oco-tempo__temperature sup { margin-left: 4px; font-size: .31em; vertical-align: top; letter-spacing: 0; }
.oco-tempo__desc { margin-top: 10px; color: var(--oco-muted); font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }

.oco-tempo__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
    min-width: 0;
}
.oco-tempo__meta-item {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid var(--oco-line);
    border-radius: 14px;
    background: var(--oco-bg);
}
.oco-tempo__meta-item span { display: block; margin-bottom: 4px; color: var(--oco-muted); font-size: 10px; font-weight: 700; line-height: 1.25; text-transform: uppercase; letter-spacing: .04em; overflow-wrap: anywhere; }
.oco-tempo__meta-item strong { display: block; min-width: 0; color: var(--oco-text); font-size: 15px; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }

.oco-tempo__forecast-title { margin: 2px 0 10px; font-size: 12px; font-weight: 800; line-height: 1.3; text-transform: uppercase; letter-spacing: .065em; color: var(--oco-muted); }
.oco-tempo__days {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    gap: 9px;
    width: 100%;
    min-width: 0;
}
.oco-tempo__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 126px;
    padding: 14px 8px;
    border: 1px solid var(--oco-line);
    border-radius: 16px;
    background: var(--oco-bg);
    text-align: center;
}
.oco-tempo__day:first-child { border-color: color-mix(in srgb, var(--oco-accent) 32%, var(--oco-line)); background: var(--oco-accent-soft); }
.oco-tempo__dayname { max-width: 100%; color: var(--oco-muted); font-size: 11px; font-weight: 800; line-height: 1.2; text-transform: capitalize; overflow-wrap: anywhere; }
.oco-tempo__dayicon { display: grid; place-items: center; width: 42px; height: 42px; max-width: 100%; color: var(--oco-accent); }
.oco-tempo__weather-svg--small { width: 38px; height: 38px; }
.oco-tempo__temps { display: flex; align-items: baseline; justify-content: center; gap: 6px; min-width: 0; font-size: 14px; white-space: nowrap; }
.oco-tempo__temps small { color: var(--oco-muted); font-size: 12px; }
.oco-tempo__rain { max-width: 100%; color: var(--oco-accent); font-size: 10px; font-weight: 750; line-height: 1.2; white-space: nowrap; }
.oco-tempo__rain span { font-size: 6px; vertical-align: middle; }
.oco-tempo__credit { max-width: 100%; margin-top: 14px; color: var(--oco-muted); font-size: 9px; line-height: 1.4; text-align: right; overflow-wrap: anywhere; }
.oco-tempo__credit a { color: inherit; }

.oco-tempo--dark {
    --oco-bg: #151922;
    --oco-bg-2: #1b212c;
    --oco-text: #f4f7fb;
    --oco-muted: #a8b0bf;
    --oco-line: #2b3340;
}

@media (prefers-color-scheme: dark) {
    .oco-tempo--auto {
        --oco-bg: #151922;
        --oco-bg-2: #1b212c;
        --oco-text: #f4f7fb;
        --oco-muted: #a8b0bf;
        --oco-line: #2b3340;
    }
}

/* Responde à largura real do bloco, inclusive dentro de colunas e sidebars. */
@container oco-tempo-card (max-width: 720px) {
    .oco-tempo__head { align-items: flex-start; }
    .oco-tempo__actions { flex: 0 0 auto; }
    .oco-tempo__action span:last-child { display: none; }
    .oco-tempo__action { width: 42px; min-width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 50%; }
    .oco-tempo__now { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .oco-tempo__mainicon { width: 86px; height: 86px; flex-basis: 86px; border-radius: 24px; }
    .oco-tempo__weather-svg--main { width: 62px; height: 62px; }
    .oco-tempo__days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@container oco-tempo-card (max-width: 500px) {
    .oco-tempo__head { flex-direction: column; gap: 12px; }
    .oco-tempo__actions { width: 100%; justify-content: flex-start; }
    .oco-tempo__action { width: auto; min-width: 0; height: auto; min-height: 40px; padding: 8px 11px; border-radius: 999px; }
    .oco-tempo__action span:last-child { display: inline; }
    .oco-tempo__hero { gap: 12px; }
    .oco-tempo__mainicon { width: 74px; height: 74px; flex-basis: 74px; border-radius: 20px; }
    .oco-tempo__weather-svg--main { width: 54px; height: 54px; }
    .oco-tempo__temperature { font-size: clamp(44px, 17cqw, 62px); }
    .oco-tempo__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .oco-tempo__days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .oco-tempo__day { min-height: 118px; }
    .oco-tempo__city-result { align-items: flex-start; flex-direction: column; gap: 2px; }
    .oco-tempo__city-result span { text-align: left; }
    .oco-tempo__credit { text-align: left; }
}

@container oco-tempo-card (max-width: 340px) {
    .oco-tempo__actions { display: grid; grid-template-columns: minmax(0, 1fr); }
    .oco-tempo__action { width: 100%; }
    .oco-tempo__hero { align-items: flex-start; }
    .oco-tempo__mainicon { width: 66px; height: 66px; flex-basis: 66px; }
    .oco-tempo__weather-svg--main { width: 48px; height: 48px; }
    .oco-tempo__meta { grid-template-columns: minmax(0, 1fr); }
    .oco-tempo__days { grid-template-columns: minmax(0, 1fr); }
}

/* Fallback para navegadores sem container queries. */
@media (max-width: 780px) {
    .oco-tempo { max-width: 100%; padding: 18px; border-radius: 18px; }
    .oco-tempo__now { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 520px) {
    .oco-tempo { width: 100%; max-width: 100%; margin: 12px 0; padding: 15px; border-radius: 16px; }
    .oco-tempo__location { font-size: 21px; }
}

@media (max-width: 380px) {
    .oco-tempo { padding: 12px; }
}

/* =========================================================
   FORMATOS DE EXIBIÇÃO — v0.4.0
   completo | horizontal | compacto | mini | barra | cabecalho | previsao
   ========================================================= */

.oco-tempo__barline { display: none; }

/* Horizontal: ideal para home e áreas largas. */
.oco-tempo--format-horizontal { max-width: 1200px; }
.oco-tempo--format-horizontal .oco-tempo__content {
    display: grid;
    grid-template-columns: minmax(300px, .85fr) minmax(440px, 1.35fr);
    grid-template-rows: auto 1fr auto;
    column-gap: 24px;
    align-items: start;
}
.oco-tempo--format-horizontal .oco-tempo__now {
    grid-column: 1;
    grid-row: 1 / span 2;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    height: 100%;
    padding: 8px 0 0;
    border-top: 0;
}
.oco-tempo--format-horizontal .oco-tempo__forecast-title {
    grid-column: 2;
    grid-row: 1;
    margin-top: 6px;
}
.oco-tempo--format-horizontal .oco-tempo__days {
    grid-column: 2;
    grid-row: 2;
}
.oco-tempo--format-horizontal .oco-tempo__credit {
    grid-column: 1 / -1;
    grid-row: 3;
}

/* Compacto: card para colunas e widgets, mostra apenas os 3 primeiros dias. */
.oco-tempo--format-compacto {
    max-width: 620px;
    padding: 19px;
    border-radius: 18px;
}
.oco-tempo--format-compacto .oco-tempo__head { margin-bottom: 12px; }
.oco-tempo--format-compacto .oco-tempo__location { font-size: clamp(20px, 5cqw, 26px); }
.oco-tempo--format-compacto .oco-tempo__now {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0 18px;
}
.oco-tempo--format-compacto .oco-tempo__meta { display: none; }
.oco-tempo--format-compacto .oco-tempo__mainicon {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
    border-radius: 21px;
}
.oco-tempo--format-compacto .oco-tempo__weather-svg--main { width: 56px; height: 56px; }
.oco-tempo--format-compacto .oco-tempo__temperature { font-size: clamp(45px, 12cqw, 62px); }
.oco-tempo--format-compacto .oco-tempo__days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.oco-tempo--format-compacto .oco-tempo__day:nth-child(n+4) { display: none; }
.oco-tempo--format-compacto .oco-tempo__day { min-height: 112px; }

/* Mini: temperatura atual para sidebar, cards e áreas estreitas. */
.oco-tempo--format-mini {
    max-width: 390px;
    padding: 16px;
    border-radius: 17px;
}
.oco-tempo--format-mini .oco-tempo__eyebrow { display: none; }
.oco-tempo--format-mini .oco-tempo__head { margin-bottom: 9px; gap: 10px; }
.oco-tempo--format-mini .oco-tempo__location { font-size: clamp(18px, 6cqw, 23px); }
.oco-tempo--format-mini .oco-tempo__action {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 50%;
}
.oco-tempo--format-mini .oco-tempo__action span:last-child { display: none; }
.oco-tempo--format-mini .oco-tempo__now {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 14px 0 2px;
}
.oco-tempo--format-mini .oco-tempo__hero { gap: 12px; }
.oco-tempo--format-mini .oco-tempo__mainicon {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border-radius: 18px;
}
.oco-tempo--format-mini .oco-tempo__weather-svg--main { width: 46px; height: 46px; }
.oco-tempo--format-mini .oco-tempo__temperature { font-size: clamp(40px, 15cqw, 52px); }
.oco-tempo--format-mini .oco-tempo__desc { margin-top: 6px; font-size: 13px; }
.oco-tempo--format-mini .oco-tempo__meta,
.oco-tempo--format-mini .oco-tempo__forecast-title,
.oco-tempo--format-mini .oco-tempo__days,
.oco-tempo--format-mini .oco-tempo__credit { display: none; }

/* Barra: ideal para cabeçalho, topo/rodapé de portal e faixas horizontais. */
.oco-tempo--format-barra {
    position: relative;
    max-width: none;
    margin: 10px auto;
    padding: 11px 104px 11px 14px;
    border-radius: 13px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
}
.oco-tempo--format-barra .oco-tempo__head {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 12px;
    margin: 0;
    transform: translateY(-50%);
}
.oco-tempo--format-barra .oco-tempo__heading { display: none; }
.oco-tempo--format-barra .oco-tempo__actions { flex-wrap: nowrap; gap: 5px; }
.oco-tempo--format-barra .oco-tempo__action {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 50%;
}
.oco-tempo--format-barra .oco-tempo__action span:last-child { display: none; }
.oco-tempo--format-barra .oco-tempo__search {
    margin: 0 0 10px;
    padding: 10px;
}
.oco-tempo--format-barra .oco-tempo__status { padding: 9px 0; }
.oco-tempo--format-barra .oco-tempo__barline {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 42px;
}
.oco-tempo--format-barra .oco-tempo__baricon {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    color: var(--oco-accent);
}
.oco-tempo--format-barra .oco-tempo__weather-svg--bar { width: 36px; height: 36px; }
.oco-tempo--format-barra .oco-tempo__barlocation {
    min-width: 0;
    max-width: 34%;
    color: var(--oco-text);
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.oco-tempo--format-barra .oco-tempo__bartemp {
    flex: 0 0 auto;
    color: var(--oco-text);
    font-size: 25px;
    font-weight: 850;
    letter-spacing: -.04em;
    white-space: nowrap;
}
.oco-tempo--format-barra .oco-tempo__bardesc {
    min-width: 0;
    color: var(--oco-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.oco-tempo--format-barra .oco-tempo__barrange {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--oco-muted);
    font-size: 11px;
    white-space: nowrap;
}
.oco-tempo--format-barra .oco-tempo__barrange b { color: var(--oco-text); font-weight: 750; }
.oco-tempo--format-barra .oco-tempo__now,
.oco-tempo--format-barra .oco-tempo__forecast-title,
.oco-tempo--format-barra .oco-tempo__days,
.oco-tempo--format-barra .oco-tempo__credit { display: none; }


/* Cabeçalho do portal: linha mínima para ficar ao lado de data, redes sociais ou menu. */
.oco-tempo--format-cabecalho {
    position: relative;
    display: inline-block;
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    vertical-align: middle;
    container-type: normal;
    container-name: none;
}
.oco-tempo--format-cabecalho .oco-tempo__head {
    position: absolute;
    z-index: 4;
    top: 50%;
    right: 0;
    width: auto;
    margin: 0;
    transform: translateY(-50%);
}
.oco-tempo--format-cabecalho .oco-tempo__heading { display: none; }
.oco-tempo--format-cabecalho .oco-tempo__actions { gap: 2px; flex-wrap: nowrap; }
.oco-tempo--format-cabecalho .oco-tempo__action {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
}
.oco-tempo--format-cabecalho .oco-tempo__action:hover {
    background: var(--oco-accent-soft);
    transform: none;
}
.oco-tempo--format-cabecalho .oco-tempo__action span:last-child { display: none; }
.oco-tempo--format-cabecalho .oco-tempo__action-icon { font-size: 14px; }
.oco-tempo--format-cabecalho .oco-tempo__status {
    min-width: 120px;
    padding: 5px 64px 5px 0;
    font-size: 12px;
    white-space: nowrap;
}
.oco-tempo--format-cabecalho .oco-tempo__content {
    display: inline-block;
    width: auto;
    max-width: 100%;
    padding-right: 62px;
}
.oco-tempo--format-cabecalho .oco-tempo__barline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 30px;
    white-space: nowrap;
}
.oco-tempo--format-cabecalho .oco-tempo__baricon {
    display: grid;
    place-items: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    color: var(--oco-accent);
}
.oco-tempo--format-cabecalho .oco-tempo__weather-svg--bar { width: 24px; height: 24px; }
.oco-tempo--format-cabecalho .oco-tempo__barlocation {
    display: inline-block;
    min-width: 0;
    max-width: 180px;
    overflow: hidden;
    color: var(--oco-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.oco-tempo--format-cabecalho .oco-tempo__bartemp {
    color: var(--oco-text);
    font-size: 14px;
    font-weight: 850;
    letter-spacing: -.02em;
}
.oco-tempo--format-cabecalho .oco-tempo__bardesc {
    max-width: 130px;
    overflow: hidden;
    color: var(--oco-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.oco-tempo--format-cabecalho .oco-tempo__barrange {
    color: var(--oco-muted);
    font-size: 10px;
}
.oco-tempo--format-cabecalho .oco-tempo__barrange b { color: var(--oco-text); font-weight: 750; }
.oco-tempo--format-cabecalho .oco-tempo__now,
.oco-tempo--format-cabecalho .oco-tempo__forecast-title,
.oco-tempo--format-cabecalho .oco-tempo__days,
.oco-tempo--format-cabecalho .oco-tempo__credit { display: none; }
.oco-tempo--format-cabecalho .oco-tempo__search {
    position: absolute;
    z-index: 9999;
    top: calc(100% + 8px);
    right: 0;
    width: min(340px, calc(100vw - 24px));
    margin: 0;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
}

/* Somente previsão: grade limpa de próximos dias. */
.oco-tempo--format-previsao { max-width: 980px; }
.oco-tempo--format-previsao .oco-tempo__now,
.oco-tempo--format-previsao .oco-tempo__barline { display: none; }
.oco-tempo--format-previsao .oco-tempo__forecast-title {
    padding-top: 16px;
    border-top: 1px solid var(--oco-line);
}

/* Ajustes por largura real do componente. */
@container oco-tempo-card (max-width: 840px) {
    .oco-tempo--format-horizontal .oco-tempo__content {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        row-gap: 0;
    }
    .oco-tempo--format-horizontal .oco-tempo__now,
    .oco-tempo--format-horizontal .oco-tempo__forecast-title,
    .oco-tempo--format-horizontal .oco-tempo__days,
    .oco-tempo--format-horizontal .oco-tempo__credit {
        grid-column: 1;
        grid-row: auto;
    }
    .oco-tempo--format-horizontal .oco-tempo__now {
        height: auto;
        padding: 16px 0 18px;
        border-top: 1px solid var(--oco-line);
    }
}

@container oco-tempo-card (max-width: 560px) {
    .oco-tempo--format-compacto .oco-tempo__days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .oco-tempo--format-compacto .oco-tempo__day { padding-left: 5px; padding-right: 5px; }

    .oco-tempo--format-barra {
        padding: 11px 12px;
    }
    .oco-tempo--format-barra .oco-tempo__head {
        position: static;
        justify-content: flex-end;
        margin: 0 0 6px;
        transform: none;
    }
    .oco-tempo--format-barra .oco-tempo__barline {
        display: grid;
        grid-template-columns: 42px auto minmax(0, 1fr);
        gap: 3px 9px;
    }
    .oco-tempo--format-barra .oco-tempo__baricon { grid-row: 1 / span 2; }
    .oco-tempo--format-barra .oco-tempo__bartemp { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
    .oco-tempo--format-barra .oco-tempo__barlocation {
        grid-column: 3;
        grid-row: 1;
        max-width: 100%;
        font-size: 13px;
    }
    .oco-tempo--format-barra .oco-tempo__bardesc {
        grid-column: 3;
        grid-row: 2;
        font-size: 11px;
    }
    .oco-tempo--format-barra .oco-tempo__barrange {
        grid-column: 1 / -1;
        grid-row: 3;
        margin: 5px 0 0;
        padding-top: 7px;
        border-top: 1px solid var(--oco-line);
        text-align: left;
    }

    .oco-tempo--format-cabecalho .oco-tempo__bardesc,
    .oco-tempo--format-cabecalho .oco-tempo__barrange { display: none; }
    .oco-tempo--format-cabecalho .oco-tempo__barlocation { max-width: 135px; }
}


@container oco-tempo-card (max-width: 390px) {
    .oco-tempo--format-compacto .oco-tempo__days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .oco-tempo--format-compacto .oco-tempo__day:nth-child(3) { display: none; }

    .oco-tempo--format-mini .oco-tempo__head { align-items: center; flex-direction: row; }
    .oco-tempo--format-mini .oco-tempo__actions { width: auto; display: flex; }
    .oco-tempo--format-mini .oco-tempo__action { width: 36px; min-width: 36px; }
    .oco-tempo--format-mini .oco-tempo__action span:last-child { display: none; }

    .oco-tempo--format-cabecalho .oco-tempo__barlocation { max-width: 95px; }
    .oco-tempo--format-cabecalho .oco-tempo__content { padding-right: 34px; }
    .oco-tempo--format-cabecalho .oco-tempo__locate { display: none !important; }
}


/* Responsividade específica do formato de cabeçalho. */
@media (max-width: 760px) {
    .oco-tempo--format-cabecalho .oco-tempo__barrange { display: none; }
    .oco-tempo--format-cabecalho .oco-tempo__barlocation { max-width: 140px; }
}
@media (max-width: 520px) {
    .oco-tempo--format-cabecalho {
        display: inline-block;
        width: auto;
        max-width: 100%;
        margin: 0;
        padding: 0;
        border-radius: 0;
    }
    .oco-tempo--format-cabecalho .oco-tempo__bardesc,
    .oco-tempo--format-cabecalho .oco-tempo__barrange { display: none; }
    .oco-tempo--format-cabecalho .oco-tempo__barlocation { max-width: 105px; }
}
@media (max-width: 380px) {
    .oco-tempo--format-cabecalho { padding: 0; }
    .oco-tempo--format-cabecalho .oco-tempo__barlocation { max-width: 85px; }
    .oco-tempo--format-cabecalho .oco-tempo__content { padding-right: 34px; }
    .oco-tempo--format-cabecalho .oco-tempo__locate { display: none !important; }
}
