/* ASTRA light pages (docs / blog / changelog / support).
 * No vendor/theme/manifest stack: native scrolling, .astra-reveal from astra-site.js.
 * Visual language (2026-11-02): carried over from the old 1Cellbio marketing pages —
 * blurred backdrop image, translucent top bar, centered hero (bar + title + mono kicker),
 * glass cards, mono uppercase micro-labels. Values were read off the old pages' computed styles.
 * Header / hero / footer markup is generated by astra_build/light_shell.py.
 * Sizes are in px on purpose: the template's style.css sets html { font-size: clamp(12px, …, .833vw) },
 * so rem here is 12px on a 1440 screen and the old pages' 16px-based values would come out 25% small.
 * The one exception is the top bar below, which is in rem *because* the home bar is: it has to scale exactly like it. */

body.astra-page {
  --pg-bg: #000;
  --pg-fg: #e5e7eb;
  --pg-accent: #d4d4d8;
  --pg-border: rgba(229, 231, 235, 0.15);
  --pg-subtle: rgba(229, 231, 235, 0.2);
  --pg-glass: rgba(229, 231, 235, 0.05);
  --pg-muted: rgba(229, 231, 235, 0.6);
  --pg-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --pg-ok: #34d399;
  --pg-warn: #fbbf24;
  background: var(--pg-bg); color: var(--pg-fg);
  min-height: 100vh; display: flex; flex-direction: column;
}
/* fixed backdrop: a still of the home page's double helix (captured from the landing canvas),
 * heavily blurred and dimmed so it reads as colour, never as shapes behind the content. No fade-in:
 * it is preloaded and cached, and a fade would replay from black on every page switch (a flash). */
body.astra-page::before {
  content: ''; position: fixed; inset: -48px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 22%, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0) 100%),
    #000 url("../dala_assets/images/bg/astra-helix.webp") left center / cover no-repeat;
  opacity: 0.6; filter: blur(14px) brightness(0.8);
  animation: astra-bg-breathe 22s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
@keyframes astra-bg-breathe {
  0% { transform: scale(1) translate3d(0, 0, 0); opacity: 0.56; }
  100% { transform: scale(1.045) translate3d(-12px, -8px, 0); opacity: 0.66; }
}
@media (prefers-reduced-motion: reduce) { body.astra-page::before { animation: none; } }
/* phones: portrait crop, keep the helix itself in view */
@media (max-width: 767px) { body.astra-page::before { background-position: 0 0, 62% center; opacity: 0.45; } }
/* no visible page scrollbar (scrolling still works): pages of different heights no longer shift
 * sideways when the bar appears or disappears */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
/* Chinese visits in browsers without render-blocking links (see js/astra-early.js): hide the page
 * until astra-i18n.js has swapped the text (un-hides itself after 1.5 s if anything goes wrong) */
html.astra-pre body { visibility: hidden; }
body.astra-page > main, body.astra-page > .astra-page__footer { position: relative; z-index: 1; }
.astra-page main { flex: 1 1 auto; width: 100%; }

/* ---- shared page header (top bar) ----
 * The landing header, unit for unit and state for state (2026-11-09, PLAN-landing-header-parity): going from the home page
 * into a light page must not change the bar's size, position or look at any viewport width. Pinned by qa/check_header_parity.mjs.
 *  - Units are rem. The template sets html { font-size: clamp(12px, …, .8333vw) } — 12px up to 1440, growing after that — and the
 *    home bar is built in rem, so it grows with the screen. The earlier fixed px (measured at 1440) left this bar 89px tall with a
 *    73px logo and 14px links on every screen: visibly smaller than the home bar from ~1536px up (1920: 96px / 101px / 16px).
 *    Only the nav-link font keeps the template's own px steps (14px; 16px from 1919px; 1rem from 1921px).
 *  - Two states, as on the home (theme.js Header). "grown" at the top of the page: no background, logo with its wordmark, the whole
 *    bar sits 1rem low (desktop). "compact" once the page is scrolled more than 1px (.is-compact, js/astra-site.js): the blurred
 *    gradient background fades in, the bar rises to its own centre line, the wordmark slips out under the logo's clip
 *    (back on hover / keyboard focus). The transitions only exist after .is-ready, so a reload in mid-page doesn't animate in.
 *  - Position: the home bar is `position: fixed; top: 1px`; `sticky; top: 1px` puts this one at y = 1 at rest and when stuck alike.
 * Below 768px (where the home page also switches to its burger) the links fold into a panel.
 * The "Resources" dropdown itself is the shared .astra-dd component in astra-site.css. */
.astra-page__header {
  --astra-ease: cubic-bezier(0.16, 1, 0.3, 1); /* GSAP "expo.out", the home bar's easing */
  position: sticky; top: 1px; z-index: 50; flex: none; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 1.25rem;
  font-family: PPNeueMontreal, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
/* the compact state's background: the home's .header__bg (scaleY 0 → 1 from the top edge) with its .header__bg-inner gradient */
.astra-page__header::before {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  background: linear-gradient(1turn, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1));
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  transform: scaleY(0); transform-origin: center top;
}
@supports not ((-webkit-backdrop-filter: blur(20px)) or (backdrop-filter: blur(20px))) {
  .astra-page__header::before { background: linear-gradient(1turn, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)); }
}
.astra-page__header.is-compact::before { transform: scaleY(1); }
.astra-page__brand {
  display: flex; align-items: center; flex: none; box-sizing: border-box;
  width: 7.063rem; height: 3rem; padding: 1px 6px; /* the home .header__logo button: 7.063rem × 3rem, UA padding, svg at 100% width */
  text-decoration: none;
}
.astra-page__brand svg { display: block; width: 100%; height: auto; overflow: visible; }
/* the wordmark (the svg <text>, user units): parked below the group's clip while compact; hover / focus brings it back */
.astra-page__brand text { transform: translateY(0); }
.astra-page__header.is-compact .astra-page__brand text { transform: translateY(34px); }
.astra-page__header.is-compact .astra-page__brand:hover text,
.astra-page__header.is-compact .astra-page__brand:focus-visible text { transform: translateY(0); }
.astra-page__nav { display: flex; align-items: center; gap: 2.5rem; margin-left: auto; }
.astra-page__nav-link {
  color: #9a9a9a; text-decoration: none; white-space: nowrap;
  font-size: 14px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; line-height: 1.2;
  transition: color 0.25s ease;
}
.astra-page__nav-link:hover, .astra-page__nav-link:focus-visible, .astra-page__nav-link[aria-current="page"],
.astra-page__nav-link.is-current, .astra-dd.is-open > .astra-page__nav-link { color: #fff; }
.astra-page__lang {
  margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  color: #9a9a9a; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; line-height: 1.2;
  transition: color 0.25s ease;
}
.astra-page__lang:hover, .astra-page__lang:focus-visible { color: #fff; }
.astra-page__lang .astra-hop__c { padding-top: 0; }
/* the hop spans reuse the template's .nav__link__chars class; here the items are centred, so its top padding would only push them down */
.astra-page__nav .astra-hop__c { padding-top: 0; }
/* the home's chevron is centred on its label box, which carries the chars' .5rem top padding — so it sits half of that (.25rem) above the text's centre;
 * these items are text-centred, so lift the chevron by the same .25rem to land on the same pixel (position, not transform: .astra-dd__chev rotates when open) */
.astra-page__nav .astra-dd__chev { position: relative; top: -0.25rem; }
.astra-page__launch { flex: none; white-space: nowrap; }
/* the template's own font-size steps for .nav__link: 14px, 16px from 1919px, then the root size (= 0.8333vw) from 1921px */
@media (min-width: 1919px) { .astra-page__nav-link, .astra-page__lang { font-size: 16px; } }
@media (min-width: 1921px) { .astra-page__nav-link, .astra-page__lang { font-size: 1rem; } }
/* desktop: the grown state has the whole bar 1rem low (the home .header__inner { transform: translateY(1rem) }); 1rem of in-flow room stays
 * below the bar (the home bar floats over its hero instead). Compact: back on the bar's own centre line. */
@media (min-width: 768px) {
  .astra-page__header { padding: 1.5rem 3.125rem; margin-bottom: 1rem; }
  .astra-page__brand, .astra-page__nav { transform: translateY(1rem); }
  .astra-page__header.is-compact .astra-page__brand, .astra-page__header.is-compact .astra-page__nav { transform: none; }
  /* hit area (2026-11-10, PLAN-landing-nav-click-fix): the nav moves 1rem between the two states and a link is only ~17px tall —
   * 1.2rem above and below, cancelled by the same negative margin, makes it ~45px tall without moving anything (same as the home bar) */
  .astra-page__nav-link, .astra-page__lang, .astra-page__nav .astra-dd__btn { padding-block: 1.2rem; margin-block: -1.2rem; }
}
.astra-page__header.is-ready::before,
.astra-page__header.is-ready .astra-page__brand,
.astra-page__header.is-ready .astra-page__brand text,
.astra-page__header.is-ready .astra-page__nav { transition: transform 1s var(--astra-ease); }
.astra-page__end { display: none; align-items: center; gap: 0.75rem; margin-left: auto; }
.astra-page__menu { width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 0; background: #8052ff; /* same purple disc as the home burger */ cursor: pointer; position: relative; flex: none; }
/* Closed glyph = the home burger's three lines, to the pixel: the home draws a 16×16 svg (stroke 1) in the disc's 1rem padding, i.e. a 15 px box
 * at the phone's 12 px root → three 14.42 px lines, 0.94 px thick, centred 15.14 / 19.47 / 23.79 px from the disc's top (in rem here, so it tracks
 * the disc). Open = the lines collapse onto the disc's centre as ±45° and the middle one fades — the same 14.42 px diagonals as the home's cross. */
.astra-page__menu span { position: absolute; left: 1.0242rem; right: 1.0242rem; height: 0.0781rem; background: #fff; transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease; }
.astra-page__menu span:nth-child(1) { top: 1.2227rem; }
.astra-page__menu span:nth-child(2) { top: 1.5832rem; }
.astra-page__menu span:nth-child(3) { top: 1.9437rem; }
.astra-page__header.is-menu-open .astra-page__menu span:nth-child(1) { top: 1.5859rem; transform: rotate(45deg); }
.astra-page__header.is-menu-open .astra-page__menu span:nth-child(2) { opacity: 0; }
.astra-page__header.is-menu-open .astra-page__menu span:nth-child(3) { top: 1.5859rem; transform: rotate(-45deg); }

@media (max-width: 767px) {
  .astra-page__end { display: flex; }
  .astra-page__nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 24px 24px; max-height: calc(100vh - var(--astra-bar-h, 6rem)); overflow-y: auto;
    background: #08080a; border-bottom: 1px solid var(--pg-border);
  }
  .astra-page__header.is-menu-open .astra-page__nav { display: flex; }
  .astra-page__nav > .astra-page__launch { display: none; }
  .astra-page__nav-link { padding: 12px 0; font-size: 15px; }
  .astra-page__lang { align-self: flex-start; padding: 14px 0 4px; }
  /* in the panel the resources group is always expanded; its button is just a label */
  .astra-page__nav .astra-dd { display: block; }
  .astra-page__nav .astra-dd__btn { pointer-events: none; opacity: 0.45; font-size: 12px; margin-top: 10px; padding: 8px 0; color: #9a9a9a; }
  .astra-page__nav .astra-dd__chev { display: none; }
  .astra-page__nav .astra-dd__menu {
    display: block; position: static; transform: none; min-width: 0; padding: 0; border: 0;
    background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .astra-page__nav .astra-dd__menu::before { display: none; }
  .astra-page__nav .astra-dd__title { display: none; }
  .astra-page__nav .astra-dd__link { padding: 9px 0 9px 12px; background: none !important; font-size: 15px; }
}

/* ---- shared page footer ----
 * The home page's footer bar (.footer__bar, the template's own box: border, padding, blur, the logo below 1024px and the copyright line;
 * no navigation since 2026-11-10 — the top bar has every entry), generated into every light page by tools/landing/light_shell.py
 * (2026-11-09, PLAN-landing-footer-parity). The bar styles itself — the template's style.css plus the footer block of js/astra-site.css — so
 * this wrapper only has to stay out of the way: no box of its own (the old px padding / 12.8px type / grey links lived here and made the
 * sub-page footer a different bar from the home one). Nothing inside the bar inherits a colour any more — the copyright line sets its own
 * (#bdbdbd) and the logo paints itself white — so there is no colour rule here (a `color: #fff` on the bar used to feed the nav links).
 * Pinned by qa/check_footer_parity.mjs. */
.astra-page__footer { display: block; }

/* ---- centered hero (old pages: bar 48x4 → title 48px → mono kicker → description → pill) ---- */
.astra-hero { text-align: center; max-width: 896px; margin: 0 auto; padding: 48px 24px 40px; display: flex; flex-direction: column; align-items: center; }
.astra-hero__bar { display: block; width: 48px; height: 4px; border-radius: 999px; background: var(--pg-accent); opacity: 0.6; margin-bottom: 24px; }
.astra-hero__title { font-size: 48px; line-height: 1.1; font-weight: 500; letter-spacing: -0.05em; opacity: 0.9; margin: 0; color: var(--pg-fg); }
.astra-hero__kicker { margin: 12px 0 0; font-family: var(--pg-mono); font-size: 14px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--pg-muted); opacity: 0.4; }
.astra-hero__desc { margin: 24px 0 32px; max-width: 768px; font-size: 18px; line-height: 1.6; font-weight: 300; opacity: 0.5; }
.astra-hero .astra-pill { margin-bottom: 8px; }
@media (max-width: 640px) {
  .astra-hero { padding: 36px 16px 28px; }
  .astra-hero__title { font-size: 36px; }
  .astra-hero__kicker { font-size: 12px; letter-spacing: 0.25em; }
  .astra-hero__desc { font-size: 16px; margin: 17.6px 0 24px; }
}

/* pill buttons (old: solid = light fill, 12px radius, mono uppercase; ghost = outlined round) */
.astra-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 40px; border-radius: 12px; text-decoration: none; cursor: pointer;
  font-family: var(--pg-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  transition: opacity 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.astra-pill--solid { background: var(--pg-fg); color: #000; border: 1px solid var(--pg-fg); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.astra-pill--solid:hover { opacity: 0.9; }
.astra-pill--ghost { padding: 13.6px 32px; border-radius: 999px; background: rgba(229, 231, 235, 0.05); color: var(--pg-fg); border: 1px solid var(--pg-border); }
.astra-pill--ghost:hover { background: var(--pg-subtle); border-color: var(--pg-accent); }

/* ---- glass card (old .glass-panel: 5% fill, 15% border, 24px radius, blur 16, deep shadow) ---- */
.astra-gcard {
  display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left;
  padding: 40px; border-radius: 24px; border: 1px solid var(--pg-border);
  background: var(--pg-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.5);
  color: var(--pg-fg); text-decoration: none; font: inherit; cursor: pointer;
  /* opacity: these cards are also .astra-reveal, whose fade-in transition this rule would otherwise replace */
  transition: opacity 0.7s ease, transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.astra-gcard:hover, .astra-gcard:focus-visible, .astra-gcard[aria-expanded="true"] { transform: translateY(-8px); border-color: var(--pg-accent); box-shadow: 0 40px 70px -12px rgba(0, 0, 0, 0.6); }
.astra-gcard__icon {
  display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 32px;
  border-radius: 16px; background: var(--pg-subtle); border: 1px solid var(--pg-border); color: var(--pg-fg);
  transition: transform 0.5s ease, background-color 0.5s ease, color 0.5s ease;
}
.astra-gcard__icon svg { width: 24px; height: 24px; display: block; }
.astra-gcard:hover .astra-gcard__icon, .astra-gcard[aria-expanded="true"] .astra-gcard__icon { transform: scale(1.1); background: var(--pg-accent); color: #18181b; }
.astra-gcard__title { display: block; font-size: 24px; line-height: 1.33; font-weight: 500; letter-spacing: -0.025em; margin: 0 0 8px; }
.astra-gcard__sub { display: block; font-family: var(--pg-mono); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pg-muted); opacity: 0.8; margin: 0 0 32px; }
.astra-gcard__cta {
  display: inline-flex; align-items: center; gap: 12px; margin-top: auto;
  font-family: var(--pg-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.4; transition: opacity 0.3s ease, color 0.3s ease;
}
.astra-gcard__cta svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.astra-gcard:hover .astra-gcard__cta { opacity: 1; color: var(--pg-accent); }
.astra-gcard:hover .astra-gcard__cta svg { transform: translateX(8px); }
@media (max-width: 640px) { .astra-gcard { padding: 28px; } .astra-gcard__title { font-size: 20px; } .astra-gcard__icon { margin-bottom: 20px; } .astra-gcard__sub { margin-bottom: 20px; } }
@media (prefers-reduced-motion: reduce) {
  .astra-gcard, .astra-gcard__icon, .astra-gcard__cta svg { transition: none; }
  .astra-gcard:hover, .astra-gcard:focus-visible, .astra-gcard[aria-expanded="true"] { transform: none; }
  .astra-gcard:hover .astra-gcard__icon { transform: none; }
}

/* ---- support ---- */
.support-grid { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 1152px; margin: 0 auto; padding: 16px 48px 96px; }
@media (min-width: 768px) { .support-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .support-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .support-grid { padding: 8px 16px 64px; gap: 20px; } }
.support-qr { position: relative; display: flex; }
.support-qr__pop {
  position: absolute; z-index: 20; left: 50%; bottom: calc(100% - 16px); transform: translateX(-50%);
  width: 240px; padding: 16px 16px 13.6px; border-radius: 20px; text-align: center;
  border: 1px solid var(--pg-border); background: rgba(14, 14, 16, 0.94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.7);
}
.support-qr__pop:not([hidden]) { animation: support-qr-in 0.26s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes support-qr-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px) scale(0.95); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.support-qr__pop[hidden] { display: none; }
.support-qr__pop img { display: block; width: 100%; height: auto; border-radius: 12px; background: #fff; }
.support-qr__pop p { margin: 12px 0 0; font-family: var(--pg-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.6; }
@media (max-width: 640px) { .support-qr__pop { bottom: auto; top: calc(100% + 8px); } }

/* ---- docs ---- */
.docs-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 48px 96px; }
@media (min-width: 1280px) { .docs-layout { grid-template-columns: minmax(0, 1fr) 240px; } }
@media (max-width: 640px) { .docs-layout { padding: 0 16px 64px; } }
.docs-tabs { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
@media (min-width: 768px) { .docs-tabs { grid-template-columns: repeat(2, 1fr); } }
.docs-chip {
  display: flex; flex-direction: column; gap: 9.6px; text-align: left; width: 100%;
  padding: 32px; border-radius: 24px; border: 1px solid var(--pg-border); background: var(--pg-glass);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.5);
  color: var(--pg-fg); font: inherit; cursor: pointer;
  transition: transform 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
}
.docs-chip:hover { transform: translateY(-4px); border-color: var(--pg-accent); }
.docs-chip[aria-pressed="true"] { border-color: var(--pg-accent); background: rgba(229, 231, 235, 0.1); }
.docs-chip__title { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.docs-chip__desc { font-size: 14px; opacity: 0.5; }
@media (max-width: 640px) { .docs-tabs { gap: 16px; margin-bottom: 32px; } .docs-chip { padding: 22.4px; border-radius: 17.6px; } }
@media (prefers-reduced-motion: reduce) { .docs-chip { transition: none; } .docs-chip:hover { transform: none; } }

.docs-chapter { display: none; }
.docs-chapter.is-active { display: block; animation: docs-chapter-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes docs-chapter-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.docs-chapter-title { font-size: 32px; letter-spacing: -0.03em; font-weight: 500; margin: 0 0 32px; }
.docs-section { margin-bottom: 44.8px; scroll-margin-top: calc(var(--astra-bar-h, 76px) + 2.25rem); }
.docs-section h2 { font-size: 23.2px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 16px; scroll-margin-top: calc(var(--astra-bar-h, 76px) + 2.25rem); }
.docs-section h3 { font-size: 17.6px; font-weight: 500; margin: 25.6px 0 11.2px; scroll-margin-top: calc(var(--astra-bar-h, 76px) + 2.25rem); color: var(--pg-accent); }
.docs-section p, .docs-section li { font-size: 15.2px; line-height: 1.8; color: rgba(229, 231, 235, 0.78); }
.docs-section ul, .docs-section ol { padding-left: 22.4px; margin: 9.6px 0 16px; }
.docs-section li { margin-bottom: 7.2px; }
.docs-section a, .blog-content a { color: var(--pg-fg); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: rgba(229, 231, 235, 0.4); }
.docs-section a:hover, .blog-content a:hover { text-decoration-color: var(--pg-fg); }
.docs-section strong { color: #fff; }
.docs-section code { background: rgba(229, 231, 235, 0.1); border-radius: 5.6px; padding: 1.6px 6.4px; font-size: 0.85em; font-family: var(--pg-mono); }
.docs-section pre { background: rgba(10, 10, 14, 0.85); border: 1px solid var(--pg-border); border-radius: 12.8px; padding: 16px 19.2px; overflow-x: auto; }
.docs-section pre code { background: none; padding: 0; }
.docs-section table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.4px; background: rgba(0, 0, 0, 0.35); }
.docs-section th, .docs-section td { border: 1px solid var(--pg-border); padding: 8.8px 12.8px; text-align: left; vertical-align: top; }
.docs-section th { color: #fff; background: rgba(229, 231, 235, 0.06); }
/* phones: wide tables scroll inside their own box instead of widening the page */
@media (max-width: 640px) {
  .docs-section table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 13px; }
  .docs-section th, .docs-section td { min-width: 140px; padding: 8px 10px; }
}

.docs-figure {
  margin: 25.6px 0; padding: 12px 12px 10px; border-radius: 18px;
  border: 1px solid rgba(229, 231, 235, 0.14); background: rgba(12, 12, 16, 0.72);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.docs-figure:hover {
  transform: translateY(-3px); border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 28px 56px -12px rgba(128, 82, 255, 0.22);
}
.docs-figure picture, .docs-figure img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--pg-border); }
.docs-figure img { cursor: zoom-in; filter: brightness(0.95) contrast(1.02); transition: filter 0.3s ease; }
.docs-figure:hover img { filter: brightness(1) contrast(1.03); }
.docs-figure figcaption { font-size: 12.8px; opacity: 0.62; margin-top: 10px; text-align: center; }

.astra-lightbox {
  position: fixed; inset: 0; z-index: 1200; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; padding: 28px;
  background: rgba(6, 6, 10, 0.88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  cursor: zoom-out; animation: astra-lb-in 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.astra-lightbox[hidden] { display: none; }
.astra-lightbox img {
  max-width: min(1240px, 92vw); max-height: 82vh; width: auto; height: auto;
  border-radius: 16px; border: 1px solid rgba(167, 139, 250, 0.4);
  box-shadow: 0 40px 90px -16px rgba(0, 0, 0, 0.85);
}
.astra-lightbox p {
  margin: 0; font-family: var(--pg-mono); font-size: 12px; letter-spacing: 0.08em;
  color: rgba(229, 231, 235, 0.72); text-align: center;
}
@keyframes astra-lb-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.docs-callout {
  border: 1px solid var(--pg-border); border-left: 3px solid var(--pg-accent);
  background: var(--pg-glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 16px; padding: 17.6px 22.4px; margin: 19.2px 0;
}
.docs-callout--warn { border-left-color: var(--pg-warn); background: rgba(251, 191, 36, 0.06); }
.docs-callout--tip { border-left-color: var(--pg-ok); background: rgba(52, 211, 153, 0.06); }
.docs-callout p, .docs-callout li { font-size: 14.4px; }

/* docs TOC (sticky ≥1280; <details> below) */
.docs-toc { position: sticky; top: calc(var(--astra-bar-h, 76px) + 1px + 1.5rem); align-self: start; font-size: 12.8px; }
.docs-toc h2 { font-family: var(--pg-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.4; margin: 0 0 14.4px; }
.docs-toc ul { list-style: none; margin: 0; padding: 0 0 16px; border-left: 1px solid var(--pg-border); }
.docs-toc li { margin: 0; }
.docs-toc a { display: block; padding: 4.48px 0 4.48px 14.4px; color: rgba(229, 231, 235, 0.5); text-decoration: none; border-left: 2px solid transparent; margin-left: -1px; }
.docs-toc a:hover { color: var(--pg-fg); }
.docs-toc a.is-active { color: var(--pg-fg); border-left-color: var(--pg-fg); }
.docs-toc a.toc-l3 { padding-left: 28.8px; font-size: 12px; }
@media (max-width: 1279px) { .docs-layout > .docs-toc { display: none; } }
.docs-toc-mobile { margin-bottom: 24px; }
.docs-toc-mobile summary { cursor: pointer; font-family: var(--pg-mono); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(229, 231, 235, 0.7); padding: 12px 16px; border: 1px solid var(--pg-border); border-radius: 14.4px; background: var(--pg-glass); list-style: none; }
.docs-toc-mobile summary::-webkit-details-marker { display: none; }
.docs-toc-mobile[open] summary { border-color: var(--pg-accent); }
.docs-toc-mobile ul { list-style: none; margin: 9.6px 0 0; padding: 9.6px 16px; border: 1px solid var(--pg-border); border-radius: 14.4px; background: rgba(8, 8, 10, 0.9); }
.docs-toc-mobile a { display: block; padding: 4.8px 0; color: rgba(229, 231, 235, 0.7); text-decoration: none; font-size: 13.6px; }
.docs-toc-mobile a.toc-l3 { padding-left: 14.4px; font-size: 12.8px; color: rgba(229, 231, 235, 0.5); }
@media (min-width: 1280px) { .docs-toc-mobile { display: none; } }

/* ---- blog index: featured glass cards (old: 21:9 cover inside the panel, big title) ---- */
.blog-list { display: flex; flex-direction: column; gap: 40px; max-width: 1216px; margin: 0 auto; padding: 0 48px 96px; }
@media (max-width: 640px) { .blog-list { padding: 0 16px 64px; gap: 24px; } }
.blog-feature {
  display: block; padding: 24px; border-radius: 24px; border: 1px solid var(--pg-border);
  background: var(--pg-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.5); color: var(--pg-fg); text-decoration: none;
  transition: opacity 0.7s ease, border-color 0.4s ease, transform 0.4s ease;
}
.blog-feature:hover { border-color: var(--pg-accent); transform: translateY(-4px); }
.blog-feature__cover {
  display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 16px;
  border: 1px solid rgba(229, 231, 235, 0.12);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
}
.blog-feature:hover .blog-feature__cover { transform: scale(1.015); border-color: rgba(167, 139, 250, 0.42); }
.blog-feature__body { padding: 32px 8px 12px; display: flex; flex-direction: column; gap: 16px; }
.blog-feature__meta { font-family: var(--pg-mono); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--pg-muted); }
.blog-feature__title { margin: 0; font-size: 48px; line-height: 1.1; font-weight: 500; letter-spacing: -0.04em; }
.blog-feature__excerpt { margin: 0; max-width: 768px; font-size: 18px; line-height: 1.6; font-weight: 300; opacity: 0.6; }
.blog-feature .astra-gcard__cta { margin-top: 8px; }
.blog-feature:hover .astra-gcard__cta { opacity: 1; color: var(--pg-accent); }
.blog-feature:hover .astra-gcard__cta svg { transform: translateX(8px); }
@media (max-width: 640px) {
  .blog-feature { padding: 14.4px; border-radius: 19.2px; }
  .blog-feature__body { padding: 20px 4px 8px; gap: 12px; }
  .blog-feature__title { font-size: 30.4px; }
  .blog-feature__excerpt { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .blog-feature { transition: none; } .blog-feature:hover { transform: none; } }
.blog-empty { text-align: center; opacity: 0.5; }

/* ---- blog article ---- */
.blog-article { max-width: 800px; margin: 0 auto; padding: 48px 24px 96px; }
.blog-article__header { text-align: center; margin: 0 0 35.2px; display: flex; flex-direction: column; align-items: center; }
.blog-article__header::before { content: ''; display: block; width: 48px; height: 4px; border-radius: 999px; background: var(--pg-accent); opacity: 0.6; margin-bottom: 24px; }
.blog-article__header h1 { font-size: 41.6px; line-height: 1.15; letter-spacing: -0.04em; font-weight: 500; margin: 0 0 14.4px; opacity: 0.92; }
.blog-article__header time { font-family: var(--pg-mono); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--pg-muted); }
.blog-article__cover { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 19.2px; border: 1px solid var(--pg-border); margin: 0 0 40px; display: block; }
@media (max-width: 640px) { .blog-article { padding: 32px 16px 64px; } .blog-article__header h1 { font-size: 30.4px; } }
.blog-content h2 { font-size: 24px; font-weight: 500; margin: 38.4px 0 16px; letter-spacing: -0.02em; }
.blog-content h3 { font-size: 17.6px; font-weight: 500; margin: 28.8px 0 11.2px; color: var(--pg-accent); }
.blog-content p { font-size: 16px; line-height: 1.85; color: rgba(229, 231, 235, 0.8); margin: 0 0 17.6px; }
.blog-content ul, .blog-content ol { padding-left: 22.4px; margin: 0 0 19.2px; }
.blog-content li { font-size: 15.2px; line-height: 1.8; color: rgba(229, 231, 235, 0.8); margin-bottom: 6.4px; }
.blog-content strong { color: #fff; }
.blog-content blockquote { border-left: 3px solid var(--pg-accent); margin: 22.4px 0; padding: 14.4px 19.2px; border-radius: 0 16px 16px 0; background: var(--pg-glass); color: rgba(229, 231, 235, 0.7); }
.blog-content code { background: rgba(229, 231, 235, 0.1); border-radius: 5.6px; padding: 1.6px 6.4px; font-size: 0.85em; font-family: var(--pg-mono); }
.blog-content pre { background: rgba(10, 10, 14, 0.85); border: 1px solid var(--pg-border); border-radius: 12.8px; padding: 16px 19.2px; overflow-x: auto; }
.blog-content pre code { background: none; padding: 0; color: inherit; }
.blog-content hr { border: 0; border-top: 1px solid var(--pg-border); margin: 38.4px 0; }
.blog-content figure { margin: 28.8px 0; }
.blog-content figure img { width: 100%; border-radius: 14.4px; border: 1px solid var(--pg-border); }
.blog-content figcaption { font-size: 12.8px; opacity: 0.55; margin-top: 8px; text-align: center; }
.blog-video { position: relative; aspect-ratio: 16 / 9; border-radius: 14.4px; overflow: hidden; margin: 28.8px 0; }
.blog-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blog-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 40px 0 0; }
.blog-tags span { font-family: var(--pg-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4.8px 12.8px; border-radius: 999px; border: 1px solid var(--pg-border); color: rgba(229, 231, 235, 0.6); }
.blog-back { display: inline-block; margin-top: 40px; }

/* ---- changelog (old: RELEASE | UPDATE OVERVIEW header, version column + glass card, mono fold rows) ---- */
.changelog { max-width: 1120px; margin: 0 auto; padding: 16px 48px 96px; }
.changelog__head { display: grid; grid-template-columns: 200px minmax(0, 1fr); padding: 0 0 24px; margin-bottom: 64px; border-bottom: 1px solid rgba(229, 231, 235, 0.08); font-family: var(--pg-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.4; }
.changelog-list { list-style: none; margin: 0; padding: 0; }
.changelog-item { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); padding: 0 0 64px; }
.changelog-item__dot { position: absolute; left: -100px; top: 9.6px; width: 8px; height: 8px; border-radius: 50%; background: var(--pg-fg); opacity: 0.3; }
.changelog-item:first-child .changelog-item__dot {
  background: #a78bfa; opacity: 1;
  box-shadow: 0 0 0 4px rgba(128, 82, 255, 0.25), 0 0 14px rgba(128, 82, 255, 0.8);
  animation: changelog-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes changelog-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(128, 82, 255, 0.2), 0 0 10px rgba(128, 82, 255, 0.65); }
  50% { box-shadow: 0 0 0 7px rgba(128, 82, 255, 0.35), 0 0 20px rgba(167, 139, 250, 0.95); }
}
.changelog-item__meta { padding-top: 4px; }
.changelog-item__version { display: block; font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
.changelog-item__date { display: block; margin-top: 9.6px; font-family: var(--pg-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.45; }
.changelog-item__card {
  position: relative; border-radius: 16px; border: 1px solid var(--pg-border); background: var(--pg-glass);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.5);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.changelog-item__card:hover { border-color: rgba(229, 231, 235, 0.28); box-shadow: 0 36px 68px -12px rgba(0, 0, 0, 0.62); }
.changelog-item__intro { padding: 40px 40px 36px; }
.changelog-item__badge {
  position: absolute; top: -11.2px; right: 24px; padding: 4.8px 12px; border-radius: 999px;
  border: 1px solid var(--pg-fg); background: #000; color: var(--pg-fg);
  font-family: var(--pg-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
}
.changelog-item__title { margin: 0 0 16px; font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
.changelog-item__desc { margin: 0; font-size: 16px; line-height: 1.7; opacity: 0.5; }
.changelog-item details { border-top: 1px solid rgba(229, 231, 235, 0.1); }
.changelog-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 32px;
  cursor: pointer; list-style: none; font-family: var(--pg-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pg-fg); opacity: 0.55; transition: opacity 0.25s ease, background-color 0.25s ease;
}
.changelog-item summary::-webkit-details-marker { display: none; }
.changelog-item summary:hover, .changelog-item details[open] summary { opacity: 0.9; background: rgba(229, 231, 235, 0.03); }
.changelog-item summary svg { width: 16px; height: 16px; flex: none; transition: transform 0.25s ease; }
.changelog-item details[open] summary svg { transform: rotate(180deg); }
.changelog-item details ul { list-style: none; margin: 0; padding: 4px 32px 24px; }
.changelog-item details[open] ul { animation: changelog-body-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes changelog-body-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.changelog-item details li { position: relative; padding-left: 20px; margin-bottom: 9.6px; font-size: 14.4px; line-height: 1.7; color: rgba(229, 231, 235, 0.72); }
.changelog-item details li::before { content: ''; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; border-radius: 50%; background: var(--pg-accent); }
.changelog-item details[data-kind="fixes"] li::before { background: var(--pg-ok); }
.changelog-item details[data-kind="patches"] li::before { background: var(--pg-warn); }
.changelog-item:last-child { padding-bottom: 0; }
@media (max-width: 1279px) { .changelog-item__dot { display: none; } }
@media (max-width: 767px) {
  .changelog { padding: 8px 16px 64px; }
  .changelog__head { display: none; }
  .changelog-item { grid-template-columns: 1fr; gap: 16px; padding-bottom: 48px; }
  .changelog-item__meta { display: flex; align-items: baseline; gap: 16px; }
  .changelog-item__date { margin-top: 0; }
  .changelog-item__intro { padding: 28px 24px 24px; }
  .changelog-item summary { padding: 14.4px 24px; }
  .changelog-item details ul { padding: 4px 24px 20px; }
}

/* ---- Embedded mode (?embed=1) in workbench iframe ---- */
html.is-embedded,
html.is-embedded body {
  background: var(--pg-bg, #000) !important;
  min-height: 100% !important;
}
html.is-embedded body::before {
  opacity: 0.35 !important;
}
html.is-embedded .astra-page__header,
html.is-embedded .astra-page__footer,
html.is-embedded .cookie-notice,
html.is-embedded .tool-signed-hint {
  display: none !important;
}
html.is-embedded main {
  padding-top: 1.5rem !important;
  padding-bottom: 2rem !important;
}
html.is-embedded .tool-wrap {
  padding-bottom: 48px !important;
}
