/* HappyDivi Docs. Uses the site's --hd-* tokens when the theme provides them, so it also looks right alone. */
.hdd {
	--hdd-primary: var(--hd-primary, #2a5aff);
	--hdd-ink: var(--hd-ink, #0e1430);
	--hdd-muted: var(--hd-muted, #4a5170);
	--hdd-line: var(--hd-line, #e3e6f0);
	--hdd-soft: var(--hd-soft, #f7f8fc);
	--hdd-head: var(--hd-font-head, ui-sans-serif, system-ui, sans-serif);
	--hdd-body: var(--hd-font-body, ui-sans-serif, system-ui, sans-serif);
	--hdd-top: 96px;
}
.hdd .hdd-shell { box-sizing: border-box; width: 100%; max-width: 1360px; margin: 0 auto; padding: 40px 24px 80px; display: grid; gap: 48px; font-family: var(--hdd-body); color: var(--hdd-ink); }
.hdd .hdd-shell *, .hdd .hdd-shell *::before, .hdd .hdd-shell *::after { box-sizing: border-box; }
.hdd .hdd-shell--doc { grid-template-columns: 260px minmax(0, 1fr) 220px; }
.hdd .hdd-shell--wide { max-width: 1100px; }
.hdd .hdd-shell--read { max-width: 820px; }
.hdd .hdd-shell__nav, .hdd .hdd-shell__toc { position: sticky; top: var(--hdd-top); align-self: start; max-height: calc(100vh - var(--hdd-top) - 16px); overflow-y: auto; scrollbar-width: thin; }
.hdd .hdd-shell__main { min-width: 0; }
.hdd--doc .hdd-shell__main { max-width: 760px; }
.hdd a { color: var(--hdd-primary); }

/* Breadcrumbs. */
.hdd-breadcrumbs ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--hdd-muted); }
.hdd-breadcrumbs li { padding: 0; }
.hdd-breadcrumbs li + li::before { content: "\203A"; margin-right: 6px; color: var(--hdd-muted); }
.hdd-breadcrumbs a { color: var(--hdd-muted); text-decoration: none; }
.hdd-breadcrumbs a:hover { color: var(--hdd-primary); text-decoration: underline; }

/* Page header. */
.hdd-doc-head { margin-bottom: 28px; }
.hdd .hdd-doc-head h1 { font: 700 clamp(30px, 4vw, 42px)/1.12 var(--hdd-head); letter-spacing: -.02em; color: var(--hdd-ink); padding: 0 0 12px; margin: 0; }
.hdd .hdd-doc-head__lead { font-size: 19px; line-height: 1.5; color: var(--hdd-muted); padding: 0 0 12px; margin: 0; }
.hdd .hdd-doc-head__meta { font-size: 14px; color: var(--hdd-muted); padding: 0; margin: 0; }
.hdd .hdd-doc-head__links { display: flex; gap: 18px; font-weight: 600; padding: 0; margin: 0; }

/* Side menu. */
.hdd-nav__wrap > summary { display: none; }
.hdd .hdd-nav__product { font: 700 17px/1.2 var(--hdd-head); padding: 0 0 12px; margin: 0; }
.hdd .hdd-nav__product a { color: var(--hdd-ink); text-decoration: none; }
.hdd .hdd-nav__title { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--hdd-muted); padding: 18px 0 6px; margin: 0; }
.hdd-nav ul { list-style: none; margin: 0; padding: 0; }
.hdd-nav li { padding: 0; }
.hdd-nav li a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 15px; line-height: 1.35; color: var(--hdd-ink); text-decoration: none; }
.hdd-nav li a:hover { background: var(--hdd-soft); }
.hdd-nav li a[aria-current="page"] { background: #eaf0ff; color: var(--hdd-primary); font-weight: 600; }
.hdd .hdd-nav__foot { padding: 18px 10px 0; margin: 0; font-size: 14px; }

/* Search. */
.hdd-search input { width: 100%; padding: 10px 12px; font: 400 15px/1.3 var(--hdd-body); color: var(--hdd-ink); background: #fff; border: 1px solid var(--hdd-line); border-radius: 10px; }
.hdd-search input:focus-visible { outline: 3px solid var(--hdd-primary); outline-offset: 1px; border-color: transparent; }
.hdd-no-match { font-size: 15px; color: var(--hdd-muted); padding: 14px 0; }
[data-hdd-item][hidden], [data-hdd-group][hidden] { display: none; }

/* Table of contents. */
.hdd-toc details > summary { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--hdd-muted); list-style: none; padding-bottom: 8px; }
.hdd-toc details > summary::-webkit-details-marker { display: none; }
.hdd-toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--hdd-line); }
.hdd-toc__item { padding: 0; }
.hdd-toc__item a { display: block; padding: 5px 0 5px 12px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.35; color: var(--hdd-muted); text-decoration: none; }
.hdd-toc__item--h3 a { padding-left: 24px; font-size: 13.5px; }
.hdd-toc__item a:hover { color: var(--hdd-ink); }
.hdd-toc__item a.is-active { color: var(--hdd-primary); border-left-color: var(--hdd-primary); font-weight: 600; }
.hdd-toc-inline { display: none; }

/* Doc content: Divi modules, blocks or classic HTML all land here. */
.hdd-content { font-size: 17px; line-height: 1.7; color: var(--hdd-ink); }
.hdd-content .et_pb_section, .hdd-content .et_pb_row, .hdd-content .et_pb_column { padding: 0 !important; margin: 0 !important; width: 100% !important; max-width: none !important; background: none; }
.hdd-content .et_pb_section, .hdd-content .et_pb_row, .hdd-content .et_pb_column { gap: 0 !important; row-gap: 0 !important; display: block !important; }
.hdd-content .et_pb_module { margin-bottom: 18px !important; }
.hdd-content .et_pb_heading { margin-bottom: 0 !important; }
.hdd .hdd-content h2 { font: 700 27px/1.2 var(--hdd-head); letter-spacing: -.01em; color: var(--hdd-ink); padding: 0; margin: 38px 0 12px; scroll-margin-top: var(--hdd-top); }
.hdd .hdd-content h3 { font: 700 20px/1.25 var(--hdd-head); color: var(--hdd-ink); padding: 0; margin: 28px 0 8px; scroll-margin-top: var(--hdd-top); }
.hdd .hdd-content p { padding: 0 0 14px; margin: 0; }
.hdd .hdd-content ul, .hdd .hdd-content ol { padding: 0 0 14px 24px; margin: 0; }
.hdd .hdd-content ul { list-style: disc; }
.hdd .hdd-content ol { list-style: decimal; }
.hdd .hdd-content li { padding: 0 0 6px; }
.hdd-anchor { margin-left: 8px; color: var(--hdd-line) !important; text-decoration: none; font-weight: 500; opacity: 0; transition: opacity .15s; }
:is(h2, h3):hover > .hdd-anchor, .hdd-anchor:focus-visible { opacity: 1; }
.hdd .hdd-content code { font: 500 .88em/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--hdd-soft); border: 1px solid var(--hdd-line); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
.hdd .hdd-content pre { position: relative; margin: 0 0 16px; padding: 16px 18px; background: var(--hdd-ink); border-radius: 12px; overflow-x: auto; }
.hdd .hdd-content pre code { display: block; background: none; border: 0; padding: 0; color: #e8ebf7; white-space: pre; overflow-wrap: normal; }
.hdd-copy { position: absolute; top: 8px; right: 8px; padding: 4px 10px; font: 600 12px/1.4 var(--hdd-body); color: #fff; background: rgba(255, 255, 255, .14); border: 0; border-radius: 6px; cursor: pointer; }
.hdd-copy:hover { background: rgba(255, 255, 255, .26); }

/* Same class names as the HappyDivi block kit, so kit modules also work in docs. */
.hdd-content .hd-hook { font-size: 18px; }
.hdd-content .hd-callout { padding: 16px 18px; border: 1px solid var(--hdd-line); border-left: 4px solid var(--hdd-primary); border-radius: 10px; background: var(--hdd-soft); }
.hdd-content .hd-callout p { padding-bottom: 6px; }
.hdd .hdd-content .hd-callout__title { font-weight: 700; padding-bottom: 2px; }
.hdd-content .hd-callout--tip { border-left-color: #1a9c64; background: #eefaf4; }
.hdd-content .hd-callout--warning { border-left-color: #e0a200; background: #fff8e5; }
.hdd-content .hd-figure { margin-bottom: 8px !important; }
.hdd-content .hd-figure img { width: 100%; height: auto; border: 1px solid var(--hdd-line); border-radius: 12px; }
.hdd .hdd-content .hd-figure-caption p { font-size: 14px; color: var(--hdd-muted); }
.hdd-content .hd-compare { overflow-x: auto; }
.hdd-content .hd-compare table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; border: 0; }
.hdd-content .hd-compare th, .hdd-content .hd-compare td { padding: 10px 12px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--hdd-line); }
.hdd-content .hd-compare thead th { background: var(--hdd-soft); font-weight: 700; }

/* Previous, next and help. */
.hdd-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.hdd .hdd-pager__link { display: block; padding: 14px 16px; border: 1px solid var(--hdd-line); border-radius: 12px; color: var(--hdd-ink); font-weight: 600; line-height: 1.3; text-decoration: none; }
.hdd .hdd-pager__link:hover { border-color: var(--hdd-primary); }
.hdd-pager__link span { display: block; font-size: 13px; font-weight: 500; color: var(--hdd-muted); margin-bottom: 3px; }
.hdd-pager__link--next { grid-column: 2; text-align: right; }
.hdd-help { margin-top: 24px; padding: 18px 20px; background: var(--hdd-soft); border-radius: 12px; }
.hdd .hdd-help p { padding: 0; margin: 0; font-size: 15px; }
.hdd .hdd-help__title { font-weight: 700; margin-bottom: 2px; }

/* Lists of products and docs. */
.hdd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.hdd-card { padding: 24px; border: 1px solid var(--hdd-line); border-radius: 16px; }
.hdd .hdd-card__title { font: 700 22px/1.2 var(--hdd-head); padding: 0 0 8px; margin: 0; }
.hdd .hdd-card__title a { color: var(--hdd-ink); text-decoration: none; }
.hdd .hdd-card__title a:hover { color: var(--hdd-primary); }
.hdd .hdd-card p { padding: 0 0 10px; margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--hdd-muted); }
.hdd .hdd-card .hdd-card__meta { font-size: 14px; padding: 0; }
.hdd-shell--wide .hdd-search { max-width: 460px; margin-bottom: 28px; }
.hdd-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 36px 40px; align-items: start; }
.hdd .hdd-section h2 { font: 700 20px/1.25 var(--hdd-head); padding: 0 0 8px; margin: 0; border-bottom: 1px solid var(--hdd-line); }
.hdd-section ul { list-style: none; margin: 0; padding: 0; }
.hdd-section li { padding: 12px 0; border-bottom: 1px solid var(--hdd-line); }
.hdd .hdd-section li a { display: block; font-weight: 600; text-decoration: none; }
.hdd .hdd-section li a:hover { text-decoration: underline; }
.hdd-section li span { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.45; color: var(--hdd-muted); }
.hdd .hdd-empty { color: var(--hdd-muted); }

/* Changelog. */
.hdd-release { padding: 22px 0; border-top: 1px solid var(--hdd-line); }
.hdd .hdd-release h2 { font: 700 22px/1.25 var(--hdd-head); padding: 0 0 10px; margin: 0; scroll-margin-top: var(--hdd-top); }
.hdd-release time { display: inline-block; margin-left: 8px; font: 400 15px/1 var(--hdd-body); color: var(--hdd-muted); }
.hdd-release ul { list-style: none; margin: 0; padding: 0; }
.hdd-release li { padding: 6px 0; font-size: 16px; line-height: 1.55; }
.hdd-release code { font: 500 .88em ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--hdd-soft); border-radius: 4px; padding: 1px 4px; overflow-wrap: anywhere; }
.hdd-tag { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; line-height: 1.6; background: var(--hdd-soft); color: var(--hdd-muted); }
.hdd-tag--new { background: #e6f9f0; color: #0b6b43; }
.hdd-tag--fix { background: #eaf0ff; color: #1e46d6; }
.hdd-tag--security { background: #fff1ef; color: #a2281c; }

@media (max-width: 1180px) {
	.hdd .hdd-shell--doc { grid-template-columns: 240px minmax(0, 1fr); }
	.hdd .hdd-shell__toc { display: none; }
	.hdd-toc-inline { display: block; margin-bottom: 24px; padding: 14px 16px; background: var(--hdd-soft); border-radius: 12px; }
	.hdd-toc-inline .hdd-toc details > summary { cursor: pointer; padding-bottom: 0; }
	.hdd-toc-inline .hdd-toc details[open] > summary { padding-bottom: 8px; }
}
@media (max-width: 820px) {
	.hdd .hdd-shell, .hdd .hdd-shell--doc { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 16px 56px; }
	.hdd .hdd-shell__nav { position: static; max-height: none; order: 2; overflow: visible; }
	.hdd .hdd-shell__main { order: 1; }
	.hdd-nav__wrap { border: 1px solid var(--hdd-line); border-radius: 12px; padding: 14px 16px; }
	.hdd-nav__wrap > summary { display: block; font-weight: 700; cursor: pointer; }
	.hdd-nav__wrap[open] > summary { margin-bottom: 12px; }
	.hdd-sections { grid-template-columns: minmax(0, 1fr); }
	.hdd .hdd-doc-head__lead { font-size: 17px; }
	.hdd-content .hd-compare table { font-size: 14px; }
}
@media (prefers-reduced-motion: no-preference) { .hdd { scroll-behavior: smooth; } }
