/* PEEK PANEL (FEATURES.peekPanel; Savva's review, 2026-11-02; built by assets/peek-panel.js).
   A single, reused side panel for a link on an Aesthetic page to an Element (browse/element/<slug>.html) or to
   another Aesthetic (a/<slug>.html): it slides over the right side of the page on a wide viewport, and sits as a
   bottom sheet under 48rem. Not modal (aria-modal="false" in the markup): the page behind it stays operable, so
   there is no dimming scrim, only a border to separate the panel from the page. The whole panel is built and
   inserted by the script; this file only has to style the classes it uses. Without the script nothing here ever
   shows: every link is the plain link it always was. */
.pk-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(26rem, 92vw); max-width: 26rem;
  display: flex; flex-direction: column; background: var(--paper); border-left: 1px solid var(--rule-firm);
  box-shadow: -1px 0 0 var(--rule); transform: translateX(100%); transition: transform .18s ease;
  color: var(--ink); overflow-y: auto;
}
.pk-panel.is-open { transform: translateX(0); }
.pk-panel[hidden] { display: none; }
.pk-panel__head { position: sticky; top: 0; display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--s3); padding: var(--s5) var(--s5) var(--s3); background: var(--paper); border-bottom: 1px solid var(--rule); }
.pk-panel__kind { display: block; font: 600 var(--t-xs)/1 var(--ui); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 var(--s1); }
.pk-panel__title { margin: 0; font: 650 var(--t-md)/var(--lh-tight) var(--display); }
.pk-panel__close { flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; background: none; border: 1px solid var(--rule); color: var(--ink-2); cursor: pointer; }
.pk-panel__close:hover, .pk-panel__close:focus-visible { color: var(--ink); border-color: var(--rule-firm); }
.pk-panel__body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); }
.pk-panel__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-deep); border: 1px solid var(--rule); }
.pk-panel__line { margin: 0; font: var(--t-sm)/var(--lh-body) var(--ui); color: var(--ink-2); }
.pk-panel__open { align-self: flex-start; font: 600 var(--t-sm)/1 var(--ui); color: var(--ink); text-underline-offset: .2em; }
.pk-panel__open:hover, .pk-panel__open:focus-visible { color: var(--ink-2); }

@media (max-width: 48rem) {
  .pk-panel {
    top: auto; right: 0; left: 0; bottom: 0; width: auto; max-width: none; max-height: 80vh;
    border-left: 0; border-top: 1px solid var(--rule-firm); box-shadow: 0 -1px 0 var(--rule);
    transform: translateY(100%);
  }
  .pk-panel.is-open { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .pk-panel { transition: none; }
}
