/* The site's own stylesheet.
 *
 * Everything else under static/ came out of the Astro build and is a vendored
 * artifact: hashed filenames, no source, not ours to edit. This file is the
 * opposite — hand-written, for the few things that belong to a page's content
 * rather than to a widget.
 *
 * It is not fingerprinted, so it is served with the default cache policy
 * (revalidated) rather than the year-long immutable one _astro gets. Keep it
 * small enough that this stays true.
 *
 * The custom properties come from Base.css, so a theme change carries.
 */

/* A short standing notice under a widget — the kind of instruction that has to
 * be on the page whatever state the widget happens to be in. */
.sz-note {
  max-width: 560px;
  margin: 16px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* The variant for something the reader loses money by ignoring. */
.sz-note-warn {
  border-color: var(--color-warn);
  background: var(--color-warn-bg);
}
.sz-note-warn strong { color: var(--color-warn); font-weight: 600; }

/* Article share bar. The markup and the base rules come from the Astro build
 * (partials/share.html, FAQPageSchema.css), but that design squeezed the "Copy"
 * label into a 32px square. This restyles the desktop row as one quiet panel:
 * label on the left, pill buttons on the right, the copy button wide enough for
 * its label. Selectors repeat the scope attribute because site.css loads before
 * the bundle and has to win on specificity, not order. */
.blog-share[data-astro-cid-xiyysuza][data-astro-cid-xiyysuza] {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 40px 0 0;
  padding: 14px 16px 14px 20px;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}
.blog-share[data-astro-cid-xiyysuza] .share-label[data-astro-cid-xiyysuza] {
  margin: 0 auto 0 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.blog-share[data-astro-cid-xiyysuza] .share-btn[data-astro-cid-xiyysuza] {
  width: auto;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  gap: 8px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border-muted);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.blog-share[data-astro-cid-xiyysuza] .share-btn[data-astro-cid-xiyysuza] svg { flex: none; }
.blog-share[data-astro-cid-xiyysuza] .share-btn[data-astro-cid-xiyysuza]:hover {
  color: var(--accent-mid);
  border-color: var(--accent-strong);
  background: var(--accent-dim);
}
.blog-share[data-astro-cid-xiyysuza] .share-btn[data-astro-cid-xiyysuza]:focus-visible {
  outline: 2px solid var(--accent-mid);
  outline-offset: 2px;
}
.blog-share[data-astro-cid-xiyysuza] .share-btn[data-astro-cid-xiyysuza].copied {
  color: var(--accent-mid);
  border-color: var(--accent-strong);
  background: var(--accent-dim);
}
.blog-share[data-astro-cid-xiyysuza] [data-share-copy][data-astro-cid-xiyysuza] { padding: 0 16px 0 14px; }
@media (max-width: 768px) {
  .blog-share[data-astro-cid-xiyysuza][data-astro-cid-xiyysuza] { display: none; }
}
/* On phones the share bar slides up from the bottom edge once the reader has
 * scrolled; the feedback-chat bubble (fixed, bottom-right, from /fchat/widget.js)
 * would sit on top of its "copy" button, so it steps up while the bar is out. */
@media (max-width: 768px) {
  .fbc-root { transition: bottom .2s ease; }
  body:has(.blog-share-mobile.visible) .fbc-root {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
}

/* Article table of contents (post.html, scope ymbpksfa). The old engine shipped
 * these rules as an inline <style> on every post; the fragment conversion kept
 * the markup and dropped the style, so the list rendered as bare text. The
 * rules are the old ones, with the visible border the panel needs on this
 * background. */
.blog-toc[data-astro-cid-ymbpksfa] {
  margin: 0 0 32px;
  padding: 18px 22px;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}
.blog-toc[data-astro-cid-ymbpksfa] h2[data-astro-cid-ymbpksfa] {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.blog-toc[data-astro-cid-ymbpksfa] ol[data-astro-cid-ymbpksfa] {
  margin: 0;
  padding-left: 20px;
  list-style: decimal;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.blog-toc[data-astro-cid-ymbpksfa] li[data-astro-cid-ymbpksfa] { margin-bottom: 6px; }
.blog-toc[data-astro-cid-ymbpksfa] li[data-astro-cid-ymbpksfa]:last-child { margin-bottom: 0; }
.blog-toc[data-astro-cid-ymbpksfa] a[data-astro-cid-ymbpksfa] {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .12s;
}
.blog-toc[data-astro-cid-ymbpksfa] a[data-astro-cid-ymbpksfa]:hover { color: var(--accent-mid); }
