/* Cultmetrics Support — visual language of www.cultmetrics.com (cult-child theme):
   Zalando Sans body, Zalando Sans Expanded 900 headings, black heroes and footer,
   #F9D000 buttons with obsidian text, nocturne links. */

@font-face {
  font-family: "Zalando Sans";
  src: url("/assets/fonts/zalando-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zalando Sans";
  src: url("/assets/fonts/zalando-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zalando Sans Expanded";
  src: url("/assets/fonts/zalando-sans-expanded.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0d0d0d;
  --black: #000;
  --paper: #fff;
  --yellow: #f9d000;
  --nocturne: #8c5479;
  --bloom: #d979b7;
  --sandstone: #bf9c88;
  --mist: #d9d9d9;
  --line: #e6e6e6;
  --soft: #f6f6f4;
  --muted: #555;
  --font-body: "Zalando Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Zalando Sans Expanded", "Zalando Sans", "Helvetica Neue", Arial, sans-serif;
  --shell: 1200px;
  --gutter: clamp(16px, 4vw, 51px);
  --radius: 4px;
  --header-h: 74px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--nocturne);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--black);
}

:focus-visible {
  outline: 2px solid var(--nocturne);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
}

h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
}

h3 {
  font-size: 1.15rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--yellow);
  color: var(--ink);
}

.skip-link:focus {
  top: 8px;
}

.shell {
  width: min(var(--shell), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

/* Buttons — same as the cultmetrics.com block button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--yellow);
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--yellow);
}

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn-ghost:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.text-link {
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  vertical-align: 1px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--black);
  text-decoration: none;
  flex-shrink: 0;
}

.brand svg {
  display: block;
  height: 1.6rem;
  width: auto;
}

.brand-tag {
  padding-left: 12px;
  border-left: 1px solid var(--mist);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-search input {
  width: 180px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  background: var(--soft);
}

.mobile-menu {
  display: none;
  position: relative;
  margin-left: auto;
}

.mobile-menu summary {
  display: grid;
  gap: 5px;
  padding: 12px 8px;
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
}

.mobile-menu nav {
  position: absolute;
  right: 0;
  top: 100%;
  display: grid;
  min-width: 220px;
  padding: 8px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
}

.mobile-menu nav a {
  padding: 10px 20px;
  color: var(--black);
  text-decoration: none;
}

/* Hero — black band like the cultmetrics.com product page */
.hero {
  background: var(--black);
  color: var(--paper);
}

.hero-inner {
  padding-block: clamp(40px, 7vw, 86px);
}

.hero h1 {
  max-width: 18em;
}

.hero-lead {
  max-width: 44em;
  font-size: 18px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 15px;
}

.hero a:not(.btn) {
  color: var(--yellow);
}

.hero-search,
.page-search {
  position: relative;
  display: flex;
  gap: 8px;
  max-width: 720px;
}

.hero-search input,
.page-search input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  font: inherit;
  font-size: 17px;
}

.hero-search .btn,
.page-search .btn {
  min-height: 52px;
  padding-inline: 22px;
}

.search-results {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.search-results-float {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 60vh;
  overflow: auto;
  margin-top: 8px;
  padding: 8px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.3);
}

.search-results-float[hidden] {
  display: none;
}

.search-results-float .doc-card {
  border-color: transparent;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 20px 0;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb-dark {
  padding: 0 0 24px;
  color: rgb(255 255 255 / 0.7);
}

.hero .breadcrumb-dark a {
  color: rgb(255 255 255 / 0.85);
}

/* Cards */
.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.card-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.doc-card {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--black);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.doc-card:hover {
  border-color: var(--black);
  color: var(--black);
  box-shadow: 4px 4px 0 var(--yellow);
}

.doc-card-title {
  font-weight: 700;
}

.doc-card-desc {
  color: var(--muted);
  font-size: 14px;
}

/* Home */
.home-body,
.hub-body {
  padding-block: clamp(40px, 6vw, 72px);
}

.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
}

.product-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  border: 1px solid var(--black);
  border-radius: var(--radius);
}

.product-tile img {
  border-radius: var(--radius);
}

.product-tile h3 {
  font-size: 1.5rem;
  margin: 8px 0 0;
}

.product-tile h3 a {
  color: var(--black);
  text-decoration: none;
}

.product-tile p {
  margin: 0;
  color: var(--muted);
}

.tile-links {
  margin: 8px 0;
  padding-left: 1.1em;
}

.tile-links li + li {
  margin-top: 4px;
}

.product-tile .text-link {
  margin-top: auto;
}

.home-section,
.hub-section {
  margin-top: clamp(40px, 6vw, 72px);
}

.hub-section:first-of-type {
  margin-top: 32px;
}

.section-head p {
  margin: -0.25em 0 20px;
  color: var(--muted);
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-nav a {
  padding: 6px 14px;
  border: 1px solid var(--black);
  border-radius: 999px;
  color: var(--black);
  font-size: 14px;
  text-decoration: none;
}

.category-nav a:hover {
  background: var(--yellow);
  border-color: var(--yellow);
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(40px, 6vw, 72px);
  padding: 32px;
  background: var(--black);
  color: var(--paper);
  border-radius: var(--radius);
}

.contact-strip h2 {
  margin-bottom: 8px;
}

.contact-strip p {
  margin: 0;
  max-width: 48em;
}

.contact-strip a:not(.btn) {
  color: var(--yellow);
}

/* Article */
.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  grid-template-areas:
    "crumbs crumbs"
    "doc aside";
  column-gap: 64px;
  padding-bottom: 72px;
}

.doc-layout > .breadcrumb {
  grid-area: crumbs;
}

.doc {
  grid-area: doc;
  min-width: 0;
  max-width: 760px;
}

.doc-aside {
  grid-area: aside;
  padding-top: 40px;
}

.doc-aside > * {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.doc-aside .toc + .product-card {
  position: static;
}

.doc-head {
  padding-top: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.doc-kicker {
  margin: 0 0 12px;
  font-size: 14px;
}

.doc-kicker a {
  display: inline-block;
  padding: 2px 10px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 999px;
  text-decoration: none;
}

.doc-lead {
  font-size: 19px;
  color: #222;
  margin: 0 0 12px;
}

.doc-meta {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
}

.prose {
  font-size: 17px;
  line-height: 1.65;
}

.prose h2 {
  margin-top: 1.8em;
  padding-top: 0.2em;
}

.prose h3 {
  margin-top: 1.5em;
  font-size: 1.1rem;
}

.prose p,
.prose ul,
.prose ol,
.prose table,
.prose figure,
.prose blockquote {
  margin: 0 0 1.1em;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose code {
  padding: 0.1em 0.35em;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.prose pre {
  overflow-x: auto;
  padding: 16px;
  background: var(--ink);
  color: #f4f0df;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
}

.prose pre code {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
}

.prose blockquote {
  padding: 14px 18px;
  border-left: 4px solid var(--yellow);
  background: #fffbe6;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  border-bottom-color: var(--black);
}

.prose figure img {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prose figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0 52px;
  min-height: 36px;
}

.steps li + li {
  margin-top: 18px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--black);
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
}

.step-name {
  display: block;
}

.toc-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 900;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.toc li + li {
  margin-top: 6px;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
}

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

.toc-inline {
  display: none;
  margin-bottom: 24px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc-inline summary {
  cursor: pointer;
  font-weight: 700;
}

.toc-inline ol {
  margin-top: 10px;
}

.product-card {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-top: 32px;
  padding: 20px;
  background: var(--black);
  color: var(--paper);
  border-radius: var(--radius);
}

.product-card-mark {
  display: block;
  margin-bottom: 4px;
}

.product-card-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
}

.product-card .text-link {
  color: var(--paper);
  font-weight: 400;
  font-size: 14px;
}

.faq {
  margin-top: 48px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 16px 32px 16px 0;
  position: relative;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-family: var(--font-display);
  font-size: 22px;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 16px;
  font-size: 16px;
}

.help-box {
  margin-top: 48px;
  padding: 24px;
  background: var(--soft);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
}

.help-box h2 {
  font-size: 1.2rem;
}

.help-box p {
  margin: 0;
}

.related {
  margin-top: 48px;
}

.related h2 {
  font-size: 1.3rem;
}

/* Search page */
.search-page,
.not-found {
  padding-block: 48px 72px;
}

.search-status {
  color: var(--muted);
}

/* Footer — black, logo + copyright, as on cultmetrics.com */
.site-footer {
  background: var(--black);
  color: var(--paper);
  padding-block: 51px 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  display: inline-flex;
  color: var(--paper);
}

.footer-logo svg {
  height: 2rem;
  width: auto;
}

.footer-brand p {
  max-width: 34em;
  color: rgb(255 255 255 / 0.75);
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-links h2 {
  font-size: 15px;
  margin: 0 0 4px;
  color: var(--yellow);
}

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

.site-footer a:hover {
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.2);
  font-size: 14px;
  color: rgb(255 255 255 / 0.75);
}

@media (max-width: 1080px) {
  .site-nav a:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 960px) {
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "crumbs"
      "doc"
      "aside";
  }

  .doc-aside {
    padding-top: 0;
  }

  .doc-aside .toc {
    display: none;
  }

  .doc-aside > * {
    position: static;
  }

  .toc-inline {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 760px) {
  .site-nav,
  .header-search {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .header-row {
    gap: 12px;
  }

  .brand svg {
    height: 1.3rem;
  }

  .hero-search .btn {
    display: none;
  }

  .prose {
    font-size: 16px;
  }

  .doc-lead {
    font-size: 17px;
  }

  .product-tile,
  .contact-strip {
    padding: 22px;
  }
}

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

.step-name {
  font-weight: 700;
}
