/* Quasarium public station shell. The native module content lives in public.css. */
.qs-world {
  --qs-scene: url("../scenes/assets/cinematic/projects-v1.png");
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  color: var(--qs-text);
  background: #06121e;
  isolation: isolate;
}
.qs-world[data-sector="forum"],
.qs-world[data-sector="blog"] { --qs-scene: url("../scenes/assets/cinematic/community-v1.png"); }
.qs-world::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(180deg, rgb(3 15 26 / .72), rgb(4 17 29 / .38) 38%, rgb(3 13 23 / .92)), var(--qs-scene);
  background-size: cover;
  background-position: center top;
}
.qs-world .wrap { width: min(1440px, calc(100% - 64px)); margin-inline: auto; }
.qs-skip {
  position: fixed;
  top: 12px;
  left: 18px;
  z-index: 1000;
  padding: 12px 18px;
  color: #04141e;
  background: var(--qs-accent);
  border-radius: 8px;
  transform: translateY(-160%);
}
.qs-skip:focus { transform: translateY(0); }
.qs-header { position: sticky; top:max(8px,env(safe-area-inset-top)); z-index: 20; background: linear-gradient(180deg, rgb(4 17 29 / .76), rgb(5 24 39 / .5)); }
html:has(.qs-header) { scroll-padding-top:var(--qs-header-offset,100px); }
.qs-header-main { display: flex; align-items: center; gap: 28px; min-height: 96px; padding-block: 14px; }
.qs-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--qs-text); flex: 0 0 auto; text-decoration: none; }
.qs-brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 12px rgb(103 202 255 / .2)); }
.qs-brand span { display: grid; gap: 4px; }
.qs-brand b { font-size: 18px; font-weight: 650; line-height: 1.12; letter-spacing: .045em; }
.qs-brand small { font-size: 9px; letter-spacing: .28em; color: #99bece; }
.qs-station-nav { display: flex; align-items: center; justify-content: center; gap: 5px; flex: 1 1 auto; }
.qs-station-nav a { position: relative; display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 9px; color: var(--qs-muted); font-size: 14px; line-height: 1.35; text-align: center; text-decoration: none; }
.qs-station-nav a:hover, .qs-station-nav .is-sector { color: var(--qs-text); background: rgb(101 195 234 / .075); }
.qs-station-nav .is-sector::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: linear-gradient(90deg, transparent, var(--qs-accent), transparent); }
.qs-utilities { display: flex; align-items: center; gap: 10px; flex: 0 1 auto; min-width: 0; }
.qs-language { display: flex; }
.qs-language .select { min-height: 44px; width: 64px; padding: 8px; border: 1px solid transparent; background-color: transparent; color: var(--qs-muted); border-radius: 7px; font-size: 12px; }
.qs-language .select option { background-color: var(--qs-panel-strong); color: var(--qs-text); }
.qs-account { position: relative; min-width: 0; }
.qs-account-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; max-width: 180px; box-sizing: border-box; padding: 10px 14px; list-style: none; border: 1px solid var(--qs-line); border-radius: 13px 4px 13px 4px; color: var(--qs-text); background: rgb(14 46 65 / .46); cursor: pointer; font-size: 13px; }
.qs-account-toggle::-webkit-details-marker { display: none; }
.qs-account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qs-chevron { display: block; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); flex: 0 0 auto; }
.qs-account[open] .qs-chevron { transform: translateY(2px) rotate(225deg); }
.qs-account-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 230px; max-width: calc(100vw - 28px); display: grid; padding: 8px; background: #092334; border: 1px solid var(--qs-line); border-radius: 16px 5px 16px 5px; box-shadow: 0 20px 55px rgb(0 0 0 / .42); }
.qs-account-panel a { display: flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 10px 12px; border-radius: 6px; color: var(--qs-text); line-height: 1.4; text-decoration: none; font-size: 14px; }
.qs-account-panel a:hover { background: rgb(122 232 255 / .1); }
.qs-account-panel .qs-account-exit { border-top: 1px solid rgb(135 218 247 / .18); margin-top: 5px; color: var(--qs-muted); }
.qs-sections { position:relative; flex:none; }
.qs-public-nav a[aria-current="page"] { background:#2875874f; box-shadow:inset 2px 0 #a4f1fc; color:#fff; }
.qs-sections[open] .qs-chevron { transform:translateY(2px) rotate(225deg); }
.qs-main { position: relative; min-height: 50vh; padding-block: 42px 64px; }
.qs-main:focus { outline: none; }
.qs-header :is(a, summary, select):focus-visible { outline: 2px solid var(--qs-accent); outline-offset: 4px; }
@supports (backdrop-filter: blur(10px)) { .qs-header { backdrop-filter: blur(10px); } }
@media (max-width: 1180px) {
  .qs-header-main { flex-wrap: wrap; gap: 10px 24px; min-height: 0; padding-block: 16px 10px; }
  .qs-utilities { margin-left: auto; }
  .qs-station-nav { order: 3; width: 100%; flex-basis: 100%; justify-content: flex-start; gap: 12px; }
  .qs-station-nav a { padding-inline: 10px; }
}
@media (max-width: 680px) {
  .qs-world .wrap { width: calc(100% - 32px); }
  .qs-header-main { gap: 12px 10px; }
  .qs-brand { gap: 8px; }
  .qs-brand img { width: 32px; height: 32px; }
  .qs-brand b { font-size: 15px; letter-spacing: .01em; }
  .qs-brand small { font-size: 8px; letter-spacing: .18em; }
  .qs-utilities { gap: 4px; }
  .qs-language .select { width: 52px; padding-inline: 4px; }
  .qs-account-toggle { max-width: 118px; padding-inline: 10px; gap: 8px; }
  .qs-station-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .qs-station-nav a { justify-content: center; font-size: 12px; padding: 9px 4px; }
  .qs-station-nav .is-sector::after { left: 4px; right: 4px; }
  .qs-main { padding-block: 26px 42px; }
}
@media (max-width: 390px) {
  .qs-world .wrap { width: calc(100% - 24px); }
  .qs-brand b { max-width: 95px; overflow-wrap: anywhere; }
  .qs-brand img { width: 28px; height: 28px; }
  .qs-account-toggle { max-width: 98px; font-size: 12px; }
  .qs-station-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .qs-skip, .qs-chevron { transition: none; } }
@media (forced-colors: active) {
  .qs-world::before { display: none; }
  .qs-header, .qs-account-panel { background: Canvas; color: CanvasText; border-color: CanvasText; backdrop-filter: none; }
  .qs-account-toggle { border-color: ButtonText; background: ButtonFace; color: ButtonText; }
  .qs-public-nav a[aria-current], .qs-station-nav .is-sector { outline: 1px solid LinkText; outline-offset: -2px; }
  .qs-station-nav .is-sector::after { background: LinkText; box-shadow: none; }
}
@media print {
  .qs-world::before, .qs-header, .qs-skip { display: none; }
  .qs-world { background: white; color: black; }
  .qs-world .wrap { width: 100%; }
  .qs-main { padding: 0; }
}
