/* Changelog content only. styles.css is an unchanged copy of the Contact base.
   Release cards are adapted from motd/CSS/Motd.css, with red changelog accents.
   Do not import the global MOTD reset, theme configuration, or page effects here. */

.changelog-page .changelog-hero {
  padding-bottom: 46px;
}

.changelog-page .changelog-intro {
  max-width: 680px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.changelog-page .release-index {
  max-width: 850px;
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.changelog-page .release-index a {
  min-height: 36px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  color: var(--silver);
  background: #141414;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.17s ease, border-color 0.17s ease, background 0.17s ease;
}

.changelog-page .release-index a:hover,
.changelog-page .release-index a:focus-visible {
  border-color: rgba(192, 192, 192, 0.3);
  color: #ffffff;
  background: #242424;
}

.changelog-page .changelog-archive {
  max-width: 1000px;
  padding-top: 38px;
  padding-bottom: 64px;
}

/* Preserve the MOTD release-card layout without affecting the site shell. */
.changelog-page .release {
  width: 100%;
  margin: 0 auto 18px;
  padding: 24px 28px;
  border: 1px solid #252525;
  background-color: var(--bar-bg);
  color: #999999;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  scroll-margin-top: 96px;
}

.changelog-page .release:last-child {
  margin-bottom: 0;
}

.changelog-page .release p {
  margin: 0 0 14px;
}

.changelog-page .release .release-title {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.changelog-page .release .release-summary {
  margin: 0 0 15px;
  color: #ffffff;
  text-align: center;
}

.changelog-page .release .release-overview {
  margin: 0 0 20px;
  color: #999999;
  text-align: center;
}

.changelog-page .release .release-category {
  margin: 22px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #292929;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.changelog-page .change-list {
  margin: 0;
  padding: 0 0 0 24px;
}

.changelog-page .change-list li {
  margin: 0 0 10px;
  color: #999999;
}

.changelog-page .change-list li:last-child {
  margin-bottom: 0;
}

.changelog-page .release .release-note {
  margin: 16px 0 0;
  padding-top: 13px;
  border-top: 1px solid #292929;
  color: #d0d0d0;
}

/* MOTD-style table support for release notes that include comparisons or values.
   Wrap wide tables in .changelog-table-wrap so narrow screens can scroll them. */
.changelog-page .changelog-table-wrap {
  max-width: 100%;
  margin: 18px 0;
  overflow-x: auto;
}

.changelog-page .release table {
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  table-layout: fixed;
}

.changelog-page .release th,
.changelog-page .release td {
  padding: 9px 12px;
  border-bottom: 1px solid #202020;
  vertical-align: top;
  text-align: left;
}

.changelog-page .release th {
  color: #ffffff;
  font-weight: 700;
}

.changelog-page .release td {
  color: #999999;
}

.changelog-page .release .stat-table td:first-child {
  width: 58%;
  color: #ffffff;
}

.changelog-page .release .command-table .command-name {
  width: 27%;
  color: #d62020;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
}

.changelog-page .release .two-column-table td,
.changelog-page .release .three-column-table td {
  padding: 10px;
  border-bottom: 0;
}

@media (max-width: 620px) {
  .changelog-page .changelog-hero {
    padding-bottom: 32px;
  }

  .changelog-page .changelog-archive {
    width: calc(100% - 28px);
    padding-top: 24px;
    padding-bottom: 42px;
  }

  .changelog-page .release {
    padding: 20px 18px;
  }

  .changelog-page .release .release-title {
    font-size: 22px;
  }

  .changelog-page .release .release-category {
    font-size: 16px;
  }
}

/* Full Discord posts: retain their paragraph breaks, emphasis, and list hierarchy. */
.changelog-page .release .release-subcategory {
  margin: 20px 0 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

/* Highlight named plugins, tools, campaigns, and features; keep ordinary prose quiet. */
.changelog-page .release strong {
  color: inherit;
  font-weight: inherit;
}

.changelog-page .release strong.release-term {
  color: var(--silver);
  font-weight: 600;
}

.changelog-page .release a {
  color: var(--silver);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.changelog-page .release a:hover,
.changelog-page .release a:focus-visible {
  color: #ffffff;
}

.changelog-page .release code {
  color: #d0d0d0;
  font-family: Consolas, "Courier New", monospace;
  font-size: inherit;
}

.changelog-page .release .change-list + p,
.changelog-page .release .change-list + .change-list {
  margin-top: 18px;
}

.changelog-page .change-details {
  margin: 12px 0 0;
  padding-left: 20px;
  list-style-type: "-  ";
}

.changelog-page .change-details li {
  margin-bottom: 10px;
}

.changelog-page .server-history-table td:first-child {
  width: 52%;
  color: #ffffff;
}

.changelog-page .server-history-table code {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .changelog-page .server-history-table td {
    padding: 9px 5px;
    font-size: 12px;
  }
}

/* The campaign confirmation belongs above its divider. */
.changelog-page .release .release-confirmation {
  margin: 16px 0;
  padding-bottom: 13px;
  border-bottom: 1px solid #292929;
  color: #d0d0d0;
}

/* Opening paragraphs use the site's silver-gray. */
.changelog-page .release .release-intro {
  color: var(--silver);
}

/* Give each release a dedicated rundown below its version heading. */
.changelog-page .release .release-rundown {
  margin: 20px 0 24px;
}

.changelog-page .release .release-rundown > p:last-child {
  margin-bottom: 0;
}

/* Quiet release dates directly beneath the version headings. */
.changelog-page .release .release-date {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
}
