:root {
  --ds-color-home-dark-01: #0a0a0a; --ds-color-home-dark-02: #1a1a1a; --ds-color-home-dark-03: #3b3f45;
  --ds-color-home-grey-01: #7d8187; --ds-color-home-grey-02: #a9b2bc; --ds-color-home-grey-03: #dadbdf; --ds-color-home-grey-04: #e9e9ec; --ds-color-home-bg-01: #f7f7f7;
  --ink: var(--ds-color-home-dark-01); --text: var(--ds-color-home-dark-02); --muted: var(--ds-color-home-grey-01); --faint: var(--ds-color-home-grey-02); --line: var(--ds-color-home-grey-04); --chip: var(--ds-color-home-bg-01);
  --accent: #e58a50; --brand: #3f59ff; --dark: #0a0a0a; --ease: cubic-bezier(.2, .75, .3, 1);
  --nav-clear: 100px;
  --xs-font-family: "PingFang SC", "PingFang SC Regular", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; color: var(--ink); background: #fff; font-family: var(--xs-font-family); font-size: 14px; line-height: 1.7; font-synthesis: none; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
button, input { font: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #4275ff; outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.xs-container { max-width: 1280px; width: calc(100% - 96px); margin: 0 auto; }
.xs-skip-link { position: fixed; top: -100px; left: 20px; z-index: 9999; background: #fff; padding: 10px 16px; border: 2px solid var(--brand); }
.xs-skip-link:focus { top: 20px; }
.xs-muted { color: var(--muted); }
.xs-page-top { height: var(--nav-clear); }

/* Covers: real thumbnail, or generated dark art when none */
.xs-cover-image, .xs-cover-art { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.xs-featured__main:hover .xs-cover-image, .xs-featured__main:hover .xs-cover-art,
.xs-post-card:hover .xs-cover-image, .xs-post-card:hover .xs-cover-art { transform: scale(1.04); }
.xs-cover-art { display: flex; flex-direction: column; justify-content: space-between; padding: 8% 7%; background: radial-gradient(ellipse at 70% 92%, #6a4a2a 0, transparent 60%), linear-gradient(138deg, #1b1c22, #0c0d0f); color: #c1c4cc; position: relative; overflow: hidden; container-type: inline-size; }
.xs-cover-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(50% - .5px), #ffffff0d 50%, transparent calc(50% + .5px)), linear-gradient(0deg, transparent calc(50% - .5px), #ffffff0d 50%, transparent calc(50% + .5px)); background-size: 36px 36px; }
.xs-cover-art > * { position: relative; }
.xs-cover-art span { font-size: 9px; letter-spacing: 2px; color: #85888f; text-transform: uppercase; }
.xs-cover-art strong { font-size: clamp(16px, 11cqi, 40px); font-weight: 500; color: #e7e9ed; line-height: 1.3; }

/* Chip + meta */
.xs-chip { align-self: flex-start; display: inline-flex; align-items: center; min-height: 32px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--chip); color: var(--ds-color-home-dark-03); font-size: 12px; line-height: 1; max-width: 100%; overflow-wrap: anywhere; transition: border-color .2s, color .2s; }
.xs-chip:hover { color: var(--ink); border-color: #d6d7da; }
.xs-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--ds-color-home-grey-02); font-size: 13px; line-height: 1; }
.xs-meta__author { color: inherit; }
.xs-meta__separator { flex: 0 0 3px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.xs-icon { display: block; flex: none; width: 16px; height: 16px; }

/* Dark hero: featured + 4 hot titles */
.xs-hero { background: var(--dark); color: #c9cbd0; padding: clamp(150px, 11vw, 212px) 0 104px; }
.xs-hero__layout { display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 500px); gap: 80px; align-items: start; }
.xs-featured__main { display: flex; flex-direction: column; min-width: 0; }
.xs-featured__cover { display: block; height: 415px; border-radius: 20px; overflow: hidden; margin-bottom: 24px; background: #141518; border: 1px solid #ffffff12; }
.xs-featured__title { font-size: 28px; font-weight: 600; line-height: 1.5; margin: 0 0 20px; }
.xs-featured__title a { color: #fff; }
.xs-featured__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.xs-featured__excerpt { font-size: 16px; line-height: 1.5; color: var(--ds-color-home-grey-04); margin: 0 0 20px; }
.xs-featured__main .xs-meta, .xs-popular .xs-meta { color: var(--ds-color-home-grey-02); }
.xs-featured__main .xs-meta__author, .xs-popular .xs-meta__author { color: inherit; }
.xs-popular { min-width: 0; }
.xs-popular h2 { font-size: 28px; font-weight: 600; line-height: 1.2; color: #fff; margin: 0 0 28px; }
.xs-popular__item { display: flex; flex-direction: column; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--ds-color-home-dark-02); }
.xs-popular__item:first-of-type { padding-top: 0; }
.xs-popular__item:last-child { padding-bottom: 0; border-bottom: 0; }
.xs-popular__item .xs-chip { height: 30px; min-height: 30px; padding-block: 0; background: var(--ds-color-home-dark-02); border-color: var(--ds-color-home-dark-03); color: var(--ds-color-home-grey-03); }
.xs-popular__item .xs-chip:hover { color: #fff; border-color: #ffffff4d; }
.xs-popular__item h3 { font-size: 20px; font-weight: 600; line-height: 1.5; margin: 0; }
.xs-popular__item h3 a { color: #fff; }
.xs-popular__item h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* White library: one-column list + right category rail */
.xs-library { position: relative; background: #fff; padding: 110px 0 180px; }
.xs-library__status { position: absolute; top: 16px; left: max(24px, calc((100% - 1280px) / 2)); margin: 0; color: var(--muted); font-size: 13px; }
.xs-library.is-loading, .xs-library.is-loading a, .xs-library.is-loading button { cursor: progress; }
.xs-hero + .xs-library { padding-top: 110px; }
.xs-library__layout { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: clamp(48px, 8.33vw, 160px); align-items: start; }
.xs-library__main { min-width: 0; }
.xs-library__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.xs-library__title { font-size: 28px; font-weight: 600; line-height: normal; margin: 0; }
.xs-library__summary { color: var(--muted); font-size: 12px; margin: 22px 0 0; }
.xs-library__summary strong { color: var(--ink); font-weight: 600; }
.xs-library__aside { position: sticky; top: 110px; min-width: 0; }

.xs-search { position: relative; display: inline-flex; width: 280px; height: 40px; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .2s; }
.xs-search:hover, .xs-search:focus-within { border-color: #555; }
.xs-search button { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 100%; flex: none; padding: 0; color: var(--muted); transition: color .2s; }
.xs-search button:hover, .xs-search:focus-within button { color: var(--ink); }
.xs-search input { min-width: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: var(--ink); font-size: 14px; }
.xs-search input:focus { outline: 0; }
.xs-search input::placeholder { color: var(--muted); opacity: 1; }
.xs-search__icon { display: block; width: 18px; height: 18px; }
.xs-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.xs-search .xs-search__clear { width: 28px; height: 28px; border-radius: 6px; }
.xs-search .xs-search__clear[hidden] { display: none; }
.xs-search__clear img { width: 20px; height: 20px; }
.xs-search__clear:hover { background: var(--chip); }

.xs-categories { display: flex; flex-direction: column; gap: 8px; }
.xs-categories__item { display: flex; align-items: center; gap: 4px; min-height: 49px; padding: 12px 20px; border-radius: 12px; font-size: 16px; line-height: 1.59; color: var(--ds-color-home-dark-03); transition: background .2s, color .2s; }
.xs-categories__item:hover, .xs-categories__item:focus-visible { background: #fafafa; color: var(--ink); }
.xs-categories__item.is-active, .xs-categories__item.is-active:hover { background: var(--chip); color: var(--ink); font-weight: 600; }
.xs-categories__count { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.xs-categories__item.is-active .xs-categories__count { color: var(--ds-color-home-dark-03); font-weight: 400; }

/* List: one article per row — cover left, text right, hairline between rows (design) */
.xs-list { display: flex; flex-direction: column; margin-top: 36px; }
.xs-post-card { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; align-items: center; min-width: 0; padding: 36px 0; border-bottom: 1px solid var(--line); }
/* The list already supplies the 36px gap below the heading; do not double it on the first card. */
.xs-list > .xs-post-card:first-child { padding-top: 0; }
.xs-post-card__cover { display: block; aspect-ratio: 27 / 16; border-radius: 16px; overflow: hidden; background: #141518; }
.xs-post-card__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; height: 148px; }
.xs-post-card__body > .xs-chip { margin-bottom: 8px; }
.xs-post-card .xs-meta { color: var(--muted); }
.xs-post-card h2, .xs-post-card h3 { font-size: 20px; font-weight: 600; line-height: 1.5; margin: 0; }
.xs-post-card h2 a, .xs-post-card h3 a { color: var(--ink); }
.xs-post-card h2 a:hover, .xs-post-card h3 a:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.xs-post-card p { color: var(--text); font-size: 14px; line-height: 1.5; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Native stretched links support keyboard, open-in-new-tab and non-JS browsing.
   Category links sit above the article link and keep their own destination. */
.xs-featured__main, .xs-popular__item, .xs-post-card { position: relative; isolation: isolate; }
.xs-featured__title a::after, .xs-popular__item h3 a::after,
.xs-post-card h2 a::after, .xs-post-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.xs-featured__title a:focus-visible::after, .xs-popular__item h3 a:focus-visible::after,
.xs-post-card h2 a:focus-visible::after, .xs-post-card h3 a:focus-visible::after { outline: 2px solid #4275ff; outline-offset: 3px; border-radius: 8px; }
.xs-popular__item > .xs-chip, .xs-post-card .xs-chip { position: relative; z-index: 2; }

.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 6px; border: 1px solid var(--line); border-radius: 8px; color: var(--ds-color-home-dark-03); font-size: 14px; line-height: 1; transition: background .2s, color .2s; }
.pagination a.page-numbers:hover { background: var(--chip); color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); border-color: transparent; color: #fff; }
.pagination .prev, .pagination .next { width: 30px; min-width: 30px; padding: 0; border-color: transparent; color: var(--ds-color-home-dark-03); }
.pagination .prev:hover, .pagination .next:hover { background: transparent; }
.pagination .xs-pagination-icon { display: block; width: 30px; height: 30px; }
.pagination .xs-icon { display: none; }
.pagination .dots { width: 30px; min-width: 30px; padding: 0; border-color: transparent; background: url("pagination-dots.svg") center / 30px 30px no-repeat; font-size: 0; line-height: 0; cursor: default; }

.xs-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 96px 20px; color: var(--muted); }
.xs-empty__icon { display: flex; width: 80px; height: 80px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink); margin-bottom: 20px; }
.xs-empty__icon svg { display: block; }
.xs-empty h2 { font-size: 20px; font-weight: 600; line-height: 1; color: var(--ink); margin: 0 0 12px; }
.xs-empty p { font-size: 13px; margin: 0; }


/* Single article */
.xs-single { padding: 120px 0 100px; max-width: 1200px; }
.xs-back { display: flex; width: fit-content; align-items: center; gap: 0; color: var(--ds-color-home-dark-03); font-size: 14px; line-height: 1; margin-bottom: 20px; }
.xs-back:hover { color: var(--ink); }
.xs-back__icon { flex: none; width: 20px; height: 20px; }
.xs-article__header { margin: 0 0 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.xs-article__header h1 { font-size: 32px; font-weight: 600; line-height: normal; margin: 0 0 20px; }
.xs-article__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.xs-article__meta .xs-chip { min-height: 32px; font-size: 14px; }
.xs-article__meta .xs-meta { color: var(--ds-color-home-dark-03); font-size: 14px; }
.xs-article__meta .xs-meta__author { color: var(--text); font-weight: 500; }
.xs-article-layout { display: grid; grid-template-columns: minmax(0, 780px) minmax(0, 280px); gap: clamp(48px, 7.3vw, 140px); align-items: stretch; }
.xs-article-column, .xs-article { min-width: 0; }
.xs-article__cover { width: 100%; max-width: 700px; height: auto; aspect-ratio: 7 / 4; border-radius: 20px; margin-bottom: 32px; object-fit: cover; }
.xs-prose { color: var(--text); font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
.xs-prose > * { margin: 0 0 20px; }
.xs-prose > *:last-child { margin-bottom: 0; }
.xs-prose h2, .xs-prose h3 { color: var(--ink); font-weight: 600; line-height: 2; margin-top: 0; }
.xs-prose h2 { font-size: 24px; padding-bottom: 0; }
.xs-prose h3 { font-size: 18px; }
.xs-prose a { color: var(--brand); text-decoration: underline; }
.xs-prose a:hover { color: var(--accent); }
.xs-prose code { padding: 2px 6px; border-radius: 3px; background: var(--chip); color: #c44300; font-size: 0.9em; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.xs-prose pre { padding: 20px; border-radius: 8px; background: #1e222e; color: #d4d7dd; font-size: 13px; line-height: 1.7; overflow-x: auto; }
.xs-prose pre code { padding: 0; border-radius: 0; background: transparent; color: inherit; font-size: inherit; }
.xs-prose ul, .xs-prose ol { padding-left: 24px; }
.xs-prose li { margin-bottom: 10px; }
.xs-prose blockquote { padding: 20px 24px; border-left: 3px solid #ff6308; background: #ffFBFA; color: var(--text); font-style: normal; }
.xs-prose img { border-radius: 8px; }
.xs-prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.xs-prose th, .xs-prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.xs-prose th { background: var(--chip); font-weight: 600; }

.xs-adjacent { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 0 0; margin-top: 32px; border-top: 1px solid var(--line); font-size: 14px; }
.xs-adjacent__prev, .xs-adjacent__next { display: inline-flex; align-items: center; gap: 0; color: var(--ink); }
.xs-adjacent__icon { display: block; width: 30px; height: 30px; flex: none; background-color: currentColor; }
.xs-adjacent__prev .xs-adjacent__icon { -webkit-mask: url("pagination-prev.svg") center / 30px 30px no-repeat; mask: url("pagination-prev.svg") center / 30px 30px no-repeat; }
.xs-adjacent__next .xs-adjacent__icon { -webkit-mask: url("pagination-next.svg") center / 30px 30px no-repeat; mask: url("pagination-next.svg") center / 30px 30px no-repeat; }
.xs-adjacent a:hover { color: var(--ink); }
.xs-adjacent .is-disabled { color: var(--faint); cursor: not-allowed; }

.xs-reading-sidebar { min-width: 0; position: relative; --xs-reading-offset: 110px; }
.xs-reading-sidebar__sticky { position: sticky; top: var(--xs-reading-offset); display: flex; flex-direction: column; gap: 24px; height: var(--xs-reading-space, calc(100dvh - 142px)); }
.xs-reading-toc { display: flex; flex-direction: column; min-height: 0; gap: 20px; padding: 0; }
.xs-reading-toc strong { display: block; flex: none; color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.59; margin: 0; }
.xs-reading-toc ol { padding: 0; margin: 0; list-style: none; }
.xs-reading-toc li { margin: 0; }
.xs-reading-toc ol { border-left: 1px solid var(--line); min-height: 0; max-height: min(34vh, 300px); overflow-y: auto; }
.xs-reading-toc a { display: block; margin-left: -1px; padding: 8px 0 8px 12px; border-left: 2px solid transparent; color: var(--ds-color-home-dark-03); font-size: 14px; line-height: 1.59; transition: color .2s, border-color .2s; }
.xs-reading-toc a.is-active { color: var(--ink); border-left-color: #ff6308; }
.xs-reading-toc a:hover { color: #ff6308; }
.xs-reading-toc .toc-level-2 { padding-left: 0; }
.xs-reading-toc .toc-level-3 { padding-left: 14px; color: var(--muted); font-size: 11px; }

.xs-reading-cta { position: relative; flex: none; width: 100%; height: 180px; margin-top: auto; padding: 24px 20px; border: 1px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, rgba(63, 89, 255, 0.5) 0%, rgba(66, 117, 255, 1) 50%, rgba(255, 122, 23, 0.5) 100%) border-box; border-radius: 24px; color: var(--ds-color-home-dark-03); box-shadow: none; overflow: hidden; }
.xs-reading-cta::before { content: ""; position: absolute; pointer-events: none; top: -32.82px; left: -27.15px; width: 486.64px; height: 57.47px; background: url("cta-glow.svg") center / 486.64px 57.47px no-repeat; }
.xs-reading-cta h2 { font-size: 16px; font-weight: 500; line-height: normal; color: var(--ink); margin: 0 0 8px; }
.xs-reading-cta p { font-size: 13px; line-height: 1.6; margin: 0 0 20px; }
.xs-reading-cta a { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 40px; border: 1px solid var(--ds-color-home-dark-03); border-radius: 100px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 400; transition: background .2s; }
.xs-reading-cta a:hover { background: #3b3f45; }

.xs-related { margin-top: 110px; }
.xs-related > h2 { font-size: 28px; font-weight: 600; line-height: normal; margin: 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.xs-related__grid { margin-top: 0; }
.xs-related .xs-post-card { grid-template-columns: 270px minmax(0, 1fr); }

/* Bottom gradient CTA band */
.xs-cta { position: relative; isolation: isolate; height: 550px; padding: 240px 0 0; background: #fff; color: #fff; text-align: center; overflow: hidden; }
.xs-cta__glow { position: absolute; inset: 0; pointer-events: none; transform: translateY(0); opacity: 1; transition: transform 1.4s ease-in-out, opacity 1.4s ease-in-out; }
.xs-cta--waiting .xs-cta__glow { transform: translateY(150px); opacity: .55; }
.xs-cta__ellipse { position: absolute; top: 21px; left: calc(50% - 2208px); width: 4416px; height: 850px; max-width: none; }
.xs-cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.xs-cta h2 { font-size: 48px; font-weight: 500; line-height: normal; background: linear-gradient(180deg, #ecf4ff, var(--ds-color-home-grey-02)); background-clip: text; -webkit-background-clip: text; color: transparent; margin: 0 0 12px; }
.xs-cta p { font-size: 18px; line-height: 30px; letter-spacing: 1px; color: var(--chip); margin: 0 0 40px; }
.xs-cta__button { position: relative; display: inline-flex; flex: none; width: 172px; height: 64px; border-radius: 100px; font-size: 16px; line-height: 1; --btn-halo-right: 12px; --xs-glow-x: 79px; --xs-glow-left: 0; --xs-glow-right: 1; }
.xs-cta__pill { position: absolute; inset: 8px 12px 8px 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; padding: 12px 32px; border: 1px solid #ffffff80; border-radius: 100px; background: var(--ds-color-home-grey-03); box-shadow: inset 5px 5px 10px #fff; color: #4a1b04; white-space: nowrap; }
.xs-glow-halo {
  position: absolute;
  top: calc(var(--btn-halo-top, 8px) - 4.5px);
  right: calc(var(--btn-halo-right, 8px) - 4.5px);
  bottom: calc(var(--btn-halo-bottom, 8px) - 4.5px);
  left: calc(var(--btn-halo-left, 8px) - 4.5px);
  border-radius: 100px;
  pointer-events: none;
}

.xs-glow-halo--right {
  transform: scaleX(-1);
}


.xs-glow-halo__blur {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 3px solid transparent;
  border-radius: 100px;
}

.xs-glow-halo__blur::before,
.xs-glow-halo__blur::after {
  position: absolute;
  box-sizing: content-box;
  width: 100%;
  height: 100%;
  border-radius: 100px;
  border-style: solid;
  border-color: transparent;
  background:
    linear-gradient(transparent, transparent) padding-box,
    var(--halo-grad) border-box;
  content: "";
  pointer-events: none;
}


.xs-glow-halo__blur::before {
  top: -2px;
  left: -2px;
  border-width: 2px;
  --halo-grad: linear-gradient(
    97.68deg,
    rgba(255, 177, 153, 0) 38.1%,
    rgba(255, 177, 153, 0.2) 82.47%,
    #ff7950 93.3%
  );
  filter: blur(2px);
}


.xs-glow-halo__blur::after {
  top: -3px;
  left: -3px;
  border-width: 3px;
  --halo-grad: linear-gradient(
    91.88deg,
    rgba(255, 137, 100, 0.2) 46.45%,
    #cd3100 98.59%
  );
  filter: blur(15px);
}


.xs-glow-halo__light {
  position: absolute;
  top: 3px;
  right: 3px;
  bottom: 3px;
  left: 3px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 100px;
  background:
    linear-gradient(transparent, transparent) padding-box,
    linear-gradient(
        103.7deg,
        rgba(255, 99, 8, 0.1) 38.66%,
        rgba(255, 99, 8, 0.1) 68.55%,
        #ff6308 85.01%,
        #fff 92.12%
      )
      border-box;
}

.xs-glow-halo__light::before {
  position: absolute;
  top: -2px;
  left: -2px;
  box-sizing: content-box;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-radius: 100px;
  background:
    linear-gradient(transparent, transparent) padding-box,
    linear-gradient(
        91.96deg,
        rgba(255, 177, 153, 0) 6.11%,
        rgba(255, 177, 153, 0.2) 53.57%,
        #ff7950 93.6%
      )
      border-box;
  filter: blur(7px);
  content: "";
  pointer-events: none;
}


.xs-glow-spot {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  display: flex;
  width: 204px;
  height: 102px;
  align-items: center;
  justify-content: center;
  margin: -51px 0 0 -102px;
  pointer-events: none;
}


.xs-glow-spot__core {
  position: absolute;
  top: 50%;
  display: block;
  width: 121px;
  height: 121px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(
    50% 50% at 50% 50%,
    #fffff5 3.5%,
    #ffaa81 26.5%,
    #ffda9f 37.5%,
    rgba(255, 170, 129, 0.5) 49%,
    rgba(210, 106, 58, 0) 92.5%
  );
}


.xs-glow-spot__halo {
  position: absolute;
  top: 50%;
  display: block;
  width: 204px;
  height: 103px;
  transform: translateY(-50%);
  background: radial-gradient(
    43.3% 44.23% at 50% 49.51%,
    #fffff7 29%,
    #fffacd 48.5%,
    #f4d2bf 60.71%,
    rgba(214, 211, 210, 0) 100%
  );
  filter: blur(5px);
}


.xs-cta__pill > *:not(.xs-glow-spot) {
  position: relative;
  z-index: 1;
}


.xs-glow-halo--left { opacity: var(--xs-glow-right); }
.xs-glow-halo--right { opacity: var(--xs-glow-left); }
.xs-glow-spot { transform: translateX(var(--xs-glow-x)); transition: transform 100ms linear; }
.xs-glow-halo { transition: opacity 100ms linear; }

/* Footer */
.xs-footer { display: flex; flex-direction: column; gap: 80px; background: var(--dark); color: #ffffff99; padding: 40px 0 0; font-size: 14px; line-height: 1.7; }
.xs-footer > .xs-container { display: flex; flex-direction: column; gap: 80px; }
.xs-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0; }
.xs-footer__brand { display: flex; width: 400px; flex: none; flex-direction: column; gap: 24px; }
.xs-footer__logo { display: block; width: 132px; }
.xs-footer__brand p { margin: 0; font-size: 13px; line-height: 1.5; }
.xs-footer__socials { display: flex; align-items: center; gap: 12px; }
.xs-social { display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #312e2e; transition: border-color .2s, background .2s; }
.xs-social:hover { border-color: #ffffff4d; background: #ffffff0a; }
.xs-social--docs img { filter: brightness(0) invert(1); }
.xs-social img { display: block; width: 24px; height: 24px; }
.xs-footer__email { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; line-height: normal; }
.xs-footer__email img { width: 20px; height: 20px; }

.xs-footer__cols { display: grid; width: 736px; flex: none; grid-template-columns: repeat(4, 160px); gap: 32px; line-height: normal; }
.xs-footer__cols > div { display: flex; flex-direction: column; gap: 14px; }
.xs-footer__cols h2 { font-size: 14px; font-weight: 500; line-height: normal; color: #fff; margin: 0 0 10px; }
.xs-footer__cols a, .xs-footer__cols button { color: inherit; text-decoration: none; text-align: left; transition: color .2s; }
.xs-footer__cols a:hover, .xs-footer__cols button:hover { color: #fff; }
.xs-footer__button { padding: 0; font: inherit; cursor: pointer; }

.xs-footer__bottom { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 0; border-top: 1px solid #ffffff14; text-align: center; color: rgba(255, 255, 255, 0.4); font-size: 13px; line-height: normal; }
.xs-footer__bottom p { margin: 0; }
.xs-footer__bottom > div { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.xs-footer__bottom a { color: inherit; }
.xs-footer__bottom a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; }
.xs-police { display: inline-flex; align-items: center; gap: 6px; }
.xs-police img { width: 14px; height: 14px; }

.xs-backtop { position: fixed; right: 32px; bottom: 32px; width: 48px; height: 48px; border-radius: 50%; background: var(--dark); color: #fff; font-size: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); opacity: 0; pointer-events: none; transition: opacity .3s, transform .2s; }
.xs-backtop.is-visible { opacity: 1; pointer-events: auto; }
.xs-backtop:hover { transform: translateY(-4px); }

/* Breadcrumb, 404, page */
.xs-breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.xs-breadcrumb a { color: inherit; }
.xs-breadcrumb a:hover { color: var(--accent); }

.xs-page-shell { padding: var(--nav-clear) 0 80px; max-width: 900px; }
.xs-not-found { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 80px; }
.xs-kicker { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.xs-not-found h1 { font-size: 32px; font-weight: 600; margin: 0 0 14px; }
.xs-not-found p { color: var(--text); font-size: 14px; margin: 0 0 28px; }
.xs-not-found .xs-search { margin-bottom: 28px; }
.xs-button { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 24px; border-radius: 100px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; transition: background .2s; }
.xs-button:hover { background: #d17741; }

.xs-standard-page .xs-page-heading { margin-bottom: 40px; }
.xs-standard-page h1 { font-size: 36px; font-weight: 600; line-height: 1.3; margin: 0; }

/* Responsive */
@media (max-width: 900px) {
    .xs-hero__layout { grid-template-columns: 1fr; gap: 48px; }
    .xs-featured__cover { height: auto; aspect-ratio: 7 / 4; }
    .xs-library__layout { grid-template-columns: 1fr; gap: 32px; }
    .xs-library__aside { position: static; grid-row: 1; }
    .xs-categories { flex-direction: row; flex-wrap: wrap; gap: 4px; }
    .xs-article-layout { grid-template-columns: 1fr; gap: 40px; }
    .xs-reading-sidebar { grid-row: 1; }
    .xs-reading-sidebar__sticky { position: static; height: auto; gap: 24px; }
    .xs-reading-cta { display: none; }
    .xs-footer > .xs-container { gap: 40px; }
    .xs-footer__top { flex-direction: column; gap: 40px; }
    .xs-footer__brand { width: auto; }
    .xs-footer__cols { width: 100%; grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
}
@media (max-width: 640px) {
    .xs-container { width: calc(100% - 32px); }
    html { scroll-padding-top: 90px; }
    .xs-hero, .xs-single, .xs-page-shell { padding-top: 100px; }
    .xs-page-top { height: 80px; }
    .xs-hero { padding-bottom: 48px; }
    .xs-featured__title { font-size: 19px; }
    .xs-popular h2 { font-size: 18px; }
    .xs-popular__item h3 { font-size: 13px; }
    .xs-library { padding: 48px 0 72px; }
    .xs-hero + .xs-library { padding-top: 40px; }
    .xs-library__head { flex-direction: column; align-items: flex-start; gap: 16px; }
    .xs-library__title { font-size: 18px; }
    .xs-search { width: 100%; }
    .xs-post-card, .xs-related .xs-post-card { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 0; }
    .xs-post-card p { -webkit-line-clamp: 1; }
    .xs-post-card h2, .xs-post-card h3 { font-size: 15px; }
    .xs-article__header h1 { font-size: 24px; }
    .xs-prose { font-size: 14px; }
    .xs-prose h2 { font-size: 20px; }
    .xs-prose h3 { font-size: 17px; }
    .xs-cta h2 { font-size: 24px; }
    .xs-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xs-cta { height: auto; padding: 180px 0 80px; }
    .xs-cta p { font-size: 14px; line-height: 24px; }
    .xs-footer__top { padding-bottom: 0; }
    .xs-backtop { right: 20px; bottom: 20px; width: 42px; height: 42px; }
}


.xs-categories__item--child { margin-left: 16px; font-size: 13px; }
.xs-article-layout .wp-block-table { overflow-x: auto; }
.xs-prose iframe { max-width: 100%; }
.xs-prose .alignwide, .xs-prose .alignfull { width: 100%; margin-left: 0; margin-right: 0; }
.xs-post-card__body, .xs-featured__title, .xs-popular__item h3 { overflow-wrap: anywhere; }
.xs-social-wrap { position: relative; }
.xs-social-qr { display: none; position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); width: 140px; max-width: none; padding: 8px; background: #fff; border-radius: 8px; z-index: 5; }
.xs-social-wrap:hover .xs-social-qr, .xs-social-wrap:focus-within .xs-social-qr { display: block; }
.xs-social-wrap:first-child .xs-social-qr { left: 0; transform: none; }
@media (min-width: 901px) and (max-width: 1400px) {
  .xs-post-card, .xs-related .xs-post-card { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
  .xs-hero__layout { gap: 48px; }
  .xs-featured__title { font-size: 24px; }
  .xs-popular__item h3 { font-size: 18px; }
  .xs-footer__top { gap: 48px; }
}
@media (max-width: 900px) {
  .xs-library__layout, .xs-article-layout { gap: 32px; }
  .xs-article__header { margin-top: 0; }
  .xs-footer__top { gap: 48px; }
  .xs-reading-toc ol { display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .xs-reading-toc .toc-level-3 { display: none; }
}
@media (max-width: 640px) {
  .xs-post-card__body { gap: 8px; }
    .xs-post-card__body { height: auto; }
  .xs-post-card__body > .xs-chip { margin-bottom: 0; }
  .xs-meta { font-size: 10px; gap: 4px; }
  .xs-chip { font-size: 10px; padding: 3px 6px; min-height: 20px; }
  .xs-categories__item { font-size: 13px; padding: 8px 12px; min-height: 36px; }
  .xs-featured__excerpt { font-size: 14px; }
  .xs-single { padding-bottom: 40px; }
  .xs-related { margin-top: 40px; }
  .xs-library__main { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
  .xs-cta--waiting .xs-cta__glow { transform: none; opacity: 1; }
}
@media (width < 500px) {
  .xs-related > h2 { font-size: 18px; }
}
@media (min-width: 901px) and (max-height: 540px) {
  .xs-reading-sidebar__sticky { overflow-y: auto; }
  .xs-reading-toc { flex: none; }
}
