@font-face {
  font-family: Inter;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}
@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 800;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB;
}
@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 800;
}

:root {
  --brand-navy: #071426;
  --brand-navy-2: #0b1b32;
  --brand-blue: #2563eb;
  --brand-blue-bright: #3b82f6;
  --brand-blue-soft: #eff6ff;
  --brand-surface: #f6f8fc;
  --brand-text: #111827;
  --brand-text-muted: #64748b;
  --brand-border: #e2e8f0;
  --status-success: #16a34a;
  --status-warning: #f59e0b;
  --status-error: #dc2626;
  --radius: 0.875rem;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--brand-surface);
  color: var(--brand-text);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, .brand-name { font-family: Manrope, Inter, Arial, sans-serif; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
.container { width: min(calc(100% - 2rem), 1280px); margin-inline: auto; }
.site-shell { display: flex; min-height: 100vh; flex-direction: column; }
.main-content { min-height: 65vh; flex: 1; padding-block: 2.5rem 5rem; }
.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;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.625rem 0.875rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.2);
}
.skip-link:focus { top: 1rem; }
.icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.close-icon { transform: rotate(45deg); }

.topbar { display: none; background: var(--brand-navy); color: #cbd5e1; }
.topbar-row {
  min-height: 2.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
}
.topbar nav { display: flex; gap: 1rem; }
.topbar a:hover { color: #fff; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--brand-border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}
.header-row { display: flex; min-height: 4rem; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.brand-mark {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--brand-blue);
  color: #fff;
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}
.brand-name {
  color: var(--brand-navy);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
}
.brand-name > span { color: var(--brand-blue); }
.brand-name small {
  display: block;
  margin-top: 0.2rem;
  color: var(--brand-text-muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
}
.primary-nav { display: none; align-items: center; gap: 0.25rem; }
.primary-nav a {
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.15s, color 0.15s;
}
.primary-nav a:hover { background: #f1f5f9; }
.primary-nav a.is-active { background: var(--brand-blue-soft); color: var(--brand-blue); }
.header-search {
  position: relative;
  display: none;
  width: 100%;
  max-width: 24rem;
  margin-left: auto;
}
.header-search .icon, .mobile-search .icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  pointer-events: none;
  transform: translateY(-50%);
  color: var(--brand-text-muted);
}
.header-search input, .mobile-search input {
  width: 100%;
  height: 2.5rem;
  border: 1px solid var(--brand-border);
  border-radius: 0.625rem;
  outline: 0;
  background: var(--brand-surface);
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  font-size: 0.875rem;
}
.header-search input:focus, .mobile-search input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.header-actions form { margin: 0; }
.user-name { max-width: 8rem; overflow: hidden; color: var(--brand-text-muted); font-size: 0.8125rem; text-overflow: ellipsis; white-space: nowrap; }
.icon-button {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-border);
  border-radius: 0.5rem;
  background: #fff;
}
.icon-button:hover { background: #f1f5f9; }
.icon-button .icon { width: 1.25rem; height: 1.25rem; }
.desktop-only { display: none; }
.mobile-menu-button { display: inline-flex; }
.mobile-menu[hidden] { display: none; }
.mobile-menu { position: fixed; inset: 0; z-index: 60; }
.mobile-menu-backdrop { position: absolute; inset: 0; border: 0; background: rgba(2, 6, 23, 0.55); }
.mobile-menu aside {
  position: absolute;
  right: 0;
  top: 0;
  width: min(20rem, 88vw);
  height: 100%;
  overflow-y: auto;
  background: #fff;
  box-shadow: -18px 0 48px rgba(15, 23, 42, 0.18);
}
.mobile-menu-header {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--brand-border);
  padding: 0.75rem 1rem;
}
.mobile-menu-body { padding: 1rem; }
.mobile-search { position: relative; }
.mobile-menu-body nav { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 1rem; }
.mobile-menu-body nav a { border-radius: 0.5rem; padding: 0.625rem 0.75rem; font-weight: 500; }
.mobile-menu-body nav a:hover { background: #f1f5f9; }
.mobile-menu-body nav a.is-active { background: var(--brand-blue-soft); color: var(--brand-blue); }
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--brand-border);
  padding-top: 1rem;
}

.button {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.button-primary { background: var(--brand-blue); color: #fff; }
.button-primary:hover { background: #1d4ed8; }
.button-secondary, .button-outline { border-color: var(--brand-border); background: #fff; }
.button-secondary:hover, .button-outline:hover { background: #f8fafc; }
.button-block { width: 100%; }
.link-button { border: 0; background: transparent; color: var(--brand-blue); }

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  background: #fff;
  padding: 2rem;
}
.hero h1 { max-width: 46rem; margin: 0.375rem 0 0; font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.15; }
.hero p { max-width: 43rem; margin: 0.75rem 0 0; color: var(--brand-text-muted); line-height: 1.6; }
.eyebrow {
  color: var(--brand-blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-block { margin-top: 2.75rem; }
.section-heading, .page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-heading h2, .page-heading h1 { margin: 0.25rem 0 0; }
.section-heading h2 { font-size: 1.5rem; }
.page-heading h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
.page-heading p { margin: 0.5rem 0 0; color: var(--brand-text-muted); }
.section-heading > a { color: var(--brand-blue); font-size: 0.875rem; font-weight: 600; }
.category-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.category-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  background: #fff;
}
.category-card > header { display: flex; align-items: flex-start; gap: 0.875rem; padding: 1.25rem; }
.category-card h3 { margin: 0; font-size: 1rem; }
.category-card header p { margin: 0.375rem 0 0; color: var(--brand-text-muted); font-size: 0.875rem; }
.category-icon {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-family: Manrope, sans-serif;
  font-weight: 800;
}
.section-list { margin: 0; padding: 0; border-top: 1px solid var(--brand-border); list-style: none; }
.section-list li + li { border-top: 1px solid var(--brand-border); }
.section-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}
.section-list a:hover { background: #f8fafc; }
.section-list a > span:first-child { min-width: 0; }
.section-list strong, .section-list small { display: block; }
.section-list small { margin-top: 0.25rem; color: var(--brand-text-muted); font-size: 0.75rem; }
.section-stats { flex: 0 0 auto; color: var(--brand-text-muted); font-size: 0.75rem; }

.topic-list {
  overflow: hidden;
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  background: #fff;
}
.topic-row { display: flex; align-items: flex-start; gap: 0.875rem; padding: 1rem; }
.topic-row + .topic-row { border-top: 1px solid var(--brand-border); }
.topic-row:hover { background: #f8fafc; }
.avatar {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-weight: 700;
}
.avatar-large { width: 4rem; height: 4rem; font-size: 1.25rem; }
.topic-main { min-width: 0; flex: 1; }
.topic-main h3 { margin: 0.25rem 0 0; font-size: 1rem; line-height: 1.45; }
.topic-main h3 a:hover { color: var(--brand-blue); }
.topic-main p { margin: 0.25rem 0 0; color: var(--brand-text-muted); font-size: 0.75rem; }
.topic-flags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.badge {
  display: inline-flex;
  border-radius: 999px;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  padding: 0.2rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-muted { background: #f1f5f9; color: #475569; }
.topic-stats { display: none; gap: 1.5rem; margin: 0; text-align: center; }
.topic-stats div { min-width: 3.75rem; }
.topic-stats dt { color: var(--brand-text-muted); font-size: 0.6875rem; }
.topic-stats dd { margin: 0.25rem 0 0; font-family: Manrope, sans-serif; font-weight: 700; }

.filter-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  background: #fff;
  padding: 1rem;
}
.filter-bar label { margin: 0; }
.filter-bar label > span { display: block; margin-bottom: 0.375rem; font-size: 0.75rem; font-weight: 500; }
.filter-bar .button { align-self: end; }
.pagination { display: flex; justify-content: center; gap: 0.375rem; margin-top: 2rem; }
.pagination a {
  display: inline-flex;
  width: 2.375rem;
  height: 2.375rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-border);
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.875rem;
}
.pagination a:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.pagination a.active { border-color: var(--brand-blue); background: var(--brand-blue); color: #fff; }

.breadcrumbs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--brand-text-muted);
  font-size: 0.8125rem;
}
.breadcrumbs a:hover { color: var(--brand-blue); }
.breadcrumbs span:last-child { overflow: hidden; color: var(--brand-text); text-overflow: ellipsis; white-space: nowrap; }
.topic-header, .poll-card, .reply-card, .form-shell, .auth-card {
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  background: #fff;
  padding: 1.5rem;
}
.topic-header { margin-bottom: 1.25rem; }
.topic-header h1 { margin: 0.75rem 0 0; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.35; }
.topic-header p { margin: 0.5rem 0 0; color: var(--brand-text-muted); }
.topic-actions, .form-actions, .notification-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.topic-actions form, .notification-actions form { margin: 0; }
.report-menu { position: relative; }
.report-menu > summary {
  cursor: pointer;
  border: 1px solid var(--brand-border);
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  list-style: none;
}
.report-menu > form {
  width: min(22rem, calc(100vw - 3rem));
  margin-top: 0.5rem;
  border: 1px solid var(--brand-border);
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.875rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
.report-menu textarea { min-height: 5rem; }
.poll-card { margin-bottom: 1.25rem; }
.poll-card h2 { margin-top: 0; font-size: 1.125rem; }
.poll-card > p { margin-bottom: 0; color: var(--brand-text-muted); font-size: 0.875rem; }
.poll-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.625rem;
  overflow: hidden;
  margin-top: 0.5rem;
  border-radius: 0.5rem;
  background: #f1f5f9;
  padding: 0.625rem 0.75rem;
}
.poll-option div { position: absolute; inset: 0 auto 0 0; z-index: 0; background: #dbeafe; }
.poll-option input, .poll-option span, .poll-option strong { position: relative; z-index: 1; }
.poll-card form > .button { margin-top: 1rem; }
.post-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  background: #fff;
}
.post-card + .post-card { margin-top: 1rem; }
.post-card aside {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--brand-border);
  background: #f8fafc;
  padding: 1rem;
}
.post-card aside small { margin-left: auto; color: var(--brand-text-muted); font-size: 0.75rem; }
.post-content { min-width: 0; padding: 1.25rem; line-height: 1.7; }
.post-content > :first-child { margin-top: 0; }
.post-content img { max-width: 100%; height: auto; border-radius: 0.75rem; }
.post-content pre { max-width: 100%; overflow-x: auto; border-radius: 0.75rem; background: var(--brand-navy); color: #e2e8f0; padding: 1rem; }
.post-content footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--brand-border);
  padding-top: 0.875rem;
}
.post-content footer form { margin: 0; }
.post-content footer button {
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  background: #fff;
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
}
.post-content footer button:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.post-action, .edited {
  display: inline-flex;
  align-items: center;
  color: var(--brand-text-muted);
  font-size: 0.75rem;
}
.post-action:hover, .edited:hover { color: var(--brand-blue); }
.quote-reference, .quote-notice {
  display: block;
  margin-bottom: 1rem;
  border-left: 3px solid var(--brand-blue);
  background: var(--brand-blue-soft);
  padding: 0.625rem 0.75rem;
  color: #1e40af;
  font-size: 0.8125rem;
}
.quote-notice { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.reply-card { margin-top: 1.25rem; }
.reply-card h2 { margin-top: 0; }
.callout, .empty-state, .alert {
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  background: #fff;
  padding: 2rem;
  text-align: center;
}
.callout { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.25rem; }
.callout p { margin: 0; }
.empty-state h3 { margin: 0; }
.empty-state p { margin: 0.5rem 0 0; color: var(--brand-text-muted); }
.alert { margin-bottom: 1rem; padding: 0.875rem 1rem; text-align: left; }
.alert-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.alert-success { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }

.profile-card, .content-page, .activity-list article, .revision-list article,
.notification-list article {
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  background: #fff;
  padding: 1.25rem;
}
.profile-card { display: flex; align-items: flex-start; gap: 1rem; }
.profile-card h1 { margin: 0.25rem 0; }
.profile-card p { margin: 0.375rem 0 0; color: var(--brand-text-muted); }
.content-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.25rem 0;
  border-bottom: 1px solid var(--brand-border);
}
.content-tabs a { border-bottom: 2px solid transparent; padding: 0.75rem 1rem; font-weight: 600; }
.content-tabs a.active { border-color: var(--brand-blue); color: var(--brand-blue); }
.activity-list, .revision-list, .notification-list { display: grid; gap: 0.875rem; }
.activity-list h2 { margin: 0; font-size: 1rem; }
.activity-list p { color: var(--brand-text-muted); }
.activity-list small, .revision-list time, .notification-list time {
  color: var(--brand-text-muted);
  font-size: 0.75rem;
}
.revision-list article > header, .notification-list article {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.revision-body, .rich-content { line-height: 1.75; overflow-wrap: anywhere; }
.notification-list article.unread { border-color: #93c5fd; background: #eff6ff; }
.notification-list article p { margin: 0.375rem 0; color: var(--brand-text-muted); }
.notification-actions { flex: 0 0 auto; margin-top: 0; }
.content-page { max-width: 52rem; margin-inline: auto; }
.content-page h1 { margin-top: 0.375rem; }
.content-page footer { margin-top: 2rem; border-top: 1px solid var(--brand-border); padding-top: 1rem; color: var(--brand-text-muted); font-size: 0.8125rem; }
.latest-link { display: inline-block; margin-top: 0.75rem; color: var(--brand-blue); font-size: 0.8125rem; }

.form-shell { max-width: 48rem; margin-inline: auto; }
.form-shell header h1 { margin: 0.375rem 0 0; }
.form-shell header p { margin: 0.5rem 0 0; color: var(--brand-text-muted); }
.form-shell > form { margin-top: 1.5rem; }
.form-shell details { margin-block: 1.25rem; border: 1px solid var(--brand-border); border-radius: 0.75rem; padding: 1rem; }
.form-shell summary { cursor: pointer; font-weight: 600; }
.poll-fields[open] summary { margin-bottom: 1rem; }
.check { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.check input { width: 1rem; height: 1rem; }
label { display: block; margin-bottom: 0.375rem; font-size: 0.875rem; font-weight: 500; }
form label:not(:first-child) { margin-top: 1rem; }
:where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--brand-border);
  border-radius: 0.625rem;
  outline: 0;
  background: #fff;
  padding: 0.625rem 0.75rem;
}
:where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea):hover { border-color: #94a3b8; }
:where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea):focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.header-search input, .mobile-search input { padding-left: 2.25rem; }
textarea { resize: vertical; }
.validation { display: block; margin-top: 0.25rem; color: var(--status-error); font-size: 0.75rem; }

.auth-shell { display: grid; min-height: 36rem; place-items: center; }
.auth-card { width: min(100%, 32rem); box-shadow: var(--shadow); }
.auth-card h1 { margin: 1.5rem 0 0; font-size: 1.5rem; }
.auth-card > p { margin: 0.375rem 0 0; color: var(--brand-text-muted); }
.auth-card > form { margin-top: 1.5rem; }
.auth-card .button { width: 100%; margin-top: 1rem; }
.auth-card > footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; color: var(--brand-blue); font-size: 0.875rem; }
.security-icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.875rem;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-weight: 800;
}
.notice.success { color: var(--status-success); }

.site-footer { margin-top: auto; border-top: 1px solid var(--brand-border); background: var(--brand-navy); color: #cbd5e1; }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-name small { color: #94a3b8; }
.footer-brand p { max-width: 25rem; margin: 0.75rem 0 0; color: #94a3b8; font-size: 0.875rem; line-height: 1.6; }
.footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0.625rem; font-size: 0.875rem; }
.footer-grid nav strong { color: #fff; font-family: Manrope, Inter, sans-serif; }
.footer-grid nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--brand-navy-2); }
.footer-bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 1rem;
  color: #94a3b8;
  font-size: 0.8125rem;
  text-align: center;
}
.mobile-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  border-top: 1px solid var(--brand-border);
  background: #fff;
}
.mobile-bottom-nav a {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  padding: 0.625rem 0.25rem;
  color: var(--brand-text-muted);
  font-size: 0.6875rem;
}
.mobile-bottom-nav a.is-active { color: var(--brand-blue); }
.mobile-bottom-nav .icon { width: 1.25rem; height: 1.25rem; }

@media (min-width: 640px) {
  .hero { padding: 2.5rem; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-row { align-items: center; padding: 1.125rem 1.25rem; }
  .topic-stats { display: flex; }
  .filter-bar { grid-template-columns: minmax(0, 1fr) repeat(2, 11rem) auto; align-items: end; }
  .post-card { grid-template-columns: 10rem minmax(0, 1fr); }
  .post-card aside {
    flex-direction: column;
    justify-content: flex-start;
    border-right: 1px solid var(--brand-border);
    border-bottom: 0;
    text-align: center;
  }
  .post-card aside small { margin-left: 0; }
  .footer-bottom .container { flex-direction: row; text-align: left; }
  .auth-card, .form-shell { padding: 2rem; }
}

@media (min-width: 1024px) {
  .container { width: min(calc(100% - 8rem), 1280px); }
  .topbar { display: block; }
  .topbar-row { display: flex; }
  .primary-nav { display: flex; }
  .header-search { display: block; }
  .desktop-only { display: inline-flex; }
  .mobile-menu-button, .mobile-bottom-nav { display: none; }
  .main-content { padding-bottom: 4.5rem; }
  .hero { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); }
}

@media (max-width: 639px) {
  .section-heading, .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading .button { width: 100%; }
  .section-list a { align-items: flex-start; flex-direction: column; }
  .callout { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
