/* Agents4DevOps Help Tutorials. Uses the theme's tokens, with fallbacks. */
.a4dh {
	--h-ink: var(--ink, #15121c);
	--h-soft: var(--ink-soft, #3a3550);
	--h-muted: var(--muted, #6b6478);
	--h-faint: var(--faint, #757087);
	--h-purple: var(--purple, #5f398f);
	--h-magenta: var(--magenta, #913884);
	--h-line: var(--line, rgba(95, 57, 143, .16));
	--h-line-soft: var(--line-soft, rgba(95, 57, 143, .09));
	--h-alt: var(--alt, #faf9fc);
	--h-dark: var(--dark, #0b0714);
	--h-grad: var(--grad, linear-gradient(135deg, #4f2a9b 0%, #913884 50%, #eb5d41 100%));
	--h-grad-h: var(--grad-h, linear-gradient(90deg, #4f2a9b 0%, #913884 50%, #eb5d41 100%));
	--h-mono: var(--font-mono-face, "JetBrains Mono"), ui-monospace, SFMono-Regular, Menlo, monospace;
	--h-radius: var(--radius, 16px);
	--h-ease: var(--ease-standard, cubic-bezier(.4, 0, .2, 1));
	--h-nav: var(--nav-h, 72px); /* the site's fixed navigation; 0 when help pages show without it */
	--h-top: calc(var(--h-nav) + var(--wp-admin--admin-bar--height, 0px));
	--h-bar: 80px;
	display: block;
	color: var(--h-ink);
	background: #fff;
}
.a4dh *, .a4dh *::before, .a4dh *::after { box-sizing: border-box; }

/* Help pages on their own: no site navigation or footer. */
body.a4dh-bare { margin: 0; background: #fff; }
.a4dh-bare .a4dh { --h-nav: 0px; min-height: 100vh; }
.a4dh-bare .a4dh-hero { padding-top: 56px; }
.a4dh-bare .a4dh-layout { padding-bottom: 72px; }
.a4dh-bare .a4dh-guides { padding-bottom: 80px; }
.a4dh-bare .a4dh-more { padding-bottom: 72px; }
.a4dh-wrap { width: 100%; max-width: calc(var(--wrap, 1200px) + var(--gutter, 32px) * 2); margin-inline: auto; padding-inline: var(--gutter, 32px); }
.a4dh .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- hero ---------- */
.a4dh-hero {
	padding: calc(var(--h-nav) + 64px) 0 40px;
	background: radial-gradient(70% 120% at 85% 0%, rgba(145, 56, 132, .08), transparent 60%), var(--h-alt);
	border-bottom: 1px solid var(--h-line-soft);
}
.a4dh-eyebrow {
	display: inline-block; margin-bottom: 18px;
	font: 500 12px/1.4 var(--h-mono); letter-spacing: .14em; text-transform: uppercase;
	color: var(--h-purple); text-decoration: none;
}
a.a4dh-eyebrow:hover { color: var(--h-magenta); }
.a4dh-title { margin: 0; max-width: 900px; font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--h-ink); text-wrap: balance; }
.a4dh-grad { background: var(--h-grad-h); -webkit-background-clip: text; background-clip: text; color: transparent; }
.a4dh-intro { margin-top: 18px; max-width: 720px; font-size: 17px; line-height: 1.7; color: var(--h-soft); }
.a4dh-intro p { margin: 0; }
.a4dh-intro p + p { margin-top: .7em; }
.a4dh-intro a { color: var(--h-purple); text-decoration: underline; text-underline-offset: 3px; }
.a4dh-meta { margin: 18px 0 0; font: 500 12px/1.4 var(--h-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--h-muted); }

/* ---------- search (combobox) ---------- */
.a4dh-bar {
	position: sticky; top: var(--h-top); z-index: 30;
	padding: 14px 0; min-height: var(--h-bar);
	background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--h-line-soft);
}
.a4dh-search { position: relative; max-width: 760px; }
.a4dh-search__field {
	position: relative; display: flex; align-items: center; height: 52px;
	background: #fff; border: 1px solid var(--h-line); border-radius: 14px;
	box-shadow: 0 1px 2px rgba(21, 18, 28, .04);
	transition: border-color .2s var(--h-ease), box-shadow .2s var(--h-ease);
}
.a4dh-search__field:focus-within { border-color: var(--h-purple); box-shadow: 0 0 0 4px rgba(95, 57, 143, .12); }
.a4dh-search__icon { position: absolute; left: 16px; width: 20px; height: 20px; fill: none; stroke: var(--h-muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.a4dh-search input[type="search"] {
	flex: 1; min-width: 0; height: 100%; padding: 0 8px 0 46px;
	border: 0; outline: 0; background: transparent; border-radius: 14px;
	font: inherit; font-size: 16px; color: var(--h-ink);
	-webkit-appearance: none; appearance: none;
}
.a4dh-search input::placeholder { color: var(--h-faint); }
.a4dh-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.a4dh-search__key {
	flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-right: 4px;
	border: 1px solid var(--h-line); border-radius: 6px; background: var(--h-alt);
	font: 500 12px/1 var(--h-mono); color: var(--h-muted);
}
.a4dh-search__field:focus-within .a4dh-search__key { display: none; }
.a4dh-search__toggle {
	flex: none; display: grid; place-items: center; width: 44px; height: 100%;
	border: 0; background: none; cursor: pointer; color: var(--h-muted); border-radius: 0 14px 14px 0;
}
.a4dh-search__toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--h-ease); }
.a4dh-search.is-open .a4dh-search__toggle svg { transform: rotate(180deg); }
.a4dh-search__toggle:hover { color: var(--h-ink); }

.a4dh-search__panel {
	position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40;
	max-height: min(62vh, 520px); overflow-y: auto; overscroll-behavior: contain;
	padding: 6px; background: #fff; border: 1px solid var(--h-line); border-radius: 14px;
	box-shadow: 0 4px 10px rgba(20, 14, 50, .06), 0 28px 60px -20px rgba(48, 24, 120, .32);
}
.a4dh-search__panel[hidden] { display: none; }
.a4dh-group { padding: 10px 12px 6px; font: 500 11px/1.4 var(--h-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--h-muted); }
.a4dh-group:not(:first-child) { margin-top: 4px; border-top: 1px solid var(--h-line-soft); padding-top: 12px; }
.a4dh-opt {
	display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center;
	padding: 8px 10px; border-radius: 10px; cursor: pointer; color: var(--h-ink);
}
.a4dh-opt.is-active { background: rgba(95, 57, 143, .07); box-shadow: inset 3px 0 0 var(--h-purple); }
.a4dh-opt__img { position: relative; width: 72px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--h-grad); }
.a4dh-opt__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a4dh-opt__n { position: absolute; inset: auto auto 4px 4px; padding: 1px 5px; border-radius: 4px; background: rgba(11, 7, 20, .78); color: #fff; font: 500 10px/1.4 var(--h-mono); }
.a4dh-opt__t { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
.a4dh-opt__d { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--h-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a4dh-opt mark { background: rgba(235, 93, 65, .16); color: inherit; border-radius: 3px; padding: 0 1px; }
.a4dh-noresult { padding: 18px 14px; font-size: 14.5px; color: var(--h-muted); }

/* ---------- layout ---------- */
.a4dh-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 96px; align-items: start; }
.a4dh-layout.is-solo { grid-template-columns: minmax(0, 1fr); }
.a4dh-layout.is-solo .a4dh-videos { max-width: 920px; }

.a4dh-toc { position: sticky; top: calc(var(--h-top) + var(--h-bar) + 24px); max-height: calc(100vh - var(--h-top) - var(--h-bar) - 48px); overflow-y: auto; overscroll-behavior: contain; }
.a4dh-toc__h { margin: 0 0 12px; font: 500 11px/1.4 var(--h-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--h-muted); }
.a4dh-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--h-line); }
.a4dh-toc li a {
	display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; margin-left: -1px; padding: 8px 10px 8px 14px;
	border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--h-soft); text-decoration: none;
	transition: color .2s var(--h-ease), border-color .2s var(--h-ease), background-color .2s var(--h-ease);
}
.a4dh-toc li a:hover { color: var(--h-ink); background: var(--h-alt); }
.a4dh-toc li a[aria-current="true"] { color: var(--h-purple); border-left-color: var(--h-magenta); font-weight: 600; }
.a4dh-n { font: 500 12px/1.6 var(--h-mono); color: var(--h-faint); }
.a4dh-toc li a[aria-current="true"] .a4dh-n { color: var(--h-magenta); }
.a4dh-toc__all { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--h-purple); text-decoration: none; }
.a4dh-toc__all:hover { color: var(--h-magenta); }

/* ---------- videos ---------- */
.a4dh-videos { display: grid; gap: 72px; min-width: 0; }
.a4dh-video { scroll-margin-top: calc(var(--h-top) + var(--h-bar) + 20px); }
.a4dh-video__head { display: flex; align-items: center; gap: 14px; }
.a4dh-video__num {
	flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	background: var(--h-ink); color: #fff; font: 500 11px/1 var(--h-mono);
	transition: background .3s var(--h-ease);
}
.a4dh-video__title { flex: 1; min-width: 0; margin: 0; font-size: clamp(21px, 2.2vw, 26px); font-weight: 700; line-height: 1.25; letter-spacing: -.015em; color: var(--h-ink); outline: none; }
.a4dh-copy {
	flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
	border: 1px solid var(--h-line); border-radius: 999px; background: #fff; cursor: pointer;
	font: inherit; font-size: 13px; font-weight: 600; color: var(--h-soft);
	transition: border-color .2s var(--h-ease), color .2s var(--h-ease), background .2s var(--h-ease);
}
.a4dh-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a4dh-copy:hover { border-color: var(--h-purple); color: var(--h-purple); }
.a4dh-copy.is-done { border-color: #1f9d6b; color: #1f7a55; background: #effaf5; }
.a4dh-video__text { margin: 14px 0 0 48px; max-width: 760px; font-size: 16px; line-height: 1.7; color: var(--h-soft); }
.a4dh-video__text p { margin: 0; }
.a4dh-video__text p + p { margin-top: .6em; }
.a4dh-video__text a { color: var(--h-purple); text-decoration: underline; text-underline-offset: 3px; }

.a4dh-player {
	position: relative; margin: 22px 0 0 48px; aspect-ratio: 16 / 9; overflow: hidden;
	border-radius: var(--h-radius); background: var(--h-dark); border: 1px solid var(--h-line);
	box-shadow: 0 2px 6px rgba(20, 14, 50, .05), 0 30px 60px -30px rgba(48, 24, 120, .35);
	transition: box-shadow .4s var(--h-ease);
}
.a4dh-player iframe, .a4dh-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.a4dh-player__poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; display: block; }
.a4dh-player__poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--h-ease), filter .3s var(--h-ease); }
.a4dh-player__poster:hover img { transform: scale(1.015); filter: brightness(.94); }
.a4dh-play {
	position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
	display: grid; place-items: center; border-radius: 50%; background: var(--h-grad);
	box-shadow: 0 12px 30px -8px rgba(79, 42, 155, .6), 0 0 0 8px rgba(255, 255, 255, .22);
	transition: transform .25s var(--h-ease);
}
.a4dh-play svg { width: 30px; height: 30px; margin-left: 4px; fill: #fff; }
.a4dh-player__poster:hover .a4dh-play, .a4dh-player__poster:focus-visible .a4dh-play { transform: scale(1.08); }
.a4dh-player__poster:focus-visible { outline: 3px solid var(--h-magenta); outline-offset: -3px; }
/* Media Library video: the first frame shows through until a cover image is set. */
.a4dh-player__poster.is-frame { background: transparent; }
.a4dh-player__poster.is-frame:hover { background: rgba(11, 7, 20, .08); }
.a4dh-player.is-file.is-playing .a4dh-player__poster { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility 0s .2s; }
.a4dh-player__fallback { position: absolute; inset: auto 0 0 0; padding: 12px; background: rgba(0, 0, 0, .7); color: #fff; text-align: center; }

/* The video someone just jumped to. */
.a4dh-video.is-target .a4dh-video__num { background: var(--h-grad); }
.a4dh-video.is-target .a4dh-player { box-shadow: 0 0 0 3px rgba(145, 56, 132, .45), 0 30px 60px -30px rgba(48, 24, 120, .45); }

.a4dh-missing { margin: 16px 0 0 48px; padding: 14px 16px; border: 1px dashed var(--h-magenta); border-radius: 10px; background: rgba(145, 56, 132, .05); font-size: 14px; color: var(--h-magenta); }
.a4dh-empty { padding: 32px; border: 1px dashed var(--h-line); border-radius: var(--h-radius); text-align: center; color: var(--h-muted); }

/* ---------- more guides ---------- */
.a4dh-more { padding: 64px 0 96px; background: var(--h-alt); border-top: 1px solid var(--h-line-soft); }
.a4dh-more__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.a4dh-more__head h2 { margin: 0; font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; letter-spacing: -.02em; color: var(--h-ink); }
.a4dh-textlink { font-size: 15px; font-weight: 600; color: var(--h-purple); text-decoration: none; }
.a4dh-textlink:hover { color: var(--h-magenta); }
.a4dh-minis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.a4dh-minis a {
	display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px;
	background: #fff; border: 1px solid var(--h-line); border-radius: 14px; text-decoration: none;
	transition: border-color .2s var(--h-ease), transform .2s var(--h-ease), box-shadow .2s var(--h-ease);
}
.a4dh-minis a:hover { border-color: rgba(95, 57, 143, .4); transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(48, 24, 120, .35); }
.a4dh-minis__t { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--h-ink); }
.a4dh-minis__n { font: 500 11px/1.4 var(--h-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--h-muted); }

/* ---------- index ---------- */
.a4dh-hero--index { padding-bottom: 56px; }
.a4dh-hero__search { margin-top: 30px; }
.a4dh-hero__search .a4dh-search__field { height: 58px; box-shadow: 0 2px 6px rgba(20, 14, 50, .05), 0 18px 40px -22px rgba(48, 24, 120, .3); }
.a4dh-guides { padding: 56px 0 112px; }
.a4dh-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.a4dh-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border: 1px solid var(--h-line); border-radius: var(--h-radius);
	transition: border-color .25s var(--h-ease), transform .25s var(--h-ease), box-shadow .25s var(--h-ease);
}
.a4dh-card:hover { border-color: rgba(95, 57, 143, .38); transform: translateY(-3px); box-shadow: 0 24px 48px -26px rgba(48, 24, 120, .4); }
.a4dh-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--h-alt); border-bottom: 1px solid var(--h-line-soft); }
.a4dh-card__media.is-blank { background: var(--h-grad); }
.a4dh-card__media img, .a4dh-card__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.a4dh-card__chip { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(11, 7, 20, .8); color: #fff; font: 500 11px/1.4 var(--h-mono); letter-spacing: .08em; text-transform: uppercase; }
.a4dh-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 22px 20px; }
.a4dh-card__title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.a4dh-card__title a { color: var(--h-ink); text-decoration: none; }
.a4dh-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.a4dh-card__title a:focus-visible { outline: none; }
.a4dh-card:focus-within { outline: 3px solid rgba(145, 56, 132, .45); outline-offset: 2px; }
.a4dh-card__intro { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--h-muted); }
.a4dh-card__list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.a4dh-card__list a {
	position: relative; z-index: 2; display: block; padding: 5px 0 5px 20px;
	font-size: 14px; line-height: 1.4; color: var(--h-soft); text-decoration: none;
}
.a4dh-card__list a::before { content: ""; position: absolute; left: 2px; top: 11px; border-left: 7px solid var(--h-magenta); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.a4dh-card__list a:hover { color: var(--h-purple); text-decoration: underline; text-underline-offset: 3px; }
.a4dh-card__more { padding: 5px 0 0 20px; font-size: 13px; color: var(--h-faint); }
.a4dh-card__cta { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--h-purple); }

/* ---------- copied toast ---------- */
.a4dh-toast {
	position: fixed; left: 50%; bottom: 28px; z-index: 9999; transform: translate(-50%, 16px); opacity: 0;
	padding: 10px 18px; border-radius: 999px; background: var(--h-ink, #15121c); color: #fff; font-size: 14px; font-weight: 500;
	box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}
.a4dh-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- smaller screens ---------- */
@media (max-width: 1023px) {
	.a4dh-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; }
	.a4dh-toc { display: none; }
}
@media (max-width: 640px) {
	.a4dh { --h-bar: 72px; }
	.a4dh-hero { padding: calc(var(--h-nav) + 40px) 0 28px; }
	.a4dh-bare .a4dh-hero { padding-top: 36px; }
	.a4dh-bar { padding: 10px 0; }
	.a4dh-search__field { height: 50px; }
	.a4dh-search__key { display: none; }
	.a4dh-videos { gap: 56px; }
	.a4dh-video__head { align-items: flex-start; gap: 12px; }
	.a4dh-video__num { margin-top: 1px; }
	.a4dh-video__title { padding-top: 3px; }
	.a4dh-copy { width: 36px; height: 36px; padding: 0; justify-content: center; }
	.a4dh-copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
	.a4dh-copy svg { width: 16px; height: 16px; }
	.a4dh-video__text, .a4dh-player, .a4dh-missing { margin-left: 0; }
	.a4dh-player { border-radius: 12px; }
	.a4dh-play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
	.a4dh-play svg { width: 24px; height: 24px; }
	.a4dh-opt { grid-template-columns: 60px minmax(0, 1fr); }
	.a4dh-opt__img { width: 60px; }
	.a4dh-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.a4dh *, .a4dh *::before, .a4dh *::after { transition: none !important; }
}
