/**
 * Peak widgets — base front-end styles.
 *
 * Kept intentionally small: structural rules only. Visual styling comes from
 * Elementor's own controls (background, spacing, border on the Advanced tab).
 */

/* =========================================================================
 * The house curve
 *
 * `--peak-ease` was referenced in nine stylesheets and DEFINED in one place:
 * the Peak Starter theme. On any other theme every one of those fell back —
 * to four different curves, three of which also called themselves "Peak".
 * So it is defined here, in the plugin's own base sheet, once.
 *
 * The value is unchanged — it is what the Peak Starter theme has always put
 * on :root and what every one of those fallbacks resolved to there. It is
 * Peak_Ease's `peak-out` preset, so the same curve is pickable in the editor,
 * compilable into a CSS transition and exportable to the engine. A theme may still
 * override both properties on :root, which is what the Starter does.
 *
 * There is no `--peak-dur` twin, and there should not be. A curve is a HOUSE
 * STYLE — the same shape flatters a nav link and a panel sliding in. A duration
 * is not: this site's chrome runs at 150ms, its off-canvas at 700ms, and one
 * number over both would be wrong for each of them. Every duration in Peak
 * belongs to the control that owns it (Peak_Settings::duration).
 * ========================================================================= */
:root {
	--peak-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Heading ------------------------------------------------------------------ */
/* Structural only — colour, size and weight all come from the widget's Title
 * style controls (typography group, colour, stroke, shadow). */
.peak-heading__title {
	margin: 0;
	/* Let the whole title be the trigger even before split units mount. */
}

.peak-heading__link {
	color: inherit;
}

/* Split-text line wrappers (peak.split): clip so a per-line mask/slide reveal stays crisp. */
.peak-heading .peak-split-line {
	overflow: hidden;
}

/* Image -------------------------------------------------------------------- */
/* Structural only. `.peak-image` is the inline-block box (wrapper text-align
 * places it, the Width control sizes it). `.peak-image__frame` is the clipped,
 * rounded, shadowed media box — kept separate so a caption isn't clipped. */
.peak-image {
	display: inline-block;
	max-width: 100%;
}
.peak-image__frame {
	position: relative;
	display: block;
	max-width: 100%;
	line-height: 0;
	overflow: hidden;
}
.peak-image__link {
	display: block;
	line-height: 0;
}
.peak-image img {
	display: block;
	max-width: 100%;
	height: auto;
}
/* An always-present overlay (transparent until styled) so the Animation Studio can wipe
 * or fade it as an animation target. */
/* A box with a shape of its own — Ratio or Height — and the picture fitted
   into it. The img (and a link or lightbox wrapper around it) fills the frame;
   Fit and Position default to what a designer means by "fill this": cover,
   centred. Height wins over Ratio, as in CSS. The frame keeps the width it
   always had (the picture's own, or Width), so a Ratio set for a phone alone
   changes nothing on a desktop. */
.peak-image.pkv-pki-ratio .peak-image__frame {
	aspect-ratio: var(--pki-ratio);
}
.peak-image.pkv-pki-h .peak-image__frame {
	height: var(--pki-h);
}
.peak-image.pkv-pki-ratio .peak-image__link,
.peak-image.pkv-pki-h .peak-image__link {
	height: 100%;
}
.peak-image.pkv-pki-ratio .peak-image__frame img,
.peak-image.pkv-pki-h .peak-image__frame img {
	height: 100%;
	object-fit: var(--pki-fit, cover);
	object-position: var(--pki-pos, center center);
}
.peak-image__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.peak-image__caption {
	line-height: normal;
}

/* Icon --------------------------------------------------------------------- */
/* `.peak-icon` wraps one inline SVG. The SVG inherits colour via currentColor
 * and is sized by `--peak-icon-size` (default 1em, so it tracks font-size). Any
 * container can set `color` / `--peak-icon-size` to restyle it.
 *
 * The default lives in the `var()` FALLBACK, never as a declaration on
 * `.peak-icon` itself. Declaring it here would win over the inherited value, so
 * every wrapper that sets `--peak-icon-size` on the box around the glyph — the
 * button's icon, the accordion's, the list marker, the tabs, the marquee — set a
 * variable the SVG then ignored, and their size controls did nothing at all. */
.peak-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	color: inherit;
}
.peak-icon > svg {
	width: var(--peak-icon-size, 1em);
	height: var(--peak-icon-size, 1em);
	display: block;
}
/* Colour is driven by each SVG's OWN attributes: stroke-based sets (Lucide, the
 * bundled Peak set) carry stroke="currentColor"; fill-based sets (Material, FA)
 * carry fill="currentColor"; multi-colour custom SVGs keep their explicit fills
 * (recoloured per-colour from the panel). So we never force fill/stroke here —
 * doing so would blank out one whole family. */

/* Standalone Icon widget wrapper. Its Peak-UI "Appearance" panel drives these
 * CSS variables (size / alignment / colour / rotate). */
.peak-icon-widget {
	display: flex;
	justify-content: var(--pkiw-justify, flex-start);
}
.peak-icon-widget .peak-icon {
	--peak-icon-size: var(--peak-icon-widget-size, 32px);
	color: var(--pkiw-color, inherit);
	transition: color .3s ease;
}
.peak-icon-widget .peak-icon > svg {
	transform: rotate(var(--pkiw-rotate, 0deg));
}
.peak-icon-widget__link {
	display: inline-flex;
	color: inherit;
	text-decoration: none;
}

/* Object Styles ------------------------------------------------------------ */
/* Quick per-element styling (Peak_Object_Styles). A marked `.peak-object` reads
 * `--pob-*` custom properties; each `pob-*` flag class gates one property so an
 * element only takes a style the user actually set (no blanket overrides). */
.peak-object {
	box-sizing: border-box;
}
.peak-object.pob-bg {
	background: var(--pob-bg);
}
.peak-object.pob-pad {
	padding: var(--pob-pad);
}
.peak-object.pob-margin {
	margin: var(--pob-margin);
}
.peak-object.pob-border {
	border-width: var(--pob-bw);
	border-style: var(--pob-bs);
	border-color: var(--pob-bc);
}
.peak-object.pob-radius {
	border-radius: var(--pob-radius);
}
.peak-object.pob-shadow {
	box-shadow: var(--pob-shadow);
}
.peak-object.pob-w {
	width: var(--pob-w);
}
.peak-object.pob-h {
	height: var(--pob-h);
}
/* Typography — one flag per slot, so a box that only sets a colour keeps the
 * widget's own size and face. A type style arrives as `var(--peak-…)` refs. */
.peak-object.pob-ff {
	font-family: var(--pob-ff);
}
.peak-object.pob-fs {
	font-size: var(--pob-fs);
}
.peak-object.pob-fw {
	font-weight: var(--pob-fw);
}
.peak-object.pob-lh {
	line-height: var(--pob-lh);
}
.peak-object.pob-ls {
	letter-spacing: var(--pob-ls);
}
.peak-object.pob-tt {
	text-transform: var(--pob-tt);
}
.peak-object.pob-tc {
	color: var(--pob-tc);
}
/* A styled RUN OF TEXT (Peak_Object_Styles::spans): the same block on a <span>
 * inside a heading or a paragraph. It stays inline so the words keep flowing,
 * and a run that wraps wears the whole look on every line rather than one box
 * cut across the break. Only a run given a size becomes a box of its own. */
.peak-span {
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.peak-span:is(.pob-w, .pob-h, .pob-h-w, .pob-h-h) {
	display: inline-block;
}
/* The HOVER look (a `hover` delta in the document): a `pob-h-*` flag per
 * property it changes, reading `--pob-h-*`. Three classes and a pseudo-class,
 * so it outranks the base rule above without an !important. Hover answers to
 * a keyboard's focus too, the way the Style rail's Hover does. */
.peak-object.pob-hover {
	transition: background-color .25s ease, border-color .25s ease, border-radius .25s ease, box-shadow .25s ease, color .25s ease, padding .25s ease, margin .25s ease, width .25s ease, height .25s ease, font-size .25s ease, letter-spacing .25s ease;
}
.peak-object.pob-h-bg:is(:hover, :focus-visible) {
	background: var(--pob-h-bg);
}
.peak-object.pob-h-pad:is(:hover, :focus-visible) {
	padding: var(--pob-h-pad);
}
.peak-object.pob-h-margin:is(:hover, :focus-visible) {
	margin: var(--pob-h-margin);
}
.peak-object.pob-h-border:is(:hover, :focus-visible) {
	border-width: var(--pob-h-bw);
	border-style: var(--pob-h-bs);
	border-color: var(--pob-h-bc);
}
.peak-object.pob-h-radius:is(:hover, :focus-visible) {
	border-radius: var(--pob-h-radius);
}
.peak-object.pob-h-shadow:is(:hover, :focus-visible) {
	box-shadow: var(--pob-h-shadow);
}
.peak-object.pob-h-w:is(:hover, :focus-visible) {
	width: var(--pob-h-w);
}
.peak-object.pob-h-h:is(:hover, :focus-visible) {
	height: var(--pob-h-h);
}
.peak-object.pob-h-ff:is(:hover, :focus-visible) {
	font-family: var(--pob-h-ff);
}
.peak-object.pob-h-fs:is(:hover, :focus-visible) {
	font-size: var(--pob-h-fs);
}
.peak-object.pob-h-fw:is(:hover, :focus-visible) {
	font-weight: var(--pob-h-fw);
}
.peak-object.pob-h-lh:is(:hover, :focus-visible) {
	line-height: var(--pob-h-lh);
}
.peak-object.pob-h-ls:is(:hover, :focus-visible) {
	letter-spacing: var(--pob-h-ls);
}
.peak-object.pob-h-tt:is(:hover, :focus-visible) {
	text-transform: var(--pob-h-tt);
}
.peak-object.pob-h-tc:is(:hover, :focus-visible) {
	color: var(--pob-h-tc);
}
/* In the Icon widget the object box hugs the glyph; the wrapper's justify then
 * positions the whole box. */
.peak-icon-widget .peak-object {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Heading ------------------------------------------------------------------ */
/* Each style prop is gated behind a pkv-* flag class (added only when its var is
 * set) so an UNSET var never applies — otherwise an inherited property like
 * font-size would collapse the <h1> to the body size. */
.peak-heading__title {
	margin: 0;
	display: inline-block;
}
.peak-heading.pkv-pkh-align {
	text-align: var(--pkh-align);
}
.peak-heading.pkv-pkh-mw .peak-heading__title {
	max-width: var(--pkh-mw);
}
.peak-heading.pkv-pkh-color .peak-heading__title {
	color: var(--pkh-color);
}
.peak-heading.pkv-pkh-ff .peak-heading__title {
	font-family: var(--pkh-ff);
}
.peak-heading.pkv-pkh-fs .peak-heading__title {
	font-size: var(--pkh-fs);
}
.peak-heading.pkv-pkh-fw .peak-heading__title {
	font-weight: var(--pkh-fw);
}
.peak-heading.pkv-pkh-lh .peak-heading__title {
	line-height: var(--pkh-lh);
}
.peak-heading.pkv-pkh-ls .peak-heading__title {
	letter-spacing: var(--pkh-ls);
}
.peak-heading.pkv-pkh-tt .peak-heading__title {
	text-transform: var(--pkh-tt);
}
.peak-heading__link {
	color: inherit;
	text-decoration: none;
}

/* Text Block --------------------------------------------------------------- */
.peak-text.pkv-pkt-align {
	text-align: var(--pkt-align);
}
.peak-text.pkv-pkt-color {
	color: var(--pkt-color);
}
.peak-text.pkv-pkt-ff {
	font-family: var(--pkt-ff);
}
.peak-text.pkv-pkt-fs {
	font-size: var(--pkt-fs);
}
.peak-text.pkv-pkt-fw {
	font-weight: var(--pkt-fw);
}
.peak-text.pkv-pkt-lh {
	line-height: var(--pkt-lh);
}
.peak-text.pkv-pkt-ls {
	letter-spacing: var(--pkt-ls);
}
.peak-text.pkv-pkt-tt {
	text-transform: var(--pkt-tt);
}
.peak-text.pkv-pkt-mw {
	max-width: var(--pkt-mw);
}
.peak-text.pkv-pkt-link a {
	color: var(--pkt-link);
}

/* Rich Text ----------------------------------------------------------------
 * A prose scope. Unset, everything inherits the theme; each var is gated
 * behind its flag class like every other widget. The child rules give
 * pasted content sane rhythm on a theme that has no opinion about it. */
.peak-rich {
	max-width: 100%;
}
.peak-rich.pkv-pkr-align {
	text-align: var(--pkr-align);
}
.peak-rich.pkv-pkr-color {
	color: var(--pkr-color);
}
.peak-rich.pkv-pkr-hcolor :is(h1, h2, h3, h4, h5, h6) {
	color: var(--pkr-hcolor);
}
.peak-rich.pkv-pkr-link a {
	color: var(--pkr-link);
}
.peak-rich.pkv-pkr-ff {
	font-family: var(--pkr-ff);
}
.peak-rich.pkv-pkr-fs {
	font-size: var(--pkr-fs);
}
.peak-rich.pkv-pkr-fw {
	font-weight: var(--pkr-fw);
}
.peak-rich.pkv-pkr-lh {
	line-height: var(--pkr-lh);
}
.peak-rich.pkv-pkr-ls {
	letter-spacing: var(--pkr-ls);
}
.peak-rich.pkv-pkr-tt {
	text-transform: var(--pkr-tt);
}
.peak-rich.pkv-pkr-mw {
	max-width: var(--pkr-mw);
}
.peak-rich__body > * + * {
	margin-block-start: var(--pkr-gap, 1em);
}
.peak-rich__body > :first-child {
	margin-block-start: 0;
}
.peak-rich__body > :last-child {
	margin-block-end: 0;
}
.peak-rich__body img,
.peak-rich__body video,
.peak-rich__body iframe {
	max-width: 100%;
	height: auto;
}
.peak-rich__body figure {
	margin-inline: 0;
}
.peak-rich--dropcap .peak-rich__body > p:first-of-type::first-letter {
	float: left;
	font-size: 3.2em;
	line-height: 0.85;
	padding-right: 0.12em;
	padding-top: 0.06em;
	font-weight: 700;
}

/* Image -------------------------------------------------------------------- */
.peak-image.pkv-pki-align {
	text-align: var(--pki-align);
}
.peak-image__frame {
	position: relative;
	display: inline-block;
	overflow: hidden;
	max-width: 100%;
	vertical-align: top;
}
/* Parallax (Peak_Picture_Parallax): the picture grown in place by the
   distance it travels; peak-parallax.js moves it with its transform. */
.peak-image__frame--parallax img {
	scale: var(--pki-par-s, 1);
	will-change: transform;
}
.peak-image.pkv-pki-w .peak-image__frame {
	width: var(--pki-w);
}
.peak-image__frame img,
.peak-image img {
	display: block;
	width: 100%;
	height: auto;
}
.peak-image__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.peak-image.pkv-pki-ov .peak-image__overlay {
	background: var(--pki-ov);
}
.peak-image.pkv-pki-ov-op .peak-image__overlay {
	opacity: var(--pki-ov-op);
}
.peak-image.pkv-pki-ov-blend .peak-image__overlay {
	mix-blend-mode: var(--pki-ov-blend);
}
.peak-image__link {
	display: block;
}
.peak-image__caption {
	margin: 0;
}
.peak-image.pkv-pki-cap-gap .peak-image__caption {
	margin-top: var(--pki-cap-gap);
}
.peak-image.pkv-pki-cap-color .peak-image__caption {
	color: var(--pki-cap-color);
}
.peak-image.pkv-pki-cap-ff .peak-image__caption {
	font-family: var(--pki-cap-ff);
}
.peak-image.pkv-pki-cap-fs .peak-image__caption {
	font-size: var(--pki-cap-fs);
}
.peak-image.pkv-pki-cap-fw .peak-image__caption {
	font-weight: var(--pki-cap-fw);
}
.peak-image.pkv-pki-cap-lh .peak-image__caption {
	line-height: var(--pki-cap-lh);
}
.peak-image.pkv-pki-cap-ls .peak-image__caption {
	letter-spacing: var(--pki-cap-ls);
}
.peak-image.pkv-pki-cap-tt .peak-image__caption {
	text-transform: var(--pki-cap-tt);
}

/* Button ------------------------------------------------------------------- */
/* `.peak-button` is the wrapper (alignment + every CSS var); `.peak-btn` is the
 * button itself, shared verbatim with composite widgets via Peak_Button::render.
 * Three free styles: simple (text only), bordered (outline), background (solid).
 * Every var-driven property is gated behind its `pkv-*` flag class so an unset
 * value never overrides the theme's own button styling. */
.peak-button {
	display: flex;
	justify-content: flex-start;
}
.peak-button.pkv-pkb-align {
	justify-content: var(--pkb-align);
}
.peak-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	max-width: 100%;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: color var(--pkb-trans, .3s) ease, background-color var(--pkb-trans, .3s) ease,
		border-color var(--pkb-trans, .3s) ease, opacity var(--pkb-trans, .3s) ease;
}
/* The icon BOX. It carries the button's icon hooks (size / colour) and, when the
 * user styles it, the Object Styles `pob-*` classes + `--pob-*` vars — so a plain
 * icon and an icon in a padded, rounded, coloured chip are the same markup. */
.peak-btn__icon {
	--peak-icon-size: var(--pkb-icon-size, 1em);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--pkb-icon-color, inherit);
	flex: none;
}
.peak-button.pkv-pkb-gap .peak-btn {
	gap: var(--pkb-gap);
}
.peak-button.pkv-pkb-w .peak-btn {
	width: var(--pkb-w);
}

/* Style variants. Simple carries no box at all; bordered and background bring
 * sensible defaults so a freshly dropped button already looks like a button.
 *
 * Each names its own padding as a pair of variables rather than as literals,
 * because the four-side control below overrides ONE SIDE AT A TIME: a side
 * nobody has touched has to fall back to whatever this variant's padding is,
 * and `var(--x, <nothing>)` would drop the whole shorthand. */
.peak-btn--simple {
	--pkb-pad-y: 0px;
	--pkb-pad-x: 0px;
	padding: 0;
}
.peak-btn--bordered {
	--pkb-pad-y: .75em;
	--pkb-pad-x: 1.5em;
	padding: var(--pkb-pad-y) var(--pkb-pad-x);
	border: var(--pkb-bw, 1px) solid var(--pkb-bc, currentColor);
	background-color: transparent;
}
.peak-btn--background {
	--pkb-pad-y: .75em;
	--pkb-pad-x: 1.5em;
	padding: var(--pkb-pad-y) var(--pkb-pad-x);
	background-color: var(--pkb-bg, #161615);
	background-image: var(--pkb-bg-i, none);
	color: #fff;
}

/* Value-gated overrides. */
.peak-button.pkv-pkb-color .peak-btn {
	color: var(--pkb-color);
}
.peak-button.pkv-pkb-bg .peak-btn--background {
	background-color: var(--pkb-bg);
	background-image: var(--pkb-bg-i, none);
}
.peak-button.pkv-pkb-bc .peak-btn--bordered {
	border-color: var(--pkb-bc);
}
.peak-button.pkv-pkb-bw .peak-btn--bordered {
	border-width: var(--pkb-bw);
}
.peak-button.pkv-pkb-radius .peak-btn {
	border-radius: var(--pkb-radius);
}
/* Four sides, composed from whichever of them is set — any one flag class
   switches the shorthand on and the sides left alone fall back to the button's
   own padding. The pair this replaced (`--pkb-py` / `--pkb-px`) is read forward
   into it by the schema's `legacy` map, so nothing saved before it changes. */
.peak-button.pkv-pkb-pt .peak-btn,
.peak-button.pkv-pkb-pr .peak-btn,
.peak-button.pkv-pkb-pb .peak-btn,
.peak-button.pkv-pkb-pl .peak-btn {
	padding:
		var(--pkb-pt, var(--pkb-pad-y, 0px))
		var(--pkb-pr, var(--pkb-pad-x, 0px))
		var(--pkb-pb, var(--pkb-pad-y, 0px))
		var(--pkb-pl, var(--pkb-pad-x, 0px));
}
.peak-button.pkv-pkb-ff .peak-btn {
	font-family: var(--pkb-ff);
}
.peak-button.pkv-pkb-fs .peak-btn {
	font-size: var(--pkb-fs);
}
.peak-button.pkv-pkb-fw .peak-btn {
	font-weight: var(--pkb-fw);
}
.peak-button.pkv-pkb-lh .peak-btn {
	line-height: var(--pkb-lh);
}
.peak-button.pkv-pkb-ls .peak-btn {
	letter-spacing: var(--pkb-ls);
}
.peak-button.pkv-pkb-tt .peak-btn {
	text-transform: var(--pkb-tt);
}

@media (prefers-reduced-motion: reduce) {
	.peak-btn { transition: none; }
}

/* Spacer ------------------------------------------------------------------- */
/* Room, and a line through it when asked (Peak_Spacer). The box is the SPACE:
   its height across, its width when Vertical. Inside it, `__rule` is as long
   as Length and sits by Align; the `__line` pieces in it are the painted
   line — colour or gradient as the background, the pattern CUT by a mask
   (dashes, round dots, a double, an SVG wave/zigzag tile), Fade Ends a second
   mask intersected with it. With no line the box is empty, exactly the old
   Empty Space. */
.peak-space {
  --psp-th-v: var(--psp-th, 1px);
  --psp-g: var(--psp-gap, 6px);
  /* The two mask layers: the pattern, and the fade. Both "keep everything"
     until a style says otherwise. */
  --psp-m1: linear-gradient(#000 0 0);
  --psp-ms1: 100% 100%;
  --psp-mr1: no-repeat;
  --psp-mp1: 0 0;
  --psp-m2: linear-gradient(#000 0 0);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: var(--psp-align, center);
  width: 100%;
  height: var(--psp-space, 50px);
}
.peak-space--v {
  flex-direction: column;
  width: var(--psp-space, 50px);
  height: 100%;
  /* Vertical in a stretched row it is the row's height; on its own there is
     no height to fill, so it keeps one to be seen and grabbed by. */
  min-height: 40px;
}
.peak-space__rule {
  display: flex;
  align-items: center;
  gap: var(--psp-mark-gap, 16px);
  width: var(--psp-length, 100%);
  max-width: 100%;
  min-width: 0;
}
.peak-space--v .peak-space__rule {
  flex-direction: column;
  width: auto;
  height: var(--psp-length, 100%);
  max-height: 100%;
}
.peak-space__line {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  height: var(--psp-th-v);
  background-color: var(--psp-c, color-mix(in srgb, currentColor 22%, transparent));
  background-image: var(--psp-c-i, none);
  -webkit-mask-image: var(--psp-m1), var(--psp-m2);
  mask-image: var(--psp-m1), var(--psp-m2);
  -webkit-mask-size: var(--psp-ms1), 100% 100%;
  mask-size: var(--psp-ms1), 100% 100%;
  -webkit-mask-repeat: var(--psp-mr1), no-repeat;
  mask-repeat: var(--psp-mr1), no-repeat;
  -webkit-mask-position: var(--psp-mp1), 0 0;
  mask-position: var(--psp-mp1), 0 0;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.peak-space--v .peak-space__line {
  width: var(--psp-th-v);
  height: auto;
}

/* Dashed: a dash, a gap, repeated along the line. */
.peak-space--dashed { --psp-dsh: var(--psp-dash, 8px); }
.peak-space--dashed .peak-space__line {
  --psp-m1: repeating-linear-gradient(90deg, #000 0 var(--psp-dsh), transparent var(--psp-dsh) calc(var(--psp-dsh) + var(--psp-g)));
}
.peak-space--v.peak-space--dashed .peak-space__line {
  --psp-m1: repeating-linear-gradient(180deg, #000 0 var(--psp-dsh), transparent var(--psp-dsh) calc(var(--psp-dsh) + var(--psp-g)));
}
/* Dotted: ROUND dots as wide as the line is thick, Gap apart. */
.peak-space--dotted { --psp-th-v: var(--psp-th, 3px); --psp-g: var(--psp-gap, 5px); }
.peak-space--dotted .peak-space__line {
  --psp-m1: radial-gradient(circle closest-side, #000 calc(100% - 0.5px), transparent 100%);
  --psp-ms1: calc(var(--psp-th-v) + var(--psp-g)) var(--psp-th-v);
  --psp-mr1: repeat-x;
  --psp-mp1: 0 50%;
}
.peak-space--v.peak-space--dotted .peak-space__line {
  --psp-ms1: var(--psp-th-v) calc(var(--psp-th-v) + var(--psp-g));
  --psp-mr1: repeat-y;
  --psp-mp1: 50% 0;
}
/* Double: two lines of the Thickness, Gap apart — one mask band each side. */
.peak-space--double { --psp-g: var(--psp-gap, 3px); }
.peak-space--double .peak-space__line {
  height: calc(var(--psp-th-v) * 2 + var(--psp-g));
  --psp-m1: linear-gradient(180deg, #000 0 var(--psp-th-v), transparent var(--psp-th-v) calc(100% - var(--psp-th-v)), #000 calc(100% - var(--psp-th-v)));
}
.peak-space--v.peak-space--double .peak-space__line {
  width: calc(var(--psp-th-v) * 2 + var(--psp-g));
  height: auto;
  --psp-m1: linear-gradient(90deg, #000 0 var(--psp-th-v), transparent var(--psp-th-v) calc(100% - var(--psp-th-v)), #000 calc(100% - var(--psp-th-v)));
}
/* Wave / Zigzag: the tile Peak_Spacer::wave_vars() drew, repeated. */
.peak-space--wave .peak-space__line,
.peak-space--zigzag .peak-space__line {
  height: var(--psp-wave-h);
  --psp-m1: var(--psp-wave);
  --psp-ms1: var(--psp-wave-w) var(--psp-wave-h);
  --psp-mr1: repeat-x;
  --psp-mp1: 0 50%;
}
.peak-space--v.peak-space--wave .peak-space__line,
.peak-space--v.peak-space--zigzag .peak-space__line {
  width: var(--psp-wave-w);
  height: auto;
  --psp-mr1: repeat-y;
  --psp-mp1: 50% 0;
}
/* Fade Ends: the second mask layer, intersected with the pattern. A line
   alone fades at both ends; with a word or an icon in it, each piece fades at
   its OUTER end only. */
.peak-space--fade .peak-space__line:first-child {
  --psp-m2: linear-gradient(90deg, transparent, #000 var(--psp-fade, 30%));
}
.peak-space--fade .peak-space__line:last-child {
  --psp-m2: linear-gradient(270deg, transparent, #000 var(--psp-fade, 30%));
}
.peak-space--fade .peak-space__line:only-child {
  --psp-m2: linear-gradient(90deg, transparent, #000 var(--psp-fade, 30%), #000 calc(100% - var(--psp-fade, 30%)), transparent);
}
.peak-space--v.peak-space--fade .peak-space__line:first-child {
  --psp-m2: linear-gradient(180deg, transparent, #000 var(--psp-fade, 30%));
}
.peak-space--v.peak-space--fade .peak-space__line:last-child {
  --psp-m2: linear-gradient(0deg, transparent, #000 var(--psp-fade, 30%));
}
.peak-space--v.peak-space--fade .peak-space__line:only-child {
  --psp-m2: linear-gradient(180deg, transparent, #000 var(--psp-fade, 30%), #000 calc(100% - var(--psp-fade, 30%)), transparent);
}

/* The word or the icon in the line. Start / End: the line on that side is a
   short lead-in rather than half the line. */
.peak-space__mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: var(--psp-mark-color, inherit);
  font-family: var(--psp-mark-ff, inherit);
  font-size: var(--psp-mark-fs, inherit);
  font-weight: var(--psp-mark-fw, inherit);
  line-height: var(--psp-mark-lh, 1);
  letter-spacing: var(--psp-mark-ls, inherit);
  text-transform: var(--psp-mark-tt, none);
  white-space: nowrap;
}
.peak-space__icon { --peak-icon-size: var(--psp-icon, 20px); display: inline-flex; }
.peak-space__icon svg { width: var(--psp-icon, 20px); height: var(--psp-icon, 20px); }
.peak-space--mark-start .peak-space__line:first-child,
.peak-space--mark-end .peak-space__line:last-child {
  flex: 0 0 var(--psp-lead, 24px);
}

/* Info Box ----------------------------------------------------------------- */
/* A composite: icon/image, title, description and a Peak Button, each a LAYOUT
 * SLOT (a direct child carrying data-slot). What follows is only the sensible
 * default — the Layout Studio's compiled CSS is printed after this stylesheet
 * and wins on equal specificity, so arranging the parts there just works. */
.peak-info-box {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	box-sizing: border-box;
}
.peak-info-box > [data-slot] {
	min-width: 0;
}
/* In Peak Builder the parts are laid out by the ELEMENT's own Display, like a
 * Div Block's children (Peak_Info_Box::lays_out): the root steps out of the
 * way, so the parts are the wrapper's direct children. The column below is a
 * zero-weight default for a box saved before it had a Display of its own — a
 * fresh one is born with the same values written into its Style. The wrapper
 * anchors a background video layer the root used to. */
.pkb-el--info-box > .peak-info-box { display: contents; }
:where(.pkb-el--info-box) {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	position: relative;
}
.pkb-el--info-box:has(> .peak-info-box--bg-video) { overflow: hidden; }
/* Background layer: outside the layout flow (no data-slot), behind everything.
 * `position: relative` on the root is unconditional so the layer always anchors;
 * the Layout Studio only ever ADDS `position: relative`, never fights it. */
.peak-info-box {
	position: relative;
}
.peak-info-box--bg-video {
	overflow: hidden;
}
.peak-info-box__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	border-radius: inherit;
	opacity: var(--pkib-bg-video-op, 1);
}
.peak-info-box__bg .peak-video,
.peak-info-box__bg .peak-video__stage {
	width: 100%;
	height: 100%;
}
/* Ratio `auto` (bg_args_from_doc) would let the <video> flow at its own 16:9
   height; the media fills the box so Cover / Contain have something to fit to. */
.peak-info-box__bg .peak-video .peak-video__media {
	position: absolute;
	inset: 0;
	height: 100%;
}
/* The background's Size / Position and its play button, handed to the video
   engine's own properties (peak-video.css). */
.peak-info-box__bg {
	--peak-video-fit: var(--pkib-bg-video-fit, cover);
	--peak-video-pos: var(--pkib-bg-video-pos, 50% 50%);
}
.peak-info-box > .peak-video-toggle {
	--peak-video-toggle-offset: var(--pkib-bg-video-t-off, 16px);
	--peak-video-toggle-size: var(--pkib-bg-video-t-size, 18px);
	--peak-video-toggle-color: var(--pkib-bg-video-t-color, #fff);
}
/* Content sits above the background. Only the slots are raised, so the layer
 * itself stays at the bottom whatever order the Layout Studio gives them. */
.peak-info-box > [data-slot] {
	position: relative;
	z-index: 1;
}
.peak-info-box__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}
.peak-info-box__icon .peak-icon {
	--peak-icon-size: var(--pkib-icon-size, 40px);
	color: var(--pkib-icon-color, inherit);
}
.peak-info-box__icon--image img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: var(--pkib-img-radius, 0);
}
.peak-info-box.pkv-pkib-img-w .peak-info-box__icon--image img {
	width: var(--pkib-img-w);
}
.peak-info-box__title,
.peak-info-box__desc {
	margin: 0;
}
.peak-info-box__desc > :last-child {
	margin-bottom: 0;
}

/* Value-gated overrides. */
.peak-info-box.pkv-pkib-text-align {
	text-align: var(--pkib-text-align);
}
.peak-info-box.pkv-pkib-bg {
	background-color: var(--pkib-bg);
	background-image: var(--pkib-bg-i, none);
}
.peak-info-box.pkv-pkib-pad,
.peak-info-box.pkv-pkib-pt,
.peak-info-box.pkv-pkib-pr,
.peak-info-box.pkv-pkib-pb,
.peak-info-box.pkv-pkib-pl {
	padding:
		var(--pkib-pt, var(--pkib-pad, 0))
		var(--pkib-pr, var(--pkib-pad, 0))
		var(--pkib-pb, var(--pkib-pad, 0))
		var(--pkib-pl, var(--pkib-pad, 0));
}
.peak-info-box.pkv-pkib-radius {
	border-radius: var(--pkib-radius);
}
.peak-info-box.pkv-pkib-bw {
	border-width: var(--pkib-bw);
	border-style: solid;
	border-color: var(--pkib-bc, currentColor);
}
.peak-info-box.pkv-pkib-bc {
	border-color: var(--pkib-bc);
}
.peak-info-box.pkv-pkib-title-color .peak-info-box__title {
	color: var(--pkib-title-color);
}
.peak-info-box.pkv-pkib-title-ff .peak-info-box__title {
	font-family: var(--pkib-title-ff);
}
.peak-info-box.pkv-pkib-title-fs .peak-info-box__title {
	font-size: var(--pkib-title-fs);
}
.peak-info-box.pkv-pkib-title-fw .peak-info-box__title {
	font-weight: var(--pkib-title-fw);
}
.peak-info-box.pkv-pkib-title-lh .peak-info-box__title {
	line-height: var(--pkib-title-lh);
}
.peak-info-box.pkv-pkib-title-ls .peak-info-box__title {
	letter-spacing: var(--pkib-title-ls);
}
.peak-info-box.pkv-pkib-title-tt .peak-info-box__title {
	text-transform: var(--pkib-title-tt);
}
.peak-info-box.pkv-pkib-desc-color .peak-info-box__desc {
	color: var(--pkib-desc-color);
}
.peak-info-box.pkv-pkib-desc-ff .peak-info-box__desc {
	font-family: var(--pkib-desc-ff);
}
.peak-info-box.pkv-pkib-desc-fs .peak-info-box__desc {
	font-size: var(--pkib-desc-fs);
}
.peak-info-box.pkv-pkib-desc-fw .peak-info-box__desc {
	font-weight: var(--pkib-desc-fw);
}
.peak-info-box.pkv-pkib-desc-lh .peak-info-box__desc {
	line-height: var(--pkib-desc-lh);
}
.peak-info-box.pkv-pkib-desc-ls .peak-info-box__desc {
	letter-spacing: var(--pkib-desc-ls);
}
.peak-info-box.pkv-pkib-desc-tt .peak-info-box__desc {
	text-transform: var(--pkib-desc-tt);
}

/* Animation ---------------------------------------------------------------- */
/* Promote animated elements; the runtime clears props when it finishes. If JS
 * or the engine never loads, elements stay fully visible — animation is purely additive. */
[data-peak-animation] {
	will-change: transform, opacity;
}

/* ---- Component -------------------------------------------------------------
 * The instance itself is a bare wrapper — everything visible belongs to the
 * component it renders. Only the editor's "nothing to show yet" state needs a
 * look of its own.
 * ------------------------------------------------------------------------- */

.peak-component { display: block; }

.peak-component--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 90px;
	padding: 20px 24px;
	text-align: center;
	border: 1px dashed rgba(0, 0, 0, 0.18);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.02);
	font: 500 13px/1.5 system-ui, sans-serif;
	color: rgba(0, 0, 0, 0.55);
}

/* --- editor-only notes ---
   What a widget says INSIDE an editor when it has nothing to render yet (no
   post content, no terms). Never printed on the front end. */
.peak-editor-note {
	margin: 0;
	padding: 20px 24px;
	border: 1px dashed currentColor;
	border-radius: 6px;
	opacity: .55;
	font-size: .9em;
	line-height: 1.5;
	text-align: center;
}
