/* Working-page drawer, measured from Biograph executive-physical on 2026-10-23.
   Local Pretendard supports Korean; text colors follow the Serim explorer.
   Structure: scrollable entry > document (image + text), with a sibling close button. */
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] {
  --fc-panel-ink: #18181b;
  --fc-panel-muted: rgb(24 24 27 / 50%);
  --fc-panel-inset: 20px;
  --fc-match-outset: 8px;
  --fc-panel-slide: cubic-bezier(.16, 1, .3, 1);
  position: fixed;
  inset: 0 0 0 auto;
  width: 100%;
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--fc-panel-ink);
  font-family: var(--vf-font-sans);
  box-shadow: none;
  overflow: hidden;
  opacity: 1;
  transform: translateX(100%);
  transition: transform 300ms var(--fc-panel-slide);
}
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"].is-open {
  transform: translateX(0);
}
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"].is-closing {
  transform: translateX(100%);
}
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"]::backdrop {
  background: rgb(0 0 0 / 50%);
  opacity: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: opacity 300ms var(--fc-panel-slide);
}
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"].is-open::backdrop {
  opacity: 1;
}
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"].is-closing::backdrop { opacity: 0; }

.fc-dialog.fc-dialog--reference .fc-panel { width: 100%; height: 100%; min-height: 0; }
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-panel-scroll {
  flex: 1;
  min-height: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: auto;
}
.fc-dialog--reference .fc-panel-entry { position: relative; width: 100%; min-height: 100%; }
.fc-dialog--reference .fc-panel-document { display: flex; flex-direction: column; gap: 0; padding-bottom: max(80px, env(safe-area-inset-bottom)); }
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-panel-hero {
  position: relative;
  flex: none;
  width: 100%;
  height: 350px;
  aspect-ratio: auto;
  background: #000;
}
.fc-dialog--reference .fc-panel-media { position: relative; width: 100%; height: 100%; }
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-panel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-close {
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
}
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-close-surface {
  width: 41px;
  height: 41px;
  border-radius: 60px;
  background: rgb(255 255 255 / 3%);
  box-shadow: inset 0 0 0 1px #ffffff26;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-panel-nav {
  left: var(--fc-panel-inset);
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  width: auto;
  margin: 0;
  padding: 3px 0 0;
}
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-panel-nav button {
  flex: 0 0 41px;
  width: 41px;
  height: 41px;
  min-height: 41px;
  padding: 0;
  border: 0;
  border-radius: 60px;
  background: #fff;
  color: var(--fc-panel-ink);
}
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-panel-nav button:disabled {
  background: rgb(255 255 255 / 80%);
  color: var(--fc-panel-muted);
  box-shadow: none;
  opacity: .5;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-panel-content { padding: 0; }
.fc-dialog--reference .fc-panel-top-content { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 30px var(--fc-panel-inset) 0; }
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-panel-heading { display: block; width: 90%; margin: 0; padding: 0; }
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-panel-heading h2 {
  display: block;
  min-width: 0;
  margin: 0;
  color: var(--fc-panel-ink);
  font-size: 28px;
  font-weight: var(--fc-regular-weight, 400);
  line-height: 1.1;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-panel-heading h2 > span {
  display: block;
  width: 100%;
  max-width: 100%;
  font-weight: var(--fc-regular-weight, 400);
}
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-panel-title-en { margin-top: 8px; word-break: normal; }
.fc-dialog--reference .fc-panel-description { display: flex; flex-direction: column; align-items: stretch; gap: 40px; width: 100%; min-width: 0; }
.fc-dialog--reference .fc-panel-flavors h3 { margin: 0; color: var(--fc-panel-ink); font-size: 16px; font-weight: 500; line-height: 24px; letter-spacing: normal; }
.fc-dialog--reference .fc-panel-flavors { display: flex; flex-direction: column; gap: 16px; }
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-list-heading {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-list-heading span,
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-list-heading #fc-panel-count {
  color: var(--fc-panel-muted);
  font-size: 16px;
  font-weight: var(--fc-regular-weight, 400);
  line-height: 24px;
  letter-spacing: normal;
}
/* Product metadata above the title, shared by the Korean and English catalog. */
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-panel-heading > .fc-list-heading {
  margin-bottom: 0.75rem;
  font-size: 12px;
  line-height: 1.5;
}
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-panel-heading > .fc-list-heading :is(span, #fc-panel-count) {
  font-size: inherit;
  line-height: inherit;
}
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-panel-heading #fc-panel-category {
  color: var(--fc-panel-ink);
  font-weight: 500;
}
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-list-heading + h2 > .fc-panel-title-en:first-child {
  margin-top: 0;
}
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-flavor-list { width: 100%; margin: 0; padding: 0; list-style: none; }
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-flavor-row {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 48px;
  padding: 12px 0;
  color: var(--fc-panel-ink);
  border-bottom: 1px solid #0000000f;
}
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-flavor-row::before { display: none; }
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-flavor-row.is-match {
  --fc-panel-ink: var(--serim-text-link-focus-strong);
  /* Extend the highlight while keeping its text aligned with the other rows. */
  margin-inline: calc(-1 * var(--fc-match-outset));
  padding-inline: var(--fc-match-outset);
  background: #f1f4ff;
  border-bottom-color: #dfe6ff;
  border-radius: 8px;
}
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-flavor-names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-flavor-name { color: var(--fc-panel-ink); font-size: 16px; font-weight: var(--fc-regular-weight, 400); line-height: 24px; }
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-flavor-name-en { color: #18181b80; font-size: 16px; font-weight: var(--fc-regular-weight, 400); line-height: 20px; }
.fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-panel-note { margin: 0 !important; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--fc-panel-muted); font-size: 16px; line-height: 24px; }

@media (max-width: 767px) {
  /* Match the mobile navigation drawer width and leave its backdrop visible. */
  .fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] { width: 90vw; max-width: 90vw; }
  .fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-panel-hero { height: auto; aspect-ratio: 4 / 3; }
  .fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-panel-heading h2 { font-size: 26px; }
  .fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-flavor-name,
  .fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-flavor-name-en,
  .fc-dialog--reference .fc-panel-flavors h3,
  .fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-list-heading span,
  .fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-list-heading #fc-panel-count { font-size: 15px; }
}
@media (min-width: 768px) {
  .fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] { --fc-match-outset: 12px; }
  .fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-panel-heading > .fc-list-heading { font-size: 14px; }
}
@media (min-width: 810px) {
  .fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] { --fc-panel-inset: 30px; }
  .fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-panel-heading h2 { font-size: 36px; }
}
@media (min-width: 1200px) {
  .fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] { --fc-panel-inset: 40px; width: 750px; }
  .fc-dialog--reference .fc-panel-top-content { padding-top: 40px; }
  .fc-dialog--reference .fc-panel-description { width: 580px; max-width: 100%; }
  .fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-panel-nav button { background: rgb(255 255 255 / 80%); }
}
@media (hover: hover) {
  .fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-close:hover .fc-close-surface { background: rgb(255 255 255 / 10%); }
  .fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"] .fc-panel-nav button:enabled:hover { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"],
  .fc-dialog.fc-dialog--reference[data-fc-dialog-layout="editorial"]::backdrop { transition: none !important; }
}
.fc-dialog--reference [hidden] { display: none !important; }
