/* Supermarathon Layout-Test, page 11828 only.
 * Central edit point. Units: a-share %, logo/gap minimum px, gap-share % of A.
 * B and C are derived; do not add independent widths.
 * Minimum sizes take precedence over the 14 / 72 / 14 ratio.
 * Phone <= 767px receives no new layout declarations.
 */
@media (width > 767px) {
  body.page-id-11828 {
    --rl-test-a-share: 14;
    --rl-test-logo-min: 120px;
    --rl-test-gap-min: 20px;
    --rl-test-gap-share: 10;

    --rl-test-side: max(
      calc(100vw * var(--rl-test-a-share) / 100),
      calc(var(--rl-test-logo-min) + var(--rl-test-gap-min)),
      calc(var(--rl-test-logo-min) / (1 - var(--rl-test-gap-share) / 100))
    );
    --rl-test-gap: max(var(--rl-test-gap-min), calc(var(--rl-test-side) * var(--rl-test-gap-share) / 100));
    --rl-test-logo: calc(var(--rl-test-side) - var(--rl-test-gap));
    --rl-test-content-side: var(--rl-test-side);

    /* Existing alignment offsets, measured from the unchanged shared templates. */
    --rl-test-top-placeholder: 19.5125px;
    --rl-test-facebook-overhang: 12.5px;
  }
}

/* Approved 30.11.2026: independent Tablet layout, width-based, not orientation.
   Navigation stays beside the fixed logo; content begins below it.
   The existing breadcrumb top reservation already clears the 120px logo. */
@media (width > 767px) and (max-width: 1024px) {
  body.page-id-11828 {
    --rl-test-tablet-inset: 30px;
    --rl-test-tablet-logo: 120px;
    --rl-test-logo-min: var(--rl-test-tablet-logo);
    --rl-test-side: calc(var(--rl-test-tablet-logo) + var(--rl-test-gap-min));
    --rl-test-gap: var(--rl-test-gap-min);
    --rl-test-logo: var(--rl-test-tablet-logo);
    --rl-test-content-side: var(--rl-test-tablet-inset);
  }
}
