/* Loaded only by public static pages; excluded from the licence portal and forum.
   Preserve the payment section, all content, forms and the existing compact exceptions. */
body > main > .section:not(#paiement):not(.section--payment) {
  padding-top: 56px;
  padding-bottom: 56px;
}
body > main > :is(#affichage-dynamique-windows, #demo-video, #youtube-live-zowiebox, #guides-streamerpro, #support) {
  padding-top: 40px;
  padding-bottom: 40px;
}
body > main > #cout-local-vs-cloud { padding-top: 40px; padding-bottom: 36px; }
body > main > #sourceforge { padding-top: 40px; padding-bottom: 40px; }
body > main > #questions-streamerpro { padding-top: 32px; padding-bottom: 32px; }
.seo-hero > .seo-hero__inner { padding-top: 48px; padding-bottom: 40px; }
.seo-hero .seo-breadcrumb { margin-bottom: 16px; }
@media (max-width: 760px) {
  body > main > .section:not(#paiement):not(.section--payment) {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  body > main > :is(#affichage-dynamique-windows, #cout-local-vs-cloud, #demo-video, #youtube-live-zowiebox, #guides-streamerpro, #support, #sourceforge, #questions-streamerpro) {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .seo-hero > .seo-hero__inner { padding-top: 32px; padding-bottom: 28px; }
}

/* Public static pages only. Keep the original desktop navigation intact. */
.sp-mobile-menu { display: none; }
@media (max-width: 700px) {
  header.sp-public-header { gap: 4px 12px; padding: 8px 12px; }
  header.sp-public-header--home { padding-block: 6px; }
  header.sp-public-header > .sp-public-links { display: none; }
  header.sp-public-header > .sp-public-identity { flex: 0 1 auto; min-width: 0; }
  header.sp-public-header--home > .sp-public-identity { gap: 2px; }
  .sp-public-header--home .sp-public-creator { height: 22px; padding-block: 1px; }
  .sp-mobile-menu { display: block; order: 2; margin-left: auto; }
  .sp-mobile-menu > summary {
    display: flex; align-items: center; justify-content: center;
    min-width: 80px; min-height: 44px; padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.3); border-radius: 8px;
    color: #fff8ea; background: #243b32; cursor: pointer;
    font-size: 15px; font-weight: 700; list-style: none;
  }
  .sp-mobile-menu > summary::-webkit-details-marker { display: none; }
  .sp-mobile-menu > summary:focus-visible { outline: 2px solid #ffd65c; outline-offset: 3px; }
  header.sp-public-header > .sp-public-languages {
    order: 3; flex: 1 0 100%; width: 100%; padding: 1px; gap: 2px;
    margin: 0; overflow: visible;
  }
  .sp-public-languages a {
    display: flex; align-items: center; justify-content: center;
    flex: 1 1 0; min-width: 44px; min-height: 44px;
    padding: 6px; font-size: 13px;
  }
  .sp-mobile-menu[open] > .sp-mobile-menu__links {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
    position: absolute; top: calc(100% + 6px); left: 12px; right: 12px;
    width: auto; margin: 0; padding: 10px; gap: 4px;
    max-height: calc(100vh - 150px); overflow-y: auto; overflow-x: hidden;
    background: #1d2d25; border: 1px solid rgba(255,255,255,.3);
    border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.25);
  }
  .sp-mobile-menu__links a {
    display: flex; align-items: center; min-height: 44px;
    min-width: 0; padding: 8px 10px; white-space: normal;
    line-height: 1.35; font-size: 14px;
  }
}

