/* Candidate only: load AFTER the child theme source CSS + integration.css on the
   5 km page. Native Elementor runtime must still be compared at 1440/768/390/320.
   Only wrapper differences are addressed; approved source values are retained. */
body.ssk-2027 .ssk-site .ssk-distance-content,
body.ssk-2027 .ssk-site .ssk-distance-content :where(.e-con) {
  --container-default-padding-top:0px; --container-default-padding-right:0px;
  --container-default-padding-bottom:0px; --container-default-padding-left:0px;
  --padding-top:0px; --padding-right:0px; --padding-bottom:0px; --padding-left:0px;
  --gap:0px; --row-gap:0px; --column-gap:0px; --widgets-spacing:0px 0px;
  min-width:0;
}
body.ssk-2027 .ssk-site .ssk-distance-content { width:100%; max-width:none; padding:0; margin:0; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-flow,
body.ssk-2027 .ssk-site .ssk-distance-content.ssk-flow { display:block; }
body.ssk-2027 .ssk-site .ssk-distance-content .elementor-widget { margin:0; min-width:0; }
body.ssk-2027 .ssk-site .ssk-distance-content :is(.elementor-widget-text-editor,.elementor-heading-title) { color:inherit; font-family:inherit; }
body.ssk-2027 .ssk-site .ssk-distance-content h3.elementor-heading-title { font-weight:700; }
body.ssk-2027 .ssk-site .ssk-distance-content .elementor-widget-text-editor { font-size:inherit; line-height:inherit; font-weight:inherit; }
body.ssk-2027 .ssk-site .ssk-distance-content .elementor-widget-container { padding:0; }
/* Actual Elementor containers default to column; these approved rows do not. */
body.ssk-2027 .ssk-site .ssk-distance-content :is(.d-breadcrumb,.actions,.d-company-link,.ssk-final-wrap,.d-final-actions) { flex-direction:row; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-final-wrap > .e-con { width:auto; }
body.ssk-2027 .ssk-site .ssk-distance-content .elementor-button { letter-spacing:normal; text-transform:none; }

/* The native Image widget adds its own wrapper around the same approved photo. */
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-hero-image { position:absolute; inset:0 0 0 auto; width:72%; height:100%; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-hero-image :is(.elementor-widget-container,img) { width:100%; height:100%; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-hero-image img { object-fit:cover; object-position:center 46%; }
body.ssk-2027 .ssk-site .ssk-distance-content .d-hero-copy { z-index:1; }

/* Native widget wrappers replace direct spans and paragraphs in the source. */
body.ssk-2027 .ssk-site .ssk-distance-content .d-breadcrumb > .elementor-widget { width:auto; }
body.ssk-2027 .ssk-site .ssk-distance-content .d-breadcrumb .elementor-widget-text-editor p { margin:0; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-fact-label span { display:block; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-fact-label p { margin:0; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-fact-value .elementor-heading-title { font-size:inherit; line-height:1.1; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-fact-value strong { display:block; }
body.ssk-2027 .ssk-site .ssk-distance-content .d-overview-copy .elementor-widget-text-editor:not(:last-child) p { margin-bottom:12px; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-section-description p { margin:12px 0 0; color:#555; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-faq-intro-text p { margin:22px 0 0; line-height:1.8; color:#50564d; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-option-number { position:static; height:0; min-height:0; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-option-number .elementor-widget-container { position:static; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-option-number p { margin:0; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-final-wrap { display:flex; }
/* A single final CTA must participate in the row as the original anchor did;
   extra Elementor wrappers otherwise change shrink sizing and mobile width. */
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-final-wrap > .ssk-button,
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-final-wrap > .ssk-button :is(.elementor-widget-container,.elementor-button-wrapper) { display:contents; }

/* Elementor containers do not offer figure/figcaption tags. These native
   containers retain the original photo/caption layout and editable widgets. */
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-photo-card { position:relative; margin:0; border-radius:5px; overflow:hidden; height:auto; background:var(--ink); display:flex; flex-direction:column; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-photo-card:first-child img { object-position:50% 85%; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-photo-card:last-child img { object-position:60% 45%; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-photo-caption { position:static; padding:20px 24px 22px; color:white; background:var(--ink); flex:1; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-photo-caption span { font-size:12px; letter-spacing:1px; font-weight:800; color:var(--lime); }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-photo-caption p { margin:0; }

/* Native Button anchors are styled with the same approved .button/.line values. */
body.ssk-2027 .ssk-site .ssk-distance-content :is(.ssk-button,.ssk-text-link) { width:auto; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-button .elementor-button { display:inline-flex; justify-content:center; align-items:center; text-align:center; background:var(--lime); color:#080b00; font-size:15px; font-weight:900; font-family:inherit; padding:13px 22px; line-height:1.2; min-height:46px; border:2px solid var(--lime); border-radius:0; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-button .elementor-button:hover { background:#cce900; border-color:#cce900; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-outline .elementor-button { background:transparent; color:#fff; border-color:#fff; min-width:180px; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-outline .elementor-button:hover { background:#ffffff20; border-color:white; }
body.ssk-2027 .ssk-site .ssk-distance-content .d-hero .ssk-button .elementor-button { font-size:14px; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-text-link .elementor-button { padding:0; background:none; border:0; color:inherit; font:inherit; border-radius:0; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-line .elementor-button { font-weight:800; border-bottom:4px solid var(--lime); line-height:1.3; padding-bottom:3px; display:inline-block; }
body.ssk-2027 .ssk-site .ssk-distance-content .d-participation-grid .ssk-button { margin-top:auto; }
body.ssk-2027 .ssk-site .ssk-distance-content .d-company-link .ssk-line { white-space:nowrap; }
body.ssk-2027 .ssk-site .ssk-distance-content .d-final-actions .elementor-button { min-width:155px; }
body.ssk-2027 .ssk-site .ssk-distance-content :is(.elementor-button-wrapper,.elementor-button-content-wrapper) { line-height:inherit; }

/* Nested Accordion renders native details/summary. Keep the approved simple
   plus/minus from distance.css, first item open, and multiple open items. */
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-native-faq .e-n-accordion { gap:0; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-native-faq .e-n-accordion-item { border:0; border-bottom:1px solid #cdd0c6; border-radius:0; padding:0 0 18px; margin-bottom:18px; background:transparent; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-native-faq .e-n-accordion-item-title { padding:0; border:0; background:none; color:inherit; font-weight:800; font-size:19px; justify-content:space-between; gap:15px; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-native-faq .e-n-accordion-item-title-text { font:inherit; color:inherit; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-faq-answer { padding:0; border:0; background:none; }

/* Explicit semantic team note; original direct-child span selector cannot
   reach native Text Editor wrappers. This value was specifically approved. */
body.ssk-2027 .ssk-site .ssk-distance-content .d-facts .ssk-team-participation,
body.ssk-2027 .ssk-site .ssk-distance-content .d-facts .ssk-team-participation :is(.elementor-widget-container,p,span) { font-size:18px; font-weight:700; letter-spacing:.5px; }
@media(max-width:1000px) {
  body.ssk-2027 .ssk-site .ssk-distance-content .d-participation-grid .ssk-button .elementor-button { font-size:12px; padding:12px; }
}
@media(max-width:650px) {
  body.ssk-2027 .ssk-site .ssk-distance-content .ssk-hero-image { inset:auto 0 0; width:100%; height:270px; }
  body.ssk-2027 .ssk-site .ssk-distance-content .ssk-hero-image img { object-position:center 60%; }
  body.ssk-2027 .ssk-site .ssk-distance-content .ssk-section-description p { font-size:15px; }
  body.ssk-2027 .ssk-site .ssk-distance-content .ssk-photo-caption { padding:17px 18px 19px; }
  body.ssk-2027 .ssk-site .ssk-distance-content :is(.actions,.d-company-link,.ssk-final-wrap) { flex-direction:column; }
  body.ssk-2027 .ssk-site .ssk-distance-content .ssk-final-wrap > .d-final-actions { width:100%; }
  body.ssk-2027 .ssk-site .ssk-distance-content .ssk-final-wrap > .ssk-button .elementor-button { width:100%; }
  body.ssk-2027 .ssk-site .ssk-distance-content .actions .ssk-button .elementor-button { font-size:12px; padding:10px; min-width:0; }
  body.ssk-2027 .ssk-site .ssk-distance-content .d-hero .ssk-button,
  body.ssk-2027 .ssk-site .ssk-distance-content .d-participation-grid .ssk-button,
  body.ssk-2027 .ssk-site .ssk-distance-content .ssk-button :is(.elementor-widget-container,.elementor-button-wrapper) { width:100%; }
  body.ssk-2027 .ssk-site .ssk-distance-content .d-hero .ssk-button .elementor-button { width:100%; font-size:13px; }
  body.ssk-2027 .ssk-site .ssk-distance-content .d-participation-grid .ssk-button .elementor-button { width:100%; font-size:12px; }
  body.ssk-2027 .ssk-site .ssk-distance-content .d-final-actions .ssk-button { flex:1 1 140px; min-width:0; }
  body.ssk-2027 .ssk-site .ssk-distance-content .d-final-actions .elementor-button { width:100%; min-width:0; }
  body.ssk-2027 .ssk-site .ssk-distance-content .ssk-native-faq .e-n-accordion-item-title { font-size:17px; }
  body.ssk-2027 .ssk-site .ssk-distance-content .d-facts .ssk-team-participation,
  body.ssk-2027 .ssk-site .ssk-distance-content .d-facts .ssk-team-participation :is(.elementor-widget-container,p,span) { font-size:16px; letter-spacing:0; }
}

/* Other distances retain the approved overlay photo captions and hero crops. */
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-photo-card { display:block; height:345px; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-photo-image,
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-photo-image .elementor-widget-container { width:100%; height:100%; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-photo-image img { display:block; width:100%; height:100%; object-fit:cover; }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-photo-caption { position:absolute; inset:auto 0 0; padding:55px 24px 22px; background:linear-gradient(transparent,#08110bed); }
body.ssk-2027 .ssk-site .ssk-distance-content .ssk-hero-image img { object-position:var(--ssk-hero-position); }
body.ssk-2027.d-10km { --ssk-hero-position:center 40%; }
body.ssk-2027.d-draugi { --ssk-hero-position:50% 25%; }
body.ssk-2027.d-gimenes { --ssk-hero-position:50% 34%; }
body.ssk-2027.d-berni { --ssk-hero-position:55% 50%; }
body.ssk-2027.d-uznemumi { --ssk-hero-position:40% 35%; }
body.ssk-2027.d-gimenes .ssk-site .ssk-distance-content .ssk-hero-image { width:57%; }
@media(max-width:1000px) {
 body.ssk-2027 .ssk-site .ssk-distance-content .ssk-photo-card { height:300px; }
 body.ssk-2027.d-gimenes .ssk-site .ssk-distance-content .ssk-hero-image { width:65%; }
}
@media(max-width:650px) {
 body.ssk-2027 .ssk-site .ssk-distance-content .ssk-photo-card { height:260px; }
 body.ssk-2027 .ssk-site .ssk-distance-content .ssk-photo-caption { padding:45px 18px 18px; }
 body.ssk-2027.d-gimenes .ssk-site .ssk-distance-content .ssk-hero-image { width:100%; }
 body.ssk-2027.d-gimenes { --ssk-hero-position:50% 26%; }
}

/* Exact approved inline crops; requires the later native distance layout adapter. */
body.ssk-2027 .ssk-site .ssk-distance-10km-content .elementor-element.elementor-element-8719b45 img { object-position:50% 45%; }
body.ssk-2027 .ssk-site .ssk-distance-10km-content .elementor-element.elementor-element-90457c1 img { object-position:50% 45%; }

/* Exact approved inline crops; requires the later native distance layout adapter. */
body.ssk-2027 .ssk-site .ssk-distance-draugi-content .elementor-element.elementor-element-3911760 img { object-position:50% 35%; }
body.ssk-2027 .ssk-site .ssk-distance-draugi-content .elementor-element.elementor-element-4680e1e img { object-position:50% 30%; }

/* Exact approved inline crops; requires the later native distance layout adapter. */
body.ssk-2027 .ssk-site .ssk-distance-gimenes-content .elementor-element.elementor-element-4e12b02 img { object-position:50% 15%; }
body.ssk-2027 .ssk-site .ssk-distance-gimenes-content .elementor-element.elementor-element-a5c2f73 img { object-position:30% 65%; }

/* Exact approved inline crops; requires the later native distance layout adapter. */
body.ssk-2027 .ssk-site .ssk-distance-berni-content .elementor-element.elementor-element-24096df img { object-position:50% 35%; }
body.ssk-2027 .ssk-site .ssk-distance-berni-content .elementor-element.elementor-element-c04440a img { object-position:50% 15%; }

/* Exact approved inline crops; requires the later native distance layout adapter. */
body.ssk-2027 .ssk-site .ssk-distance-uc-content .elementor-element.elementor-element-14aa5b6 img { object-position:50% 0%; }
body.ssk-2027 .ssk-site .ssk-distance-uc-content .elementor-element.elementor-element-7b454b7 img { object-position:50% 38%; }
