/* The documentation of Warda-DNS, drawn like the site warda-dns.com. The
   charter (colours of both themes, fonts, logos) comes from
   @warda-dns/brand, copied into /brand/ at the build: every colour below is
   a token of the charter, but the glow of the hero and the background of
   the commands. No inline style anywhere (the CSP forbids it): every page
   is drawn from these classes. */
@import url('/brand/warda.css');

:root {
  --bg: var(--w-bg);
  --surface: var(--w-surface);
  --panel: var(--w-panel);
  --border: var(--w-border);
  --text: var(--w-text);
  --muted: var(--w-muted);
  --primary: var(--w-primary);
  --primary-hover: var(--w-primary-hover);
  --on-primary: var(--w-on-primary);
  --accent: var(--w-accent);
  --accent-soft: var(--w-accent-soft);
  --warning: var(--w-warning);
  --link: var(--w-link);
  --glow: rgba(110, 70, 183, 0.1);
  --code: #14142b;
  --lift: 0 20px 50px rgba(20, 20, 43, 0.12);
  --title: var(--w-font-title);
  --mono: var(--w-font-mono);
  --gutter: clamp(16px, 3vw, 32px);
  --head: 62px;
  --ease: var(--w-ease);
  font-family: var(--w-font-body);
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --glow: rgba(110, 70, 183, 0.22);
    --code: #07070c;
    --lift: 0 20px 50px rgba(0, 0, 0, 0.28);
  }
}
:root[data-theme='dark'] {
  --glow: rgba(110, 70, 183, 0.22);
  --code: #07070c;
  --lift: 0 20px 50px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: calc(var(--head) + 20px);
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
main {
  flex: 1;
}
a {
  color: var(--link);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--text);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1,
h2,
h3,
h4 {
  font-family: var(--title);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0.01em;
}
h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.18;
}
h3 {
  font-size: 21px;
  line-height: 1.25;
}
p {
  margin: 0;
  text-wrap: pretty;
}
code,
kbd,
.mono {
  font-family: var(--mono);
  font-size: 0.8em;
}
img,
svg {
  max-width: 100%;
}
button,
input {
  font: inherit;
  color: inherit;
}

/* Helpers. */
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* Shown only when the script runs (theme.js marks <html class="js">). */
html:not(.js) .js-only {
  display: none !important;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 15px;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--w-radius);
  background: var(--primary);
  color: var(--on-primary);
}
.skip:focus {
  left: 8px;
}
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead {
  font-size: clamp(19px, 1.6vw, 22px);
  color: var(--muted);
  max-width: 36em;
}
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
}
.facts {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

/* Buttons. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.2s var(--ease);
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Segmented control (theme). */
.seg {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  background: var(--surface);
}
.seg button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  min-height: 32px;
  padding: 0 10px;
}
.seg button[aria-pressed='true'] {
  background: var(--accent-soft);
  color: var(--text);
}

/* Header. */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.head-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--head);
  padding-block: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex: none;
}
.brand:hover {
  color: var(--text);
}
.wordmark {
  font-family: var(--title);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 26px;
  line-height: 1;
  white-space: nowrap;
}
.wordmark span {
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.brand-docs {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 7px;
  align-self: center;
}
.brand-sm .wordmark {
  font-size: 22px;
}
.brand-sm .wordmark span {
  font-size: 13px;
}
.logo .ring,
.logo .nodes {
  stroke: var(--w-logo-ring);
}
.logo .nodes,
.logo .hole {
  fill: var(--bg);
}
.site-foot .logo .nodes,
.site-foot .logo .hole {
  fill: var(--surface);
}
.logo .disc {
  fill: var(--w-logo-disc);
}
.head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.lang-menu {
  position: relative;
}
.lang-menu > summary,
.nav-mobile > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.lang-menu > summary::-webkit-details-marker,
.nav-mobile > summary::-webkit-details-marker,
.side-group summary::-webkit-details-marker {
  display: none;
}
.lang-menu > summary code {
  font-size: 13px;
}
.lang-menu[open] .ico-chevron {
  transform: rotate(180deg);
}
.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--lift);
}
.lang-menu a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 7px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: 17px;
}
.lang-menu a:hover,
.lang-menu a[aria-current='true'] {
  background: var(--accent-soft);
}
.lang-menu a code {
  color: var(--accent);
  width: 2em;
}
.nav-mobile {
  display: none;
}
.nav-mobile > summary {
  font-family: var(--mono);
  font-size: 13px;
  min-height: 44px;
  padding: 0 14px;
}
.nav-mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px var(--gutter) 18px;
  max-height: calc(100vh - var(--head));
  overflow-y: auto;
  box-shadow: var(--lift);
}
.lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.lang-row a {
  display: inline-flex;
  min-width: 44px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 14px;
  text-decoration: none;
  color: var(--text);
}
.lang-row a[aria-current='true'] {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* Search (search.js). */
.search {
  position: relative;
  flex: 1;
  max-width: 440px;
  margin-left: clamp(0px, 3vw, 40px);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: text;
}
.search-box:focus-within {
  border-color: var(--accent);
}
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 17px;
  color: var(--text);
  padding: 6px 0;
  outline: none;
}
.search-box input::-webkit-search-cancel-button {
  display: none;
}
.search-box kbd {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 6px;
  font-size: 12px;
}
.search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  min-width: min(560px, calc(100vw - 2 * var(--gutter)));
  max-height: min(70vh, 620px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--lift);
  padding: 8px;
}
.search-status {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding: 4px 10px 8px;
}
.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}
.search-results a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
}
.search-results a:hover,
.search-results a:focus-visible {
  background: var(--accent-soft);
  outline: none;
}
.result-title {
  font-weight: 600;
}
.result-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}
.result-text {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.45;
}
.result-text mark {
  background: var(--accent-soft);
  color: var(--text);
  border-radius: 3px;
}

@media (max-width: 1020px) {
  .head-tools {
    display: none;
  }
  .nav-mobile {
    display: block;
    margin-left: auto;
  }
  .search {
    margin-left: 0;
  }
}
@media (max-width: 620px) {
  .head-row {
    flex-wrap: wrap;
    gap: 10px 12px;
  }
  .search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .search-box kbd {
    display: none;
  }
  .wordmark {
    font-size: 22px;
  }
  :root {
    --head: 116px;
  }
  .summary {
    padding: 14px 16px;
  }
}

/* Footer. */
.site-foot {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.foot-row {
  padding-block: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  justify-content: space-between;
  align-items: flex-start;
}
.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 26em;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 17px;
}

/* Hero (home, page not found). */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute;
  right: -12%;
  top: -40%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding-block: clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-center {
  border-bottom: 0;
}
.hero-center::before {
  left: 50%;
  top: -50%;
  width: 70%;
  transform: translateX(-50%);
}
.hero-center .hero-inner {
  align-items: center;
  text-align: center;
  padding-block: clamp(64px, 10vw, 128px);
}

/* Home: the guide, then the themes. */
.home-section {
  padding-block: clamp(36px, 5vw, 64px) clamp(56px, 8vw, 96px);
}
.guide-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(22px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--w-radius-lg);
  box-shadow: var(--w-shadow);
}
.guide-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guide-intro h2 a,
.card h3 a {
  color: var(--text);
  text-decoration: none;
}
.guide-intro h2 a:hover,
.card h3 a:hover {
  color: var(--accent);
}
.guide-chapters {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ch;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 6px 18px;
  align-content: start;
}
.guide-chapters li {
  counter-increment: ch;
}
.guide-chapters a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--w-radius);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  line-height: 1.3;
  height: 100%;
}
.guide-chapters a:hover {
  border-color: var(--accent);
}
.home-h2 {
  margin-top: clamp(40px, 6vw, 72px);
}
.home-lead {
  margin: 10px 0 24px;
  max-width: 40em;
}
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--w-radius-lg);
}
.card:hover {
  border-color: var(--accent);
}
/* The whole card is the link of its title. */
.card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.card .muted {
  font-size: 17px;
}
.card-foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
@media (max-width: 860px) {
  .guide-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Documents: the menu, the text, "On this page". */
.docs {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.sidebar {
  position: sticky;
  top: var(--head);
  max-height: calc(100vh - var(--head));
  overflow-y: auto;
  padding: 24px 8px 40px 0;
  scrollbar-width: thin;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 16px;
}
.side-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 18px 10px 6px;
}
.side-group summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  font-family: var(--title);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.side-group summary::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.15s var(--ease);
}
.side-group[open] > summary::before {
  transform: rotate(45deg);
}
.side-group summary:hover {
  background: var(--panel);
}
.side-group ul {
  list-style: none;
  margin: 2px 0 10px 13px;
  padding: 0 0 0 10px;
  border-left: 1px solid var(--border);
}
.side-group a {
  display: block;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.3;
}
.side-group a:hover {
  color: var(--text);
  background: var(--panel);
}
.side-group a[aria-current='page'] {
  color: var(--text);
  background: var(--accent-soft);
  font-weight: 600;
}
.nav-mobile-panel .side-nav {
  font-size: 17px;
}

.doc {
  padding-block: 28px clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.doc.has-toc {
  grid-template-columns: minmax(0, 1fr) 230px;
  column-gap: clamp(24px, 3vw, 48px);
}
.doc-head,
.doc-foot {
  grid-column: 1;
  max-width: 44em;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.doc-foot {
  gap: 24px;
  margin-top: 16px;
}
.doc-head h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
}
.doc-head h1 .anchor {
  display: none;
}
.doc-head h1 code {
  font-size: 0.75em;
}
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 15px;
  color: var(--muted);
}
.crumbs li + li::before {
  content: '/';
  margin-right: 4px;
  color: var(--border);
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--text);
}
.toc {
  grid-column: 2;
  grid-row: 1 / span 3;
  position: sticky;
  top: calc(var(--head) + 24px);
  max-height: calc(100vh - var(--head) - 48px);
  overflow-y: auto;
  border-left: 1px solid var(--border);
  padding-left: 16px;
  scrollbar-width: thin;
}
.toc-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 8px;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc a {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  color: var(--muted);
  padding: 5px 0;
}
.toc a:hover {
  color: var(--text);
}
@media (max-width: 1240px) {
  .doc.has-toc {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    grid-column: 1;
    grid-row: auto;
    position: static;
    max-height: none;
    max-width: 44em;
    border: 1px solid var(--border);
    border-radius: var(--w-radius);
    background: var(--surface);
    padding: 14px 18px;
  }
  .toc ul {
    columns: 2 220px;
    column-gap: 24px;
  }
  .toc li {
    break-inside: avoid;
  }
}
@media (max-width: 1020px) {
  .docs {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    display: none;
  }
}

/* The text of the documents. */
.prose {
  grid-column: 1;
  max-width: 44em;
  line-height: 1.62;
  overflow-wrap: break-word;
}
.prose > * + * {
  margin-top: 16px;
}
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  margin-top: 40px;
  scroll-margin-top: calc(var(--head) + 20px);
}
.prose h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.prose h3 {
  font-size: 21px;
  margin-top: 32px;
}
.prose h4,
.prose h5,
.prose h6 {
  font-size: 18px;
  margin-top: 26px;
}
.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
  margin-top: 12px;
}
.anchor {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 0.7em;
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s var(--ease);
}
:is(h2, h3, h4, h5, h6):hover .anchor,
.anchor:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .anchor {
    opacity: 0.5;
  }
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose li + li {
  margin-top: 6px;
}
.prose li > ul,
.prose li > ol {
  margin-top: 6px;
}
.prose li > p + p {
  margin-top: 8px;
}
.prose :not(pre) > code {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}
.prose a code {
  color: inherit;
}
.prose strong {
  font-weight: 700;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin-block: 32px;
}
.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 75vh;
  border: 1px solid var(--border);
  border-radius: var(--w-radius-lg);
  background: var(--surface);
}

/* "In short": the summary at the start of each chapter of the guide. */
.summary {
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  border-left: 4px solid var(--primary);
  border-radius: var(--w-radius);
  padding: 16px 20px;
}
.summary-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.summary p + p,
.callout p + p {
  margin-top: 10px;
}
.callout {
  border-left: 3px solid var(--border);
  background: var(--panel);
  border-radius: 0 var(--w-radius) var(--w-radius) 0;
  padding: 12px 18px;
  color: var(--text);
}

/* Commands. */
.code {
  background: var(--code);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
  color: #f1eeff;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px 6px 16px;
  min-height: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 12px;
  color: #b9b1d6;
}
.copy {
  font-family: var(--mono);
  font-size: 13px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #34305a;
  background: #14142b;
  color: #f1eeff;
  cursor: pointer;
}
.copy:hover {
  border-color: #c7b4ff;
}
.code pre {
  margin: 0;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  overflow-x: auto;
}
.code pre code {
  font-size: inherit;
}

/* Tables: they scroll by themselves on a phone. */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--w-radius);
  background: var(--surface);
}
.table-wrap table {
  border-collapse: collapse;
  width: 100%;
  font-size: 17px;
  line-height: 1.45;
}
.table-wrap th,
.table-wrap td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.table-wrap th {
  background: var(--panel);
  font-weight: 600;
  white-space: nowrap;
}
.table-wrap tr:last-child td {
  border-bottom: 0;
}
.table-wrap th[align='center'],
.table-wrap td[align='center'] {
  text-align: center;
}
.table-wrap th[align='right'],
.table-wrap td[align='right'] {
  text-align: right;
}
.table-wrap code {
  overflow-wrap: normal;
  white-space: nowrap;
}

/* The chapters of a theme, on its first page. */
.prose .chapter-list {
  list-style: none;
  padding: 0;
  margin-top: 28px;
  display: grid;
  gap: 10px;
}
.prose .chapter-list li + li {
  margin-top: 0;
}
.chapter-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--w-radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
}
.chapter-list a:hover {
  border-color: var(--accent);
}
.chapter-title {
  font-family: var(--title);
  font-weight: 600;
  font-size: 18px;
}
.chapter-text {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.45;
}

/* Previous and next pages. */
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pager a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--w-radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
}
.pager a:hover {
  border-color: var(--accent);
}
.pager-next {
  grid-column: 2;
  text-align: right;
  align-items: flex-end;
}
.pager-dir {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.pager-title {
  font-weight: 600;
  line-height: 1.3;
}
@media (max-width: 620px) {
  .pager {
    grid-template-columns: minmax(0, 1fr);
  }
  .pager-next {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
