/* === MOBILE-FIRST SIDEBAR === */
@media (min-width: 769px) {
  .main-content {
    padding: 40px;
  }
  .mobile-nav {
    display: none;
  }
  .topbar-actions {
    display: flex;
  }
  .membership-container {
    margin: 0 auto;
  }
}
@media (max-width: 768px) {

  .main-content {
    max-width: fit-content;
    min-width: 100%;
  }

  .app-layout {
    flex-direction: column;
  }

  .mobile-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background-color: #fcd739;
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 8px rgba(0,0,0,0.3);
    border-right: 1px solid black;
    display: none;
  }

  .sidebar {
    display: none;
  }

  .mobile-sidebar.open {
    display: block;
  }

  .mobile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #fcd739;
    border-bottom: 1px solid black;
  }

  .hamburger {
    font-size: 45px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: #7424ac;
  }

  .sidebar-link {
    margin: 20px 10px;
  }

  .mobile-sidebar .sidebar-link:hover {
    background-color: #7424ac;
    color: white;
  }

  .mobile-sidebar-footer {
    position: absolute;
    bottom: 5rem;
    left: 20px;
    right: 47px;
  }

  .mobile-sidebar .logout-button {
    margin-top: auto;       /* pushes it to the bottom */
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background-color: #e74c3c;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #b32424;
    transition: background-color 0.3s ease;
  }

  .topbar-actions {
    display: none;
  }

  .membership-container {
    margin: 20px;
  }

  .agenda-details {
    max-width: 110px;
  }

  /* Fix horizontal scroll */
  body, html {
    overflow-x: hidden;
  }
}


:root {
  --color-primary: #7424ac;
  --color-primary-dark: #56198e;
  --color-primary-light: #a76bdb;
  --color-accent: #fcd739;
  --color-accent-dark: #f0c915;
  --color-surface: #ffffff;
  --color-surface-alt: rgba(255, 255, 255, 0.9);
  --color-text: #1d1135;
  --color-muted: #594076;
  --color-border: rgba(116, 36, 172, 0.18);
  --shadow-sm: 0 12px 30px rgba(45, 16, 83, 0.12);
  --shadow-md: 0 24px 60px rgba(45, 16, 83, 0.16);
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-surface);
  background: #7424ac;
  line-height: 1.6;
  min-height: 100vh;
}

.dashboard-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  color: #333;
}

/* Notice box at the top */
.notice-box {
  background-color: #fcd739;
  border: 1px solid black;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
  text-align: center;
}

.notice-box h2 {
  margin-top: 0;
  font-size: 28px;
  color: #7424ac;
}

.notice-box p {
  font-size: 16px;
  margin: 10px 0;
}

.notice-button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 24px;
  background-color: #7622ae;
  color: white;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid black;
  transition: background-color 0.3s ease;
}

.notice-button:hover {
  background-color: #7424ac;
}

/* General content styling */
.dashboard-content h3 {
  font-size: 24px;
  color: white;
}

.dashboard-content p {
  color: #ffffffcc;
  margin-bottom: 30px;
}

.dashboard-section {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  color: #333;
  border: 1px solid black;
}

.dashboard-section h4 {
  margin-top: 0;
  color: #7424ac;
}

.dashboard-section ul {
  list-style: none;
  padding-left: 0;
}

.dashboard-section li {
  margin-bottom: 10px;
}

.dashboard-section a {
  text-decoration: none;
  color: #7622ae;
  font-weight: bold;
}

.dashboard-section a:hover {
  text-decoration: underline;
}
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background-color: #fcd739;
  border-right: 1px solid black;
  padding: 30px 20px;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}

.sidebar-logo {
  display: block;
  max-width: 100px;
  margin: 0 auto 30px auto;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 20px;
}

.sidebar-link {
  display: block;
  padding: 12px 16px;
  background-color: white;
  color: #7424ac;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  border: 1px solid #7424ac;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  background-color: #7424ac;
  color: white;
}

/* Main content area */
.main-content {
  flex-grow: 1;
  background-color: #7622ae;
  color: white;
}
.topbar-actions {
  justify-content: flex-end;
  gap: 15px;
  margin-bottom: 30px;
}

/* Reuse button styles from nav, tweak for topbar */
.topbar-button {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 999px;
  background-color: white;
  color: #7424ac;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: 1px solid #7424ac;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.topbar-button:hover {
  background-color: #f0e400;
  color: #7424ac;
}

/* Danger button (Logout) */
.topbar-button.danger {
  background-color: #e74c3c;
  color: white;
  border: 1px solid #b32424;
}

.topbar-button.danger:hover {
  background-color: #c0392b;
}
.sidebar-link.active {
  border: 2px solid #7424ac;
  background-color: #e5d6ff;
  color: #7424ac;
}
.membership-container {
  max-width: 800px;
  padding: 40px;
  background: linear-gradient(to bottom, #fcd739 0%, #ffffff 100%);
  border-radius: 20px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  color: #333;
  border: 1px solid black;
}

.membership-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
  color: #7424ac;
}

.membership-header p {
  font-size: 18px;
  font-weight: 500;
}

.membership-benefits {
  margin-top: 30px;
}

.membership-benefits h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #7424ac;
}

.membership-benefits ul {
  list-style: none;
  padding-left: 0;
}

.membership-benefits li {
  font-size: 16px;
  margin-bottom: 12px;
  padding-left: 1.2em;
  text-indent: -1.2em;
}

.membership-action {
  text-align: center;
  margin-top: 40px;
}

.membership-button {
  padding: 14px 30px;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
  border: 1px solid black;
}

.membership-button.primary {
  background-color: #7622ae;
  color: white;
}

.membership-button.primary:hover {
  background-color: #7424ac;
}
.membership-status-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  color: #333;
}

.status-card {
  background: linear-gradient(to bottom, #ffffff 0%, #fcd739 100%);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border: 1px solid black;
}

.status-card h1 {
  font-size: 30px;
  color: #7424ac;
  margin-bottom: 10px;
}

.expiry-date {
  font-size: 20px;
  color: #7622ae;
  margin: 10px 0 20px;
}

.status-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.status-button {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  background-color: #7622ae;
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: 1px solid black;
}

.status-button:hover {
  background-color: #7424ac;
}

.status-button.secondary {
  background-color: white;
  color: #7424ac;
}

.status-button.secondary:hover {
  background-color: #f0e400;
}

.membership-benefits {
  margin-top: 40px;
  background-color: #fff;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid black;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.membership-benefits h2 {
  color: #7424ac;
  margin-bottom: 20px;
}

.membership-benefits ul {
  list-style: none;
  padding-left: 0;
}

.membership-benefits li {
  margin-bottom: 12px;
  font-size: 16px;
}

.committee-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  color: #333;
}

.committee-section {
  background-color: #fff;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid black;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.committee-section h2 {
  color: var(--brand-purple);
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  box-sizing: border-box;
}

.committee-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.committee-list li {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
}

.committee-role {
  font-weight: bold;
  color: var(--brand-purple-dark);
  margin-right: 8px;
}

.committee-name {
  color: #333;
}
.pathway-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  color: #333;
}

.pathway-header {
  text-align: center;
  margin-bottom: 40px;
}

.pathway-header h1 {
  font-size: 36px;
  color: white;
  margin-bottom: 10px;
}

.pathway-header p {
  font-size: 18px;
  color: white;
}

.pathway-section {
  background-color: #fff;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid black;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.pathway-section h2 {
  color: var(--brand-purple);
  margin-bottom: 15px;
}

.pathway-list {
  list-style: none;
  padding-left: 0;
}

.pathway-list li {
  font-size: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.pathway-list li strong {
  color: var(--brand-purple-dark);
}

/* Container */
.two-factor-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: #333;
}

/* Title */
.page-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 2rem;
  color: #7424ac; /* brand purple */
}

/* Step cards */
.step-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.step-title {
  font-size: 20px;
  margin-bottom: 1rem;
  color: #7424ac;
}

/* QR Code */
.qr-code-wrapper {
  text-align: center;
  margin: 1.5rem 0;
}

.manual-code {
  text-align: center;
  margin-top: 1rem;
  font-size: 14px;
  color: #555;
}

/* Form */
.two-fa-form .form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #7424ac;
  box-shadow: 0 0 0 3px rgba(116,36,172,0.2);
}

/* Buttons */
.form-button {
  display: inline-block;
  margin: auto;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s ease;
  border: none;
  text-align: center;
}

.form-button.primary {
  background-color: #7424ac;
  color: white;
  box-sizing: border-box;
}

.form-button.primary:hover {
  background-color: #5d1d88;
}


.committee-section {
  margin-bottom: 2rem;
  overflow: scroll;
}

.committee-section h2 {
  margin-bottom: 1rem;
  color: #7424ac;
}

.past-agenda-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.past-agenda-item span {
  flex: 1;
}


.meeting-date-form {
  margin-top: 1rem;
}

.meeting-date-form .form-group {
  margin-bottom: 1rem;
}

.meeting-date-form .form-input {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.meeting-date-form .form-button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  background-color: #7424ac;
  color: #fff;
  border: none;
  cursor: pointer;
}

.meeting-date-form .form-button:hover {
  background-color: #5d1d88;
}

.committee-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden; /* keeps rounded corners */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.committee-table th,
.committee-table td {
  padding: 12px 15px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid #eee;
}

.committee-table th {
  background: #fcd739;
  color: #7424ac;
  font-weight: bold;
  border-bottom: 2px solid #ddd;
}

.committee-table tr:last-child td {
  border-bottom: none;
}

.committee-table tr:hover {
  background: #f9f6ff;
}

.forum-container, .thread-show, .new-thread {
  max-width: 90%;
  margin: 2rem auto;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.thread-list {
  list-style: none;
  padding: 0;
}

.thread-list li {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.thread-list li a {
  font-weight: bold;
  color: #7424ac;
  text-decoration: none;
}

.thread-list li a:hover {
  text-decoration: underline;
}

.post {
  margin: 1rem 0;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
  color: black;
}

.thread-content {
  padding: 1rem;
  background: #f4f4f9;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 1rem;
  line-height: 1.5;
  color: black;
}

.empty-state {
  padding: 1.5rem;
  background: #f9f6ff;
  border: 1px dashed #7424ac;
  border-radius: 10px;
  text-align: center;
  color: #7424ac;
  font-weight: 600;
}

.flash-message {
  margin-bottom: 1.5rem;
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid #f5d76e;
  background: #fff9d9;
  color: #553800;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.flash-message.notice {
  border-color: #c9f2d7;
  background: #ecfff3;
  color: #1f6b3d;
}

.flash-message.alert {
  border-color: #f5b7b1;
  background: #ffe6e6;
  color: #7a1f1f;
}

.remove-latest-agenda-button {
  margin-bottom: 30px;
}

.agendas-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.agendas-container .page-title {
  color: white;
}

.page-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-align: center;
}

.agenda-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  padding: 1.5rem;
  margin-bottom: 2rem;
  color: black;
}

.agenda-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #333;
}

.agenda-info {
  margin-bottom: 1rem;
}

.agenda-date {
  display: block;
  font-size: 0.9rem;
  color: #777;
}

.agenda-empty {
  font-style: italic;
  color: #999;
}

.agenda-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.agenda-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  overflow: hidden;
}

.agenda-item:last-child {
  border-bottom: none;
}

.form-button.small {
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  max-width: 150px;
  margin: auto 0;
  text-align: center;
}

.committee-agenda-fields {
  max-width: 500px;
  margin: auto auto 20px auto;
}

.committee-title {
  text-align: left;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: white;
  color: black;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  border: 1px solid #ccc;
}

.modal-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* === Forum Styling (Classic) === */
.forum-container,
.thread-show,
.new-thread {
  margin: 1.5rem auto;
  background: #f1f5fb;
  border: 1px solid #9aaac2;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: #1d2f4d;
}

.forum-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-bottom: 1px solid #9aaac2;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.forum-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #1b3b6f;
}

.forum-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #4a5d7a;
}

.forum-header-actions {
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .forum-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .forum-header-actions {
    margin-top: 0;
  }
}

.forum-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #7a8ea8;
  background: #dbe6f4;
}

.forum-table thead th {
  background: linear-gradient(#4d6d99, #3f5b82);
  color: #f1f3f7;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #2e3d55;
}

.forum-table__col-title {
  text-align: left;
  width: 55%;
}

.forum-table__col-replies {
  width: 10%;
  text-align: center;
}

.forum-table__col-activity {
  width: 35%;
  text-align: left;
}

.forum-table tbody tr {
  border-bottom: 1px solid #b8c7da;
  background: #f7faff;
}

.forum-table tbody tr:nth-child(even) {
  background: #eef3fb;
}

.forum-table tbody tr:hover {
  background: #e0e9f6;
}

.forum-table tbody tr.is-pinned {
  background: #fff8d6;
}

.forum-table__title {
  padding: 0.9rem 0.75rem;
  vertical-align: top;
}

.forum-table__title-text {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 1rem;
  font-weight: 600;
  color: #1c365d;
  margin-bottom: 0.35rem;
}

.forum-table__title-text a {
  color: inherit;
  text-decoration: none;
}

.forum-table__title-text a:hover {
  text-decoration: underline;
}

.forum-table__starter {
  font-size: 0.8rem;
  color: #5c6e8a;
}

.forum-table__replies {
  text-align: center;
  font-weight: 600;
  color: #223d66;
  padding: 0.9rem 0.5rem;
}

.forum-table__activity {
  padding: 0.9rem 0.75rem;
  font-size: 0.85rem;
  color: #364a6b;
}

.thread-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.7rem;
  text-transform: uppercase;
  background: #cdd9ef;
  color: #243b5f;
  border: 1px solid #9aaac2;
}

.thread-badge--pinned {
  background: #ffe9a9;
  border-color: #d8ba62;
  color: #5a4712;
}

.thread-badge--locked {
  background: #f6ccd0;
  border-color: #d9949b;
  color: #6d1f28;
}

.thread-show h1 {
  font-size: 1.6rem;
  margin: 0;
  color: #1b3b6f;
}

.thread-show__header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid #95a8c1;
  background: #e8eff8;
  margin-bottom: 1.5rem;
}

.thread-show__meta {
  font-size: 0.9rem;
  color: #4b5b77;
}

.thread-show__moderation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.moderation-button {
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  border: 1px solid #6a7da0;
  background: linear-gradient(#f5f8fd, #dfe5f2);
  color: #1f3356;
  font-weight: 600;
  cursor: pointer;
}

.moderation-button:hover {
  background: linear-gradient(#ecf2fb, #d1d8e6);
}

.moderation-button--danger {
  border-color: #a33e3e;
  background: linear-gradient(#ffeaea, #f2c3c3);
  color: #6d2020;
}

.moderation-button--danger:hover {
  background: linear-gradient(#ffdede, #ecb2b2);
}

.thread-content {
  background: #fff;
  border: 1px solid #b0bfd6;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #243b5f;
  line-height: 1.6;
}

.thread-posts {
  border: 1px solid #95a8c1;
  background: #e8eff8;
  margin-bottom: 1.5rem;
}

.thread-posts__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(#4d6d99, #3f5b82);
  color: #f1f3f7;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.forum-posts {
  padding: 1rem;
}

.forum-post {
  background: #f7faff;
  border: 1px solid #b7c7df;
  padding: 0.8rem;
  margin-bottom: 0.9rem;
}

.forum-post--depth-1 {
  margin-left: 1.5rem;
}

.forum-post--depth-2 {
  margin-left: 3rem;
}

.forum-post--depth-3 {
  margin-left: 4.5rem;
}

.forum-post__header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  border-bottom: 1px solid #d2dcea;
  padding-bottom: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}

.forum-post__avatar {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  background: #d3def0;
  color: #1d2f4d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.forum-post__author {
  font-weight: 700;
  color: #1f3356;
}

.forum-post__timestamp {
  color: #5b6b85;
}

.forum-post__badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.4rem;
  background: #ffe9a9;
  border: 1px solid #d8ba62;
  color: #5a4712;
  font-size: 0.7rem;
  border-radius: 3px;
}

.forum-post__actions {
  margin-left: auto;
  display: inline-flex;
  gap: 0.4rem;
}

.reply-to-post,
.forum-post__remove {
  border: none;
  background: none;
  color: #2f4d7a;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
}

.reply-to-post:hover,
.forum-post__remove:hover {
  text-decoration: underline;
}

.forum-post__remove {
  color: #8c2727;
}

.forum-post__body {
  font-size: 0.95rem;
  color: #1f2f46;
  line-height: 1.5;
}

.thread-locked-banner {
  background: #fff1c9;
  border: 1px solid #d7c17a;
  color: #4f3f12;
  padding: 0.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.reply-form__context {
  background: #dfe7f5;
  border: 1px solid #9aaac2;
  padding: 0.4rem 0.75rem;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.reply-form__context.hidden {
  display: none;
}

.reply-context__clear {
  border: none;
  background: none;
  color: #2f4d7a;
  cursor: pointer;
  font-size: 0.8rem;
}

.reply-form textarea {
  margin-bottom: 0.75rem;
  border: 1px solid #9aaac2;
  background: #fff;
  color: #1f2f46;
}

.reply-form__actions {
  text-align: right;
}

.reply-form .form-button.primary {
  background: linear-gradient(#f5f8fd, #dfe5f2);
  color: #1f3356;
  border: 1px solid #6a7da0;
}

.reply-form .form-button.primary:hover {
  background: linear-gradient(#ecf2fb, #d1d8e6);
}

@media (max-width: 640px) {
  .forum-table,
  .forum-table thead,
  .forum-table tbody,
  .forum-table th,
  .forum-table td,
  .forum-table tr {
    display: block;
  }

  .forum-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
  }

  .forum-table tbody tr {
    border: 1px solid #b8c7da;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
  }

  .forum-table__replies,
  .forum-table__activity {
    padding: 0.4rem 0;
    text-align: left;
    display: none !important;
  }

  .thread-show__header {
    padding: 0.6rem;
  }

  .forum-post--depth-1,
  .forum-post--depth-2,
  .forum-post--depth-3 {
    margin-left: 0.75rem;
  }

  .forum-post__actions {
    margin-left: 0;
  }
}

