/* xvesting.css — Xvesting site styles, layered on the base stylesheet.
   Load order: assets/site-9501.css, assets/site-3564.css, xvesting.css */

/* ---- Rive animation boxes (replace the SSR `aspect-ratio;opacity:0` placeholders) ---- */
.xv-rive { position: relative; width: 100%; height: 100%; }
canvas[data-rive-src] { width: 100%; height: 100%; display: block; }

/* ---- Decorative 1440x186 linework SVG fills its aspect box ---- */
.xv-deco { display: block; }
.xv-deco > svg { width: 100%; height: 100%; display: block; }

/* ---- Mobile drawer + burger/close icon swap, driven by the site's own
       sr-only #mobile-nav-toggle checkbox (no React needed) ---- */
body:has(#mobile-nav-toggle:checked) [data-mobile-drawer] {
  opacity: 1;
  visibility: visible;
}
body:has(#mobile-nav-toggle:checked) svg[data-burger="closed"] { opacity: 0; }
body:has(#mobile-nav-toggle:checked) svg[data-burger="open"] { opacity: 1; }
svg[data-burger] { transition: opacity 300ms; }

/* ---- Counter replacements for <number-flow-react> ---- */
.xv-count { display: inline-block; white-space: nowrap; }

/* ---- Newsletter confirmation / error line under the subscribe box ---- */
.xv-form-note { margin-top: 0.375rem; color: var(--color-grey-4, #8a8a8a); }
.xv-form-note.is-error { color: #d14343; }

/* ---- FAQ answers (restored from the CMS payload) ---- */
.xv-faq-answer { padding-top: 1rem; max-width: 46rem; }
.xv-faq-answer p + p { margin-top: 0.75rem; }
.xv-faq-answer ul, .xv-faq-answer ol { margin: 0.75rem 0 0 1.25rem; list-style: disc; }
.xv-faq-answer ol { list-style: decimal; }
.xv-faq-answer a { text-decoration: underline; }
button[aria-controls^="faq-"] > span:last-child { min-width: 1ch; text-align: center; }

/* ---- Table of contents: active section ---- */
.xv-toc-active { color: var(--color-black, #0a0a0a); }
.xv-toc-active::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.5rem; height: 0.1875rem; background: var(--color-zest, #d4ff3a);
}

/* ---- Blog featured carousel: grab cursor while swiping ---- */
.swiper { cursor: grab; }
.swiper:active { cursor: grabbing; }
[hidden] { display: none !important; }

/* ---- "Link copied" tooltip: the share bar sits on the right edge, so on
       phones a centred tooltip pokes past the viewport (sideways scroll on
       research pages). Right-align it there instead. ---- */
@media (max-width: 639.98px) {
  button[aria-label="Copy link"] > div:last-child { left: auto; right: -0.25rem; --tw-translate-x: 0; }
  button[aria-label="Copy link"] > div:last-child > div { left: auto; right: 0.5rem; --tw-translate-x: 0; }
}

/* ---- Careers: role rows are informational only (no link target) ---- */
a[aria-disabled="true"] { cursor: default; }
.xv-role-desc { margin-top: 0.375rem; font-family: inherit; letter-spacing: normal; }

/* ---- Careers: message area under the roles list ---- */
.xv-msg { margin-top: 3.5rem; display: grid; gap: 2rem; }
.xv-msg-head { display: grid; gap: 0.75rem; max-width: 34rem; }
.xv-msg-form { display: grid; gap: 1.25rem; }
.xv-msg-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .xv-msg-row { grid-template-columns: 1fr 1fr; } }
.xv-msg-field { display: grid; gap: 0.5rem; color: var(--color-grey-2, #c3cfc3); }
.xv-msg-field input,
.xv-msg-field select,
.xv-msg-field textarea {
  width: 100%; box-sizing: border-box; padding: 0.75rem 0.875rem;
  background: var(--color-black, #0c0e0e); color: var(--color-white, #fff);
  border: 1px solid #353131; border-radius: 0; font: inherit; font-size: 1rem;
  transition: border-color 200ms;
}
.xv-msg-field textarea { resize: vertical; min-height: 9rem; }
.xv-msg-field select { appearance: none; cursor: pointer; }
.xv-msg-field input:focus,
.xv-msg-field select:focus,
.xv-msg-field textarea:focus { outline: none; border-color: var(--color-zest, #00c805); }
.xv-msg-field .is-invalid, .xv-msg-field [aria-invalid="true"] { border-color: #d14343; }
.xv-msg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.xv-msg-submit {
  height: 2.5rem; padding: 0 1.25rem; background: var(--color-white, #fff);
  color: var(--color-black, #0c0e0e); cursor: pointer; border: 0; transition: background 300ms;
}
.xv-msg-submit:hover { background: var(--color-grey-1, #deefe5); }
.xv-msg-submit:disabled { opacity: 0.5; cursor: default; }
.xv-msg-note { color: var(--color-grey-2, #c3cfc3); }
.xv-msg-note.is-error { color: #d14343; }

/* ================================================================
   Xvesting research articles (research-*.html written in-house)
   ================================================================ */
.xv-wrap { max-width: 69.375rem; margin: 0 auto; }
.xv-meta {
  font-family: var(--font-apk-narrative-mono, ui-monospace, monospace);
  font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-grey-3, #909c8c);
}
.xv-hero { padding: 4rem 0 3.5rem; }
@media (min-width: 1024px) { .xv-hero { padding: 6rem 0 5rem; } }
.xv-back { display: inline-block; margin-bottom: 2.5rem; color: var(--color-grey-2, #c3cfc3); font-size: 0.875rem; transition: opacity 300ms; }
.xv-back:hover { opacity: 0.7; }
.xv-title { margin: 1.25rem 0 1.25rem; max-width: 52rem; font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em; }
.xv-dek { max-width: 44rem; font-size: 1.125rem; line-height: 1.55; color: var(--color-white-80, #fffc); }
.xv-byline { margin-top: 2rem; padding-left: 1.25rem; border-left: 3px solid var(--color-zest, #00c805); font-size: 0.875rem; color: var(--color-grey-2, #c3cfc3); }
.xv-body { padding: 0 0 5rem; }
@media (min-width: 1024px) { .xv-body { padding-bottom: 8rem; } }
.xv-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-top: -1px; }
.xv-grid { display: grid; gap: 3rem; margin-top: 3.5rem; }
@media (min-width: 1024px) { .xv-grid { grid-template-columns: 14rem minmax(0, 46rem); justify-content: space-between; margin-top: 5rem; } }
.xv-toc { align-self: start; }
@media (min-width: 1024px) { .xv-toc { position: sticky; top: 7rem; } }
@media (max-width: 1023.98px) { .xv-toc { display: none; } }
.xv-toc ol { margin-top: 1.25rem; display: grid; gap: 0.875rem; counter-reset: toc; }
.xv-toc li { counter-increment: toc; font-size: 0.875rem; color: var(--color-grey-4, #545a51); }
.xv-toc li::before { content: counter(toc, decimal-leading-zero) "  "; font-family: var(--font-apk-narrative-mono, monospace); font-size: 0.6875rem; color: var(--color-grey-3, #909c8c); }
.xv-toc a:hover { color: var(--color-black, #0c0e0e); }
.xv-keys { padding: 1.75rem; background: var(--color-grey-0, #f5f7f6); border-top: 3px solid var(--color-zest, #00c805); }
.xv-keys ul { margin-top: 1rem; display: grid; gap: 0.75rem; }
.xv-keys li { position: relative; padding-left: 1.25rem; font-size: 1rem; line-height: 1.5; }
.xv-keys li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.5rem; height: 0.1875rem; background: var(--color-zest, #00c805); }
.xv-prose { margin-top: 3rem; font-size: 1.0625rem; line-height: 1.7; color: #2c3333; }
.xv-prose h2 { margin: 3rem 0 1rem; font-size: 1.625rem; line-height: 1.25; letter-spacing: -0.015em; color: var(--color-black, #0c0e0e); scroll-margin-top: 7rem; }
.xv-prose h2:first-child { margin-top: 0; }
.xv-prose p + p { margin-top: 1rem; }
.xv-prose ul { margin: 1rem 0; display: grid; gap: 0.625rem; padding-left: 1.25rem; list-style: disc; }
.xv-prose strong { color: var(--color-black, #0c0e0e); font-weight: 600; }
.xv-disclaimer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-grey-2, #c3cfc3); font-size: 0.8125rem; line-height: 1.5; color: var(--color-grey-4, #545a51); }
.xv-more { margin-top: 5rem; padding-top: 2.5rem; border-top: 1px solid var(--color-grey-2, #c3cfc3); }
.xv-more-grid { margin-top: 1.5rem; display: grid; gap: 2rem; }
@media (min-width: 768px) { .xv-more-grid { grid-template-columns: repeat(3, 1fr); } }
.xv-more-card { display: grid; gap: 0.875rem; }
.xv-more-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid #e3e8e3; border-radius: 4px; transition: border-color 300ms, box-shadow 300ms; }
.xv-more-card:hover img { border-color: #909c8c; box-shadow: 0 6px 20px rgba(12, 14, 14, 0.08); }
.xv-more-title { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }

/* ---- Legal page (Terms + Privacy combined) ---- */
.xv-legal-hero { padding: 4rem 0; }
@media (min-width: 1024px) { .xv-legal-hero { padding: 6rem 0 5rem; } }
.xv-legal-hero .text-h1 { margin-top: 1rem; }
.xv-legal-lede { margin-top: 1rem; max-width: 34.5rem; }
.xv-legal-tabs { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.xv-legal-tabs a { display: inline-flex; align-items: center; height: 2.5rem; padding: 0 1rem; border: 1px solid var(--color-grey-5, #2c3333); font-size: 0.875rem; transition: background 300ms, color 300ms; }
.xv-legal-tabs a:hover { background: #fff; color: var(--color-black, #0c0e0e); }
.xv-legal-part { scroll-margin-top: var(--header-height, 4rem); }

/* ---- Xvesting wordmark: inline SVG drawn in the original wordmark's
       geometry (see top bar / footer); sized by its width/height attributes. ---- */
a[aria-label="Back to Home"] { width: auto; }
.xv-wordmark { display: block; flex-shrink: 0; }
.xv-footer-mark { height: auto; aspect-ratio: 1230 / 326; }


/* ---- Legal page (rebuilt on the Terms page layout) ---- */
.xv-legal-sub { margin-top: -0.25rem; max-width: 34.5rem; }
.xv-legal-jump { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.75rem; }
.xv-legal-jump a {
  display: inline-flex; align-items: center; height: 2.5rem; padding: 0 1.125rem;
  border: 1px solid var(--color-black, #0c0e0e); font-size: 0.875rem; transition: background 300ms, color 300ms;
}
.xv-legal-jump a:hover { background: var(--color-black, #0c0e0e); color: #fff; }
.xv-legal-side { max-height: calc(100vh - 9rem); overflow-y: auto; padding-right: 0.5rem; }
.xv-toc-group {
  margin: 0 0 1.25rem; font-family: var(--font-apk-narrative-mono, monospace); font-size: 0.6875rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-black, #0c0e0e);
}
.xv-legal-side ul + .xv-toc-group { margin-top: 2.5rem; }
.xv-doc-head { display: grid; gap: 0.5rem; margin-bottom: 3rem; scroll-margin-top: 7rem; }
.xv-doc-head .text-h3 { margin: 0.25rem 0 0; }
.xv-doc-sep { height: 1px; margin: 5rem 0; background: var(--color-grey-2, #c3cfc3); }

/* ---- Legal / Terms / Privacy masthead stripes: the SVG carries height="100%",
       which made it fill the whole section; keep its 1440x229 proportion. ---- */
section > svg[viewBox="0 0 1440 229"] { height: auto; aspect-ratio: 1440 / 229; }
.xv-legal-side { scrollbar-width: none; }
.xv-legal-side::-webkit-scrollbar { display: none; }


/* ================================================================
   Homepage hero - 1:1 rebuild of the reference still. Every stage
   measurement is in the reference image's own pixels (--u = 1/329 of
   the stage width), so the whole picture scales as one.
   ================================================================ */
.xvh { position: relative; background: #0e1111; color: #fff; overflow: hidden; }
.xvh-copy { position: relative; z-index: 4; text-align: center; padding-top: clamp(3rem, 7.4vw, 6.75rem); }
.xvh-title {
  margin: 0 auto; white-space: pre-line; font-weight: 400; color: #e9eee9;
  font-size: clamp(2.1rem, 0.9rem + 3.3vw, 3.75rem); line-height: 1.18; letter-spacing: -0.012em;
}
.xvh-sub { margin-top: clamp(0.75rem, 1.3vw, 1.2rem); font-size: clamp(0.8125rem, 0.75rem + 0.2vw, 1rem); color: #c9d0c9; }
.xv-type-rest { visibility: hidden; }
.xv-type-cursor {
  display: inline-block; width: 0.42em; height: 0.07em; margin-left: 0.05em;
  background: var(--color-zest, #00c805); vertical-align: baseline; animation: xv-blink 1s steps(1) infinite;
}
@keyframes xv-blink { 50% { opacity: 0; } }

.xvh-stage {
  --u: calc(100cqw / 329);
  container-type: inline-size; position: relative; width: 100%; max-width: 1440px; aspect-ratio: 329 / 197;
  margin: clamp(4.5rem, 10.1vw, 9.1rem) auto 0;
}
@supports not (width: 1cqw) { .xvh-stage { --u: calc(min(100vw, 1440px) / 329); } }
.xvh-bars { position: absolute; inset: 0; z-index: 1; }
.xvh-bars i { position: absolute; display: block; }

.xvh-win {
  position: absolute; z-index: 2; left: calc(33.25 * var(--u)); width: calc(267.5 * var(--u));
  top: calc(22.5 * var(--u)); height: calc(155 * var(--u));
  border: 1px solid #1f2424; border-radius: calc(1.5 * var(--u)); background: #0f1212;
}
.xvh-dots { position: absolute; left: calc(3.6 * var(--u)); top: calc(4.2 * var(--u)); display: flex; gap: calc(3.2 * var(--u)); }
.xvh-dots i { width: calc(1.8 * var(--u)); height: calc(1.8 * var(--u)); border-radius: 50%; background: #262c2c; }
.xvh-frame {
  position: absolute; left: calc(3 * var(--u)); right: calc(3 * var(--u)); top: calc(10 * var(--u)); bottom: calc(2.5 * var(--u));
  border: 1px solid #1a1f1f;
}
.xvh-rail {
  position: absolute; left: 0; top: 0; bottom: 0; width: calc(11.25 * var(--u)); border-right: 1px solid #1a1f1f;
  display: flex; flex-direction: column; align-items: center; padding-top: calc(4.5 * var(--u)); gap: calc(6.2 * var(--u));
}
.xvh-rmark { display: block; width: calc(5.4 * var(--u)); color: #8b938b; margin-bottom: calc(1.2 * var(--u)); }
.xvh-rmark svg { display: block; width: 100%; height: auto; }
.xvh-ri { display: block; width: calc(4.2 * var(--u)); height: calc(4.2 * var(--u)); color: #2a3030; }
.xvh-ri svg { display: block; width: 100%; height: 100%; }

.xvh-panel {
  position: absolute; z-index: 3; left: calc(77 * var(--u)); width: calc(180 * var(--u)); top: calc(9.25 * var(--u)); height: calc(60.75 * var(--u));
  background: #161a1a; border: 1px solid #1f2424; border-radius: calc(1.5 * var(--u));
  box-shadow: 0 calc(6 * var(--u)) calc(18 * var(--u)) rgba(0, 0, 0, 0.55);
}
.xvh-tabs {
  position: absolute; left: calc(5 * var(--u)); right: calc(4 * var(--u)); top: calc(3.6 * var(--u));
  display: flex; align-items: center; gap: calc(4.6 * var(--u)); white-space: nowrap; overflow: hidden;
}
.xvh-tab { display: inline-flex; align-items: center; gap: calc(1.1 * var(--u)); font-size: calc(2.55 * var(--u)); color: #6c746c; line-height: 1; }
.xvh-tab svg { width: calc(2.9 * var(--u)); height: calc(2.9 * var(--u)); flex-shrink: 0; }
.xvh-tab.is-on { color: #fff; font-weight: 500; background: #202525; padding: calc(1.3 * var(--u)) calc(2.2 * var(--u)); border-radius: calc(0.8 * var(--u)); margin-left: calc(-1.2 * var(--u)); }
.xvh-input {
  position: absolute; left: calc(5 * var(--u)); right: calc(4.5 * var(--u)); top: calc(13.25 * var(--u)); height: calc(40 * var(--u));
  padding: calc(2.6 * var(--u)) calc(3 * var(--u)); border-radius: calc(1 * var(--u));
  background: linear-gradient(180deg, #1e2323 0%, #151919 70%, #131717 100%);
  font-size: calc(3 * var(--u)); color: #c3cbc3; line-height: 1.2;
}
.xvh-tools {
  position: absolute; left: calc(8 * var(--u)); right: calc(8 * var(--u)); top: calc(52 * var(--u)); height: calc(7 * var(--u));
  display: flex; align-items: center; gap: calc(5 * var(--u)); font-size: calc(2.3 * var(--u)); color: #454c45;
}
.xvh-tools > span { display: inline-flex; align-items: center; gap: calc(0.6 * var(--u)); }
.xvh-tools svg { width: calc(2.2 * var(--u)); height: calc(2.2 * var(--u)); }
.xvh-more { margin-left: auto; color: #454c45; }
.xvh-more svg { width: calc(3.2 * var(--u)); height: calc(3.2 * var(--u)); }
.xvh-send { width: calc(7.25 * var(--u)); height: calc(7 * var(--u)); justify-content: center; border-radius: calc(0.8 * var(--u)); background: #9aa19a; color: #1a1e1e; }
.xvh-send svg { width: calc(3.8 * var(--u)); height: calc(3.8 * var(--u)); }

/* phones: show the centre of the picture at a readable size */
@media (max-width: 699.98px) {
  .xvh-stage { width: 620px; max-width: none; margin-left: 50%; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .xv-type-cursor { animation: none; } }

/* ================================================================
   Research v2: figures, tables, method + references, library page
   ================================================================ */
.xv-fig { margin: 2.5rem 0 1.5rem; padding: 1.5rem 1.25rem 1.25rem; border: 1px solid #e3e8e3; background: #fbfcfb; }
.xv-fig-title { display: grid; gap: 0.35rem; margin-bottom: 1rem; font-size: 1.0625rem; font-weight: 500; color: #0c0e0e; }
.xv-chart { display: block; width: 100%; height: auto; font-family: inherit; }
.xv-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.75rem; font-size: 0.8125rem; color: #545a51; }
.xv-legend span { display: inline-flex; align-items: center; gap: 0.5rem; }
.xv-legend i { display: inline-block; width: 1.25rem; height: 3px; }
.xv-fig-note { margin-top: 0.875rem; font-size: 0.8125rem; line-height: 1.5; color: #6b736b; }
.xv-table-wrap { margin: 0 0 2rem; overflow-x: auto; }
.xv-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.xv-table th { text-align: left; padding: 0.625rem 0.75rem; border-bottom: 2px solid #0c0e0e; font-weight: 600; color: #0c0e0e; white-space: nowrap; }
.xv-table td { padding: 0.625rem 0.75rem; border-bottom: 1px solid #e3e8e3; color: #2c3333; }
.xv-table td:not(:first-child), .xv-table th:not(:first-child) { text-align: right; }
.xv-method { margin-top: 3rem; padding: 1.5rem; background: #f5f7f6; border-left: 3px solid #0c0e0e; }
.xv-method p:last-child { margin-top: 0.625rem; font-size: 0.9375rem; line-height: 1.65; color: #2c3333; }
.xv-refs { margin-top: 2.5rem; scroll-margin-top: 7rem; }
.xv-refs ol { margin-top: 1rem; padding-left: 1.25rem; list-style: decimal; display: grid; gap: 0.75rem; font-size: 0.875rem; line-height: 1.55; color: #2c3333; }

.xv-lib { padding: 4rem 0 5rem; }
@media (min-width: 1024px) { .xv-lib { padding: 6rem 0 7rem; } }
.xv-lib-wrap { max-width: 85rem; margin: 0 auto; }
.xv-lib-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid #0c0e0e; }
.xv-lib-head h2 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); letter-spacing: -0.01em; }
.xv-lib-img { overflow: hidden; aspect-ratio: 16 / 9; background: #0c0e0e; }
.xv-lib-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
a:hover .xv-lib-img img { transform: scale(1.03); }
.xv-lib-lead { display: grid; gap: 1.5rem; padding: 2.5rem 0; border-bottom: 1px solid #e3e8e3; }
@media (min-width: 900px) { .xv-lib-lead { grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; } }
.xv-lib-lead h3 { margin: 0.875rem 0 0.75rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); line-height: 1.15; letter-spacing: -0.015em; }
.xv-lib-sum { font-size: 1rem; line-height: 1.55; color: #545a51; }
.xv-lib-by { margin-top: 1.25rem; padding-left: 0.875rem; border-left: 3px solid var(--color-zest, #00c805); font-size: 0.875rem; color: #2c3333; }
.xv-lib-more { display: inline-block; margin-top: 1.25rem; font-size: 0.875rem; font-weight: 500; color: #0c0e0e; border-bottom: 1px solid currentColor; }
.xv-lib-grid { display: grid; gap: 2.5rem; padding-top: 2.5rem; }
@media (min-width: 768px) { .xv-lib-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.xv-lib-card { display: flex; flex-direction: column; }
.xv-lib-card .xv-meta { margin-top: 1rem; }
.xv-lib-card h3 { margin: 0.625rem 0 0.5rem; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
.xv-lib-card .xv-lib-sum { font-size: 0.9375rem; }
.xv-lib-card .xv-lib-more { margin-top: auto; padding-top: 1rem; align-self: flex-start; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.xv-std { padding: 4rem 0; }
@media (min-width: 1024px) { .xv-std { padding: 5.5rem 0; } }
.xv-std-head h2 { margin-top: 0.5rem; font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem); }
.xv-std-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 768px) { .xv-std-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.xv-std-grid > div { padding-top: 1rem; border-top: 3px solid #0c0e0e; }
.xv-std-grid h3 { font-size: 1.0625rem; font-weight: 500; }
.xv-std-grid p { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.55; color: #545a51; }

/* hero icon/text contrast: the reference is a downscaled thumbnail, which
   dims thin strokes; these are the full-size equivalents */
.xvh-win { border-color: #262c2c; }
.xvh-dots i { background: #3a4141; }
.xvh-frame, .xvh-rail { border-color: #202626; }
.xvh-rmark { color: #e6ece6; }
.xvh-ri { color: #5f6868; }
.xvh-tab { color: #8b938b; }
.xvh-tab.is-on { color: #fff; }
.xvh-input { color: #dde3dd; }
.xvh-tools, .xvh-more { color: #6f786f; }
.xvh-send { background: #c3c9c3; }

/* ================================================================
   APIs page (Xvesting layout)
   ================================================================ */
.xa-wrap { max-width: 85rem; margin: 0 auto; }
.xa-eyebrow { font-family: var(--font-apk-narrative-mono, monospace); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-zest, #00c805); }
.xa-eyebrow--dark { color: #3b7d3d; }
.xa-hero { background: #0c0e0e; color: #fff; padding: 5rem 0 4rem; border-bottom: 1px solid #1d2121; }
@media (min-width: 1024px) { .xa-hero { padding: 7.5rem 0 5.5rem; } }
.xa-hero h1 { margin-top: 1.25rem; max-width: 16em; font-size: clamp(2.25rem, 1.2rem + 3vw, 4rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 400; }
.xa-sub { margin-top: 1.5rem; max-width: 38rem; font-size: 1.125rem; line-height: 1.55; color: #c3cfc3; }
.xa-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }
.xa-btn { display: inline-flex; align-items: center; height: 2.75rem; padding: 0 1.25rem; background: #fff; color: #0c0e0e; font-size: 0.9375rem; font-weight: 500; transition: background 300ms; }
.xa-btn:hover { background: #deefe5; }
.xa-link { font-size: 0.9375rem; color: #c3cfc3; border-bottom: 1px solid #545a51; padding-bottom: 2px; }
.xa-link:hover { color: #fff; }
.xa-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid #1d2121; }
.xa-jump a { padding: 0.45rem 0.8rem; border: 1px solid #2c3333; font-family: var(--font-apk-narrative-mono, monospace); font-size: 0.75rem; color: #c3cfc3; transition: border-color 300ms, color 300ms; }
.xa-jump a:hover { border-color: #909c8c; color: #fff; }

.xa-list-sec { background: #fff; color: #0c0e0e; padding: 1rem 0 4rem; }
.xa-api { display: grid; gap: 2rem; padding: 3.5rem 0; border-bottom: 1px solid #e3e8e3; scroll-margin-top: 5rem; }
@media (min-width: 1024px) { .xa-api { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4rem; padding: 5rem 0; } }
.xa-num { font-family: var(--font-apk-narrative-mono, monospace); font-size: 0.75rem; color: #909c8c; }
.xa-tag { display: inline-block; margin-top: 0.75rem; padding: 0.25rem 0.55rem; background: #f0f4f1; font-size: 0.75rem; color: #2c3333; }
.xa-api h3 { margin-top: 1rem; font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.015em; font-weight: 400; }
.xa-line { margin-top: 1rem; font-size: 1.0625rem; line-height: 1.6; color: #2c3333; max-width: 34rem; }
.xa-label { margin-top: 1.75rem; font-family: var(--font-apk-narrative-mono, monospace); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: #6b736b; }
.xa-api-code .xa-label:first-child { margin-top: 0; }
.xa-list { margin-top: 0.75rem; display: grid; gap: 0.6rem; }
.xa-list li { position: relative; padding-left: 1.25rem; font-size: 0.9875rem; line-height: 1.5; color: #2c3333; }
.xa-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.5rem; height: 0.1875rem; background: var(--color-zest, #00c805); }
.xa-who { margin-top: 0.6rem; font-size: 0.9375rem; line-height: 1.55; color: #545a51; }
.xa-code { margin: 0.6rem 0 0; padding: 1.1rem 1.25rem; background: #0c0e0e; color: #d6ddd6; border-radius: 4px; overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 0.8125rem; line-height: 1.6; white-space: pre; }

.xa-how { background: #f5f7f6; color: #0c0e0e; padding: 4.5rem 0; }
@media (min-width: 1024px) { .xa-how { padding: 6.5rem 0; } }
.xa-how h2 { margin-top: 0.75rem; font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem); letter-spacing: -0.015em; font-weight: 400; }
.xa-steps { display: grid; gap: 1.5rem; margin-top: 2.5rem; counter-reset: none; }
@media (min-width: 768px) { .xa-steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.xa-steps li { padding: 1.5rem; background: #fff; border: 1px solid #e3e8e3; }
.xa-steps span { font-family: var(--font-apk-narrative-mono, monospace); font-size: 0.75rem; color: #3b7d3d; }
.xa-steps h3 { margin-top: 0.75rem; font-size: 1.25rem; font-weight: 500; }
.xa-steps p { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.55; color: #545a51; }
.xa-notes { display: grid; gap: 1.5rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid #d5ddd6; }
@media (min-width: 768px) { .xa-notes { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.xa-notes h3 { font-size: 1.0625rem; font-weight: 500; }
.xa-notes p { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.55; color: #545a51; }
.xa-notes a { color: #0c0e0e; text-decoration: underline; text-underline-offset: 3px; }
.xa-final { background: #0c0e0e; color: #fff; padding: 4rem 0; }
.xa-final-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.xa-final h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); font-weight: 400; letter-spacing: -0.01em; }

/* ---- Research masthead (Xvesting editorial layout) ---- */
.xr-hero { background: #f5f7f6; color: #0c0e0e; padding: 4.5rem 0 3.5rem; border-bottom: 1px solid #dfe5e0; }
@media (min-width: 1024px) { .xr-hero { padding: 6.5rem 0 5rem; } }
.xr-wrap { max-width: 85rem; margin: 0 auto; display: grid; gap: 3rem; }
@media (min-width: 1024px) { .xr-wrap { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 5rem; align-items: end; } }
.xr-eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; font-weight: 500; color: #2c3333; }
.xr-eyebrow::before { content: ""; width: 0.75rem; height: 0.75rem; background: var(--color-zest, #00c805); }
.xr-main h1 { margin-top: 1.5rem; font-size: clamp(2.25rem, 1.2rem + 3vw, 4rem); line-height: 1.06; letter-spacing: -0.025em; font-weight: 400; max-width: 13em; }
.xr-sub { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.55; color: #545a51; }
.xr-topics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.xr-topics li { padding: 0.4rem 0.8rem; border: 1px solid #c9d2ca; border-radius: 999px; font-size: 0.8125rem; color: #2c3333; background: #fff; }
.xr-side { display: grid; gap: 1.25rem; }
.xr-side-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: #6b736b; }
.xr-latest { display: grid; gap: 0.5rem; margin-top: 0.6rem; padding: 1.25rem; background: #0c0e0e; color: #fff; transition: background 300ms; }
.xr-latest:hover { background: #1d2121; }
.xr-latest-meta { font-size: 0.8125rem; color: #909c8c; }
.xr-latest-title { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
.xr-latest-go { font-size: 0.875rem; color: var(--color-zest, #00c805); }
.xr-sub-box { padding: 1.25rem; background: #fff; border: 1px solid #dfe5e0; }
.xr-form { display: flex; margin-top: 0.75rem; border: 1px solid #c9d2ca; }
.xr-form input { flex: 1; min-width: 0; padding: 0.7rem 0.8rem; border: 0; background: transparent; font: inherit; font-size: 0.9375rem; outline: none; }
.xr-form button { padding: 0 1rem; background: #0c0e0e; color: #fff; font-size: 0.875rem; cursor: pointer; }
.xr-form button:disabled { opacity: 0.5; cursor: default; }
.xr-fine { margin-top: 0.6rem; font-size: 0.8125rem; color: #6b736b; }
.xr-sub-box .xv-form-note { margin-top: 0.5rem; font-size: 0.8125rem; }

/* ---- Homepage hero picture: the supplied still, blended into the page ---- */
.xvh { background: #0c0e0d; }
.xvh-shot { position: relative; width: 100%; max-width: 1200px; margin: clamp(2.5rem, 5vw, 4.5rem) auto 0; }
.xvh-shot img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(to bottom, #000 82%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(to bottom, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
@media (max-width: 699.98px) {
  .xvh-shot { width: 640px; max-width: none; margin-left: 50%; transform: translateX(-50%); }
}
.xvh-shot img { image-rendering: auto; }

/* ================================================================
   About page
   ================================================================ */
.xab-wrap { max-width: 85rem; margin: 0 auto; }
.xab-hero { background: #0c0e0e; color: #fff; padding: 5.5rem 0 4.5rem; }
@media (min-width: 1024px) { .xab-hero { padding: 8rem 0 6.5rem; } }
.xab-eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: #c3cfc3; }
.xab-eyebrow::before { content: ""; width: 0.75rem; height: 0.1875rem; background: var(--color-zest, #00c805); }
.xab-hero h1 { margin-top: 1.5rem; max-width: 14em; font-size: clamp(2.5rem, 1.2rem + 3.6vw, 4.5rem); line-height: 1.05; letter-spacing: -0.025em; font-weight: 400; }
.xab-lede { margin-top: 1.75rem; max-width: 40rem; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; color: #c3cfc3; }
.xab-sec { background: #fff; color: #0c0e0e; padding: 4.5rem 0; }
@media (min-width: 1024px) { .xab-sec { padding: 6.5rem 0; } }
.xab-sec--alt { background: #f5f7f6; }
.xab-label { font-family: var(--font-apk-narrative-mono, monospace); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #3b7d3d; }
.xab-label--light { color: var(--color-zest, #00c805); }
.xab-sec h2, .xab-contact h2 { margin-top: 0.875rem; font-size: clamp(1.75rem, 1.3rem + 1.3vw, 2.75rem); line-height: 1.1; letter-spacing: -0.015em; font-weight: 400; }
.xab-two { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .xab-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 5rem; } }
.xab-copy p { font-size: 1.0625rem; line-height: 1.7; color: #2c3333; }
.xab-copy p + p { margin-top: 1.25rem; }
.xab-cards { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 900px) { .xab-cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.xab-card { display: flex; flex-direction: column; padding: 1.75rem; background: #fff; border: 1px solid #e3e8e3; transition: border-color 300ms, transform 300ms; }
.xab-card:hover { border-color: #0c0e0e; transform: translateY(-2px); }
.xab-num { font-family: var(--font-apk-narrative-mono, monospace); font-size: 0.75rem; color: #909c8c; }
.xab-card h3 { margin-top: 1rem; font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; }
.xab-card p { margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.6; color: #545a51; }
.xab-go { margin-top: auto; padding-top: 1.25rem; font-size: 0.875rem; font-weight: 500; color: #0c0e0e; }
.xab-beliefs { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .xab-beliefs { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.xab-beliefs > div { padding-top: 1.1rem; border-top: 3px solid #0c0e0e; }
.xab-beliefs h3 { font-size: 1.125rem; font-weight: 500; }
.xab-beliefs p { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.55; color: #545a51; }
.xab-contact { background: #0c0e0e; color: #fff; padding: 4.5rem 0 5.5rem; }
@media (min-width: 1024px) { .xab-contact { padding: 6.5rem 0 7.5rem; } }
.xab-contact-copy { margin-top: 1rem; font-size: 1rem; line-height: 1.6; color: #c3cfc3; }
.xab-contact-copy a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.xab-contact .xv-msg { margin-top: 0; }

/* ================================================================
   Site footer (Xvesting layout)
   ================================================================ */
.xf { position: relative; overflow: hidden; background: #0c0e0e; color: #fff; }
.xf-in { position: relative; z-index: 1; max-width: 75rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 900px) { .xf-in { max-width: none; padding: 0 calc(min(11.5vw, 11rem) + 1.5rem) 0 calc(min(8.5vw, 8.5rem) + 3rem); } }
@media (min-width: 1600px) { .xf-in { max-width: calc(75rem + 20rem); } }
.xf-top { display: grid; gap: 3rem; padding: 5.5rem 0 5rem; }
@media (min-width: 900px) { .xf-top { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 4rem; padding: 4rem 0 3.5rem; } }
.xf-title { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); line-height: 1.12; letter-spacing: -0.015em; font-weight: 400; }
.xf-btn { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 2rem; height: 2.5rem; padding: 0 1rem;
  background: #fff; color: #0c0e0e; font-size: 0.9375rem; font-weight: 500; transition: background 300ms; }
.xf-btn:hover { background: #deefe5; }
.xf-links ul { display: grid; gap: 1.35rem; }
@media (min-width: 900px) { .xf-links { justify-self: end; min-width: 9rem; } }
.xf-links a { font-size: 1rem; color: #fff; transition: opacity 300ms; }
.xf-links a:hover { opacity: 0.65; }
.xf-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; padding: 1.75rem 0 2.25rem; border-top: 1px solid #262c2c; }
.xf-copy { flex: 1 1 18rem; font-size: 0.875rem; color: #c3cfc3; }
.xf-legal { display: flex; gap: 1.5rem; }
.xf-legal a { font-size: 0.875rem; color: #c3cfc3; transition: color 300ms; }
.xf-legal a:hover { color: #fff; }
@media (min-width: 900px) { .xf-legal { margin-left: auto; } }
.xf-bars { position: absolute; top: 0; bottom: 0; pointer-events: none; }
.xf-bars i { position: absolute; display: block; }
.xf-bars--l { left: 0; width: 8.5vw; max-width: 8.5rem; }
.xf-bars--l i { left: 0; }
.xf-bars--l i.xf-ext { left: 100%; }
.xf-bars--r { right: 0; width: 11.5vw; max-width: 11rem; }
.xf-bars--r i { right: 0; }
@media (max-width: 899.98px) {
  /* phones/tablets: no edge bars, a small green accent, links in one wrapping row */
  .xf-bars { display: none; }
  .xf-top { padding: 4.5rem 0 0; gap: 0; }
  .xf-cta::before { content: ""; display: block; width: 2rem; height: 0.25rem; margin-bottom: 1.5rem; background: var(--color-zest, #00c805); }
  .xf-btn { margin-top: 1.75rem; }
  .xf-links { margin-top: 2.75rem; padding: 1.5rem 0; border-top: 1px solid #262c2c; }
  .xf-links ul { display: flex; flex-wrap: wrap; gap: 0.85rem 1.75rem; }
  .xf-links a { font-size: 0.9375rem; }
  .xf-bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1.5rem 0 2.25rem; }
  .xf-copy { flex: none; }
}

/* ================================================================
   Responsive guards: grid columns may shrink below their content's
   natural width, so long code lines and wide tables scroll inside
   their own box instead of widening the page on small screens.
   ================================================================ */
.xa-api, .xv-grid { grid-template-columns: minmax(0, 1fr); }
.xa-api > *, .xv-grid > *, .xab-two > *, .xf-top > *, .xv-lib-lead > * { min-width: 0; }
@media (min-width: 1024px) {
  .xa-api { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .xv-grid { grid-template-columns: 14rem minmax(0, 46rem); }
}
.xa-code, .xv-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.xv-chart { max-width: 100%; }
img, svg, video, canvas { max-width: 100%; }

/* ================================================================
   Screen-size scaling: above 1440px the whole site grows in
   proportion with the window (everything is sized in rem), capped at
   +25% on very large monitors. Laptops, tablets and phones unchanged.
   ================================================================ */
@media (min-width: 1441px) {
  html { font-size: min(20px, calc(16px + (100vw - 1440px) * 0.0055)); }
}
/* page sections use the same container width as the top bar, so their
   edges line up with the logo and the User Login button */
.container:has(> .xa-wrap, > .xv-lib-wrap, > .xr-wrap, > .xab-wrap) { max-width: 85rem; }
/* the top-bar wordmark scales with the rest of the site */
.xv-wordmark { width: 6.606rem; height: auto; }

/* ================================================================
   Homepage hero art: traced vector geometry (hero-geom.svg) with a
   live HTML layer for the dots, rail, panel, text and icons. All
   positions are in the reference still's pixels (--u = 1/1001 width).
   ================================================================ */
.xvh-art { position: relative; container-type: inline-size; width: 100%; max-width: 90rem; margin: clamp(2.5rem, 5vw, 4.5rem) auto 0; aspect-ratio: 1001 / 606; }
.xvh-art > .xvh-geom { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%), linear-gradient(to bottom, #000 85%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%), linear-gradient(to bottom, #000 85%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.xvh-o { --u: calc(100cqw / 1001); position: absolute; inset: 0; font-family: Inter, "APK Narrative", sans-serif; }
.xvh-o svg { display: block; width: 100%; height: 100%; }
.xo-dot { position: absolute; top: calc(96.7 * var(--u)); width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; background: #1a1d1c; }
.xo-mark { position: absolute; left: calc(128.2 * var(--u)); top: calc(127.5 * var(--u)); width: calc(15 * var(--u)); color: #9ea4a1; }
.xo-mark svg { height: auto; }
.xo-tile { position: absolute; left: calc(128.5 * var(--u)); width: calc(15 * var(--u)); height: calc(15 * var(--u)); padding: calc(2.6 * var(--u));
  border-radius: calc(2 * var(--u)); background: #131615; color: #474e4b; }
.xo-panel { position: absolute; left: calc(235.5 * var(--u)); top: calc(47.5 * var(--u)); width: calc(521 * var(--u)); height: calc(180 * var(--u));
  border: 1px solid #262a29; border-bottom-color: transparent; border-radius: calc(3 * var(--u)) calc(3 * var(--u)) 0 0;
  background: linear-gradient(180deg, #171b1c 0%, #161a1b 55%, #111413 80%, #0e100f 100%);
  box-shadow: 0 calc(10 * var(--u)) calc(26 * var(--u)) rgba(0, 0, 0, 0.55); }
.xo-chip { position: absolute; top: calc(10.5 * var(--u)); width: calc(69 * var(--u)); height: calc(20 * var(--u)); border-radius: calc(2.5 * var(--u)); background: #262b2c; }
.xo-ticon { position: absolute; top: calc(15.5 * var(--u)); width: calc(10 * var(--u)); height: calc(10 * var(--u)); color: #7b8380; }
.xo-tlabel { position: absolute; top: calc(14.9 * var(--u)); font-size: calc(8.25 * var(--u)); line-height: 1.3; color: #858c89; white-space: nowrap; }
.xo-ticon.is-on, .xo-tlabel.is-on { color: #f2f5f3; }
.xo-tlabel.is-on { font-weight: 600; }
.xo-input { position: absolute; left: calc(12.5 * var(--u)); top: calc(38.5 * var(--u)); width: calc(496 * var(--u)); height: calc(104 * var(--u));
  border-radius: calc(2.5 * var(--u)); background: linear-gradient(180deg, #1f2324 0%, #1a1e1f 40%, #151918 75%, rgba(21, 25, 24, 0) 100%); }
.xo-ask { position: absolute; left: calc(10.5 * var(--u)); top: calc(7.2 * var(--u)); font-size: calc(10.6 * var(--u)); color: #cdd3d0; letter-spacing: 0.01em; }
.xo-tool { position: absolute; top: calc(155.5 * var(--u)); display: inline-flex; align-items: center; gap: calc(2 * var(--u)); font-size: calc(7.9 * var(--u)); color: #6e7572; white-space: nowrap; }
.xo-tool svg { width: calc(8 * var(--u)); height: calc(8 * var(--u)); }
.xo-clip { position: absolute; left: calc(456 * var(--u)); top: calc(154 * var(--u)); width: calc(11 * var(--u)); height: calc(11 * var(--u)); color: #6e7572; }
.xo-send { position: absolute; left: calc(475 * var(--u)); top: calc(149 * var(--u)); width: calc(22 * var(--u)); height: calc(22 * var(--u)); padding: calc(4.5 * var(--u));
  border-radius: calc(2 * var(--u)); background: #8f9492; color: #151817; }
@media (max-width: 699.98px) {
  .xvh-art { width: 680px; max-width: none; margin-left: 50%; transform: translateX(-50%); }
}
.xv-still { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---- About page FAQ ---- */
.xab-faq { border-top: 1px solid #d5ddd6; }
.xab-faq-item { border-bottom: 1px solid #d5ddd6; }
.xab-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.35rem 0; cursor: pointer; list-style: none; }
.xab-faq-item summary::-webkit-details-marker { display: none; }
.xab-faq-item summary h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.005em; }
.xab-faq-item summary span { font-size: 1.5rem; line-height: 1; color: #545a51; transition: transform 250ms; }
.xab-faq-item[open] summary span { transform: rotate(45deg); }
.xab-faq-item p { padding: 0 2.5rem 1.5rem 0; font-size: 1rem; line-height: 1.65; color: #2c3333; }
.xab-faq-item p a { text-decoration: underline; text-underline-offset: 3px; }

/* mobile menu checkbox: keep it fixed so toggling the menu never scrolls the page */
#mobile-nav-toggle { position: fixed !important; top: 0; left: 0; }

/* ================================================================
   Homepage: How it works (three steps + sample sourced answer)
   ================================================================ */
.xhw { background: #f4f6f5; color: #0c0e0e; padding: clamp(4.5rem, 9vw, 9rem) 0; }
.xhw-head { max-width: 46rem; }
.xhw-eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-apk-narrative-mono, ui-monospace, monospace);
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #5c6664; }
.xhw-eyebrow::before { content: ""; width: 0.75rem; height: 0.25rem; background: var(--color-zest, #00c805); }
.xhw-title { margin-top: 1.25rem; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 400; }
.xhw-grid { display: grid; gap: 3rem; margin-top: clamp(3rem, 6vw, 5.5rem); align-items: center; }
@media (min-width: 960px) { .xhw-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 5rem; } }
.xhw-steps { display: grid; }
.xhw-step { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.75rem 0; border-top: 1px solid #d5dbd9; }
.xhw-step:last-child { border-bottom: 1px solid #d5dbd9; }
.xhw-num { font-family: var(--font-apk-narrative-mono, ui-monospace, monospace); font-size: 0.8125rem; color: #00a004; padding-top: 0.35rem; }
.xhw-step-t { font-size: 1.5rem; line-height: 1.2; font-weight: 400; }
.xhw-step-d { margin-top: 0.5rem; font-size: 1rem; line-height: 1.55; color: #4a5352; max-width: 30rem; }
.xhw-card { position: relative; margin: 0; background: #0c0e0e; color: #fff; border: 1px solid #262c2c; box-shadow: 0 30px 60px -30px rgba(12, 14, 14, 0.45); }
.xhw-card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 3.5rem; height: 0.3rem; background: var(--color-zest, #00c805); }
.xhw-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.85rem 1.25rem; border-bottom: 1px solid #262c2c; }
.xhw-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #2f3636; }
.xhw-tag { margin-left: auto; font-family: var(--font-apk-narrative-mono, ui-monospace, monospace); font-size: 0.6875rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: #8a9492; }
.xhw-q, .xhw-a { padding: 1.4rem 1.5rem 0; }
.xhw-q-l { display: block; font-family: var(--font-apk-narrative-mono, ui-monospace, monospace); font-size: 0.6875rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: #8a9492; margin-bottom: 0.5rem; }
.xhw-q p { font-size: 1.125rem; line-height: 1.4; padding: 0.85rem 1rem; background: #161a1a; border: 1px solid #262c2c; }
.xhw-a p { font-size: 1rem; line-height: 1.65; color: #dfe6e4; }
.xhw-a sup { display: inline-grid; place-items: center; min-width: 1.05rem; height: 1.05rem; margin: 0 0.1rem 0 0.15rem; padding: 0 0.2rem;
  font-size: 0.625rem; line-height: 1; vertical-align: 0.45em; background: rgba(0, 200, 5, 0.16); color: #3ee043; border: 1px solid rgba(0, 200, 5, 0.45); }
.xhw-src { margin: 1.5rem 1.5rem 0; border-top: 1px solid #262c2c; }
.xhw-src li { display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 0; border-bottom: 1px solid #1c2121; font-size: 0.875rem; }
.xhw-src-n { flex: none; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; font-size: 0.6875rem; color: #3ee043; border: 1px solid rgba(0, 200, 5, 0.45); }
.xhw-src-t { flex: 1; min-width: 0; color: #fff; }
.xhw-src-m { flex: none; font-family: var(--font-apk-narrative-mono, ui-monospace, monospace); font-size: 0.75rem; color: #8a9492; }
.xhw-cap { padding: 1rem 1.5rem 1.25rem; font-size: 0.75rem; color: #6d7775; }
@media (max-width: 639.98px) {
  .xhw-step { grid-template-columns: 2.25rem 1fr; padding: 1.4rem 0; }
  .xhw-step-t { font-size: 1.25rem; }
  .xhw-q, .xhw-a { padding: 1.2rem 1.1rem 0; }
  .xhw-src { margin: 1.25rem 1.1rem 0; }
  .xhw-cap { padding: 0.9rem 1.1rem 1.1rem; }
}
/* "One place for all your data": keep the product still at a modest size, centred beside the text */
.xv-oneplace { width: 100%; max-width: 30rem; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .xv-oneplace { flex: 0 1 30rem; } }

/* ================================================================
   Legal page: plain-English summary
   ================================================================ */
.xv-sum { display: grid; gap: 3rem; }
@media (min-width: 768px) { .xv-sum { grid-template-columns: 1fr 1fr; gap: 3rem 2.5rem; } }
.xv-sum-h { font-size: 1.25rem; line-height: 1.3; padding-bottom: 1rem; border-bottom: 1px solid var(--color-grey-2, #c3cfc3); position: relative; }
.xv-sum-h::before { content: ""; position: absolute; left: 0; bottom: -2px; width: 2rem; height: 3px; background: var(--color-zest, #00c805); }
.xv-sum-h a { color: inherit; }
.xv-sum-h a:hover { opacity: 0.7; }
.xv-sum ul { display: grid; }
.xv-sum li { display: grid; gap: 0.35rem; padding: 1.1rem 0; border-bottom: 1px solid #e3e8e6; }
.xv-sum-t { font-size: 1rem; font-weight: 500; color: #0c0e0e; }
.xv-sum-d { font-size: 0.9375rem; line-height: 1.55; color: #5c6664; }
.xv-sum-contact { grid-column: 1 / -1; font-size: 0.9375rem; color: #5c6664; }
.xv-sum-contact a { color: #0c0e0e; text-decoration: underline; text-underline-offset: 3px; }

/* ================================================================
   404 page
   ================================================================ */
.x404 { position: relative; display: flex; flex-direction: column; min-height: calc(100dvh - var(--header-height, 3.5rem));
  background: #0c0e0e; color: #fff; overflow: hidden; }
.x404-hero { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(4rem, 12vh, 10rem) 1.5rem 2rem; }
.x404-eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-apk-narrative-mono, ui-monospace, monospace);
  font-size: 0.75rem; letter-spacing: 0.08em; color: #c3cfc3; }
.x404-eyebrow::before { content: ""; width: 0.75rem; height: 0.25rem; background: var(--color-zest, #00c805); }
.x404-title { margin-top: 1.5rem; font-size: clamp(2rem, 1.1rem + 3vw, 3.5rem); line-height: 1.12; letter-spacing: -0.015em; font-weight: 400; }
.x404-sub { margin-top: 1rem; max-width: 32rem; font-size: 1rem; line-height: 1.55; color: #9aa6a3; }
.x404-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.x404-btn { display: inline-flex; align-items: center; height: 2.5rem; padding: 0 1rem; background: #fff; color: #0c0e0e;
  font-size: 0.9375rem; font-weight: 500; transition: background 300ms, color 300ms, border-color 300ms; }
.x404-btn:hover { background: #deefe5; }
.x404-btn--ghost { background: transparent; color: #fff; border: 1px solid #3a4242; }
.x404-btn--ghost:hover { background: transparent; border-color: var(--color-zest, #00c805); color: #fff; }
.x404-art { display: block; width: 100%; max-width: 90rem; height: auto; margin: auto auto 0; font-family: var(--font-apk-narrative, "APK Narrative", Inter, sans-serif); }
@media (max-width: 639.98px) {
  .x404-hero { padding-top: 4.5rem; }
  .x404-title br { display: none; }
  .x404-art { width: 170%; max-width: none; margin: 2.5rem 0 0 -35%; }
}

/* ================================================================
   xv/ page headers (About, APIs, Research): dark take on the Legal header
   ================================================================ */

.xv-dhead-intro { max-width: 42rem; font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem); line-height: 1.5; color: #b9c4c1; }
.xv-dhead > svg { display: block; }
/* security card rows (three cards): one card per row on phones so the pictures stay readable */
@media (max-width: 767.98px) {
  #security-highlights .grid-cols-2,
  #enterprise-trust .grid-cols-2 { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
  #security-highlights .grid-cols-2 img,
  #enterprise-trust .grid-cols-2 img { max-width: 24rem; margin: 0 auto; }
}
/* Legal page: support contact under the title */
.xv-support { font-size: 0.9375rem; color: #5c6664; }
.xv-support a { color: #0c0e0e; text-decoration: underline; text-underline-offset: 3px; }
/* ================================================================
   Phone fixes
   ================================================================ */
@media (max-width: 639.98px) {
  /* hero headline wraps naturally instead of leaving "analysis" on its own line */
  .xvh-title { white-space: normal; max-width: 21rem; }
  /* page titles (xv/about, xv/apis, xv/research) stay big on phones */
  .xv-dhead h1.text-blog-heading { font-size: clamp(2.75rem, 12vw, 3.5rem) !important; line-height: 1.05; }
}
@media (max-width: 699.98px) {
  /* hero search box: crop the empty art below it and make its labels readable */
  .xvh-art { aspect-ratio: auto; height: 205px; overflow: hidden; }
  .xvh-art > .xvh-geom { height: auto; bottom: auto; aspect-ratio: 1001 / 606; }
  .xo-ticon { display: none; }
  .xo-tlabel { top: 10px; font-size: 11px; }
  .xo-tlabel[style*="left:calc(32.0"] { left: 17px !important; }
  .xo-tlabel[style*="left:calc(274.5"] { left: 104px !important; }
  .xo-tlabel[style*="left:calc(357.5"] { left: 160px !important; }
  .xo-tlabel[style*="left:calc(444.5"] { left: 252px !important; }
  .xo-tlabel[style*="left:calc(107.0"], .xo-tlabel[style*="left:calc(201.5"] { display: none; }
  .xo-chip { left: 8px !important; top: 5px; width: 80px; height: 24px; border-radius: 4px; }
  .xo-input { top: 36px; }
  .xo-ask { top: 8px; left: 10px; font-size: 13px; }
  .xo-tool { font-size: 10px; gap: 3px; }
  .xo-tool svg { width: 9px; height: 9px; }
  .xo-tool[style*="left:calc(77"] { left: 78px !important; }
}
@media (max-width: 767.98px) {
  /* API examples wrap instead of scrolling sideways */
  .xa-code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
  /* no zoom-in on iPhone when a form field is tapped */
  input, select, textarea { font-size: 16px !important; }
  /* easier-to-tap footer links */
  .xf-links a, .xf-legal a { display: inline-block; padding: 0.35rem 0; }
}
/* Legal page: space between paragraphs so the terms are easier to read */
.payload-richtext p + p, .payload-richtext ul + p, .payload-richtext p + ul { margin-top: 0.9em; }

/* ================================================================
   Research note header (light, editorial) - its own look, not the dark page header
   ================================================================ */
.xv-nhead { background: #f4f6f5; color: #0c0e0e; border-bottom: 1px solid #dfe5e2; padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(2.75rem, 6vw, 5rem); }
.xv-nhead-in { display: grid; gap: 2.5rem; align-items: end; max-width: 75rem; margin: 0 auto; }
@media (min-width: 1024px) { .xv-nhead-in { grid-template-columns: minmax(0, 1fr) 19rem; gap: 4.5rem; } }
.xv-nhead-back { display: inline-block; font-size: 0.875rem; color: #5c6664; transition: color 200ms; }
.xv-nhead-back:hover { color: #0c0e0e; }
.xv-nhead-title { margin-top: 2.25rem; max-width: 50rem; font-size: clamp(2.1rem, 1.2rem + 3vw, 3.75rem); line-height: 1.05; letter-spacing: -0.025em; font-weight: 400; text-wrap: balance; }
.xv-nhead-dek { margin-top: 1.5rem; max-width: 40rem; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; color: #4a5352; }
.xv-nhead-card { background: #fff; border: 1px solid #dfe5e2; padding: 1.5rem 1.5rem 1.25rem; position: relative; }
.xv-nhead-card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 3rem; height: 4px; background: var(--color-zest, #00c805); }
.xv-nhead-card-h { font-family: var(--font-apk-narrative-mono, ui-monospace, monospace); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: #5c6664; }
.xv-nhead-card dl { margin-top: 1rem; }
.xv-nhead-card dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid #edf1ef; font-size: 0.9375rem; }
.xv-nhead-card dt { color: #5c6664; }
.xv-nhead-card dd { color: #0c0e0e; text-align: right; }
.xv-nhead-card-link { display: inline-block; margin-top: 0.9rem; font-size: 0.875rem; color: #0c0e0e; text-decoration: underline; text-underline-offset: 3px; }
.xv-nhead-card-link:hover { color: #00a004; }
@media (max-width: 1023.98px) { .xv-nhead-card { max-width: 26rem; } }
/* the cover now sits under a light header: give it breathing room */
.xv-nhead + .xv-body { padding-top: clamp(2rem, 4vw, 3.5rem); }
.xv-nhead + .xv-body .xv-cover { margin-top: 0; }
/* security cards (now two per row): keep the pictures at a natural size instead of stretching */
#security-highlights .grid-cols-2 img,
#enterprise-trust .grid-cols-2 img { max-width: 24rem; margin-left: auto; margin-right: auto; }
/* How it works: product screenshot in place of the coded example card */
.xhw-shot { margin: 0; }
.xhw-shot img { display: block; width: 100%; max-width: 34rem; height: auto; margin: 0 auto; }
.xhw-shot .xhw-cap { padding: 0.75rem 0 0; text-align: center; color: #6d7775; }
/* ================================================================
   APIs page: overview cards + detail rows with code panels
   ================================================================ */
.xap { background: #f5f7f6; color: #0c0e0e; }
.xap-top { position: relative; padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.xap-top .container { position: relative; }
.xap-deco { position: absolute; top: 2.5rem; right: 1.5rem; width: 7.5rem; height: auto; }
.xap-deco--b { position: static; display: block; width: 6.5rem; margin-top: 1rem; }
@media (max-width: 767.98px) { .xap-deco { display: none; } }
.xap-mark { display: block; width: 0.9rem; height: 0.25rem; background: var(--color-zest, #00c805); }
.xap-top h1 { margin-top: 1.25rem; font-size: clamp(1.875rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.xap-cards { display: grid; gap: 0 6%; max-width: 62rem; margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 768px) { .xap-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.xap-card { padding: 1.5rem 0 1.75rem; scroll-margin-top: 6rem; }
/* left column: grey rule underneath; right column: green rule above, set lower */
.xap-card:nth-child(odd) { border-bottom: 1px solid #c3cfc3; }
.xap-card:nth-child(even) { border-top: 1px solid #9aa4a1; }
@media (min-width: 768px) { .xap-card:nth-child(even) { margin-top: 2rem; } .xap-card:nth-child(3) { margin-top: 0.25rem; } }
@media (max-width: 767.98px) { .xap-card:nth-child(even) { border-top: 0; border-bottom: 1px solid #c3cfc3; } }
.xap-icon { display: block; width: 1.75rem; height: 1.75rem; }
.xap-card h3 { margin-top: 1rem; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.005em; }
.xap-line { margin-top: 0.4rem; max-width: 24rem; font-size: 0.75rem; line-height: 1.5; color: #5c6664; }
.xap-card ul { margin-top: 0.9rem; display: grid; gap: 0.3rem; max-width: 24rem; }
.xap-card li { position: relative; padding-left: 0.85rem; font-size: 0.6875rem; line-height: 1.45; color: #5c6664; }
.xap-card li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.25rem; height: 0.25rem; background: #0c0e0e; }
.xap-detail { background: #f5f7f6; padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.xap-head { max-width: 62rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.xap-eyebrow { font-size: 0.75rem; color: #0c0e0e; }
.xap-head h2 { margin-top: 0.9rem; font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
.xap-head p:last-child { margin-top: 0.9rem; font-size: 0.875rem; line-height: 1.55; color: #5c6664; }
.xap-row { display: grid; gap: 2rem; padding: clamp(1.5rem, 3vw, 2.5rem) 0; align-items: center; }
@media (min-width: 900px) { .xap-row { grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr); gap: 0; } }
/* the description sits in an indented column framed by rules above and below */
.xap-text { padding: clamp(2.5rem, 6vw, 5rem) 12%; border-top: 1px solid #c3cfc3; border-bottom: 1px solid #c3cfc3; }
.xap-text h3 { font-size: clamp(1.25rem, 1rem + 0.6vw, 1.625rem); font-weight: 400; letter-spacing: -0.015em; }
.xap-text p { margin-top: 1rem; font-size: 0.8125rem; line-height: 1.65; color: #6d7775; }
.xap-code { background: #0c0e0e; color: #c3cfc3; min-width: 0; box-shadow: 0 0 0 0.5rem #fff; }
.xap-code-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1.1rem; border-bottom: 1px solid #1f2525; }
.xap-code-bar i { width: 0.8rem; height: 0.55rem; background: linear-gradient(#8a9492 0 1.5px, transparent 1.5px 4px, #8a9492 4px 5.5px, transparent 5.5px); }
.xap-code-bar em { font-style: normal; font-family: var(--font-apk-narrative-mono, ui-monospace, monospace); font-size: 0.75rem; color: #8a9492; }
.xap-code pre { margin: 0; padding: 1rem 1.25rem 1.25rem; overflow: auto; max-height: clamp(14rem, 24vw, 20rem); font-family: var(--font-apk-narrative-mono, ui-monospace, monospace);
  font-size: 0.6875rem; line-height: 1.6; scrollbar-width: thin; scrollbar-color: #2e3534 transparent; }
.xap-code .k { color: #4fd17a; }
.xap-code .s { color: #dfe6e4; }
.xap-code .n { color: #e8db67; }
@media (max-width: 899.98px) { .xap-text { padding: 2rem 0; } }
@media (max-width: 767.98px) { .xap-code pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.7rem; } }

/* footer: featured research card above the links, all on one left edge */
.xf-feature { display: block; margin-bottom: 2rem; color: #fff; }
@media (min-width: 900px) {
  .xf-top { grid-template-columns: minmax(0, 1fr) auto; }
  .xf-links { width: 18rem; }
  .xf-feature { margin-bottom: 1.5rem; }
  .xf-links ul { gap: 0.7rem; padding-left: 0; justify-items: end; text-align: right; }
}
.xf-feature img { display: block; width: 100%; max-width: 18rem; height: auto; }
.xf-feature-text { display: grid; gap: 0.35rem; margin-top: 0.85rem; }
.xf-feature-label { font-size: 0.75rem; color: #9aa4a1; }
.xf-feature-title { font-size: 0.9375rem; line-height: 1.3; transition: opacity 300ms; }
.xf-feature:hover .xf-feature-title { opacity: 0.65; }
.xf-links a.xf-feature { display: block; padding: 0; font-size: inherit; }
.xf-links a.xf-feature:hover { opacity: 1; }

/* research notes: tables, sub-headings, numbered steps */
.xv-prose .xv-table { margin: 1.5rem 0 1.75rem; overflow-x: auto; border: 0; font-variant-numeric: normal; }
.xv-prose .xv-table table { width: 100%; min-width: 26rem; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; }
.xv-prose .xv-table th { padding: 0.65rem 0.75rem; border: 0; border-bottom: 1px solid #0c0e0e; background: none; font-weight: 500; text-align: left; white-space: nowrap; color: #0c0e0e; }
.xv-prose .xv-table td { padding: 0.65rem 0.75rem; border: 0; border-bottom: 1px solid #e3e8e6; color: #2c3333; }
.xv-prose .xv-table th:first-child, .xv-prose .xv-table td:first-child { padding-left: 0; }
.xv-prose .xv-table th:not(.r), .xv-prose .xv-table td:not(.r) { text-align: left; }
.xv-prose .xv-table th.r, .xv-prose .xv-table td.r { text-align: right; white-space: nowrap; }
.xv-prose h3 { margin: 2.25rem 0 0.75rem; font-size: 1.1875rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: #0c0e0e; }
.xv-prose ul + p, .xv-prose .xv-table + p, .xv-prose ol + p { margin-top: 1rem; }
.xv-prose ol.xv-steps { margin: 1rem 0 1.25rem; padding-left: 1.4rem; list-style: decimal; }
.xv-prose ol.xv-steps li { display: list-item; margin-top: 0.6rem; padding-left: 0.25rem; }
.xv-prose .xv-smallprint { margin-top: 2.5rem; font-size: 0.8125rem; color: #6d7775; }

/* error pages: black page under the top bar, the number at the foot of the screen */
.x404 { position: relative; display: flex; flex-direction: column; min-height: calc(100dvh - var(--header-height, 3.5rem)); overflow: hidden; background: #000; color: #fff; }
body:has(.x404) header { background: #000 !important; }
.x404-hero { padding: clamp(3rem, 10.5vh, 7rem) 1.25rem 2.5rem; }
.x404-eyebrow { gap: 0; font-family: inherit; font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: #9a9a9a; }
.x404-eyebrow::before { content: none; }
.x404-title { margin-top: 1.1rem; font-size: clamp(1.85rem, 1rem + 1.6vw, 2.6rem); line-height: 1.25; letter-spacing: -0.005em; font-weight: 400; }
.x404-actions { margin-top: 1.5rem; }
.x404-btn { height: 2.6rem; padding: 0 1.25rem; border-radius: 4px; background: #fff; color: #000; font-size: 0.875rem; font-weight: 400; }
.x404-art { display: block; flex: none; width: 100%; max-width: none; height: auto; margin: auto 0 0; }
@media (max-width: 899.98px) {
  .x404-hero { padding-top: 3.5rem; }
  .x404-title br { display: inline; }
  .x404-art { width: 160vw; margin: auto 0 0 -30vw; }
}

/* footer: Instagram and Medium icon buttons beside the email button: same height, square corners, dark */
.xf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 2rem; }
.xf-actions .xf-btn { margin-top: 0; height: 2.75rem; }
.xf-social { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; flex: none;
  background: #000; color: #fff; transition: opacity 300ms; }
.xf-social:hover { opacity: 0.75; }
.xf-social svg { display: block; width: 1.375rem; height: 1.375rem; }
@media (max-width: 899.98px) { .xf-actions { margin-top: 1.75rem; } }

/* resources: drag the Recommended carousel with the mouse */
@media (hover: hover) and (pointer: fine) {
  .xrs-rec-track { cursor: grab; }
  .xrs-rec-track.xrs-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
  .xrs-rec-track.xrs-dragging a { pointer-events: none; }
  .xrs-rec-track img { -webkit-user-drag: none; user-select: none; }
}

/* ================================================================
   Terms / Privacy pages
   ================================================================ */
.xv-sum--one { grid-template-columns: minmax(0, 1fr) !important; }
.xv-see-also { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #e3e8e6; font-size: 0.9375rem; color: #5c6664; }
.xv-see-also a { color: #0c0e0e; text-decoration: underline; text-underline-offset: 3px; }
.xv-secnum { display: block; margin-bottom: 0.5rem; font-family: var(--font-apk-narrative-mono, ui-monospace, monospace); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: #5c6664; }

/* ================================================================
   Research page (dark): big title, Recommended carousel, then all articles
   ================================================================ */
.xrs { background: #0c0e0e; color: #fff; }
.xrs-head { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3.5rem); overflow: hidden; }
.xrs-head-in { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); padding: 0 1.25rem; }
.xrs-mark { flex: none; width: 1.5rem; height: auto; }
.xrs-head h1 { flex: none; font-size: clamp(3.5rem, 1.5rem + 8vw, 8.5rem); font-weight: 400; letter-spacing: -0.03em; line-height: 0.95; color: #fff; }
.xrs-bars { flex: 1 1 auto; min-width: 0; height: clamp(3rem, 6vw, 6rem); }
@media (max-width: 639.98px) { .xrs-mark, .xrs-bars { display: none; } }
.xrs-rec { padding: 0 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.xrs-rec-in { display: grid; gap: 1.25rem; padding-left: 1.25rem; }
@media (min-width: 900px) { .xrs-rec-in { grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; } }
.xrs-rec-side { display: flex; align-items: center; justify-content: space-between; padding-right: 1.25rem; }
@media (min-width: 900px) { .xrs-rec-side { flex-direction: column; align-items: stretch; padding-right: 0; } }
.xrs-rec-label { font-size: 0.875rem; font-weight: 500; color: #fff; }
.xrs-rec-pager { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 0; font-size: 0.8125rem; color: #fff; }
@media (min-width: 900px) { .xrs-rec-pager { border-top: 1px solid #3a4140; border-bottom: 1px solid #3a4140; } }
.xrs-rec-pager button { display: flex; padding: 0.25rem; color: #9aa4a1; cursor: pointer; transition: color 200ms; }
.xrs-rec-pager button:hover { color: #fff; }
.xrs-rec-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-right: 1.25rem; }
.xrs-rec-track::-webkit-scrollbar { display: none; }
.xrs-slide { position: relative; flex: 0 0 min(85vw, 46rem); aspect-ratio: 16 / 10; overflow: hidden; scroll-snap-align: start; background: #151818; color: #fff; }
@media (min-width: 900px) { .xrs-slide { flex-basis: min(38%, 34rem); } }
.xrs-slide img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.xrs-slide:hover img { transform: scale(1.03); }
.xrs-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 10, 10, 0.92) 0%, rgba(8, 10, 10, 0.55) 26%, rgba(8, 10, 10, 0) 52%); }
.xrs-slide-text { position: absolute; z-index: 1; left: 1.25rem; right: 3.25rem; bottom: 1.15rem; display: grid; gap: 0.4rem; }
.xrs-slide-topic { font-family: var(--font-apk-narrative-mono, ui-monospace, monospace); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: #dfe6e4; }
.xrs-slide-title { font-size: clamp(1rem, 0.9rem + 0.35vw, 1.1875rem); line-height: 1.25; letter-spacing: -0.01em; }
.xrs-slide-arrow { position: absolute; z-index: 1; right: 1.25rem; bottom: 1.2rem; display: flex; }
.xrs-tools { background: #fff; color: #0c0e0e; border-bottom: 1px solid #d8dddb; }
.xrs-tools-in { max-width: 68.5rem; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1rem 1.25rem; }
.xrs-search { display: flex; flex: 1 1 14rem; align-items: center; gap: 0.6rem; color: #6d7775; }
.xrs-search input { width: 100%; max-width: 24rem; background: transparent; font-size: 0.875rem; color: #0c0e0e; outline: none; }
.xrs-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.xrs-sub label { font-size: 0.875rem; font-weight: 500; }
.xrs-sub-box { display: flex; align-items: center; background: #f3f4f3; }
.xrs-sub-box input { width: 13rem; padding: 0.55rem 0.75rem; background: transparent; font-size: 0.8125rem; color: #0c0e0e; outline: none; }
.xrs-sub-box button { display: flex; padding: 0.55rem 0.7rem; cursor: pointer; }
.xrs-sub-msg { font-size: 0.875rem; font-weight: 500; color: #0c0e0e; }
.xrs-sub-msg[hidden] { display: none; }
.xrs-sub-msg.is-done::before { content: ""; display: inline-block; width: 0.75rem; height: 0.25rem; margin-right: 0.6rem; vertical-align: middle; background: #00c805; }
.xrs-sub-msg.is-error { flex-basis: 100%; font-weight: 400; color: #b3323d; }
.xrs-wrap { max-width: 68.5rem; margin: 0 auto; padding: 0 1.25rem; }
.xrs-list { background: #fff; color: #0c0e0e; padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 6rem); }
.xrs-list h2 { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.5rem); font-weight: 400; letter-spacing: -0.02em; color: #0c0e0e; }
.xrs-grid { display: grid; gap: 2.5rem 1.25rem; margin-top: clamp(2rem, 4vw, 3rem); grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
@media (min-width: 1000px) { .xrs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.xrs-card { display: block; color: inherit; }
.xrs-card[hidden] { display: none; }
.xrs-cover { aspect-ratio: 16 / 10; overflow: hidden; background: #e6e4dc; }
.xrs-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.xrs-card:hover .xrs-cover img { transform: scale(1.03); }
.xrs-meta { margin-top: 0.85rem; font-size: 0.6875rem; color: #6d7775; }
.xrs-meta span { margin: 0 0.35rem; }
.xrs-card h3 { margin-top: 0.55rem; font-size: 0.9375rem; font-weight: 500; line-height: 1.35; color: #10201d; }
.xrs-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.xrs-dek { margin-top: 0.45rem; font-size: 0.75rem; line-height: 1.5; color: #6d7775; }
.xrs-none { margin-top: 2rem; font-size: 0.9375rem; color: #6d7775; }
.xrs-none[hidden] { display: none; }
.xrs-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.xrs-pages:empty { display: none; }
.xrs-pages button { min-width: 2.25rem; height: 2.25rem; padding: 0 0.5rem; border: 1px solid #d8dddb; font-size: 0.8125rem; color: #0c0e0e; cursor: pointer; transition: background 200ms, color 200ms; }
.xrs-pages button:hover:not(:disabled) { background: #f3f4f3; }
.xrs-pages button[aria-current] { background: #0c0e0e; border-color: #0c0e0e; color: #fff; }
.xrs-pages button:disabled { opacity: 0.35; cursor: default; }
