/* slk-clinic's own fixes, linked after every generated stylesheet (public/css is css-isolate output and is never
   edited by hand). Listed in lib/captive/section-preview-css.ts (PREVIEW_EXTRA_STYLESHEETS) so the Studio's section
   thumbnails get them too. */

/* Header, desktop row (.elementor-element-55774b3d), 2026-11-18. The original pushed the menu down with a 3% top
   padding on the nav widget and the Book column down with a 26% top padding, so the logo sat higher than both. The
   row already centers its columns (align-items: center): without the paddings, logo, menu and Book button share
   one centerline. */
.elementor-34 .elementor-element.elementor-element-feea1a1 > .elementor-widget-container { padding-top: 0; }
.elementor-34 .elementor-element.elementor-element-fff663f > .elementor-element-populated { padding-top: 0; }

/* Optical centering of the same row (2026-11-18, after the merged row went live). The boxes were centered, the
   letters were not: in the logo PNG the "l" spans the whole image but the "s" and "k" fill only its lower two
   thirds (rows 180 to 540 of 545), so the mark read about 6px low; the menu's caps sit 4px above their line box's
   center. Nudges only, nothing else moves: the logo up 6px, the menu text down 4px. */
.elementor-34 .elementor-element.elementor-element-9c07f5e img { position: relative; top: -6px; }
.elementor-34 .elementor-element.elementor-element-feea1a1 .wpr-nav-menu-container > .wpr-nav-menu { position: relative; top: 4px; }

/* Home, "Find your solution" photo cards, 2026-11-18. The original sets each card's photo with fixed offsets and
   sizes that run out before the card's edge at some widths, leaving white strips. max(..., 100%) keeps the original
   framing but never moves the photo past its edge (as a background-position, 100% = card width minus photo width).
   No gaps at any width from 360 to 1920px. */

/* Skin Rejuvenation (column acda2a6): shifted -110px (desktop) / -181px (<=1026px), more than the cover-sized photo
   overflows, so a strip showed on the right above 920px. Phones keep the original 0 0. */
body[data-route="/"] .elementor-77 .elementor-element.elementor-element-acda2a6 > .elementor-widget-wrap {
  background-position: max(-110px, 100%) 0px;
}
@media (max-width: 1026px) {
  body[data-route="/"] .elementor-77 .elementor-element.elementor-element-acda2a6 > .elementor-widget-wrap {
    background-position: max(-181px, 100%) 0px;
  }
}
@media (max-width: 767px) {
  body[data-route="/"] .elementor-77 .elementor-element.elementor-element-acda2a6 > .elementor-widget-wrap {
    background-position: 0px 0px;
  }
}

/* Acne (column 13b0e9a and its phone-only copy 1e64646, same CSS). Desktop: the square photo at 140% width is
   shorter than the 420px card below a 300px-wide card (a strip at the bottom around 1080px), so it is at least 420px
   wide. <=1026px: a 341px-wide photo shifted -110px left a strip on the right once the card passed 231px (on phones,
   341px: up to ~200px at 420-760px). The photo is never narrower than the card or shifted past its right edge. */
body[data-route="/"] .elementor-77 .elementor-element:is(.elementor-element-13b0e9a, .elementor-element-1e64646) > .elementor-widget-wrap {
  background-size: max(140%, 420px) auto;
  background-position: max(-55px, 100%) 0px;
}
@media (max-width: 1026px) {
  body[data-route="/"] .elementor-77 .elementor-element:is(.elementor-element-13b0e9a, .elementor-element-1e64646) > .elementor-widget-wrap {
    background-size: max(341px, 100%) auto;
    background-position: max(-110px, 100%) -10px;
  }
}
@media (max-width: 767px) {
  body[data-route="/"] .elementor-77 .elementor-element:is(.elementor-element-13b0e9a, .elementor-element-1e64646) > .elementor-widget-wrap {
    background-position: 0px 0px;
  }
}
