:root {
  --ink: #10222e;
  --muted: #5b7280;
  --bg: #f4f8fa;
  --card: #ffffff;
  --accent: #0b7d9e;
  --accent-dark: #095f78;
  --line: #dce8ed;
  --s0: #d64545; --s1: #e8853d; --s2: #e8c53d; --s3: #7bc96f; --s4: #2e9e5b;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.5;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

/* header */
.site-header {
  background: linear-gradient(135deg, #0b3d51 0%, #0b7d9e 100%);
  color: #fff; padding: 28px 0 24px;
}
.site-header .brand { color: #bfe9f5; text-decoration: none; font-weight: 600; font-size: 14px; }
.site-header h1 { margin: 8px 0 4px; font-size: 28px; letter-spacing: -0.5px; }
.site-header .sub { margin: 0; color: #cfeaf3; font-size: 14px; }

/* controls */
.controls {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin: 16px 0; display: flex; flex-direction: column; gap: 12px;
}
.control-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); display: block; margin-bottom: 6px; }
.technique-pills, .day-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 14px; font-size: 14px; cursor: pointer; color: var(--ink);
}
.pill small { color: var(--muted); display: block; font-size: 11px; }
.pill.active { border-color: var(--accent); background: #e6f5fa; font-weight: 700; }
.day-pills .pill { text-align: center; min-width: 64px; }
.day-pills .pill .dow { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.day-pills .pill.active .dow { color: var(--accent-dark); }

/* best bets */
.best-bets { display: grid; gap: 10px; margin: 0 0 16px; }
.bet {
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--s4);
  border-radius: 10px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.bet .where { font-weight: 700; }
.bet .when { color: var(--muted); font-size: 13px; }
.bet .score {
  font-size: 22px; font-weight: 800; min-width: 52px; height: 52px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.best-bets h2, .beach-list h2 { font-size: 18px; margin: 4px 0 2px; }

/* biting strip */
.biting {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; margin-bottom: 16px; font-size: 14px;
}
.biting strong { display: block; margin-bottom: 6px; }
.biting .sp { display: inline-block; background: #eef4f6; border-radius: 999px; padding: 3px 10px; margin: 0 6px 6px 0; font-size: 13px; }
.biting .sp.peak { background: #dff0e3; font-weight: 700; }
.biting .sp.season { background: #eef4f6; }
.biting .sp.off { background: #f8fafc; color: #94a3b8; opacity: .65; }
.biting a.sp.off:hover { background: #eef4f6; }

/* beach cards */
.beach {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden;
}
.beach-head {
  width: 100%; background: none; border: none; padding: 14px 16px; cursor: pointer;
  display: flex; align-items: center; gap: 12px; text-align: left; font-size: 16px; color: var(--ink);
}
.beach-head .name { font-weight: 700; flex: 1; }
.beach-head .day-score {
  font-weight: 800; font-size: 15px; color: #fff; border-radius: 8px;
  padding: 4px 10px; min-width: 44px; text-align: center;
}
.beach-head .chev { color: var(--muted); transition: transform 0.15s; }
.beach.open .beach-head .chev { transform: rotate(180deg); }
.beach-body { display: none; padding: 0 16px 16px; }
.beach.open .beach-body { display: block; }
.hour-bars { display: flex; gap: 2px; align-items: flex-end; height: 64px; margin: 8px 0 4px; }
.hour-bar {
  flex: 1; border-radius: 3px 3px 0 0; min-width: 0; cursor: pointer; border: none; padding: 0;
  position: relative;
}
.hour-bar.golden { outline: 2px solid #f5b301; outline-offset: -2px; }
.hour-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.hour-detail {
  background: #f0f6f8; border-radius: 8px; padding: 10px 12px; font-size: 13px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px;
}
.hour-detail .k { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.best-window { font-size: 14px; margin: 6px 0; }
.best-window strong { color: var(--accent-dark); }

/* conditions */
.conditions {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; margin-bottom: 20px; font-size: 14px;
}
.conditions .row { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.conditions .row:last-child { border-bottom: none; }

/* footer */
.site-footer { padding: 20px 0 32px; color: var(--muted); font-size: 13px; }
.site-footer a { color: var(--accent); }
#generatedAt { font-weight: 600; color: var(--ink); }

@media (max-width: 560px) {
  .site-header h1 { font-size: 23px; }
  .hour-detail { grid-template-columns: repeat(2, 1fr); }
}
.biting .sp-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.biting a.sp { text-decoration: none; color: var(--ink); }
.biting a.sp:hover { background: #d7e9ef; }

/* Seasons section */
.seasons { margin-top: 28px; }
.seasons h2 { font-size: 20px; margin: 0 0 6px; }
.seasons-intro { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 14px; max-width: 760px; }
.season-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.season-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; }
.season-card h3 { margin: 0 0 8px; font-size: 16px; }
.season-card h3 span { color: var(--muted); font-weight: 600; font-size: 13px; margin-left: 4px; }
.season-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.seasons-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.timing-note { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 12px 16px; font-size: 13.5px; line-height: 1.6; margin-bottom: 14px; }
