/* Byte A Cookie — case studies with before/after slider. Loaded on templates that show cases, after bac-base.css. */

/* ============================================================
   1. Cases + before/after slider
   ============================================================ */

.bac-page .bac-case__no {
  font-weight: 200;
  font-style: italic;
  font-size: 1.875rem;
  color: var(--bac-gold-deep);
  line-height: 1;
  margin-right: 14px;
}
.bac-page .bac-case__tag {
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bac-ink);
  background: var(--bac-gold-soft);
  border: 1px solid var(--bac-line-strong);
  padding: 4px 8px;
  border-radius: 2px;
}
.bac-page .bac-case__title {
  font-weight: 200;
  font-size: 1.5rem; /* fallback */
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--bac-ink);
  margin-bottom: 24px;
}
.bac-page .bac-case__rows { margin-bottom: 24px; }
.bac-page .bac-case__row {
  display: flex;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--bac-line);
}
.bac-page .bac-case__label {
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bac-ink-muted);
  font-weight: 400;
  flex: 0 0 110px;
  padding-right: 18px;
}
.bac-page .bac-case__value {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--bac-ink-2);
  margin: 0;
}
.bac-page .bac-case__note {
  padding: 18px 20px;
  border-left: 2px solid var(--bac-gold);
  background: rgba(229, 223, 208, 0.35);
  border-radius: 0 var(--bac-radius) var(--bac-radius) 0;
}
.bac-page .bac-case__note-label {
  display: block;
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bac-gold-deep);
  margin-bottom: 8px;
}
.bac-page .bac-case__note-text {
  font-weight: 300;
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--bac-ink);
  margin: 0;
}


/* Web component. Degrades to the "before" frame if custom elements are unsupported. */
.bac-page .bac-compare__slider {
  display: block;
  position: relative;
  width: 100%;
  border-radius: var(--bac-radius);
  overflow: hidden;
  background: var(--bac-paper-2);
  --divider-width: 2px;
  --divider-color: #FBFAF7;
  --divider-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
  --default-handle-color: #FBFAF7;
  --default-handle-width: 44px;
  --default-handle-opacity: 1;
  --default-handle-shadow: 0 6px 18px rgba(26, 23, 20, 0.28);
  --transition-time: 180ms;
}
.bac-page .bac-compare__slider:not(.rendered) { visibility: visible; }
.bac-page .bac-compare__slider:not(.rendered) [slot="second"] { display: none; } /* one pane until the component upgrades */

/* The slotted panes size the component: .second sits in flow, .first overlays it. */
.bac-page .bac-compare__slider [slot] {
  display: block;
  width: 100%;
  min-height: 15rem; /* fallback for aspect-ratio */
}
@supports (aspect-ratio: 4/3) {
  .bac-page .bac-compare__slider [slot] { aspect-ratio: 4/3; min-height: 0; }
}
.bac-page .bac-compare__slider [slot] > * {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: inherit;
}
.bac-page .bac-compare__slider img { width: 100%; height: 100%; object-fit: cover; }
.bac-page .bac-compare__slider:focus-visible { outline: 2px solid var(--bac-gold); outline-offset: 2px; }

.bac-page .bac-compare__pill {
  position: absolute;
  top: 12px;
  z-index: 3;
  font-family: var(--bac-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 2px;
  background: rgba(26, 23, 20, 0.72);
  color: var(--bac-paper);
  pointer-events: none;
}
.bac-page .bac-compare__pill--before { left: 12px; }
.bac-page .bac-compare__pill--after  { right: 12px; }

/* Compliance note under the gallery */
.bac-page .bac-gallery__disclaimer {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--bac-ink-muted);
  border-top: 1px solid var(--bac-line);
  padding-top: 20px;
  margin-top: 40px;
  max-width: 76ch;
}
