/* Dikreasi Support — site styles */

:root {
  --accent: #A9512C;
  --accent-raw: #A9512C;
  --accent-ink: color-mix(in srgb, var(--accent) 78%, #000);
  --tint: color-mix(in srgb, var(--accent) 11%, #fff);
  --bg: #FAF9F6;
  --card: #FFFFFF;
  --sunk: #F3F1EC;
  --line: #ECE9E2;
  --line-2: #E2DED5;
  --ink: #1C1B19;
  --text: #2B2A27;
  --soft: #5E5B55;
  --muted: #8A867E;
  --text-2: #3D3B37;
  --line-3: #CFCAC0;
  --sunk-2: #EFECE6;
  --hover: #FCFBF9;
  --code-bg: #F0EDE7;
  --on-ink: #FFFFFF;
  --ink-hover: #33312D;
  --band: #1C1B19;
  --band-text: #BDB8AE;
  --band-fg: #FAF9F6;
  --band-btn: #FAF9F6;
  --band-btn-fg: #1C1B19;
  --header-bg: rgba(250, 249, 246, .88);
  --pre-bg: #1E1D1B;
  color-scheme: light;
  --sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --head: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 20px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
.ico { flex: none; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

/* Buttons, pills, badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--ink-hover); }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--line-3); }
.btn-light { background: #FAF9F6; color: #1C1B19; }
.btn-light:hover { background: #FFFFFF; }
.btn.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font-size: 13.5px; color: var(--soft); transition: border-color .15s, color .15s; }
.pill:hover { color: var(--ink); border-color: var(--line-3); }
.pill-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--tint); color: var(--accent-ink); font-size: 11.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent); margin: 0 0 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--header-bg); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.header-in { display: flex; align-items: center; gap: 20px; min-height: var(--head); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; flex: none; }
.brand-tile { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-size: 14px; font-weight: 700; line-height: 1; }
.brand-icon { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; }
.brand-logo { width: auto; height: 30px; }
.brand-muted { color: var(--muted); font-weight: 500; }
.brand--upper .brand-name { text-transform: uppercase; letter-spacing: .02em; font-size: 15px; }
.header-search { flex: 1 1 260px; max-width: 420px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-list a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--soft); font-size: 14px; }
.nav-list a:hover, .nav-list .current-menu-item > a, .nav-list a[aria-current] { color: var(--ink); background: var(--sunk); }
.nav-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); place-items: center; cursor: pointer; }
.header-search + .nav-toggle { margin-left: 0; }

/* Search */
.search { position: relative; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 0 12px; height: 40px; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, #fff); box-shadow: 0 0 0 4px var(--tint); }
.search-ico { color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search--lg { height: 56px; border-radius: 16px; padding: 0 16px; box-shadow: 0 1px 2px rgba(28, 27, 25, .04), 0 8px 24px -12px rgba(28, 27, 25, .12); }
.search--lg input { font-size: 16px; }
.search-kbd { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 7px; }
.search-pop { position: absolute; z-index: 30; left: -1px; right: -1px; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(28, 27, 25, .22); padding: 6px; text-align: left; max-height: 70vh; overflow: auto; }
.sp-item { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 10px; }
.sp-item:hover, .sp-item[aria-selected="true"] { background: var(--sunk); }
.sp-title { font-weight: 500; font-size: 14.5px; color: var(--ink); }
.sp-path { font-size: 12.5px; color: var(--muted); }
.sp-empty { padding: 12px; font-size: 14px; color: var(--muted); }
.sp-all { display: block; padding: 10px 12px; font-size: 13.5px; color: var(--accent); border-top: 1px solid var(--line); margin-top: 4px; }
.sp-all:hover { color: var(--accent-ink); }

/* Hero */
.hero { padding: 76px 0 40px; text-align: center; }
.hero-in { max-width: 760px; }
.hero-title { margin: 0 0 12px; font-weight: 600; font-size: clamp(36px, 5vw, 54px); line-height: 1.05; letter-spacing: -.035em; }
.hero-sub { margin: 0 auto 28px; max-width: 520px; color: var(--soft); font-size: 17px; }
.hero .search { max-width: 640px; margin: 0 auto; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; }
.chips-label { font-size: 13px; color: var(--muted); }
.chip { font-size: 13px; color: var(--soft); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); }
.chip:hover { color: var(--ink); border-color: var(--line-3); }

/* Blocks */
.block { padding-top: 40px; padding-bottom: 40px; }
.block--tight { padding-top: 8px; }
.block-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.block-title { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.block-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.seg { display: inline-flex; gap: 2px; padding: 4px; background: var(--sunk-2); border-radius: 999px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-size: 13.5px; color: var(--soft); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(28, 27, 25, .1); }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .15s, box-shadow .2s; }
.card:hover { border-color: var(--line-2); box-shadow: 0 10px 30px -18px rgba(28, 27, 25, .25); }
.card.is-hidden { display: none; }
.card-top { display: flex; align-items: center; gap: 14px; }
.card-head { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.card-title { margin: 0; font-size: 16.5px; font-weight: 600; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-meta { font-size: 13px; color: var(--muted); }
.card-desc { margin: 0; color: var(--soft); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; position: relative; z-index: 1; }
.tile { flex: none; width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; font-size: 19px; font-weight: 600; line-height: 1; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile--img { background: var(--sunk); }
.tile--sm { width: 36px; height: 36px; border-radius: 7px; font-size: 17px; }
.tile--lg { width: 64px; height: 64px; border-radius: 11px; font-size: 30px; }

/* Start here */
.start { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.start-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--muted); }
.start-item:hover { border-color: var(--line-2); color: var(--ink); }
.start-text { display: flex; flex-direction: column; line-height: 1.4; }
.start-title { color: var(--ink); font-weight: 500; }
.start-meta { font-size: 13px; color: var(--muted); }

/* Help band */
.help-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 36px 40px; background: var(--band); color: var(--band-fg); border-radius: 24px; }
.help-band h2 { margin: 0 0 6px; font-weight: 600; font-size: 26px; letter-spacing: -.025em; }
.help-band p { margin: 0; color: var(--band-text); max-width: 560px; }

/* Docs layout */
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 200px; gap: 48px; align-items: start; padding-top: 32px; padding-bottom: 48px; }
.doc-side { position: sticky; top: calc(var(--head) + 24px); max-height: calc(100vh - var(--head) - 48px); overflow: auto; padding-bottom: 16px; scrollbar-width: thin; }
.admin-bar .doc-side, .admin-bar .doc-toc { top: calc(var(--head) + 56px); }
.side-toggle { display: none; }
.side-nav { display: flex; flex-direction: column; gap: 20px; }
.side-product { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.side-product:hover, .side-product.is-current { border-color: var(--line-2); }
.side-product-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.side-product-name { font-weight: 600; }
.side-product-ver { font-size: 12px; color: var(--muted); }
.side-group { display: flex; flex-direction: column; gap: 4px; }
.side-title { display: block; padding: 0 10px 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.side-title:hover, .side-title.is-current { color: var(--ink); }
.side-list, .side-sub { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.side-sub { margin: 2px 0 4px 12px; padding-left: 8px; border-left: 1px solid var(--line-2); }
.side-link { display: block; padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--soft); line-height: 1.4; }
.side-link:hover { background: var(--sunk); color: var(--ink); }
.side-link.is-current { background: var(--sunk-2); color: var(--ink); font-weight: 600; }

.doc-main { min-width: 0; max-width: 760px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--text-2); }
.doc-title { margin: 0; font-weight: 600; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.03em; }
.doc-head { margin-bottom: 28px; }
.doc-lead { margin: 14px 0 0; font-size: 18px; line-height: 1.55; color: var(--soft); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.doc-meta a { display: inline-flex; align-items: center; gap: 4px; }
.doc-meta a:hover { color: var(--accent); }
.prod-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 20px; }
.prod-head-text { flex: 1 1 260px; min-width: 0; }
.prod-meta { margin: 6px 0 0; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.prod-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 8px 0 28px; }
.tabs a { padding: 10px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 500; color: var(--muted); }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); border-color: var(--ink); }
.prod-head + .doc-lead, .tabs + .doc-lead { margin: 0 0 24px; }

/* Prose */
.prose { font-size: 16.5px; line-height: 1.72; color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose figure, .prose pre, .prose table, .prose blockquote, .prose .wp-block-table, .prose .wp-block-image { margin: 0 0 18px; }
.prose h2 { margin: 44px 0 12px; font-size: 23px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.prose h3 { margin: 32px 0 10px; font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.prose h4 { margin: 24px 0 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
.prose h2, .prose h3 { scroll-margin-top: calc(var(--head) + 24px); }
.h-anchor { margin-left: 8px; color: var(--muted); font-weight: 400; opacity: 0; transition: opacity .15s; text-decoration: none !important; }
.prose h2:hover .h-anchor, .prose h3:hover .h-anchor, .h-anchor:focus { opacity: 1; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code, .prose kbd { font-family: var(--mono); font-size: .86em; background: var(--code-bg); color: var(--text-2); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.prose kbd { border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--card); }
.prose pre { position: relative; background: var(--pre-bg); color: #EDEAE3; border-radius: var(--r); padding: 16px 18px; overflow: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; }
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; overflow-wrap: normal; }
.copy-btn { position: absolute; top: 8px; right: 8px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #EDEAE3; border-radius: 8px; font-size: 12px; padding: 3px 9px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.prose pre:hover .copy-btn, .copy-btn:focus { opacity: 1; }
/* Quote: a card; its citation becomes the title strip on top */
.prose blockquote { position: relative; display: flex; flex-direction: column; padding: 16px 18px 18px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); color: var(--text-2); overflow: hidden; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose blockquote p { margin: 0 0 12px; }
.prose blockquote cite { order: -1; display: flex; align-items: center; gap: 10px; margin: -16px -18px 16px; padding: 11px 18px; background: var(--sunk); border-bottom: 1px solid var(--line); font-style: normal; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.prose blockquote cite::before, .prose blockquote:not(:has(cite))::before { content: "\201C"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 700; line-height: 1; padding-top: 5px; box-sizing: border-box; }
.prose blockquote:not(:has(cite)) { padding-left: 50px; }
.prose blockquote:not(:has(cite))::before { position: absolute; left: 16px; top: 17px; }
.prose blockquote cite a { color: inherit; }
.prose img { border-radius: 12px; border: 1px solid var(--line); }
.prose figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.prose .wp-block-table { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--sunk); }
.prose .wp-block-table table.has-fixed-layout { table-layout: auto; }
.prose .wp-block-table th, .prose .wp-block-table td { border: 0; border-bottom: 1px solid var(--line); }
.prose .wp-block-table thead { border: 0; }
.prose .wp-block-table td:first-child { color: var(--ink); font-weight: 500; }
.prose .wp-block-table table { border: 1px solid var(--line); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.prose .wp-block-table tr:last-child td { border-bottom: 0; }
.prose .wp-block-table thead { border-bottom: 0; }

/* Callouts (Paragraph block styles) */
.prose .is-style-dks-note, .prose .is-style-dks-tip, .prose .is-style-dks-warning { position: relative; padding: 14px 18px 14px 48px; border-radius: var(--r); font-size: 15px; line-height: 1.6; }
.prose .is-style-dks-note::before, .prose .is-style-dks-tip::before, .prose .is-style-dks-warning::before { position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; font-family: var(--sans); line-height: 1; }
.prose .is-style-dks-note { background: #E9EDF4; color: #263552; }
.prose .is-style-dks-note::before { content: "i"; background: #33466B; color: #fff; font-weight: 700; font-size: 13px; }
.prose .is-style-dks-tip { background: #E6EEE8; color: #24452F; }
.prose .is-style-dks-tip::before { content: "✓"; background: #2F5A3E; color: #fff; }
.prose .is-style-dks-warning { background: var(--tint); color: color-mix(in srgb, var(--accent) 60%, #000); }
.prose .is-style-dks-warning::before { content: "!"; background: var(--accent); color: #fff; }
.prose .is-style-dks-note a, .prose .is-style-dks-tip a, .prose .is-style-dks-warning a { color: inherit; }
.prose .is-style-dks-note code, .prose .is-style-dks-tip code, .prose .is-style-dks-warning code { background: rgba(255, 255, 255, .6); color: inherit; }

/* Steps (List block style) */
.prose ol.is-style-dks-steps, .prose ul.is-style-dks-steps { list-style: none; padding: 0; }
.prose .is-style-dks-steps > li { position: relative; padding: 0 0 18px 46px; margin: 0; }
.prose .is-style-dks-steps > li::before { content: counter(list-item); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-size: 13px; font-weight: 600; line-height: 1; }
.prose .is-style-dks-steps > li::after { content: ""; position: absolute; left: 13.5px; top: 34px; bottom: 4px; width: 1px; background: var(--line-2); }
.prose .is-style-dks-steps > li:last-child { padding-bottom: 4px; }
.prose .is-style-dks-steps > li:last-child::after { display: none; }

/* Product page sections */
.sections-title { margin: 44px 0 16px; font-size: 23px; font-weight: 600; letter-spacing: -.01em; }
.sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.section-card { padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.section-card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.section-card h3 a:hover { color: var(--accent); }
.section-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.section-card li a { color: var(--soft); }
.section-card li a:hover { color: var(--ink); }
.section-card p { margin: 0; font-size: 14px; color: var(--soft); }
.section-more { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--accent); }

.guide-list { list-style: none; margin: 8px 0 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.guide-list li { display: flex; align-items: center; gap: 12px; padding-right: 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.guide-list li:last-child { border-bottom: 0; }
.guide-list a { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 15px 0 15px 20px; }
.guide-list li:hover { background: var(--hover); color: var(--ink); }
.gl-title { font-weight: 600; color: var(--ink); }
.gl-desc { font-size: 14px; color: var(--soft); }

/* Feedback, prev/next */
.fb { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 48px; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.fb-q { margin: 0; font-weight: 500; }
.fb-btns { display: flex; gap: 8px; }
.fb-more { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--soft); }
.fb-more a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.pn-card { display: flex; flex-direction: column; gap: 3px; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--r); background: transparent; transition: border-color .15s, background .15s; }
.pn-card:hover { border-color: var(--line-2); background: var(--card); }
.pn-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pn-title { font-weight: 500; }
.pn-next { text-align: right; align-items: flex-end; }

/* On this page */
.doc-toc { position: sticky; top: calc(var(--head) + 24px); font-size: 13px; }
.toc-title { margin: 0 0 10px; font-weight: 600; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; }
.toc a { display: block; margin-left: -1px; padding: 5px 0 5px 12px; border-left: 2px solid transparent; color: var(--soft); line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-color: var(--ink); font-weight: 500; }
.toc .toc-l3 a { padding-left: 24px; font-size: 12.5px; }

/* Changelog */
.cl-timeline { list-style: none; margin: 0; padding: 0; }
.cl-ver { display: grid; grid-template-columns: 112px 22px minmax(0, 1fr); gap: 0 18px; }
.cl-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 1px; }
.cl-num { font-weight: 600; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cl-date { font-size: 12.5px; color: var(--muted); }
.cl-latest { margin-top: 6px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--on-ink); }
.cl-dot { position: relative; }
.cl-dot::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.cl-dot::after { content: ""; position: absolute; left: 50%; top: 7px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--line-3); box-shadow: 0 0 0 5px var(--bg); }
.cl-ver:first-child .cl-dot::before { top: 8px; }
.cl-ver:last-child .cl-dot::before { bottom: auto; height: 12px; }
.cl-ver.is-latest .cl-dot::after { background: var(--accent); }
.cl-body { padding-bottom: 40px; min-width: 0; }
.cl-title { margin: 0 0 14px; font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -.02em; }
.cl-group + .cl-group { margin-top: 14px; }
.cl-kind { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.cl-group ul { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--text-2); }
.cl-group li::marker { color: var(--muted); }
.cl-group code, .cl-older code { font-family: var(--mono); font-size: .86em; background: var(--code-bg); padding: 1px 5px; border-radius: 5px; }
.cl-kind--new { background: #E4ECE6; color: #2F5A3E; }
.cl-kind--changed { background: #E6EAF2; color: #33466B; }
.cl-kind--fixed { background: var(--tint); color: var(--accent-ink); }
.cl-kind--removed { background: var(--sunk-2); color: var(--text-2); }
.cl-kind--security { background: #F3EBD3; color: #6B531A; }
.cl-older-title { margin: 16px 0 14px; font-size: 18px; font-weight: 600; }
.cl-older { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cl-row { border-bottom: 1px solid var(--line); }
.cl-row:last-child { border-bottom: 0; }
.cl-row summary { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto 14px; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.cl-row summary::-webkit-details-marker { display: none; }
.cl-row summary:hover { background: var(--hover); }
.cl-row .cl-num { font-size: 14.5px; }
.cl-sum { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-chev { width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
.cl-row[open] .cl-chev { transform: rotate(45deg); }
.cl-row ul { list-style: none; margin: 0; padding: 0 18px 16px 106px; display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; color: var(--text-2); }
.cl-row li { display: flex; gap: 10px; align-items: baseline; }
.cl-pip { flex: none; width: 7px; height: 7px; border-radius: 50%; transform: translateY(-1px); padding: 0; }
.cl-pip.cl-kind--new { background: #4C8A60; }
.cl-pip.cl-kind--changed { background: #5A72A0; }
.cl-pip.cl-kind--fixed { background: var(--accent); }
.cl-pip.cl-kind--removed { background: #8A867E; }
.cl-pip.cl-kind--security { background: #B08A2C; }
.cl-ver:target .cl-num, .cl-row:target .cl-num { color: var(--accent); }

/* Pages, results */
.page-pad { padding-top: 56px; padding-bottom: 72px; }
.page-title { margin: 0 0 8px; font-weight: 600; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.03em; }
.page-sub { margin: 0 0 24px; color: var(--muted); }
.page-sub a { color: var(--accent); }
.page-search { margin: 0 0 28px; }
.center .page-search .search { max-width: 560px; margin: 0 auto; }
.results { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.results li { border-bottom: 1px solid var(--line); }
.result { display: flex; flex-direction: column; gap: 3px; padding: 18px 4px; }
.result-path { font-size: 12.5px; color: var(--muted); }
.result-title { font-size: 17px; font-weight: 600; color: var(--ink); }
.result:hover .result-title { color: var(--accent); }
.result-desc { font-size: 14.5px; color: var(--soft); }
.empty { padding: 36px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty p { margin: 0 0 12px; }
.empty p:last-child { margin: 0; }
.nav-links { display: flex; gap: 6px; margin-top: 24px; }
.nav-links .page-numbers { min-width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; }
.nav-links .current { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 16px; padding-bottom: 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-list a:hover, .footer-link:hover { color: var(--ink); }
.footer-link { display: inline-flex; align-items: center; gap: 4px; }

/* Comments (pages/posts only) */
.comments-area { margin-top: 48px; }

/* ---------- Blog: tutorial library ---------- */
.blog-wrap { padding-top: 48px; padding-bottom: 32px; }
.blog-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 28px; }
.blog-head-text { max-width: 660px; }
.blog-title { margin: 0; font-size: clamp(32px, 4.2vw, 46px); line-height: 1.06; font-weight: 600; letter-spacing: -.035em; color: var(--ink); }
.blog-sub { margin: 12px 0 0; font-size: 17.5px; line-height: 1.55; color: var(--soft); }
.blog-stats { display: flex; gap: 28px; }
.blog-stats div { display: flex; flex-direction: column; }
.blog-stats strong { font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.blog-stats span { font-size: 13px; color: var(--muted); }
.blog-wrap .chips { justify-content: flex-start; margin: 0 0 28px; }
.blog-wrap .chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; font-size: 14px; color: var(--text-2); }
.blog-wrap .chip--cat { padding-left: 7px; }
.blog-wrap .chip[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); font-weight: 500; }
.chip-dot { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
.blog-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.pc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.pc { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.pc:hover { border-color: var(--line-2); box-shadow: 0 14px 30px -24px rgba(28, 27, 25, .45); }
.pc-cover { display: flex; flex-direction: column; justify-content: space-between; height: 132px; padding: 18px 20px; }
.pc-cover--img { padding: 0; background: var(--sunk); }
.pc-cover--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-initial { width: 32px; height: 32px; border-radius: 9px; background: var(--card); display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.pc-foot { display: flex; flex-direction: column; gap: 2px; }
.pc-catname { display: none; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.pc--featured .pc-catname { display: block; }
.pc-path { font-family: var(--mono); font-size: 12px; opacity: .9; }
/* Comments on tutorials */
.comments-area, .comment-respond { margin-top: 44px; }
.comments-title, .comment-reply-title { margin: 0 0 12px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.comment-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.comment-list .children { list-style: none; margin: 12px 0 0; padding-left: 20px; border-left: 1px solid var(--line-2); }
.comment-body { padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); font-size: 15px; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.comment-meta .avatar { display: none; }
.comment-author .fn { font-style: normal; font-weight: 600; color: var(--ink); }
.comment-author .says { display: none; }
.comment-content p { margin: 0 0 10px; }
.reply a, .comment-edit-link { font-size: 13px; color: var(--accent); }
.comment-form { display: flex; flex-wrap: wrap; gap: 14px 16px; }
.comment-form > p { margin: 0; flex: 1 1 100%; }
.comment-form .comment-form-author, .comment-form .comment-form-email { flex: 1 1 220px; }
.comment-form .comment-form-url { display: none; }
.comment-notes, .logged-in-as { font-size: 13.5px; color: var(--soft); }
.comment-form label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); font: inherit; font-size: 15px; color: var(--ink); }
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 1px; border-color: var(--accent); }
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--soft); }
.comment-form .comment-form-cookies-consent label { display: inline; margin: 0; font-weight: 400; color: var(--soft); }
.comment-form .submit { height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-ink); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.comment-form .submit:hover { background: var(--ink-hover); }
.pc-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-pill { position: relative; z-index: 2; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.cat-pill--pick { background: var(--tint); color: var(--accent-ink); font-weight: 600; }
.pc-title { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.pc-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pc-title a:hover { color: var(--accent); }
.pc-excerpt { margin: 0; font-size: 14px; line-height: 1.55; color: var(--soft); }
.pc-meta { margin: auto 0 0; padding-top: 6px; font-size: 12.5px; color: var(--muted); }
.pc--featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; }
.pc--featured .pc-cover { height: auto; min-height: 280px; padding: 28px; }
.pc--featured .pc-initial { width: 40px; height: 40px; font-size: 18px; border-radius: 11px; }
.pc--featured .pc-body { padding: 30px 32px; gap: 12px; justify-content: center; }
.pc--featured .pc-title { font-size: 28px; line-height: 1.15; letter-spacing: -.025em; }
.pc--featured .pc-excerpt { font-size: 15.5px; }

.blog-side { display: flex; flex-direction: column; gap: 18px; }
.side-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.side-box-title { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--ink); }
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cat-list a { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--text-2); }
.cat-list a:hover, .cat-list a[aria-current] { color: var(--ink); font-weight: 500; }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cat-count { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a { font-size: 13px; padding: 4px 11px; border-radius: 999px; background: var(--sunk); color: var(--text-2); }
.tag-cloud a:hover, .tag-cloud a[aria-current] { background: var(--ink); color: var(--on-ink); }

.blog-main .pagination { margin-top: 8px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.nav-links .page-numbers { min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); background: var(--card); font-size: 14px; color: var(--text-2); }
.nav-links .page-numbers:hover { border-color: var(--line-3); color: var(--ink); }
.nav-links .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--on-ink); font-weight: 600; }
.nav-links .page-numbers.dots { border: 0; background: none; }

/* ---------- Blog: a tutorial ---------- */
.read-progress { position: sticky; top: var(--head); z-index: 20; height: 3px; background: var(--line); }
.admin-bar .read-progress { top: calc(var(--head) + 32px); }
.read-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.post-layout { display: grid; grid-template-columns: minmax(0, 760px) 240px; justify-content: center; gap: 56px; align-items: start; padding-top: 40px; padding-bottom: 40px; }
.post-head .pc-tags { margin-bottom: 14px; }
.post-title { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -.035em; color: var(--ink); }
.post-lead { margin: 16px 0 0; font-size: 19px; line-height: 1.55; color: var(--soft); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 24px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--soft); }
.post-author { display: flex; align-items: center; gap: 10px; line-height: 1.35; }
.post-author strong { display: block; font-weight: 600; color: var(--ink); }
.post-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.post-fact { display: inline-flex; align-items: center; gap: 6px; }
a.post-fact:hover { color: var(--accent); }
.post-updated { margin-left: auto; padding: 3px 10px; border-radius: 8px; background: var(--sunk); font-size: 12.5px; }
.post-cover { margin: 28px 0 0; }
.post-cover img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.post-main .prose { margin-top: 32px; }
.post-tags { margin-top: 28px; }
.post-side { position: sticky; top: calc(var(--head) + 36px); display: flex; flex-direction: column; gap: 20px; padding-top: 52px; }
.share { display: flex; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); font: inherit; font-size: 13px; color: var(--text-2); cursor: pointer; }
.share-btn:hover { border-color: var(--line-3); color: var(--ink); }
.related { margin-top: 44px; }
.related-title { margin: 0 0 14px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.related-card:hover { border-color: var(--line-2); }
.related-cat { font-size: 12px; font-weight: 500; }
.related-name { font-weight: 600; line-height: 1.35; color: var(--ink); }
.related-meta { margin-top: auto; font-size: 12px; color: var(--muted); }

/* Numbered step heading (Heading › Styles › Numbered step) */
.prose { counter-reset: dks-step; }
.prose h2.is-style-dks-step, .prose h3.is-style-dks-step { counter-increment: dks-step; display: flex; align-items: center; gap: 14px; }
.prose h2.is-style-dks-step::before, .prose h3.is-style-dks-step::before { content: counter(dks-step); flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--on-ink); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.prose h3.is-style-dks-step::before { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }

/* Checklist (List › Styles › Checklist) */
.prose ul.is-style-dks-check, .prose ol.is-style-dks-check { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); font-size: 15px; }
.prose .is-style-dks-check > li { position: relative; margin: 0; padding-left: 30px; line-height: 1.5; }
.prose .is-style-dks-check > li::before { content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-3); background: var(--bg); }

@media (max-width: 1080px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); max-width: 808px; }
  .post-side { display: none; }
}
@media (max-width: 960px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr); }
  .blog-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .blog-wrap { padding-top: 28px; }
  .blog-wrap .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .blog-wrap .chip { flex: none; }
  .pc-grid, .pc--featured, .blog-side, .related-grid { grid-template-columns: minmax(0, 1fr); }
  .pc--featured .pc-cover { min-height: 150px; padding: 20px; }
  .pc--featured .pc-body { padding: 20px; }
  .pc--featured .pc-title { font-size: 22px; }
  .post-layout { padding-top: 24px; }
  .post-lead { font-size: 17px; }
  .post-updated { margin-left: 0; }
  .prose ul.is-style-dks-check, .prose ol.is-style-dks-check { grid-template-columns: minmax(0, 1fr); }
  .prose h2.is-style-dks-step { gap: 12px; }
  .prose h2.is-style-dks-step::before { width: 30px; height: 30px; font-size: 14px; }
}

/* ---------- Contact page ---------- */
.contact-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: start; padding-top: 56px; padding-bottom: 72px; }
.contact-side { position: sticky; top: calc(var(--head) + 32px); }
.contact-title { margin: 0; font-size: clamp(32px, 4.2vw, 46px); line-height: 1.06; font-weight: 600; letter-spacing: -.035em; color: var(--ink); }
.contact-sub, .contact-intro { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--soft); }
.contact-intro > :last-child { margin-bottom: 0; }
.contact-points { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-points li { display: flex; gap: 14px; font-size: 14.5px; line-height: 1.5; color: var(--soft); }
.contact-points strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.cp-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--accent); }
.cf, .cf-done { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 18px 40px -30px rgba(28, 27, 25, .35); }
.cf { display: flex; flex-direction: column; gap: 18px; }
.cf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cf-field label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cf input[type=text], .cf input[type=email], .cf select, .cf textarea { display: block; width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--bg); font: inherit; font-size: 15px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.cf textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.cf input::placeholder, .cf textarea::placeholder { color: var(--muted); }
.cf input:focus, .cf select:focus, .cf textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--tint); }
.cf [aria-invalid="true"] { border-color: #C2410C; }
.cf-select { position: relative; }
.cf-select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.cf-select .ico { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.cf-err { margin: 6px 0 0; font-size: 13px; color: #B4380B; }
.cf-alert { margin: 0; padding: 11px 14px; border-radius: 11px; background: var(--tint); color: var(--accent-ink); font-size: 14px; }
.cf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.cf-note { margin: 0; font-size: 13px; color: var(--muted); }
.cf-foot .btn { height: 44px; padding: 0 22px; }
.cf-done { text-align: center; padding: 44px 28px; }
.cf-done-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #E4ECE6; color: #2F5A3E; }
.cf-done h2 { margin: 16px 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.cf-done p { margin: 0 0 18px; color: var(--soft); }
html[data-theme="dark"] .cf-done-ico { background: #1B2A20; color: #9FCDAE; }
html[data-theme="dark"] .cf-err { color: #F0A27A; }
html[data-theme="dark"] .cf [aria-invalid="true"] { border-color: #E07A4F; }
html[data-theme="dark"] .cf, html[data-theme="dark"] .cf-done { box-shadow: none; }
@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; }
  .contact-side { position: static; }
  .contact-points { flex-direction: row; flex-wrap: wrap; gap: 14px 24px; margin-top: 22px; }
  .contact-points li { flex: 1 1 220px; }
}
@media (max-width: 640px) {
  .cf, .cf-done { padding: 20px; border-radius: 16px; }
  .cf-row { grid-template-columns: minmax(0, 1fr); }
  .cf-foot .btn { width: 100%; justify-content: center; }
}

/* Help box button follows the box color; the dark mode toggle is round on desktop */
.help-band .btn-light { background: var(--band-btn); color: var(--band-btn-fg); }
.help-band .btn-light:hover { background: var(--band-btn); color: var(--band-btn-fg); opacity: .9; }
.products-page { padding-top: 48px; }
.page-h1 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.06; letter-spacing: -.035em; }
@media (max-width: 640px) {
  .site-footer { margin-top: 8px; }
  .footer-in { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 20px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); font-size: 13.5px; }
  .products-page { padding-top: 28px; }
}

/* ---------- Category and product colors (set per item as --tb / --tf) ---------- */
.tile:not(.tile--img), .cat-pill:not(.cat-pill--pick), .pc-cover:not(.pc-cover--img), .chip-dot { background: var(--tb); color: var(--tf); }
.cat-dot { background: var(--tf); }
.related-cat { color: var(--tf); }

/* ---------- Dark / light toggle ---------- */
.theme-toggle { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--text-2); cursor: pointer; }
.theme-toggle:hover { color: var(--ink); border-color: var(--line-3); }
.theme-toggle .ico-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
@media (max-width: 860px) {
  .theme-toggle { width: 40px; height: 40px; border-radius: 12px; }
}

/* ---------- Dark mode ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --accent: color-mix(in srgb, var(--accent-raw) 68%, #fff);
  --accent-ink: color-mix(in srgb, var(--accent-raw) 45%, #fff);
  --tint: color-mix(in srgb, var(--accent-raw) 24%, #1E1D1B);
  --bg: #151412;
  --card: #1D1C1A;
  --sunk: #252421;
  --sunk-2: #2B2A26;
  --hover: #22211E;
  --line: #2C2A27;
  --line-2: #393733;
  --line-3: #4C4943;
  --ink: #F3F0EA;
  --text: #DAD6CD;
  --text-2: #CBC6BC;
  --soft: #A9A49A;
  --muted: #8D897F;
  --code-bg: #2A2925;
  --on-ink: #151412;
  --ink-hover: #FFFFFF;
  --band: #23221F;
  --band-text: #A9A49A;
  --header-bg: rgba(21, 20, 18, .86);
  --pre-bg: #0F0E0D;
}
html[data-theme="dark"] .help-band { border: 1px solid var(--line-2); }
html[data-theme="dark"] .prose pre { border: 1px solid var(--line); }
html[data-theme="dark"] :is(.tile:not(.tile--img), .cat-pill:not(.cat-pill--pick), .pc-cover:not(.pc-cover--img), .chip-dot) { background: color-mix(in srgb, var(--tf) 26%, var(--card)); color: color-mix(in srgb, var(--tf) 45%, #fff); }
html[data-theme="dark"] .cat-dot { background: color-mix(in srgb, var(--tf) 55%, #fff); }
html[data-theme="dark"] .related-cat { color: color-mix(in srgb, var(--tf) 45%, #fff); }
html[data-theme="dark"] .prose .is-style-dks-note { background: #1C2230; color: #C6D1E8; }
html[data-theme="dark"] .prose .is-style-dks-note::before { background: #5A72A0; }
html[data-theme="dark"] .prose .is-style-dks-tip { background: #18241C; color: #BCD8C4; }
html[data-theme="dark"] .prose .is-style-dks-tip::before { background: #4C8A60; }
html[data-theme="dark"] .prose .is-style-dks-warning { color: color-mix(in srgb, var(--accent-raw) 35%, #fff); }
html[data-theme="dark"] .prose .is-style-dks-note code, html[data-theme="dark"] .prose .is-style-dks-tip code, html[data-theme="dark"] .prose .is-style-dks-warning code { background: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .cl-kind--new { background: #1B2A20; color: #9FCDAE; }
html[data-theme="dark"] .cl-kind--changed { background: #1C2230; color: #AFC0E0; }
html[data-theme="dark"] .cl-kind--removed { background: var(--sunk-2); color: var(--text-2); }
html[data-theme="dark"] .cl-kind--security { background: #2B2515; color: #DCC27A; }
html[data-theme="dark"] .prose img, html[data-theme="dark"] .post-cover img { border-color: var(--line-2); }
html[data-theme="dark"] .search--lg { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .6); }
html[data-theme="dark"] .card:hover, html[data-theme="dark"] .pc:hover { box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .7); }

/* Responsive */
@media (max-width: 1180px) {
  .doc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
  .doc-toc { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 24px 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px -24px rgba(28, 27, 25, .4); }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 10px 12px; font-size: 15px; }
  .site-nav .pill { align-self: flex-start; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .doc-side { position: static; max-height: none; overflow: visible; padding: 0; }
  .side-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; text-align: left; font-weight: 500; }
  .side-toggle span { flex: 1; }
  .side-toggle .ico:last-child { transition: transform .15s; color: var(--muted); }
  .doc-side.is-open .side-toggle .ico:last-child { transform: rotate(90deg); }
  .doc-side .side-nav { display: none; margin-top: 10px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
  .doc-side.is-open .side-nav { display: flex; }
  .help-band { padding: 28px 24px; border-radius: 20px; }
  .help-band h2 { font-size: 26px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .header-in { flex-wrap: wrap; gap: 10px 12px; padding-top: 12px; padding-bottom: 12px; }
  .header-search { order: 3; flex: 1 1 100%; max-width: none; }
  .site-nav { padding: 12px 16px 18px; }
  .hero { padding: 48px 0 24px; }
  .hero-sub { font-size: 16px; }
  .search--lg { height: 52px; }
  .search-kbd { display: none; }
  .chips { justify-content: flex-start; }
  .chips-label { display: none; }
  .hero { text-align: left; }
  .hero-sub { margin-left: 0; }
  .block { padding-top: 28px; padding-bottom: 28px; }
  .header-search + .nav-toggle { margin-left: auto; }
  .cards, .start { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 16px; gap: 12px; }
  .prose { font-size: 16px; }
  .prose pre { margin-left: -16px; margin-right: -16px; border-radius: 0; }
  .pn { grid-template-columns: 1fr; }
  .pn-next { text-align: left; align-items: flex-start; }
  .prod-actions { width: 100%; }
  .cl-ver { grid-template-columns: minmax(0, 1fr); }
  .cl-meta { flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
  .cl-latest { margin-top: 0; }
  .cl-dot { display: none; }
  .cl-body { padding: 0 0 28px 14px; border-left: 1px solid var(--line-2); margin-left: 4px; }
  .cl-row summary { grid-template-columns: 64px minmax(0, 1fr) 14px; }
  .cl-row .cl-date { display: none; }
  .cl-row ul { padding: 0 16px 14px 16px; }
  .fb { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
