.city-info-dialog{width:min(760px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 40px);margin:auto;padding:0;border:1px solid var(--line);border-radius:26px;background:var(--paper);color:var(--ink);box-shadow:0 30px 100px #061e3655;font-family:'DM Sans',sans-serif;overflow:hidden}
body:has(.city-info-dialog[open]){overflow:hidden}
.city-info-dialog[open]{display:flex;flex-direction:column;animation:city-info-enter .18s ease-out}
.city-info-dialog::backdrop{background:#061c307a;backdrop-filter:blur(7px)}
.city-info-header{display:flex;flex-shrink:0;align-items:flex-start;justify-content:space-between;gap:20px;padding:26px 28px;background:linear-gradient(115deg,#0847a6,#123a60);color:#fff}
.city-info-header>div{min-width:0}
.city-info-header small{font-size:10px;font-weight:700;letter-spacing:.12em;color:#dceaff}
.city-info-header h2{font:700 clamp(26px,4vw,32px)/1.12 'Bricolage Grotesque',sans-serif;letter-spacing:-.035em;margin:8px 0}
.city-info-header p{margin:0;color:#e1ecf8;font-size:13px;line-height:1.55}
.city-info-dialog .ui-icon{width:20px;height:20px;flex-shrink:0}
.city-info-dialog button,.city-info-dialog a{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--cream);color:var(--ink);font:600 13px 'DM Sans',sans-serif;text-decoration:none;cursor:pointer;overflow-wrap:anywhere}
.city-info-dialog button:hover,.city-info-dialog a:hover{background:color-mix(in srgb,var(--navy) 8%,var(--paper))}
.city-info-header button{width:44px;flex:0 0 44px;padding:10px;border-color:#ffffff40;background:#ffffff12;color:#fff}
.city-info-header button:hover{background:#ffffff26}
.city-info-dialog :is(button,a,input):focus-visible{outline:3px solid var(--navy);outline-offset:3px}
.city-info-header button:focus-visible{outline-color:#fff}
.city-info-switch{display:flex;flex-shrink:0;gap:8px;padding:14px 28px;border-bottom:1px solid var(--line);background:var(--paper)}
.city-info-switch button{flex:1;background:transparent;border-color:transparent}
.city-info-switch button[aria-pressed=true]{background:color-mix(in srgb,var(--navy) 9%,var(--paper));border-color:var(--line);color:var(--navy)}
.city-info-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px 28px;scrollbar-width:thin;scroll-padding-block:12px}
.city-info-dialog form label{display:block;font-size:13px;font-weight:700;margin-bottom:8px}
.city-info-dialog form>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.city-info-dialog input{min-width:0;flex:1;min-height:46px;border:1px solid var(--line);border-radius:12px;background:var(--paper);padding:10px 13px;color:var(--ink);font:inherit;font-size:16px}
.city-info-dialog form small{display:block;margin-top:8px;font-size:12px;line-height:1.5;color:var(--muted)}
.city-info-dialog form button,.city-info-dialog [data-city-retry]{background:var(--navy);color:#fff}
.city-info-dialog form button{min-width:80px}
.city-info-dialog form button:hover,.city-info-dialog [data-city-retry]:hover{background:var(--navy-2)}
.city-search-results{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.city-search-results:empty{display:none}
.city-info-dialog [role=status]{font-size:12px;color:var(--muted);line-height:1.5;margin:14px 0}
.city-info-dialog [role=status]:empty{display:none}
.city-weather-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;align-items:center;padding:24px;border-radius:20px;background:linear-gradient(125deg,color-mix(in srgb,var(--navy) 9%,var(--paper)),var(--paper));border:1px solid var(--line)}
.city-weather-hero small{font-size:11px;letter-spacing:.06em;color:var(--muted)}
.city-weather-hero h3{font:700 28px/1.15 'Bricolage Grotesque',sans-serif;margin:10px 0;overflow-wrap:anywhere}
.city-weather-hero p{font-size:14px;line-height:1.6;margin:8px 0;overflow-wrap:anywhere}
.city-weather-range{display:flex;gap:22px}
.city-weather-range span{display:block;font-size:12px;color:var(--muted)}
.city-weather-range strong{display:block;font:700 48px/1.15 'Bricolage Grotesque',sans-serif;letter-spacing:-.04em;margin-top:5px}
.city-weather-hero .city-weather-disclaimer{grid-column:1/-1;margin:18px 0 0;padding-top:14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.city-weather-outlook>h3{font:700 19px 'Bricolage Grotesque',sans-serif;margin:24px 0 12px}
.city-weather-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}
.city-weather-days article{min-width:0;padding:16px;border:1px solid var(--line);border-radius:16px}
.city-weather-days h4{font-size:12px;margin:0 0 10px;color:var(--muted)}
.city-weather-days strong{font:700 23px 'Bricolage Grotesque',sans-serif}
.city-weather-days strong span{color:var(--muted);font-weight:400}
.city-weather-days p{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.city-weather-days small{font-size:11px;line-height:1.5;color:var(--muted)}
.city-info-source,.city-info-note{font-size:12px;color:var(--muted);line-height:1.65}
.city-info-source{margin:20px 0 0}
.city-info-source a{border:0;padding:4px;min-height:44px;text-decoration:underline;text-underline-offset:3px;background:none;color:var(--navy)}
.city-info-note{margin:0 0 18px;padding-left:12px;border-left:3px solid var(--teal)}
.city-news{display:grid;gap:0}
.city-news article{min-width:0;padding:22px 0;border-bottom:1px solid var(--line)}
.city-news article:first-child{padding-top:6px}
.city-news small{font-size:11px;line-height:1.5;color:var(--muted)}
.city-news h3{font:600 23px/1.3 'Bricolage Grotesque',sans-serif;margin:10px 0 12px;overflow-wrap:anywhere}
.city-news a{background:transparent;color:var(--navy)}
.city-info-empty{padding:24px;border:1px dashed var(--line);border-radius:18px;background:var(--cream)}
.city-info-empty h3{font:700 22px 'Bricolage Grotesque',sans-serif;margin:0 0 8px}
.city-info-empty p{color:var(--muted);font-size:14px;line-height:1.6}
.city-info-empty-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.city-info-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:root[data-theme=dark] .city-info-dialog :is(.city-info-source a,.city-news a,.city-info-switch button[aria-pressed=true]){color:var(--night-link)}
:root[data-theme=dark] .city-info-dialog :is(button,a,input):focus-visible{outline-color:var(--night-link)}
:root[data-theme=dark] .city-info-header button:focus-visible{outline-color:#fff}
@keyframes city-info-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:520px){.city-info-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 24px);border-radius:22px}.city-info-header,.city-info-body{padding:20px 18px}.city-info-switch{padding:10px 14px;gap:4px}.city-info-switch button{padding:10px 8px;font-size:12px}.city-info-dialog form>div{flex-wrap:wrap}.city-info-dialog form button{flex-grow:1}.city-weather-hero{grid-template-columns:1fr;padding:20px}.city-weather-range{margin-top:10px;gap:30px}.city-weather-range strong{font-size:44px}.city-weather-days{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.city-weather-days article{padding:12px}.city-news h3{font-size:21px}.city-info-empty-actions{flex-direction:column}}
@media(max-width:360px){.city-weather-days{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.city-info-dialog[open]{animation:none}}
.reduce-motion .city-info-dialog[open]{animation:none}
