/* Tinted glass: a translucent frame with a quieter surface behind long text. */
#detail { padding: 24px; }
#detail::backdrop {
  background: #08071080;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
#detail .detail-shell {
  width: min(1250px, 100%);
  background: #21182feb;
  background:
    radial-gradient(ellipse at 3% 0%, color-mix(in srgb, var(--panel) 65%, transparent), transparent 62%),
    radial-gradient(ellipse at 100% 95%, #24a8a23d, transparent 55%),
    linear-gradient(135deg, #ffffff16, transparent 42%),
    #14101ec7;
  border: 1px solid #ffffff45;
  border-radius: 30px;
  box-shadow: inset 0 1px 0 #ffffff5c, inset 0 -1px 0 #ffffff12, 0 30px 100px #0009;
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  backdrop-filter: blur(28px) saturate(145%);
  transform: none;
  overflow: hidden;
  animation: glass-panel-open .48s cubic-bezier(.16, 1, .3, 1) both;
}
#detail .detail-copy {
  transform: none;
  align-self: stretch;
  max-height: 100%;
  background: linear-gradient(125deg, #110c1e45, #110c1e18);
  padding-top: 64px;
  padding-bottom: 40px;
}
#detail .description { font-size: 16px; color: #f3eff8; }
#detail .detail-author { opacity: 1; color: #ddd7e5; }
#detail .media-scroll { transform: none; padding-top: 54px; }
#detail .tags span {
  background: #ffffff12;
  border: 1px solid #ffffff26;
  border-radius: 30px;
  padding: 7px 12px;
}
#detail .close {
  position: fixed;
  top: 36px; right: max(36px, calc((100vw - 1250px) / 2 + 14px)); left: auto;
  width: 44px; height: 44px;
  transform: none;
  border: 1px solid #ffffff50;
  border-radius: 50%;
  background: #1a142975;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 36px; line-height: 1;
  transition: background .2s, color .2s;
}
#detail .close:hover { transform: none; background: #ffffff24; color: var(--yellow); }
#detail.about-view .detail-shell {
  overflow-y: auto;
  background:
    radial-gradient(ellipse at 0% 0%, #24a8a259, transparent 48%),
    radial-gradient(ellipse at 100% 20%, #bb297457, transparent 52%),
    linear-gradient(145deg, #4e2d7c5c, #16101bc9 65%);
  background-attachment: local;
}
#detail.about-view .close { position: fixed; top: 36px; right: max(36px, calc((100vw - 1250px) / 2 + 14px)); }
#detail.about-view #media-scroll { background: transparent; }
#detail.about-view .detail-copy { background: transparent; }
.about-view .team-section { background: #100d191f; }
.about-view .team-profile {
  border: 1px solid color-mix(in srgb, var(--team-accent) 50%, #ffffff30);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--team-accent) 22%, transparent), transparent 68%),
    linear-gradient(145deg, #ffffff0d, #100b205c);
  box-shadow: inset 0 1px 0 #ffffff28, 0 12px 32px #00000014;
}
.about-view .team-role { color: color-mix(in srgb, var(--team-accent) 45%, white); }
.about-view .team-bio { color: #eee9f3; }
#navigation {
  inset: 12px 12px 12px auto;
  width: min(496px, calc(100vw - 24px));
  height: calc(100dvh - 24px);
  border: 1px solid #ffffff45;
  border-radius: 28px;
  background: radial-gradient(ellipse at 0 0, #24a8a250, transparent 65%), linear-gradient(145deg, #4e2d7cc9, #17101edd);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  backdrop-filter: blur(26px) saturate(140%);
  box-shadow: inset 0 1px 0 #ffffff40, 0 25px 90px #0008;
}
#navigation[open] { animation: glass-panel-open .4s cubic-bezier(.16, 1, .3, 1) both; }
#navigation::backdrop { background: #08071070; backdrop-filter: blur(4px); }
@keyframes glass-panel-open {
  from { opacity: 0; transform: translateY(28px) scale(.955); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 700px) {
  #detail, #detail.about-view { padding: 10px; }
  #detail .detail-shell { width: 100%; border-radius: 24px; overflow-y: auto; }
  #detail .detail-copy { padding: 66px 25px 25px; }
  #detail .media-scroll { padding: 12px 22px 38px; }
  #detail .close, #detail.about-view .close { position: fixed; top: 20px; right: 20px; }
  #detail.about-view #media-scroll { padding: 16px 24px 30px; }
  .about-view .team-profile { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #detail .detail-shell, #navigation[open] { animation: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #detail .detail-shell, #detail.about-view .detail-shell, #navigation { background-color: #21182f; }
}
