*{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:#14202b;min-height:100vh;
  background:linear-gradient(165deg,#cfe2f2 0%,#e8eef5 38%,#f7f1e3 100%);
  background-attachment:fixed;
}
a{color:#1b6f9c}

.topbar{
  display:flex;align-items:center;gap:14px;
  padding:10px 16px;max-width:720px;margin:0 auto;width:100%;
}
.brand{display:flex;align-items:center;min-width:0;flex:0 0 auto}
.brand-full{height:58px;width:auto;display:block}
.topdate{margin-left:auto;font-size:13px;color:#4a5b6a;white-space:nowrap;padding-right:2px}
.menu-btn{
  display:flex;flex-direction:column;justify-content:center;gap:5px;
  width:42px;height:42px;padding:9px;border:none;border-radius:12px;cursor:pointer;
  background:rgba(255,255,255,.55);box-shadow:0 1px 4px rgba(20,32,43,.12);
}
.menu-btn span{display:block;height:2px;border-radius:2px;background:#14202b}
.menu-btn:active{transform:scale(.95)}

main{max-width:720px;margin:0 auto;padding:8px 16px 32px}

.analysis-link{margin:2px 0 10px;font-size:14px;line-height:1.4}
.analysis-link a{color:#14202b;text-decoration:none}
.analysis-link a strong{color:#1b6f9c}
.analysis-link a:hover strong,.analysis-link a:focus-visible strong{text-decoration:underline}

.topsearch{margin:0 0 14px}
.topsearch .searchwrap{max-width:none}
#topsearch{
  width:100%;padding:11px 14px;font-size:15px;border-radius:14px;
  border:1px solid rgba(20,32,43,.2);background:rgba(255,255,255,.75);color:#14202b;
}

.glass{
  background:rgba(255,255,255,.55);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.65);
  border-radius:24px;
  box-shadow:0 8px 28px rgba(20,32,43,.10);
}

/* carousel */
.carousel{display:flex;align-items:center;gap:6px}
.viewport{flex:1;overflow:hidden;border-radius:24px;touch-action:pan-y}
.track{display:flex;align-items:flex-start;will-change:transform}
.track.anim{transition:transform .28s cubic-bezier(.22,.8,.32,1)}
.card{
  flex:0 0 100%;min-width:0;position:relative;
  padding:26px 22px 20px;min-height:340px;
  display:flex;flex-direction:column;align-items:center;text-align:center;
}
.card .cname{font-size:24px;font-weight:700;line-height:1.2}
.card .cprov{font-size:13px;color:#4a5b6a;margin-top:2px}
.card .now{display:flex;align-items:center;gap:16px;margin:22px 0 6px}
.card .now-temp{font-size:64px;font-weight:250;line-height:1}
.card .now-cond{font-size:15px;color:#33424f;max-width:120px;text-align:left}
.card .hilow{font-size:15px;margin:4px 0 14px}
.card .hilow .lo{color:#4a5b6a}
.chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.chip{
  font-size:12px;padding:6px 10px;border-radius:999px;
  background:rgba(255,255,255,.5);border:1px solid rgba(255,255,255,.6);
}
.card .cstatus{margin-top:16px;font-size:13px;color:#4a5b6a}
.remove{
  position:absolute;top:10px;right:12px;width:30px;height:30px;
  border:none;border-radius:50%;font-size:17px;line-height:1;cursor:pointer;
  background:rgba(255,255,255,.4);color:#4a5b6a;
}
.remove:active{transform:scale(.92)}

.nav{
  flex:0 0 auto;width:40px;height:40px;border:none;border-radius:50%;
  font-size:22px;cursor:pointer;color:#14202b;
  background:rgba(255,255,255,.55);box-shadow:0 1px 4px rgba(20,32,43,.12);
}
.nav:disabled{opacity:.3;cursor:default}
.nav:active:not(:disabled){transform:scale(.92)}

.dots{display:flex;gap:7px;justify-content:center;margin:12px 0 18px}
.dot{width:8px;height:8px;border-radius:50%;border:none;padding:0;cursor:pointer;background:rgba(20,32,43,.22)}
.dot.active{background:#14202b;transform:scale(1.25)}

/* add-city card */
.add-card{justify-content:center;gap:12px}
.add-plus{
  width:64px;height:64px;border-radius:50%;font-size:34px;font-weight:300;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.5);border:1px dashed rgba(20,32,43,.35);color:#33424f;
}
.add-card h2{font-size:19px}
.add-card .fineprint{color:#4a5b6a}
.searchwrap{position:relative;width:100%;max-width:320px}
#search{
  width:100%;padding:11px 14px;font-size:15px;border-radius:14px;
  border:1px solid rgba(20,32,43,.2);background:rgba(255,255,255,.75);color:#14202b;
}
.results{
  position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:5;
  background:#fff;border-radius:14px;box-shadow:0 10px 30px rgba(20,32,43,.18);
  overflow:hidden;text-align:left;
}
.results button{
  display:flex;justify-content:space-between;gap:8px;width:100%;
  padding:11px 14px;border:none;background:none;font-size:14px;cursor:pointer;color:#14202b;
}
.results button small{color:#4a5b6a}
.results button:hover,.results button:focus-visible{background:#eef4f9}
.btn{
  padding:10px 16px;border-radius:999px;border:1px solid rgba(20,32,43,.2);
  background:rgba(255,255,255,.6);font-size:14px;cursor:pointer;color:#14202b;
}
.btn:active{transform:scale(.96)}

/* outlook toggle inside card */
.outlook-toggle{
  margin-top:14px;padding:9px 16px;border-radius:999px;cursor:pointer;
  border:1px solid rgba(20,32,43,.18);background:rgba(255,255,255,.6);
  font-size:13.5px;font-weight:600;color:#14202b;
}
.outlook-toggle:active{transform:scale(.96)}
.outlook-toggle .chev{display:inline-block;margin-left:6px;transition:transform .2s ease}
.outlook-toggle[aria-expanded="true"] .chev{transform:rotate(180deg)}
.outlook-panel{
  margin-top:12px;text-align:left;width:100%;
  border-top:1px solid rgba(20,32,43,.12);padding-top:12px;
}
.outlook-panel h2{font-size:15px;margin-bottom:8px;text-align:left}
.outlook-body p{font-size:13px;line-height:1.55;margin-bottom:9px}
.alert{
  font-size:12.5px;padding:8px 11px;border-radius:12px;margin-bottom:8px;text-align:left;
  background:rgba(244,177,62,.16);border:1px solid rgba(244,177,62,.4);
}
.alert.severe{background:rgba(198,40,40,.12);border-color:rgba(198,40,40,.35)}
.fineprint{font-size:11.5px;color:#5a6b7a;line-height:1.5}
.outlook-mode{font-weight:600;margin-top:6px;text-align:left}

/* hourly + 7-day panels below the card */
.panel{padding:16px 18px;margin-top:14px;text-align:left}
.panel h2{font-size:15px;margin-bottom:10px}
.hourly{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch}
.hour{min-width:60px;flex:0 0 auto;text-align:center;background:rgba(255,255,255,.45);border-radius:12px;padding:9px 4px}
.hour .h{font-size:11.5px;color:#4a5b6a}
.hour svg{width:26px;height:26px;margin:4px auto;display:block}
.hour .t{font-weight:600;font-size:13.5px}
.hour .p{font-size:10.5px;color:#1b6f9c;min-height:13px}
.day{display:flex;align-items:center;gap:10px;padding:10px 2px;border-top:1px solid rgba(20,32,43,.1)}
.day:first-child{border-top:0}
.day .dname{width:80px;font-weight:600;font-size:13.5px}
.day svg{width:28px;height:28px;flex:0 0 auto}
.day .dcond{flex:1;font-size:12.5px;color:#4a5b6a;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.day .dprecip{font-size:11.5px;color:#1b6f9c;min-width:48px;flex:0 0 auto;text-align:right}
.day .dtemps{width:86px;flex:0 0 auto;text-align:right;font-size:13.5px;white-space:nowrap}
.day .dtemps .lo{color:#4a5b6a}
#dailynote{margin-top:10px}
@media (max-width:480px){
  .day .dcond{display:none}
  .day .dname{width:60px}
}

footer{margin-top:22px;text-align:center}
footer p{font-size:11.5px;color:#5a6b7a;line-height:1.6;margin-bottom:6px}

/* menu sheet */
.scrim{position:fixed;inset:0;background:rgba(20,32,43,.35);z-index:20}
.menu-sheet{
  position:fixed;top:0;right:0;bottom:0;width:min(320px,86vw);z-index:21;
  background:rgba(255,255,255,.92);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  padding:18px;box-shadow:-8px 0 30px rgba(20,32,43,.18);
  transform:translateX(100%);transition:transform .25s ease;
}
.menu-sheet.open{transform:translateX(0)}
.menu-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.menu-close{border:none;background:none;font-size:26px;cursor:pointer;color:#14202b;padding:0 4px}
.menu-sheet ul{list-style:none;margin-top:14px}
.menu-sheet li{
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  padding:13px 4px;border-bottom:1px solid rgba(20,32,43,.08);font-size:15px;
}
.menu-sheet li em{font-style:normal;font-size:11px;color:#5a6b7a;text-align:right}
.menu-sheet li.idea span{color:#1b6f9c}

@media (max-width:560px){
  .brand-full{height:48px}
  .topdate{font-size:11.5px}
  .card{padding:22px 16px 18px;min-height:330px}
  .card .now-temp{font-size:56px}
  .nav{display:none}
}
@media (prefers-reduced-motion:reduce){
  .track.anim{transition:none}
  .menu-sheet{transition:none}
  .outlook-toggle .chev{transition:none}
  *{scroll-behavior:auto}
}
.stormlink{display:inline-block;margin:8px 0 0;padding:9px 16px;border-radius:999px;border:1px solid rgba(15,118,110,.45);background:rgba(15,118,110,.08);font-size:13.5px;font-weight:600;color:#0f766e;text-decoration:none}
.stormlink:hover{background:rgba(15,118,110,.15)}
