/* Named frame components: all frame centers stay transparent; panel backgrounds are separate. */
.frame-brushed-brass-square {
  --frame-width: 22px;
  position: relative;
  border: var(--frame-width) solid transparent;
  border-image-source: url("assets/frames/frame-brushed-brass-square-9slice.svg");
  border-image-slice: 24 fill;
  border-image-width: var(--frame-width);
  border-image-repeat: stretch;
  background-clip: padding-box;
}

/* Catalog variants. The plaque has its own opaque brass face; frame-only variants are transparent. */
.frame-plaque-brushed-brass-oak {
  --frame-width: 32px;
  position: relative;
  border: var(--frame-width) solid transparent;
  border-image-source: url("assets/frames/plaque-brushed-brass-oak-9slice.svg");
  border-image-slice: 58 fill;
  border-image-width: var(--frame-width);
  border-image-repeat: stretch;
}
.frame-brushed-brass-screws {
  --frame-width: 22px;
  position: relative;
  border: var(--frame-width) solid transparent;
  border-image-source: url("assets/frames/frame-brushed-brass-screws-9slice.svg");
  border-image-slice: 24 fill;
  border-image-width: var(--frame-width);
  border-image-repeat: stretch;
}
.frame-brushed-brass-screws-oak-diagonal {
  --frame-width: 28px;
  position: relative;
  border: var(--frame-width) solid transparent;
  border-image-source: url("assets/frames/frame-brushed-brass-screws-oak-diagonal-9slice.svg");
  border-image-slice: 60 fill;
  border-image-width: var(--frame-width);
  border-image-repeat: stretch;
}

/* Square icon artwork is clipped to a circle; the independent frame overlay remains transparent. */
.icon-frame-brushed-brass-circle {
  --icon-size: 64px;
  position: relative;
  display: inline-grid;
  width: var(--icon-size);
  height: var(--icon-size);
  flex: 0 0 var(--icon-size);
  place-items: center;
  isolation: isolate;
}
.icon-frame-brushed-brass-circle > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  clip-path: circle(43% at 50% 50%);
}
.icon-frame-brushed-brass-circle::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: center / 100% 100% no-repeat url("assets/frames/frame-brushed-brass-circle.svg");
}

/* Nine-slice version for square icon tiles. */
.icon-frame-brushed-brass-square {
  --icon-size: 64px;
  --icon-frame-border: 8px;
  position: relative;
  display: inline-grid;
  width: var(--icon-size);
  height: var(--icon-size);
  flex: 0 0 var(--icon-size);
  place-items: center;
  border: var(--icon-frame-border) solid transparent;
  border-image-source: url("assets/frames/frame-brushed-brass-square-9slice.svg");
  border-image-slice: 24 fill;
  border-image-width: var(--icon-frame-border);
  border-image-repeat: stretch;
}
.icon-frame-brushed-brass-square > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Atlas coordinates are zero-based: --icon-col: 0 through 9; --icon-row: 0 through 49. */
.abide-atlas-icon {
  --icon-col: 0;
  --icon-row: 0;
  display: inline-block;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  background-image: url("assets/atlas/abide-icons.png?v=20261108-4");
  background-repeat: no-repeat;
  background-position: calc(var(--icon-col) * -64px) calc(var(--icon-row) * -64px);
}

@media (max-width: 600px) {
  .frame-brushed-brass-square { --frame-width: 16px; }
  .frame-plaque-brushed-brass-oak { --frame-width: 22px; }
  .frame-brushed-brass-screws,
  .frame-brushed-brass-screws-oak-diagonal { --frame-width: 18px; }
}
