/* alvinsnow.com — theme for the SQL vs Snowsight guides.
   tools/build.py links this file at the END of each guide's <head>, after the guide's own
   <style>, so equal-specificity rules here win. The guide HTML itself is never edited.
   It covers both guide families: the "cs-" family (warehouses, cortex-search, slack-teams)
   and the plain-class family (cortex-analyst). Palette and type mirror site/assets/site.css. */

:root {
  color-scheme: light dark;
  --g-paper:   light-dark(#f4f7f9, #0a141d);
  --g-paper-2: light-dark(#e8eef2, #111f2b);
  --g-ink:     light-dark(#0c1e2c, #e5edf3);
  --g-ink-2:   light-dark(#3b5163, #a8bac8);
  --g-ink-3:   light-dark(#687e8f, #7690a3);
  --g-rule:    color-mix(in srgb, var(--g-ink) 88%, var(--g-paper));
  --g-hair:    color-mix(in srgb, var(--g-ink) 15%, var(--g-paper));
  --g-accent:     light-dark(#1d8fd0, #5cc6f2);
  --g-accent-ink: light-dark(#0b679d, #82d4f6);
  --g-fill:       light-dark(#0f6aa3, #5cc6f2);
  --g-on-fill:    light-dark(#ffffff, #052033);
  --g-tint:    color-mix(in srgb, var(--g-accent) 9%, var(--g-paper));
  --g-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --g-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --g-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --g-gutter: clamp(18px, 4.2vw, 56px);

  /* cs- family */
  --cs-bg: var(--g-paper);
  --cs-text: var(--g-ink);
  --cs-muted: var(--g-ink-2);
  --cs-line: var(--g-hair);
  --cs-brand: var(--g-accent);
  --cs-brand-text: var(--g-accent-ink);
  --cs-surface: var(--g-paper-2);
  --cs-surface-2: var(--g-tint);
  --cs-warn-bg: var(--g-paper-2);
  --cs-warn-line: var(--g-rule);
  --cs-warn-text: var(--g-ink);
  --cs-hero-bg: var(--g-paper);
  --cs-hero-bg-2: var(--g-paper);
  --cs-hero-text: var(--g-ink);
  --cs-hero-muted: var(--g-ink-2);
  --cs-hero-line: var(--g-rule);
  --cs-code-bg: #0b1823;
  --cs-code-head: #10202d;
  --cs-code-text: #e2ecf3;

  /* plain-class family */
  --artifact-background: var(--g-paper);
  --artifact-background-light: var(--g-paper-2);
  --artifact-border-light: var(--g-hair);
  --artifact-border-dark: color-mix(in srgb, var(--g-ink) 32%, var(--g-paper));
  --artifact-primary-brand: var(--g-accent);
  --artifact-primary-text: var(--g-accent-ink);
  --artifact-primary-hover: var(--g-ink);
  --artifact-text-primary: var(--g-ink);
  --artifact-text-secondary: var(--g-ink-2);
  --artifact-text-highlight: var(--g-tint);
  --artifact-hero-bg: var(--g-paper);
  --artifact-hero-text: var(--g-ink);
  --artifact-hero-muted: var(--g-ink-2);
  --artifact-hero-accent: var(--g-accent);
  --artifact-hero-line: var(--g-rule);
  --artifact-code-bg: #0b1823;
  --artifact-code-head: #10202d;
  --artifact-code-border: #0b1823;
  --artifact-code-text: #e2ecf3;
  --artifact-code-muted: #8fa6b8;
  --artifact-code-kw: #6fd0f6;
  --artifact-code-str: #a8e6cf;
  --artifact-code-com: #7b91a3;
  --artifact-code-fn: #9fd6c2;
  --artifact-code-num: #c5b8ff;
  --artifact-code-var: #ffffff;
  --artifact-code-btn-hover: #1a3142;

  --font-sans: var(--g-sans);
  --font-mono: var(--g-mono);
}

body { background: var(--g-paper); color: var(--g-ink); font-family: var(--g-sans); font-size: 16.5px; line-height: 1.65; }
::selection { background: var(--g-fill); color: var(--g-on-fill); }
a { color: var(--g-accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--g-ink); }
:focus-visible { outline: 2px solid var(--g-accent); outline-offset: 3px; }
code { font-family: var(--g-mono); font-size: .86em; background: var(--g-paper-2); color: var(--g-ink); border: 1px solid var(--g-hair); border-radius: 2px; padding: .05em .35em; }
.cs-code pre code, .code pre code, .code code { border: 0; background: transparent; padding: 0; }

/* The guides fade their hero in with opacity; previews and screenshots catch it at 0. */
.cs-fade, .fade-up { animation: none; }

/* ---------------- hero ---------------- */
.cs-hero, .hero {
  position: relative; overflow: hidden; color: var(--g-ink); border-bottom: 1px solid var(--g-rule);
  background: var(--g-paper);
  background-image: linear-gradient(var(--g-hair) 1px, transparent 1px), linear-gradient(90deg, var(--g-hair) 1px, transparent 1px);
  background-size: 44px 44px; background-position: -1px -1px;
}
.cs-hero::after, .hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 95% at 22% 30%, transparent 30%, var(--g-paper) 82%); }
.cs-hero-inner, .hero-inner { position: relative; z-index: 1; max-width: 1240px;
  padding: clamp(48px, 8vw, 104px) var(--g-gutter) clamp(40px, 6vw, 76px); }
.cs-eyebrow, .hero .eyebrow {
  display: inline-block; margin: 0 0 26px; padding: 6px 12px; border: 1px solid var(--g-rule); background: var(--g-paper);
  font: 500 .72rem/1.5 var(--g-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--g-ink-2);
}
.cs-hero h1, .hero h1 {
  font-family: var(--g-serif); font-optical-sizing: auto; font-weight: 350; text-transform: none;
  font-size: clamp(2.5rem, 6.6vw, 5.6rem); line-height: .98; letter-spacing: -.035em; max-width: 13ch;
  margin: 0 0 26px; color: var(--g-ink);
}
.cs-hero h1 .accent, .hero h1 .accent { display: block; font-style: italic; font-weight: 350; color: var(--g-accent); }
.cs-lede, .hero .lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.6; color: var(--g-ink-2); max-width: 40em; margin: 0 0 30px; }
.cs-lede .cs-ui { font-size: .92em; }
.cs-ask, .hero .ask {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; max-width: 760px; margin: 0 0 34px;
  padding: 16px 20px; background: var(--g-paper); border: 1px solid var(--g-rule); border-radius: 0; box-shadow: 7px 7px 0 var(--g-ink);
}
.cs-ask-label, .hero .ask-label { font: 500 .72rem var(--g-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--g-ink-3); }
.cs-ask q, .hero .ask q { font-family: var(--g-serif); font-style: italic; font-weight: 400; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.2; letter-spacing: -.015em; color: var(--g-ink); }
.cs-ask q .cs-v { color: var(--g-accent-ink); font-weight: 400; }
.cs-filter { font: 500 .76rem var(--g-mono); color: var(--g-ink-2); border: 1px solid var(--g-hair); border-radius: 0; padding: 3px 8px; }
.cs-facts, .hero .facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin: 0; padding: 0;
  border-top: 1px solid var(--g-rule); max-width: 960px;
}
.cs-facts li, .hero .facts li { padding: 14px 20px 4px 0; font-size: .96rem; color: var(--g-ink); }
.cs-facts b, .hero .facts b { display: block; margin: 0 0 4px; font: 500 .7rem var(--g-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--g-ink-3); }

/* ---------------- layout + contents ---------------- */
.cs-layout, .layout { max-width: 1240px; padding-left: var(--g-gutter); padding-right: var(--g-gutter); gap: clamp(32px, 5vw, 72px); grid-template-columns: 210px minmax(0, 1fr); }
.cs-layout { padding-top: 40px; padding-bottom: 56px; }
.cs-toc-title, .toc-title { font: 500 .7rem var(--g-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--g-ink-3); margin: 6px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--g-rule); }
.cs-toc a, .toc a { border-radius: 0; border-left: 1px solid var(--g-hair); padding: 6px 12px; font-size: .88rem; color: var(--g-ink-2); background: transparent; }
.cs-toc a:hover, .toc a:hover { background: transparent; color: var(--g-ink); border-left-color: var(--g-ink); }
.cs-toc a.active, .toc a.active, .toc a.current { background: transparent; color: var(--g-ink); font-weight: 600; border-left: 2px solid var(--g-accent); }
.cs-toc ol ol { margin: 0; padding: 0; border-left: 0; }
.cs-toc ol ol a, .toc ol ol a { padding-left: 24px; font-size: .82rem; }

/* ---------------- chapters + steps ---------------- */
.cs-chapter, .chapter { border-top: 1px solid var(--g-rule); padding-top: clamp(36px, 5vw, 60px); }
.cs-chapter:first-child, main > .chapter:first-child { border-top: 0; padding-top: 12px; }
.cs-kicker, .kicker { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; font: 500 .74rem var(--g-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--g-accent-ink); }
.cs-chapter > .cs-kicker::after, .ch-head > .kicker::after { content: ""; flex: 1; height: 1px; background: var(--g-hair); transform: translateY(-3px); }
.cs-chapter h2, .chapter h2 { font-family: var(--g-serif); font-optical-sizing: auto; font-weight: 400; text-transform: none; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.02; letter-spacing: -.025em; margin: 0 0 14px; }
.cs-sub, .ch-sub { font-size: 1.08rem; color: var(--g-ink-2); }
.cs-h3 { font-family: var(--g-serif); font-weight: 400; font-size: 1.65rem; line-height: 1.1; letter-spacing: -.02em; }
.cs-subhead, .mini { font-weight: 600; }
.sub-h { font: 500 .72rem var(--g-mono); letter-spacing: .08em; color: var(--g-ink-3); }

.cs-step + .cs-step, .step + .step { border-top: 1px solid var(--g-hair); padding-top: 30px; }
.cs-step h3, .step h3 { font-family: var(--g-serif); font-optical-sizing: auto; font-weight: 400; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.15; letter-spacing: -.015em; gap: 14px; margin-bottom: 16px; }
.cs-step-id, .step-id { flex: none; font: 500 .72rem var(--g-mono); letter-spacing: .04em; color: var(--g-accent-ink); background: transparent; border: 1px solid var(--g-rule); border-radius: 0; padding: 3px 8px; position: relative; top: -4px; }

ol.cs-clicks > li::before { border-radius: 0; background: transparent; border: 1px solid var(--g-rule); color: var(--g-ink); font: 500 11px/22px var(--g-mono); width: 24px; height: 24px; }
ul.cs-clicks > li::before { border-radius: 0; width: 6px; height: 6px; top: .72em; background: var(--g-accent); }
ol.clicks > li::marker { color: var(--g-accent-ink); font-family: var(--g-mono); font-weight: 500; }
.cs-ui { background: var(--g-paper); border: 1px solid var(--g-hair); border-radius: 2px; }
.ui { color: var(--g-ink); }
.cs-v { color: var(--g-accent-ink); }
a.cs-jump, .jump { font: 500 .72rem var(--g-mono); color: var(--g-accent-ink); background: transparent; border: 1px solid var(--g-hair); border-radius: 0; padding: 1px 6px; }
a.cs-jump:hover, .jump:hover { text-decoration: none; border-color: var(--g-ink); color: var(--g-ink); }

/* ---------------- code ---------------- */
.cs-code, .code { border-radius: 0; border: 1px solid #0b1823; background: #0b1823; }
.cs-code-head, .code-head { background: #10202d; color: #8fa6b8; border-bottom: 1px solid rgba(255, 255, 255, .07); font-family: var(--g-mono); font-weight: 500; letter-spacing: .1em; }
.code-lang { font-family: var(--g-mono); color: #8fa6b8; }
.cs-copy, .copy { font: 500 .72rem var(--g-mono); letter-spacing: .04em; border-radius: 0; background: transparent; border: 1px solid rgba(226, 236, 243, .26); color: #e2ecf3; padding: 5px 12px; }
.cs-copy:hover, .copy:hover { background: #e2ecf3; color: #0b1823; }
.cs-copy.done, .copy.done { background: #5cc6f2; border-color: #5cc6f2; color: #052033; }
.cs-code pre, .code pre { font-family: var(--g-mono); font-size: .84rem; line-height: 1.75; }
.code code { font-family: var(--g-mono); font-size: .84rem; line-height: 1.75; }
.tok-kw { color: #6fd0f6; } .tok-str { color: #a8e6cf; } .tok-com { color: #7b91a3; } .tok-num { color: #c5b8ff; } .tok-fn { color: #9fd6c2; }
.tok-var { color: #ffffff; background: rgba(92, 198, 242, .22); text-decoration: none; border-radius: 2px; padding: 0 2px; }

/* ---------------- callouts ---------------- */
.cs-note { background: var(--g-paper-2); border: 0; border-left: 2px solid var(--g-ink); border-radius: 0; }
.cs-band, .band { background: var(--g-tint); border-left: 2px solid var(--g-accent); border-radius: 0; }
.cs-warn { background: var(--g-paper-2); border: 1px solid var(--g-rule); border-left: 4px solid var(--g-ink); border-radius: 0; }
.cs-warn .cs-kicker { color: var(--g-ink); }
.cs-shotnote { border-radius: 0; border-color: var(--g-hair); }
.tip { border: 1px solid var(--g-rule); }

/* ---------------- path cards, flow, maps, tables ---------------- */
.cs-path, .path { border-radius: 0; border: 1px solid var(--g-rule); background: var(--g-paper); padding: 24px 24px 22px; transition: box-shadow .3s ease, transform .3s ease; }
.cs-path:hover, .path:hover { box-shadow: 7px 7px 0 var(--g-ink); transform: translate(-2px, -2px); }
.cs-tag, .path .tag { font: 500 .72rem var(--g-mono); letter-spacing: .08em; color: var(--g-accent-ink); background: transparent; padding: 0; border-radius: 0; }
.cs-path h3, .path h3 { font-family: var(--g-serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.02em; }
.cs-go, .go { align-self: flex-start; font: 500 .76rem var(--g-mono); color: var(--g-ink); text-decoration: none; border: 1px solid var(--g-rule); padding: 8px 12px; transition: background .25s ease, color .25s ease; }
.cs-go:hover, .go:hover { background: var(--g-ink); color: var(--g-paper); text-decoration: none; }

.cs-stage { border-radius: 0; border: 1px solid var(--g-rule); }
.cs-stage h3 { font-family: var(--g-serif); font-weight: 400; font-size: 1.3rem; letter-spacing: -.015em; }
.cs-stage-num { font-family: var(--g-mono); font-weight: 500; }
.cs-flow-sep { color: var(--g-ink-3); font-weight: 400; }

.cs-map { border-radius: 0; border: 1px solid var(--g-rule); }
.cs-map-head span { background: var(--g-paper-2); font-family: var(--g-mono); font-weight: 500; }
.cs-map-num, .gl-num { font-family: var(--g-mono); color: var(--g-accent-ink); }
.glance { border-top: 1px solid var(--g-rule); }
.gl-head { font-family: var(--g-mono); }

.cs-table { border-radius: 0; border: 1px solid var(--g-rule); }
.cs-table thead th { background: var(--g-paper-2); font-family: var(--g-mono); font-weight: 500; }
.compare thead th { font-family: var(--g-mono); border-bottom: 1px solid var(--g-rule); }
.cs-clauses, .clauses { border-top: 1px solid var(--g-rule); }

/* ---------------- screenshots ---------------- */
.cs-shot img, .shot img { border-radius: 0; border: 1px solid var(--g-rule); box-shadow: 6px 6px 0 color-mix(in srgb, var(--g-ink) 12%, transparent); }
.cs-shot figcaption, .shot figcaption { font-size: .86rem; color: var(--g-ink-3); margin-top: 12px; }

/* ---------------- your names ---------------- */
.cs-names, .names { border-radius: 0; background: var(--g-paper-2); border: 1px solid var(--g-rule); }
.cs-field label, .field label { font: 500 .7rem var(--g-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--g-ink-3); }
.cs-field input, .field input { border-radius: 0; border: 1px solid var(--g-hair); background: var(--g-paper); font-family: var(--g-mono); }
.cs-field input:focus, .field input:focus { outline: 2px solid var(--g-accent); outline-offset: 0; border-color: var(--g-accent); }
.cs-reset, .btn-reset { border-radius: 0; font: 600 .86rem var(--g-sans); background: var(--g-ink); color: var(--g-paper); border: 1px solid var(--g-ink); padding: 9px 16px; }
.cs-reset:hover, .btn-reset:hover { background: var(--g-fill); border-color: var(--g-fill); color: var(--g-on-fill); }
.cs-group { font-family: var(--g-mono); font-weight: 500; }

/* chips in the Slack and Teams guide: neutral, so no vendor colours sneak in */
.cs-chip { font: 500 .7rem var(--g-mono); letter-spacing: .02em; background: var(--g-paper); border: 1px solid var(--g-hair); border-radius: 0; color: var(--g-ink-2); }

/* ---------------- reading list + footer ---------------- */
.cs-docs { gap: 0; border-top: 1px solid var(--g-rule); }
.cs-docs li { padding: 14px 0; border-bottom: 1px solid var(--g-hair); }
.docs { border-top: 1px solid var(--g-rule); }
.cs-docs a, .docs a { color: var(--g-ink); font-weight: 600; text-decoration: none; }
.cs-docs a:hover, .docs a:hover { color: var(--g-accent-ink); text-decoration: underline; }
.cs-docs span, .docs span { color: var(--g-ink-3); }
.cs-foot, main .foot { font-size: .84rem; line-height: 1.6; color: var(--g-ink-3); border-top: 1px solid var(--g-rule); max-width: 72ch; }

/* ---------------- narrow screens ---------------- */
@media screen and (max-width: 960px) {
  .cs-layout, .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .cs-toc, .toc {
    position: sticky; top: 0; z-index: 30; max-height: none; margin: 0 calc(-1 * var(--g-gutter)); padding: 0 var(--g-gutter);
    background: color-mix(in srgb, var(--g-paper) 94%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 0; border-bottom: 1px solid var(--g-rule); border-radius: 0;
    overflow-x: auto; overflow-y: hidden; white-space: nowrap; scrollbar-width: none;
  }
  .cs-toc::-webkit-scrollbar, .toc::-webkit-scrollbar { display: none; }
  .cs-toc-title, .toc-title { display: none; }
  .cs-toc > ol, .toc > ol { display: flex; flex-wrap: nowrap; gap: 0; padding: 0; }
  .cs-toc a, .toc a { border-left: 0; border-bottom: 2px solid transparent; padding: 13px 12px 11px; font: 500 .72rem var(--g-mono); letter-spacing: .05em; text-transform: uppercase; }
  .cs-toc a.active, .toc a.active, .toc a.current, .cs-toc a.asn-cur, .toc a.asn-cur { border-left: 0; border-bottom-color: var(--g-accent); color: var(--g-ink); font-weight: 500; }
  .cs-toc ol ol, .toc ol ol, .cs-toc li.open > ol, .toc li.open > ol { display: none; }
  .cs-chapter, .cs-step, .chapter, .step { scroll-margin-top: 60px; }
  main { padding-top: 8px; }
}
@media screen and (max-width: 720px) {
  body { font-size: 16px; }
  .cs-hero-inner, .hero-inner { padding-top: 40px; padding-bottom: 36px; }
  .cs-hero::after, .hero::after { background: linear-gradient(180deg, transparent 0%, transparent 18%, var(--g-paper) 55%); }
  .cs-ask, .hero .ask { box-shadow: 5px 5px 0 var(--g-ink); }
  .cs-facts, .hero .facts { grid-template-columns: minmax(0, 1fr); }
  .cs-facts li, .hero .facts li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--g-hair); }
  .cs-facts b, .hero .facts b { margin: 2px 0 0; }
  .cs-chapter h2, .chapter h2 { font-size: 2.1rem; }
  .cs-step-id, .step-id { top: -2px; }
  .cs-shot img, .shot img { box-shadow: 4px 4px 0 color-mix(in srgb, var(--g-ink) 12%, transparent); }
  .cs-path:hover, .path:hover { box-shadow: none; transform: none; }
}

/* ======================================================================
   Site navigation injected by tools/build.py (.asn-root). Every rule starts
   from `all: revert` because the guides style bare elements (a, button, *).
   ====================================================================== */
.asn-root, .asn-root *, .asn-root *:hover, .asn-root *:focus, .asn-root *::before, .asn-root *::after { all: revert; box-sizing: border-box; }
.asn-root { display: block; font-family: var(--g-sans); line-height: 1.45; -webkit-font-smoothing: antialiased; color: var(--g-ink); }
.asn-root .asn-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--g-gutter); }
.asn-root .asn-mono { font-family: var(--g-mono); font-size: .76rem; letter-spacing: .04em; }
.asn-root .asn-wm { font-family: var(--g-serif); font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }

.asn-root.asn-top { background: var(--g-paper); border-bottom: 1px solid var(--g-rule); position: relative; z-index: 60; }
.asn-root.asn-top .asn-in { min-height: 64px; }
.asn-root.asn-top .asn-brand { color: var(--g-ink); text-decoration: none; font-size: 1.4rem; line-height: 1; display: inline-flex; align-items: center; }
.asn-root.asn-top .asn-badge { font-family: var(--g-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--g-on-fill); background: var(--g-fill); padding: 3px 7px; margin-left: 12px; }
.asn-root.asn-top .asn-nav { display: flex; align-items: center; gap: 6px 20px; }
.asn-root.asn-top .asn-link { color: var(--g-ink-2); text-decoration: none; padding: 6px 0; background: linear-gradient(var(--g-accent), var(--g-accent)) left bottom / 0 1.5px no-repeat; transition: background-size .3s ease, color .2s ease; }
.asn-root.asn-top .asn-link:hover { color: var(--g-ink); background-size: 100% 1.5px; }
.asn-root.asn-top .asn-menu { position: relative; }
.asn-root.asn-top .asn-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--g-ink); padding: 8px 12px; border: 1px solid var(--g-rule); transition: background .2s ease, color .2s ease; }
.asn-root.asn-top .asn-menu > summary:hover, .asn-root.asn-top .asn-menu[open] > summary { background: var(--g-ink); color: var(--g-paper); }
.asn-root.asn-top .asn-menu > summary::-webkit-details-marker { display: none; }
.asn-root.asn-top .asn-menu > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.asn-root.asn-top .asn-menu[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.asn-root.asn-top .asn-count { opacity: .62; }
.asn-root.asn-top .asn-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(360px, calc(100vw - 32px)); background: var(--g-paper); color: var(--g-ink); border: 1px solid var(--g-rule); box-shadow: 7px 7px 0 var(--g-ink); margin: 0; padding: 0; }
.asn-root.asn-top .asn-group { display: block; margin: 0; padding: 12px 14px 8px; color: var(--g-ink-3); text-transform: uppercase; letter-spacing: .1em; }
.asn-root.asn-top .asn-list { list-style: none; margin: 0; padding: 0; }
.asn-root.asn-top .asn-list li { margin: 0; padding: 0; border-top: 1px solid var(--g-hair); }
.asn-root.asn-top .asn-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; color: var(--g-ink); text-decoration: none; padding: 12px 14px; transition: background .2s ease; }
.asn-root.asn-top .asn-list a:hover { background: var(--g-paper-2); }
.asn-root.asn-top .asn-list b { font-family: var(--g-serif); font-weight: 400; font-size: 1.22rem; letter-spacing: -.02em; }
.asn-root.asn-top .asn-list span { color: var(--g-ink-3); }
.asn-root.asn-top .asn-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--g-accent); }
.asn-root.asn-top .asn-list a[aria-current="page"] b { color: var(--g-accent-ink); font-style: italic; }
.asn-root.asn-top .asn-all { display: block; padding: 13px 14px; border-top: 1px solid var(--g-rule); color: var(--g-ink); text-decoration: none; }
.asn-root.asn-top .asn-all:hover { background: var(--g-ink); color: var(--g-paper); }

.asn-root.asn-foot { background: var(--g-paper); border-top: 1px solid var(--g-rule); padding: clamp(36px, 5vw, 56px) 0 0; margin-top: 0; }
.asn-root.asn-foot .asn-in { display: block; }
.asn-root.asn-foot .asn-kicker { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; color: var(--g-ink-3); text-transform: uppercase; letter-spacing: .08em; }
.asn-root.asn-foot .asn-kicker::after { content: ""; flex: 1; height: 1px; background: var(--g-hair); }
.asn-root.asn-foot .asn-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 clamp(20px, 4vw, 56px); margin: 0; padding: 0; }
.asn-root.asn-foot .asn-card { display: block; border-top: 1px solid var(--g-rule); padding: 18px 0 30px; color: var(--g-ink); text-decoration: none; }
.asn-root.asn-foot .asn-card .asn-mono { display: block; color: var(--g-accent-ink); }
.asn-root.asn-foot .asn-card b { display: block; margin: 10px 0 6px; font-family: var(--g-serif); font-weight: 400; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.02; letter-spacing: -.025em; transition: transform .45s cubic-bezier(.2,.8,.2,1), color .3s ease; }
.asn-root.asn-foot .asn-card i.asn-mono { display: block; font-style: normal; color: var(--g-ink-3); }
.asn-root.asn-foot .asn-card:hover b { color: var(--g-accent-ink); font-style: italic; transform: translateX(6px); }
.asn-root.asn-foot .asn-card.asn-next { text-align: right; }
.asn-root.asn-foot .asn-card.asn-next:hover b { transform: translateX(-6px); }
.asn-root.asn-foot .asn-small { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; margin: 0; padding: 16px 0 24px; border-top: 1px solid var(--g-rule); color: var(--g-ink-3); }
.asn-root.asn-foot .asn-small span { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; }
.asn-root.asn-foot .asn-small a { color: var(--g-ink-2); text-decoration: none; }
.asn-root.asn-foot .asn-small a:hover { color: var(--g-accent-ink); }
.asn-root a:focus-visible, .asn-root summary:focus-visible { outline: 2px solid var(--g-accent); outline-offset: 3px; }

@media (max-width: 640px) {
  .asn-root.asn-top .asn-link { display: none; }
  .asn-root.asn-top .asn-brand { font-size: 1.3rem; }
  .asn-root.asn-foot .asn-card.asn-next { text-align: left; }
  .asn-root.asn-foot .asn-card.asn-next:hover b { transform: translateX(6px); }
}
@media (prefers-reduced-motion: reduce) { .asn-root *, .cs-path, .path { transition: none; } }
@media print { .asn-root { display: none; } }
