/* Bass Boat Owners Forum: tackle box layout. Lid header with a hinge, boards and threads as tray compartments. */
:root{
  --navy:#0F1B2D;
  --tray:#16263D;
  --tray-hi:#1C3049;
  --divider:#2E4567;
  --lid:#1A2C46;
  --red:#E0353F;
  --red-text:#FF8A90;
  --silver:#C9D1DB;
  --ice:#EEF2F6;
  --muted:#A3B0C0;
  --head:"Kanit",system-ui,sans-serif;
  --body:"Source Sans 3",system-ui,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--navy);color:var(--ice);font-family:var(--body);font-size:1.0625rem;line-height:1.6}
img{max-width:100%;height:auto}
a{color:var(--red-text);text-decoration-thickness:1px;text-underline-offset:2px}
a:hover{color:var(--ice)}
:focus-visible{outline:3px solid var(--silver);outline-offset:2px;border-radius:3px}
.wrap{max-width:1080px;margin:0 auto;padding:0 16px}
.skip{position:absolute;left:-9999px;top:0;background:var(--ice);color:var(--navy);padding:8px 12px;z-index:9}
.skip:focus{left:16px;top:8px}

/* ---------- lid (header) ---------- */
.lid{position:relative;background-color:var(--lid);
  /* metalflake: the one niche detail, only on the lid */
  background-image:
    radial-gradient(circle at 20% 30%,rgba(224,53,63,.55) 0 1px,transparent 1.6px),
    radial-gradient(circle at 70% 60%,rgba(201,209,219,.45) 0 1px,transparent 1.5px),
    radial-gradient(circle at 45% 85%,rgba(224,53,63,.35) 0 .8px,transparent 1.3px);
  background-size:23px 19px,31px 27px,17px 21px;
  border-bottom:2px solid #0A1424}
.lid-in{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px;padding-top:16px;padding-bottom:18px}
.brand{display:inline-block;line-height:0}
.brandmark{height:44px;width:auto}
.brandmark--sm{height:30px}
.lid-note{margin:0;color:var(--silver);font-size:.95rem;max-width:44ch;justify-self:center}
.latch{font-family:var(--head);font-weight:500;font-size:.95rem;color:var(--ice);text-decoration:none;
  background:var(--navy);border:2px solid var(--red);border-radius:6px 6px 12px 12px;padding:6px 14px}
.latch:hover{background:var(--red);color:#fff}
.hinge{height:8px;background:
  repeating-linear-gradient(90deg,#8C98A8 0 34px,#5E6B7D 34px 36px,transparent 36px 48px);
  opacity:.75}

/* ---------- board trays nav ---------- */
.trays{background:var(--navy);border-bottom:1px solid var(--divider)}
.trays-in{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding-top:12px;padding-bottom:12px}
.tray-boards,.tray-site{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.tray-boards{background:var(--divider);padding:4px;border-radius:9px}
.tray-boards > li > a{display:flex;align-items:center;gap:8px;background:var(--tray);color:var(--ice);text-decoration:none;
  padding:6px 12px;border-radius:6px;font-family:var(--head);font-weight:500;font-size:.95rem;box-shadow:inset 0 2px 0 rgba(0,0,0,.25)}
.tray-boards > li > a:hover{background:var(--tray-hi)}
.tray-boards > li > a[aria-current]{background:var(--ice);color:var(--navy)}
.slot{display:inline-grid;place-items:center;min-width:1.5em;height:1.5em;border-radius:4px;background:var(--red);color:#fff;font-size:.8rem}
.tray-site > li > a{color:var(--silver);text-decoration:none;font-size:.95rem;padding:4px 6px}
.tray-site > li > a:hover,.tray-site > li > a[aria-current]{color:var(--ice);text-decoration:underline}

/* ---------- page basics ---------- */
main{padding:26px 0 40px}
.crumbs{margin:0 0 10px;color:var(--muted);font-size:.92rem}
.crumbs span{margin:0 6px}
.page-title,.thread-head h1,.prose h1{font-family:var(--head);font-weight:600;line-height:1.15;letter-spacing:.005em;margin:0 0 10px}
.page-title{font-size:clamp(1.7rem,4vw,2.4rem)}
.page-note{color:var(--silver);max-width:68ch;margin:0 0 20px}
.stats{list-style:none;margin:0 0 26px;padding:0;display:flex;flex-wrap:wrap;gap:22px}
.stats > li{display:flex;align-items:baseline;gap:6px}
.stats b{font-family:var(--head);font-weight:600;font-size:1.6rem;color:var(--ice)}
.stats span{color:var(--muted)}

.box{margin:0 0 28px}
.box-h{font-family:var(--head);font-weight:500;font-size:1.2rem;margin:0 0 10px;color:var(--ice)}
.box-h span{font-family:var(--body);font-weight:400;font-size:.9rem;color:var(--muted);margin-left:8px}

/* ---------- trays (compartment grids) ---------- */
.tray{list-style:none;margin:0;padding:5px;display:grid;gap:5px;background:var(--divider);border-radius:12px;
  box-shadow:0 0 0 2px #0A1424}
.tray-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tray-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.comp,.cell{background:var(--tray);border-radius:7px;padding:14px 16px;box-shadow:inset 0 3px 0 rgba(0,0,0,.28);min-width:0}
.comp{display:flex;flex-direction:column;gap:6px}
.comp-no{align-self:flex-start;font-family:var(--head);font-weight:600;color:var(--navy);background:var(--silver);min-width:1.8em;text-align:center;border-radius:4px;padding:0 6px}
.comp-name{font-family:var(--head);font-weight:500;font-size:1.15rem;color:var(--ice);text-decoration:none}
.comp-name:hover{color:var(--red-text)}
.comp-desc{margin:0;color:var(--silver);font-size:.95rem}
.comp-n{margin:auto 0 0;color:var(--muted);font-size:.9rem}
.comp-n b{color:var(--ice);margin-left:4px}
.comp-n b:first-child{margin-left:0}

.cell{display:flex;flex-direction:column;gap:6px}
.cell.is-pin{grid-column:1/-1;background:var(--tray-hi);border-left:4px solid var(--red)}
.pin-tag{align-self:flex-start;font-size:.8rem;font-weight:600;color:var(--ice);border:1px solid var(--red);border-radius:4px;padding:0 6px}
.cell-t{font-weight:600;font-size:1.05rem;line-height:1.35;color:var(--ice);text-decoration:none;overflow-wrap:anywhere}
.cell-t:hover{color:var(--red-text);text-decoration:underline}
.cell-by{margin:0;color:var(--muted);font-size:.9rem}
.cell-by b{color:var(--silver);font-weight:600}
.cell-n{margin:auto 0 0;padding-top:8px;border-top:1px dashed var(--divider);display:flex;flex-wrap:wrap;gap:4px 18px;font-size:.88rem}
.cell-n > div{display:flex;gap:5px}
.cell-n dt{color:var(--muted)}
.cell-n dd{margin:0;color:var(--ice);font-weight:600}

.linklist{list-style:none;margin:0;padding:0;border-top:1px solid var(--divider)}
.linklist > li{padding:10px 0;border-bottom:1px solid var(--divider);display:flex;flex-wrap:wrap;gap:4px 14px;align-items:baseline}
.linklist > li > a{font-weight:600}
.linklist > li > span{color:var(--muted);font-size:.92rem}
.note-strip{background:var(--tray);border:1px dashed var(--divider);border-radius:8px;padding:12px 16px;color:var(--silver);margin:0 0 28px}

/* ---------- thread page ---------- */
.thread-head{margin:0 0 18px}
.thread-head h1{font-size:clamp(1.45rem,3.4vw,2rem);max-width:40ch}
.thread-meta{margin:0;display:flex;flex-wrap:wrap;gap:4px 16px;color:var(--muted);font-size:.92rem}
.thread-meta b{color:var(--silver)}
.posts{display:flex;flex-direction:column;gap:16px;margin:0 0 22px}
.post{background:var(--tray);border:1px solid var(--divider);border-radius:9px;overflow:hidden}
.post-bar{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;padding:9px 14px;background:var(--tray-hi);border-bottom:2px solid var(--divider);font-size:.9rem;color:var(--muted)}
.post.is-op > .post-bar{border-bottom-color:var(--red)}
.author-name{font-family:var(--head);font-weight:500;font-size:1.05rem;color:var(--ice);overflow-wrap:anywhere}
.op-tag{font-family:var(--body);font-size:.75rem;font-weight:700;color:var(--navy);background:var(--silver);border-radius:3px;padding:0 5px;margin-left:6px;vertical-align:2px}
.rank{color:var(--silver);font-weight:600}
.post.is-mod .rank{color:var(--red-text)}
.post-bar time{order:9;color:var(--muted)}
.post-no{order:10;margin-left:auto;color:var(--muted);text-decoration:none}
.post-no:hover{color:var(--ice)}
.rig{margin:0;padding:7px 14px;font-size:.9rem;color:var(--silver);border-bottom:1px solid var(--divider)}
.rig > span{font-family:var(--head);font-weight:500;color:var(--navy);background:var(--silver);border-radius:3px;padding:0 6px;margin-right:6px}
.post-content{padding:12px 16px 4px;max-width:74ch}
.post-content p{margin:0 0 12px}
.post-content ul{margin:0 0 12px;padding-left:22px}
.post-content blockquote{margin:0 0 12px;padding:8px 12px;border-left:3px solid var(--silver);background:var(--navy);color:var(--silver)}
.post-footer{display:flex;gap:8px;padding:8px 14px 12px;align-items:center}
.post-act{font:inherit;font-size:.85rem;color:var(--silver);background:transparent;border:1px solid var(--divider);border-radius:5px;padding:2px 10px;cursor:pointer}
.post-act:hover{border-color:var(--silver);color:var(--ice)}
.post-link{font-size:.85rem;color:var(--muted);margin-left:auto}
.after{display:grid;grid-template-columns:2fr 1fr;gap:24px}
.tags{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.tags > li{background:var(--tray);border:1px solid var(--divider);border-radius:5px;padding:2px 9px;font-size:.88rem;color:var(--silver)}

/* ---------- prose pages ---------- */
.prose{max-width:70ch}
.prose h1{font-size:clamp(1.6rem,3.6vw,2.2rem)}
.prose h2{font-family:var(--head);font-weight:500;font-size:1.25rem;margin:26px 0 8px}
.prose .lede{font-size:1.15rem;color:var(--silver)}
.prose ul{padding-left:22px}
.prose li{margin-bottom:6px}

/* ---------- bottom tray (footer) ---------- */
.bottom-tray{background:var(--lid);border-top:8px solid #5E6B7D;margin-top:10px}
.bottom-in{display:grid;grid-template-columns:1fr 1fr;gap:18px 28px;padding-top:24px;padding-bottom:28px}
.bt-brand p{margin:8px 0 0;color:var(--silver);font-size:.95rem}
.bt-nav{display:flex;flex-wrap:wrap;gap:6px 16px;align-content:flex-start}
.bt-nav a{color:var(--ice)}
.ranks{grid-column:1/-1;list-style:none;margin:0;padding:4px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;background:var(--divider);border-radius:8px}
.ranks > li{background:var(--tray);border-radius:5px;padding:6px 8px;display:flex;flex-direction:column;font-size:.85rem;color:var(--muted)}
.ranks > li > b{font-family:var(--head);font-weight:500;color:var(--ice);font-size:.95rem}
.bt-note{grid-column:1/-1;margin:0;color:var(--muted);font-size:.9rem}

/* ---------- responsive ---------- */
@media (max-width:860px){
  .lid-in{grid-template-columns:1fr auto}
  .lid-note{grid-column:1/-1;grid-row:2;justify-self:start}
  .tray-3{grid-template-columns:1fr}
  .after{grid-template-columns:1fr}
  .ranks{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:600px){
  .tray-2{grid-template-columns:1fr}
  .brandmark{height:36px}
  .bottom-in{grid-template-columns:1fr}
  .ranks{grid-template-columns:repeat(2,minmax(0,1fr))}
  .post-content{padding:12px 14px 4px}
  .trays-in{flex-direction:column;align-items:flex-start}
}
@media (max-width:400px){
  .lid-in{grid-template-columns:1fr}
  .latch{justify-self:start}
  .tray-boards > li > a{font-size:.88rem;padding:6px 9px}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}
