/* WAJD Forum. Deliberately plainer and denser than the Skills site.
   A forum is scanned, not admired: rows, counts and legible text beat whitespace.
   Author: WAJD AI. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0a033c;
  --body: #3d3d55;
  --muted: #74748c;
  --line: #dfe4ee;
  --line-soft: #eef1f7;
  --bg: #f6f8fc;
  --card: #ffffff;
  --accent: #2dadff;
  --accent-dark: #1276b8;
  --warn: #8a5a00;
  --danger: #c0392b;
  --ok: #2e7d52;
}

body { font-family: Roboto, -apple-system, "Segoe UI", sans-serif; background: var(--bg);
       color: var(--body); line-height: 1.55; font-size: 15px; }
h1, h2, h3, h4 { font-family: Poppins, sans-serif; color: var(--ink); line-height: 1.25; }
a { color: var(--accent-dark); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* Nav */
.nav { background: var(--ink); }
.nav-in { display: flex; align-items: center; gap: 16px; min-height: 56px; flex-wrap: wrap; padding: 8px 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { border-radius: 7px; }
.brand b { font-family: Poppins, sans-serif; font-size: 1.05rem; color: #fff; }
.brand b span { color: var(--accent); }
.searchbox { display: flex; flex: 1; min-width: 180px; max-width: 420px; gap: 6px; }
.searchbox input { flex: 1; min-width: 0; border: 1px solid transparent; border-radius: 6px;
  padding: 7px 10px; font: inherit; font-size: .9rem; }
.searchbox button { border: none; border-radius: 6px; background: var(--accent); color: #fff;
  font: inherit; font-weight: 700; font-size: .85rem; padding: 7px 12px; cursor: pointer; }
.navlinks { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.navlinks a, .who { color: #cdd6ea; text-decoration: none; font-size: .88rem; }
.navlinks a:hover { color: #fff; }
.who { color: #8e9ab8; }
.navlinks .btn { background: var(--accent); color: #fff; padding: 6px 14px; border-radius: 6px; font-weight: 700; }
.linkish { background: none; border: none; color: #cdd6ea; font: inherit; font-size: .88rem; cursor: pointer; padding: 0; }
.linkish:hover { color: #fff; }
.inline { display: inline; }

main { padding: 22px 0 50px; }

/* Hero */
.hero { background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 24px; margin-bottom: 24px; }
.hero h1 { font-size: 1.7rem; margin-bottom: 8px; }
.hero p { max-width: 68ch; }
.stats { color: var(--muted); font-size: .86rem; margin-top: 10px; }

h1 { font-size: 1.55rem; margin-bottom: 6px; }
.lede { color: var(--muted); margin-bottom: 18px; }
.sec { font-size: 1.05rem; margin: 26px 0 10px; }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 16px; }

/* Board index rows: the core of a forum */
.cats, .threads, .modlist { list-style: none; border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; background: var(--card); }
.cats li + li, .threads li + li { border-top: 1px solid var(--line-soft); }
.cat, .tl { display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  text-decoration: none; color: inherit; }
.cat:hover, .tl:hover { background: #f9fbff; }
.cat-main, .tl-main { flex: 1; min-width: 0; }
.cat strong, .tl strong { display: block; color: var(--ink); font-weight: 700; font-size: .98rem; }
.blurb, .meta { display: block; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.cat-count, .tl-count { flex-shrink: 0; min-width: 44px; text-align: center; font-weight: 700;
  color: var(--muted); font-size: .9rem; background: var(--bg); border: 1px solid var(--line);
  border-radius: 6px; padding: 4px 8px; }
.pin { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; color: var(--ok); background: #e7f4ec; border-radius: 4px; padding: 2px 6px; }
.pin.lock { color: var(--warn); background: #fdf3e0; }
mark { background: #fff2ab; }

/* Posts */
.posts { list-style: none; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; margin-bottom: 12px; }
.post.pending { border-style: dashed; background: #fffdf6; }
.post-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.post-head strong { font-family: Poppins, sans-serif; color: var(--ink); font-size: .92rem; }
.badge { font-size: .66rem; text-transform: uppercase; letter-spacing: .4px; font-weight: 700;
  color: var(--accent-dark); background: #e6f4ff; border-radius: 4px; padding: 2px 7px; }
.badge.warn { color: var(--warn); background: #fdf3e0; text-transform: none; letter-spacing: 0; }
.post-body { color: var(--body); word-wrap: break-word; overflow-wrap: anywhere; }
.post-body p { margin-bottom: 10px; }
.post-body p:last-child { margin-bottom: 0; }
.post-body a { word-break: break-all; }

.report { display: flex; gap: 6px; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--line-soft); }
.report input { flex: 1; border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px;
  font: inherit; font-size: .8rem; }
.report button { border: 1px solid var(--line); background: var(--bg); border-radius: 6px;
  font: inherit; font-size: .8rem; padding: 5px 10px; cursor: pointer; color: var(--muted); }
.report button:hover { color: var(--danger); border-color: var(--danger); }

/* Forms */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 20px; margin-bottom: 16px; }
.card.narrow { max-width: 460px; }
.card h2 { font-size: 1.05rem; margin-bottom: 12px; }
label { display: block; font-weight: 700; color: var(--ink); font-size: .88rem; margin: 12px 0 5px; }
label:first-of-type { margin-top: 0; }
input[type=text], input[type=email], input[type=password], input[type=search], textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px;
  font: inherit; font-size: .95rem; background: #fff; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
textarea { resize: vertical; min-height: 110px; }
label.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400;
  font-size: .88rem; color: var(--body); margin: 14px 0 0; }
label.check input { width: auto; margin-top: 3px; flex-shrink: 0; }
.btn { display: inline-block; background: var(--accent); color: #fff; border: none;
  border-radius: 7px; padding: 10px 20px; font-family: Poppins, sans-serif; font-weight: 600;
  font-size: .92rem; cursor: pointer; text-decoration: none; margin-top: 14px; }
.btn:hover { background: var(--accent-dark); }
.small { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.error { background: #fdecea; border: 1px solid #f5c2bc; color: #a4302a; border-radius: 7px;
  padding: 10px 14px; margin-bottom: 14px; font-size: .9rem; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: 10px;
  padding: 20px; color: var(--muted); text-align: center; }

/* Honeypot: hidden from people, visible to naive bots. Not display:none, which
   some bots detect and skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Moderation */
.modbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.modbar button { border: 1px solid var(--line); background: var(--bg); border-radius: 6px;
  font: inherit; font-size: .82rem; padding: 6px 12px; cursor: pointer; color: var(--ink); }
.modbar button:hover { border-color: var(--accent); }
.modbar button.danger { color: var(--danger); }
.modlist li { padding: 0; border: none; }
.modlist .card { border-radius: 0; border-left: none; border-right: none; margin: 0; }

/* Pagination */
.pager { display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 20px 0; font-size: .88rem; color: var(--muted); }

/* Documents */
.doc { background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 24px; max-width: 74ch; }
.doc h2 { font-size: 1.1rem; margin: 22px 0 8px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { margin-bottom: 9px; }
.doc ul { margin: 0 0 12px 20px; }

/* Footer */
.foot { background: var(--ink); color: #9aa4bd; padding: 26px 0; font-size: .86rem; }
.foot p { margin-bottom: 8px; max-width: 70ch; }
.foot strong { color: #fff; }
.foot .links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: #cdd6ea; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .small { color: #6f7896; font-size: .8rem; }

@media (max-width: 640px) {
  .nav-in { gap: 10px; }
  .searchbox { order: 3; width: 100%; max-width: none; flex-basis: 100%; }
  .navlinks { gap: 10px; }
  .cat-count, .tl-count { min-width: 38px; }
  .hero h1 { font-size: 1.35rem; }
  .head-row .btn { margin-top: 0; }
}

/* Post meta and actions */
.post-head time { color: var(--muted); font-size: .8rem; }
.edited { color: var(--muted); font-size: .74rem; font-style: italic; }
.permalink { margin-left: auto; color: var(--line); text-decoration: none; font-weight: 700; }
.permalink:hover { color: var(--accent); }
.postactions { margin-top: 10px; font-size: .82rem; }
.postactions a { color: var(--muted); }
.postactions a:hover { color: var(--accent-dark); }
.post:target { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Cross links to the rest of WAJD */
.related { background: #f2f8ff; border: 1px solid #cfe6fb; border-radius: 10px;
  padding: 16px 18px; margin-top: 26px; }
.related h2 { font-size: .95rem; margin-bottom: 8px; }
.related ul { margin: 0; padding-left: 18px; }
.related li { margin-bottom: 4px; font-size: .9rem; }

/* Unconfirmed address banner */
.verify-banner { background: #fdf3e0; border-bottom: 1px solid #f0dcb4; color: var(--warn);
  font-size: .88rem; padding: 9px 0; }
.verify-banner .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.verify-banner button { background: var(--warn); color: #fff; border: none; border-radius: 6px;
  font: inherit; font-size: .8rem; font-weight: 700; padding: 5px 12px; cursor: pointer; }
