/* Test-only adapter for the unchanged shared header/footer.
 * Existing production files and Elementor settings remain untouched.
 * Important is limited to the isolated widths/edges that existing rules override.
 */
@media (width > 767px) {
  body.page-id-11828.rl-has-breadcrumbs-7218 {
    --rl-bc-menu-start: var(--rl-test-side);
    --rl-bc-menu-end: var(--rl-test-side);
    --rl-breadcrumb-left-7218: var(--rl-test-side) !important;
    --rl-breadcrumb-right-7218: var(--rl-test-side) !important;
  }

  /* Keep header/nav variables separate from the tablet content inset. */
  body.page-id-11828 .rl-breadcrumbs-7218 {
    --rl-breadcrumb-left-7218: var(--rl-test-content-side) !important;
    --rl-breadcrumb-right-7218: var(--rl-test-content-side) !important;
  }

  body.page-id-11828 .elementor-location-header [data-id="66e45619"] {
    width: var(--rl-test-logo) !important;
    min-width: var(--rl-test-logo-min);
    max-width: none;
  }

  /* Approved 30.11.2026: date follows the navigation edge, including
     the separate 140px tablet nav edge. Phone stays unchanged. */
  body.page-id-11828 .elementor-location-header [data-id="d3a7ee2a"] {
    inset-inline-start: var(--rl-test-side);
  }

  body.page-id-11828 .elementor-location-header [data-id="4b05fba9"] {
    padding-inline: var(--rl-test-side) !important;
  }

  /* The small border at the final top-link placeholder is the right B edge.
     The WPML flag remains in its existing absolutely positioned slot. */
  body.page-id-11828 .elementor-location-header [data-id="1af218fa"] {
    padding-inline-start: var(--rl-test-side);
    padding-inline-end: calc(var(--rl-test-content-side) - var(--rl-test-top-placeholder)) !important;
  }
  body.page-id-11828 .elementor-location-header [data-id="4fd648ba"] {
    inset-inline-start: 0;
  }
}

/* Tablet placeholder has 6px less native inner padding than desktop. */
@media (width > 767px) and (max-width: 1024px) {
  body.page-id-11828 { --rl-test-top-placeholder: 13.5125px; }
}

/* Approved tablet exception: footer <= 1024px keeps its existing width.
   The tablet content edge is therefore independent of the Facebook icon. */
@media (min-width: 1025px) {
  body.page-id-11828 footer.elementor-197 > [data-id="59b2fd74"] {
    padding-inline-start: var(--rl-test-side) !important;
    padding-inline-end: calc(var(--rl-test-side) - var(--rl-test-facebook-overhang)) !important;
  }
}
