/* Website palette and shell adapted from betterdisplay.pro/dev; keep content styles local. */
:root {
  color-scheme: light;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --background: #eeedf0; --text: #252832; --muted: #4d5360;
  --line: rgba(73, 78, 94, .18); --soft: #e5e7ed; --surface: #f9f9fa;
  --link: #375ec7; --brand: #4169e1; --accent: #6f86b2;
  --elevated: rgba(247, 247, 249, .82);
  --page-background: radial-gradient(110% 95% at 0% 0%, rgba(169, 156, 143, .17), transparent 62%), radial-gradient(120% 110% at 100% 100%, rgba(111, 135, 182, .24), transparent 72%), linear-gradient(145deg, #e8e6e6, #e4e7ef);
  --section-background: rgba(249, 249, 250, .6);
  --shadow-soft: 0 12px 30px rgba(54, 57, 72, .1);
  --button-background: #2b313d; --button-shadow: 0 10px 18px rgba(10, 14, 24, .2);
  --pro-background: linear-gradient(180deg, #2b313d, color-mix(in srgb, #4169e1 52%, #2b313d));
  --footer-muted: #616161; --footer-strong: #3f3f3f; --icon-filter: brightness(0) saturate(0);
  --light-logo: block; --dark-logo: none;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --background: #10111c; --text: #f2f5ff; --muted: #bdc1d5;
    --line: rgba(151, 175, 227, .2); --soft: #282b3e; --surface: #202231;
    --link: #a4b7ff; --brand: #819cff; --accent: #9292d6;
    --elevated: rgba(27, 29, 44, .78);
    --page-background: radial-gradient(120% 110% at 0% 0%, rgba(111, 92, 180, .2), transparent 62%), radial-gradient(120% 100% at 100% 100%, rgba(79, 108, 192, .22), transparent 70%), linear-gradient(145deg, #10111c, #171c30);
    --section-background: rgba(32, 34, 49, .65);
    --shadow-soft: 0 14px 34px rgba(2, 7, 18, .45);
    --button-background: transparent; --button-shadow: none;
    --pro-background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--brand) 24%, transparent));
    --footer-muted: #9a9a9a; --footer-strong: #cfcfcf; --icon-filter: none;
    --light-logo: none; --dark-logo: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #10111c; --text: #f2f5ff; --muted: #bdc1d5;
    --line: rgba(151, 175, 227, .2); --soft: #282b3e; --surface: #202231;
    --link: #a4b7ff; --brand: #819cff; --accent: #9292d6;
    --elevated: rgba(27, 29, 44, .78);
    --page-background: radial-gradient(120% 110% at 0% 0%, rgba(111, 92, 180, .2), transparent 62%), radial-gradient(120% 100% at 100% 100%, rgba(79, 108, 192, .22), transparent 70%), linear-gradient(145deg, #10111c, #171c30);
    --section-background: rgba(32, 34, 49, .65);
    --shadow-soft: 0 14px 34px rgba(2, 7, 18, .45);
    --button-background: transparent; --button-shadow: none;
    --pro-background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--brand) 24%, transparent));
    --footer-muted: #9a9a9a; --footer-strong: #cfcfcf; --icon-filter: none;
    --light-logo: none; --dark-logo: block;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page-background); color: var(--text); }
main { min-block-size: 45vh; padding-block-end: 36px; }
a { color: var(--link); text-underline-offset: .18em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
main a { font-weight: 700; text-decoration: none; }
main a:hover { text-decoration: underline; }
#article .external-link::after {
  content: ""; display: inline-block; width: .85em; height: .85em; flex-shrink: 0;
  margin-inline-start: .3em; vertical-align: -.08em; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3h7v7M21 3 10 14M10 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
button { font: inherit; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; border-radius: 3px; }
main:focus { outline: none; }
.skip-link { position: fixed; inset-block-start: -100px; inset-inline-start: 16px; background: var(--surface); padding: 12px; z-index: 50; }
.skip-link:focus { inset-block-start: 8px; }
.article-section, #status, .noscript { padding-inline: max(28px, calc((100% - 848px) / 2)); }
/* Show the sidebar with the expanded header; let the reading column narrow as needed. */
.page-navigation { display: none; }
@media screen and (width > 960px) {
  .has-page-toc { --reading-gutter: max(18px, calc((100% - 1044px) / 2)); }
  .has-page-toc .article-section, .has-page-toc #status, .has-page-toc .noscript {
    /* Match the shell direction even when article dir="auto" resolves differently. */
    padding-left: var(--reading-gutter);
    padding-right: calc(var(--reading-gutter) + 332px);
  }
  :root[dir="rtl"] .has-page-toc :is(.article-section, #status, .noscript) {
    padding-left: calc(var(--reading-gutter) + 332px);
    padding-right: var(--reading-gutter);
  }
  .has-page-toc .breadcrumbs { --breadcrumb-gutter: var(--reading-gutter); max-width: calc(100% - 2 * var(--reading-gutter) - 332px); }
  .page-navigation {
    display: flex; flex-direction: column; gap: 14px; position: fixed; z-index: 20;
    /* Keep the enclosures and their shadows fixed; only their contents scroll. */
    inset-block-start: calc(var(--header-height, 84px) + 14px);
    inset-inline-end: var(--reading-gutter); width: 300px;
    height: max(0px, calc(100dvh - var(--header-height, 84px) - 46px));
    font-size: .8rem; line-height: 1.45;
  }
  .page-toc, .page-toc-related {
    display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0;
    border: 1px solid var(--line); border-radius: 18px;
    background: var(--elevated); box-shadow: var(--shadow-soft);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  }
  .page-toc-related { box-sizing: border-box; flex-shrink: 0; max-height: max(calc((100% - var(--search-height, 34px) - 28px) / 3), calc(100% - var(--search-height, 34px) - 28px - var(--toc-content-height, 0px))); }
  .page-toc-related[hidden] { display: none; }
  .page-navigation-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; padding-inline: 18px; border-radius: 17px; }
  .page-navigation-scroll::before, .page-navigation-scroll::after { content: ""; display: block; height: 18px; }
  .page-navigation ul, .page-navigation ol { list-style: none; margin: 0; padding: 0; }
  .page-toc ul ul { margin-inline-start: 12px; }
  .page-toc-headings li { position: relative; padding-inline-start: 8px; }
  .page-toc-headings li::before, .page-toc-ancestry li + li::before {
    content: ""; position: absolute; pointer-events: none;
    inset-inline-start: 0; inset-block-start: -5px;
    width: 8px; height: calc(10px + .725em);
    border-inline-start: 1px solid var(--line); border-block-end: 1px solid var(--line);
    border-end-start-radius: 3px;
  }
  /* Adjacent translucent segments meet without painting over one another. */
  .page-toc-headings li:not(:last-child)::before {
    inset-inline-start: 1px; width: 7px; border-inline-start: 0; border-end-start-radius: 0;
  }
  .page-toc-headings li:not(:last-child)::after {
    content: ""; position: absolute; pointer-events: none;
    inset-inline-start: 0; inset-block: -5px 5px; border-inline-start: 1px solid var(--line);
  }
  .page-navigation a { display: block; padding: 5px 6px; color: var(--muted); text-decoration: none; border-radius: 6px; }
  .page-toc-ancestry li { position: relative; padding-inline-start: calc(min(var(--ancestor-depth), 5) * 14px); }
  .page-toc-ancestry li + li::before { width: 4px; inset-inline-start: calc((min(var(--ancestor-depth), 5) - 1) * 14px + 12px); }
  .page-toc-ancestry a { display: flex; align-items: center; gap: 7px; font-weight: 600; }
  .page-toc-ancestry [aria-current] { color: var(--link); font-weight: 700; }
  .page-toc .page-toc-headings { margin-inline-start: calc(min(var(--ancestor-depth), 5) * 14px + 12px); }
  .page-toc-related-title { margin: 0 6px 9px; padding-block-end: 10px; border-block-end: 1px solid var(--line); color: var(--text); font-weight: 700; letter-spacing: .01em; }
  .page-navigation a:hover, .page-navigation a:focus-visible { color: var(--link); background: color-mix(in srgb, var(--brand) 10%, transparent); }
}
.breadcrumbs { --breadcrumb-gutter: max(28px, calc((100% - 848px) / 2)); position: sticky; inset-block-start: var(--header-height, 84px); z-index: 30; width: fit-content; max-width: calc(100% - 2 * var(--breadcrumb-gutter)); margin-inline: var(--breadcrumb-gutter); padding-block: 8px 16px; font-size: .78rem; isolation: isolate; }
/* The transparent blur extends 4px beyond the joined silhouette, below its shadows. */
.breadcrumbs::before { content: ""; position: absolute; z-index: -1; inset: 10px -4px 22px; border-radius: 13px 0 0 13px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); pointer-events: none; }
:root[dir="rtl"] .breadcrumbs::before { border-radius: 0 13px 13px 0; clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); }
/* Round the scrollport before the wrapper casts its shadow, including beneath the pinned root. */
.breadcrumb-strip { display: flex; align-items: center; gap: 6px; padding-block: 6px 10px; filter: drop-shadow(0 3px 4px rgba(10, 21, 44, .12)); }
.guide-back { --back-color: light-dark(#28685e, #9cdbca); flex: 0 0 auto; min-height: 34px; padding: 7px 14px 7px 22px; border: 0; border-start-end-radius: 9px; border-end-end-radius: 9px; color: var(--back-color); background: color-mix(in srgb, var(--back-color) 16%, var(--surface)); font-weight: 600; cursor: pointer; clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%); }
.guide-back[hidden] { display: none; }
.guide-back:hover, .guide-back:focus-visible { background: color-mix(in srgb, var(--back-color) 28%, var(--surface)); }
.guide-back:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--back-color); }
.guide-search-return { --search-color: light-dark(#963e4b, #f0a4b0); display: flex; align-items: center; gap: 7px; flex: 0 0 auto; min-width: 0; max-width: 200px; min-height: 34px; padding: 7px 10px; border-radius: 9px; color: var(--search-color); background: color-mix(in srgb, var(--search-color) 16%, var(--surface)); text-decoration: none; font-weight: 600; }
.guide-search-return > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guide-search-return svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.guide-search-return:hover, .guide-search-return:focus-visible { background: color-mix(in srgb, var(--search-color) 28%, var(--surface)); }
.guide-search-return:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--search-color); }
.breadcrumb-strip:has(.guide-search-return:not([hidden])) #breadcrumbs { min-width: 96px; }
@media (max-width: 640px) {
  .guide-search-return { max-width: min(200px, calc(100vw - 160px)); }
  .breadcrumb-strip:has(.guide-back:not([hidden])) .guide-search-return { max-width: min(200px, calc(100vw - 230px)); }
}
@media (max-width: 380px) {
  .breadcrumb-strip:has(.guide-search-return:not([hidden])) { gap: 4px; }
  .breadcrumb-strip:has(.guide-search-return:not([hidden])) .guide-back { padding-inline: 18px 10px; }
  .guide-search-return { gap: 5px; padding-inline: 8px; }
  .breadcrumb-strip:has(.guide-back:not([hidden])) .guide-search-return { max-width: min(200px, calc(100vw - 210px)); }
}
.breadcrumbs:has(.guide-back:not([hidden]))::before { border-radius: 0; clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%); }
:root[dir="rtl"] .guide-back { padding-inline: 22px 14px; clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%); }
#breadcrumbs { display: flex; align-items: center; margin: 0; padding: 0; border-start-start-radius: 9px; border-end-start-radius: 9px; list-style: none; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 96px 8px; }
#breadcrumbs::-webkit-scrollbar { display: none; }
#breadcrumbs li { flex: 0 0 auto; position: relative; }
#breadcrumbs li + li { margin-inline-start: -8px; }
#breadcrumbs a { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 22px 7px 23px; color: var(--muted); background: var(--surface); text-decoration: none; font-weight: 600; white-space: nowrap; clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%, 11px 50%); }
#breadcrumbs li:first-child { position: sticky; inset-inline-start: 0; z-index: 2; filter: drop-shadow(0 0 1px rgba(10, 21, 44, .18)); }
#breadcrumbs li:first-child a { padding-inline-start: 12px; border-radius: 9px 0 0 9px; clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%); }
#breadcrumbs a:hover, #breadcrumbs a:focus-visible { color: var(--link); background: color-mix(in srgb, var(--brand) 14%, var(--surface)); }
#breadcrumbs a:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--link); }
#breadcrumbs [aria-current] { color: var(--link); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
#breadcrumbs img { display: block; filter: var(--icon-filter); opacity: .8; }
:root[dir="rtl"] #breadcrumbs a { clip-path: polygon(11px 0, 100% 0, calc(100% - 11px) 50%, 100% 100%, 11px 100%, 0 50%); }
:root[dir="rtl"] #breadcrumbs li:first-child a { border-radius: 0 9px 9px 0; clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%); }
.article-section { padding-block: 48px; display: flow-root; }
.article-intro { padding-block: 22px 48px; }
.article-section:nth-child(even) { background: var(--section-background); }
.article-section > :first-child { margin-block-start: 0; }
.article-section > :last-child { margin-block-end: 0; }
article { overflow-wrap: anywhere; }
article [id], main { scroll-margin-block-start: calc(var(--navigation-height, 150px) + 16px); }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-block: 0 26px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-block: 1.8em .85em; }
h3 { font-size: 1.25rem; margin-block: 1.6em .8em; }
h4, h5, h6 { font-size: 1rem; }
.linked-heading { position: relative; }
.heading-link { position: absolute; inset-inline-start: -24px; inset-block-start: 0; display: flex; align-items: center; justify-content: center; width: 24px; padding-inline-end: 4px; height: 1.3em; color: var(--muted); opacity: 0; }
.heading-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.linked-heading:hover > .heading-link, .linked-heading:focus-within > .heading-link, .heading-link.copied { opacity: 1; }
.heading-link:hover, .heading-link.copied { color: var(--link); }
.heading-link .copied-symbol, .heading-link.copied .link-symbol { display: none; }
.heading-link.copied .copied-symbol { display: initial; }
.clipboard-copy { position: fixed; inset: 0 auto auto 0; opacity: 0; }
@media (hover: none) { .heading-link { opacity: 1; } }
p, ul, ol, blockquote, pre, table, details { margin-block: 0 1.2em; }
li > p { margin-block: .5em; }
main li + li { margin-block-start: .25em; }
ul, ol { padding-inline-start: 1.6em; }
main ul { list-style-type: disc; }
main ul > li:not(:has(> input[type="checkbox"])) { padding-inline-start: .2em; }
main ul > li::marker { color: var(--accent); font-size: .8em; }
li:has(> input[type="checkbox"]) { list-style: none; }
input[type="checkbox"] { margin-inline: -1.35em .4em; }
blockquote { margin-inline: 0; padding-inline: 18px; border-inline-start: 3px solid var(--line); color: var(--muted); }
blockquote > :last-child, .alert > :last-child { margin-block-end: 0; }
/* Shortcuts action sentences and their editable parameter values. */
[data-guide-id="integration/shortcuts"] blockquote {
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--text);
}
[data-guide-id="integration/shortcuts"] blockquote strong { color: var(--muted); font-size: .85em; }
[data-guide-id="integration/shortcuts"] blockquote code {
  font-family: inherit; font-size: inherit; font-weight: 600; color: var(--link);
  background: color-mix(in srgb, var(--brand) 12%, var(--surface)); border-radius: 6px;
}

code, pre, kbd, samp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
code, kbd, samp { direction: ltr; unicode-bidi: isolate; }
code { background: var(--soft); padding: .15em .35em; border-radius: 4px; overflow-wrap: anywhere; }
pre { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 18px; overflow: auto; direction: ltr; text-align: start; }
pre code { padding: 0; background: none; font-size: 1em; overflow-wrap: normal; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: .1em .4em; }
.table-scroll { overflow: auto; margin-block-end: 1.2em; }
table { border-collapse: collapse; width: 100%; font-size: .93em; margin: 0; overflow-wrap: normal; }
table a, table code { overflow-wrap: normal; }
table:not(.table-scroll > table) { display: block; overflow: auto; margin-block-end: 1.2em; }
th, td { border: 1px solid var(--line); padding: .65em .9em; }
th { background: var(--soft); }
th:not([align]), td:not([align]) { text-align: start; }
article img, article video { display: block; max-width: 75%; height: auto; margin-inline: auto; border-radius: 11px; box-shadow: 0 26px 62px rgba(10, 21, 44, .22), 0 10px 24px rgba(8, 17, 36, .14), 0 1px 2px rgba(6, 12, 26, .12); }
article img:focus-visible { border-radius: 11px; }
/* Transparent or independently shadowed artwork keeps its original silhouette. */
article img:is([src*="-unframed."], [src*="-unframed-light."], [src*="-unframed-dark."]) { border-radius: 0; box-shadow: none; }
article img.menu-image { max-width: 50%; }
@media (max-width: 640px) { article img, article img.menu-image { max-width: 100%; } }
figure { margin: 0 0 1.5em; }
figcaption { max-width: 70ch; margin-inline: auto; padding-block-start: 10px; opacity: .75; font-style: italic; font-size: .875rem; line-height: 1.5; text-align: center; }
article img.expandable-image { cursor: zoom-in; }
:root.image-preview-pointer :is(.expandable-image, .image-preview-close):focus-visible { outline: none; }
:root.image-preview-open { overflow: hidden; scrollbar-gutter: stable; }
.image-preview {
  max-width: none; max-height: none; padding: 0; overflow: visible;
  border: 1px solid var(--line); border-radius: calc(var(--preview-radius, 24px) + 1px); background: var(--surface); color: var(--text);
  box-shadow: 0 32px 100px rgba(0, 0, 0, .38), 0 10px 30px rgba(0, 0, 0, .2);
}
.image-preview img { display: block; height: auto; border-radius: var(--preview-radius, 24px); cursor: zoom-out; }
.image-preview::backdrop { background: rgba(8, 12, 24, .48); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: image-preview-backdrop 200ms ease-out both; }
.image-preview-enter { animation: image-preview-enter 260ms cubic-bezier(.2, .7, .2, 1) both; }
.image-preview-close {
  position: absolute; inset-block-start: -16px; inset-inline-end: -16px;
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2); cursor: pointer;
}
.image-preview-close svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.image-preview-close:hover { background: var(--soft); }
@keyframes image-preview-enter {
  from { opacity: 0; transform: translate(var(--preview-x), var(--preview-y)) scale(var(--preview-scale)); }
  to { opacity: 1; transform: none; }
}
@keyframes image-preview-backdrop { from { opacity: 0; } to { opacity: 1; } }
/* Feature comparison uses the website’s SF Symbol artwork with readable export labels. */
[data-guide-id="licensing/free-and-pro-features"] table { font-size: .875rem; }
[data-guide-id="licensing/free-and-pro-features"] th:not(:first-child),
[data-guide-id="licensing/free-and-pro-features"] td:not(:first-child) { padding-inline: .6em; }
[data-guide-id="licensing/free-and-pro-features"] th:nth-child(2) { color: var(--link); }
[data-guide-id="licensing/free-and-pro-features"] td > strong,
[data-guide-id="licensing/free-and-pro-features"] td > em {
  display: inline-flex; align-items: center; gap: .4em; white-space: nowrap;
  font-style: normal; font-weight: 600;
}
[data-guide-id="licensing/free-and-pro-features"] td:not(:first-child) > strong { color: color-mix(in srgb, var(--text) 50%, #32ad57); }
[data-guide-id="licensing/free-and-pro-features"] td > em { color: var(--link); }
[data-guide-id="licensing/free-and-pro-features"] td:not(:first-child) > strong::before,
[data-guide-id="licensing/free-and-pro-features"] td > em::before,
[data-guide-id="licensing/free-and-pro-features"] td:not(:first-child):not(:has(strong, em))::before {
  content: ""; display: inline-block; width: 16px; height: 16px; flex-shrink: 0;
  vertical-align: -.15em; background: url("feature-checkmark.svg") center / contain no-repeat;
  filter: brightness(0) saturate(100%) invert(62%) sepia(96%) saturate(613%) hue-rotate(85deg) brightness(95%) contrast(90%) saturate(30%) brightness(85%);
}
[data-guide-id="licensing/free-and-pro-features"] td > em::before {
  background-image: url("feature-plus.svg");
  filter: brightness(0) saturate(100%) invert(44%) sepia(62%) saturate(951%) hue-rotate(190deg) brightness(97%) contrast(94%);
}
[data-guide-id="licensing/free-and-pro-features"] td:not(:first-child):not(:has(strong, em)) { color: var(--muted); }
[data-guide-id="licensing/free-and-pro-features"] td:not(:first-child):not(:has(strong, em))::before {
  background-image: url("feature-xmark.svg"); margin-inline-end: .4em; opacity: .65;
  filter: brightness(0) saturate(100%) invert(22%) sepia(96%) saturate(5102%) hue-rotate(344deg) brightness(96%) contrast(101%) saturate(35%) brightness(90%);
}
[data-guide-id="licensing/free-and-pro-features"] td:first-child > strong {
  color: var(--link); font-size: .7rem; letter-spacing: .04em;
}
/* Early-backers tribute: semantic content remains plain in Markdown exports. */
[data-guide-id="licensing/early-backers"] .article-intro {
  background: radial-gradient(ellipse at 85% 0%, rgba(222, 181, 93, .13), transparent 65%);
}
[data-guide-id="licensing/early-backers"] .historical-icons {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  margin-block: 2em; padding: 28px 16px 18px; border: 1px solid color-mix(in srgb, #d8b66a 35%, var(--line));
  border-radius: 24px; background: radial-gradient(ellipse at 50% 10%, rgba(222, 181, 93, .16), transparent 70%), var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 16px 40px rgba(18, 25, 50, .07);
}
[data-guide-id="licensing/early-backers"] .historical-icons figure { margin: 0; align-self: start; }
[data-guide-id="licensing/early-backers"] img {
  width: 144px; max-width: 100%; filter: drop-shadow(0 8px 12px rgba(30, 35, 60, .12));
}
[data-guide-id="licensing/early-backers"] .historical-icons figcaption {
  font-size: .8rem; font-style: normal; padding-block-start: 16px; opacity: .85;
}
[data-guide-id="licensing/early-backers"] #generous-contributors + p + ul {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  padding: 0; list-style: none;
}
[data-guide-id="licensing/early-backers"] #generous-contributors + p + ul > li {
  margin: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(120deg, rgba(222, 181, 93, .09), transparent), var(--surface);
}
[data-guide-id="licensing/early-backers"] #more-people-who-made-it-possible + p + ul {
  columns: 3; column-gap: 32px;
}
[data-guide-id="licensing/early-backers"] #more-people-who-made-it-possible + p + ul > li { break-inside: avoid; }
@media (max-width: 640px) {
  [data-guide-id="licensing/early-backers"] .historical-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; padding: 20px 12px 16px; }
  [data-guide-id="licensing/early-backers"] #generous-contributors + p + ul { grid-template-columns: 1fr; }
  [data-guide-id="licensing/early-backers"] #more-people-who-made-it-possible + p + ul { columns: 2; }
}
@media (max-width: 380px) {
  [data-guide-id="licensing/early-backers"] .historical-icons { grid-template-columns: 1fr; }
  [data-guide-id="licensing/early-backers"] #more-people-who-made-it-possible + p + ul { columns: 1; }
}
hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
details { border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-block-end: 1em; }
.alert { --accent: #246cc1; border-inline-start: 4px solid var(--accent); padding: 14px 20px; margin-block: 1.4em; background: var(--soft); border-radius: 6px; }
.alert-title { color: var(--accent); font-weight: 650; margin-block-end: .4em; }
.alert-tip { --accent: #21834b; } .alert-important { --accent: #8256c6; } .alert-warning { --accent: #936600; } .alert-caution { --accent: #c23835; }
.footnotes { border-top: 1px solid var(--line); font-size: .9em; margin-block-start: 3em; padding-block-start: 1em; }
.footnotes h2 { font-size: 1rem; margin-block-start: 0; }
#children { border: 1px solid var(--line); border-radius: 12px; background: var(--section-background); margin-block: 28px 32px; padding: clamp(16px, 3vw, 24px); }
#children h2 { font-size: 1.1rem; margin-block: 0 .35em; }
#children > p { color: var(--muted); font-size: .9rem; margin-block-end: 1em; }
#children ul { margin: 0; }
#children li + li { margin-block-start: .9em; }
#children li p { color: var(--muted); font-size: .9rem; line-height: 1.5; margin-block: .15em 0; }
#status { color: var(--muted); }
[hidden] { display: none !important; }
/* The website's compact, always-visible header (there is no guide hero). */
.site-header { position: sticky; inset-block-start: 0; z-index: 40; padding-block: 12px; background: linear-gradient(to bottom, rgba(0, 0, 0, .05), transparent); }
.site-nav { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; max-width: 1044px; margin-inline: auto; width: calc(100% - 36px); padding: 9px 14px; border: 1px solid var(--line); border-radius: 35px; background: var(--elevated); box-shadow: var(--shadow-soft); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); font-size: 14.4px; line-height: 1.55; }
.site-nav a, .site-footer a { text-decoration: none; }
.site-nav img, .site-footer img { display: block; flex-shrink: 0; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; order: 1; color: var(--text); font-weight: 700; letter-spacing: -.01em; }
.github-action { order: 2; }
.brand img { width: 31px; height: 31px; }
.brand .brand-icon-light { display: var(--light-logo); }
.brand .brand-icon-dark { display: var(--dark-logo); }
.brand-label { white-space: nowrap; }
.nav-menu { margin-inline-start: auto; order: 3; }
.nav-links { display: flex; align-items: center; gap: 14px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; opacity: .72; }
.nav-links a:hover, .nav-links a:focus-visible { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; order: 4; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; min-height: 36px; font-size: 12.25px; font-weight: 700; white-space: nowrap; color: #fff; background: var(--button-background); box-shadow: var(--button-shadow); transition: transform 220ms ease; }
.btn:hover { transform: translateY(-1px); }
.btn img { width: 16px; height: 16px; }
.get-pro { background: var(--pro-background); border-color: color-mix(in srgb, var(--line) 72%, var(--brand)); }
.download { background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 94%, white), color-mix(in srgb, var(--accent) 92%, white)); border-color: color-mix(in srgb, var(--brand) 62%, var(--accent)); box-shadow: 0 14px 24px rgba(24, 93, 202, .26); }
.nav-toggle { display: none; align-items: center; justify-content: center; flex-direction: column; gap: 4px; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; }
.nav-toggle span { width: 14px; height: 2px; background: var(--text); border-radius: 2px; transform-origin: center; transition: transform 220ms ease; }
.guide-search { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; padding-inline: 13px; height: var(--search-height, 34px); border: 1px solid var(--line); border-radius: 18px; color: var(--muted); background: var(--elevated); box-shadow: var(--shadow-soft), 0 0 14px transparent; transition: border-color 220ms ease, box-shadow 220ms ease; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.guide-search svg, .search-toggle svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.guide-search input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--text); font: inherit; }
.guide-search input::placeholder { color: var(--muted); opacity: .7; }
.guide-search:focus-within { border-color: color-mix(in srgb, var(--brand) 42%, var(--line)); box-shadow: var(--shadow-soft), 0 0 14px color-mix(in srgb, var(--brand) 24%, transparent); }
.guide-search input:focus-visible { outline: none; }
.sidebar-search, .sidebar-search-slot { flex: 0 0 var(--search-height, 34px); width: 100%; }
.search-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: var(--surface); cursor: pointer; transition: background-color 220ms ease; }
.search-toggle:hover { background: var(--line); }
.search-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; border-radius: 50%; }
.header-search { flex: 0 0 100%; min-width: 0; order: 6; margin-block-start: .72rem; padding-block-start: .45rem; border-block-start: 1px solid var(--line); overflow: hidden; }
.header-search[hidden] { display: none; }
.header-search-input { height: 44px; box-shadow: none; background: var(--surface); }
.header-search-input:focus-within { box-shadow: none; }
.results-search { height: 58px; margin-block: 30px 24px; gap: 14px; padding-inline: 18px 6px; font-size: 1.1rem; }
.results-search svg { width: 22px; height: 22px; }
.results-search button { align-self: stretch; flex-shrink: 0; white-space: nowrap; margin-block: 5px; padding-inline: 18px; border: 1px solid var(--line); border-radius: 12px; font-size: .9rem; font-weight: 700; background: var(--link); color: var(--surface); cursor: pointer; }
.search-summary { color: var(--muted); font-size: .9rem; }
.search-results { list-style: none; padding: 0; display: grid; gap: 16px; }
.search-results > li { padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--elevated); box-shadow: var(--shadow-soft); }
.search-results h3 { margin-block: 0 10px; font-size: 1.2rem; line-height: 1.4; }
.search-sidebar-message { padding: 5px 6px; color: var(--muted); }
.search-results p { margin-block: 0; font-size: .95rem; }
.search-results .search-result-section { margin-block-end: 8px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.search-results .search-result-excerpt { min-block-size: 3lh; }
.search-result-excerpt[data-state="pending"], .search-result-excerpt[data-state="failed"] { color: var(--muted); }
.search-results mark { background: color-mix(in srgb, var(--brand) 18%, transparent); color: inherit; border-radius: 3px; }
@media screen and (width > 960px) {
  .has-page-toc .search-toggle, .has-page-toc .header-search { display: none; }
}
@media (max-width: 640px) {
  .header-search-input input { font-size: 16px; }
  .search-results > li { padding: 18px; }
}
@media (max-width: 380px) {
  .results-search { padding-inline-start: 12px; gap: 9px; }
  .results-search button { padding-inline: 12px; }
}
.is-open .nav-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
.is-open .nav-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }
.site-footer { border-block-start: 1px solid var(--line); padding-block: 30px 34px; background: rgba(12, 20, 36, .04); }
.site-footer .container { width: min(1000px, calc(100% - 44px)); margin-inline: auto; }
.footer-links-list { justify-content: center; gap: 14px 28px; flex-wrap: wrap; }
.footer-links-list a { color: var(--footer-muted); font-size: 13.25px; font-weight: 700; opacity: .9; }
.footer-links-list a:hover { color: var(--footer-strong); }
.nav-link-discord { display: inline-flex; align-items: center; }
.nav-link-discord-logo { height: 12px; width: auto; filter: var(--icon-filter); opacity: .65; }
.site-footer .footer-controls { display: flex; justify-content: center; margin-block-start: 16px; }
.theme-mode-group { display: inline-flex; gap: 6px; align-items: center; }
.debug-theme-button { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; padding: 0; cursor: pointer; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--footer-muted) 44%, transparent); background: color-mix(in srgb, var(--surface) 58%, transparent); }
.debug-theme-button img { width: 14px; height: 14px; filter: var(--icon-filter); opacity: .76; }
.debug-theme-button:hover, .debug-theme-button[aria-pressed="true"] { border-color: var(--footer-strong); background: color-mix(in srgb, var(--footer-strong) 18%, var(--surface)); }
.debug-theme-button[aria-pressed="true"] img { opacity: 1; }
.site-footer .footer-meta { margin-block-start: 16px; text-align: center; color: var(--footer-muted); font-size: 11.5px; line-height: 1.52; display: grid; gap: 5px; }
.footer-meta p { margin: 0; }
.footer-meta a { color: var(--footer-strong); font-weight: 600; }
@media (max-width: 960px) {
  .site-nav { column-gap: 14px; }
  .nav-actions { margin-inline-start: auto; }
  .nav-toggle { display: flex; }
  .nav-menu { order: 5; flex: 0 0 100%; min-width: 0; margin-inline-start: 0; margin-block-start: .72rem; padding-block-start: .45rem; border-block-start: 1px solid color-mix(in srgb, color-mix(in srgb, var(--line) 78%, var(--muted) 22%) 50%, transparent); overflow: hidden; }
  .nav-menu .nav-links { justify-content: center; flex-wrap: wrap; gap: 8px 24px; }
  .nav-menu a { display: inline-block; padding-block: 6px; }
}
@media (max-width: 680px) {
  .github-action span { display: none; }
  .github-action { width: 36px; padding: 0; }
}
@media (max-width: 640px) {
  :root { font-size: 15px; }
  .brand-label { display: none; }
  .site-nav { width: calc(100% - 24px); column-gap: 10px; padding-inline: 11px; }
  .article-section { padding-block: 34px; }
  .article-intro { padding-block-start: 18px; }
  .breadcrumbs { font-size: .75rem; }
  .footer-links-list { gap: 12px 22px; }
  .debug-theme-button { width: 36px; height: 36px; }
}
@media (max-width: 480px) {
  .nav-actions .btn span { display: none; }
  .nav-actions .btn img { display: block; }
  .nav-actions .btn { width: 36px; padding: 0; }
}
@media (max-width: 380px) {
  .site-nav { column-gap: 7px; padding-inline: 9px; }
  .nav-actions { gap: 6px; }
  .btn { padding-inline: 10px; }
  .github-action { padding: 0; }
  .breadcrumbs { --breadcrumb-gutter: 24px; }
  .article-section, #status, .noscript { padding-inline: 24px; }
  :root { font-size: 14.5px; }
}
@media (max-width: 319px) {
  .site-nav { column-gap: 5px; padding-inline: 8px; }
  .nav-actions { gap: 4px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .alert { --accent: #85baff; }
  :root:not([data-theme="light"]) .alert-tip { --accent: #70ce93; }
  :root:not([data-theme="light"]) .alert-important { --accent: #c4a1ff; }
  :root:not([data-theme="light"]) .alert-warning { --accent: #e0bb59; }
  :root:not([data-theme="light"]) .alert-caution { --accent: #ff9592; }
}
:root[data-theme="dark"] .alert { --accent: #85baff; }
:root[data-theme="dark"] .alert-tip { --accent: #70ce93; }
:root[data-theme="dark"] .alert-important { --accent: #c4a1ff; }
:root[data-theme="dark"] .alert-warning { --accent: #e0bb59; }
:root[data-theme="dark"] .alert-caution { --accent: #ff9592; }
@media (prefers-reduced-motion: reduce) {
  .btn, .guide-search, .search-toggle, .nav-toggle span { transition: none; }
  .image-preview-enter, .image-preview::backdrop { animation: none; }
}
@media print {
  :root { color-scheme: light; --text: #000; --muted: #444; --link: #000; --line: #ccc; --soft: #eee; }
  body, .article-section:nth-child(even) { background: white; }
  .site-header, .site-footer, .breadcrumbs, #children, .skip-link, .heading-link, .guide-search { display: none; }
  main { padding: 0; }
  .article-section { padding: 16px 0; }
  article img, article video { box-shadow: none; }
  .image-preview, .image-preview::backdrop { display: none; }
  pre { white-space: pre-wrap; }
}
/* Tutorial recordings share the reading column and retain native playback controls. */
article video {
  display: block;
  max-width: 100%;
  width: 75%;
  margin-inline: auto;
}
@media (max-width: 640px) {
  article video { width: 100%; }
}
