/* =====================================================================
   BLOG — library (blog.html) and article template (blog-detail.html)
   Page-specific styles only; tokens, buttons, .eyebrow and the dark
   .page-hero background come from site.css.
   ===================================================================== */
.blib,
.art {
  --b-purple: #7c3aed;
  --b-ink: #12182a;
  --b-ink-2: #4e5870;
  --b-muted: #727b96;
  --b-line: rgba(124, 58, 237, .12);
  --b-line-hover: rgba(124, 58, 237, .28);
  --b-tint: rgba(124, 58, 237, .06);
  --b-ease: cubic-bezier(.22, 1, .36, 1);
  position: relative;
  z-index: 2;
}
/* elements filled in by blog.js stay out of sight until then */
.blib [hidden],
.art [hidden] { display: none !important; }

/* site.css sets body { overflow-x: hidden }, which makes <body> a scroll
   container that never scrolls, so nothing inside can stick. clip trims
   sideways overflow the same way without that side effect (blog pages
   only — this file loads nowhere else; older browsers keep "hidden"). */
body { overflow-x: clip; }

/* =====================================================================
   LIBRARY
   ===================================================================== */
.blib { padding-bottom: 72px; background: #fff; }

/* filter bar: a full-width band between two hairlines */
.blib-bar {
  border-top: 1px solid rgba(18, 24, 42, .08);
  border-bottom: 1px solid rgba(18, 24, 42, .08);
  background: #fff;
}
.blib-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  min-height: 92px;
  padding-block: 18px;
}
.blib-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--b-muted);
}
.blib-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.blib-chip {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(18, 24, 42, .16);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: var(--b-ink);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.blib-chip:hover { border-color: var(--b-line-hover); color: var(--b-purple); }
.blib-chip[aria-pressed="true"] {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(124, 58, 237, .24);
}

.blib-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.blib-select { position: relative; display: inline-flex; }
.blib-select select {
  -webkit-appearance: none;
          appearance: none;
  height: 46px;
  min-width: 210px;
  padding: 0 44px 0 18px;
  border: 1px solid rgba(18, 24, 42, .16);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: var(--b-ink);
  cursor: pointer;
  transition: border-color .18s ease;
}
.blib-select select:hover { border-color: var(--b-line-hover); }
.blib-select svg {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  color: var(--b-ink-2);
  pointer-events: none;
}
.blib-reset {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(18, 24, 42, .16);
  border-radius: 12px;
  background: #fff;
  color: var(--b-ink-2);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, transform .3s var(--b-ease);
}
.blib-reset svg { width: 18px; height: 18px; }
.blib-reset:hover:not(:disabled) { border-color: var(--b-line-hover); color: var(--b-purple); transform: rotate(-60deg); }
.blib-reset:disabled { opacity: .45; cursor: default; }

.blib-chip:focus-visible,
.blib-select select:focus-visible,
.blib-reset:focus-visible,
.bcard-link:focus-visible {
  outline: 2px solid rgba(124, 58, 237, .6);
  outline-offset: 3px;
}

.blib-count { margin: 28px 0 18px; font-size: .9rem; color: var(--b-muted); }

.blib-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blib-empty {
  grid-column: 1 / -1;
  padding: 56px 24px;
  border: 1px dashed var(--b-line-hover);
  border-radius: 18px;
  text-align: center;
  color: var(--b-ink-2);
}
.blib-empty button {
  margin-top: 14px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* ---- card ---- */
.bcard { display: flex; }
.bcard-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(18, 24, 42, .10);
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s var(--b-ease);
}
.bcard-link:hover {
  border-color: var(--b-line-hover);
  box-shadow: 0 18px 40px rgba(72, 48, 125, .10);
  transform: translateY(-3px);
}

/* the image ends in an angled step, as in the reference: the white body
   rises into its lower-left corner */
.bcard-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #efe9ff, #f7f3ff);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 80% 100%, 74% calc(100% - 46px), 0 calc(100% - 46px));
}
/* the whole picture is always shown; its own blurred copy fills the frame */
.bimg-bg {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  filter: blur(22px) saturate(1.2);
  opacity: .85;
}
.bimg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .5s var(--b-ease);
}
.bcard-link:hover .bimg { transform: scale(1.04); }

.bcard-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(14, 12, 28, .78);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.bcard-body {
  flex: 1;
  margin-top: -30px;
  padding: 0 26px 24px;
}
.btag {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border: 1px solid rgba(124, 58, 237, .35);
  border-radius: 999px;
  background: #fff;
  font-size: .8rem;
  font-weight: 600;
  color: #6d28d9;
}
.bcard-body h3 {
  display: -webkit-box;
  margin: 16px 0 0;
  overflow: hidden;
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.015em;
  color: var(--b-ink);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.bcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 26px 20px;
  border-top: 1px solid rgba(18, 24, 42, .08);
}
.bcard-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .98rem;
  font-weight: 600;
  color: var(--b-ink);
  text-decoration: underline;
  text-decoration-color: rgba(18, 24, 42, .35);
  text-underline-offset: 6px;
  transition: color .18s ease, text-decoration-color .18s ease;
}
.bcard-cta svg { width: 17px; height: 17px; transition: transform .22s var(--b-ease); }
.bcard-link:hover .bcard-cta { color: var(--b-purple); text-decoration-color: currentColor; }
.bcard-link:hover .bcard-cta svg { transform: translate(2px, -2px); }
.bcard-date { font-size: .82rem; color: var(--b-muted); white-space: nowrap; }

/* loading placeholders */
.bcard--skel .bcard-link { pointer-events: none; }
.bcard--skel .bcard-media,
.bcard--skel .skel-line {
  background: linear-gradient(90deg, #f3f0fb 0%, #ebe6f8 40%, #f3f0fb 80%);
  background-size: 200% 100%;
  animation: blib-shimmer 1.4s linear infinite;
}
.skel-line { display: block; height: 14px; margin-top: 14px; border-radius: 7px; }
.skel-line--short { width: 38%; height: 26px; margin-top: 0; border-radius: 999px; }
@keyframes blib-shimmer { to { background-position: -200% 0; } }

@media (max-width: 1100px) {
  .blib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .blib-bar-inner { gap: 14px; }
  .blib-label { width: 100%; font-size: .95rem; }
  .blib-chips { flex: none; width: 100%; gap: 8px; }
  .blib-chip { height: 38px; padding: 0 14px; font-size: .9rem; }
  .blib-tools { width: 100%; margin-left: 0; }
  .blib-select { flex: 1; }
  .blib-select select { width: 100%; min-width: 0; }
}
@media (max-width: 640px) {
  .blib-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .bcard-body { padding: 0 20px 20px; }
  .bcard-foot { padding: 16px 20px; }
}

/* =====================================================================
   ARTICLE
   ===================================================================== */

/* reading progress, along the very top of the window */
.art-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 3px;
  pointer-events: none;
}
.art-progress span {
  display: block;
  height: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---- hero: the site's dark page hero, laid out as copy + cover ---- */
.art-hero.page-hero {
  padding: calc(var(--hdr-h, 72px) + 56px) 0 72px;
  text-align: left;
}
.art-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(32px, 4vw, 72px);
}

.art-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: .88rem;
  color: rgba(255, 255, 255, .6);
}
.art-crumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.art-crumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.art-tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(196, 181, 253, .45);
  border-radius: 999px;
  background: rgba(167, 139, 250, .14);
  font-size: .8rem;
  font-weight: 600;
  color: #e4dcff;
  text-decoration: none;
}
.art-tag:hover { background: rgba(167, 139, 250, .24); }

.art-hero h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.03em;
}
.page-hero .art-dek {
  display: -webkit-box;
  max-width: 620px;
  margin: 20px 0 0;
  overflow: hidden;
  font-size: 1.06rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .72);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.art-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}
.art-meta-av {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .12);
}
.art-meta-av img { width: 62%; height: auto; }
.art-meta-tx { display: flex; flex-direction: column; gap: 4px; }
.art-meta-by { font-size: 1.02rem; color: rgba(255, 255, 255, .7); }
.art-meta-by b { font-weight: 600; color: #fff; }
.art-meta-sub { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: rgba(255, 255, 255, .62); }
.art-meta-sub i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .45); }

/* cover: framed with corner brackets and faint guide lines */
.art-cover {
  position: relative;
  margin: 0;
  padding: 10px;
}
.art-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  --c: rgba(216, 204, 255, .75);
  background:
    linear-gradient(var(--c), var(--c)) left top / 16px 1.5px,
    linear-gradient(var(--c), var(--c)) left top / 1.5px 16px,
    linear-gradient(var(--c), var(--c)) right top / 16px 1.5px,
    linear-gradient(var(--c), var(--c)) right top / 1.5px 16px,
    linear-gradient(var(--c), var(--c)) left bottom / 16px 1.5px,
    linear-gradient(var(--c), var(--c)) left bottom / 1.5px 16px,
    linear-gradient(var(--c), var(--c)) right bottom / 16px 1.5px,
    linear-gradient(var(--c), var(--c)) right bottom / 1.5px 16px;
  background-repeat: no-repeat;
}
.art-cover::after {
  content: "";
  position: absolute;
  inset: -40px -60px;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .07), rgba(255, 255, 255, .07)) 0 40px / 100% 1px,
    linear-gradient(rgba(255, 255, 255, .07), rgba(255, 255, 255, .07)) 0 calc(100% - 40px) / 100% 1px,
    linear-gradient(rgba(255, 255, 255, .07), rgba(255, 255, 255, .07)) 60px 0 / 1px 100%,
    linear-gradient(rgba(255, 255, 255, .07), rgba(255, 255, 255, .07)) calc(100% - 60px) 0 / 1px 100%;
  background-repeat: no-repeat;
}
.art-cover-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: #1a1630;
}

/* ---- three-column body ---- */
.art-main { padding: 64px 0 24px; background: #fff; }
.art-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 250px;
  align-items: start;
  gap: 56px;
}
/* the side columns run the full height of the article, so their contents
   have room to stay pinned while the article scrolls */
.art-left,
.art-right { align-self: stretch; }
.art-sticky {
  position: sticky;
  top: calc(var(--hdr-h, 72px) + 28px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.art-side-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--b-muted);
}

/* table of contents: a rail with a dot at the section being read */
.art-toc > summary { list-style: none; cursor: default; }
.art-toc > summary::-webkit-details-marker { display: none; }
.art-toc ol {
  position: relative;
  max-height: min(46vh, 440px);
  margin: 0;
  padding: 2px 0 2px 18px;
  overflow-y: auto;
  list-style: none;
  border-left: 1px solid rgba(18, 24, 42, .12);
  scrollbar-width: thin;
}
.art-toc li + li { margin-top: 2px; }
.art-toc a {
  position: relative;
  display: block;
  padding: 6px 0;
  font-size: .9rem;
  line-height: 1.4;
  color: var(--b-ink-2);
  text-decoration: none;
  transition: color .18s ease;
}
.art-toc a::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 13px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--b-purple);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .16);
  transform: scale(0);
  transition: transform .25s var(--b-ease);
}
.art-toc a:hover { color: var(--b-purple); }
.art-toc a.is-active { color: var(--b-ink); font-weight: 700; }
.art-toc a.is-active::before { transform: scale(1); }

/* small CTA card */
.art-side-cta {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(192, 38, 211, .35), transparent 60%),
    radial-gradient(120% 90% at 0% 100%, rgba(124, 58, 237, .45), transparent 60%),
    #17112e;
  color: #fff;
}
.art-side-cta b { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.art-side-cta p { margin: 8px 0 18px; font-size: .85rem; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.art-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, .7);
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.art-btn svg { width: 15px; height: 15px; }
.art-btn:hover { background: #fff; color: #17112e; }

/* share */
.art-share { display: flex; gap: 8px; }
.art-share a,
.art-share button {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(18, 24, 42, .14);
  border-radius: 10px;
  background: #fff;
  color: var(--b-ink);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.art-share svg { width: 18px; height: 18px; }
.art-share a:hover,
.art-share button:hover { border-color: var(--b-line-hover); color: var(--b-purple); transform: translateY(-2px); }
.art-copied {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--b-ink);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.art-copied.is-on { opacity: 1; transform: translate(-50%, 0); }

/* right column */
.art-card {
  padding: 20px;
  border: 1px solid rgba(18, 24, 42, .10);
  border-radius: 16px;
  background: #fff;
}
.art-author { display: flex; align-items: center; gap: 12px; }
.art-author-av {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(140deg, #f3edff, #fff);
  border: 1px solid var(--b-line);
}
.art-author-av img { width: 60%; height: auto; }
.art-author b { display: block; font-size: 1rem; color: var(--b-ink); }
.art-author span { display: block; margin-top: 2px; font-size: .8rem; line-height: 1.4; color: var(--b-muted); }
.art-topic-list { display: flex; flex-wrap: wrap; gap: 8px; }
.art-topic-list .btag { text-decoration: none; transition: background .18s ease; }
.art-topic-list .btag:hover { background: var(--b-tint); }

/* ---- article typography ---- */
.art-body {
  min-width: 0;
  font-size: 1.09rem;
  line-height: 1.8;
  color: #2b3245;
}
.art-body > :first-child { margin-top: 0; }
.art-body p { margin: 0 0 1.15em; }
.art-body h1,
.art-body h2 {
  margin: 2.1em 0 .6em;
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--b-ink);
}
.art-body h3 {
  margin: 1.8em 0 .5em;
  font-size: clamp(1.18rem, 1.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.012em;
  color: var(--b-ink);
}
.art-body h4 { margin: 1.6em 0 .4em; font-size: 1.1rem; font-weight: 700; color: var(--b-ink); }
.art-body h1,
.art-body h2,
.art-body h3,
.art-body h4 { scroll-margin-top: calc(var(--hdr-h, 72px) + 28px); }
.art-body strong, .art-body b { color: var(--b-ink); }
.art-body a { color: var(--b-purple); text-decoration: underline; text-underline-offset: 3px; }
.art-body ul,
.art-body ol { margin: 0 0 1.3em; padding-left: 1.4em; }
/* the site resets list markers globally; articles need them back */
.art-body ul { list-style: disc; }
.art-body ol { list-style: decimal; }
.art-body ul ul { list-style: circle; }
/* lists rebuilt from one-line paragraphs: a little tighter */
.art-body .art-list li { margin: .25em 0; }
.art-body li { margin: .35em 0; padding-left: .2em; }
.art-body li::marker { color: var(--b-purple); font-weight: 700; }
.art-body blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 3px solid var(--b-purple);
  border-radius: 0 12px 12px 0;
  background: #f7f3ff;
  color: var(--b-ink);
}
.art-body blockquote p:last-child { margin-bottom: 0; }
.art-body img { max-width: 100%; height: auto; margin: 1.4em 0; border-radius: 14px; }
.art-body hr { margin: 2.4em 0; border: 0; border-top: 1px solid rgba(18, 24, 42, .1); }
.art-body code {
  padding: .15em .4em;
  border-radius: 6px;
  background: #f3effc;
  font-size: .9em;
}
.art-body pre {
  margin: 1.4em 0;
  padding: 18px 20px;
  overflow-x: auto;
  border-radius: 12px;
  background: #15122a;
  color: #e9e5ff;
  font-size: .9rem;
  line-height: 1.6;
}
.art-body pre code { padding: 0; background: none; }
.art-table { margin: 1.4em 0; overflow-x: auto; }
.art-body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.art-body th,
.art-body td { padding: 10px 14px; border: 1px solid rgba(18, 24, 42, .1); text-align: left; }
.art-body th { background: #f7f3ff; color: var(--b-ink); }

/* closing CTA under the article */
.art-end {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  padding: 32px;
  border-radius: 18px;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(192, 38, 211, .35), transparent 60%),
    radial-gradient(70% 120% at 0% 100%, rgba(124, 58, 237, .45), transparent 60%),
    #17112e;
  color: #fff;
}
.art-end b { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.art-end p { margin: 10px 0 22px; color: rgba(255, 255, 255, .72); }

/* ---- keep reading ---- */
.art-more { padding: 72px 0 80px; background: linear-gradient(180deg, #faf8ff, #fff); }
.art-more-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.art-more-head h2 {
  margin: 12px 0 0;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--b-ink);
}
.art-more-head > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--b-ink);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: rgba(18, 24, 42, .35);
}
.art-more-head > a:hover { color: var(--b-purple); }
.art-more-head > a svg { width: 16px; height: 16px; }

.art .art-btn:focus-visible,
.art-share :focus-visible,
.art-toc a:focus-visible,
.art-tag:focus-visible {
  outline: 2px solid rgba(124, 58, 237, .6);
  outline-offset: 3px;
}

/* ---- responsive ---- */
@media (max-width: 1199px) {
  .art-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 44px; }
  .art-right { grid-column: 2; }
  .art-right .art-sticky { position: static; }
  .art-side-cta { display: none; }          /* the closing CTA covers it */
}
@media (max-width: 1000px) {
  .art-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .art-cover { max-width: 640px; }
  .art-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .art-right { grid-column: auto; }
  .art-sticky { position: static; }
  .art-toc {
    padding: 16px 18px;
    border: 1px solid rgba(18, 24, 42, .1);
    border-radius: 14px;
  }
  .art-toc > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
  }
  .art-toc > summary .art-side-label { margin: 0; }
  .art-toc > summary::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--b-ink-2);
    border-bottom: 2px solid var(--b-ink-2);
    transform: rotate(45deg) translateY(-3px);
    transition: transform .2s ease;
  }
  .art-toc[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
  .art-toc[open] ol { margin-top: 12px; }
}
@media (max-width: 640px) {
  .art-hero.page-hero { padding: calc(var(--hdr-h, 64px) + 36px) 0 48px; }
  .art-main { padding-top: 40px; }
  .art-body { font-size: 1.02rem; }
  .art-end { padding: 24px; }
  .art-end b { font-size: 1.25rem; }
  .art-more { padding: 52px 0 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .blib-chip, .blib-reset, .bcard-link, .bimg, .bcard-cta svg,
  .art-toc a::before, .art-share a, .art-share button { transition: none; }
  .bcard-link:hover, .bcard-link:hover .bimg { transform: none; }
  .bcard--skel .bcard-media, .bcard--skel .skel-line { animation: none; }
}
