@font-face {
  font-family: Manrope;
  src: url(assets/manrope.woff2);
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Grotesk;
  src: url(assets/grotesk.woff2);
  font-weight: 300 700;
  font-display: swap;
}
:root {
  font-family: Manrope, Arial, sans-serif;
  color: #281e2a;
  background: #fffdf8;
  font-synthesis: none;
  scroll-padding-top: 100px;
  --ink: #281e2a;
  --muted: #716a74;
  --line: #e4dfdf;
  --accent: #d8ed72;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid #86459a;
  outline-offset: 4px;
}
header {
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: #fffdf8f5;
  backdrop-filter: blur(12px);
}
.brand {
  font:
    700 28px Grotesk,
    sans-serif;
  letter-spacing: -1px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 225px;
}
.brand span {
  font:
    500 14px Manrope,
    sans-serif;
  letter-spacing: 0;
  background: #eee9ee;
  padding: 5px 9px;
  border-radius: 5px;
  margin-left: 6px;
}
.search-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f6f3f1;
  color: var(--muted);
  font-size: 14px;
  padding: 12px 15px;
  max-width: 440px;
  width: 100%;
  text-align: left;
}
kbd {
  font: 12px monospace;
  border: 1px solid #d1c9d3;
  padding: 3px 5px;
  border-radius: 3px;
}
.product-link {
  margin-left: auto;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}
.menu-button {
  display: none;
}
.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 850px) 220px;
  max-width: 1460px;
  margin: auto;
  gap: 0;
}
#sidebar {
  position: sticky;
  top: 80px;
  height: calc(100dvh - 80px);
  overflow-y: auto;
  padding: 34px 20px 25px 28px;
  border-right: 1px solid var(--line);
}
.nav-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 20px;
}
#sidebar details {
  margin-bottom: 15px;
}
#sidebar summary {
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 7px 0;
}
#sidebar nav a {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  padding: 8px 10px;
  margin: 2px 0;
  border-radius: 5px;
  text-decoration: none;
  color: #62596a;
}
#sidebar nav a:hover {
  background: #eee8ef;
}
#sidebar nav a[aria-current] {
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
}
.sidebar-note {
  font: 500 18px Grotesk;
  line-height: 1.5;
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 22px;
  color: #8b808e;
}
main {
  padding: 45px 52px 40px;
  min-width: 0;
}
.breadcrumb {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  gap: 12px;
}
.breadcrumb span {
  color: #b3a8b6;
}
h1 {
  font:
    500 clamp(34px, 3.4vw, 47px)/1.12 Grotesk,
    sans-serif;
  letter-spacing: -1.6px;
  margin: 23px 0 19px;
}
.lead {
  font-size: 18px;
  line-height: 1.7;
  color: #6b6170;
  margin: 0 0 25px;
}
.article-meta {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  color: #827687;
  font-size: 12px;
}
.article-body section {
  margin-top: 36px;
}
.article-body h2 {
  font: 500 26px/1.3 Grotesk;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
}
.article-body h3 {
  font-size: 18px;
  margin: 25px 0 12px;
}
.heading-anchor {
  text-decoration: none;
  font: 16px monospace;
  margin-left: 10px;
  color: #94829a;
  opacity: 0;
}
h2:hover .heading-anchor,
.heading-anchor:focus {
  opacity: 1;
}
.article-body p,
.article-body li {
  font-size: 16px;
  line-height: 1.85;
  color: #4d4551;
}
.article-body p {
  margin: 14px 0;
}
.article-body li {
  margin: 10px 0;
  padding-left: 4px;
}
.article-body ol,
.article-body ul {
  padding-left: 24px;
}
.article-body a {
  color: #713d87;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-body strong {
  color: var(--ink);
  font-weight: 750;
}
code {
  font:
    14px/1.65 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  background: #f1ebf2;
  border-radius: 4px;
  padding: 2px 5px;
  overflow-wrap: anywhere;
}
pre {
  position: relative;
  background: #281e2a;
  color: #f5efe9;
  border-radius: 8px;
  padding: 24px 20px;
  overflow: auto;
  line-height: 1.7;
}
pre code {
  background: none;
  color: inherit;
  padding: 0;
  overflow-wrap: normal;
  white-space: pre;
  font-size: 14px;
}
.copy-button {
  position: absolute;
  right: 8px;
  top: 8px;
  font-size: 12px;
  border: 1px solid #807385;
  background: #413448;
  color: #fff;
  border-radius: 4px;
  padding: 5px 8px;
}
.article-body table {
  display: block;
  overflow: auto;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
  margin: 22px 0;
}
.article-body th {
  text-align: left;
  color: #35263d;
  background: #eee7ef;
  font-weight: 700;
}
.article-body td,
.article-body th {
  padding: 13px 15px;
  vertical-align: top;
  border: 1px solid var(--line);
  min-width: 130px;
}
.article-body td:first-child {
  font-weight: 600;
}
.callout {
  border-left: 3px solid #8ea23c;
  background: #f0f4df;
  padding: 14px 19px;
  margin: 22px 0;
  border-radius: 0 6px 6px 0;
}
.callout p {
  margin: 0;
}
.pager {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 40px;
}
.pager a {
  flex: 1;
  text-decoration: none;
  font: 500 18px Grotesk;
  line-height: 1.4;
}
.pager a:last-child {
  text-align: right;
}
.pager span {
  display: block;
  font: 12px Manrope;
  color: var(--muted);
  margin-bottom: 8px;
}
footer {
  font-size: 12px;
  color: #8b7f90;
  margin-top: 45px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
  font-size: 14px;
}
.toc {
  position: sticky;
  top: 80px;
  height: max-content;
  max-height: calc(100dvh - 80px);
  overflow: auto;
  padding: 44px 18px;
}
.toc a {
  display: block;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.65;
  margin: 13px 0;
  color: var(--muted);
  border-left: 2px solid var(--line);
  padding-left: 12px;
}
.toc a:hover {
  color: var(--ink);
  border-color: #8b9e39;
}
.print-button {
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  padding: 20px 0;
  font-size: 13px;
  color: var(--muted);
  margin-top: 15px;
}
.skip {
  position: fixed;
  left: 10px;
  top: -100px;
  z-index: 100;
  background: var(--accent);
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
dialog {
  width: min(700px, 94vw);
  border: 1px solid #c7bace;
  border-radius: 12px;
  padding: 24px;
  max-height: 85dvh;
  background: #fffdf8;
  color: var(--ink);
  box-shadow: 0 25px 100px #281e2a40;
}
dialog::backdrop {
  background: #281e2aaa;
  backdrop-filter: blur(3px);
}
.search-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 20px;
}
.close-search {
  background: none;
  border: 0;
  font-size: 20px;
  padding: 8px;
}
#search-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #bfb0c7;
  border-radius: 6px;
  background: #fff;
  font-size: 16px;
}
#search-count {
  font-size: 13px;
  color: var(--muted);
}
#search-results {
  overflow: auto;
  max-height: 55dvh;
}
#search-results a {
  display: block;
  padding: 15px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
#search-results a:hover {
  background: #f0f4df;
}
#search-results strong {
  display: block;
  font-size: 17px;
}
#search-results small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}
#search-results p {
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0 0;
}
.search-open {
  overflow: hidden;
}
@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
  main {
    padding-left: 36px;
    padding-right: 36px;
  }
  .brand {
    width: 200px;
  }
  .search-trigger {
    max-width: 360px;
  }
}
@media (max-width: 760px) {
  header {
    padding: 0 18px;
    gap: 15px;
    height: 70px;
  }
  .brand {
    width: auto;
    font-size: 24px;
  }
  .brand img {
    width: 27px;
    height: 27px;
  }
  .brand span {
    font-size: 12px;
  }
  .search-trigger {
    width: auto;
    margin-left: auto;
    font-size: 0;
    padding: 10px;
  }
  .search-trigger:before {
    content: "Search";
    font-size: 14px;
  }
  .search-trigger kbd {
    display: none;
  }
  .product-link {
    display: none;
  }
  .menu-button {
    display: block;
    background: none;
    border: 0;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
  }
  .layout {
    display: block;
  }
  #sidebar {
    display: none;
    position: fixed;
    z-index: 15;
    top: 70px;
    left: 0;
    width: min(330px, 90vw);
    height: calc(100dvh - 70px);
    background: #fffdf8;
    box-shadow: 20px 0 40px #281e2a20;
  }
  #sidebar.is-open {
    display: block;
  }
  main {
    padding: 30px 22px;
  }
  .lead {
    font-size: 17px;
  }
  .article-body h2 {
    font-size: 24px;
  }
  .pager {
    gap: 15px;
  }
  .pager a {
    font-size: 16px;
  }
  :root {
    scroll-padding-top: 85px;
  }
}
@media print {
  header,
  #sidebar,
  .toc,
  .pager,
  .copy-button,
  dialog {
    display: none !important;
  }
  .layout {
    display: block;
  }
  main {
    padding: 0;
  }
  .article-body section {
    break-inside: avoid;
  }
  pre {
    white-space: pre-wrap;
    color: #000;
    background: #eee;
  }
  a {
    color: #000;
  }
  footer {
    margin-top: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
figure {
  margin: 26px 0;
}
figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 5px solid #281e2a;
}
figcaption {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 10px;
}
.module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.module-card {
  display: block !important;
  text-decoration: none !important;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 19px;
  color: var(--ink) !important;
  transition: background 0.15s;
}
.module-card:hover {
  background: #f0f4df;
}
.module-card strong {
  display: block;
  font: 500 20px Grotesk;
  margin-bottom: 9px;
}
.module-card span {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
@media (max-width: 500px) {
  .module-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 440px) {
  header { gap: 10px; padding: 0 12px; }
  .brand span { display: none; }
  .brand { gap: 5px; font-size: 23px; }
  .search-trigger { padding: 8px; }
  .menu-button { font-size: 13px; }
}

.guide-screenshot {
  margin: 28px auto;
}
.guide-screenshot img {
  border: 1px solid var(--line);
  background: var(--ink);
}
.guide-screenshot figcaption {
  font-size: 13px;
}
.guide-screenshot figcaption a {
  white-space: nowrap;
}
