/* Right-hand drawer for product detail, the 2026 changes and security. */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(580px, 100%);
  height: 100dvh;
  flex-direction: column;
  background: var(--paper);
  overscroll-behavior: contain;
}
.drawer[open] { display: flex; }
.drawer[open] { animation: drawer-in .55s var(--ease-out) both; }
.drawer.is-closing { animation: drawer-out .3s var(--ease-std) both; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 20px;
  background: var(--ink);
  color: var(--paper);
}
.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 20px 32px;
}
.drawer__title {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 300;
  line-height: .96;
  letter-spacing: -0.04em;
}
.drawer__intro {
  margin-top: 16px;
  font: 400 clamp(18px, 1.6vw, 21px)/1.15 var(--sans);
  letter-spacing: -0.025em;
}
.drawer__media {
  position: relative;
  aspect-ratio: 432 / 283;
  margin-top: 26px;
  overflow: hidden;
  container-type: inline-size;
}
.drawer__block {
  margin-top: 28px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.drawer__block h3 {
  margin-bottom: 8px;
  font: 650 var(--fs-ui)/1.2 var(--sans);
  letter-spacing: -0.02em;
}
.drawer__block p + p, .drawer__block p + ul { margin-top: 10px; }
.drawer__list li { position: relative; padding-left: 16px; }
.drawer__list li + li { margin-top: 6px; }
.drawer__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 1px; background: currentColor; }

.drawer__sources {
  margin-top: 12px;
  color: var(--ink-2);
  font: 400 var(--fs-small)/1.45 var(--sans);
}
.drawer__sources a { text-underline-offset: 2px; }

.drawer__timeline { margin-top: 28px; }
.drawer__event {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.drawer__date { font: 500 var(--fs-ui)/1.3 var(--sans); letter-spacing: -0.02em; }
.drawer__event h3 { font: 600 16px/1.25 var(--sans); letter-spacing: -0.02em; }
.drawer__event p { margin-top: 4px; }
.drawer__event .drawer__sources { margin-top: 6px; }
.drawer__event--pending .drawer__date { color: var(--ink-2); }

.drawer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font: 400 var(--fs-small)/1.4 var(--sans);
  color: var(--ink-2);
}

@media (max-width: 479px) {
  .drawer__event { grid-template-columns: 1fr; }
}
