/* The Community Journal — visual: Forum Thread
   motif: thread lines / avatar dots / reply indents
   palette: bg #f4f5f7 · accent #0a7ea4 · ink #22303a
   typography: sans. Every corner stays square. */

:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --ink: #22303a;
  --ink-soft: #5b6b78;
  --accent: #0a7ea4;
  --accent-dark: #075f7d;
  --line: #d3d9df;
  --line-strong: #b9c2ca;
  --tone-build: #0a7ea4;
  --tone-culture: #075f7d;
  --tone-engage: #15a08a;
  --tone-platform: #5d768a;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.forum {
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 35px,
      rgba(34, 48, 58, 0.055) 35px,
      rgba(34, 48, 58, 0.055) 36px);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 22px; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

h1, h2, h3 { font-family: inherit; line-height: 1.24; letter-spacing: -0.01em; }

/* ---------- header bar ---------- */
.thread-bar {
  background: var(--ink);
  border-bottom: 4px solid var(--accent);
}
.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #eef2f5; }
.brand:hover { text-decoration: none; color: #fff; }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.brand-sub { font-size: 12px; color: #9fb1bd; letter-spacing: 0.02em; }
.bar-nav { display: flex; gap: 20px; }
.bar-nav a { color: #cfdae2; font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase; }
.bar-nav a:hover { color: #fff; text-decoration: none; }

/* ---------- home plaza ---------- */
.plaza-hero { border-bottom: 1px solid var(--line-strong); background: var(--panel); }
.plaza-hero .wrap { padding-top: 46px; padding-bottom: 40px; }
.plaza-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}
.plaza-title { font-size: 40px; margin: 0 0 16px; max-width: 20ch; }
.plaza-lede { font-size: 18px; color: var(--ink-soft); max-width: 62ch; margin: 0; }

.section-label {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 8px;
  margin: 0 0 18px;
}

/* legend / type key */
.type-key { padding-top: 34px; padding-bottom: 8px; }
.key-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.key-item { display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: var(--ink-soft); }
.key-item .tc-dot { flex: 0 0 auto; }

/* board nav (category tiles) */
.board-nav { padding-top: 30px; padding-bottom: 12px; }
.board-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.board-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--accent);
  padding: 16px 16px 15px;
  color: var(--ink);
}
.board-tile:hover { text-decoration: none; border-left-color: var(--accent-dark); background: #fbfcfd; }
.board-count { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.board-name { font-size: 17px; font-weight: 700; }

/* thread groups on home */
.board-section { padding-top: 34px; }
.board-section .wrap { padding-top: 0; }
.group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 18px;
}
.group-head h2 { font-size: 23px; margin: 0; }
.group-more { font-size: 14px; white-space: nowrap; }

/* ---------- thread card (forum post) ---------- */
.thread-list { display: grid; gap: 0; }
.thread-card {
  display: flex;
  gap: 14px;
  padding: 18px 4px 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.thread-card:hover { text-decoration: none; background: rgba(10, 126, 164, 0.045); }
.tc-dot { flex: 0 0 auto; padding-top: 4px; }
.tc-main { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.tc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.tc-title { font-size: 19px; font-weight: 700; }
.tc-cat {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  background: var(--ink-soft);
  padding: 3px 8px;
}
.c-build { background: var(--tone-build); }
.c-culture { background: var(--tone-culture); }
.c-engage { background: var(--tone-engage); }
.c-platform { background: var(--tone-platform); }

.tc-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink-soft); }
.tc-meta b { color: var(--ink); font-weight: 700; margin-right: 5px; }
.tc-desc { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* reply indent used across card body copy */
.tc-main { border-left: 2px solid var(--line); padding-left: 14px; }
.thread-card:hover .tc-main { border-left-color: var(--accent); }

/* ---------- page head / breadcrumb ---------- */
.page-head { padding-top: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--line-strong); }
.crumb { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; letter-spacing: 0.02em; }
.crumb a { color: var(--ink-soft); }
.page-head h1 { font-size: 34px; margin: 0 0 10px; max-width: 26ch; }
.page-head .lede { margin: 0; color: var(--ink-soft); font-size: 17px; }

/* ---------- entry layout ---------- */
.layout { display: grid; grid-template-columns: 340px 1fr; gap: 40px; padding-top: 32px; padding-bottom: 40px; align-items: start; }

.playbook {
  position: sticky;
  top: 20px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-top: 5px solid var(--accent);
  padding: 20px 20px 6px;
}
.pb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.pb-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.pb-spec { margin: 0; }
.pb-row { border-top: 1px solid var(--line); padding: 11px 0; }
.pb-row dt { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 3px; }
.pb-row dd { margin: 0; font-size: 15px; color: var(--ink); }
.pb-row dd ul { margin: 0; padding-left: 18px; }

/* ---------- thread body / replies ---------- */
.thread-body { min-width: 0; }
.sec {
  position: relative;
  border-left: 2px solid var(--line);
  padding: 2px 0 6px 20px;
  margin: 0 0 30px;
}
.sec::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}
.sec h2 {
  font-size: 22px;
  margin: 0 0 12px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.sec-num {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  padding: 2px 8px;
}
.sec p { margin: 0 0 14px; }

.related { border-left-color: var(--accent); }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.related-list li { border-left: 2px solid var(--line); padding-left: 12px; }
.related-list a { font-size: 15px; }

/* ---------- legal / prose pages ---------- */
.prose { padding-top: 30px; padding-bottom: 46px; max-width: 74ch; }
.prose h2 { font-size: 20px; margin: 26px 0 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.prose p { margin: 0 0 14px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cfdae2; border-top: 4px solid var(--accent); margin-top: 20px; }
.footer-inner { padding-top: 30px; padding-bottom: 34px; display: grid; gap: 18px; }
.footer-brand .brand-name { color: #fff; font-size: 17px; font-weight: 700; }
.footer-brand p { margin: 6px 0 0; font-size: 14px; color: #9fb1bd; max-width: 60ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: #cfdae2; font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.copyright { margin: 0; font-size: 12px; color: #8798a5; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; gap: 26px; }
  .playbook { position: static; }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .key-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body.forum { font-size: 16px; }
  .plaza-title { font-size: 30px; }
  .page-head h1 { font-size: 26px; }
  .board-grid { grid-template-columns: 1fr; }
  .bar-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .bar-nav { gap: 14px; }
  .tc-meta { flex-direction: column; gap: 4px; }
}
