:root {
  --navy: #152238;
  --navy-2: #22324a;
  --ink: #172033;
  --muted: #637083;
  --line: #d8dee8;
  --paper: #fff;
  --surface: #f4f6f9;
  --burgundy: #9b2431;
  --gold: #b78a3b;
  --green: #167b65;
  --shadow: 0 18px 50px rgba(21, 34, 56, 0.11);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
.container {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav-shell {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 800;
}
.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 750;
  border-radius: 6px;
}
.site-nav a:hover {
  background: #eef1f5;
}
.site-nav .nav-action {
  background: var(--navy);
  color: #fff;
  margin-left: 5px;
}
.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}
.menu-toggle {
  display: none;
}
.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  background: #e9eef4 url("assets/community-hero.png") center/cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero:before {
  display: none;
}
.hero-content {
  position: relative;
  max-width: 650px;
  padding: 72px 0;
}
.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero h1 {
  margin: 15px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
}
.hero p {
  max-width: 590px;
  font-size: 19px;
  color: #465367;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.button.secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.button.danger {
  background: var(--burgundy);
  border-color: var(--burgundy);
}
.button.success {
  background: var(--green);
  border-color: var(--green);
}
.section {
  padding: 64px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}
.section-heading h2,
.page-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
}
.section-heading p,
.page-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}
.topic-grid,
.content-grid,
.category-grid,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.content-card,
.category-card,
.panel,
.topic-card,
.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(21, 34, 56, 0.05);
}
.content-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 24px;
}
.content-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.25;
  margin: 14px 0 10px;
}
.content-card p {
  color: var(--muted);
  margin: 0;
}
.card-footer {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.category-card {
  padding: 22px;
  border-top: 3px solid var(--gold);
}
.category-card h3 {
  margin: 0 0 6px;
}
.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.category-card span {
  display: block;
  margin-top: 18px;
  font-weight: 800;
  color: var(--burgundy);
}
.home-callout {
  background: var(--navy);
  color: #fff;
}
.home-callout .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
}
.home-callout h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  margin: 0 0 12px;
}
.home-callout p {
  color: #cbd5e1;
}
.callout-points {
  display: grid;
  gap: 12px;
}
.callout-point {
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 16px;
}
.page-main {
  padding: 44px 0 72px;
}
.page-heading {
  margin-bottom: 26px;
}
.filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 22px;
}
.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid #cbd3df;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
}
.textarea {
  min-height: 140px;
  resize: vertical;
}
.label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-field.full {
  grid-column: 1/-1;
}
.panel {
  padding: 24px;
}
.auth-shell {
  width: min(620px, calc(100% - 32px));
  margin: 50px auto 80px;
}
.auth-shell h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  margin: 0;
}
.auth-shell .panel {
  margin-top: 20px;
}
.help {
  color: var(--muted);
  font-size: 13px;
}
.flash {
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 6px;
  border: 1px solid;
}
.flash-success {
  background: #e9f8f3;
  border-color: #9ed7c7;
  color: #0d604f;
}
.flash-error {
  background: #fff0f1;
  border-color: #efadb4;
  color: #8b1f2b;
}
.flash-info {
  background: #edf4ff;
  border-color: #b8cef3;
  color: #244f8e;
}
.empty {
  padding: 42px;
  text-align: center;
  background: #fff;
  border: 1px dashed #bcc6d4;
  border-radius: 8px;
  color: var(--muted);
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}
.article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 52px);
}
.article h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  line-height: 1.08;
  margin: 12px 0 18px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.article-summary {
  font-size: 19px;
  color: #465367;
  border-left: 4px solid var(--gold);
  padding-left: 18px;
  margin: 28px 0;
}
.article-body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  white-space: pre-wrap;
}
.member-wall {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.member-wall strong {
  display: block;
  margin-bottom: 12px;
}
.article-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
}
.meta-list {
  display: grid;
  gap: 12px;
}
.meta-list div {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.meta-list small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}
.discussion {
  margin-top: 24px;
}
.comment {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}
.comment-head time {
  color: var(--muted);
  font-size: 12px;
}
.forum-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
}
.forum-categories {
  padding: 12px;
}
.forum-categories a {
  display: block;
  padding: 11px;
  border-radius: 5px;
  font-weight: 750;
}
.forum-categories a:hover,
.forum-categories a.active {
  background: #eef1f5;
  color: var(--burgundy);
}
.topic-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px;
  margin-bottom: 12px;
}
.topic-card h3 {
  margin: 0 0 5px;
  font-size: 18px;
}
.topic-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.topic-stats {
  text-align: right;
  color: var(--muted);
  font-size: 13px;
}
.topic-stats strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}
.forum-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.topic-body {
  font-size: 17px;
  white-space: pre-wrap;
}
.field-hint {
  display: block;
  color: var(--muted);
  margin-top: 7px;
}
.topic-attachments {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.attachment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.attachment-row:first-of-type {
  border-top: 0;
}
.attachment-row small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.topic-edit-shell {
  width: min(860px, calc(100% - 32px));
}
.topic-page-nav,
.topic-owner-actions,
.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topic-owner-actions form,
.danger-zone form,
.attachment-row form {
  margin: 0;
}
.topic-page-title {
  margin: 10px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  letter-spacing: 0;
}
.danger-zone {
  margin-top: 20px;
  border-color: #e6b9b9;
}
.danger-zone h2,
.danger-zone p {
  margin: 0;
}
.danger-zone p {
  margin-top: 6px;
  color: var(--muted);
}
.reply {
  padding: 20px;
  border-top: 1px solid var(--line);
}
.reply:first-child {
  border-top: 0;
}
.reply-author {
  font-weight: 850;
}
.reply-meta {
  color: var(--muted);
  font-size: 12px;
}
.site-footer {
  background: #111b2d;
  color: #e7edf5;
  padding: 48px 0 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.6fr 1fr;
  gap: 34px;
}
.footer-grid p {
  color: #aeb9c8;
  max-width: 480px;
}
.footer-grid a {
  display: block;
  color: #cbd5e1;
  margin-top: 8px;
}
.footer-bottom {
  border-top: 1px solid #334155;
  margin-top: 32px;
  padding-top: 18px;
  color: #94a3b8;
  font-size: 13px;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.admin-tabs a {
  padding: 9px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}
.admin-tabs a.active {
  background: var(--navy);
  color: #fff;
}
.table-wrap {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table th {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}
.status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf1f6;
  font-size: 11px;
  font-weight: 850;
}
.status.published,
.status.active {
  background: #def5ed;
  color: #0d604f;
}
.status.pending,
.status.review,
.status.pending_approval {
  background: #fff1cd;
  color: #795600;
}
.status.rejected,
.status.suspended {
  background: #ffe4e7;
  color: #8b1f2b;
}
.stat-card {
  padding: 20px;
}
.stat-card strong {
  font-size: 30px;
  display: block;
}
.stat-card span {
  color: var(--muted);
  font-size: 13px;
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.honeypot {
  position: absolute !important;
  left: -9999px !important;
}
.notice {
  padding: 14px;
  border-left: 4px solid var(--gold);
  background: #fff8e8;
  color: #6d531d;
  margin-bottom: 18px;
}
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px;
    border-radius: 8px;
    align-items: stretch;
    flex-direction: column;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav .nav-action {
    margin-left: 0;
    text-align: center;
  }
  .hero {
    min-height: 570px;
    background-position: 32% center;
  }
  .hero-content {
    padding: 60px 0;
  }
  .topic-grid,
  .content-grid,
  .category-grid,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-callout .container,
  .article-layout,
  .forum-layout {
    grid-template-columns: 1fr;
  }
  .forum-categories {
    display: flex;
    overflow: auto;
  }
  .forum-categories a {
    white-space: nowrap;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, 1180px);
  }
  .brand small {
    display: none;
  }
  .hero {
    min-height: 520px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero p {
    font-size: 16px;
  }
  .button-row .button {
    width: 100%;
  }
  .section {
    padding: 44px 0;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
  .topic-grid,
  .content-grid,
  .category-grid,
  .stat-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .content-card {
    min-height: 250px;
  }
  .home-callout h2 {
    font-size: 31px;
  }
  .article {
    padding: 22px 18px;
  }
  .article h1 {
    font-size: 35px;
  }
  .article-body {
    font-size: 17px;
  }
  .topic-card {
    grid-template-columns: 1fr;
  }
  .topic-stats {
    text-align: left;
    display: flex;
    gap: 8px;
  }
  .topic-stats strong {
    display: inline;
    font-size: 14px;
  }
  .forum-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .forum-actions .button {
    width: 100%;
  }
  .panel {
    padding: 18px;
  }
  .topic-page-nav,
  .danger-zone {
    align-items: stretch;
    flex-direction: column;
  }
  .topic-owner-actions {
    width: 100%;
  }
  .topic-owner-actions .button,
  .topic-owner-actions form,
  .topic-owner-actions form .button,
  .danger-zone form .button {
    width: 100%;
  }
  .topic-page-title {
    font-size: 31px;
  }
  .auth-shell {
    margin-top: 26px;
  }
}
@media print {
  .site-header,
  .site-footer,
  .button-row,
  .discussion {
    display: none !important;
  }
  .page-main {
    padding: 0;
  }
  .container {
    width: 100%;
  }
  .article {
    border: 0;
    box-shadow: none;
  }
  .article-layout {
    display: block;
  }
  .article-sidebar {
    break-inside: avoid;
  }
}
