/* changelog.nilear.com. No third-party fonts or scripts; light and dark follow the visitor's preference. */
:root {
  color-scheme: light dark;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --text: #1f2937;
  --text-strong: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --link: #2563eb;
  --brand: #0a4357;
  --shadow: 0 2px 10px rgba(16, 24, 40, 0.06);
  --feature-bg: #e9f9ee; --feature-fg: #166534; --feature-bd: #c7f2d3;
  --bugfix-bg: #fde7f3; --bugfix-fg: #9d174d; --bugfix-bd: #f9c6e1;
  --update-bg: #e8f1ff; --update-fg: #1e40af; --update-bd: #cfe0ff;
  --announcement-bg: #fff7e6; --announcement-fg: #92400e; --announcement-bd: #ffe2b5;
  --info-bg: #e7f6fb; --info-fg: #055160; --info-bd: #b6e3f0;
  --warning-bg: #fff8e1; --warning-fg: #664d03; --warning-bd: #ffe69c;
  --danger-bg: #fdecec; --danger-fg: #842029; --danger-bd: #f5c2c7;
  --success-bg: #e8f5ee; --success-fg: #0f5132; --success-bd: #badbcc;
  --secondary-bg: #6c757d; --secondary-fg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141a;
    --surface: #171d24;
    --surface-2: #1f2730;
    --text: #d6dde6;
    --text-strong: #f3f6f9;
    --muted: #9aa5b1;
    --border: #2b3540;
    --link: #7fb0ff;
    --brand: #8fd3ea;
    --shadow: none;
    --feature-bg: #12301d; --feature-fg: #8be0a6; --feature-bd: #1f5131;
    --bugfix-bg: #3a1328; --bugfix-fg: #f6a8cf; --bugfix-bd: #5b2343;
    --update-bg: #13254a; --update-fg: #a9c4ff; --update-bd: #23407a;
    --announcement-bg: #3a2a0d; --announcement-fg: #f5c97b; --announcement-bd: #5c4316;
    --info-bg: #0f2f39; --info-fg: #9fdcef; --info-bd: #1d4e5c;
    --warning-bg: #3a300c; --warning-fg: #f3d677; --warning-bd: #5e4d12;
    --danger-bg: #3d1418; --danger-fg: #f2a5ad; --danger-bd: #63232a;
    --success-bg: #11301f; --success-fg: #8fd6ae; --success-bd: #1f5236;
    --secondary-bg: #4b5563; --secondary-fg: #f3f4f6;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header, .site-footer, main {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 20px;
  padding-bottom: 8px;
}

.site-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
}

.site-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }

.site-footer {
  margin-top: 32px;
  padding-top: 16px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }

h1 { font-size: 28px; line-height: 1.25; color: var(--text-strong); margin: 16px 0 8px; }
.lead { color: var(--muted); margin: 0 0 16px; }

.browse { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 8px 0 16px; }
.browse h2 { font-size: 15px; margin: 0 0 6px; color: var(--text-strong); }
.browse ul { margin: 0; padding-left: 1.1rem; }

/* Entries */
.entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin: 16px 0;
}

.entry-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.entry-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-date { font-size: 13px; color: var(--muted); white-space: nowrap; padding-top: 2px; }

.entry-title { margin: 0 0 8px; font-size: 18px; line-height: 1.3; color: var(--text-strong); }
h1.entry-title { font-size: 26px; }
.entry-title a { color: inherit; }

.tag-badge, .type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.type-badge { text-transform: uppercase; }
.tag-badge { background: var(--surface-2); color: var(--text); }
.type-feature { background: var(--feature-bg); color: var(--feature-fg); border-color: var(--feature-bd); }
.type-bugFix { background: var(--bugfix-bg); color: var(--bugfix-fg); border-color: var(--bugfix-bd); }
.type-update { background: var(--update-bg); color: var(--update-fg); border-color: var(--update-bd); }
.type-announcement { background: var(--announcement-bg); color: var(--announcement-fg); border-color: var(--announcement-bd); }

.entry-summary { margin: 0; color: var(--text); }
.entry-list { list-style: none; margin: 0; padding: 0; }
.entry-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.entry-list .entry-date { margin-right: 8px; }

.pager { display: flex; justify-content: space-between; gap: 16px; margin: 16px 0; font-size: 14px; }

.videos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.video { display: block; width: 280px; max-width: 100%; color: var(--text); }
.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Entry bodies: the Markdown output plus the Bootstrap subset the migrated entries use. */
.entry-body { overflow-wrap: anywhere; }
.entry-body img { max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 0.5rem; }
.entry-body :is(p, ul, ol) { margin: 0.5rem 0; }
.entry-body :is(ul, ol) { padding-left: 1.2rem; }
.entry-body h3 { font-size: 16px; color: var(--text-strong); margin: 1rem 0 0.25rem; }
.entry-body hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.entry-body pre, .entry-body code { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 13px; }
.entry-body pre { white-space: pre-wrap; background: var(--surface-2); border-radius: 6px; padding: 8px; overflow-x: auto; }
.entry-body table { border-collapse: collapse; max-width: 100%; }
.entry-body td, .entry-body th { padding: 4px 8px; vertical-align: top; }
.entry-body .table { width: 100%; }
.entry-body .table :is(td, th) { border-top: 1px solid var(--border); }
/* Font Awesome icons are decorative and the site loads no icon font. */
.entry-body i[class*="fa"] { display: none; }

.alert { border: 1px solid; border-radius: 8px; padding: 10px 14px; margin: 8px 0; }
.alert-info { background: var(--info-bg); color: var(--info-fg); border-color: var(--info-bd); }
.alert-warning { background: var(--warning-bg); color: var(--warning-fg); border-color: var(--warning-bd); }
.alert-danger { background: var(--danger-bg); color: var(--danger-fg); border-color: var(--danger-bd); }
.alert-success { background: var(--success-bg); color: var(--success-fg); border-color: var(--success-bd); }
.card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin: 8px 0; }
.card-header { background: var(--surface-2); padding: 6px 12px; font-weight: 600; }
.card-body { padding: 10px 12px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.btn { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 13px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
.text-bg-primary { background: #0d6efd; color: #fff; }
.text-bg-secondary { background: var(--secondary-bg); color: var(--secondary-fg); }
.text-bg-dark { background: #212529; color: #fff; }
.text-bg-danger { background: #dc3545; color: #fff; }
.text-info { color: #0aa2c0; }
.text-warning { color: #cc9a06; }
.text-danger { color: #dc3545; }
.text-purple { color: #7c3aed; }
.text-pink { color: #d63384; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-start { text-align: left; }
.text-end { text-align: right; }
.text-uppercase { text-transform: uppercase; }
.fw-bold { font-weight: 700; }
.small { font-size: 0.875em; }
.d-none { display: none; }
.d-inline-block { display: inline-block; }
.d-table { display: table; }
.d-table-row { display: table-row; }
.d-table-cell { display: table-cell; }
@media (min-width: 992px) { .d-lg-table-cell { display: table-cell; } }
.w-100 { width: 100%; }
.w-50 { width: 50%; }
.float-start { float: left; }
.row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.row > * { padding: 0 8px; width: 100%; }
.col-2 { width: 16.667%; }
.col-10 { width: 83.333%; }
@media (min-width: 576px) { .col-sm-6 { width: 50%; } .mb-sm-0 { margin-bottom: 0; } }
@media (min-width: 992px) { .col-lg-6 { width: 50%; } }
.m-0 { margin: 0; } .mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; }
.ms-3 { margin-left: 1rem; } .ms-5 { margin-left: 3rem; } .me-1 { margin-right: 0.25rem; } .me-2 { margin-right: 0.5rem; } .me-3 { margin-right: 1rem; }
.p-2 { padding: 0.5rem; } .pt-0 { padding-top: 0; } .pt-1 { padding-top: 0.25rem; } .pb-0 { padding-bottom: 0; } .pb-1 { padding-bottom: 0.25rem; } .pb-3 { padding-bottom: 1rem; }
.ps-1 { padding-left: 0.25rem; } .ps-3 { padding-left: 1rem; } .pe-1 { padding-right: 0.25rem; } .pe-3 { padding-right: 1rem; }

@media (max-width: 576px) {
  h1 { font-size: 24px; }
  .ms-5 { margin-left: 1rem; }
}

/* Rules for entry bodies (rendered [innerHTML]); moved from change-logs.component.css. */
.entry-body img {
  max-width: 100%;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: .5rem;
}

.entry-body .polish-email-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(13, 110, 253, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.entry-body .polish-email-title::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.35) 35%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: polishTitleSweep 4.5s ease-in-out infinite;
}

.entry-body .polish-email-title__icon {
  position: relative;
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0d6efd, #6f42c1);
  color: #fff;
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.28);
}

.entry-body .polish-email-title__icon .base-icon {
  font-size: 1.8rem;
  z-index: 2;
}

.entry-body .polish-email-title__icon .sparkle {
  position: absolute;
  color: #fff8c5;
  opacity: 0.9;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.5));
}

.entry-body .polish-email-title__icon .sparkle-1 {
  top: 8px;
  right: 8px;
  font-size: 0.8rem;
  animation: sparklePulse 2.2s ease-in-out infinite;
}

.entry-body .polish-email-title__icon .sparkle-2 {
  bottom: 10px;
  left: 8px;
  font-size: 0.65rem;
  animation: sparklePulse 2.2s ease-in-out infinite 0.8s;
}

.entry-body .polish-email-title__content {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.entry-body .polish-email-title__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6c757d;
  margin-bottom: 0.15rem;
}

.entry-body .polish-email-title__headline-wrap {
  position: relative;
  display: inline-block;
}

.entry-body .polish-email-title__ghost {
  position: absolute;
  inset: 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(108, 117, 125, 0.35);
  white-space: nowrap;
  user-select: none;
  animation: ghostFade 4.5s ease-in-out infinite;
}

.entry-body .polish-email-title__headline {
  position: relative;
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #1f2937;
  white-space: nowrap;
}

.entry-body .polish-email-title__headline .word {
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  animation: wordReveal 4.5s ease-in-out infinite;
}

.entry-body .polish-email-title__headline .word:nth-child(1) { animation-delay: 0.35s; }
.entry-body .polish-email-title__headline .word:nth-child(2) { animation-delay: 0.5s; }
.entry-body .polish-email-title__headline .word:nth-child(3) { animation-delay: 0.65s; }
.entry-body .polish-email-title__headline .word:nth-child(4) { animation-delay: 0.8s; }
.entry-body .polish-email-title__headline .word:nth-child(5) { animation-delay: 0.95s; }

.entry-body .polish-email-title__headline .word + .word {
  margin-left: 0.35rem;
}

.entry-body .polish-email-title__headline .ai {
  background: linear-gradient(135deg, #0d6efd, #6f42c1 60%, #20c997);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(13, 110, 253, 0.18));
}

.entry-body .polish-email-title__subtitle {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #495057;
}

.entry-body .polish-email-title__subtitle .arrow {
  display: inline-block;
  margin: 0 0.25rem;
  color: #0d6efd;
  animation: arrowNudge 1.8s ease-in-out infinite;
}

.entry-body .shimmer {
  position: absolute;
  top: -10%;
  bottom: -10%;
  width: 90px;
  left: -110px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.12),
    rgba(255,255,255,0.7),
    rgba(255,255,255,0.12),
    transparent
  );
  transform: skewX(-18deg);
  animation: shimmerMove 4.5s ease-in-out infinite;
}

.entry-body .polish-email-title--summary {
  background:
    radial-gradient(circle at top right, rgba(32, 201, 151, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,252,250,0.98));
}

.entry-body .polish-email-title--summary .polish-email-title__icon {
  background: linear-gradient(135deg, #198754, #20c997);
  box-shadow: 0 10px 22px rgba(25, 135, 84, 0.28);
}

.entry-body .polish-email-title--summary .polish-email-title__headline .ai {
  background: linear-gradient(135deg, #198754, #20c997 60%, #0dcaf0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(25, 135, 84, 0.18));
}

.entry-body .polish-email-title--notes {
  background:
    radial-gradient(circle at top right, rgba(253, 126, 20, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,252,248,0.98));
}

.entry-body .polish-email-title--notes .polish-email-title__icon {
  background: linear-gradient(135deg, #fd7e14, #ffc107);
  box-shadow: 0 10px 22px rgba(253, 126, 20, 0.28);
}

.entry-body .polish-email-title--notes .polish-email-title__headline .ai {
  background: linear-gradient(135deg, #fd7e14, #ffc107 60%, #ffda6a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(253, 126, 20, 0.18));
}

.entry-body .polish-email-title--tsi {
  background:
    radial-gradient(circle at top right, rgba(111, 66, 193, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(251,248,255,0.98));
}

.entry-body .polish-email-title--tsi .polish-email-title__icon {
  background: linear-gradient(135deg, #6f42c1, #6610f2);
  box-shadow: 0 10px 22px rgba(111, 66, 193, 0.28);
}

.entry-body .polish-email-title--tsi .polish-email-title__headline .ai {
  background: linear-gradient(135deg, #6f42c1, #6610f2 60%, #9966ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(111, 66, 193, 0.18));
}

.entry-body .polish-email-title--split {
  background:
    radial-gradient(circle at top right, rgba(13, 202, 240, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,252,255,0.98));
}

.entry-body .polish-email-title--split .polish-email-title__icon {
  background: linear-gradient(135deg, #0891b2, #0dcaf0);
  box-shadow: 0 10px 22px rgba(13, 202, 240, 0.28);
}

.entry-body .polish-email-title--split .polish-email-title__headline .ai {
  background: linear-gradient(135deg, #0891b2, #0dcaf0 60%, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(13, 202, 240, 0.18));
}

.entry-body .polish-email-title--contact {
  background:
    radial-gradient(circle at top right, rgba(214, 51, 132, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,248,252,0.98));
}

.entry-body .polish-email-title--contact .polish-email-title__icon {
  background: linear-gradient(135deg, #d63384, #e83e8c);
  box-shadow: 0 10px 22px rgba(214, 51, 132, 0.28);
}

.entry-body .polish-email-title--contact .polish-email-title__headline .ai {
  background: linear-gradient(135deg, #d63384, #e83e8c 60%, #f7a1c4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(214, 51, 132, 0.18));
}

@keyframes polishTitleSweep {
  0%, 55%, 100% {
    transform: translateX(-120%);
  }
  68%, 82% {
    transform: translateX(120%);
  }
}

@keyframes shimmerMove {
  0%, 58%, 100% {
    left: -110px;
    opacity: 0;
  }
  66% {
    opacity: 1;
  }
  82% {
    left: calc(100% + 80px);
    opacity: 0.95;
  }
}

@keyframes sparklePulse {
  0%, 100% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes ghostFade {
  0%, 18% {
    opacity: 0.35;
    filter: blur(0.3px);
  }
  28%, 100% {
    opacity: 0;
    filter: blur(1px);
  }
}

@keyframes wordReveal {
  0%, 12% {
    opacity: 0;
    transform: translateY(8px);
  }
  18%, 88% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes arrowNudge {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(3px);
  }
}

@media (max-width: 576px) {
  .entry-body .polish-email-title {
    padding: 0.9rem 1rem;
    gap: 0.85rem;
    align-items: flex-start;
  }

  .entry-body .polish-email-title__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .entry-body .polish-email-title__icon .base-icon {
    font-size: 1.45rem;
  }

  .entry-body .polish-email-title__headline,
  .entry-body .polish-email-title__ghost {
    white-space: normal;
  }
}
