/* spamscanner.net: one stylesheet, no framework. Layout and type follow attestium.com. */

:root {
  --bg: #f7f7fa;
  --bg-2: #eeeef3;
  --surface: #fcfcfe;
  --text: #1d1a2b;
  --text-2: #4a4760;
  --text-3: #5d5a70;
  --rule: #dddce6;
  --rule-2: #c7c5d3;
  --accent: #157352;
  --brand: #2fb07a;
  --cyan: #55c0dd;
  --grad: linear-gradient(90deg, #55c0dd, #2fb07a);
  --ink: #2b2240;
  --button-bg: #2b2240;
  --button-fg: #f7f7fa;
  --tip-bg: #1d1a2b;
  --tip-fg: #f0eff5;
  --term-bg: #18151f;
  --term-fg: #e6e4ee;
  --term-dim: #8d89a3;
  --spam: #b3261e;
  --spam-bg: #fbe9e7;
  --ham: #157352;
  --ham-bg: #e3f4ec;
  --tag: #8a5a00;
  --tag-bg: #fdf1d6;
  --ss-frame: #3a3149;
  --t-c: #5d5a70;
  --t-s: #157352;
  --t-k: #8c3f22;
  --t-n: #7a5410;
  --t-p: #245083;
  --heading: system-ui, -apple-system, 'Segoe UI', roboto, 'Helvetica Neue', arial, sans-serif;
  --sans: system-ui, -apple-system, 'Segoe UI', roboto, 'Helvetica Neue', arial, sans-serif;
  --mono: ui-monospace, sfmono-regular, 'SF Mono', menlo, consolas, 'Liberation Mono', monospace;
  --header: 60px;
  --gutter: 24px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #14121c;
    --bg-2: #1b1926;
    --surface: #1e1c2a;
    --text: #ecebf3;
    --text-2: #b8b5c9;
    --text-3: #9c98b0;
    --rule: #2b2939;
    --rule-2: #3d3a50;
    --accent: #5fd4a6;
    --ink: #ecebf3;
    --button-bg: #5fd4a6;
    --button-fg: #14121c;
    --tip-bg: #ecebf3;
    --tip-fg: #1d1a2b;
    --term-bg: #0d0c12;
    --spam: #ff8a80;
    --spam-bg: #3a1d1c;
    --ham: #5fd4a6;
    --ham-bg: #15302a;
    --tag: #f4c46b;
    --tag-bg: #352a14;
    --ss-frame: #a9a3bf;
    --t-c: #8d89a3;
    --t-s: #5fd4a6;
    --t-k: #eeb592;
    --t-n: #e6ca80;
    --t-p: #9cc4ea;

    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #14121c;
  --bg-2: #1b1926;
  --surface: #1e1c2a;
  --text: #ecebf3;
  --text-2: #b8b5c9;
  --text-3: #9c98b0;
  --rule: #2b2939;
  --rule-2: #3d3a50;
  --accent: #5fd4a6;
  --ink: #ecebf3;
  --button-bg: #5fd4a6;
  --button-fg: #14121c;
  --tip-bg: #ecebf3;
  --tip-fg: #1d1a2b;
  --term-bg: #0d0c12;
  --spam: #ff8a80;
  --spam-bg: #3a1d1c;
  --ham: #5fd4a6;
  --ham-bg: #15302a;
  --tag: #f4c46b;
  --tag-bg: #352a14;
  --ss-frame: #a9a3bf;
  --t-c: #8d89a3;
  --t-s: #5fd4a6;
  --t-k: #eeb592;
  --t-n: #e6ca80;
  --t-p: #9cc4ea;

  color-scheme: dark;
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, currentcolor 40%, transparent);
}

a:hover {
  text-decoration-color: currentcolor;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background: color-mix(in srgb, var(--brand) 40%, transparent);
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

code,
pre,
kbd {
  font-family: var(--mono);
  font-size: 0.875em;
  font-variant-ligatures: none;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--text-3);
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  inset-inline-start: 8px;
  top: -60px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--rule-2);
}

.skip:focus {
  top: 8px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.mark {
  width: 28px;
  height: 28px;
  flex: none;
}


.site-nav {
  margin-inline-start: auto;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9375rem;
  border-radius: 4px;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--bg-2);
}

.site-nav a[aria-current='page'] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--brand);
  border-radius: 0;
}

.site-nav svg {
  width: 16px;
  height: 16px;
}

.header-actions {
  display: flex;
  gap: 4px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: none;
  color: var(--text-2);
  cursor: pointer;
}

.icon-button:hover {
  color: var(--text);
  border-color: var(--rule-2);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.theme-toggle svg {
  display: none;
}

.theme-toggle[data-choice='system'] .i-system,
.theme-toggle[data-choice='light'] .i-light,
.theme-toggle[data-choice='dark'] .i-dark,
.theme-toggle:not([data-choice]) .i-system {
  display: block;
}

.menu-toggle {
  display: none;
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }

  .header-row {
    gap: 8px;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 16px;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a {
    display: flex;
    padding: 10px 8px;
    font-size: 1rem;
  }

  .site-nav a[aria-current='page'] {
    box-shadow: inset 2px 0 0 var(--brand);
  }

  [dir='rtl'] .site-nav a[aria-current='page'] {
    box-shadow: inset -2px 0 0 var(--brand);
  }

  .header-actions {
    margin-inline-start: auto;
  }

  .menu-toggle {
    display: inline-grid;
  }
}

/* Buttons and copy */

.button {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid var(--button-bg);
  border-radius: 4px;
  background: var(--button-bg);
  color: var(--button-fg);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.15);
}

.button-quiet {
  background: transparent;
  color: var(--text);
  border-color: var(--rule-2);
}

.button-quiet:hover {
  filter: none;
  border-color: var(--text-3);
}

.copy {
  flex: none;
  padding: 2px 9px;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  background: var(--surface);
  color: var(--text-2);
  font: 500 0.75rem/1.6 var(--sans);
  cursor: pointer;
}

.copy:hover {
  color: var(--text);
  border-color: var(--text-3);
}

.copy.done {
  color: var(--accent);
  border-color: var(--accent);
}

/* Code */

.code {
  margin: 1.25rem 0;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg-2);
  overflow: hidden;
  min-width: 0;
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 8px 5px 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--text-3);
  font: 0.75rem/1.6 var(--mono);
}

.code pre {
  margin: 0;
  padding: 14px 16px 16px;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.65;
  tab-size: 2;
}

.code pre code {
  font-size: inherit;
}

.t-c {
  color: var(--t-c);
}

.t-s {
  color: var(--t-s);
}

.t-k {
  color: var(--t-k);
}

.t-n {
  color: var(--t-n);
}

.t-p {
  color: var(--t-p);
}

/* Tooltips */

.term {
  position: relative;
  text-decoration: underline dotted;
  text-decoration-color: var(--text-3);
  text-underline-offset: 0.2em;
  cursor: help;
}

.tip {
  position: fixed;
  z-index: 30;
  left: 0;
  top: 0;
  width: max-content;
  max-width: min(300px, calc(100vw - 32px));
  padding: 9px 12px;
  border-radius: 4px;
  background: var(--tip-bg);
  color: var(--tip-fg);
  font: 400 0.8125rem/1.5 var(--sans);
  letter-spacing: 0;
  text-align: start;
  text-transform: none;
  box-shadow: 0 6px 20px rgb(0 0 0 / 18%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
}

.tip strong {
  font-weight: 600;
}

.tip.open {
  visibility: visible;
  opacity: 1;
}

/* Without JS, fall back to CSS hover and focus. */
html:not(.js) .term:hover > .tip,
html:not(.js) .term:focus > .tip {
  position: absolute;
  top: calc(100% + 6px);
  visibility: visible;
  opacity: 1;
}

/* Landing: hero */

.hero {
  padding: 72px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 17ch;
  margin-bottom: 24px;
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.55;
  max-width: 36em;
  color: var(--text);
}

.lede-2 {
  color: var(--text-2);
  max-width: 36em;
}

.install {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  margin: 12px 0 24px;
  padding: 9px 10px 9px 16px;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  background: var(--surface);
}

.install code {
  font-size: 0.9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prompt {
  color: var(--text-3);
  user-select: none;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}


.datasheet {
  margin: 0;
  font-size: 0.875rem;
  border-top: 1px solid var(--rule-2);
}

.datasheet div {
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
}

.datasheet dt {
  color: var(--text-3);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.datasheet dd {
  margin: 0;
}

/* Landing: sections */

.section {
  padding: 72px 0;
  border-top: 1px solid var(--rule);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px 48px;
  align-items: baseline;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2rem);
}

.section-head p {
  color: var(--text-2);
  max-width: 44em;
  margin: 0;
}

.section-head p + p {
  margin-top: 12px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 48px;
  align-items: start;
}

.split .section-head {
  display: block;
  margin: 0;
}

.split .section-head h2 {
  margin-bottom: 16px;
}

.split .code {
  margin: 0;
}


/* Compare and credit */

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule-2);
}

.compare > div {
  padding: 24px 32px 8px 0;
}

.compare > div + div {
  padding-inline-start: 32px;
  border-inline-start: 1px solid var(--rule);
}

.compare h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.compare p {
  color: var(--text-2);
  max-width: 38em;
}

.credit {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--text-2);
  font-size: 0.9375rem;
}

.credit p {
  margin: 0;
  max-width: 52em;
}

.credit-logo {
  flex: none;
  line-height: 0;
}

.credit-logo img {
  border-radius: 8px;
}

/* Landing: responsive */

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

    .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 40px 0 48px;
  }

  .lede {
    font-size: 1.0625rem;
  }

      .section {
    padding: 48px 0;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 28px;
  }

  .compare {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare > div {
    padding-inline-end: 0;
  }

  .compare > div + div {
    padding-inline-start: 0;
    border-inline-start: 0;
    border-top: 1px solid var(--rule);
  }

  .credit {
    align-items: flex-start;
  }
}

/* Footer */

.site-footer {
  margin-top: 0;
  padding: 48px 0 56px;
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand p {
  margin: 12px 0 0;
  max-width: 26em;
}

.site-footer h2 {
  margin-bottom: 10px;
  color: var(--text-3);
  font: 500 0.75rem var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 5px 0;
}

.site-footer nav a {
  color: var(--text-2);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Docs layout */

.docs {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr) 200px;
  gap: 48px;
  align-items: start;
}

.sidebar,
.toc {
  position: sticky;
  top: var(--header);
  max-height: calc(100vh - var(--header));
  overflow-y: auto;
  padding: 32px 0 40px;
  overscroll-behavior: contain;
}

.side-toggle {
  display: none;
}

.side-group + .side-group {
  margin-top: 24px;
}

.side-group h2,
.toc h2 {
  margin: 0 0 8px;
  color: var(--text-3);
  font: 500 0.75rem var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.side-group ul,
.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-group a {
  display: block;
  padding: 4px 10px;
  border-inline-start: 2px solid var(--rule);
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.45;
  text-decoration: none;
}

.side-group a:hover {
  color: var(--text);
  border-inline-start-color: var(--rule-2);
}

.side-group a[aria-current='page'] {
  color: var(--text);
  font-weight: 600;
  border-inline-start-color: var(--brand);
}

.toc a {
  display: block;
  padding: 3px 0 3px 12px;
  border-inline-start: 1px solid var(--rule);
  color: var(--text-3);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-decoration: none;
}

.toc .toc-3 a {
  padding-inline-start: 24px;
}

.toc a:hover {
  color: var(--text);
}

.toc a.active {
  color: var(--text);
  border-inline-start: 2px solid var(--brand);
  padding-inline-start: 11px;
}

.toc .toc-3 a.active {
  padding-inline-start: 23px;
}

.toc code {
  font-size: 0.95em;
}

.doc {
  min-width: 0;
  padding: 40px 0 72px;
}

@media (max-width: 1180px) {
  .docs {
    grid-template-columns: 216px minmax(0, 1fr);
    gap: 40px;
  }

  .toc {
    display: none;
  }
}

@media (max-width: 900px) {
  .docs {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: var(--header);
    z-index: 10;
    max-height: none;
    overflow: visible;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
  }

  .side-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 10px var(--gutter);
    border: 0;
    background: none;
    color: var(--text);
    font: 500 0.9375rem var(--sans);
    text-align: start;
    cursor: pointer;
  }

  .side-toggle > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .side-toggle svg {
    flex: none;
    width: 20px;
    height: 20px;
    transition: transform 0.15s;
  }

  .side-toggle[aria-expanded='true'] svg {
    transform: rotate(180deg);
  }

  .side-nav {
    display: none;
    max-height: calc(100vh - var(--header) - 46px);
    overflow-y: auto;
    padding: 8px var(--gutter) 20px;
    border-top: 1px solid var(--rule);
  }

  .side-nav.open {
    display: block;
  }

  .doc {
    padding-top: 28px;
  }

  .prose h1 + p {
    font-size: 1.0625rem;
  }
}

/* Prose */

.prose {
  max-width: 46rem;
}

.prose h1 {
  font-size: clamp(2rem, 1.6rem + 1.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.prose h1 + p {
  font-size: 1.125rem;
  color: var(--text-2);
}

.prose h2 {
  font-size: 1.6rem;
  margin: 2.2em 0 0.7em;
  padding-top: 1em;
  border-top: 1px solid var(--rule);
}

.prose h3 {
  font-size: 1.2rem;
  margin: 2em 0 0.6em;
}

.prose h4 {
  font-size: 1rem;
  margin: 1.6em 0 0.5em;
}

.prose h2 code,
.prose h3 code {
  font-size: 0.8em;
  font-weight: 500;
}

.h-anchor {
  margin-inline-start: 0.35em;
  color: var(--text-3);
  font-family: var(--sans);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
}

:is(h2, h3, h4):hover .h-anchor,
.h-anchor:focus-visible {
  opacity: 1;
}

.prose ul,
.prose ol {
  padding-inline-start: 1.4em;
  margin: 0 0 1em;
}

.prose li {
  margin: 0.3em 0;
}

.prose li > ul,
.prose li > ol {
  margin: 0.3em 0;
}

.prose :not(pre) > code {
  padding: 0.1em 0.3em;
  border-radius: 3px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  font-size: 0.84em;
}

.prose p code,
.prose li code {
  overflow-wrap: anywhere;
}

.prose blockquote {
  margin: 1.25em 0;
  padding: 2px 0 2px 16px;
  border-inline-start: 3px solid var(--brand);
  color: var(--text-2);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5em 0;
}

.prose img {
  height: auto;
}

.table-wrap {
  max-width: 100%;
  margin: 1.25em 0 1.5em;
  overflow-x: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 8px 14px 8px 0;
  border-bottom: 1px solid var(--rule);
  text-align: start;
  vertical-align: top;
}

.prose th {
  border-bottom-color: var(--rule-2);
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.prose th:last-child,
.prose td:last-child {
  padding-inline-end: 0;
}

.prose table.no-head tr:first-child td {
  border-top: 1px solid var(--rule-2);
}

.prose td:first-child {
  min-width: 7em;
}

.edit {
  max-width: 46rem;
  margin: 48px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
}

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 46rem;
  margin-top: 24px;
}

.pager a {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.pager a:hover {
  border-color: var(--rule-2);
  background: var(--surface);
}

.pager span {
  display: block;
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pager .next {
  grid-column: 2;
  text-align: end;
}

/* 404 */

.not-found {
  padding-top: 96px;
  padding-bottom: 120px;
}

.not-found h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.not-found p {
  color: var(--text-2);
}

.code-404 {
  font: 500 0.875rem var(--mono);
  color: var(--accent) !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media print {
  .site-header,
  .sidebar,
  .toc,
  .pager,
  .edit,
  .site-footer,
  .copy {
    display: none !important;
  }

  .docs {
    display: block;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Guides and FAQ */

.guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 208px;
  gap: 56px;
  align-items: start;
  max-width: 1080px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--text-3);
  font-size: 0.875rem;
}

.crumbs li + li::before {
  content: '/';
  margin: 0 8px;
  color: var(--rule-2);
}

.crumbs a {
  color: var(--text-2);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}

.related {
  max-width: 46rem;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.related h2 {
  margin: 0 0 12px;
  color: var(--text-3);
  font: 500 0.75rem var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.related ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related a {
  font-weight: 600;
}

.related span {
  display: block;
  margin-top: 2px;
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (max-width: 1020px) {
  .guide {
    display: block;
  }
}

@media (max-width: 600px) {
  .related ul {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Spam Scanner: brand mark */

.ss-frame {
  stroke: var(--ss-frame);
}

.brand .mark {
  width: 26px;
  height: 28px;
}

/* Spam Scanner: hero */

.hero-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

.hero h1 {
  max-width: 22ch;
}

.hero .lede {
  max-width: 44em;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-links .button svg,
.button svg {
  width: 18px;
  height: 18px;
  margin-inline-end: 8px;
  flex: none;
}

.button-quiet svg {
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 0.875rem;
}

.facts li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-end: 8px;
  border-radius: 50%;
  background: var(--brand);
  vertical-align: 0.1em;
}

/* Terminal */

.terminal {
  min-width: 0;
  margin: 0;
  border-radius: 10px;
  background: var(--term-bg);
  color: var(--term-fg);
  box-shadow: 0 18px 50px rgb(20 16 32 / 22%);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3b3748;
}

.terminal-bar b {
  margin-inline-start: 8px;
  color: var(--term-dim);
  font: 400 0.75rem var(--mono);
}

.terminal pre {
  margin: 0;
  padding: 16px 18px 20px;
  overflow-x: auto;
  font: 0.78rem/1.7 var(--mono);
}

.terminal .cmd {
  color: #fff;
}

.terminal .dim {
  color: var(--term-dim);
}

.terminal .v-spam {
  color: #ff8a80;
  font-weight: 700;
}

.terminal .v-ham {
  color: #5fd4a6;
  font-weight: 700;
}

.terminal .pts {
  color: #f4c46b;
}

.terminal .name {
  color: #9cc4ea;
}

/* Score scale */

.scale {
  margin: 0;
}

.scale-bar {
  display: grid;
  grid-template-columns: 5fr 10fr 6fr;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
}

.scale-bar span:nth-child(1) {
  background: var(--ham);
}

.scale-bar span:nth-child(2) {
  background: var(--tag);
}

.scale-bar span:nth-child(3) {
  background: var(--spam);
}

.scale-marks {
  display: grid;
  grid-template-columns: 5fr 10fr 6fr;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.scale-marks li {
  padding-inline-end: 12px;
}

.scale-marks strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.scale-marks span {
  color: var(--text-2);
}

/* Pipeline */

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.pipeline li {
  position: relative;
  padding: 18px 18px 16px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
  counter-increment: step;
}

.pipeline li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font: 700 0.8125rem var(--sans);
}

.pipeline h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.pipeline p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* Feature cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--accent);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-2);
  font-size: 0.9375rem;
}

.card a {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Words demo */

.words {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.word-sample {
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
}

.word-sample p {
  margin: 0 0 10px;
  font-size: 0.9375rem;
}

.word-sample .label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-3);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 2px 9px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  background: var(--bg);
  font: 0.8125rem/1.6 var(--mono);
}

/* Tabs */

.tabs [role='tablist'] {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: -1px;
}

.tabs [role='tab'] {
  padding: 8px 14px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: none;
  color: var(--text-2);
  font: 500 0.9375rem var(--sans);
  cursor: pointer;
}

.tabs [role='tab'][aria-selected='true'] {
  border-color: var(--rule);
  background: var(--bg-2);
  color: var(--text);
}

.tabs [role='tabpanel'] .code {
  margin-top: 0;
  border-start-start-radius: 0;
}

.tabs [role='tabpanel'] p {
  color: var(--text-2);
  font-size: 0.9375rem;
}

html:not(.js) .tabs [role='tablist'] {
  display: none;
}

html:not(.js) .tabs [role='tabpanel'][hidden] {
  display: block;
}

/* Providers and models */

.providers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.providers li {
  padding: 5px 12px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
}

.providers li.local {
  border-color: var(--brand);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 9px 14px 9px 0;
  border-bottom: 1px solid var(--rule);
  text-align: start;
  vertical-align: top;
}

.data-table th {
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td.num,
.data-table th.num {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.data-table code {
  font-size: 0.8125rem;
}

.note {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 0.875rem;
}

.more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 28px 0 0;
  font-weight: 600;
}

/* Share and video popovers (from privacyratings.com) */

.share-pop {
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  margin: auto;
  padding: 18px 20px 20px;
  border: 1px solid var(--rule-2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 80px rgb(0 0 0 / 35%);
}

.video-pop {
  width: min(960px, calc(100vw - 24px));
}

.video-pop video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-top: 14px;
  border-radius: 8px;
  background: #0b0d10;
}

.video-pop p {
  margin: 10px 0 0;
}

.share-pop::backdrop {
  background: rgb(10 12 16 / 55%);
}

.pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pop-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.share-title {
  margin: 8px 0 14px;
  color: var(--text-2);
  font-size: 0.92rem;
}

.share-native {
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}

.share-native[hidden] {
  display: none;
}

.share-link {
  display: flex;
  gap: 8px;
}

.share-link input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--text);
  font: 0.82rem var(--mono);
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 420px) {
  .share-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.share-to {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.share-to:hover {
  border-color: var(--accent);
  background: var(--bg-2);
  color: var(--accent);
}

.share-mastodon {
  margin-top: 12px;
}

.share-mastodon[hidden] {
  display: none;
}

.share-mastodon label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.share-mastodon div {
  display: flex;
  gap: 8px;
}

.share-mastodon input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.small {
  font-size: 0.8125rem;
}

.share-status {
  margin: 12px 0 0;
}

/* Spam Scanner: responsive */

@media (max-width: 1020px) {
  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pipeline,
  .cards,
  .words {
    grid-template-columns: minmax(0, 1fr);
  }

  .scale-marks {
    font-size: 0.8125rem;
  }

  .terminal pre {
    font-size: 0.7rem;
  }

  .data-table .hide-small {
    display: none;
  }
}

/* Languages */

.lang-toggle {
  width: auto;
  min-width: 36px;
  grid-auto-flow: column;
  gap: 4px;
  padding: 0 6px;
}

.lang-code {
  font: 600 0.72rem var(--mono);
  letter-spacing: 0.02em;
}

.lang-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 420px) {
  .lang-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lang-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
}

.lang-list a:hover {
  border-color: var(--accent);
  background: var(--bg-2);
  color: var(--accent);
}

.lang-list a[aria-current='true'] {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
  font-weight: 600;
}

.lang-pop > p {
  margin: 12px 0 0;
}

.untranslated {
  margin: 0 0 24px;
  padding: 10px 14px;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 0.9rem;
}

/* The video on the home page */

.video-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  background: #0b0d10;
  box-shadow: 0 18px 50px rgb(0 0 0 / 18%);
}

.video-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-poster:hover img {
  transform: scale(1.02);
}

.video-poster .play {
  position: absolute;
  inset: 82% auto auto 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 30px rgb(0 0 0 / 35%);
}

.video-poster .play svg {
  width: 30px;
  height: 30px;
  margin-inline-start: 4px;
  stroke: none;
}

[dir='rtl'] .video-poster .play svg {
  margin-inline-start: 0;
  margin-inline-end: 4px;
}

.video-poster .duration {
  position: absolute;
  inset: auto 10px 10px auto;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgb(0 0 0 / 72%);
  color: #fff;
  font: 600 0.8rem var(--mono);
}

@media (max-width: 760px) {
  .video-poster .play {
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
  }

  .video-poster .play svg {
    width: 22px;
    height: 22px;
  }
}

.video-poster:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Right-to-left languages: code, commands and output stay left to right. */

[dir='rtl'] pre,
[dir='rtl'] code,
[dir='rtl'] .terminal {
  direction: ltr;
  text-align: start;
}

@media print {
  [popover],
  .hero-links {
    display: none !important;
  }
}
