:root {
  --bg: #0e1117;
  --surface: #161b22;
  --surface-2: #1c222b;
  --fg: #e6e7ea;
  --muted: #8b919c;
  --border: #2a2f3a;
  --border-strong: #3a4150;
  --accent: #f5a623;
  --accent-2: #ffb84d;
  --accent-soft: #2a2010;
  --link: #f5a623;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; font-weight: 600; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
ul { padding: 0; margin: 0; list-style: none; }
p { margin: 0 0 .6em; }

/* ============ layout ============ */
.page { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-header {
  background: linear-gradient(180deg, #181d26 0%, #11151c 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.brand-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; opacity: .85; }
.tagline { color: var(--muted); font-size: .78rem; margin-top: 2px; }

.site-nav { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.site-nav a {
  color: var(--fg);
  font-size: .9rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--fg);
  margin: 4px auto;
  border-radius: 1px;
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle:hover span { background: var(--accent); }

/* ============ search ============ */
.search-wrap {
  position: relative;
  flex: 1;
  max-width: 320px;
  margin-left: auto;
}
.search-wrap input {
  width: 100%;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  font-size: .9rem;
  font-family: inherit;
}
.search-wrap input::placeholder { color: var(--muted); }
.search-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}
.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  max-height: 420px;
  overflow-y: auto;
  z-index: 100;
}
.search-result {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.search-result:hover, .search-result:focus { background: var(--surface-2); text-decoration: none; }
.search-result:last-child { border-bottom: none; }
.search-result__title { display: block; color: var(--fg); font-size: .9rem; font-weight: 500; line-height: 1.3; margin-bottom: 4px; }
.search-result__meta { display: block; color: var(--muted); font-size: .75rem; }
.search-empty { padding: 14px; color: var(--muted); text-align: center; font-size: .9rem; }

.site-footer {
  margin-top: 40px;
  padding: 24px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}
.site-footer p { margin: 4px 0; }

/* ============ breadcrumb ============ */
.breadcrumb {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 0 20px;
  font-size: .85rem;
  color: var(--muted);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb li::after { content: "›"; margin-left: 8px; color: var(--border-strong); font-weight: 600; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); text-decoration: none; }
.breadcrumb [aria-current="page"] { color: var(--fg); font-weight: 500; }

/* ============ hero cards (homepage above-the-fold) ============ */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0 24px;
}
.hero-card {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  min-height: 170px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  text-decoration: none;
}
.hero-card--play {
  background: linear-gradient(135deg, #f5a623 0%, #c97a0e 100%);
  color: #1a1208;
  border-color: rgba(0,0,0,.15);
}
.hero-card--bonus {
  background: linear-gradient(135deg, #1c1233 0%, #0e1117 100%);
  color: #f5e6c6;
  border-color: rgba(245,166,35,.35);
}
.hero-card__body { position: relative; z-index: 1; max-width: 80%; }
.hero-card__eyebrow {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .8;
  margin-bottom: 6px;
}
.hero-card__title { margin: 0 0 6px; font-size: 1.35rem; line-height: 1.2; }
.hero-card__sub { margin: 0 0 14px; font-size: .9rem; line-height: 1.4; opacity: .88; }
.hero-card__cta {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 600;
  font-size: .9rem;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.22);
}
.hero-card--bonus .hero-card__cta {
  background: var(--accent);
  color: #1a1208;
  border-color: var(--accent);
}
.hero-card:hover .hero-card__cta {
  background: rgba(0,0,0,.28);
}
.hero-card--bonus:hover .hero-card__cta {
  background: var(--accent-2);
}
.hero-card__art {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 160px;
  height: 160px;
  opacity: .22;
  pointer-events: none;
  z-index: 0;
}
.hero-card--play .hero-card__art { color: #ffe8b3; opacity: .28; }
.hero-card--bonus .hero-card__art { color: var(--accent); opacity: .25; }

@media (max-width: 700px) {
  .hero-grid { grid-template-columns: 1fr; gap: 12px; margin: 12px 0 20px; }
  .hero-card { min-height: 130px; padding: 18px 20px; }
  .hero-card__body { max-width: 75%; }
  .hero-card__title { font-size: 1.1rem; }
  .hero-card__sub { font-size: .85rem; margin-bottom: 10px; }
  .hero-card__art { width: 110px; height: 110px; right: -8px; bottom: -16px; }
}

/* ============ section ============ */
.section { margin: 24px 0; }
.section__head {
  padding: 10px 16px;
  background: linear-gradient(180deg, #1c222b, #161b22);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .85rem;
}
.section__head a { color: var(--accent); }
.section__head a:hover { text-decoration: none; opacity: .85; }
.lede { color: var(--muted); margin-bottom: 16px; }

/* ============ forum / category rows (home + category pages) ============ */
.forum-rows {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
}
.forum-rows--standalone { border-radius: var(--radius); }
.forum-row {
  display: grid;
  grid-template-columns: 32px 1fr 100px 240px;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.forum-row:last-child { border-bottom: none; }
.forum-row__icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.forum-row__title { font-size: 1.05rem; font-weight: 600; margin: 0 0 4px; }
.forum-row__title a { color: var(--fg); }
.forum-row__title a:hover { color: var(--accent); text-decoration: none; }
.forum-row__desc { color: var(--muted); font-size: .88rem; margin: 0; }
.forum-row__stats { text-align: center; color: var(--muted); }
.forum-row__stats-n { display: block; font-size: 1.3rem; font-weight: 600; color: var(--fg); line-height: 1; }
.forum-row__stats-lbl { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.forum-row__last { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: var(--muted); }
.forum-row__last-info { flex: 1; min-width: 0; }
.forum-row__last-title { color: var(--fg); font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-row__last-meta { display: block; }
.forum-row__last-empty { color: var(--muted); font-style: italic; font-size: .82rem; }

/* ============ thread list (category page) ============ */
.thread-rows {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
}
.thread-rows--standalone { border-radius: var(--radius); }
.thread-row {
  display: grid;
  grid-template-columns: 80px 1fr 90px 220px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.thread-row > .avatar { justify-self: center; }
.thread-row:last-child { border-bottom: none; }
.thread-row__title { font-size: .98rem; font-weight: 500; margin: 0 0 2px; }
.thread-row__title a { color: var(--fg); }
.thread-row__title a:hover { color: var(--accent); text-decoration: none; }
.thread-row__meta { color: var(--muted); font-size: .8rem; }
.thread-row__stats { text-align: center; color: var(--muted); font-size: .8rem; }
.thread-row__stats-n { display: block; font-size: 1.05rem; font-weight: 600; color: var(--fg); line-height: 1.2; }
.thread-row__last { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--muted); }
.thread-row__last-info { flex: 1; min-width: 0; line-height: 1.3; }
.thread-row__last-author { color: var(--fg); font-weight: 500; }

/* ============ avatar ============ */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  flex-shrink: 0;
  text-decoration: none;
  user-select: none;
}
.avatar--sm { width: 24px; height: 24px; font-size: .7rem; }
.avatar--lg { width: 70px; height: 70px; font-size: 1.6rem; }
img.avatar {
  display: inline-block;
  object-fit: cover;
  background: var(--surface-2);
}

/* ============ thread / posts ============ */
.thread-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.thread-header h1 { margin: 0 0 6px; font-size: 1.4rem; }
.thread-header .meta { color: var(--muted); font-size: .85rem; margin: 0; }
.thread-header .meta strong { color: var(--fg); }

.post {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.post__author {
  background: linear-gradient(180deg, #1a2029, #141921);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  text-align: center;
}
.post__author-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 10px 0 4px;
}
.post__author-name a { color: var(--fg); }
.post__author-name a:hover { color: var(--accent); text-decoration: none; }
.post__author-rank {
  display: inline-block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.post__author-stats {
  margin-top: 12px;
  font-size: .78rem;
  color: var(--muted);
}
.post__author-stats div { padding: 2px 0; }

.post__content { display: flex; flex-direction: column; }
.post__meta {
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.post__num { color: var(--muted); }
.post__body { padding: 18px; font-size: .95rem; line-height: 1.6; }
.post__body p { margin: 0 0 .8em; }
.post__body p:last-child { margin-bottom: 0; }
.post__body blockquote {
  margin: .8em 0;
  padding: 8px 14px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-2);
}
.post__body ul, .post__body ol { margin: 0 0 .8em; padding-left: 1.4em; }
.post__actions {
  margin-top: auto;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  font-size: .8rem;
  color: var(--muted);
}
.post__actions span { display: inline-flex; align-items: center; gap: 4px; }

/* ============ badges ============ */
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ============ tag pills ============ */
.tag {
  display: inline-block;
  padding: 2px 7px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: 1px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
}
.tag--discussion { background: rgba(58,141,222,.18);  color: #6db5f0; }
.tag--strategy   { background: rgba(144,71,160,.18);  color: #c084d0; }
.tag--question   { background: rgba(245,166,35,.18);  color: var(--accent); }
.tag--review     { background: rgba(19,160,92,.18);   color: #4ecf85; }
.tag--news       { background: rgba(217,83,79,.18);   color: #ed8e89; }
.tag--help       { background: rgba(196,60,139,.18);  color: #d870b1; }

/* ============ scores ============ */
.score { color: var(--muted); font-size: .85rem; }
.score--high { color: var(--accent); font-weight: 600; }
.score--neg { color: #d9534f; }

/* ============ sticky pin ============ */
.sticky-pin { display: inline-block; margin-right: 4px; }
.thread-row--sticky { background: rgba(245,166,35,.04); }
.thread-row--sticky .thread-row__title { color: var(--accent); }

/* ============ user profile ============ */
.user-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
}
.user-profile .avatar--lg { align-self: center; }
.user-profile h1 { margin: 0 0 4px; font-size: 1.4rem; line-height: 1.15; }
.user-profile__rank { color: var(--muted); font-size: .85rem; margin-bottom: 10px; }
.user-profile__rank .badge { margin-right: 4px; }
.user-profile__stats {
  display: flex;
  gap: 28px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.user-profile__stats > div { display: flex; flex-direction: column; line-height: 1.1; }
.user-profile__stats strong { font-size: 1.2rem; font-weight: 600; color: var(--fg); }
.user-profile__stats span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

/* tight one-line list of threads */
.profile-threads {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
}
.profile-threads li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.profile-threads li:last-child { border-bottom: none; }
.profile-threads__title {
  flex: 1;
  min-width: 0;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-threads__title:hover { color: var(--accent); text-decoration: none; }
.profile-threads__meta {
  color: var(--muted);
  font-size: .78rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.profile-empty {
  margin: 0;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--muted);
  font-style: italic;
}

/* compact recent-posts list */
.profile-posts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
}
.profile-post {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.profile-post:last-child { border-bottom: none; }
.profile-post__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  font-size: .82rem;
}
.profile-post__thread { color: var(--accent); font-weight: 500; }
.profile-post__thread:hover { text-decoration: none; opacity: .85; }
.profile-post__head time { color: var(--muted); white-space: nowrap; }
.profile-post__excerpt { color: var(--fg); line-height: 1.5; opacity: .85; }

@media (max-width: 600px) {
  .user-profile { padding: 14px; gap: 14px; }
  .user-profile .avatar--lg { width: 50px; height: 50px; font-size: 1.2rem; }
  .user-profile h1 { font-size: 1.15rem; }
  .user-profile__stats { gap: 18px; padding-top: 8px; }
  .profile-threads li { flex-wrap: wrap; padding: 10px 12px; }
  .profile-threads__title { flex-basis: 100%; white-space: normal; }
  .profile-threads__meta { font-size: .75rem; }
}

/* ============ related threads ============ */
.related-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
}
.related-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.related-list__item:last-child { border-bottom: none; }
.related-list__main { flex: 1; min-width: 0; }
.related-list__main a { color: var(--fg); }
.related-list__main a:hover { color: var(--accent); text-decoration: none; }
.related-list__meta { color: var(--muted); font-size: .82rem; white-space: nowrap; }
@media (max-width: 600px) {
  .related-list__item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .related-list__meta { font-size: .78rem; }
}

/* ============ pagination ============ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: .9rem;
}
.pagination a, .pagination span.current {
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
}
.pagination a:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); text-decoration: none; }
.pagination span.current { background: var(--accent); color: #1a1208; border-color: var(--accent); font-weight: 600; }
.pagination span.label { color: var(--muted); padding: 0 8px; }

/* ============ responsive ============ */

/* Tablet + phones: drop the icon/avatar column, give the title full width,
   then split the stats + last-poster into a 2-col row below. */
@media (max-width: 900px) {
  .page { padding: 0 14px; }
  .breadcrumb { padding: 0 14px; }

  .forum-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "main  main"
      "stats last";
    row-gap: 10px;
    column-gap: 14px;
    padding: 14px;
  }
  .forum-row__icon { display: none; }
  .forum-row > div:nth-of-type(1) { grid-area: main; min-width: 0; }
  .forum-row__stats {
    grid-area: stats;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: .8rem;
  }
  .forum-row__stats-n { display: inline; font-size: .95rem; }
  .forum-row__stats-lbl { font-size: .75rem; text-transform: lowercase; letter-spacing: 0; }
  .forum-row__last {
    grid-area: last;
    font-size: .78rem;
    min-width: 0;
    overflow: hidden;
  }
  .forum-row__last-info { min-width: 0; }
  .forum-row__last-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

  .thread-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "main  main"
      "stats last";
    row-gap: 10px;
    column-gap: 14px;
    padding: 12px 14px;
  }
  .thread-row > .avatar { display: none; }
  .thread-row > div:nth-of-type(1) { grid-area: main; min-width: 0; }
  .thread-row__stats {
    grid-area: stats;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 5px;
  }
  .thread-row__stats-n { display: inline; font-size: .95rem; }
  .thread-row__last { grid-area: last; min-width: 0; }
  .thread-row__last-info { min-width: 0; overflow: hidden; }

  /* Post: single column, author becomes a horizontal strip on top */
  .post { grid-template-columns: 1fr; }
  .post__author {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: left;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 14px;
  }
  .post__author .avatar--lg { width: 44px; height: 44px; font-size: 1.1rem; }
  .post__author-name { margin: 0; }
  .post__author-rank { margin: 0 0 0 6px; }
  .post__author-stats {
    margin: 0 0 0 auto;
    display: flex;
    gap: 12px;
    font-size: .72rem;
  }
  .post__author-stats div { padding: 0; }
  .post__body { padding: 14px; font-size: .92rem; }
  .post__meta { padding: 8px 14px; }
  .post__actions { padding: 8px 14px; }

  /* Header */
  .site-header__inner { padding: 12px 14px; gap: 12px; flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .search-wrap { max-width: 220px; }
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-left: 0;
    gap: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 12px 6px;
    border-bottom: 1px solid var(--border);
  }
  .site-nav a:last-child { border-bottom: none; }
  .thread-header { padding: 14px; }
  .thread-header h1 { font-size: 1.2rem; }
}

/* Phones */
@media (max-width: 600px) {
  body { font-size: 14px; }
  .page { padding: 0 10px; }
  .breadcrumb { padding: 0 10px; margin-top: 10px; font-size: .8rem; }
  h1 { font-size: 1.35rem; }

  .site-header__inner { gap: 8px; padding: 10px 12px; }
  .brand { font-size: 1.1rem; }
  .tagline { display: none; }
  .search-wrap { flex-basis: 100%; max-width: none; margin-left: 0; order: 99; }

  .section { margin: 16px 0; }
  .section__head { padding: 8px 12px; font-size: .92rem; }

  .forum-row { padding: 12px; }
  .forum-row__title { font-size: 1rem; }
  .forum-row__desc {
    font-size: .82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .thread-row { padding: 10px 12px; }
  .thread-row__title { font-size: .95rem; }

  .post__author { padding: 10px 12px; }
  .post__author .avatar--lg { width: 36px; height: 36px; font-size: .95rem; }
  .post__body { padding: 12px; }
  .post__actions { gap: 10px; }
  .post__actions span { font-size: .75rem; }

  .pagination a, .pagination span.current { padding: 5px 9px; font-size: .85rem; }

  .site-footer { padding: 18px 12px; font-size: .8rem; }
}
