/*
 * Wilder Labs Studio - utility classes (wls-utilities.css)
 * Styles the brand-kit shortcode output and a few opt-in classes. Nothing here restyles Divi modules:
 * module styling lives in the Divi presets. Needs wls-tokens.css first.
 * Short Shadow (.wls-shadow-short, finish="shadow") is always a hard offset: 0 blur, 0 spread.
 */

/* Accessibility helpers */
.wls-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.wls-skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100000;
  padding: 12px 20px;
  background: var(--wls-klein);
  color: var(--wls-white);
  font: 600 16px/1.2 var(--wls-font-sans);
  text-decoration: none;
  border-radius: var(--wls-radius-sm);
  transform: translateY(-200%);
}
.wls-skip-link:focus { transform: none; }
.wls-focus-ring:focus-visible,
.wls-logo-link:focus-visible,
.wls-btn:focus-visible,
.wls-subscribe__link:focus-visible,
.wls-studio-tag--link:focus-visible {
  outline: 2px solid var(--wls-klein);
  outline-offset: 3px;
}
.wls-ondark .wls-focus-ring:focus-visible,
.wls-subscribe--ondark .wls-subscribe__link:focus-visible,
.wls-btn--ghost-on-dark:focus-visible,
.wls-btn--volt:focus-visible { outline-color: var(--wls-volt); }

/* Type helpers */
.wls-mono { font-family: var(--wls-font-mono); }
.wls-eyebrow {
  margin: 0;
  font-family: var(--wls-font-mono);
  font-weight: 700;
  font-size: var(--wls-size-eyebrow);
  line-height: 1.4;
  letter-spacing: var(--wls-track-mono-caps);
  text-transform: uppercase;
  color: var(--wls-klein);
}
.wls-ondark .wls-eyebrow,
.wls-eyebrow--ondark { color: var(--wls-volt); }

/* Logo ([wls_logo]) */
.wls-logo { display: inline-flex; line-height: 0; vertical-align: middle; }
.wls-logo svg { display: block; height: 100%; width: auto; }
.wls-logo-link { text-decoration: none; border-radius: 2px; }

/* Header logo swap: lockup by default, W alone at 359px and below and when the header is stuck */
.wls-header-logo { display: flex; align-items: center; }
.wls-header-logo .wls-logo--mark { display: none; }
@media (max-width: 980px) {
  .wls-header-logo .wls-logo--horiz { height: 32px !important; }
}
@media (max-width: 359px) {
  .wls-header-logo .wls-logo--horiz { display: none; }
  .wls-header-logo .wls-logo--mark { display: inline-flex; }
}
.et_pb_sticky .wls-header-logo .wls-logo--horiz { display: none; }
.et_pb_sticky .wls-header-logo .wls-logo--mark { display: inline-flex; }
/* Header nav: Link modules on desktop, the Menu module (hamburger) on tablet and below */
.wls-nav-mobile { display: none !important; }
@media (max-width: 980px) {
  .wls-nav-desktop { display: none !important; }
  .wls-nav-mobile { display: block !important; }
}

/* Rules device ([wls_rule]): four spans, Volt (or Klein) short rule on top, heaviest at the bottom */
.wls-rule {
  --wls-rule-c: var(--wls-klein);
  --wls-rule-top-c: var(--wls-volt);
  --wls-rule-sh: transparent;
  --wls-r1: var(--wls-rule-1); --wls-r2: var(--wls-rule-2); --wls-r3: var(--wls-rule-3); --wls-r4: var(--wls-rule-4);
  --wls-rg: var(--wls-rule-gap);
  display: flex;
  flex-direction: column;
  gap: var(--wls-rg);
  width: var(--wls-rule-width, 100%);
  max-width: 100%;
}
.wls-rule > span { display: block; width: 100%; background: var(--wls-rule-c); }
.wls-rule > span:nth-child(1) { width: var(--wls-rule-short); height: var(--wls-r1); background: var(--wls-rule-top-c); }
.wls-rule > span:nth-child(2) { height: var(--wls-r2); }
.wls-rule > span:nth-child(3) { height: var(--wls-r3); }
.wls-rule > span:nth-child(4) { height: var(--wls-r4); }
.wls-rule--lg { --wls-r1: 2px; --wls-r2: 4px; --wls-r3: 8px; --wls-r4: 14px; --wls-rg: 6px; }
.wls-rule--md { --wls-r1: 2px; --wls-r2: 3px; --wls-r3: 6px; --wls-r4: 10px; --wls-rg: 5px; }
.wls-rule--sm { --wls-r1: 2px; --wls-r2: 3px; --wls-r3: 5px; --wls-r4: 8px; --wls-rg: 4px; }
.wls-rule--ondark { --wls-rule-c: var(--wls-klein); --wls-rule-sh: var(--wls-shadow-on-midnight); }
.wls-rule--onklein { --wls-rule-c: var(--wls-klein-deep); --wls-rule-sh: var(--wls-shadow-rule-on-klein); }
.wls-rule--onlight { --wls-rule-c: var(--wls-klein); --wls-rule-top-c: var(--wls-klein); --wls-rule-sh: var(--wls-shadow-on-white); }
.wls-rule--current { --wls-rule-c: currentColor; --wls-rule-top-c: currentColor; }
.wls-rule--top-klein { --wls-rule-top-c: var(--wls-klein); }
.wls-rule--top-none > span:nth-child(1) { visibility: hidden; }
.wls-rule--align-right > span:nth-child(1) { align-self: flex-end; }
.wls-rule--align-right { margin-left: auto; }
.wls-rule--bleed-right { width: auto; margin-right: calc(50% - 50vw); max-width: none; }
.wls-rule--bleed-left { width: auto; margin-left: calc(50% - 50vw); max-width: none; }
.wls-rule--bleed-left > span:nth-child(1) { align-self: flex-end; }
/* Short Shadow finish: per-rule hard offsets, as in the 01 shadow masters (1.5 / 2 / 3 / 6px at full size) */
.wls-rule--shadow { padding-bottom: 6px; }
.wls-rule--shadow > span:nth-child(1) { box-shadow: 1.5px 1.5px 0 0 var(--wls-rule-sh); }
.wls-rule--shadow > span:nth-child(2) { box-shadow: 2px 2px 0 0 var(--wls-rule-sh); }
.wls-rule--shadow > span:nth-child(3) { box-shadow: 3px 3px 0 0 var(--wls-rule-sh); }
.wls-rule--shadow > span:nth-child(4) { box-shadow: var(--wls-shadow-offset) var(--wls-shadow-offset) 0 0 var(--wls-rule-sh); }

/* STUDIO tag ([wls_studio_badge]): STUDIO set on a short rule */
.wls-studio-tag {
  --wls-st-c: var(--wls-ink-text);
  --wls-st-rule: var(--wls-klein);
  --wls-st-size: var(--wls-size-small);
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45em;
  font-family: var(--wls-font-mono);
  font-weight: 400;
  font-size: var(--wls-st-size);
  line-height: 1;
  letter-spacing: var(--wls-track-studio);
  text-transform: uppercase;
  color: var(--wls-st-c);
  text-decoration: none;
}
.wls-studio-tag__rule { display: block; width: 2.8em; height: 2px; background: var(--wls-st-rule); }
.wls-studio-tag--ondark { --wls-st-c: var(--wls-white); --wls-st-rule: var(--wls-volt); }
.wls-studio-tag--sm { --wls-st-size: var(--wls-size-eyebrow); }
.wls-studio-tag--lg { --wls-st-size: var(--wls-size-lead); }
.wls-studio-tag--link:hover .wls-studio-tag__rule { width: 100%; }

/* Buttons (.wls-btn) for shortcode and hand-written HTML; Divi buttons use the EL presets instead */
.wls-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font: 600 16px/1.2 var(--wls-font-sans);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--wls-radius-sm);
  background: var(--wls-klein);
  color: var(--wls-white);
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.wls-btn:hover { background: var(--wls-klein-deep); }
.wls-btn--secondary { background: var(--wls-midnight); }
.wls-btn--secondary:hover { background: var(--wls-klein); }
.wls-btn--ghost { background: transparent; border-color: var(--wls-klein); color: var(--wls-klein); }
.wls-btn--ghost:hover { background: var(--wls-klein); color: var(--wls-white); }
.wls-btn--ghost-on-dark { background: transparent; border-color: var(--wls-white); color: var(--wls-white); }
.wls-btn--ghost-on-dark:hover { background: var(--wls-white); color: var(--wls-midnight); }
.wls-btn--volt { background: var(--wls-volt); color: var(--wls-midnight); }
.wls-btn--volt:hover { background: var(--wls-white); color: var(--wls-midnight); }
.wls-btn--sm { padding: 10px 18px; font-size: 14px; }

/* Short Shadow, opt-in: hard offset in the tone for the surface, never blurred */
.wls-shadow-short,
.wls-shadow-short--on-light { box-shadow: var(--wls-shadow-offset) var(--wls-shadow-offset) 0 0 var(--wls-shadow-on-white); }
.wls-shadow-short--on-tint { box-shadow: var(--wls-shadow-offset) var(--wls-shadow-offset) 0 0 var(--wls-shadow-on-tint); }
.wls-shadow-short--on-klein { box-shadow: var(--wls-shadow-offset) var(--wls-shadow-offset) 0 0 var(--wls-shadow-on-klein); }
.wls-shadow-short--on-dark { box-shadow: var(--wls-shadow-offset) var(--wls-shadow-offset) 0 0 var(--wls-shadow-on-midnight); }

/* Subscribe row ([wls_subscribe]) */
.wls-subscribe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-family: var(--wls-font-sans); }
.wls-subscribe__label {
  font-family: var(--wls-font-mono);
  font-weight: 700;
  font-size: var(--wls-size-eyebrow);
  letter-spacing: var(--wls-track-mono-caps);
  text-transform: uppercase;
  color: var(--wls-klein);
}
.wls-subscribe__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wls-subscribe__list > li { margin: 0; padding: 0; list-style: none; }
.wls-subscribe__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wls-klein);
  font-weight: 600;
  font-size: var(--wls-size-small);
  line-height: 1.2;
  text-decoration: none;
}
.wls-subscribe__icon { width: 18px; height: 18px; flex: none; fill: currentColor; }
.wls-subscribe--chips .wls-subscribe__link {
  padding: 8px 14px;
  border: 2px solid var(--wls-klein);
  border-radius: var(--wls-radius-pill);
}
.wls-subscribe--chips .wls-subscribe__link:hover { background: var(--wls-klein); color: var(--wls-white); }
.wls-subscribe--list { flex-direction: column; align-items: flex-start; }
.wls-subscribe--list .wls-subscribe__list { flex-direction: column; gap: 10px; }
.wls-subscribe--list .wls-subscribe__link:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.wls-subscribe--icons .wls-subscribe__link {
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wls-klein);
  color: var(--wls-white);
}
.wls-subscribe--icons .wls-subscribe__link:hover { background: var(--wls-klein-deep); }
.wls-subscribe--ondark .wls-subscribe__label { color: var(--wls-volt); }
.wls-subscribe--ondark .wls-subscribe__link { color: var(--wls-white); }
.wls-subscribe--ondark.wls-subscribe--chips .wls-subscribe__link { border-color: var(--wls-white); }
.wls-subscribe--ondark.wls-subscribe--chips .wls-subscribe__link:hover { background: var(--wls-white); color: var(--wls-midnight); }
.wls-subscribe--ondark.wls-subscribe--icons .wls-subscribe__link { background: var(--wls-white); color: var(--wls-midnight); }
.wls-subscribe--ondark.wls-subscribe--icons .wls-subscribe__link:hover { background: var(--wls-volt); }

/* Episode meta ([wls_episode_meta]) */
.wls-episode-meta {
  margin: 0;
  font-family: var(--wls-font-mono);
  font-size: var(--wls-size-eyebrow);
  letter-spacing: var(--wls-track-mono-caps);
  text-transform: uppercase;
  color: var(--wls-muted);
}
.wls-episode-meta__sep { padding: 0 0.4em; }
.wls-transcript { border-top: 1px solid var(--wls-hairline-light); padding-top: 16px; }
.wls-transcript > summary { cursor: pointer; font-weight: 600; color: var(--wls-klein); }

/* Designer-only: draw the hero copy safe area over a section (add the class in the builder, remove before launch) */
.wls-safe-guides { position: relative; }
.wls-safe-guides::after {
  content: "";
  position: absolute;
  inset: 15% 50% 15% var(--wls-space-gutter);
  outline: 1px dashed var(--wls-volt);
  pointer-events: none;
}

/* Images the theme gave a width and height to (see wls_child_img_size): keep their shape when CSS changes the width */
img[data-wls-sized] { height: auto; max-width: 100%; }
