:root {
  --navy: #0f2236;
  --navy-2: #17324d;
  --orange: #e8662a;
  --orange-ink: #b8461a;
  --bg: #f3f1ec;
  --card: #ffffff;
  --ink: #1b2430;
  --muted: #627080;
  --line: #e1ddd4;
  --danger: #b3261e;
  --radius: 10px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--orange-ink); }
.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 16px; }

.masthead { background: var(--navy); color: #fff; border-bottom: 4px solid var(--orange); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-mark { color: var(--orange); display: flex; }
.brand-text { font: 700 24px/1 var(--head); letter-spacing: .02em; text-transform: uppercase; }
.brand-text em { font-style: normal; color: var(--orange); }
.masthead-nav { display: flex; gap: 18px; }
.masthead-nav a { color: #d6dee8; text-decoration: none; font-weight: 500; font-size: 14px; }
.masthead-nav a:hover { color: #fff; }

main { flex: 1; padding-top: 24px; padding-bottom: 48px; }
h1, h2, h3 { font-family: var(--head); text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; margin: 0; }
h1 { font-size: 34px; color: var(--navy); }
h2 { font-size: 22px; color: var(--navy); }
.lede { color: var(--muted); margin: 6px 0 20px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }

.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.row:first-child { border-top: 0; }
a.row:hover { background: #faf8f4; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.row-sub { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.row-stat { text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; }
.row-stat b { display: block; font: 700 20px/1 var(--head); color: var(--navy); }
.pin { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--orange); border-radius: 4px; padding: 1px 6px; margin-right: 6px; vertical-align: 1px; }

.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 8px; padding: 10px 16px; font: 600 14px var(--body); cursor: pointer; text-decoration: none; background: var(--orange); color: #fff; }
.btn:hover { background: var(--orange-ink); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-quiet { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-quiet:hover { background: #fff; }

.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.post-op { border-left: 4px solid var(--orange); }
.post-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.post-author { font-weight: 600; color: var(--navy); }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.report { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; }
.report:hover { color: var(--danger); }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 16px; }
.form h2 { margin-bottom: 12px; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--navy); }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: 15px var(--body); background: #fff; color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hint { font-size: 12px; color: var(--muted); }
.msg { font-size: 14px; margin-top: 10px; }
.msg.err { color: var(--danger); }
.msg.ok { color: #1e6b3a; }

.empty, .error { padding: 22px 16px; color: var(--muted); text-align: center; }
.error { color: var(--danger); }
.skel { height: 58px; border-top: 1px solid var(--line); background: linear-gradient(90deg, #f4f2ee 25%, #ece9e2 50%, #f4f2ee 75%); background-size: 200% 100%; animation: sh 1.2s infinite linear; }
.skel:first-child { border-top: 0; }
@keyframes sh { to { background-position: -200% 0; } }
.more { margin-top: 12px; text-align: center; }

.rules { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.rules li { margin-bottom: 8px; }

.footer { background: var(--navy); color: #b7c3d0; font-size: 13px; padding: 18px 0; }
.footer a { color: #fff; margin-left: 6px; }

@media (max-width: 560px) {
  h1 { font-size: 28px; }
  .brand-text { font-size: 20px; }
  .row { padding: 12px; }
}
/* ---------- Boys / Girls topic grid ---------- */
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; background: var(--navy-2); border-radius: var(--radius); padding: 22px 24px 10px; }
.tcol h2 { color: #fff; margin-bottom: 12px; }
.tcard { display: flex; align-items: center; gap: 10px; padding: 16px 18px; margin-bottom: 12px; border-radius: 12px; border: 1px solid #c9d5ea; text-decoration: none; color: var(--navy-2); background: linear-gradient(180deg, #ffffff, #e8f0fd); box-shadow: 0 1px 2px rgba(0,0,0,.18); transition: transform .12s, box-shadow .12s; }
.tcol-girls .tcard { border-color: #f0cdd4; background: linear-gradient(180deg, #ffffff, #fde6eb); }
.tcard:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.28); }
.tcard:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.tcard-title { flex: 1; min-width: 0; font: 700 19px/1.15 var(--body); overflow-wrap: anywhere; }
.tcard-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.tcard-chev { color: #6b7a8c; font-size: 22px; line-height: 1; }
.tother { margin-top: 16px; }
@media (max-width: 640px) {
  .tgrid { grid-template-columns: 1fr; padding: 16px 16px 4px; }
  .tcol + .tcol { margin-top: 10px; }
  .tcard { padding: 14px 16px; }
  .tcard-title { font-size: 17px; }
}

/* ---------- drop-down compose (Start a thread / Reply) ---------- */
.compose { margin-top: 16px; }
.compose > summary { list-style: none; user-select: none; }
.compose > summary::-webkit-details-marker { display: none; }
.compose-chev { display: inline-block; margin-left: 2px; font-size: 12px; transition: transform .15s; }
.compose[open] > summary { background: var(--navy-2); }
.compose[open] .compose-chev { transform: rotate(180deg); }
.compose .form { margin-top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- homepage: topics left, latest threads right ---------- */
body:has(.home-layout) .wrap { max-width: 1200px; }
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.home-side { position: sticky; top: 16px; padding-top: 6px; }
.home-side .row { padding: 12px 14px; }
@media (max-width: 960px) {
  .home-layout { grid-template-columns: 1fr; }
  .home-side { position: static; padding-top: 0; }
}

.row-snip { font-size: 13px; color: var(--ink); opacity: .8; margin: 2px 0; overflow-wrap: anywhere; }

.terms h2 { font-size: 19px; margin: 20px 0 6px; }
.terms p { margin: 0 0 10px; }
.footer a + a { margin-left: 12px; }
