:root {
  --active: #134845;
  --active-dark: #0c302e;
  --active-soft: #eaf4f2;
  --bg: #eef2ef;
  --surface: #ffffff;
  --surface-strong: #f6f8f6;
  --text: #1f2927;
  --muted: #65716f;
  --line: #d6dfdc;
  --gold: #c0902d;
  --shadow: 0 14px 32px rgba(19, 72, 69, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.forum-header {
  border-bottom: 4px solid var(--active);
  background: #17302f;
  color: #fff;
}

.header-inner {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 76px;
}

.brand img {
  display: block;
  width: 230px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.main-nav,
.header-actions,
.footer-inner nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav a,
.plain-link {
  color: #f1f7f5;
  font-size: 0.9rem;
  font-weight: 800;
}

.join-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #fff;
  color: var(--active);
  padding: 0 14px;
  font-size: 0.88rem;
  font-weight: 900;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: transparent;
  color: #fff;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
}

.mobile-menu {
  padding-bottom: 14px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 14px;
}

.mobile-menu a {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 10px 12px;
  color: #fff;
  font-weight: 800;
}

.thread-heading {
  background: linear-gradient(180deg, #ffffff, #f6faf8);
  border-bottom: 1px solid var(--line);
  padding: 24px 0 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--active);
}

.heading-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: end;
}

.thread-prefix {
  display: inline-flex;
  border-radius: 3px;
  background: var(--active);
  color: #fff;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 12px 0 10px;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.thread-heading p {
  max-width: 760px;
  margin-bottom: 0;
  color: #46514f;
  font-size: 1rem;
}

.thread-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.thread-stats div {
  min-height: 78px;
  border-right: 1px solid var(--line);
  padding: 12px;
}

.thread-stats div:last-child {
  border-right: 0;
}

.thread-stats strong,
.thread-stats span {
  display: block;
}

.thread-stats strong {
  color: var(--active);
  font-size: 1.35rem;
}

.thread-stats span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.forum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
  align-items: start;
  padding: 24px 0 44px;
}

.thread-column,
.reviews-list,
.forum-sidebar {
  display: grid;
  gap: 14px;
}

.post,
.sidebar-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.post {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  overflow: hidden;
}

.user-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border-right: 1px solid var(--line);
  background: var(--surface-strong);
  padding: 22px 14px;
  text-align: center;
}

.avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 6px;
  background: var(--active);
  color: #fff;
  font-weight: 900;
}

.user-cell strong {
  font-size: 0.94rem;
}

.user-cell span,
.user-cell small {
  color: var(--muted);
  font-size: 0.78rem;
}

.post-content {
  padding: 22px;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.post-content h2 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.post-content p {
  color: #3e4b49;
}

.post-content p a {
  color: var(--active);
  font-weight: 900;
  text-decoration: underline;
}

.site-summary {
  margin: 18px 0;
  border: 1px solid rgba(19, 72, 69, 0.22);
  border-radius: 6px;
  background: var(--active-soft);
  padding: 16px;
}

.site-summary > strong {
  display: block;
  margin-bottom: 12px;
}

dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 2px 0 0;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.stars {
  color: var(--gold);
  letter-spacing: 0;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-actions a,
.sidebar-panel a {
  color: var(--active);
  font-weight: 900;
}

.post-actions a {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.82rem;
}

.sidebar-panel {
  padding: 18px;
  box-shadow: none;
}

.sidebar-panel h2 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.sidebar-panel a {
  display: block;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.snapshot-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.snapshot-row span {
  color: var(--muted);
}

.snapshot-row strong {
  text-align: right;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 250px 1fr 44px;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .heading-panel,
  .forum-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 20px, 1160px);
  }

  .header-inner {
    grid-template-columns: 1fr 44px;
    min-height: 68px;
  }

  .brand img {
    width: min(230px, calc(100vw - 90px));
  }

  .mobile-menu nav,
  .post,
  dl,
  .thread-stats {
    grid-template-columns: 1fr;
  }

  .thread-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .thread-stats div:last-child {
    border-bottom: 0;
  }

  .user-cell {
    align-items: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .post-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }
}
