/* ================================================================
   changelog.css: /changelog hub and /changelog/<slug> entries.
   Light theme taken from the AI Marketer redesign (Niklas): warm
   paper background with a dot grid, ink text, Inter headings with
   tight tracking, white cards and white pill buttons with a dark
   round arrow. Every selector is prefixed changelog- so a designer
   can restyle it in one place.
   ================================================================ */

.changelog-body {
  background: #faf7f0;
}

.learn-main.changelog-theme {
  --cl-canvas: #faf7f0;
  --cl-cream: #f4efe4;
  --cl-card: #ffffff;
  --cl-ink: #17232c;
  --cl-text: #2b2e27;
  --cl-muted: #66685f;
  --cl-muted-2: #86887f;
  --cl-line: #e6e3dc;
  --cl-dot: #ddd6c7;
  --cl-hover: #8c7ab2;
  --cl-focus: #7961b7;
  --cl-arrow: #272634;
  --cl-shadow: 0 4px 14px #1825360a;
  --cl-shadow-hover: 0 5px 4px #2522380a, 0 16px 30px #25223822;

  --changelog-new: #6647ff;
  --changelog-new-bg: #efebff;
  --changelog-improved: #1b74a8;
  --changelog-improved-bg: #e3f2fa;
  --changelog-fixed: #2b8445;
  --changelog-fixed-bg: #e5f3e8;
  --changelog-know: #8d6208;
  --changelog-know-bg: #f9efd4;
  --changelog-radius: 24px;
  --changelog-column: 760px;

  color: var(--cl-text);
  background-color: var(--cl-canvas);
  background-image: radial-gradient(circle, var(--cl-dot) 1px, transparent 1.4px);
  background-size: 24px 24px;
  font-family: Inter, Arial, sans-serif;
}

/* ---------- Shared bits ---------- */

.changelog-hub,
.changelog-entry,
.changelog-entry-nav {
  max-width: var(--changelog-column);
  margin-left: auto;
  margin-right: auto;
}

.changelog-hub {
  max-width: 960px;
}

/* Breadcrumbs line up with the content column below them. */
.changelog-breadcrumb {
  max-width: var(--changelog-column);
  margin-left: auto;
  margin-right: auto;
}

.changelog-breadcrumb--hub {
  max-width: 960px;
}

.changelog-theme .tool-breadcrumb,
.changelog-theme .tool-breadcrumb a {
  color: var(--cl-muted-2);
}

.changelog-theme .tool-breadcrumb a:hover {
  color: var(--cl-ink);
}

.changelog-theme .tool-breadcrumb [aria-current="page"] {
  color: var(--cl-muted);
}

.changelog-theme .tool-breadcrumb-sep {
  color: #c2bdb1;
}

/* Headings: Inter, medium weight, tight tracking, solid ink (no gradient text). */
.changelog-theme .learn-h1,
.changelog-month-heading,
.changelog-card-title,
.changelog-closing-title {
  font-family: Inter, Arial, sans-serif;
  color: var(--cl-ink);
  -webkit-text-fill-color: currentColor;
  background-image: none;
  background-clip: unset;
  -webkit-background-clip: unset;
  text-wrap: balance;
}

/* Bold labels keep the body font (the shared stylesheet swaps it on <strong>). */
.changelog-card-intro strong,
.changelog-entry-intro strong,
.changelog-section-item strong {
  font-family: inherit;
}

.changelog-eyebrow {
  margin: 0 0 20px;
  color: var(--cl-muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.changelog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.changelog-tag {
  margin: 0;
  padding: 4px 11px;
  border: 1px solid var(--cl-line);
  border-radius: 999px;
  background: var(--cl-cream);
  color: #4d5047;
  font-family: Inter, Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

/* Text link with an underline rule, as on the AI Marketer page. */
.changelog-nav-all {
  display: inline-flex;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  color: var(--cl-ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  text-decoration: none;
}

.changelog-nav-all:hover {
  color: var(--cl-hover);
}

/* ---------- Buttons: white pill with a dark round arrow ---------- */

.changelog-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 7px 7px 7px 22px;
  border: 1px solid #dfe2e7;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--cl-shadow);
  color: #182736;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: translate 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.changelog-button:hover,
.changelog-button:focus-visible {
  border-color: var(--cl-hover);
  box-shadow: inset 0 0 0 2px #fff, var(--cl-shadow-hover);
  color: #182736;
  translate: 0 -2px;
}

.changelog-button:focus-visible {
  outline: 3px solid var(--cl-focus);
  outline-offset: 4px;
}

.changelog-button-arrow,
.changelog-arrow {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff26;
  border-radius: 50%;
  background: var(--cl-arrow);
  box-shadow: inset 0 1px 1px #ffffff24, 0 3px 6px #25223820;
  color: #fff;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.changelog-button-arrow {
  width: 40px;
  height: 40px;
  font-size: 22px;
}

.changelog-button--large {
  gap: 22px;
  padding: 9px 9px 9px 26px;
  border-radius: 23px;
  font-size: 18px;
}

.changelog-button--large .changelog-button-arrow {
  width: 46px;
  height: 46px;
  font-size: 24px;
}

/* ---------- Hub ---------- */

.changelog-hub-header {
  margin: 8px 0 64px;
}

.changelog-hub-title {
  margin-bottom: 22px;
  font-size: clamp(46px, 6vw, 84px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.changelog-hub-intro {
  max-width: 600px;
  margin: 0 0 26px;
  color: var(--cl-muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

.changelog-month-group {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--cl-line);
}

.changelog-month-label {
  position: sticky;
  top: 112px;
  align-self: start;
}

.changelog-month-heading {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.changelog-month-count {
  margin: 0;
  color: var(--cl-muted-2);
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
}

.changelog-month-entries {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.changelog-card-link {
  display: block;
  padding: 28px 32px;
  border: 1px solid var(--cl-line);
  border-radius: var(--changelog-radius);
  background: var(--cl-card);
  box-shadow: var(--cl-shadow);
  color: inherit;
  text-decoration: none;
  transition: translate 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.changelog-card-link:hover,
.changelog-card-link:focus-visible {
  border-color: var(--cl-hover);
  box-shadow: var(--cl-shadow-hover);
  translate: 0 -2px;
}

.changelog-card-link:focus-visible {
  outline: 3px solid var(--cl-focus);
  outline-offset: 4px;
}

.changelog-card-link:hover .changelog-arrow {
  transform: translateX(3px);
}

.changelog-card-date {
  margin: 0 0 10px;
  color: var(--cl-muted-2);
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
}

.changelog-card-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.changelog-card-intro {
  margin: 0 0 20px;
  color: var(--cl-muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.changelog-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.changelog-card-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cl-ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.changelog-card-more .changelog-arrow {
  width: 28px;
  height: 28px;
  font-size: 16px;
}

.changelog-empty {
  color: var(--cl-muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
}

.changelog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

/* ---------- Entry ---------- */

.changelog-entry {
  margin-top: 8px;
}

.changelog-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 22px;
}

.changelog-entry-date {
  margin: 0;
  color: var(--cl-muted-2);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
}

.changelog-entry-title {
  margin-bottom: 22px;
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.changelog-entry-intro {
  margin: 0 0 32px;
  color: var(--cl-muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.6;
}

.changelog-entry-cta {
  margin: 0 0 48px;
}

.changelog-section {
  --changelog-accent: var(--changelog-new);
  --changelog-accent-bg: var(--changelog-new-bg);
  margin: 0 0 16px;
  padding: 28px 32px 30px;
  border: 1px solid var(--cl-line);
  border-radius: var(--changelog-radius);
  background: var(--cl-card);
  box-shadow: var(--cl-shadow);
}

.changelog-section--improved {
  --changelog-accent: var(--changelog-improved);
  --changelog-accent-bg: var(--changelog-improved-bg);
}

.changelog-section--fixed {
  --changelog-accent: var(--changelog-fixed);
  --changelog-accent-bg: var(--changelog-fixed-bg);
}

.changelog-section--good-to-know {
  --changelog-accent: var(--changelog-know);
  --changelog-accent-bg: var(--changelog-know-bg);
}

.changelog-section-heading {
  margin: 0 0 18px;
  font-size: inherit;
  line-height: 1;
  -webkit-text-fill-color: currentColor;
  background-image: none;
}

.changelog-section-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--changelog-accent-bg);
  color: var(--changelog-accent);
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.changelog-section-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.changelog-section-item {
  position: relative;
  margin: 0;
  padding-left: 22px;
  color: var(--cl-text);
  font-family: Inter, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.changelog-section-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--changelog-accent);
}

.changelog-section-item strong {
  color: var(--cl-ink);
  font-weight: 600;
}

.changelog-screenshot {
  margin: 28px 0 0;
}

.changelog-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--cl-line);
  border-radius: var(--changelog-radius);
}

.changelog-entry-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--cl-line);
}

.changelog-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  border: 1px solid var(--cl-line);
  border-radius: 20px;
  background: var(--cl-card);
  box-shadow: var(--cl-shadow);
  color: inherit;
  text-decoration: none;
  transition: translate 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.changelog-nav-link:hover,
.changelog-nav-link:focus-visible {
  border-color: var(--cl-hover);
  box-shadow: var(--cl-shadow-hover);
  translate: 0 -2px;
}

.changelog-nav-newer {
  grid-column: 2;
  text-align: right;
}

.changelog-nav-older {
  grid-column: 1;
}

.changelog-nav-label {
  color: var(--cl-muted-2);
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
}

.changelog-nav-title {
  color: var(--cl-ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.changelog-nav-all {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 12px;
}

/* ---------- Closing section ---------- */

.changelog-closing {
  padding: 110px 24px 120px;
  border-top: 1px solid var(--cl-line);
  background-color: var(--cl-cream);
  background-image: radial-gradient(circle, #d6cdb9 1px, transparent 1.4px);
  background-size: 24px 24px;
  text-align: center;
}

.changelog-closing-inner {
  max-width: 900px;
  margin: 0 auto;
}

.changelog-closing-title {
  margin: 0 auto;
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.changelog-closing-line {
  max-width: 620px;
  margin: 26px auto 38px;
  color: var(--cl-muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

.changelog-closing-note {
  margin: 20px 0 0;
  color: var(--cl-muted-2);
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  .changelog-hub-header { margin-bottom: 44px; }
  .changelog-hub-intro { font-size: 17px; }
  .changelog-month-group {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }
  .changelog-month-label {
    position: static;
    display: flex;
    align-items: baseline;
    gap: 12px;
  }
  .changelog-card-link { padding: 22px; }
  .changelog-card-title { font-size: 20px; }
  .changelog-entry-intro { font-size: 17px; }
  .changelog-section { padding: 22px 20px 24px; }
  .changelog-section-item { font-size: 16px; }
  .changelog-entry-nav { grid-template-columns: 1fr; }
  .changelog-nav-newer,
  .changelog-nav-older {
    grid-column: 1;
    text-align: left;
  }
  .changelog-closing { padding: 80px 20px 90px; }
  .changelog-closing-line { font-size: 17px; }
  .changelog-button--large { font-size: 16px; }
}
