:root{
  --bg:#f5f7fa;
  --card:#ffffff;
  --yes:#2ecc71;
  --no:#e74c3c;
  --text:#2c3e50;
  --muted:#7f8c8d;
  --primary:#3498db;
  --border:#e7edf4;
  --shadow:0 10px 25px rgba(0,0,0,0.08);
  --bestGlow:0 0 0 4px rgba(46,204,113,0.18);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  background:var(--bg);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  display:flex;
  flex-direction:column;
  align-items:center;
  min-height:100vh;
}

/* Header */
.site-header{
  width:100%;
  background:#fff;
  border-bottom:1px solid var(--border);
  margin-bottom:0.35rem;
}
.site-header-inner{
  max-width:720px;
  margin:0 auto;
  padding:0.45rem 1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.brand-home{
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  text-decoration:none;
  color:var(--text);
  font-weight:800;
}
.brand-home img{
  width:22px;
  height:22px;
  object-fit:contain;
}
.site-link{
  color:var(--primary);
  font-weight:700;
  text-decoration:none;
  opacity:0.75;
  font-size:0.92rem;
}
.site-link:hover{
  opacity:1;
  text-decoration:underline;
}
@media (max-width:480px){
  .site-header-inner{ padding:0.5rem 1rem; }
}

.card{
  background:var(--card);
  margin:1rem;
  padding:1.5rem;
  border-radius:14px;
  max-width:560px;
  width:100%;
  box-shadow:var(--shadow);
  text-align:center;
}

.page-title{
  margin:0.25rem 0 0.75rem 0;
  font-size:1.8rem;
  font-weight:900;
}

.rules{
  margin:0 0 0.8rem 0;
  color:var(--muted);
  font-weight:700;
  font-size:0.95rem;
}

.alert-banner{
  text-align:left;
  border:1px solid rgba(231,76,60,0.28);
  background:rgba(231,76,60,0.08);
  padding:0.85rem 0.95rem;
  border-radius:14px;
  margin:0.25rem 0 0.9rem 0;
  font-weight:900;
}
.alert-banner small{
  display:block;
  font-weight:650;
  color:#4e5b66;
  margin-top:0.3rem;
}

.best-day{
  text-align:left;
  border:1px solid rgba(46,204,113,0.35);
  background:rgba(46,204,113,0.08);
  padding:0.85rem 0.95rem;
  border-radius:14px;
  margin:0.25rem 0 0.9rem 0;
  font-weight:900;
}
.best-day small{
  display:block;
  font-weight:650;
  color:#4e5b66;
  margin-top:0.25rem;
}

.location-label{
  font-size:0.85rem;
  color:var(--muted);
  margin:0.35rem 0 0.25rem 0;
  display:flex;
  gap:0.6rem;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
}

.geo-btn{
  border:none;
  background:transparent;
  color:var(--primary);
  font-weight:700;
  cursor:pointer;
  padding:0;
  text-decoration:underline;
}

.updated-at{
  font-size:0.75rem;
  color:var(--muted);
  margin:0 0 0.9rem 0;
}

.zip-box{
  display:flex;
  gap:0.6rem;
  margin:0.5rem 0 1rem 0;
  justify-content:center;
}
.zip-box input{
  flex:1;
  max-width:340px;
  padding:0.85rem 0.95rem;
  border-radius:12px;
  border:1px solid #cfd6de;
  font-size:1rem;
  outline:none;
}
.zip-box input:focus{
  border-color:rgba(52,152,219,0.8);
  box-shadow:0 0 0 4px rgba(52,152,219,0.12);
}
.zip-box button{
  padding:0.85rem 1.25rem;
  border:none;
  border-radius:12px;
  background:var(--primary);
  color:#fff;
  font-size:1rem;
  cursor:pointer;
  font-weight:900;
}

.outlook-list{
  display:grid;
  gap:0.85rem;
  margin-top:0.5rem;
}

.day-card{
  text-align:left;
  border-radius:16px;
  border:1px solid var(--border);
  padding:1.05rem;
  background:#fff;
}

.day-card.best{
  box-shadow:var(--bestGlow);
  border-color:rgba(46,204,113,0.45);
}

.day-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:0.75rem;
}

.day-title{
  font-size:1.15rem;
  font-weight:900;
}

.day-reason{
  margin:0.45rem 0 0.6rem 0;
  font-weight:800;
  color:#32414f;
}

.verdict-pill{
  border-radius:999px;
  padding:0.35rem 0.8rem;
  font-weight:900;
  border:1px solid transparent;
  white-space:nowrap;
}
.verdict-pill.yes{
  color:#1b6b3b;
  background:rgba(46,204,113,0.16);
  border-color:rgba(46,204,113,0.25);
}
.verdict-pill.no{
  color:#8a221c;
  background:rgba(231,76,60,0.16);
  border-color:rgba(231,76,60,0.25);
}

.metrics{
  display:flex;
  gap:1.05rem;
  flex-wrap:wrap;
  color:#5c6873;
  font-weight:700;
}
.metrics span{
  display:inline-flex;
  align-items:center;
  gap:0.35rem;
}

.hourly-toggle{
  margin-top:0.75rem;
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  border:1px solid #dbe4ee;
  background:#f6f8fb;
  color:#2e3c49;
  font-weight:900;
  border-radius:12px;
  padding:0.55rem 0.8rem;
  cursor:pointer;
}

.hourly{
  margin-top:0.75rem;
  border-top:1px solid var(--border);
  padding-top:0.75rem;
}
.hourly table{
  width:100%;
  border-collapse:collapse;
  font-size:0.9rem;
}
.hourly th,.hourly td{
  padding:0.42rem 0.32rem;
  border-bottom:1px solid #edf2f7;
}
.hourly th{
  text-align:left;
  color:#5b6772;
  font-weight:900;
}
.hourly td{
  color:#2c3e50;
  font-weight:650;
}

.back{
  margin:1rem 0 0 0;
}
.back a{
  color:var(--primary);
  font-weight:800;
  text-decoration:none;
}
.back a:hover{ text-decoration:underline; }

.hidden{ display:none; }

footer{
  font-size:0.8rem;
  color:var(--muted);
  margin:1rem 0 1.25rem 0;
}

@media (max-width:480px){
  .card{ padding:1.25rem; }
  .page-title{ font-size:1.6rem; }
}
