:root { --d-tk-tag: #b4235a; --d-tk-attr: #7a4d00; --d-tk-str: #126b3a; --d-ink: #111110; --d-muted: #6b6b66; --d-line: #e7e6e1; --d-ground: #f7f7f4; --d-bg: #fff; --d-text-2: #3a3a36; --d-code: #33332f; }
[data-theme="dark"] { --d-tk-tag: #f472b6; --d-tk-attr: #fbbf24; --d-tk-str: #86efac; --d-ink: #f2f2f0; --d-muted: #9b9b95; --d-line: #292927; --d-ground: #191918; --d-bg: #0e0e0d; --d-text-2: #c8c8c3; --d-code: #d6d6d1; }
html, body { margin: 0; background: var(--d-bg); color: var(--d-ink); }
body { font-family: "Tringify Inter", Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.d-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 20px 0 24px; background: #000; color: #fff; }
.d-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: #fff; text-decoration: none; letter-spacing: -.01em; }
.d-logo { width: 24px; height: 24px; flex-shrink: 0; }
.d-version { padding: 2px 8px; border: 1px solid rgb(255 255 255 / .16); border-radius: 999px; font-size: 12px; color: #9ca3af; }
.d-top-links { margin-left: auto; display: flex; gap: 22px; font-size: 14px; }
.d-top-links a { color: #9ca3af; text-decoration: none; transition: color .15s; }
.d-top-links a:hover, .d-top-links a[aria-current="page"] { color: #fff; }
.d-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.d-side { position: sticky; top: 61px; height: calc(100vh - 61px); overflow-y: auto; padding: 20px 16px 40px; border-right: 1px solid var(--d-line); box-sizing: border-box; }
.d-group { margin-top: 22px; }
.d-group-title { padding: 0 10px 6px; font-size: 12px; font-weight: 600; color: var(--d-ink); }
.d-side a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 7px; font-size: 14px; color: var(--d-muted); text-decoration: none; }
.d-side a:hover { color: var(--d-ink); }
.d-side a[aria-current="page"] { background: var(--d-ground); color: var(--d-ink); font-weight: 600; }
.d-unused { font-size: 10px; font-weight: 600; letter-spacing: .02em; color: #b54708; }
.d-main { padding: 44px 56px 120px; max-width: 980px; box-sizing: border-box; }
.d-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--d-muted); }
.d-main h1 { margin: 0; font-size: 36px; line-height: 1.1; letter-spacing: -.03em; font-weight: 650; }
.d-lead { margin: 12px 0 0; font-size: 17px; line-height: 1.55; color: var(--d-muted); }
.d-usage { margin-top: 14px; font-size: 13px; color: var(--d-muted); }
.d-usage summary { cursor: pointer; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.d-usage summary::-webkit-details-marker { display: none; }
.d-usage summary::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }
.d-usage.d-none summary::before { background: #d97706; }
.d-usage p { margin: 8px 0 0; max-width: 760px; line-height: 1.6; }
.d-section { margin-top: 48px; }
.d-section h2 { margin: 0; font-size: 20px; letter-spacing: -.015em; font-weight: 650; }
.d-section > p { margin: 6px 0 0; color: var(--d-muted); font-size: 15px; line-height: 1.55; }
.d-example { margin-top: 16px; border: 1px solid var(--d-line); border-radius: 14px; overflow: hidden; }
.d-canvas { position: relative; min-height: 120px; padding: 56px 32px 40px; background: #fff; color: var(--tb-fg); box-sizing: border-box; }
.d-stage { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.d-canvas-block .d-stage { display: block; }
.d-canvas[data-theme="dark"] { background: hsl(0 0% 7%); }
.d-tools { position: absolute; top: 10px; right: 10px; display: flex; gap: 2px; padding: 2px; border: 1px solid var(--d-line); border-radius: 8px; background: var(--d-bg); }
.d-tools button { border: 0; background: transparent; padding: 4px 9px; border-radius: 6px; font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1; color: var(--d-muted); cursor: pointer; }
.d-tools button[aria-pressed="true"] { background: var(--d-ground); color: var(--d-ink); }
.d-code { position: relative; border-top: 1px solid var(--d-line); background: var(--d-ground); }
.d-code pre { margin: 0; padding: 16px 20px; font: 12.5px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--d-code); white-space: pre; overflow-x: auto; tab-size: 2; }
.d-copy { position: absolute; top: 10px; right: 10px; border: 1px solid var(--d-line); background: var(--d-bg); border-radius: 7px; padding: 5px 10px; font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1; color: var(--d-ink); cursor: pointer; }
.d-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14px; }
.d-table th, .d-table td { padding: 10px 12px; border-bottom: 1px solid var(--d-line); text-align: left; vertical-align: top; }
.d-table th { font-size: 12px; font-weight: 600; color: var(--d-muted); }
.d-table code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 6px; border-radius: 5px; background: var(--d-ground); white-space: nowrap; }
.d-list { margin: 12px 0 0; padding-left: 18px; color: var(--d-text-2); font-size: 15px; line-height: 1.7; }
.d-hero { padding-bottom: 8px; }
.d-hero h1 { font-size: 46px; max-width: 760px; }
.d-hero-actions { display: flex; gap: 10px; margin-top: 24px; }
.d-showcase { margin-top: 36px; border: 1px solid var(--d-line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .18); }
.d-showcase .d-canvas { padding: 56px 28px 28px; background: var(--tb-ground, #f6f6f3); }
.d-showcase .d-canvas[data-theme="dark"] { background: hsl(0 0% 6%); }
.d-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.d-link { display: block; padding: 18px; border: 1px solid var(--d-line); border-radius: 12px; text-decoration: none; }
.d-link:hover { border-color: var(--d-ink); }
.d-link strong { display: block; font-size: 15px; }
.d-link span { display: block; margin-top: 4px; font-size: 14px; color: var(--d-muted); }
.d-change { padding: 18px 0; border-bottom: 1px solid var(--d-line); }
.d-change h3 { margin: 0; font-size: 16px; }
.d-change h3 span { font-weight: 400; color: var(--d-muted); font-size: 14px; }
.d-change ul { margin: 8px 0 0; padding-left: 18px; color: var(--d-text-2); font-size: 14px; line-height: 1.6; }
@media (max-width: 900px) { .d-shell { grid-template-columns: 1fr; } .d-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--d-line); } .d-main { padding: 28px 18px 80px; } .d-links { grid-template-columns: 1fr; } .d-top-links { display: none; } }
.d-showcase .d-stage { display: block; }

/* Theme switch: Store Admin's sun/moon button, circular reveal from the click. */
.d-theme { position: relative; display: grid; place-items: center; width: 36px; height: 36px; margin-left: 6px; border: 0; border-radius: 8px; background: transparent; color: #9ca3af; cursor: pointer; transition: color .15s, background-color .15s; }
.d-theme:hover { color: #fff; background: #1f2937; }
.d-theme svg { position: absolute; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s, opacity .3s; }
.d-moon { transform: rotate(90deg) scale(0); opacity: 0; }
[data-theme="dark"] .d-sun { transform: rotate(-90deg) scale(0); opacity: 0; }
[data-theme="dark"] .d-moon { transform: rotate(0) scale(1); opacity: 1; }
:root { --x: 50%; --y: 50%; }
::view-transition-group(root) { animation: none; }
::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; }
[data-theme-transition="to-dark"]::view-transition-old(root) { animation: none; z-index: -1; }
[data-theme-transition="to-dark"]::view-transition-new(root) { animation: d-circle .5s ease-in-out; z-index: 1; }
[data-theme-transition="to-light"]::view-transition-old(root) { animation: d-circle-reverse .5s ease-in-out; z-index: 1; }
[data-theme-transition="to-light"]::view-transition-new(root) { animation: none; z-index: -1; }
@keyframes d-circle { from { clip-path: circle(0% at var(--x) var(--y)); } to { clip-path: circle(150% at var(--x) var(--y)); } }
@keyframes d-circle-reverse { from { clip-path: circle(150% at var(--x) var(--y)); } to { clip-path: circle(0% at var(--x) var(--y)); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
.d-tk-tag { color: var(--d-tk-tag); }
.d-tk-attr { color: var(--d-tk-attr); }
.d-tk-str { color: var(--d-tk-str); }
.d-tk-punct { color: var(--d-muted); }
