/* ===== Eyewitnesses Editorial Archive & Reader (_bss_core/css/bss-witness.css) ===== */

@property --bsw-fade-start{
  syntax:"<length>";
  inherits:false;
  initial-value:0px;
}
@property --bsw-fade-end{
  syntax:"<length>";
  inherits:false;
  initial-value:0px;
}

@keyframes bsw-reveal-fade-start{
  to{ --bsw-fade-start:var(--bsw-fade-size); }
}
@keyframes bsw-hide-fade-end{
  from{ --bsw-fade-end:var(--bsw-fade-size); }
}
@keyframes bsw-read-progress{
  from{ transform:scaleX(0); }
  to{ transform:scaleX(1); }
}
@keyframes bsw-card-enter{
  from{ opacity:0; transform:translateY(18px) scale(.985); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}
@keyframes bsw-slide-in{
  from{ opacity:0; transform:translateX(12px); }
  to{ opacity:1; transform:translateX(0); }
}

html.bsw-light-doc,
html.bsw-light-doc body,
html.bsw-light-doc .content{
  background:#FAF8F4!important;
}
html.bsw-sepia-doc,
html.bsw-sepia-doc body,
html.bsw-sepia-doc .content{
  background:#F4EDE0!important;
}
html.bsw-dark-doc,
html.bsw-dark-doc body,
html.bsw-dark-doc .content{
  background:#121418!important;
}

.bsw-sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

/* Warm Editorial Ivory Default Tokens */
.bsw-root{
  --w-bg:#FAF8F4;
  --w-card:#FFFFFF;
  --w-surface:#F2EDE3;
  --w-surface-2:#E8DFCE;
  --w-ink:#1D1B18;
  --w-muted:#655D52;
  --w-line:rgba(29,27,24,.11);
  --w-line-strong:rgba(29,27,24,.22);
  --w-accent:#9A3412;
  --w-accent-hover:#7C2D12;
  --w-accent-soft:rgba(154,52,18,.10);
  --w-accent-ink:#FFFDF9;
  --w-gold:#B45309;
  --w-gold-soft:rgba(180,83,9,.13);
  --w-ok:#15803D;
  --w-ok-soft:rgba(21,128,61,.12);
  --w-bar-bg:rgba(250,248,244,.92);
  --w-shadow:0 10px 28px rgba(29,27,24,.06);
  --w-sheet-shadow:0 14px 40px rgba(29,27,24,.07);
  --w-sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --w-serif:Georgia,"Charter","Palatino Linotype","Book Antiqua",Palatino,Cambria,"Times New Roman",serif;
  --w-scale:1;

  position:relative;
  background:var(--w-bg);
  color:var(--w-ink);
  font-family:var(--w-sans);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  min-height:62vh;
}

.bsw-root[data-w-theme="sepia"]{
  --w-bg:#F4EDE0;
  --w-card:#FAF4E8;
  --w-surface:#EAE0CC;
  --w-surface-2:#DED1B7;
  --w-ink:#2B2218;
  --w-muted:#6B5A48;
  --w-line:rgba(43,34,24,.13);
  --w-line-strong:rgba(43,34,24,.24);
  --w-bar-bg:rgba(244,237,224,.92);
}

.bsw-root[data-w-theme="dark"]{
  --w-bg:#121418;
  --w-card:#1A1D23;
  --w-surface:#232730;
  --w-surface-2:#2E3340;
  --w-ink:#F2EFE9;
  --w-muted:#A6A197;
  --w-line:rgba(255,255,255,.10);
  --w-line-strong:rgba(255,255,255,.22);
  --w-accent:#E07A4B;
  --w-accent-hover:#F08C5D;
  --w-accent-soft:rgba(224,122,75,.16);
  --w-accent-ink:#16110D;
  --w-gold:#F59E0B;
  --w-gold-soft:rgba(245,158,11,.15);
  --w-ok:#4ADE80;
  --w-ok-soft:rgba(74,222,128,.14);
  --w-bar-bg:rgba(18,20,24,.92);
  --w-shadow:0 12px 34px rgba(0,0,0,.42);
  --w-sheet-shadow:0 18px 46px rgba(0,0,0,.5);
}

@media (prefers-color-scheme:dark){
  .bsw-root[data-w-theme="auto"]{
    --w-bg:#121418;
    --w-card:#1A1D23;
    --w-surface:#232730;
    --w-surface-2:#2E3340;
    --w-ink:#F2EFE9;
    --w-muted:#A6A197;
    --w-line:rgba(255,255,255,.10);
    --w-line-strong:rgba(255,255,255,.22);
    --w-accent:#E07A4B;
    --w-accent-hover:#F08C5D;
    --w-accent-soft:rgba(224,122,75,.16);
    --w-accent-ink:#16110D;
    --w-gold:#F59E0B;
    --w-gold-soft:rgba(245,158,11,.15);
    --w-ok:#4ADE80;
    --w-ok-soft:rgba(74,222,128,.14);
    --w-bar-bg:rgba(18,20,24,.92);
    --w-shadow:0 12px 34px rgba(0,0,0,.42);
    --w-sheet-shadow:0 18px 46px rgba(0,0,0,.5);
  }
}

.bsw-root *,
.bsw-root *::before,
.bsw-root *::after,
dialog.bsw-lightbox *,
dialog.bsw-lightbox *::before,
dialog.bsw-lightbox *::after{
  box-sizing:border-box;
}

.bsw-wrap{
  max-width:1240px;
  margin-inline:auto;
  padding:20px 18px 54px;
}

/* Shared SVG Icons */
.bsw-ico{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:none;
  display:inline-block;
  vertical-align:middle;
}

/* Shared Interactive Controls */
.bsw-btn{
  display:inline-flex;
  flex:none;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-inline-size:38px;
  min-block-size:38px;
  padding:7px 14px;
  border-radius:11px;
  border:1px solid var(--w-line);
  background:var(--w-card);
  color:var(--w-ink)!important;
  font:600 .86rem/1.25 var(--w-sans);
  text-decoration:none!important;
  cursor:pointer;
  white-space:nowrap;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease;
}
.bsw-btn:hover{
  border-color:var(--w-accent);
  color:var(--w-accent)!important;
}
@media (prefers-reduced-motion:no-preference){
  .bsw-btn{
    transition:background-color .15s ease,border-color .15s ease,color .15s ease,transform .12s ease;
  }
  .bsw-btn:active{
    transform:scale(.98);
  }
}
.bsw-btn:disabled{
  opacity:.42;
  cursor:not-allowed;
}
.bsw-btn--pri{
  background:var(--w-accent);
  border-color:var(--w-accent);
  color:var(--w-accent-ink)!important;
}
.bsw-btn--pri:hover{
  background:var(--w-accent-hover);
  border-color:var(--w-accent-hover);
  color:var(--w-accent-ink)!important;
}
.bsw-btn--soft{
  background:var(--w-surface);
  border-color:transparent;
}
.bsw-btn--soft:hover{
  background:var(--w-surface-2);
  color:var(--w-ink)!important;
}
.bsw-btn.is-on{
  background:var(--w-gold-soft);
  border-color:color-mix(in srgb,var(--w-gold) 45%,transparent);
  color:var(--w-gold)!important;
}
.bsw-btn.is-ok{
  background:var(--w-ok-soft);
  border-color:color-mix(in srgb,var(--w-ok) 40%,transparent);
  color:var(--w-ok)!important;
}

.bsw-btn:focus-visible,
.bsw-pill:focus-visible,
.bsw-seg button:focus-visible,
.bsw-select:focus-visible,
.bsw-fav-btn:focus-visible,
.bsw-spot-dot:focus-visible,
.bsw-toc-btn:focus-visible,
.bsw-dir-link:focus-visible,
.bsw-figure:focus-visible,
.bsw-gal-btn:focus-visible,
.bsw-pager-link:focus-visible,
dialog.bsw-lightbox button:focus-visible{
  outline:2px solid var(--w-accent);
  outline-offset:2px;
}

@media (pointer:coarse){
  .bsw-btn,
  .bsw-select{
    min-block-size:40px;
  }
  .bsw-pill,
  .bsw-seg button{
    min-block-size:36px;
  }
}

.bsw-seg{
  display:inline-flex;
  align-items:center;
  padding:3px;
  border-radius:12px;
  background:var(--w-surface);
  border:1px solid var(--w-line);
  gap:2px;
}
.bsw-seg button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:0;
  background:transparent;
  color:var(--w-muted);
  font:600 .8rem/1.2 var(--w-sans);
  min-block-size:32px;
  padding:5px 10px;
  border-radius:9px;
  cursor:pointer;
  white-space:nowrap;
  transition:background-color .15s ease,color .15s ease,box-shadow .15s ease;
}
.bsw-seg button:hover{
  color:var(--w-ink);
}
.bsw-seg button.is-on{
  background:var(--w-card);
  color:var(--w-ink);
  box-shadow:0 1px 4px rgba(0,0,0,.10);
}

/* Scroll Progress Indicator (scroll-progress-indicator guide) */
.bsw-progress{
  position:fixed;
  inset:0 0 auto 0;
  height:3px;
  z-index:60;
  pointer-events:none;
  transform-origin:0 50%;
  transform:scaleX(0);
  background:linear-gradient(90deg,var(--w-accent),var(--w-gold));
}
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:scroll()){
    .bsw-progress{
      animation:bsw-read-progress auto linear;
      animation-timeline:scroll(root block);
    }
  }
}

/* ===== HERO HEADER (HUB) ===== */
.bsw-hero{
  border:1px solid var(--w-line);
  border-radius:20px;
  padding:20px 24px;
  margin-bottom:20px;
  background:
    radial-gradient(ellipse 55% 95% at 96% 10%,var(--w-gold-soft),transparent 70%),
    linear-gradient(155deg,var(--w-card) 0%,var(--w-surface) 100%);
  box-shadow:var(--w-shadow);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px 20px;
}
.bsw-hero-copy{
  min-inline-size:0;
  flex:1 1 320px;
}
.bsw-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font:700 .74rem/1.2 var(--w-sans);
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--w-accent);
  margin-bottom:6px;
}
.bsw-eyebrow-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--w-accent);
}
.bsw-title-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 14px;
}
.bsw-hero-title{
  margin:0;
  font-family:var(--w-serif);
  font-weight:700;
  font-size:clamp(1.6rem,1.25rem + 1.4vw,2.2rem);
  line-height:1.15;
  text-wrap:balance;
  color:var(--w-ink);
}
.bsw-hero-sub{
  margin:6px 0 0;
  font:500 .94rem/1.45 var(--w-sans);
  color:var(--w-muted);
}
.bsw-stats{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.bsw-stat-pill{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-block-size:28px;
  padding:4px 11px;
  border-radius:999px;
  background:var(--w-card);
  border:1px solid var(--w-line);
  font:600 .8rem/1.2 var(--w-sans);
  color:var(--w-muted);
}
.bsw-stat-pill strong{
  color:var(--w-ink);
  font-weight:750;
}
.bsw-hero-tools{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}

/* ===== FEATURED SPOTLIGHT SHOWCASE ===== */
.bsw-spotlight{
  position:relative;
  border:1px solid var(--w-line);
  border-radius:20px;
  background:
    radial-gradient(ellipse 60% 100% at 88% 50%,var(--w-accent-soft),transparent 72%),
    var(--w-card);
  box-shadow:var(--w-shadow);
  margin-bottom:22px;
  overflow:hidden;
}
.bsw-spot-grid{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(240px,.85fr);
  gap:20px 28px;
  align-items:center;
  padding:22px 26px 14px;
}
.bsw-spot-slide{
  min-inline-size:0;
}
@media (prefers-reduced-motion:no-preference){
  .bsw-spot-grid.is-entering{
    animation:bsw-slide-in .32s cubic-bezier(.22,.8,.28,1) both;
  }
}
.bsw-spot-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  background:var(--w-gold-soft);
  color:var(--w-gold);
  font:700 .73rem/1.2 var(--w-sans);
  letter-spacing:.04em;
  text-transform:uppercase;
  margin-bottom:10px;
}
.bsw-spot-title{
  margin:0 0 10px;
  font-family:var(--w-serif);
  font-weight:700;
  font-size:clamp(1.25rem,1.05rem + .9vw,1.68rem);
  line-height:1.25;
  color:var(--w-ink);
}
.bsw-spot-quote{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin:0 0 16px;
  font-size:.94rem;
  line-height:1.58;
  color:var(--w-muted);
  max-width:62ch;
}
.bsw-spot-quote p{
  margin:0;
}
.bsw-spot-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:9px;
}
.bsw-spot-frame{
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:linear-gradient(180deg,var(--w-surface) 0%,var(--w-surface-2) 100%);
  border:1px solid var(--w-line);
  padding:14px;
  height:244px;
  overflow:hidden;
}
.bsw-spot-frame img{
  display:block;
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:10px;
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.14));
}

.bsw-spot-controls{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 20px 14px;
  border-top:1px solid var(--w-line);
  background:color-mix(in srgb,var(--w-surface) 45%,transparent);
}
.bsw-spot-btns{
  display:flex;
  align-items:center;
  gap:6px;
}
.bsw-spot-btn{
  min-inline-size:34px;
  min-block-size:34px;
  padding:4px 10px;
  border-radius:9px;
  border:1px solid var(--w-line);
  background:var(--w-card);
  color:var(--w-ink);
  font:600 .8rem/1.2 var(--w-sans);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  cursor:pointer;
}
.bsw-spot-btn:hover{
  border-color:var(--w-accent);
  color:var(--w-accent);
}
.bsw-spot-dots{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.bsw-spot-dot{
  width:24px;
  height:8px;
  padding:0;
  border:0;
  border-radius:999px;
  background:var(--w-line-strong);
  cursor:pointer;
  transition:width .2s ease,background-color .2s ease;
}
.bsw-spot-dot[aria-selected="true"]{
  width:36px;
  background:var(--w-accent);
}

/* ===== SEARCH, FILTER & VIEW BAR ===== */
.bsw-bar{
  position:sticky;
  top:0;
  z-index:25;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 12px;
  padding:11px 14px;
  margin-bottom:20px;
  border-radius:16px;
  background:var(--w-bar-bg);
  -webkit-backdrop-filter:blur(12px) saturate(150%);
  backdrop-filter:blur(12px) saturate(150%);
  border:1px solid var(--w-line);
  box-shadow:0 4px 16px rgba(0,0,0,.04);
}
.bsw-searchbox{
  position:relative;
  flex:1 1 220px;
  min-inline-size:0;
  display:flex;
  align-items:center;
}
.bsw-searchbox svg{
  position:absolute;
  left:12px;
  width:16px;
  height:16px;
  color:var(--w-muted);
  pointer-events:none;
}
.bsw-searchbox input{
  width:100%;
  min-block-size:40px;
  padding:8px 34px 8px 38px;
  border-radius:11px;
  border:1px solid var(--w-line);
  background:var(--w-card);
  color:var(--w-ink);
  font:500 .91rem/1.3 var(--w-sans);
  outline:0;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.bsw-searchbox input:focus{
  border-color:var(--w-accent);
  box-shadow:0 0 0 3px var(--w-accent-soft);
}
.bsw-searchclr{
  position:absolute;
  right:6px;
  width:28px;
  height:28px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--w-muted);
  font-size:1.1rem;
  cursor:pointer;
}
.bsw-pills{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}
.bsw-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-block-size:34px;
  padding:5px 12px;
  border-radius:999px;
  border:1px solid var(--w-line);
  background:var(--w-card);
  color:var(--w-muted);
  font:600 .82rem/1.2 var(--w-sans);
  cursor:pointer;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease;
}
.bsw-pill:hover{
  border-color:var(--w-accent);
  color:var(--w-ink);
}
.bsw-pill.is-on{
  background:var(--w-accent);
  border-color:var(--w-accent);
  color:var(--w-accent-ink);
}
.bsw-pill-n{
  font-size:.74rem;
  opacity:.84;
}
.bsw-bar-right{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.bsw-select{
  min-block-size:38px;
  padding:6px 11px;
  border-radius:11px;
  border:1px solid var(--w-line);
  background:var(--w-card);
  color:var(--w-ink);
  font:600 .83rem/1.2 var(--w-sans);
  cursor:pointer;
}

/* ===== WITNESS PORTRAIT CARDS (card + content-visibility + scroll animation) ===== */
.bsw-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:16px;
}
.bsw-root[data-w-view="list"] .bsw-grid{
  grid-template-columns:minmax(0,1fr);
  gap:10px;
}

.bsw-card-slot{
  container-type:inline-size;
  min-inline-size:0;
}
.bsw-card-slot.is-deferred{
  content-visibility:auto;
  contain-intrinsic-size:auto none auto 268px;
}
.bsw-root[data-w-view="list"] .bsw-card-slot.is-deferred{
  contain-intrinsic-size:auto none auto 86px;
}

@media (prefers-reduced-motion:no-preference){
  @supports ((animation-timeline:view()) and (animation-range:entry)){
    .bsw-card-slot.is-anim{
      animation:bsw-card-enter auto linear backwards;
      animation-timeline:view();
      animation-range:entry 0% entry 26%;
    }
  }
  .bsw-card-slot.is-reveal-pending{
    opacity:0;
    transform:translateY(16px);
  }
  .bsw-card-slot.is-revealed{
    opacity:1;
    transform:none;
    transition:opacity .35s ease-out,transform .35s ease-out;
  }
}

.bsw-card{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-content:start;
  height:100%;
  border:2px solid var(--w-line);
  border-radius:16px;
  background:var(--w-card);
  overflow:hidden;
  box-shadow:0 4px 14px rgba(29,27,24,.04);
  transition:border-color .16s ease,box-shadow .16s ease;
}
@media (prefers-reduced-motion:no-preference){
  .bsw-card{
    transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
  }
  .bsw-card:has(.bsw-card-link:hover){
    transform:translateY(-2px);
  }
}
.bsw-card:has(.bsw-card-link:hover){
  border-color:var(--w-accent);
  box-shadow:var(--w-shadow);
}
.bsw-card:has(.bsw-card-link:focus-visible){
  border-color:var(--w-accent);
  box-shadow:0 0 0 3px var(--w-accent-soft);
}

.bsw-media{
  position:relative;
  background:var(--w-surface);
  overflow:hidden;
}
.bsw-media img{
  display:block;
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:cover;
  object-position:center 20%;
}
@media (prefers-reduced-motion:no-preference){
  .bsw-media img{
    transition:transform .35s ease;
  }
  .bsw-card:has(.bsw-card-link:hover) .bsw-media img{
    transform:scale(1.035);
  }
}

.bsw-badges{
  position:absolute;
  inset:10px auto auto 10px;
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  pointer-events:none;
  max-width:calc(100% - 56px);
}
.bsw-kind-badge{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:3px 9px;
  border-radius:999px;
  background:rgba(17,15,13,.78);
  color:#FFFDF9;
  font:650 .71rem/1.2 var(--w-sans);
}
.bsw-kind-badge.is-video{
  background:rgba(154,52,18,.92);
}
.bsw-kind-badge.is-read{
  background:rgba(21,128,61,.92);
}

/* Favorite star sits directly on clickable button (never on whole card) */
.bsw-fav-btn{
  position:absolute;
  inset:10px 10px auto auto;
  z-index:1;
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(17,15,13,.64);
  color:#FFFDF9;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:background-color .15s ease,color .15s ease,border-color .15s ease;
}
.bsw-fav-btn:hover{
  background:rgba(17,15,13,.88);
}
.bsw-fav-btn.is-on{
  background:#B45309;
  border-color:#F59E0B;
  color:#FFFDF9;
}
.bsw-fav-btn svg{
  width:15px;
  height:15px;
}

.bsw-card-body{
  padding:12px 14px 14px;
  display:flex;
  flex-direction:column;
  gap:4px;
  min-inline-size:0;
  overflow:hidden;
}
.bsw-card-title{
  margin:0;
  font-family:var(--w-serif);
  font-weight:700;
  font-size:1.02rem;
  line-height:1.3;
  min-inline-size:0;
  max-width:100%;
}
.bsw-card-link{
  display:block;
  width:100%;
  color:var(--w-ink)!important;
  text-decoration:none!important;
  font:inherit;
}
.bsw-card-link:focus-visible{
  outline:none;
}
.bsw-card-link::after{
  content:"";
  position:absolute;
  inset:0;
}
.bsw-card-title-txt{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.bsw-card-sub{
  margin:0;
  font:500 .8rem/1.35 var(--w-sans);
  color:var(--w-muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.bsw-card-list-meta{
  display:none;
}

/* Distinct Always-Horizontal List Rows */
.bsw-root[data-w-view="list"] .bsw-card{
  grid-template-columns:68px minmax(0,1fr);
  align-items:center;
  gap:14px;
  padding:10px 54px 10px 12px;
  border-radius:14px;
}
.bsw-root[data-w-view="list"] .bsw-media{
  width:68px;
  height:68px;
  border-radius:12px;
  flex:none;
}
.bsw-root[data-w-view="list"] .bsw-media img{
  width:100%;
  height:100%;
  aspect-ratio:1 / 1;
}
.bsw-root[data-w-view="list"] .bsw-badges{
  display:none;
}
.bsw-root[data-w-view="list"] .bsw-card-body{
  padding:0;
  gap:3px;
}
.bsw-root[data-w-view="list"] .bsw-card-list-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin-top:2px;
}
.bsw-chip-sm{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:2px 8px;
  border-radius:999px;
  background:var(--w-surface);
  color:var(--w-muted);
  font:650 .71rem/1.2 var(--w-sans);
}
.bsw-chip-sm.is-video{
  background:var(--w-accent-soft);
  color:var(--w-accent);
}
.bsw-chip-sm.is-read{
  background:var(--w-ok-soft);
  color:var(--w-ok);
}
.bsw-root[data-w-view="list"] .bsw-fav-btn{
  inset:50% 12px auto auto;
  transform:translateY(-50%);
  border-color:var(--w-line);
  background:var(--w-surface);
  color:var(--w-muted);
}
.bsw-root[data-w-view="list"] .bsw-fav-btn:hover{
  background:var(--w-surface-2);
}
.bsw-root[data-w-view="list"] .bsw-fav-btn.is-on{
  background:var(--w-gold);
  border-color:var(--w-gold);
  color:#fff;
}

@container (max-width:520px){
  .bsw-root[data-w-view="list"] .bsw-card{
    grid-template-columns:52px minmax(0,1fr);
    gap:10px;
    padding:8px 44px 8px 8px;
  }
  .bsw-root[data-w-view="list"] .bsw-media{
    width:52px;
    height:52px;
    border-radius:10px;
  }
  .bsw-root[data-w-view="list"] .bsw-card-title{
    font-size:.93rem;
  }
  .bsw-root[data-w-view="list"] .bsw-card-sub{
    font-size:.76rem;
  }
  .bsw-root[data-w-view="list"] .bsw-fav-btn{
    inset:50% 7px auto auto;
    width:32px;
    height:32px;
  }
}

/* Empty & Copy Tip */
.bsw-empty{
  padding:42px 22px;
  border-radius:18px;
  border:1px dashed var(--w-line-strong);
  background:var(--w-card);
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}
.bsw-empty p{
  margin:0;
  color:var(--w-muted);
}

.bsw-copy-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
}
.bsw-copy-tip{
  position:absolute;
  inset:calc(100% + 8px) auto auto 50%;
  transform:translateX(-50%) translateY(-4px);
  padding:5px 10px;
  border-radius:8px;
  border:1px solid transparent;
  background:var(--w-ink);
  color:var(--w-card);
  font:650 .76rem/1.2 var(--w-sans);
  white-space:nowrap;
  pointer-events:none;
  opacity:0;
  z-index:35;
  transition:opacity .18s ease,transform .18s ease;
}
.bsw-copy-wrap:has([data-copied]) .bsw-copy-tip,
.bsw-copy-wrap:has([data-failed]) .bsw-copy-tip{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}
.bsw-copy-wrap:has([data-failed]) .bsw-copy-tip{
  background:#B91C1C;
  color:#fff;
}
.bsw-rbar .bsw-copy-tip{
  inset:calc(100% + 8px) 0 auto auto;
  transform:translateY(-4px);
}
.bsw-rbar .bsw-copy-wrap:has([data-copied]) .bsw-copy-tip,
.bsw-rbar .bsw-copy-wrap:has([data-failed]) .bsw-copy-tip{
  transform:translateY(0);
}

/* ===== READING STUDIO (ARTICLE PAGES) ===== */
.bsw-rbar{
  position:sticky;
  top:0;
  z-index:30;
  container:bsw-rbar / inline-size;
  background:var(--w-bar-bg);
  -webkit-backdrop-filter:blur(12px) saturate(150%);
  backdrop-filter:blur(12px) saturate(150%);
  border-bottom:1px solid var(--w-line);
}
@media (min-width:840px){
  html:has(#bswRoot .bsw-rbar){
    scroll-padding-top:72px;
  }
}
@media (max-width:839.98px){
  .bsw-rbar{
    position:static;
  }
}
.bsw-rbar-in{
  max-width:1240px;
  margin-inline:auto;
  padding:9px 18px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px 12px;
}
.bsw-rbar-left{
  display:flex;
  align-items:center;
  gap:8px;
  min-inline-size:0;
  flex:1 1 220px;
}
.bsw-rbar-title{
  display:block;
  flex:1 1 auto;
  font-family:var(--w-serif);
  font-weight:700;
  font-size:.98rem;
  color:var(--w-ink);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-inline-size:0;
}
.bsw-rbar-title::first-letter{
  text-transform:uppercase;
}
.bsw-rbar-tools{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  flex:0 1 auto;
  max-inline-size:100%;
}
.bsw-rbar-actions{
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex:none;
}
.bsw-lbl-short{
  display:none;
}
.bsw-act-btn{
  padding:7px;
  min-inline-size:38px;
  min-block-size:38px;
}
.bsw-act-lbl{
  display:none;
}
@container bsw-rbar (inline-size >= 1220px){
  .bsw-act-btn{
    padding:7px 12px;
  }
  .bsw-act-lbl{
    display:inline;
  }
}
@container bsw-rbar (inline-size < 1080px){
  .bsw-rbar-in{
    padding:8px 14px;
    gap:8px 10px;
  }
  .bsw-rbar-left{
    flex:0 0 auto;
  }
  .bsw-rbar-title{
    display:none;
  }
  .bsw-lbl-full{
    display:none;
  }
  .bsw-lbl-short{
    display:inline;
  }
}
@container bsw-rbar (inline-size < 840px){
  .bsw-rbar-left{
    flex:1 1 100%;
    justify-content:space-between;
    flex-wrap:wrap;
  }
  .bsw-rbar-tools{
    flex:1 1 100%;
    justify-content:space-between;
  }
}
@container bsw-rbar (inline-size < 560px){
  .bsw-rbar-in{
    padding:8px 12px;
    gap:7px;
  }
  .bsw-rbar .bsw-seg{
    width:100%;
    order:1;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .bsw-rbar .bsw-seg button{
    padding:4px 4px;
    font-size:.74rem;
    min-block-size:32px;
  }
  .bsw-rbar .bsw-btn{
    min-block-size:36px;
    padding:5px 10px;
    font-size:.8rem;
  }
  .bsw-rbar .bsw-act-btn{
    padding:5px;
    min-inline-size:36px;
    min-block-size:36px;
  }
}
@container bsw-rbar (inline-size < 360px){
  .bsw-rbar-in{
    padding:8px 10px;
  }
  .bsw-rbar .bsw-btn{
    padding:5px 8px;
    font-size:.76rem;
    gap:5px;
  }
  .bsw-rbar .bsw-act-btn{
    padding:5px;
  }
}
@media (pointer:coarse){
  .bsw-rbar .bsw-btn,
  .bsw-rbar .bsw-act-btn{
    min-block-size:40px;
  }
  .bsw-rbar .bsw-act-btn{
    min-inline-size:40px;
  }
  .bsw-rbar .bsw-font-ctl button{
    min-block-size:38px;
  }
  .bsw-rbar .bsw-seg button{
    min-block-size:36px;
  }
}

.bsw-font-ctl{
  display:inline-flex;
  align-items:center;
  border-radius:10px;
  border:1px solid var(--w-line);
  background:var(--w-card);
  overflow:hidden;
}
.bsw-font-ctl button{
  border:0;
  background:transparent;
  color:var(--w-ink);
  min-inline-size:32px;
  min-block-size:34px;
  padding:4px 8px;
  font:700 .8rem/1 var(--w-sans);
  cursor:pointer;
}
.bsw-font-ctl button:hover{
  background:var(--w-surface);
  color:var(--w-accent);
}
.bsw-font-ctl span{
  padding:0 6px;
  font:600 .76rem/1 var(--w-sans);
  color:var(--w-muted);
  border-inline:1px solid var(--w-line);
}

.bsw-reader-layout{
  display:grid;
  grid-template-columns:270px minmax(0,1fr);
  gap:24px;
  align-items:start;
}
.bsw-reader-layout.no-aside{
  grid-template-columns:minmax(0,1fr);
}
.bsw-aside{
  position:sticky;
  top:68px;
  max-height:calc(100vh - 86px);
  display:flex;
  flex-direction:column;
  border:1px solid var(--w-line);
  border-radius:18px;
  background:var(--w-card);
  box-shadow:var(--w-shadow);
  overflow:hidden;
}
.bsw-aside-tabs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  padding:5px;
  gap:4px;
  background:var(--w-surface);
  border-bottom:1px solid var(--w-line);
}
.bsw-aside-tabs.is-single{
  grid-template-columns:minmax(0,1fr);
}
.bsw-aside-tabs button{
  border:0;
  border-radius:10px;
  min-block-size:34px;
  padding:6px 8px;
  background:transparent;
  color:var(--w-muted);
  font:650 .8rem/1.2 var(--w-sans);
  cursor:pointer;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.bsw-aside-tabs button.is-on{
  background:var(--w-card);
  color:var(--w-ink);
  box-shadow:0 1px 4px rgba(0,0,0,.08);
}
.bsw-aside-body{
  overflow-y:auto;
  padding:10px;
  min-height:0;
  flex:1 1 auto;
  --scrollbar-thumb:var(--w-line-strong);
  --scrollbar-track:transparent;
  scrollbar-color:var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width:thin;
}

.bsw-toc-list{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.bsw-toc-btn{
  display:flex;
  align-items:flex-start;
  gap:8px;
  width:100%;
  padding:8px 10px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--w-muted);
  font:600 .83rem/1.35 var(--w-sans);
  text-align:left;
  cursor:pointer;
  transition:background-color .14s ease,color .14s ease;
}
.bsw-toc-btn:hover{
  background:var(--w-surface);
  color:var(--w-ink);
}
.bsw-toc-btn.is-on{
  background:var(--w-accent-soft);
  color:var(--w-accent);
  font-weight:700;
}
.bsw-toc-num{
  flex:none;
  min-width:20px;
  font-size:.74rem;
  opacity:.72;
  padding-top:1px;
}

.bsw-dir-search{
  width:100%;
  min-block-size:36px;
  padding:6px 10px;
  margin-bottom:8px;
  border-radius:10px;
  border:1px solid var(--w-line);
  background:var(--w-surface);
  color:var(--w-ink);
  font:500 .83rem/1.3 var(--w-sans);
  outline:0;
}
.bsw-dir-search:focus{
  border-color:var(--w-accent);
  background:var(--w-card);
}
.bsw-dir-list{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.bsw-dir-link{
  display:flex;
  align-items:center;
  gap:9px;
  padding:6px 8px;
  border-radius:10px;
  color:var(--w-ink)!important;
  text-decoration:none!important;
  font:600 .82rem/1.3 var(--w-sans);
  transition:background-color .14s ease,color .14s ease;
}
.bsw-dir-link:hover{
  background:var(--w-surface);
}
.bsw-dir-link.is-cur{
  background:var(--w-accent-soft);
  color:var(--w-accent)!important;
  font-weight:700;
}
.bsw-dir-link img{
  width:34px;
  height:34px;
  border-radius:8px;
  object-fit:cover;
  object-position:center 20%;
  flex:none;
  background:var(--w-surface);
}
.bsw-dir-link span{
  min-inline-size:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Mobile Slide-Over Drawer for <1080px */
.bsw-drawer-backdrop{
  display:none;
  position:fixed;
  inset:0;
  z-index:55;
  background:rgba(12,10,8,.48);
}
.bsw-drawer-backdrop.is-open{
  display:block;
}
.bsw-aside-close{
  display:none;
}
@media (max-width:1079.98px){
  .bsw-reader-layout{
    grid-template-columns:minmax(0,1fr);
  }
  .bsw-aside{
    position:fixed;
    inset:0 auto 0 0;
    z-index:56;
    width:min(320px,88vw);
    max-height:100vh;
    border-radius:0 18px 18px 0;
    transform:translateX(-105%);
    pointer-events:none;
    transition:transform .24s cubic-bezier(.22,.8,.28,1);
  }
  .bsw-aside.is-open{
    transform:translateX(0);
    pointer-events:auto;
  }
  .bsw-aside-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:8px 10px 4px;
    background:var(--w-surface);
  }
  .bsw-aside-close{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    border:0;
    border-radius:9px;
    background:transparent;
    color:var(--w-ink);
    font-size:1.2rem;
    cursor:pointer;
  }
}
@media (min-width:1080px){
  .bsw-aside-head{
    display:none;
  }
  .bsw-nav-toggle{
    display:none!important;
  }
}

/* Main Reading Sheet */
.bsw-article-col{
  min-inline-size:0;
}
.bsw-sheet{
  border:1px solid var(--w-line);
  border-radius:22px;
  background:var(--w-card);
  box-shadow:var(--w-sheet-shadow);
  padding:32px clamp(20px,4vw,52px) 40px;
}
.bsw-sheet-head{
  max-width:68ch;
  margin-inline:auto;
  padding-bottom:22px;
  margin-bottom:26px;
  border-bottom:1px solid var(--w-line);
}
.bsw-sheet-badges{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
}
.bsw-meta-pill{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 11px;
  border-radius:999px;
  background:var(--w-surface);
  color:var(--w-muted);
  font:650 .76rem/1.2 var(--w-sans);
}
.bsw-meta-pill.is-accent{
  background:var(--w-accent-soft);
  color:var(--w-accent);
}
.bsw-article-title{
  margin:0;
  font-family:var(--w-serif);
  font-weight:700;
  font-size:clamp(1.65rem,1.25rem + 1.5vw,2.35rem);
  line-height:1.18;
  text-wrap:balance;
  color:var(--w-ink);
}
.bsw-article-title::first-letter{
  text-transform:uppercase;
}
.bsw-article-en{
  margin:8px 0 0;
  font:600 .95rem/1.35 var(--w-sans);
  color:var(--w-muted);
}

/* Editorial Prose */
.bsw-prose{
  max-width:68ch;
  margin-inline:auto;
  font-family:var(--w-serif);
  font-size:calc(1.08rem * var(--w-scale,1));
  line-height:1.78;
  color:var(--w-ink);
  overflow-wrap:break-word;
}
.bsw-prose p{
  margin:0 0 1.08em;
}
.bsw-prose p:last-child{
  margin-bottom:0;
}
.bsw-prose a{
  color:var(--w-accent);
  text-decoration:underline;
  text-underline-offset:3px;
}
.bsw-lead-card{
  display:grid;
  grid-template-columns:156px minmax(0,1fr);
  gap:20px;
  align-items:center;
  padding:18px;
  margin:0 0 24px;
  border-radius:16px;
  background:var(--w-surface);
  border:1px solid var(--w-line);
}
.bsw-lead-card .bsw-lead-img{
  display:block;
  padding:0;
  border:0;
  background:transparent;
  border-radius:12px;
  overflow:hidden;
  cursor:zoom-in;
}
.bsw-lead-card img{
  display:block;
  width:100%;
  height:auto;
  border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}
.bsw-lead-text{
  font-size:.97em;
  line-height:1.68;
}
@media (max-width:600px){
  .bsw-lead-card{
    grid-template-columns:minmax(0,1fr);
    gap:14px;
    padding:14px;
  }
  .bsw-lead-card .bsw-lead-img{
    max-width:170px;
    margin-inline:auto;
  }
}

.bsw-inline-media{
  display:flex;
  align-items:flex-start;
  gap:18px;
  margin:18px 0 22px;
}
.bsw-inline-media .bsw-figure{
  margin:4px 0 0;
  flex:0 0 auto;
  max-width:220px;
}
.bsw-inline-media > div{
  min-inline-size:0;
  flex:1 1 auto;
}
@media (max-width:680px){
  .bsw-inline-media{
    flex-direction:column;
    align-items:center;
  }
  .bsw-inline-media .bsw-figure{
    max-width:260px;
    margin:0;
  }
}

.bsw-sec-h{
  margin:1.7em 0 .75em;
  font-family:var(--w-serif);
  font-weight:700;
  font-size:1.36em;
  line-height:1.28;
  color:var(--w-ink);
  scroll-margin-top:78px;
  text-wrap:balance;
}
.bsw-divider{
  border:0;
  height:1px;
  margin:2em 0 1.4em;
  background:linear-gradient(90deg,transparent,var(--w-line-strong) 18%,var(--w-line-strong) 82%,transparent);
}
.bsw-quote{
  margin:1.15em 0;
  padding:12px 18px;
  border-inline-start:3px solid var(--w-accent);
  border-radius:0 12px 12px 0;
  background:var(--w-surface);
  font-style:italic;
}
.bsw-cite{
  margin:.6em 0 1.4em;
  text-align:right;
  font-style:italic;
  font-size:.92em;
  color:var(--w-muted);
}

.bsw-figure{
  position:relative;
  display:block;
  margin:1.35em auto;
  padding:0;
  border:1px solid var(--w-line);
  border-radius:14px;
  background:var(--w-surface);
  overflow:hidden;
  cursor:zoom-in;
  max-width:100%;
}
.bsw-figure img{
  display:block;
  max-width:100%;
  max-height:460px;
  width:auto;
  height:auto;
  margin-inline:auto;
}
.bsw-fig-zoom{
  position:absolute;
  inset:auto 10px 10px auto;
  width:32px;
  height:32px;
  border-radius:999px;
  background:rgba(17,15,13,.72);
  color:#FFFDF9;
  display:grid;
  place-items:center;
  opacity:.82;
  pointer-events:none;
  transition:opacity .15s ease;
}
.bsw-figure:hover .bsw-fig-zoom{
  opacity:1;
}
.bsw-fig-pair{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
  gap:16px;
  margin:1.35em 0;
}
.bsw-pair-item{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:8px;
  min-inline-size:0;
}
.bsw-pair-cap{
  margin:0;
  font:400 .86rem/1.55 var(--w-sans);
  color:var(--w-muted);
  text-align:center;
}
.bsw-fig-pair .bsw-figure{
  margin:0;
  width:100%;
}
.bsw-fig-pair .bsw-figure img{
  width:100%;
  height:250px;
  object-fit:cover;
}
@media (max-width:560px){
  .bsw-fig-pair{
    grid-template-columns:minmax(0,1fr);
  }
}

.bsw-video-stage{
  margin:0 0 20px;
}
.bsw-video-shell{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;
  border-radius:16px;
  overflow:hidden;
  background:#0C0B0A;
  border:1px solid var(--w-line-strong);
  box-shadow:var(--w-shadow);
}
.bsw-video-shell iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.bsw-video-bar{
  display:flex;
  justify-content:flex-end;
  margin-top:10px;
}

/* Archival Gallery Section */
.bsw-gallery-sec{
  max-width:68ch;
  margin:30px auto 0;
  padding-top:24px;
  border-top:1px solid var(--w-line);
}
.bsw-gallery-head{
  margin:0 0 14px;
  font-family:var(--w-serif);
  font-weight:700;
  font-size:1.22rem;
  color:var(--w-ink);
}
.bsw-gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:12px;
}
.bsw-gal-btn{
  position:relative;
  display:block;
  width:100%;
  padding:0;
  border:1px solid var(--w-line);
  border-radius:12px;
  background:var(--w-surface);
  overflow:hidden;
  cursor:zoom-in;
}
.bsw-gal-btn img{
  display:block;
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:cover;
  object-position:center 22%;
}
@media (prefers-reduced-motion:no-preference){
  .bsw-gal-btn img{
    transition:transform .28s ease;
  }
  .bsw-gal-btn:hover img{
    transform:scale(1.04);
  }
}

/* Bottom Witness Pager */
.bsw-pager{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:22px;
}
.bsw-pager-link{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid var(--w-line);
  background:var(--w-card);
  color:var(--w-ink)!important;
  text-decoration:none!important;
  box-shadow:var(--w-shadow);
  min-inline-size:0;
  transition:border-color .15s ease,background-color .15s ease;
}
.bsw-pager-link:hover{
  border-color:var(--w-accent);
  background:var(--w-surface);
}
.bsw-pager-link.is-next{
  justify-content:flex-end;
  text-align:right;
}
.bsw-pager-link.is-center{
  justify-content:center;
  text-align:center;
  font-weight:700;
}
.bsw-pager-link img{
  width:46px;
  height:46px;
  border-radius:10px;
  object-fit:cover;
  object-position:center 20%;
  flex:none;
  background:var(--w-surface);
}
.bsw-pager-txt{
  min-inline-size:0;
}
.bsw-pager-lbl{
  display:block;
  font:700 .72rem/1.2 var(--w-sans);
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--w-accent);
  margin-bottom:2px;
}
.bsw-pager-name{
  display:block;
  font-family:var(--w-serif);
  font-weight:700;
  font-size:.96rem;
  line-height:1.28;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
@media (max-width:760px){
  .bsw-pager{
    grid-template-columns:minmax(0,1fr);
  }
  .bsw-pager-link.is-next{
    justify-content:flex-start;
    text-align:left;
    flex-direction:row-reverse;
  }
}

/* ===== NATIVE TOP-LAYER LIGHTBOX (dialog + prevent-page-scroll + animate-to-from-top-layer) ===== */
dialog.bsw-lightbox{
  margin:auto;
  padding:0;
  border:1px solid rgba(255,255,255,.16);
  border-radius:18px;
  background:#111317;
  color:#F2EFE9;
  max-width:min(94vw,980px);
  max-height:92vh;
  width:auto;
  box-shadow:0 24px 64px rgba(0,0,0,.62);
  opacity:0;
  transition-property:opacity,transform,display,overlay;
  transition-duration:.26s;
  transition-timing-function:ease-out;
  transition-behavior:allow-discrete;
}
@media (prefers-reduced-motion:no-preference){
  dialog.bsw-lightbox{
    transform:scale(.94);
  }
}
@media (prefers-reduced-motion:reduce){
  dialog.bsw-lightbox{
    transition-duration:.1s;
  }
}
dialog.bsw-lightbox:modal{
  overscroll-behavior:contain;
}
dialog.bsw-lightbox[open]{
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
dialog.bsw-lightbox::backdrop{
  overflow:hidden;
  overscroll-behavior:contain;
  background-color:rgba(8,8,10,0);
  transition-property:background-color,display,overlay;
  transition-duration:.26s;
  transition-timing-function:ease-out;
  transition-behavior:allow-discrete;
}
:is(dialog.bsw-lightbox[open]):where(:not([data-closing])){
  opacity:1;
  @starting-style{
    opacity:0;
  }
  @media (prefers-reduced-motion:no-preference){
    transform:scale(1);
    @starting-style{
      transform:scale(.94);
    }
  }
  &::backdrop{
    background-color:rgba(8,8,10,.82);
    @starting-style{
      background-color:rgba(8,8,10,0);
    }
  }
}

.bsw-lb-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 14px;
  border-bottom:1px solid rgba(255,255,255,.12);
  font:600 .86rem/1.3 var(--w-sans);
}
.bsw-lb-stage{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  background:#090A0C;
  min-width:min(300px,86vw);
  min-height:200px;
}
.bsw-lb-stage img{
  display:block;
  max-width:min(90vw,920px);
  max-height:74vh;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:8px;
}
.bsw-lb-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 14px;
  border-top:1px solid rgba(255,255,255,.12);
}
.bsw-lb-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-inline-size:36px;
  min-block-size:36px;
  padding:5px 11px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.08);
  color:#FFFDF9;
  font:600 .83rem/1.2 var(--w-sans);
  cursor:pointer;
}
.bsw-lb-btn:hover{
  background:rgba(255,255,255,.18);
}
.bsw-lb-btn:disabled{
  opacity:.35;
  cursor:not-allowed;
}

/* ===== SCROLLBARS, HORIZONTAL MOBILE FADES & BREAKPOINTS ===== */
@supports not (scrollbar-color:auto){
  .bsw-aside-body::-webkit-scrollbar{
    width:5px;
  }
  .bsw-aside-body::-webkit-scrollbar-thumb{
    background:var(--scrollbar-thumb);
    border-radius:999px;
  }
}

@media (max-width:768px){
  .bsw-bar{
    position:static;
    padding:10px;
    gap:8px;
    margin-bottom:14px;
  }
  .bsw-pills{
    width:100%;
    flex-wrap:nowrap;
    overflow-x:auto;
    gap:6px;
    padding:1px 0 4px;
    scroll-padding-inline:24px;
    --bsw-fade-size:24px;
    --bsw-fade-dir:right;
    --bsw-fade-start-pos:0;
    --bsw-fade-end-pos:100%;
    --scrollbar-thumb:var(--w-line-strong);
    --scrollbar-track:transparent;
    scrollbar-color:var(--scrollbar-thumb) var(--scrollbar-track);
    scrollbar-width:thin;
    mask:
      linear-gradient(black,black) no-clip subtract,
      linear-gradient(to var(--bsw-fade-dir),black,transparent) var(--bsw-fade-start-pos) 0 / var(--bsw-fade-start) 100% no-repeat no-clip,
      linear-gradient(to var(--bsw-fade-dir),transparent,black) var(--bsw-fade-end-pos) 0 / var(--bsw-fade-end) 100% no-repeat no-clip;
    animation:bsw-reveal-fade-start linear both,bsw-hide-fade-end linear both;
    animation-timeline:scroll(self inline);
    animation-range:0 var(--bsw-fade-size),calc(100% - var(--bsw-fade-size)) 100%;
  }
  .bsw-pill{
    flex:none;
    min-block-size:34px;
    padding:5px 11px;
    font-size:.8rem;
  }
  .bsw-bar-right{
    width:100%;
    flex-wrap:nowrap;
    justify-content:space-between;
  }
  .bsw-select{
    flex:1 1 auto;
    min-inline-size:0;
    min-block-size:38px;
  }
  .bsw-spot-grid{
    grid-template-columns:minmax(0,1fr);
    gap:14px;
    padding:16px 16px 14px;
  }
  .bsw-spot-frame{
    height:185px;
    order:-1;
  }
  .bsw-spot-controls{
    padding:10px 14px 12px;
  }
}

@supports not (animation-timeline:scroll()){
  @media (max-width:768px){
    .bsw-pills{
      animation:none;
      transition:--bsw-fade-start .2s,--bsw-fade-end .2s;
    }
    .bsw-pills.more-start{ --bsw-fade-start:var(--bsw-fade-size); }
    .bsw-pills.more-end{ --bsw-fade-end:var(--bsw-fade-size); }
  }
}

@supports not (scrollbar-color:auto){
  @media (max-width:768px){
    .bsw-pills{
      scrollbar-width:auto;
    }
    .bsw-pills::-webkit-scrollbar{
      height:4px;
    }
    .bsw-pills::-webkit-scrollbar-thumb{
      background:var(--scrollbar-thumb);
      border-radius:999px;
    }
    .bsw-pills::-webkit-scrollbar-track{
      background:var(--scrollbar-track);
    }
  }
}

@media (max-width:600px){
  .bsw-wrap{
    padding:12px 12px 42px;
  }
  .bsw-hero{
    padding:14px;
    border-radius:16px;
    gap:10px;
    margin-bottom:14px;
  }
  .bsw-hero-title{
    font-size:1.5rem;
  }
  .bsw-hero-sub{
    font-size:.86rem;
  }
  .bsw-stat-pill{
    min-block-size:24px;
    padding:3px 9px;
    font-size:.74rem;
  }
  .bsw-hero-tools{
    width:100%;
  }
  .bsw-hero-tools .bsw-seg{
    width:100%;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .bsw-hero-tools .bsw-seg button{
    min-block-size:32px;
    padding:4px 4px;
    font-size:.75rem;
  }
  .bsw-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .bsw-card{
    border-radius:13px;
  }
  .bsw-badges{
    inset:7px auto auto 7px;
    max-width:calc(100% - 42px);
  }
  .bsw-kind-badge{
    padding:2px 6px;
    font-size:.64rem;
  }
  .bsw-fav-btn{
    inset:7px 7px auto auto;
    width:30px;
    height:30px;
  }
  .bsw-card-body{
    padding:9px 10px 11px;
  }
  .bsw-card-title{
    font-size:.9rem;
  }
  .bsw-card-sub{
    font-size:.72rem;
  }
  .bsw-root[data-w-view="list"] .bsw-card-slot.is-deferred{
    contain-intrinsic-size:auto none auto 74px;
  }
  .bsw-hide-xs{
    display:none;
  }
  .bsw-sheet{
    padding:20px 16px 26px;
    border-radius:16px;
  }
  .bsw-prose{
    line-height:1.68;
  }
  .bsw-gallery-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
}
