/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 * Copyright © 2026 Marcel Rymenhout and IniqDash contributors */
/* IniqLook — a layout surface's appearance (components/look/look.js). The layers sit BEHIND the surface's content
   (isolation + z-index -1), share its corners and never take pointer events. */
.iq-look {
  position: relative;
  isolation: isolate;
  border-radius: var(--lk-radius, var(--lk-r0, 0px));
  box-shadow: var(--lk-shadow, none);
  font-family: var(--lk-font, inherit);
  font-weight: var(--lk-fweight, inherit);
}
.iq-look::after {                                  /* the border is drawn over the layers, inside the edge */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  border: var(--lk-border, 0 solid transparent);
}
.iq-look__l { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; }
.iq-look__l[hidden] { display: none; }
.iq-look__img { background-repeat: no-repeat; }
.iq-look__img, .iq-look__ov { overflow: hidden; }
.iq-look__sheen { background: linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .06) 22%, rgba(255, 255, 255, 0) 48%); mix-blend-mode: screen; }
.iq-look--edge::before {                          /* a glass edge: a thin light rim, brighter at the top */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .09);
}
/* the surface's own text (titles, navigation, headings) */
.iq-look { color: var(--lk-text, var(--text-primary)); }
.iq-look--text { --text-primary: var(--lk-text, var(--text-primary)); --text-secondary: var(--lk-muted, var(--text-secondary)); --text-muted: var(--lk-muted, var(--text-muted)); --accent: var(--lk-accent, var(--accent)); }
/* no backdrop blur in this browser: a glass surface keeps its text readable with an (almost) opaque tint */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .iq-look--glass > .iq-look__paint { opacity: var(--lk-fallback-a, .9) !important; }
}
