:root{
  --ink:#1d232a; --ink2:#5b636b; --line:#e8e6e3; --bg:#ffffff;
  --teal:#0f766e; --amber:#92400e; --amber-bg:#fef3c7; --red:#b91c1c; --red-bg:#fee2e2;
  --panel:#f7f6f4; --radius:16px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.5}
a{color:var(--teal)}
main{max-width:720px;margin:0 auto;padding:0 16px 40px}
.topbar{max-width:720px;margin:0 auto;padding:18px 16px 10px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:10px}
.brand-mark{background:var(--teal);color:#fff;font-weight:700;font-size:14px;border-radius:8px;padding:5px 8px;letter-spacing:.5px}
.brand-name{font-weight:700;font-size:17px}
.topdate{font-size:13px;color:var(--ink2)}
.muted{color:var(--ink2);font-size:14px}
.searchbar{display:flex;gap:8px;margin:8px 0 14px}
.searchwrap{position:relative;flex:1}
#search{width:100%;padding:12px 14px;font-size:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink)}
#search:focus{outline:2px solid var(--teal);outline-offset:-1px;background:#fff}
.results{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 4px);background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.10);overflow:hidden;max-height:320px;overflow-y:auto}
.results button{display:block;width:100%;text-align:left;padding:11px 14px;border:0;background:#fff;font-size:15px;cursor:pointer}
.results button:hover,.results button:focus{background:var(--panel)}
.results button small{color:var(--ink2);margin-left:6px}
.btn{border:0;border-radius:12px;padding:12px 14px;font-size:15px;font-weight:600;cursor:pointer;background:var(--teal);color:#fff;white-space:nowrap}
.btn.ghost{background:#fff;color:var(--teal);border:1px solid var(--teal)}
.status{padding:12px 14px;border-radius:12px;background:var(--panel);color:var(--ink2);font-size:14px;margin-bottom:12px}
.status.error{background:var(--red-bg);color:var(--red)}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;margin-bottom:14px}
.card h2{font-size:16px;margin-bottom:10px}
.place h1{font-size:20px;display:inline}
.place .muted{margin-left:8px}
.now{display:flex;align-items:center;gap:14px;margin:12px 0}
.now-icon svg{width:64px;height:64px}
.now-temp{font-size:52px;font-weight:700;line-height:1}
.now-temp .deg{font-size:22px;font-weight:600;color:var(--ink2)}
.now-cond{font-size:16px;color:var(--ink2);max-width:120px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{background:var(--panel);border-radius:10px;padding:7px 11px;font-size:13px}
.chip b{font-weight:600}
.alerts{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.alert{border-radius:10px;padding:10px 12px;font-size:14px;background:var(--amber-bg);color:var(--amber)}
.alert.severe{background:var(--red-bg);color:var(--red)}
#advisory-body p{margin-bottom:10px;font-size:15px}
.fineprint{font-size:12.5px;color:var(--ink2);margin-top:10px}
.hourly{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch}
.hour{min-width:64px;flex:0 0 auto;text-align:center;background:var(--panel);border-radius:12px;padding:10px 4px}
.hour .h{font-size:12px;color:var(--ink2)}
.hour svg{width:28px;height:28px;margin:4px auto;display:block}
.hour .t{font-weight:600;font-size:14px}
.hour .p{font-size:11px;color:var(--teal);min-height:14px}
.day{display:flex;align-items:center;gap:10px;padding:11px 2px;border-top:1px solid var(--line)}
.day:first-child{border-top:0}
.day .dname{width:86px;font-weight:600;font-size:14px}
.day svg{width:30px;height:30px;flex:0 0 auto}
.day .dcond{flex:1;font-size:13px;color:var(--ink2);min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.day .dprecip{font-size:12px;color:var(--teal);min-width:52px;flex:0 0 auto;text-align:right}
.day .dtemps{width:92px;flex:0 0 auto;text-align:right;font-size:14px;white-space:nowrap}
.day .dtemps .lo{color:var(--ink2)}
.national{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.city{background:var(--panel);border-radius:12px;padding:10px 12px;display:flex;align-items:center;gap:8px}
.city svg{width:26px;height:26px;flex:0 0 auto}
.city .cname{font-size:13.5px;font-weight:600;line-height:1.25}
.city .ctemp{margin-left:auto;font-weight:700;font-size:16px;white-space:nowrap}
footer{font-size:12.5px;color:var(--ink2);padding:6px 4px 0}
footer p{margin-bottom:8px}
@media (min-width:640px){
  .now-temp{font-size:64px}
  .card{padding:22px}
}
.city .cname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.city .ctemp{margin-left:auto;flex:0 0 auto}
@media (max-width:480px){
  .day .dcond{display:none}
  .day .dname{width:64px}
  .national{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
}
