/* BRICK182_FULL_SITE: ornate fixed-piece sidebar frames.
   No stretched bitmap frames, no change to inner controls or item cards.
   All border sprites are cropped from the approved sidebar design.
*/
:root {
  --vault182-border-gold: #ad8039;
}
/* Five existing containers: left Search & Filters and four right rail panels. */
.layout > aside.sidebar,
.layout > aside.market-rail > .market-widget,
.vault182-frame {
  position: relative !important;
  isolation: isolate;
  box-sizing: border-box;
  border: 1px solid #9b6c30 !important;
  border-image: none !important;
  border-radius: 0 !important;
  box-shadow: inset 0 0 0 1px #e1b15b2b, 0 7px 23px #000b !important;
  min-width: 0;
}
/* Make internal space for the ornaments without moving existing controls out
   of their normal document flow. Pseudo-layer never receives pointer events. */
.layout > aside.sidebar { padding: 32px 21px 34px !important; }
.layout > aside.market-rail > .market-widget { padding: 30px 19px 34px !important; }
.vault182-frame { padding: 33px 27px 36px; }
/* Retire the old decorative ✦ above the filter panel. */
.layout > aside.sidebar::before { content: none !important; }
.layout > aside.sidebar::after,
.layout > aside.market-rail > .market-widget::after,
.vault182-frame::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: -2px !important;
  z-index: 3 !important;
  pointer-events: none !important;
  border: 0 !important;
  opacity: 1 !important;
  background-color: transparent !important;
  background-image:
    url("../assets/vault182-sidebars/corner-tl.png"),
    url("../assets/vault182-sidebars/corner-tr.png"),
    url("../assets/vault182-sidebars/corner-bl.png"),
    url("../assets/vault182-sidebars/corner-br.png"),
    url("../assets/vault182-sidebars/diamond-top.png"),
    url("../assets/vault182-sidebars/diamond-bottom.png"),
    url("../assets/vault182-sidebars/edge-top.png"),
    url("../assets/vault182-sidebars/edge-bottom.png"),
    url("../assets/vault182-sidebars/edge-left.png"),
    url("../assets/vault182-sidebars/edge-right.png") !important;
  background-position:
    left top,
    right top,
    left bottom,
    right bottom,
    center top,
    center bottom,
    center top,
    center bottom,
    left center,
    right center !important;
  background-size:
    50px 50px,
    50px 50px,
    50px 50px,
    50px 50px,
    35px 25px,
    35px 25px,
    auto 7px,
    auto 8px,
    7px auto,
    7px auto !important;
  background-repeat:
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat,
    no-repeat,
    repeat-x,
    repeat-x,
    repeat-y,
    repeat-y !important;
}
/* Keep all copy and controls above the panel background; don't create
   a decorative stacking layer that can intercept an input or button. */
.layout > aside.sidebar > *,
.layout > aside.market-rail > .market-widget > *,
.vault182-frame > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}
/* Ensure panel headings and interactive widgets have clear internal spacing. */
.layout > aside.sidebar > h2,
.layout > aside.market-rail > .market-widget > h3 {
  margin-top: 0 !important;
  padding-bottom: 11px;
}
.layout > aside.sidebar input,
.layout > aside.sidebar select,
.layout > aside.market-rail button,
.layout > aside.market-rail input {
  max-width: 100%;
}
@media (max-width: 1100px) {
  .layout > aside.sidebar { padding-left: 17px !important; padding-right: 17px !important; }
  .layout > aside.market-rail > .market-widget { padding-left: 16px !important; padding-right: 16px !important; }
}
@media (max-width: 450px) {
  .layout > aside.sidebar,
  .layout > aside.market-rail > .market-widget { padding: 31px 18px 33px !important; }
  .vault182-frame { padding: 32px 20px 34px; }
}
