* {
  box-sizing: border-box;
}

body.forum-archive {
  margin: 0;
  color: #162235;
  background: #eef3f8;
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.forum-archive a {
  color: #0b4e8a;
  font-weight: 650;
  text-decoration: none;
}

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

.forum-archive-header,
.forum-page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.forum-archive-header {
  padding: 34px 0 20px;
}

.forum-archive-kicker {
  color: #607085;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.forum-archive-header h1 {
  margin: 0.25rem 0 1rem;
  color: #101a2a;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.1;
}

.forum-archive-nav,
.forum-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.forum-archive-nav a,
.forum-pagination a,
.forum-pagination span {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  border: 1px solid #c3cfdd;
  border-radius: 6px;
  background: #fff;
  padding: 0.25rem 0.65rem;
  box-shadow: 0 1px 4px rgb(23 40 60 / 0.08);
}

.forum-page {
  padding: 0 0 56px;
}

.forum-archive-search {
  margin: 0 0 1rem;
  border: 1px solid #c9d6e5;
  border-radius: 8px;
  background: #fff;
  padding: 1.1rem;
  box-shadow: 0 14px 34px rgb(22 34 53 / 0.13);
}

.forum-archive-search h2,
.archive-section h2 {
  margin: 0 0 0.75rem;
  color: #101a2a;
  font-size: 1.15rem;
  line-height: 1.3;
}

.forum-archive-search form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.forum-archive-search input,
.forum-archive-search button {
  min-height: 2.7rem;
  border-radius: 6px;
  font: inherit;
}

.forum-archive-search input {
  min-width: 0;
  border: 1px solid #b9c8da;
  padding: 0.45rem 0.7rem;
}

.forum-archive-search button {
  border: 1px solid #0b4e8a;
  background: #0b4e8a;
  color: #fff;
  font-weight: 700;
  padding: 0.45rem 1rem;
}

.forum-archive-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.35rem;
}

.forum-archive-actions a {
  display: block;
  min-height: 100%;
  border: 1px solid #d6e0eb;
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 10px 28px rgb(22 34 53 / 0.1);
}

.forum-archive-actions strong,
.forum-archive-actions span {
  display: block;
}

.forum-archive-actions span {
  margin-top: 0.3rem;
  color: #536276;
  font-weight: 400;
}

.archive-section {
  margin: 1.35rem 0 0;
}

.archive-post,
.archive-topic,
.archive-notice {
  margin: 0 0 1rem;
  border: 1px solid #d6e0eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(22 34 53 / 0.12);
}

.archive-post__header {
  border-bottom: 1px solid #e0e7f0;
  padding: 1rem 1.1rem 0.8rem;
}

.archive-post__header h2,
.archive-topic h2,
.archive-topic h3 {
  margin: 0;
  color: #101a2a;
  font-size: 1.08rem;
  line-height: 1.35;
}

.archive-post__header p,
.archive-topic p,
.archive-notice p {
  margin: 0.35rem 0 0;
  color: #536276;
}

.archive-post__body {
  padding: 1.1rem;
  overflow-wrap: anywhere;
}

.archive-post__body blockquote,
.archive-post__body pre,
.archive-post__body code {
  border-radius: 6px;
  background: #f4f7fb;
}

.archive-post__body blockquote,
.archive-post__body pre {
  margin: 1rem 0;
  padding: 0.8rem;
  overflow-x: auto;
}

.archive-post__body code {
  padding: 0.08rem 0.24rem;
}

.archive-topic,
.archive-notice {
  padding: 1rem 1.1rem;
}

.archive-topic__meta {
  font-size: 0.93rem;
}

.forum-pagination {
  margin: 0 0 1rem;
}

.forum-pagination + .archive-topic,
.archive-topic + .forum-pagination {
  margin-top: 1rem;
}

@media (max-width: 700px) {
  body.forum-archive {
    font-size: 15px;
  }

  .forum-archive-header,
  .forum-page {
    width: min(100% - 20px, 1080px);
  }

  .forum-archive-nav a,
  .forum-pagination a,
  .forum-pagination span {
    width: 100%;
    justify-content: center;
  }

  .forum-archive-search form,
  .forum-archive-actions {
    grid-template-columns: 1fr;
  }
}
