/* Docs, status and admin: the app's glass and light on reading pages. */

body {
  background:
    radial-gradient(900px 520px at 92% -12%, rgba(249, 115, 22, .14), transparent 62%),
    radial-gradient(820px 520px at -12% 112%, rgba(0, 82, 255, .14), transparent 62%),
    var(--void) !important;
  background-attachment: fixed !important;
}

.sitehead {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 7, 11, .7);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.sitehead__action {
  border: 0 !important; border-radius: 999px !important; padding: 8px 14px !important;
  background: linear-gradient(135deg, #f97316, #ea580c) !important; color: #fff !important;
  font-weight: 700; box-shadow: 0 6px 18px rgba(249, 115, 22, .3);
}

/* Glass surfaces */
.honesty, .banner, .rows, .gate__card, .scroll {
  background: rgba(255, 255, 255, .035) !important;
  border: 1px solid rgba(255, 255, 255, .09) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.honesty { border-left: 3px solid #f97316 !important; padding: 14px 16px !important; }
.scroll { padding: 4px 6px; }
.scroll table { margin: 0; }

/* Docs: a sticky contents menu beside a centred reading column on wide screens. */
.toc a { background: rgba(255, 255, 255, .03); transition: border-color .15s ease, color .15s ease; }
h2 { scroll-margin-top: 84px; }
@media (min-width: 1100px) {
  .wrap:has(> .toc) {
    max-width: 1120px;
    display: grid;
    grid-template-columns: 210px minmax(0, 760px);
    column-gap: 64px;
    justify-content: center;
  }
  .wrap:has(> .toc) > * { grid-column: 2; }
  .wrap:has(> .toc) > .toc {
    grid-column: 1; grid-row: 1 / span 400;
    position: sticky; top: 92px; align-self: start;
    flex-direction: column; gap: 4px; margin-top: 8px;
    padding: 12px; border-radius: 16px;
    background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07);
  }
  .wrap:has(> .toc) > .toc a { border: 0; border-radius: 10px; padding: 7px 10px; background: transparent; }
  .wrap:has(> .toc) > .toc a:hover { background: rgba(249, 115, 22, .1); color: #fb923c; }
}

/* Status */
.banner { padding: 18px 20px !important; }
.rows { overflow: hidden; }
.row { border-bottom-color: rgba(255, 255, 255, .06) !important; }

/* Admin sign-in */
.gate__card { padding: 26px !important; }
.gate__go {
  border: 0 !important; border-radius: 12px !important; min-height: 48px;
  background: linear-gradient(135deg, #f97316, #ea580c) !important; color: #fff !important;
  box-shadow: 0 10px 24px -10px rgba(249, 115, 22, .7);
}
.gate__field input { border-radius: 12px !important; }
