/* SFSC Forums — fishing reports section. Matches the forecast pages' look. */
: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;
  /* seaweed scale: 1 Clean -> 5 Unfishable */
  --weed-1: #2e9e5b; --weed-2: #7bc96f; --weed-3: #e8c53d; --weed-4: #e8853d; --weed-5: #d64545;
}
* { 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; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h2 { font-size: 18px; margin: 24px 0 8px; }
h3 { font-size: 16px; margin: 16px 0 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 14px; }

/* 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; }
.site-header .crumbs { margin: 0 0 4px; font-size: 13px; }
.site-header .crumbs a { color: #bfe9f5; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 32px; padding: 20px 0 28px; color: var(--muted); font-size: 13px; }
.site-footer p { margin: 0 0 6px; }

/* cards + sections */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px;
}
.card h2, .card h3 { margin-top: 0; }
.rules { background: #eef7fa; }
.rules ul { margin: 6px 0 0; padding-left: 20px; }
.rules li { margin-bottom: 4px; }

/* buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; border: none; border-radius: 999px; padding: 10px 20px; font-size: 15px; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--accent-dark); border: 1.5px solid var(--accent); }
.btn-secondary:hover { background: #e6f5fa; color: var(--accent-dark); }
.btn-block { display: block; text-align: center; }
.cta-row { margin: 16px 0; display: flex; gap: 10px; flex-wrap: wrap; }

/* link lists (hub / county) */
.link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
@media (max-width: 480px) { .link-grid { grid-template-columns: 1fr; } }
.link-grid a {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px;
}
.link-grid a:hover { border-color: var(--accent); }
.link-grid a span { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.coming-soon { color: var(--muted); font-size: 14px; margin: 0 0 4px; }
.coming-soon strong { color: var(--ink); }

/* stats row */
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; flex: 1; min-width: 120px; }
.stat .num { font-size: 24px; font-weight: 800; }
.stat .lbl { color: var(--muted); font-size: 13px; }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.table-wrap { overflow-x: auto; }

/* seaweed chips + board */
.weed-chip {
  display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 13px;
  font-weight: 700; color: #fff; white-space: nowrap;
}
.weed-chip.w1 { background: var(--weed-1); }
.weed-chip.w2 { background: var(--weed-2); color: var(--ink); }
.weed-chip.w3 { background: var(--weed-3); color: var(--ink); }
.weed-chip.w4 { background: var(--weed-4); }
.weed-chip.w5 { background: var(--weed-5); }
.weed-none { color: var(--muted); font-size: 13px; }
.board-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.board-row:last-child { border-bottom: none; }
.board-row .bname { font-weight: 600; }
.board-row .bname a { color: var(--ink); text-decoration: none; }
.board-row .bname a:hover { color: var(--accent); }
.board-row .bmeta { font-size: 13px; color: var(--muted); text-align: right; }

/* report cards */
.report { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.report-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.badge {
  display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700;
}
.badge-bite { background: #e6f5fa; color: var(--accent-dark); }
.badge-report { background: #e6f5fa; color: var(--accent-dark); }
.badge-seaweed { background: #fdf3e3; color: #8a5a00; }
.badge-sample { background: #f0e6f5; color: #6b3a8a; }
.report-meta { color: var(--muted); font-size: 13px; }
.report-meta strong { color: var(--ink); }
.report h3 { margin: 0 0 4px; font-size: 16px; }
.report h3 a { color: var(--ink); text-decoration: none; }
.report h3 a:hover { color: var(--accent); }
.report .species { margin: 6px 0; }
.sp {
  display: inline-block; background: #eef4f6; border-radius: 999px; padding: 3px 10px;
  margin: 0 6px 6px 0; font-size: 13px;
}
.report .notes { margin: 6px 0; }
.report .detail-line { font-size: 14px; margin: 2px 0; }
.report .detail-line span { color: var(--muted); }
.report-foot { margin-top: 8px; font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.rating { font-weight: 700; }
.empty {
  background: var(--card); border: 1px dashed var(--line); border-radius: 12px;
  padding: 20px 16px; text-align: center; color: var(--muted); margin-bottom: 12px;
}
.empty p { margin: 0 0 10px; }

/* filter pills */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.pill {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 14px; font-size: 14px; cursor: pointer; color: var(--ink);
}
.pill.active { border-color: var(--accent); background: #e6f5fa; font-weight: 700; }

/* what's biting tally */
.tally-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tally-row:last-child { border-bottom: none; }
.tally-row .count { font-weight: 700; white-space: nowrap; }
.tally-row .beaches { color: var(--muted); font-size: 13px; }

/* form */
form .field { margin-bottom: 12px; }
form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
form label .opt { font-weight: 400; color: var(--muted); font-size: 13px; }
form input[type="text"], form input[type="date"], form input[type="number"],
form select, form textarea {
  width: 100%; padding: 10px 12px; font-size: 15px; font-family: inherit;
  border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
form textarea { min-height: 72px; resize: vertical; }
form .help { color: var(--muted); font-size: 13px; margin-top: 4px; }
form .char-count { color: var(--muted); font-size: 12px; text-align: right; }
.type-picker { display: flex; gap: 8px; margin-bottom: 4px; }
.type-picker .pill { flex: 1; text-align: center; padding: 12px 14px; font-size: 15px; }
.checks { display: flex; flex-direction: column; gap: 6px; }
.checks label { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.checks input { width: 18px; height: 18px; accent-color: var(--accent); }
details.optional { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
details.optional summary { cursor: pointer; font-weight: 600; font-size: 14px; }
details.optional .field { margin-top: 12px; }
.form-msg { border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; display: none; }
.form-msg.ok { display: block; background: #dff0e3; color: #1d5c2e; }
.form-msg.err { display: block; background: #fbe3e3; color: #7a1f1f; }
/* honeypot: hidden from humans, present for bots */
.hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* replies */
.replies { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.reply { background: #f8fbfc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: 14px; }
.reply .rmeta { color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.reply-form { margin-top: 12px; }

/* hub tabs */
.tablist { display: flex; gap: 8px; margin: 16px 0 12px; }
.tab {
  flex: 1; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 10px 14px; font-size: 15px; font-weight: 600;
  font-family: inherit; cursor: pointer;
}
.tab:hover { border-color: var(--accent); }
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
[hidden] { display: none !important; }

/* hub directory dropdowns (mirrors the forecast picker) */
.dir {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 12px;
}
.dir summary {
  cursor: pointer; font-weight: 700; font-size: 15px; color: var(--ink);
  list-style: none; display: flex; align-items: center; gap: 8px;
}
.dir summary::-webkit-details-marker { display: none; }
.dir summary::after { content: '▾'; margin-left: auto; color: var(--muted); }
.dir[open] summary::after { content: '▴'; }
.dir-rules { background: #eef7fa; }
.dir-rules ul { margin: 6px 0 0; padding-left: 20px; }
.dir-rules li { margin-bottom: 4px; }
.dir-list { display: flex; flex-direction: column; margin-top: 6px; }
.dir-list a {
  display: block; font-size: 14.5px; color: var(--ink); text-decoration: none;
  font-weight: 600; padding: 9px 8px; border-bottom: 1px solid var(--line); border-radius: 6px;
}
.dir-list a:last-child { border-bottom: none; }
.dir-list a:hover { background: #e6f5fa; }
.dir-list a.dir-overview { color: var(--accent); }
