/* Fish and Ski Forum. Layout: leaderboard table. */
:root {
  --paper: #FAFAF7;
  --card: #FFFFFF;
  --ink: #2A3440;
  --muted: #56616E;
  --blue: #0E4D92;
  --blue-deep: #0A3A6E;
  --wash: #EDF2F8;
  --orange: #F26B1D;
  --orange-ink: #A8430B;
  --line: #D8DEE5;
  --slate: #2A3440;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 "Nunito Sans", system-ui, sans-serif;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3, .lb-pos, .tally dd, .bd-name { font-family: "Exo 2", system-ui, sans-serif; }

.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- masthead ---------- */
.mast { background: var(--paper); border-bottom: 1px solid var(--line); }
.mast-in {
  max-width: 1120px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.brand img { height: 44px; width: auto; }
.mast-note { margin: 0; color: var(--muted); font-size: 14px; flex: 1 1 220px; }
.mast-join {
  font-weight: 700; font-size: 14px; text-decoration: none;
  border: 2px solid var(--blue); color: var(--blue); padding: 6px 14px; border-radius: var(--radius);
}
.mast-join:hover { background: var(--blue); color: #fff; }
.tabs { background: var(--blue); position: relative; }
/* the one niche detail: a ski course buoy line under the board tabs */
.tabs::after {
  content: ""; display: block; height: 10px; background-color: var(--paper);
  background-image: radial-gradient(circle at 50% 50%, var(--orange) 2.5px, transparent 3px);
  background-size: 46px 10px; background-repeat: repeat-x; background-position: 12px 0;
}
.tabs-in { max-width: 1120px; margin: 0 auto; padding: 0 12px; display: flex; flex-wrap: wrap; }
.tabs a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 11px 12px 9px; border-bottom: 3px solid transparent;
}
.tabs a:hover { background: var(--blue-deep); }
.tabs a[aria-current="page"] { border-bottom-color: var(--orange); }

/* ---------- main ---------- */
.main { max-width: 1120px; margin: 0 auto; padding: 22px 20px 48px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.crumbs span { margin: 0 7px; }
.sect { font-size: 18px; font-weight: 700; margin: 34px 0 10px; color: var(--slate); }

.board-head {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 28px; align-items: end;
  padding-bottom: 14px; border-bottom: 2px solid var(--slate);
}
.board-head h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); line-height: 1.15; font-weight: 700; color: var(--blue); }
.board-sub { margin: 0; grid-column: 1; color: var(--muted); max-width: 70ch; }
.board-head--water h1 { color: var(--blue); }
.board-head--rig h1 { color: var(--slate); }
.board-head--buy h1 { color: var(--orange-ink); }
.tally { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 22px; margin: 0; }
.tally div { text-align: right; }
.tally dt { font-size: 13px; color: var(--muted); }
.tally dd { margin: 0; font-size: 30px; font-weight: 700; line-height: 1; color: var(--slate); }

.boards { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bd { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--blue); padding: 12px 14px; border-radius: 0 0 var(--radius) var(--radius); }
.bd-rig { border-top-color: var(--slate); }
.bd-buy { border-top-color: var(--orange); }
.bd-name { font-size: 18px; font-weight: 700; text-decoration: none; }
.bd p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.bd .bd-nums { color: var(--ink); font-size: 14px; margin-top: 8px; }

/* ---------- leaderboard table ---------- */
.lb { width: 100%; border-collapse: separate; border-spacing: 0 6px; counter-reset: pos; margin-top: 14px; }
.lb caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lb thead th {
  text-align: left; font-size: 13px; font-weight: 700; color: var(--muted);
  padding: 4px 12px; border-bottom: 1px solid var(--line);
}
.lb thead th:nth-child(n+3) { text-align: right; }
.lb-row { counter-increment: pos; background: var(--card); }
.lb-row td { padding: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: middle; }
.lb-row td:last-child { border-right: 1px solid var(--line); }
.lb-pos {
  width: 64px; text-align: center; font-size: 26px; font-weight: 700; color: var(--slate);
  border-left: 7px solid var(--blue); background: var(--wash);
}
.lb-pos::before { content: counter(pos); }
.lb-rig .lb-pos { border-left-color: var(--slate); }
.lb-buy .lb-pos { border-left-color: var(--orange); }
.lb-row:first-child .lb-pos { color: var(--orange-ink); }
.lb-title { font-weight: 700; font-size: 16px; text-decoration: none; color: var(--ink); line-height: 1.35; }
.lb-title:hover { color: var(--blue); text-decoration: underline; }
.lb-by { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.lb-n, .lb-last { text-align: right; white-space: nowrap; font-size: 15px; font-weight: 700; }
.lb-n small, .lb-last small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.lb-last { min-width: 140px; }
.pin {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--card); background: var(--slate);
  padding: 1px 7px; border-radius: 2px; margin-right: 6px; vertical-align: 2px;
}

.ranks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ranks li { border: 1px solid var(--line); background: var(--card); padding: 5px 10px; font-size: 14px; border-radius: var(--radius); }
.ranks li span { color: var(--muted); margin-left: 6px; }

/* ---------- thread ---------- */
.thread-head { border-bottom: 2px solid var(--slate); padding-bottom: 12px; margin-bottom: 18px; }
.thread-head h1 { margin: 0 0 6px; font-size: clamp(22px, 3.2vw, 30px); line-height: 1.2; font-weight: 700; max-width: 34ch; }
.thread-head .meta { margin: 0; color: var(--muted); font-size: 14px; }
.posts { display: flex; flex-direction: column; gap: 14px; }
.post {
  display: grid; grid-template-columns: minmax(0, 1fr) 220px;
  grid-template-areas: "content side" "footer side";
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.post-side {
  grid-area: side; border-left: 1px solid var(--line); background: var(--wash);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted);
}
.is-op .post-side { box-shadow: inset 0 4px 0 var(--blue); }
.post-side time { font-weight: 700; color: var(--ink); font-size: 13px; }
.who { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; }
.avatar {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.author-name { font-weight: 700; color: var(--ink); font-size: 14px; word-break: break-all; }
.op-pill { display: inline-block; margin-left: 6px; font-size: 11px; background: var(--blue); color: #fff; padding: 0 6px; border-radius: 2px; vertical-align: 1px; }
.rank { font-weight: 700; color: var(--slate); }
.rk-moderator { color: var(--orange-ink); }
.rk-captain, .rk-skipper { color: var(--blue); }
.post-number { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 13px; }
.post-content { grid-area: content; padding: 16px 20px 4px; max-width: 76ch; }
.post-content p { margin: 0 0 12px; }
.post-content blockquote {
  margin: 0 0 12px; padding: 8px 12px; border-left: 4px solid var(--orange);
  background: var(--paper); font-size: 15px;
}
.post-content blockquote cite { display: block; font-style: normal; font-weight: 700; font-size: 13px; color: var(--muted); }
.post-footer { grid-area: footer; padding: 6px 20px 12px; display: flex; gap: 14px; align-items: center; }
.post-action {
  font: 600 13px "Nunito Sans", sans-serif; color: var(--muted); background: none;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 3px 10px; cursor: pointer;
}
.post-action:hover { color: var(--blue); border-color: var(--blue); }
.post-link { font-size: 13px; color: var(--muted); }
.reply-box { margin: 18px 0 0; padding: 12px 16px; border: 1px dashed var(--line); color: var(--muted); }
.after { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.related, .tags { list-style: none; margin: 0; padding: 0; }
.related li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.related li span { display: block; font-size: 13px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; background: var(--wash); padding: 2px 9px; border-radius: 2px; }

/* ---------- prose ---------- */
.prose { max-width: 70ch; }
.prose h1 { font-size: clamp(26px, 4vw, 34px); color: var(--blue); margin: 0 0 12px; line-height: 1.2; }
.prose h2 { font-size: 20px; margin: 26px 0 8px; }
.prose li { margin-bottom: 6px; }

/* ---------- footer ---------- */
.foot { border-top: 4px solid var(--slate); background: var(--paper); }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 22px 20px 30px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.foot-brand img { height: 30px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.foot-note { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .boards { grid-template-columns: 1fr; }
  .board-head { grid-template-columns: 1fr; }
  .tally { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 8px; }
  .tally div { text-align: left; }
  .after { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .mast-in { padding: 12px 16px; gap: 10px; }
  .mast-note { display: none; }
  .mast-join { font-size: 13px; padding: 4px 10px; margin-left: auto; }
  .brand img { height: 32px; }
  .tabs-in { padding: 0 4px; }
  .tabs a { font-size: 14px; padding: 9px 9px 7px; }
  .main { padding: 18px 16px 40px; }
  .lb, .lb tbody { display: block; }
  .lb thead { display: none; }
  .lb-row {
    display: grid; grid-template-columns: 44px 0.8fr 0.8fr 1.5fr; margin-bottom: 8px;
    border: 1px solid var(--line);
  }
  .lb-row td { border: 0; padding: 8px 10px; }
  .lb-row td:last-child { border: 0; }
  .lb-pos { grid-row: 1 / span 2; width: auto; font-size: 22px; display: flex; align-items: center; justify-content: center; }
  .lb-thread { grid-column: 2 / span 3; }
  .lb-n, .lb-last { text-align: left; font-size: 14px; padding-top: 0; min-width: 0; white-space: normal; }
  .post { grid-template-columns: 1fr; grid-template-areas: "side" "content" "footer"; }
  .post-side { border-left: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 14px; }
  .post-side time { flex-basis: 100%; }
  .who { margin: 0; }
  .post-number { margin: 0 0 0 auto; padding: 0; }
  .post-content { padding: 14px 14px 2px; }
  .post-footer { padding: 4px 14px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
