.weathergrid {
    --wg-bg: #061a3a;
    --wg-text: #ffffff;
    --wg-muted: rgba(255, 255, 255, .72);
    --wg-border: rgba(255, 255, 255, .14);
    --wg-surface: rgba(255, 255, 255, .06);
    --wg-surface-hover: rgba(255, 255, 255, .10);
    --wg-input-bg: #ffffff;
    --wg-input-text: #061a3a;
    --wg-radius: 16px;
    --wg-gap: 18px;

    box-sizing: border-box;
    width: 100%;
    padding: 18px;
    background: var(--wg-bg);
    color: var(--wg-text);
    border-radius: var(--wg-radius);
    overflow: hidden;
margin-bottom: 10px;
}

.weathergrid *,
.weathergrid *::before,
.weathergrid *::after {
    box-sizing: border-box;
}

.weathergrid [hidden] {
    display: none !important;
}

.weathergrid__eyebrow {
    margin: 0 0 6px;
    color: var(--wg-muted);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .12em;
}

.weathergrid__title,
.weathergrid__section h3 {
    color: var(--wg-text);
}

.weathergrid__title {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1.1;
}

.weathergrid__lead {
    margin: 10px 0 22px;
    color: var(--wg-muted);
}

.weathergrid__search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.weathergrid__search-input,
.weathergrid__search-button,
.weathergrid__change,
.weathergrid__result {
    font: inherit;
}

.weathergrid__search-input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--wg-input-bg);
    color: var(--wg-input-text);
    outline: none;
}

.weathergrid__search-input:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}

.weathergrid__search-button,
.weathergrid__change {
    border: 1px solid var(--wg-border);
    border-radius: 10px;
    cursor: pointer;
}

.weathergrid__search-button {
    min-height: 50px;
    padding: 0 20px;
    background: var(--wg-text);
    color: var(--wg-bg);
    font-weight: 700;
}

.weathergrid__results {
    margin-top: 10px;
    border: 1px solid var(--wg-border);
    border-radius: 12px;
    overflow: hidden;
}

.weathergrid__result {
    display: flex;
    width: 100%;
    padding: 13px 15px;
    border: 0;
    border-bottom: 1px solid var(--wg-border);
    background: var(--wg-surface);
    color: var(--wg-text);
    text-align: left;
    cursor: pointer;
}

.weathergrid__result:last-child {
    border-bottom: 0;
}

.weathergrid__result:hover {
    background: var(--wg-surface-hover);
}

.weathergrid__result strong {
    min-width: 28%;
}

.weathergrid__result span {
    color: var(--wg-muted);
}

.weathergrid__status {
    min-height: 1.3em;
    margin-top: 10px;
    color: var(--wg-muted);
    font-size: .9rem;
}

.weathergrid__topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.weathergrid__place {
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.05;
}

.weathergrid__place-meta {
    
    color: var(--wg-muted);
}

.weathergrid__change {
    padding: 8px 12px;
    background: transparent;
    color: var(--wg-text);
}

.weathergrid__change:hover {
    background: var(--wg-surface);
}

.weathergrid__current {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 0 20px;
}

.weathergrid__current-emoji {
    font-size: clamp(4.8rem, 10vw, 7.5rem);
    line-height: 1;
}

.weathergrid__current-temp {
    font-size: clamp(3.4rem, 9vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: .9;
}

.weathergrid__current-text {
    margin-top: 8px;
    color: var(--wg-muted);
    font-size: 0.9rem;
}




.weathergrid__meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--wg-border);
    border-bottom: 1px solid var(--wg-border);
}

.weathergrid__meta-grid > div {
    min-width: 0;
    padding: 15px 18px;
    border-right: 1px solid var(--wg-border);
    border-bottom: 1px solid var(--wg-border);
}

.weathergrid__meta-grid > div:nth-child(3n) {
    border-right: 0;
}

.weathergrid__meta-grid > div:nth-last-child(-n+3) {
    border-bottom: 0;
}

.weathergrid__meta-grid span {
    display: block;
    margin-bottom: 4px;
    color: var(--wg-muted);
    font-size: .88rem;
}

.weathergrid__meta-grid strong {
    display: block;
    font-size: 1rem;
}



.weathergrid__current-apparent {
/*    margin-top: 4px;*/
    color: var(--wg-muted);
    font-size: .9rem;
}


.weathergrid__section {
    padding-top: 22px;
}

.weathergrid__section h3 {
    margin: 0 0 12px;
    font-size: 1rem;
	  font-weight: 700;
}

.weathergrid__hours {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--wg-border);
    border-bottom: 1px solid var(--wg-border);
}

.weathergrid__days {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-top: 1px solid var(--wg-border);
    border-bottom: 1px solid var(--wg-border);
}

.weathergrid__hour-card,
.weathergrid__day-card {
    min-width: 0;
    padding: 14px 12px;
    border-right: 1px solid var(--wg-border);
    text-align: center;
    overflow: hidden;
}

.weathergrid__hour-card:last-child,
.weathergrid__day-card:last-child {
    border-right: 0;
}

.weathergrid__hour-label,
.weathergrid__day-name {
    font-weight: 700;
}

.weathergrid__hour-emoji {
    margin: 6px 0 2px;
    font-size: 2.2rem;
    line-height: 1.1;
}

.weathergrid__day-emoji {
    margin: 6px 0 2px;
    font-size: 1.75rem;
    line-height: 1.1;
}

.weathergrid__hour-text,
.weathergrid__day-text {
    min-height: 2.7em;
    color: var(--wg-muted);
    font-size: .88rem;
    line-height: 1.3;
    text-align: center;
}

.weathergrid__day-text {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.weathergrid__hour-text {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
}

.weathergrid__temperatures {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 7px;
	font-size: 1.4rem;
font-weight: 700;
}

.weathergrid__temperatures span {
    color: var(--wg-muted);
font-size: .9rem;
}

.weathergrid__source {
    margin-top: 18px;
    color: var(--wg-muted);
    font-size: .75rem;
}

.weathergrid .weathergrid__source a {
    color: var(--wg-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}
@media (max-width: 760px) {

    .weathergrid {
        padding: 20px;
        --wg-gap: 12px;
    }

    .weathergrid__search-row {
        grid-template-columns: 1fr;
    }

    .weathergrid__search-button {
        width: 100%;
    }

    .weathergrid__result {
        display: block;
    }

    .weathergrid__result strong,
    .weathergrid__result span {
        display: block;
    }

    .weathergrid__result span {
        margin-top: 3px;
    }

    .weathergrid__topbar {
        display: block;
    }

    .weathergrid__change {
        margin-top: 12px;
    }

    .weathergrid__current {
        gap: 12px;
    }

    .weathergrid__current-emoji {
        font-size: 4.6rem;
    }

  .weathergrid__meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.weathergrid__meta-grid > div {
    border-right: 1px solid var(--wg-border);
    border-bottom: 1px solid var(--wg-border);
}

.weathergrid__meta-grid > div:nth-child(3n) {
    border-right: 1px solid var(--wg-border);
}

.weathergrid__meta-grid > div:nth-child(2n) {
    border-right: 0;
}

.weathergrid__meta-grid > div:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--wg-border);
}

.weathergrid__meta-grid > div:nth-last-child(-n+2) {
    border-bottom: 0;
}

    .weathergrid__hours {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .weathergrid__hour-card:nth-child(2) {
        border-right: 0;
    }

    .weathergrid__hour-card:nth-child(-n+2) {
        border-bottom: 1px solid var(--wg-border);
    }

    .weathergrid__days {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .weathergrid__day-card:nth-child(3) {
        border-right: 0;
    }

    .weathergrid__day-card:nth-child(-n+3) {
        border-bottom: 1px solid var(--wg-border);
    }

    .weathergrid__day-card:nth-child(6) {
        border-right: 0;
    }
}

@media (max-width: 420px) {

    .weathergrid {
        padding: 16px;
    }

    .weathergrid__hours,
    .weathergrid__days {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .weathergrid__day-card:nth-child(3) {
        border-right: 1px solid var(--wg-border);
    }

    .weathergrid__day-card:nth-child(even) {
        border-right: 0;
    }

    .weathergrid__day-card:nth-child(-n+4) {
        border-bottom: 1px solid var(--wg-border);
    }
}


.weathergrid__search-input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--wg-input-bg);
    color: var(--wg-input-text);
    outline: none;
    font-size: 16px;
}



.weathergrid__recent {
		padding-top: 10px;
	border-top: 1px solid var(--wg-border);
	
}

.weathergrid__recent[hidden] {
	display: none !important;
}

.weathergrid__recent-title {
	margin: 0 0 4px;
	color: var(--wg-text);
	font-size: 1.1rem;
}

.weathergrid__recent-lead {
	margin: 0 0 14px;
	color: var(--wg-muted);
	font-size: 0.85rem;
}

.weathergrid__recent-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.weathergrid__recent-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border: 1px solid var(--wg-border);
	border-radius: 12px;
	background: var(--wg-surface);
	color: var(--wg-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.weathergrid__recent-item:hover {
	background: var(--wg-surface-hover);
}

.weathergrid__recent-flag {
	font-size: 1.1rem;
}

.weathergrid__recent-place {
	display: flex;
	flex-direction: column;
}

.weathergrid__recent-place strong {
	color: inherit;
	font-size: 0.9rem;
	line-height: 1.2;
}

.weathergrid__recent-place small {
	color: var(--wg-muted);
	font-size: 0.7rem;
	line-height: 1.2;
}

.weathergrid__recent-weather {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 6px;
	color: inherit;
}

.weathergrid__recent-weather strong {
	color: inherit;
	font-size: 0.85rem;
}

@media (max-width: 600px) {
	.weathergrid__recent-item {
		width: 100%;
	}
}


/*.flow-featured .flow:nth-child(1) {
	padding-top: 40px;
}
*/

.weathergrid__bulletin {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--wg-border);
    border-radius: 14px;
    background: var(--wg-surface);
}

.weathergrid__bulletin-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.weathergrid__bulletin h3 {
    margin: 0 0 7px;
    color: var(--wg-text);
    font-size: 1.5rem;
	font-weight: 600;
}

.weathergrid__bulletin p {
    margin: 0;
    color: var(--wg-text);
    font-size: .98rem;
    
}

@media (max-width: 420px) {
    .weathergrid__bulletin {
        grid-template-columns: 1fr;
        padding: 15px;
    }
}


.weathergrid__bulletin-time {
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--wg-muted);
    opacity: 0.95;
    font-style: italic;
}


.weathergrid__search-input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--wg-input-bg);
    color: var(--wg-input-text);
    outline: none;
    font-size: 16px;
}

.weathergrid__local-time {
        color: var(--wg-muted);
    font-size: .9rem;
}

.weathergrid__day-secondary {
    margin-top: 5px;
    color: var(--wg-muted);
    font-size: .82rem;
    line-height: 1.25;
}