/* Shared presentation refinements across the Aliot constellation.
   Product artwork stays intact; stellar surfaces have no artificial black rim. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
:root { --aliot-font: "Space Grotesk", Arial, sans-serif; --aliot-blue: #98c9ff; --aliot-amber: #efba72; --aliot-violet: #b4a0ed; --aliot-teal: #79cbbb; }
:root[data-theme="light"] { --wordmark-filter: invert(1) hue-rotate(180deg); }
.family-header {
  color-scheme: dark;
  background: #050608;
  --ink: #eef3fc;
  --muted: #b5bfce;
  --quiet: #8996ac;
  --line: #354154;
  --surface: #101620;
  --surface2: #1b2533;
  --accent: #98c9ff;
  --blue: #2562d7;
  --violet: #b4a0ed;
  --wordmark-filter: none;
  color: var(--ink);
}
.product-header {
  position: sticky;
  top: 0;
  --product-label-size: 14px;
  --product-icon-size: 36px;
  --product-wordmark-size: 25px;
  z-index: 20;
  border-bottom: 1px solid #26303c;
  box-shadow: 0 6px 16px -8px rgb(4 10 20 / 38%);
}
:root:has(.product-header) { scroll-padding-top: 88px; }
.skip:focus { z-index: 50; }
.product-header-inner {
  box-sizing: border-box;
  display: grid;
  grid-template-areas: "brand action nav theme";
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(12px, 2.2vw, 32px);
  min-height: 76px;
  gap: clamp(18px, 2vw, 32px);
}
.product-brand {
  grid-area: brand;
  display: inline-grid;
  grid-template-columns: var(--product-icon-size) auto auto auto;
  align-items: center;
  justify-self: start;
  gap: 10px;
  white-space: nowrap;
  font: 450 var(--product-label-size)/1.4 var(--aliot-font);
}
.product-brand img { grid-column: 1; display: block; width: var(--product-icon-size); height: var(--product-icon-size); margin: 0; }
.product-brand .aliot-wordmark { grid-column: 2; font-size: var(--product-wordmark-size); }
.product-divider { margin-inline: 4px; color: var(--quiet); font-size: 24px; font-weight: 300; line-height: 1; }
.product-title { color: var(--muted); }
.product-header-inner > .theme-toggle { grid-area: theme; justify-self: end; }
.product-header .product-action {
  grid-area: action;
  justify-self: start;
  gap: 12px;
  border-radius: 7px;
  padding: 9px 14px;
  font: 600 var(--product-label-size)/1.4 var(--aliot-font);
}
.product-action > svg { width: 15px; height: 15px; }
.product-links {
  grid-area: nav;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 24px);
  font: 450 var(--product-label-size)/1.4 var(--aliot-font);
  color: var(--muted);
}
.product-links details { position: relative; }
.product-links > a, .product-links summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}
.product-links summary { cursor: pointer; list-style: none; gap: 7px; }
.product-links summary::-webkit-details-marker { display: none; }
.product-links summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: translateY(-2px) rotate(45deg);
}
.product-links details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.product-links :is(a, summary):hover,
.product-links :is([aria-current="page"], .current, details[open] summary) { color: var(--ink); }
.product-links :is(a, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.product-links .family-home::before {
  content: "";
  height: 16px;
  border-left: 1px solid var(--line);
  margin-right: clamp(12px, 1.5vw, 24px);
}
.product-menu-panel {
  position: absolute;
  z-index: 1;
  top: 100%;
  left: -17px;
  width: max-content;
  min-width: 175px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgb(0 0 0 / 24%);
}
.product-menu-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px;
  border-radius: 4px;
  font-size: 13px;
}
.product-menu-panel a:hover, .product-menu-panel a:focus-visible { background: var(--surface2); }
@media (max-width: 920px) {
  :root:has(.product-header) { scroll-padding-top: 108px; }
  .product-header-inner {
    grid-template-areas: "brand action theme" "nav nav nav";
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: minmax(44px, auto) auto;
    row-gap: 0;
    padding-top: 6px;
  }
  .product-header .product-action { justify-self: end; }
  .product-links {
    justify-content: flex-end;
  }
}
@media (max-width: 560px) {
  .product-header { --product-label-size: 12px; --product-icon-size: 26px; --product-wordmark-size: 21px; }
  .product-header-inner { column-gap: 8px; }
  .product-brand { gap: 6px; }
  .product-divider { margin-inline: 0; font-size: 20px; }
  .product-links { flex-wrap: wrap; gap: 0 12px; }
  .product-links summary { gap: 5px; }
  .product-links .family-home::before { margin-right: 6px; height: 13px; }
  .product-header .product-action { padding: 6px; text-align: center; text-wrap: balance; }
  .product-action > svg { display: none; }
}
@media (max-width: 360px) {
  .product-header { --product-icon-size: 22px; --product-wordmark-size: 19px; }
  .product-header-inner { column-gap: 5px; }
  .product-brand { gap: 4px; }
  .product-header .product-action { padding-block: 4px; }
}
.aliot-wordmark {
  display: inline-block;
  white-space: nowrap;
  font: 450 1em/1 var(--aliot-font);
  letter-spacing: .105em;
  vertical-align: baseline;
}
.aliot-wordmark i {
  position: relative;
  display: inline-block;
  width: 1.05cap;
  height: 1cap;
  vertical-align: baseline;
  margin-right: .105em;
}
.aliot-wordmark i::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  /* The luminous rim occupies 315 of the artwork's 640 units. */
  width: 2.03cap;
  height: 2.03cap;
  transform: translate(-50%, -50%) rotate(-22deg);
  background: center / contain no-repeat url("/assets/aliot-ring.svg#wordmark");
  filter: var(--wordmark-filter, none);
}
.motion-paused .aliot-wordmark i::before { background-image: url("/assets/aliot-ring.svg#still"); }
.brand > .aliot-wordmark { font-size: 25px; }
.live-star .stellar-core { background: transparent; border: 0; box-shadow: none; }
.live-star { mix-blend-mode: screen; }
:root:not([data-theme="light"]) .stellar-body,
:root:not([data-theme="light"]) .stellar-corona { mix-blend-mode: screen; }
.stellar-rim { border: 0; box-shadow: none; background: transparent; }
.site-header nav a[aria-current="page"], .header .nav a[aria-current="page"] { color: var(--ink, #edf4ff); }
.site-header nav a:hover, .header .nav a:hover { color: var(--ink, #fff); }
/* The home identity is a singularity. The product family shares stellar texture. */
.brand-star[src*="aliot-site-icon-void."] { animation: aliot-void-spin 30s linear infinite; animation-play-state: paused; }
.brand-star[src*="aliot-site-icon-void."].in-view { animation-play-state: running; }
@keyframes aliot-void-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand-star[src*="aliot-site-icon-void."] { animation: none !important; }
}
