/**
 * Tomorrow Weather WP frontend styles.
 * Version: 1.2.2
 */
.twwp-weather {
    box-sizing: border-box;
    max-width: 420px;
    padding: 18px;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
}
.twwp-location { font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.twwp-temp { font-size: 42px; line-height: 1; font-weight: 700; margin-bottom: 12px; }
.twwp-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; }
.twwp-forecast { display: grid; gap: 8px; margin-top: 16px; }
.twwp-day { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #eee; padding-top: 8px; }
.twwp-day-date { font-weight: 600; }
.twwp-credit { margin-top: 14px; font-size: 11px; opacity: 0.7; }
.twwp-layout-compact .twwp-meta span:not(:first-child),
.twwp-layout-compact .twwp-credit { display: none; }

.twwp-layout-compact {
    max-width: 343px;
    padding: 12px 14px;
    text-align: center;
}
.twwp-layout-compact .twwp-location {
    margin-bottom: 6px;
}
.twwp-layout-compact .twwp-compact-temp-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}
.twwp-layout-compact .twwp-compact-icon {
    font-size: 34px;
    line-height: 1;
}
.twwp-layout-compact .twwp-temp {
    margin-bottom: 0;
}
.twwp-layout-compact .twwp-meta {
    justify-content: center;
}
.twwp-error { padding: 12px; border: 1px solid #cc0000; background: #fff6f6; color: #8a0000; }

/* Version 1.0.3 - Modern weather card layout and settings preview. */
.twwp-layout-modern {
    max-width: 343px;
    border: 0;
    border-radius: 16px;
    padding: 18px 20px 16px;
    text-align: center;
    box-shadow: none;
}
.twwp-modern-location {
    font-size: 18pt;
    line-height: 1.2;
    font-weight: 700;
    opacity: 0.62;
    margin-bottom: 14px;
}
.twwp-modern-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 4px;
}
.twwp-modern-icon {
    font-size: 58px;
    line-height: 1;
}
.twwp-modern-temp {
    font-size: 64px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: -2px;
}
.twwp-modern-condition {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    margin-top: 8px;
}
.twwp-modern-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 8px;
    font-size: 15px;
    line-height: 1.4;
    opacity: 0.58;
    margin-top: 4px;
}
.twwp-modern-meta span:not(:last-child)::after {
    content: '•';
    margin-left: 8px;
}
.twwp-admin-layout-preview {
    box-sizing: border-box;
    width: 343px;
    max-width: 100%;
    border-radius: 16px;
    padding: 18px 20px 16px;
    text-align: center;
    margin-top: 12px;
}
.twwp-preview-location { font-size: 16px; opacity: 0.62; margin-bottom: 26px; }
.twwp-preview-main { display: flex; align-items: center; justify-content: center; gap: 12px; }
.twwp-preview-icon { font-size: 58px; line-height: 1; }
.twwp-preview-temp { font-size: 64px; line-height: 1; font-weight: 400; letter-spacing: -2px; }
.twwp-preview-condition { font-size: 17px; line-height: 1.3; font-weight: 700; margin-top: 8px; }
.twwp-preview-meta { font-size: 15px; line-height: 1.4; opacity: 0.58; margin-top: 4px; }


/* Version 1.0.5 - Admin preview now reuses frontend layout classes and switches live. */
.twwp-admin-layout-preview.twwp-weather {
    margin-top: 12px;
}
.twwp-admin-layout-preview.twwp-layout-modern {
    width: 343px;
}
.twwp-admin-layout-preview.twwp-layout-card,
.twwp-admin-layout-preview.twwp-layout-forecast {
    text-align: left;
}
.twwp-admin-layout-preview.twwp-layout-compact {
    text-align: center;
}

/* Version 1.0.6 - Full forecast page and clickable card support. */
.twwp-weather-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}
.twwp-weather-link:hover,
.twwp-weather-link:focus {
    color: inherit;
    text-decoration: none;
}
.twwp-full-weather {
    box-sizing: border-box;
    max-width: 960px;
    padding: 28px;
    border: 1px solid #d9d9d9;
    border-radius: 18px;
    font-family: inherit;
}
.twwp-full-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}
.twwp-full-kicker {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .65;
    margin-bottom: 6px;
}
.twwp-full-title {
    margin: 0;
    font-size: 32px;
    line-height: 1.15;
}
.twwp-full-condition {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
}
.twwp-full-now {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}
.twwp-full-icon {
    font-size: 56px;
    line-height: 1;
}
.twwp-full-temp {
    font-size: 58px;
    line-height: 1;
    font-weight: 700;
}
.twwp-full-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}
.twwp-full-stats div {
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 12px;
    padding: 14px;
    background: rgba(255,255,255,.45);
}
.twwp-full-stats strong,
.twwp-full-stats span {
    display: block;
}
.twwp-full-stats strong {
    font-size: 20px;
    line-height: 1.2;
}
.twwp-full-stats span {
    margin-top: 4px;
    font-size: 13px;
    opacity: .65;
}
.twwp-full-section h3 {
    margin: 0 0 12px;
    font-size: 22px;
}
.twwp-full-days {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.twwp-full-day {
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 12px;
    padding: 14px;
    background: rgba(255,255,255,.45);
}
.twwp-full-day-date {
    font-weight: 700;
    margin-bottom: 8px;
}
.twwp-full-day-main {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}
.twwp-full-day-label,
.twwp-full-day-rain {
    margin-top: 6px;
    font-size: 13px;
    opacity: .7;
}
@media (max-width: 600px) {
    .twwp-full-weather { padding: 20px; }
    .twwp-full-hero { display: block; }
    .twwp-full-now { margin-top: 18px; }
    .twwp-full-title { font-size: 26px; }
    .twwp-full-temp { font-size: 48px; }
}

/* Version 1.0.7 - Separate full forecast link below the card. */
.twwp-full-forecast-link {
    max-width: 343px;
    margin: 8px 0 0;
    text-align: center;
    font-size: 14px;
}
.twwp-full-forecast-link a {
    text-decoration: underline;
}

/* Version 1.0.8 - Modern full forecast dashboard. */
.twwp-full-weather-modern {
    max-width: 1100px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent !important;
    color: inherit !important;
}
.twwp-full-weather-modern .twwp-full-hero-card,
.twwp-full-weather-modern .twwp-full-panel,
.twwp-full-weather-modern .twwp-full-metric,
.twwp-full-weather-modern .twwp-full-day,
.twwp-field-details {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.twwp-full-hero-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f6fbff 55%, #eef6ff 100%) !important;
}
.twwp-full-weather-modern .twwp-full-title { font-size: 34px; }
.twwp-full-updated { margin-top: 8px; font-size: 13px; opacity: .58; }
.twwp-full-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 14px;
}
.twwp-full-top-metrics { margin-bottom: 18px; }
.twwp-full-metric { padding: 16px; }
.twwp-full-metric span,
.twwp-field-item span { display: block; font-size: 12px; opacity: .62; margin-bottom: 6px; }
.twwp-full-metric strong { display: block; font-size: 24px; line-height: 1.1; }
.twwp-full-metric em { display: block; margin-top: 6px; font-style: normal; font-size: 12px; opacity: .55; }
.twwp-full-panel { padding: 22px; margin-top: 18px; }
.twwp-full-panel h3,
.twwp-field-details summary { font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.twwp-hourly-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.twwp-hourly-card {
    flex: 0 0 112px;
    padding: 14px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    background: #f8fafc;
    text-align: center;
}
.twwp-hourly-time { font-size: 13px; opacity: .65; }
.twwp-hourly-icon { font-size: 28px; margin: 8px 0; }
.twwp-hourly-card strong { display: block; font-size: 19px; }
.twwp-hourly-card span { display: block; margin-top: 5px; font-size: 12px; opacity: .66; }
.twwp-full-weather-modern .twwp-full-days { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.twwp-full-weather-modern .twwp-full-day { background: #f8fafc; box-shadow: none; }
.twwp-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 10px;
}
.twwp-field-item {
    padding: 13px;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 12px;
    background: #f8fafc;
}
.twwp-field-item strong { display: block; font-size: 15px; line-height: 1.25; }
.twwp-field-details {
    padding: 18px 20px;
    margin-top: 14px;
}
.twwp-field-details summary {
    cursor: pointer;
    margin-bottom: 0;
}
.twwp-field-details[open] summary { margin-bottom: 16px; }
.twwp-full-weather-modern .twwp-credit { text-align: right; margin-top: 14px; }
@media (max-width: 700px) {
    .twwp-full-hero-card { display: block; padding: 22px; }
    .twwp-full-weather-modern .twwp-full-now { margin-top: 18px; justify-content: flex-start; }
    .twwp-full-weather-modern .twwp-full-title { font-size: 28px; }
}

/* Version 1.0.9 - stronger full forecast dashboard layout. */
.twwp-full-weather-modern {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #1f2937 !important;
}
.twwp-full-weather-modern .twwp-full-hero-card,
.twwp-full-weather-modern .twwp-full-panel,
.twwp-full-weather-modern .twwp-field-details,
.twwp-full-weather-modern .twwp-full-section {
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
}
.twwp-full-weather-modern .twwp-full-section {
    padding: 22px;
    margin-top: 18px;
}
.twwp-full-weather-modern .twwp-full-hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 52%, #edf6ff 100%) !important;
}

/* Version 1.1.0 - Clean dashboard full forecast page. */
.twwp-full-weather-dashboard {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 !important;
    border: 0 !important;
    background: #f3f7fb !important;
    color: #172033 !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    font-family: inherit;
}
.twwp-dashboard-main,
.twwp-dashboard-sidebar { min-width: 0; }
.twwp-dashboard-hero,
.twwp-dashboard-sidebar .twwp-full-section,
.twwp-dashboard-metric,
.twwp-full-weather-dashboard .twwp-full-panel,
.twwp-full-weather-dashboard .twwp-field-details {
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15,23,42,.06);
}
.twwp-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 22px;
    padding: 30px;
    background: linear-gradient(135deg, #d8ecff 0%, #eef7ff 50%, #ffffff 100%) !important;
}
.twwp-dashboard-current {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0 10px;
}
.twwp-full-weather-dashboard .twwp-full-title {
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.03em;
}
.twwp-full-weather-dashboard .twwp-full-temp {
    font-size: clamp(64px, 8vw, 96px);
    font-weight: 500;
    letter-spacing: -0.06em;
}
.twwp-full-weather-dashboard .twwp-full-icon { font-size: clamp(54px, 7vw, 82px); }
.twwp-dashboard-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 10px;
    opacity: .72;
}
.twwp-dashboard-summary span:not(:last-child)::after {
    content: '•';
    margin-left: 16px;
    opacity: .55;
}
.twwp-dashboard-hero-right,
.twwp-dashboard-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.twwp-dashboard-card-grid { margin-top: 22px; }
.twwp-dashboard-metric {
    padding: 18px;
    background: rgba(255,255,255,.82);
}
.twwp-dashboard-metric span {
    display: block;
    font-size: 13px;
    line-height: 1.2;
    opacity: .62;
    margin-bottom: 8px;
}
.twwp-dashboard-metric strong {
    display: block;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 700;
}
.twwp-dashboard-metric em {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.3;
    font-style: normal;
    opacity: .55;
}
.twwp-full-weather-dashboard .twwp-full-panel { padding: 22px; margin-top: 22px; }
.twwp-full-weather-dashboard .twwp-hourly-card {
    background: #f7fbff;
    border-color: rgba(37,99,235,.10);
}
.twwp-dashboard-sidebar .twwp-full-section {
    padding: 24px;
    margin: 0;
    position: sticky;
    top: 24px;
}
.twwp-dashboard-sidebar .twwp-full-days {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
.twwp-dashboard-sidebar .twwp-full-day {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: center;
    padding: 14px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgba(15,23,42,.08);
}
.twwp-dashboard-sidebar .twwp-full-day:last-child { border-bottom: 0; }
.twwp-dashboard-sidebar .twwp-full-day-date { margin: 0; font-weight: 700; }
.twwp-dashboard-sidebar .twwp-full-day-main { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; }
.twwp-dashboard-sidebar .twwp-full-day-label,
.twwp-dashboard-sidebar .twwp-full-day-rain { grid-column: 1; margin: 0; font-size: 12px; }
.twwp-full-weather-dashboard .twwp-field-details {
    padding: 18px 20px;
    margin-top: 22px;
    box-shadow: none;
}
.twwp-full-weather-dashboard .twwp-field-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.twwp-full-weather-dashboard .twwp-credit { text-align: right; }
@media (max-width: 900px) {
    .twwp-full-weather-dashboard { grid-template-columns: 1fr; }
    .twwp-dashboard-sidebar .twwp-full-section { position: static; }
}
@media (max-width: 680px) {
    .twwp-full-weather-dashboard { gap: 16px; }
    .twwp-dashboard-hero { grid-template-columns: 1fr; padding: 22px; }
    .twwp-dashboard-hero-right,
    .twwp-dashboard-card-grid { grid-template-columns: 1fr; }
    .twwp-dashboard-current { margin-top: 20px; }
}

/* Version 1.1.1 - App-style full forecast layout. */
.twwp-full-weather-app {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #eef4fb !important;
    color: #172033 !important;
    box-shadow: none !important;
    font-family: inherit;
}
.twwp-full-weather-app * { box-sizing: border-box; }
.twwp-app-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}
.twwp-full-weather-app .twwp-full-kicker {
    color: #2b6aa3;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.twwp-full-weather-app .twwp-full-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -.035em;
    color: #172033;
}
.twwp-full-weather-app .twwp-full-updated {
    color: #6f7d8f;
    font-size: 13px;
    white-space: nowrap;
    padding-top: 10px;
}
.twwp-app-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
}
.twwp-app-main { min-width: 0; }
.twwp-app-hero {
    min-height: 300px;
    padding: 30px;
    border-radius: 22px;
    color: #1d5f9f;
    background:
        radial-gradient(circle at 80% 8%, rgba(255,255,255,.90) 0 70px, transparent 72px),
        linear-gradient(135deg, #bde0ff 0%, #cfeaff 48%, #eaf6ff 100%);
    box-shadow: 0 20px 45px rgba(30, 93, 148, .13);
    overflow: hidden;
}
.twwp-app-location {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 26px;
}
.twwp-app-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(260px, .8fr);
    gap: 26px;
    align-items: stretch;
}
.twwp-app-now { display: flex; flex-direction: column; justify-content: center; }
.twwp-app-icon { font-size: 58px; line-height: 1; margin-bottom: 4px; }
.twwp-app-temp {
    font-size: clamp(76px, 10vw, 122px);
    line-height: .9;
    font-weight: 500;
    letter-spacing: -.08em;
    color: #246ba8;
}
.twwp-app-condition {
    margin-top: 16px;
    font-size: 18px;
    font-weight: 700;
    color: #246ba8;
}
.twwp-app-chart-card {
    border-radius: 18px;
    padding: 24px;
    background: rgba(255,255,255,.48);
    backdrop-filter: blur(6px);
}
.twwp-app-chart-card h3 {
    margin: 0 0 28px;
    font-size: 22px;
    color: #246ba8;
}
.twwp-app-mini-chart {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid rgba(36,107,168,.18);
    position: relative;
}
.twwp-app-mini-chart:before {
    content: '';
    position: absolute;
    left: 4%; right: 4%; top: 42%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #2b74b2, transparent);
    transform: rotate(-4deg);
}
.twwp-app-mini-chart span {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #93c9f5;
    z-index: 1;
}
.twwp-app-mini-chart span:nth-child(2) { margin-top: 26px; }
.twwp-app-mini-chart span:nth-child(3) { margin-top: -24px; }
.twwp-app-mini-chart span:nth-child(4) { margin-top: 18px; }
.twwp-app-dayparts {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    font-size: 13px;
    color: #246ba8;
}
.twwp-app-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.twwp-app-metric {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 30px;
    border-radius: 18px;
    background: #f8fbff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
    border: 1px solid rgba(15, 23, 42, .05);
}
.twwp-app-metric span {
    display: block;
    margin-bottom: 14px;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
}
.twwp-app-metric strong {
    display: block;
    color: #111827;
    font-size: 22px;
    line-height: 1.1;
}
.twwp-app-metric i {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    font-style: normal;
    font-size: 42px;
    color: #236aa7;
    background: #d8ecff;
    border: 8px solid #edf7ff;
}
.twwp-full-weather-app .twwp-full-panel,
.twwp-full-weather-app .twwp-field-details {
    margin-top: 24px;
    padding: 24px;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}
.twwp-full-weather-app .twwp-full-panel h3,
.twwp-app-sidebar .twwp-full-section h3 {
    margin: 0 0 18px;
    font-size: 20px;
    color: #111827;
}
.twwp-full-weather-app .twwp-hourly-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(92px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.twwp-full-weather-app .twwp-hourly-card {
    min-width: 92px;
    padding: 14px 10px;
    border: 1px solid #e6eef7;
    border-radius: 16px;
    background: #f8fbff;
    text-align: center;
}
.twwp-app-sidebar {
    min-width: 0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
    padding: 26px;
    align-self: start;
}
.twwp-app-sidebar .twwp-full-section { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.twwp-app-sidebar .twwp-full-days { display: grid; grid-template-columns: 1fr; gap: 0; }
.twwp-app-sidebar .twwp-full-day {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 14px;
    align-items: center;
    padding: 15px 0;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.twwp-app-sidebar .twwp-full-day:last-child { border-bottom: 0; }
.twwp-app-sidebar .twwp-full-day-date { margin: 0; font-weight: 700; color: #20283a; }
.twwp-app-sidebar .twwp-full-day-main { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; font-size: 18px; }
.twwp-app-sidebar .twwp-full-day-label,
.twwp-app-sidebar .twwp-full-day-rain { grid-column: 1; margin: 0; color: #8792a0; font-size: 13px; }
.twwp-full-weather-app .twwp-field-details summary { font-size: 18px; font-weight: 800; cursor: pointer; }
.twwp-full-weather-app .twwp-field-grid { margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.twwp-full-weather-app .twwp-credit { text-align: right; color: #7b8794; font-size: 12px; margin-top: 14px; }
@media (max-width: 980px) {
    .twwp-app-grid { grid-template-columns: 1fr; }
    .twwp-app-sidebar { order: 2; }
}
@media (max-width: 720px) {
    .twwp-full-weather-app { padding: 18px !important; }
    .twwp-app-topbar { display: block; }
    .twwp-full-weather-app .twwp-full-updated { white-space: normal; padding-top: 8px; }
    .twwp-app-hero { padding: 22px; }
    .twwp-app-hero-inner,
    .twwp-app-metrics { grid-template-columns: 1fr; }
    .twwp-app-metric { min-height: 120px; padding: 22px; }
}


/* v1.1.2 - Full forecast refinement */
.twwp-full-weather-app .twwp-app-grid {
    grid-template-columns: 1fr;
}
.twwp-full-weather-app .twwp-full-section {
    margin-top: 24px;
    padding: 24px;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}
.twwp-full-weather-app .twwp-full-section h3 {
    margin: 0 0 18px;
    font-size: 20px;
    color: #111827;
}
.twwp-full-weather-app .twwp-full-days {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 220px);
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.twwp-full-weather-app .twwp-full-day {
    min-width: 180px;
    border: 1px solid #e6eef7;
    border-radius: 16px;
    background: #f8fbff;
    box-shadow: none;
}

/* v1.1.3 - Center Extended Forecast cards */
.twwp-full-weather-app .twwp-full-day {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.twwp-full-weather-app .twwp-full-day-date {
    text-align: center;
    width: 100%;
}
.twwp-full-weather-app .twwp-full-day-main {
    justify-content: center;
    width: 100%;
}
.twwp-full-weather-app .twwp-full-day-label,
.twwp-full-weather-app .twwp-full-day-rain {
    text-align: center;
    width: 100%;
}


/* Version 1.2.1 - Forecast display refinement */
.twwp-layout-forecast {
    text-align: center;
}
.twwp-layout-forecast .twwp-current {
    text-align: center;
}
.twwp-layout-forecast .twwp-location {
    text-align: center;
    margin-bottom: 6px;
}
.twwp-layout-forecast .twwp-forecast-temp-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}
.twwp-layout-forecast .twwp-forecast-icon {
    font-size: 34px;
    line-height: 1;
}
.twwp-layout-forecast .twwp-temp {
    margin-bottom: 0;
}
.twwp-layout-forecast .twwp-meta {
    justify-content: center;
    align-items: center;
    text-align: center;
}


/* Version 1.2.2 - Current-condition image background support. */
.twwp-condition-background {
    position: relative;
    overflow: hidden;
    border-color: rgba(255,255,255,.28);
    box-shadow: 0 10px 26px rgba(15,23,42,.14);
    text-shadow: 0 1px 2px rgba(0,0,0,.36);
}
.twwp-condition-background .twwp-meta,
.twwp-condition-background .twwp-modern-meta,
.twwp-condition-background .twwp-modern-location {
    opacity: .9;
}
.twwp-condition-background .twwp-day {
    border-top-color: rgba(255,255,255,.28);
}
.twwp-condition-background .twwp-day,
.twwp-condition-background .twwp-meta span {
    text-shadow: 0 1px 2px rgba(0,0,0,.32);
}

/* Version 1.2.3 - Automatic text contrast for condition backgrounds. */
.twwp-condition-background.twwp-condition-text-light {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.72);
}
.twwp-condition-background.twwp-condition-text-dark {
    color: #1f2937 !important;
    text-shadow: 0 1px 2px rgba(255,255,255,.38);
}
.twwp-condition-background.twwp-condition-text-light .twwp-location,
.twwp-condition-background.twwp-condition-text-light .twwp-modern-location,
.twwp-condition-background.twwp-condition-text-light .twwp-temp,
.twwp-condition-background.twwp-condition-text-light .twwp-modern-temp,
.twwp-condition-background.twwp-condition-text-light .twwp-meta,
.twwp-condition-background.twwp-condition-text-light .twwp-modern-meta,
.twwp-condition-background.twwp-condition-text-light .twwp-modern-condition,
.twwp-condition-background.twwp-condition-text-light .twwp-day,
.twwp-condition-background.twwp-condition-text-light .twwp-day-temp {
    color: #ffffff !important;
}
.twwp-condition-background.twwp-condition-text-dark .twwp-location,
.twwp-condition-background.twwp-condition-text-dark .twwp-modern-location,
.twwp-condition-background.twwp-condition-text-dark .twwp-temp,
.twwp-condition-background.twwp-condition-text-dark .twwp-modern-temp,
.twwp-condition-background.twwp-condition-text-dark .twwp-meta,
.twwp-condition-background.twwp-condition-text-dark .twwp-modern-meta,
.twwp-condition-background.twwp-condition-text-dark .twwp-modern-condition,
.twwp-condition-background.twwp-condition-text-dark .twwp-day,
.twwp-condition-background.twwp-condition-text-dark .twwp-day-temp {
    color: #1f2937 !important;
}
