/* Blog pages (rangee.io/<lang>/blog): the « Blog » design's own classes, on top of the landing
   page's stylesheets (tokens, rg-* components, lp-link, lp-up). */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #f4f1fb;
}
.lp a {
  color: var(--accent-ink);
}
.lp a:not(.rg-btn):hover {
  color: var(--foreground);
}
.lp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.lp-card {
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.lp-card:hover {
  border-color: var(--input-strong) !important;
  box-shadow: var(--shadow-md) !important;
  color: var(--foreground) !important;
}
.lp-chip:hover {
  background: var(--accent) !important;
  color: var(--foreground);
}
.lp-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lp-row-link:hover span span:first-child {
  color: var(--accent-ink);
}
.lp-toc:hover,
.lp-toc.is-active {
  background: var(--accent) !important;
  color: var(--foreground) !important;
}
.lp-faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.lp-faq summary::-webkit-details-marker {
  display: none;
}
.lp-faq summary::after {
  content: "+";
  color: var(--muted-foreground);
  font-weight: 400;
}
.lp-faq[open] summary::after {
  content: "−";
}
a:not(.rg-btn):focus-visible,
button:not(.rg-btn):focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--shadow-ring);
  border-radius: var(--radius-sm);
}
.bl-item[hidden] {
  display: none !important;
}

/* Article layout: text column and a sticky table of contents from 1024 px. */
.bl-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}
.bl-main {
  max-width: 760px;
}
.bl-aside {
  display: none;
}
@media (min-width: 1024px) {
  .bl-layout {
    grid-template-columns: minmax(0, 760px) 280px;
    justify-content: space-between;
  }
  .bl-aside {
    display: block;
  }
  .bl-aside > nav {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
  }
}

/* Article text. */
.lp-prose {
  font-size: 17px;
  line-height: 28px;
  color: var(--foreground);
}
.lp-prose > :first-child {
  margin-top: 0;
}
.lp-prose p,
.lp-prose ul,
.lp-prose ol {
  margin: 0 0 18px;
}
.lp-prose ul,
.lp-prose ol {
  padding-left: 24px;
}
.lp-prose li {
  margin: 6px 0;
}
.lp-prose h2 {
  margin: 48px 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.01em;
  scroll-margin-top: 88px;
}
.lp-prose h3 {
  margin: 32px 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 28px;
  scroll-margin-top: 88px;
}
.lp-prose h4 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 700;
}
.lp-prose strong {
  font-weight: 700;
}
.lp-prose a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.lp-prose blockquote {
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  color: var(--foreground-2);
  font-size: 15px;
  line-height: 24px;
}
.lp-prose blockquote p:last-child {
  margin-bottom: 0;
}
.lp-prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--muted);
  overflow-wrap: anywhere;
}
.lp-prose pre {
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow-x: auto;
}
.lp-prose pre code {
  padding: 0;
  background: none;
}
.lp-prose hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.bl-table {
  margin: 0 0 24px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.lp-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
}
.lp-prose th,
.lp-prose td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--border-soft);
}
.lp-prose thead th {
  border-top: 0;
  background: var(--surface-soft);
  font-weight: 500;
  white-space: nowrap;
}
.lp-prose figure {
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.lp-prose figure svg {
  display: block;
  width: 100%;
  height: auto;
}
.lp-prose figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted-foreground);
}
.lp-prose img {
  max-width: 100%;
  height: auto;
}
@keyframes lpUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
