/*
 * Changelog page (Change log template).
 * Faithful port of the timeline rules from the legacy blog.css, plus the
 * minimal Bootstrap grid/flex subset the markup relies on. Everything is
 * scoped under .changelog so it never leaks onto the shared v2 header/footer.
 * All text uses Nunito (the single brand typeface, loaded by core/fonts.css).
 */

.changelog {
  background-color: #fff;
}

/* Bootstrap-style container. */
.changelog .container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 12px;
  padding-left: 12px;
}
@media (min-width: 576px)  { .changelog .container { max-width: 540px; } }
@media (min-width: 768px)  { .changelog .container { max-width: 720px; } }
@media (min-width: 992px)  { .changelog .container { max-width: 960px; } }
@media (min-width: 1200px) { .changelog .container { max-width: 1140px; } }
@media (min-width: 1400px) { .changelog .container { max-width: 1320px; } }

/* Grid subset used by the timeline (2 / 10 split). */
.changelog .row {
  display: flex;
  flex-wrap: wrap;
}
.changelog .col-2 { flex: 0 0 auto; width: 16.6666666667%; }
.changelog .col-10 { flex: 0 0 auto; width: 83.3333333333%; }

/* Flex utilities used inside log items. */
.changelog .d-flex { display: flex; }
.changelog .align-items-center { align-items: center; }
.changelog .me-4 { margin-right: 1.5rem; }

@media (max-width: 768px) {
  .changelog .col-2 { width: 100%; }
  .changelog .col-10 { width: 100%; }
}

/* ---------- Timeline ---------- */
.changelog article.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.changelog .timeline__section {
  margin: 15px 0;
}

.changelog .wrapper {
  margin: 0 auto;
  width: 100%;
}

.changelog .wrapper ul {
  padding-left: unset !important;
}

.changelog .timeline__nav {
  position: sticky;
  z-index: 1000;
  width: fit-content;
  top: 100px !important;
  transition: top 0.3s ease-out;
}

.changelog .timeline__nav ul {
  list-style: none;
  list-style-position: inside;
  margin: 15px 0;
}

.changelog .timeline__nav ul li {
  margin: 15px 0;
  padding-left: 0;
  list-style-type: none;
  color: #bfc1c3;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease-out;
}

.changelog .timeline__nav ul li.active {
  font-weight: bold;
  color: #f62369;
  border-bottom: 1px dotted transparent;
  transform: scale(1.2);
}

.changelog .timeline__nav ul li:hover {
  color: #000;
}

.changelog .milestone {
  margin-bottom: 24px;
}

.changelog .dd-blog-item__content-title,
.changelog .dd-blog-item__content-title a {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  color: #000000;
  line-height: 24px;
  margin-top: 5px;
  margin-bottom: 5px;
  font-weight: 600;
}

/* ---------- Tags ---------- */
.changelog .dd-changelog-tag {
  padding: 2px 12px;
  background-color: lightgreen;
  color: #ffff;
  border-radius: 30px;
  font-weight: 700;
}

.changelog .tag-other { background-color: #f2a663; }
.changelog .tag-feature { background-color: #088484; }
.changelog .tag-fixbug { background-color: #c1e6e6; color: #000000; }
.changelog .tag-improvement { background-color: #4c63a6; }
