/* Shared public navigation, based on the forum. Forum selectors are never targeted. */
/* Clip horizontal overflow without turning the body into a sticky scroll container. */
body:has(> header.sp-public-header) { overflow-x: clip; }
header.sp-public-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 78px;
  margin: 0;
  padding: 10px 32px;
  color: #fff8ea;
  background: rgba(29, 34, 30, .98);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, Cantarell, Oxygen, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
header.sp-public-header *, header.sp-public-header *::before { box-sizing: border-box; }
.sp-public-identity { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sp-public-brand { display: inline-flex; align-items: center; gap: 14px; color: #fff8ea; text-decoration: none; white-space: nowrap; }
.sp-public-mark { width: 50px; height: 50px; display: inline-grid; place-items: center; border-radius: 10px; overflow: hidden; background: #05b891; }
.sp-public-mark img { display: block; width: 42px; height: 42px; object-fit: contain; }
.sp-public-name { font-size: 24px; font-weight: 900; letter-spacing: 0; }
.sp-public-links { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 1.35vw, 26px); flex: 1 1 auto; min-width: 0; }
.sp-public-links a { flex: 0 0 auto; color: rgba(255, 248, 234, .82); text-decoration: none; font-size: 17px; font-weight: 600; white-space: nowrap; padding: 0; }
.sp-public-links a:hover, .sp-public-links a[aria-current="page"] { color: #09c9a2; }
.sp-public-languages { display: flex; align-items: center; gap: 6px; padding: 5px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; background: rgba(255, 255, 255, .08); flex: 0 0 auto; }
.sp-public-languages a { min-width: 44px; padding: 14px 11px; border-radius: 8px; color: rgba(255, 248, 234, .82); text-align: center; text-decoration: none; font-size: 13px; font-weight: 900; line-height: 1.5; }
.sp-public-languages a[aria-current="page"] { background: #06b99b; color: #08110e; }
.sp-public-header a:focus-visible { outline: 2px solid #ffd65c; outline-offset: 4px; }
header.sp-public-header--home { padding-block: 5px; }
.sp-public-header--home .sp-public-mark { width: 40px; height: 40px; border-radius: 8px; }
.sp-public-header--home .sp-public-mark img { width: 34px; height: 34px; }
.sp-public-creator { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 24px; width: 100%; padding: 2px 10px; border: 1px solid #e1c45b; border-radius: 7px; color: #fff7cf; background: linear-gradient(105deg, #242817, #103d33); font-size: 12px; font-weight: 800; line-height: 1.2; white-space: nowrap; text-decoration: none; }
.sp-public-creator::before { content: "\1F381"; font-size: 12px; }
.sp-public-creator:hover { color: #fff; border-color: #09c9a2; background: #104f40; }
@media (min-width: 1401px) and (max-width: 1660px) {
  .sp-public-links { gap: 10px; }
  .sp-public-links a { font-size: 15px; }
}
@media (max-width: 1400px) {
  header.sp-public-header { align-items: center; flex-wrap: wrap; gap: 12px 18px; padding: 10px 18px; }
  .sp-public-links { order: 3; justify-content: flex-start; width: 100%; overflow-x: auto; padding: 2px 0 4px; gap: 24px; }
  .sp-public-links a { font-size: 15px; }
  .sp-public-languages { margin-left: auto; }
  header.sp-public-header--home { padding-block: 5px; row-gap: 8px; }
}
@media (max-width: 700px) {
  header.sp-public-header { min-height: auto; padding: 9px 12px; }
  .sp-public-mark { width: 42px; height: 42px; }
  .sp-public-mark img { width: 36px; height: 36px; }
  .sp-public-name { font-size: 20px; }
  .sp-public-languages { width: 100%; overflow-x: auto; margin: 0; }
  .sp-public-languages a { min-width: 42px; padding: 11px 9px; }
  header.sp-public-header--home { row-gap: 4px; padding-block: 6px; }
  .sp-public-header--home .sp-public-mark { width: 32px; height: 32px; }
  .sp-public-header--home .sp-public-mark img { width: 28px; height: 28px; }
  .sp-public-header--home .sp-public-links { padding: 0 0 2px; }
}
.sp-home-presentation { display: block; width: 100%; max-width: 100%; margin: 28px 0; }
.sp-home-presentation video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #0d1210; border: 1px solid rgba(247, 242, 232, .22); border-radius: 12px; }
.sp-home-presentation figcaption { margin-top: 9px; color: rgba(247, 242, 232, .85); font-size: 14px; line-height: 1.5; }
