/* GCB docs — on the main page's kit (parts.css + style-apple.css): white, Inter for reading, EB Garamond for page
   titles, one blue for links, code in VS Code's dark. */
:root {
	--text: Geist, Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
	--display: "EB Garamond", Garamond, Georgia, serif;
	--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--gcb-kit-font: var(--text);
	--gcb-kit-font-heading: var(--text);
	--nav-h: 52px;
	--side: 268px;
	--ink: var(--gcb-kit-ink, #1d1d1f);
	--muted: var(--gcb-kit-muted, #6e6e73);
	--rule: var(--gcb-kit-rule, #d2d2d7);
	--link: #0066cc;
	--soft: #f5f5f7;
	--coral: #3858e9;
}
html { scroll-padding-top: calc(var(--nav-h) + 16px); overflow-x: clip; }
body.docs-body { margin: 0; font-family: var(--text); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* the bar: the main page's light glass */
.docs-bar[data-gcb-kit="navbar"] { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgb(0 0 0 / .08); }
.docs-bar[data-gcb-kit="navbar"] { --gcb-navbar-width: 1392px; --gcb-navbar-gutter: 24px; }
@media (max-width: 900px) { .docs-bar[data-gcb-kit="navbar"] { --gcb-navbar-gutter: 16px; } }
.gcb-mark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; font-weight: 600; }
.gcb-mark svg { width: 22px; height: 22px; flex: none; }
.docs-bar [aria-current="page"] { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .docs-bar__wide { display: none; } .docs-bar .gcb-btn { display: none; } }

/* three columns: nav, the page, its contents */
.docs { display: grid; grid-template-columns: var(--side) minmax(0, 1fr) 220px; max-width: 1440px; margin: 0 auto; }
.docs__side { position: sticky; top: var(--nav-h); align-self: start; height: calc(100vh - var(--nav-h)); overflow-y: auto; padding: 28px 18px 40px 24px; border-right: 1px solid rgb(0 0 0 / .06); }
.docs__nav > summary { display: none; }
.nav__group { margin: 0 0 22px; }
.nav__title { margin: 0 0 6px; font: 600 12px/1.3 var(--text); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.docs__side ul { list-style: none; margin: 0; padding: 0; }
.docs__side a { display: block; padding: 5px 10px; margin: 0 -10px; border-radius: 8px; color: var(--ink); text-decoration: none; font: 400 14px/1.35 var(--text); }
.docs__side a:hover { background: var(--soft); }
.docs__side a[aria-current="page"] { background: rgb(0 102 204 / .08); color: var(--link); font-weight: 500; }
.docs__side code { font: 400 12.5px/1.3 var(--mono); background: none; padding: 0; }
.nav__fields { margin: 2px 0 4px; }
.nav__fields > summary { cursor: pointer; padding: 4px 0 4px 10px; font: 400 13px var(--text); color: var(--muted); }
.nav__fields ul { padding-left: 10px; border-left: 1px solid var(--rule); margin-left: 10px; }
.nav__sub { margin: 10px 0 2px; font: 600 11px/1.2 var(--text); color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }

.docs__main { min-width: 0; padding: 44px clamp(20px, 4vw, 64px) 64px; }
.docs__toc { position: sticky; top: var(--nav-h); align-self: start; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; padding: 44px 20px 40px 0; font-size: 13px; }
.docs__toc p { margin: 0 0 8px; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.docs__toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.docs__toc a { display: block; padding: 4px 0 4px 12px; color: var(--muted); text-decoration: none; line-height: 1.35; }
.docs__toc a:hover { color: var(--link); }

/* the page */
.doc { max-width: 760px; font: 400 16.5px/1.65 var(--text); overflow-wrap: break-word; }
.doc__eyebrow { margin: 0 0 8px; font: 600 14px/1.2 var(--text); color: var(--coral); }
.doc h1 { margin: 0 0 28px; font: 400 clamp(38px, 2.4rem + 1.4vw, 56px)/1.05 var(--display); letter-spacing: -.015em; }
.doc h2 { margin: 2em 0 .6em; font: 600 24px/1.25 var(--text); letter-spacing: -.01em; padding-top: .4em; }
.doc h3 { margin: 2em 0 .5em; font: 600 19px/1.3 var(--text); }
.doc :is(h1, h2, h3, h4) { overflow-wrap: break-word; }
.doc :is(h2, h3, h4) code { overflow-wrap: anywhere; }
.doc h4, .doc h5, .doc h6 { margin: 1.6em 0 .4em; font: 600 16.5px/1.35 var(--text); }
.doc h1 + h2, .doc h1 + aside + h2 { margin-top: 0; }
.doc :is(h2, h3, h4) { position: relative; scroll-margin-top: calc(var(--nav-h) + 16px); }
.doc .anchor { position: absolute; left: -1.1em; width: 1em; color: var(--rule); text-decoration: none; opacity: 0; font-weight: 400; }
.doc :is(h2, h3, h4):hover .anchor { opacity: 1; }
.doc p, .doc ul, .doc ol { margin: 0 0 1em; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin: .3em 0; }
.doc li > ul, .doc li > ol { margin: .3em 0; }
.doc a { color: var(--link); text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc strong { font-weight: 600; }
.doc img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--rule); }
.doc hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }
.doc :not(pre) > code { font: 400 .86em var(--mono); background: rgb(0 0 0 / .05); padding: .12em .38em; border-radius: 6px; overflow-wrap: break-word; }
.doc blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 3px solid var(--rule); background: var(--soft); border-radius: 0 12px 12px 0; color: #3a3a3c; }
.doc blockquote > :last-child { margin-bottom: 0; }
.doc em { font-style: italic; }

/* tables */
.doc .table { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--rule); border-radius: 12px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.5; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 14px; border-bottom: 1px solid rgb(0 0 0 / .07); }
.doc th { background: var(--soft); font-weight: 600; white-space: nowrap; }
.doc tr:last-child td { border-bottom: 0; }
.doc td:first-child code { white-space: nowrap; }

/* code: VS Code's dark */
.doc .code { margin: 1.2em 0 1.6em; border-radius: 12px; overflow: hidden; background: #1e1e1e; color: #d4d4d4; box-shadow: 0 0 0 1px rgb(0 0 0 / .5); }
.doc .code figcaption { display: flex; align-items: center; gap: 12px; height: 32px; padding: 0 10px 0 12px; background: #2d2d2d; color: #969696; font: 400 12px var(--text); }
.code__dots { display: inline-flex; gap: 6px; }
.code__dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .code__dots i:nth-child(2) { background: #febc2e; } .code__dots i:nth-child(3) { background: #28c840; }
.code__lang { flex: 1; }
.code__copy { all: unset; cursor: pointer; padding: 3px 8px; border-radius: 6px; color: #ccc; font: 500 12px var(--text); }
.code__copy:hover { background: #3c3c3c; color: #fff; }
.code__copy:focus-visible { outline: 2px solid #3858e9; }
.doc pre { margin: 0; padding: 14px 18px 16px; overflow-x: auto; font: 400 13px/1.65 var(--mono); tab-size: 4; }
.doc pre code { font: inherit; background: none; padding: 0; color: inherit; white-space: pre; }
.t-k { color: #569cd6; } .t-s { color: #ce9178; } .t-c { color: #6a9955; font-style: italic; } .t-n { color: #b5cea8; } .t-b { color: #569cd6; }
.t-f { color: #dcdcaa; } .t-ty { color: #4ec9b0; } .t-var { color: #9cdcfe; } .t-key { color: #9cdcfe; } .t-tag { color: #569cd6; } .t-attr { color: #9cdcfe; } .t-flag { color: #c586c0; }

/* tabs (:::codetabs, :::paths) */
.tabs { margin: 1.4em 0 1.8em; }
.tabs__list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tabs__list [role="tab"] { all: unset; cursor: pointer; padding: 7px 14px; border-radius: 980px; font: 500 14px var(--text); color: var(--ink); background: var(--soft); }
.tabs__list [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs__list [role="tab"]:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.tabs--codetabs .tabs__list { margin-bottom: -6px; }
.tabs--paths { padding: 18px 20px 6px; border: 1px solid var(--rule); border-radius: 16px; }
.tabs__print { display: none; }
.js .tabs__panel[data-hidden] { display: none; }
html:not(.js) .tabs__list { display: none; }
html:not(.js) .tabs__print { display: block; font-weight: 600; }

/* boxes: what is read from the code, and where the code disagrees with a doc */
.generated { position: relative; margin: 1.2em 0 1.6em; padding: 16px 0 2px 18px; border-left: 3px solid #b8d4f2; }
.generated__label { margin: 0 0 12px !important; font: 600 12px/1.2 var(--text); letter-spacing: .04em; text-transform: uppercase; color: #3d7ab8; }
.checked { margin: 0 0 1.6em; padding: 14px 18px; border-radius: 12px; background: #fff6ec; border: 1px solid #f6d7b5; font-size: 15px; line-height: 1.55; }
.checked__label { margin: 0 0 6px !important; font: 600 12px/1.2 var(--text); letter-spacing: .04em; text-transform: uppercase; color: #b4541d; }
.checked > :last-child { margin-bottom: 0; }

.doc__pager { display: flex; justify-content: space-between; gap: 16px; max-width: 760px; margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--rule); }
.doc__pager a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 12px; text-decoration: none; color: var(--link); font: 500 15px var(--text); max-width: 48%; }
.doc__pager a span { color: var(--muted); font-size: 12px; font-weight: 400; }
.doc__pager a[rel="next"] { margin-left: auto; text-align: right; }
.doc__foot { max-width: 760px; margin-top: 32px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.doc__foot p { margin: 0 0 6px; }
.doc__foot code { font: 400 11.5px var(--mono); overflow-wrap: anywhere; }

@media (max-width: 1200px) {
	.docs { grid-template-columns: var(--side) minmax(0, 1fr); }
	.docs__toc { display: none; }
}
@media (max-width: 900px) {
	.docs { grid-template-columns: minmax(0, 1fr); }
	.docs__side { position: static; height: auto; overflow: visible; padding: 0 16px; border-right: 0; border-bottom: 1px solid rgb(0 0 0 / .08); }
	.docs__nav > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 14px 0; font: 600 15px var(--text); list-style: none; }
	.docs__nav > summary::-webkit-details-marker { display: none; }
	.docs__nav > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 4px; transition: transform .2s; }
	.docs__nav[open] > summary::after { transform: rotate(-135deg); }
	.docs__nav[open] > nav { padding-bottom: 12px; }
	.docs__main { padding: 28px 16px 48px; }
	.doc { font-size: 16px; }
	.doc .anchor { display: none; }
	.doc pre { font-size: 12.5px; padding: 12px 14px; }
	.doc th, .doc td { padding: 8px 10px; }
	.doc__pager a { max-width: none; flex: 1; }
}
@media (max-width: 600px) {
	/* a table becomes a stack of cards, each cell under its column's name */
	.doc .table { border: 0; border-radius: 0; overflow: visible; }
	.doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
	.doc thead { display: none; }
	.doc tr { border: 1px solid var(--rule); border-radius: 12px; padding: 6px 0; margin-bottom: 10px; }
	.doc td { border: 0; padding: 4px 14px; }
	.doc td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font: 600 11px/1.4 var(--text); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
	.doc td:empty { display: none; }
	.doc td:first-child code { white-space: normal; }
}

/* the brand lockup and WordPress blue (matches the product page) */
.gcb-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.gcb-mark svg { width: 26px; height: 26px; flex: none; color: #3858e9; }
.gcb-mark b { font: 700 19px/1 var(--text); letter-spacing: -.01em; }
.gcb-mark i { width: 1px; height: 24px; background: currentColor; opacity: .3; }
.gcb-mark span { font: 500 10.5px/1.15 var(--text); opacity: .75; }
:root { --gcb-kit-accent: #3858e9; --gcb-kit-accent-hover: #4a68f0; }
