/* ============================================================
   Docs page (page-docs.php)
   Builds on the shared .pr-hero / .pr-cta bands from style.css.
   ============================================================ */

.dc-mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

/* --------- Hero --------- */
.dc-hero { padding: 112px 0 76px; }
.dc-hero__eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: #c4d6ff;
	padding: 7px 14px 7px 11px; border-radius: 999px;
	background: rgba(76, 141, 255, .12); border: 1px solid rgba(124, 160, 255, .28);
	margin-bottom: 22px;
}
.dc-hero__eyebrow svg { width: 15px; height: 15px; }

.dc-search {
	position: relative; max-width: 620px; margin: 34px auto 0;
}
.dc-search__ico {
	position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
	width: 20px; height: 20px; color: var(--muted-2); pointer-events: none;
}
.dc-search input {
	width: 100%; height: 60px;
	padding: 0 64px 0 54px; border-radius: 999px;
	border: 1px solid rgba(255,255,255,.18);
	background: #fff; color: var(--ink);
	font: 500 16.5px/1 var(--font-body);
	box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .6);
	-webkit-appearance: none; appearance: none;
}
.dc-search input::placeholder { color: var(--muted-2); }
.dc-search input:focus { outline: none; box-shadow: 0 24px 50px -22px rgba(0,0,0,.6), 0 0 0 4px rgba(76,141,255,.35); }
.dc-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.dc-search__kbd {
	position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
	min-width: 28px; height: 28px; display: grid; place-items: center;
	font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; font-weight: 600;
	color: var(--muted); background: var(--bg-alt); border: 1px solid var(--line);
	border-radius: 8px; pointer-events: none;
}
.dc-search input:not(:placeholder-shown) + .dc-search__kbd { opacity: 0; }

.dc-hero__quick {
	display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 10px;
	margin-top: 22px; font-size: 14px;
}
.dc-hero__quick span { color: rgba(255,255,255,.5); padding: 7px 2px; }
.dc-hero__quick a {
	color: rgba(255,255,255,.86); font-weight: 500;
	padding: 7px 14px; border-radius: 999px;
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
	transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.dc-hero__quick a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.24); color: #fff; }

/* --------- Layout --------- */
.dc-body { background: var(--bg-alt); padding: 64px 0 96px; }
.dc-layout {
	display: grid;
	grid-template-columns: 252px minmax(0, 1fr);
	gap: 52px;
	align-items: start;
}

/* --------- Sidebar --------- */
.dc-side {
	position: sticky; top: 96px;
	max-height: calc(100vh - 116px); overflow-y: auto;
	padding-bottom: 12px;
	scrollbar-width: thin; scrollbar-color: #d5deee transparent;
}
.dc-side__toggle { display: none; }
.dc-nav { display: flex; flex-direction: column; gap: 22px; }
.dc-nav__group-title {
	display: flex; align-items: center; gap: 9px;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	color: var(--muted-2); padding: 0 12px 8px;
}
.dc-nav__group-title svg { width: 15px; height: 15px; color: var(--blue-deep); flex: none; }
.dc-nav__list { display: flex; flex-direction: column; gap: 1px; border-left: 1px solid #dfe6f3; margin-left: 19px; }
.dc-nav__link {
	position: relative; display: block;
	font-size: 14.5px; font-weight: 500; line-height: 1.35; color: var(--muted);
	padding: 7px 12px 7px 16px; margin-left: -1px;
	border-left: 2px solid transparent;
	border-radius: 0 9px 9px 0;
	transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.dc-nav__link:hover { color: var(--ink); background: rgba(255,255,255,.7); }
.dc-nav__link.is-active {
	color: var(--ink); font-weight: 600; background: #fff;
	border-left-color: var(--blue-deep);
	box-shadow: var(--shadow-sm);
}
.dc-nav__link[hidden], .dc-nav__group[hidden] { display: none; }

.dc-side__help {
	margin-top: 26px; padding: 18px; border-radius: var(--radius);
	background: var(--grad-soft); border: 1px solid #e0e7fb;
}
.dc-side__help p { font-size: 14px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.dc-side__help strong { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 2px; }
.dc-side__help .btn { padding: 11px 18px; font-size: 14.5px; }

/* --------- Content --------- */
.dc-content { min-width: 0; display: flex; flex-direction: column; gap: 18px; }

/* Start-here cards */
.dc-start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.dc-start[hidden] { display: none; }
.dc-start__card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 24px 24px 22px; box-shadow: var(--shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dc-start__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6e1f6; }
.dc-start__card--feature { background: var(--ink-2); border-color: var(--ink-2); color: #fff; overflow: hidden; isolation: isolate; }
.dc-start__card--feature::before {
	content: ""; position: absolute; z-index: -1; width: 280px; height: 280px; border-radius: 50%;
	right: -120px; top: -140px; background: #7c3aed; filter: blur(80px); opacity: .45;
}
.dc-start__ico {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
	background: var(--grad-soft); border: 1px solid #e0e7fb; color: var(--blue-deep); margin-bottom: 16px;
}
.dc-start__card--feature .dc-start__ico { background: var(--grad); border-color: transparent; color: #fff; }
.dc-start__ico svg { width: 20px; height: 20px; }
.dc-start__card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.dc-start__card--feature h3 { color: #fff; }
.dc-start__card p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--muted); flex: 1; }
.dc-start__card--feature p { color: rgba(255,255,255,.68); }
.dc-start__go {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
	font-size: 14px; font-weight: 600; color: var(--blue-deep);
}
.dc-start__card--feature .dc-start__go { color: #b9cdff; }
.dc-start__go svg { width: 14px; height: 14px; transition: transform .2s ease; }
.dc-start__card:hover .dc-start__go svg { transform: translateX(3px); }

/* Group heading */
.dc-part {
	display: flex; align-items: center; gap: 14px;
	margin: 34px 0 2px;
}
.dc-part:first-of-type { margin-top: 6px; }
.dc-part__num {
	font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; font-weight: 700;
	background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dc-part h2 {
	font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	font-family: var(--font-body); color: var(--ink);
}
.dc-part::after { content: ""; flex: 1; height: 1px; background: #dfe6f3; }
.dc-part[hidden] { display: none; }

/* Section card */
.dc-sec {
	background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
	padding: 34px 40px 36px;
	scroll-margin-top: 96px;
}
.dc-sec[hidden] { display: none; }
.dc-sec > * + * { margin-top: 18px; }
.dc-sec__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dc-sec__head h3 {
	font-size: clamp(21px, 2.2vw, 25px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2;
}
.dc-sec__head h3 a { color: inherit; }
.dc-sec__anchor {
	display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 6px;
	vertical-align: 2px; border-radius: 7px; color: var(--muted-2);
	opacity: 0; transition: opacity .16s ease, background .16s ease, color .16s ease;
}
.dc-sec__anchor svg { width: 15px; height: 15px; }
.dc-sec:hover .dc-sec__anchor, .dc-sec__anchor:focus-visible { opacity: 1; }
.dc-sec__anchor:hover { background: var(--bg-tint); color: var(--blue-deep); }
.dc-sec__lede { font-size: 17px; line-height: 1.65; color: var(--muted); }

/* Plan pills */
.dc-plan {
	flex: none; display: inline-flex; align-items: center; gap: 6px;
	font-size: 12px; font-weight: 700; letter-spacing: .04em;
	padding: 5px 11px; border-radius: 999px; white-space: nowrap; margin-top: 3px;
	border: 1px solid;
}
.dc-plan::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dc-plan--free     { color: #12805c; background: #ecfaf3; border-color: #c9eedb; }
.dc-plan--creator  { color: var(--blue-deep); background: #eef4ff; border-color: #d6e3fd; }
.dc-plan--operator { color: #6d28d9; background: #f4efff; border-color: #e2d6fb; }
.dc-plan--fleet    { color: #fff; background: var(--grad); border-color: transparent; }
.dc-plan--fleet::before { background: #fff; }

/* Prose */
.dc-prose { color: var(--muted); font-size: 16px; line-height: 1.75; }
.dc-prose > * + * { margin-top: 14px; }
.dc-prose h4 {
	font-size: 16.5px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; margin-top: 26px;
}
.dc-prose h4:first-child { margin-top: 0; }
.dc-prose h4 + p { margin-top: 6px; }
.dc-prose strong { color: var(--ink); font-weight: 600; }
.dc-prose a, .dc-table a, .dc-note a { color: var(--blue-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dc-prose a:hover, .dc-table a:hover, .dc-note a:hover { color: var(--purple); }
.dc-prose ul { display: flex; flex-direction: column; gap: 8px; }
.dc-prose ul li { position: relative; padding-left: 22px; }
.dc-prose ul li::before {
	content: ""; position: absolute; left: 4px; top: .72em;
	width: 7px; height: 7px; border-radius: 50%; background: var(--grad);
}
.dc-prose code, .dc-table code, .dc-note code, .dc-steps code {
	font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .85em;
	color: var(--ink); background: var(--bg-tint); border: 1px solid #dde6f7;
	padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere;
}

/* wp-admin path, e.g. GripMCP > Activity */
.dc-path {
	display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px;
	font-size: .9em; font-weight: 600; color: var(--ink);
	background: #fff; border: 1px solid #d9e2f2; border-radius: 7px;
	padding: 1px 8px; box-shadow: 0 1px 0 #d9e2f2; vertical-align: 1px; line-height: 1.6;
}
.dc-path i { font-style: normal; color: var(--muted-2); font-weight: 500; }

/* Steps */
.dc-steps { counter-reset: dc-step; display: flex; flex-direction: column; }
.dc-steps > li {
	position: relative; counter-increment: dc-step;
	padding: 0 0 22px 52px;
	color: var(--muted); font-size: 16px; line-height: 1.7;
}
.dc-steps > li:last-child { padding-bottom: 0; }
.dc-steps > li::before {
	content: counter(dc-step);
	position: absolute; left: 0; top: -2px;
	width: 34px; height: 34px; border-radius: 11px;
	display: grid; place-items: center;
	background: var(--grad); color: #fff;
	font: 700 14px/1 "JetBrains Mono", ui-monospace, monospace;
	box-shadow: 0 8px 18px -10px rgba(79, 70, 229, .9);
}
.dc-steps > li::after {
	content: ""; position: absolute; left: 16.5px; top: 38px; bottom: 4px; width: 1px;
	background: linear-gradient(#cfdaf3, transparent);
}
.dc-steps > li:last-child::after { display: none; }
.dc-steps strong { color: var(--ink); font-weight: 650; }
.dc-steps .dc-steps__t { display: block; color: var(--ink); font-weight: 700; font-family: var(--font-display); font-size: 16.5px; letter-spacing: -.01em; margin-bottom: 2px; }
.dc-steps .dc-code { margin-top: 12px; }

/* Code block */
.dc-code {
	border-radius: 14px; overflow: hidden;
	background: #0b111f; border: 1px solid #1b2540;
	box-shadow: 0 18px 40px -26px rgba(11, 17, 31, .8);
}
.dc-code__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 9px 10px 9px 16px; border-bottom: 1px solid #1b2540;
	background: #0e1629;
}
.dc-code__label {
	font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; font-weight: 600;
	color: #8c9bc0; letter-spacing: .02em;
}
.dc-code__copy {
	display: inline-flex; align-items: center; gap: 6px;
	font: 600 12.5px/1 var(--font-body); color: #c9d6f5;
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
	padding: 7px 10px; border-radius: 8px; cursor: pointer;
	transition: background .16s ease, color .16s ease;
}
.dc-code__copy:hover { background: rgba(255,255,255,.12); color: #fff; }
.dc-code__copy svg { width: 13px; height: 13px; }
.dc-code__copy.is-done { color: #7ee2b0; }
.dc-code pre {
	margin: 0; padding: 16px 18px;
	color: #dbe6ff; font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 13.5px; line-height: 1.7; overflow-x: auto; tab-size: 4;
}
.dc-code--wrap pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.dc-code .t-c { color: #6f7fa6; }   /* comment */
.dc-code .t-k { color: #c4a5ff; }   /* keyword */
.dc-code .t-s { color: #8fe0b8; }   /* string */
.dc-code .t-f { color: #8cb6ff; }   /* function / key */
.dc-code .t-v { color: #ffc98a; }   /* placeholder */

/* Callouts */
.dc-note {
	position: relative; display: flex; gap: 14px;
	border-radius: var(--radius); padding: 18px 20px;
	font-size: 15px; line-height: 1.65; color: var(--muted);
	background: #f4f8ff; border: 1px solid #dbe6fb;
}
.dc-note__ico { flex: none; width: 22px; height: 22px; color: var(--blue-deep); margin-top: 1px; }
.dc-note strong { color: var(--ink); font-weight: 700; }
.dc-note--tip  { background: #f8f4ff; border-color: #e6dafb; }
.dc-note--tip .dc-note__ico { color: var(--purple); }
.dc-note--warn { background: #fff8ec; border-color: #f6e0b8; }
.dc-note--warn .dc-note__ico { color: #c47a0a; }

/* Option cards (Off / Ask me first / Allow) */
.dc-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dc-opt {
	position: relative; background: var(--bg-alt); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 18px 18px 16px;
}
.dc-opt--on { background: #fff; border-color: #c9d8f8; box-shadow: 0 0 0 3px rgba(76,141,255,.12); }
.dc-opt__name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 15.5px; color: var(--ink); }
.dc-opt__tag { font: 700 11px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 5px 8px; border-radius: 999px; }
.dc-opt p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Tables */
.dc-table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; overflow-x: auto; }
.dc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.dc-table th {
	text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--muted-2); background: var(--bg-alt);
	padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.dc-table td { padding: 13px 16px; color: var(--muted); vertical-align: top; border-bottom: 1px solid var(--line); }
.dc-table tr:last-child td { border-bottom: 0; }
.dc-table td:first-child { color: var(--ink); font-weight: 600; }
.dc-table--hooks td:first-child { width: 38%; }

/* Example prompts */
.dc-prompts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dc-prompt {
	position: relative; background: var(--bg-alt); border: 1px solid var(--line);
	border-radius: 16px 16px 16px 6px; padding: 14px 16px 14px;
}
.dc-prompt__area {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2);
}
.dc-prompt__area .dc-plan { margin: 0; padding: 3px 8px; font-size: 10.5px; letter-spacing: .02em; text-transform: none; }
.dc-prompt p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink); }

/* Plan ladder */
.dc-ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dc-ladder__step { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 14px; }
.dc-ladder__step .dc-plan { margin: 0 0 10px; }
.dc-ladder__step p { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Empty search state */
.dc-empty {
	text-align: center; background: #fff; border: 1px dashed #d3ddef; border-radius: var(--radius-lg);
	padding: 48px 24px;
}
.dc-empty[hidden] { display: none; }
.dc-empty__ico { width: 48px; height: 48px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 14px; background: var(--grad-soft); color: var(--blue-deep); }
.dc-empty__ico svg { width: 22px; height: 22px; }
.dc-empty h3 { font-size: 19px; }
.dc-empty p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.dc-empty a { color: var(--blue-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Help footer */
.dc-help {
	display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	margin-top: 18px; padding: 26px 30px; border-radius: var(--radius-lg);
	background: linear-gradient(135deg, #f5f8ff 0%, #f7f2ff 100%); border: 1px solid #e0e7fb;
}
.dc-help h3 { font-size: 19px; }
.dc-help p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.dc-help__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dc-help .btn--ghost-ink {
	background: #fff; color: var(--ink); border-color: #d7e0f1;
}
.dc-help .btn--ghost-ink:hover { border-color: var(--blue); color: var(--blue-deep); }

/* --------- Responsive --------- */
@media (max-width: 1080px) {
	.dc-start { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dc-start__card--feature { grid-column: 1 / -1; }
	.dc-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
	.dc-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.dc-side {
		position: sticky; top: 72px; z-index: 20;
		max-height: none; overflow: visible; padding: 0;
	}
	.dc-side__toggle {
		display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
		font: 600 15px/1 var(--font-body); color: var(--ink);
		background: #fff; border: 1px solid var(--line); border-radius: 14px;
		padding: 14px 16px; box-shadow: var(--shadow-sm); cursor: pointer;
	}
	.dc-side__toggle span { display: flex; align-items: center; gap: 10px; min-width: 0; }
	.dc-side__toggle em { font-style: normal; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.dc-side__toggle svg { width: 16px; height: 16px; flex: none; transition: transform .2s ease; }
	.dc-side.is-open .dc-side__toggle svg.dc-chev { transform: rotate(180deg); }
	.dc-side__panel {
		display: none; margin-top: 8px; padding: 18px 10px 14px;
		background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
		max-height: min(70vh, 560px); overflow-y: auto;
	}
	.dc-side.is-open .dc-side__panel { display: block; }
	.dc-side__help { display: none; }
}
@media (max-width: 720px) {
	.dc-hero { padding: 100px 0 56px; }
	.dc-search input { height: 54px; font-size: 16px; }
	.dc-search__kbd { display: none; }
	.dc-body { padding: 28px 0 64px; }
	.dc-sec { padding: 26px 20px 28px; border-radius: var(--radius); }
	.dc-sec__head { flex-direction: column; gap: 8px; }
	.dc-opts, .dc-prompts, .dc-ladder { grid-template-columns: minmax(0, 1fr); }
	.dc-steps > li { padding-left: 46px; }
	.dc-code pre { font-size: 12.5px; }
	.dc-help { padding: 22px 20px; }
	.dc-help__actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
	.dc-start__card, .dc-start__go svg { transition: none; }
}
