/* The same paper, ink and type families as the rest of Qoacht. */
body.qoacht-flyer-open { overflow: hidden; }
.qoacht-flyer-dialog {
  width: min(1120px, calc(100vw - 80px));
  max-width: none;
  max-height: calc(100dvh - 64px);
  padding: 0;
  border: 0;
  overflow: visible;
  color: var(--qoacht-ink);
  background: transparent;
  font: 400 14px/1.6 var(--qoacht-sans);
  box-shadow: 0 24px 100px #140b08a6;
}
.qoacht-flyer-dialog::backdrop { background: #241710c7; backdrop-filter: blur(8px); }
.qoacht-flyer-dialog:not([open]) { display: none; }
.qoacht-flyer-dialog[open] { animation: qoacht-flyer-arrive .24s ease-out; }
.qoacht-flyer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--qoacht-line);
  border-radius: 50%;
  color: var(--qoacht-ink);
  background: var(--qoacht-bone);
  font: 400 30px/1 var(--qoacht-sans);
  cursor: pointer;
}
.qoacht-flyer-close:hover { color: var(--qoacht-bone); background: var(--qoacht-ink); }
.qoacht-flyer-dialog :focus-visible { outline: 2px solid var(--qoacht-burgundy); outline-offset: 4px; }
.qoacht-flyer-status { padding: 100px 40px; background: var(--qoacht-bone); text-align: center; }
.qoacht-flyer-dialog [hidden] { display: none !important; }
.qoacht-flyer-sheet, .qoacht-flyer-page { scrollbar-width: thin; scrollbar-color: #38251f66 transparent; }
.qoacht-flyer-sheet {
  display: grid;
  grid-template-columns: .97fr 1.03fr;
  height: min(740px, calc(100dvh - 64px));
  min-height: min(400px, calc(100dvh - 64px));
  overflow: hidden;
  background: var(--qoacht-bone);
  perspective: 1800px;
}
.qoacht-flyer-cover {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 34px 42px;
  isolation: isolate;
  overflow: hidden;
  color: var(--qoacht-bone);
  background: var(--qoacht-ink);
  transform-origin: right center;
  backface-visibility: hidden;
}
.qoacht-flyer-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: grayscale(1); }
.qoacht-flyer-cover::before { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,#20140e45,transparent 34%,#20140ec9); content: ""; }
.qoacht-flyer-cover::after { position: absolute; inset: 0 0 0 auto; width: 25px; background: linear-gradient(90deg,transparent,#120b0738); content: ""; pointer-events: none; }
.qoacht-flyer-cover__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.qoacht-flyer-cover__top img { width: 112px; height: auto; filter: brightness(0) invert(1); }
.qoacht-flyer-cover__title p { margin: 0 0 20px; font-size: 12px; letter-spacing: .025em; }
.qoacht-flyer-cover__title :is(h1,h2) { margin: 0 0 16px; font: 400 clamp(54px,6.6vw,96px)/.95 var(--qoacht-serif); letter-spacing: -.045em; overflow-wrap: anywhere; }
.qoacht-flyer-cover__title > span { display: inline-block; padding-top: 18px; border-top: 1px solid #f4efe96b; font-size: 11px; letter-spacing: .07em; }
.qoacht-flyer-page {
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  border-left: 1px solid var(--qoacht-line);
  background-color: var(--qoacht-bone);
  background-image: linear-gradient(var(--qoacht-paper-wash),var(--qoacht-paper-wash)),var(--qoacht-paper-texture);
  background-size: cover;
  box-shadow: inset 12px 0 16px -15px #38251f6b;
}
.qoacht-flyer-page__inner { padding: 46px 40px 28px; }
.qoacht-flyer-kicker { margin: 0 44px 25px 0; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.qoacht-flyer-page h3 { margin: 0 0 20px; font: 400 44px/1.05 var(--qoacht-serif); letter-spacing: -.04em; overflow-wrap: anywhere; }
.qoacht-flyer-summary p { margin: 0 0 14px; }
.qoacht-flyer-page .qoacht-encounter-facts { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; margin: 25px 0; padding: 18px 0; border-block: 1px solid var(--qoacht-line); font-size: 12px; }
.qoacht-flyer-page .qoacht-encounter-facts > div { display: block; margin: 0; }
.qoacht-flyer-page .qoacht-encounter-facts dt { margin-bottom: 4px; font-weight: 500; }
.qoacht-flyer-story { margin: 18px 0 24px; font-size: 13px; }
.qoacht-flyer-story summary { cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.qoacht-flyer-story img { max-width: 100%; height: auto; }
.qoacht-flyer-agenda h4 { margin: 0; font: 500 11px/1.4 var(--qoacht-sans); letter-spacing: .1em; text-transform: uppercase; }
.qoacht-flyer-timezone { margin: 6px 0 16px; font-size: 11px; opacity: .75; }
.qoacht-flyer-agenda ul { list-style: none; margin: 0; padding: 0; }
.qoacht-flyer-agenda li { margin: 0 0 20px; padding: 0 0 20px; border-bottom: 1px solid var(--qoacht-line); }
.qoacht-flyer-agenda time { display: block; font-size: 13px; line-height: 1.6; }
.qoacht-flyer-agenda li.is-selected { padding: 12px; border: 1px solid var(--qoacht-burgundy); }
.qoacht-flyer-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; min-height: 46px; margin-top: 12px; padding: 12px 18px; border: 1px solid var(--qoacht-ink); color: var(--qoacht-bone); background: var(--qoacht-ink); font: 500 12px/1.5 var(--qoacht-sans); text-decoration: none; }
.qoacht-flyer-action:hover { border-color: var(--qoacht-burgundy); background: var(--qoacht-burgundy); }
.qoacht-flyer-full { display: inline-block; margin-top: 10px; font-size: 12px; }
.qoacht-flyer-empty { margin: 0 0 24px; }
.qoacht-flyer-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 34px; font-size: 10px; }
.qoacht-flyer-footer > span { opacity: .7; }
.qoacht-flyer-footer a { text-underline-offset: 4px; }
.qoacht-encounter-flyer-page .qoacht-flyer-sheet { max-width: 1120px; margin-inline: auto; box-shadow: 0 16px 60px #38251f22; font: 400 14px/1.6 var(--qoacht-sans); }
.qoacht-encounter-flyer-page .qoacht-flyer-agenda { scroll-margin-top: 100px; }
.qoacht-flyer-dialog.is-ready .qoacht-flyer-cover { animation: qoacht-flyer-unfold .68s cubic-bezier(.2,.65,.2,1) backwards; }
.qoacht-flyer-dialog.is-ready .qoacht-flyer-page__inner { animation: qoacht-flyer-print .5s .13s ease backwards; }
.qoacht-flyer-dialog.is-closing { animation: qoacht-flyer-leave .18s ease both; }
@keyframes qoacht-flyer-unfold { from { transform: rotateY(72deg); filter: brightness(.65); } to { transform: rotateY(0); filter: brightness(1); } }
@keyframes qoacht-flyer-print { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes qoacht-flyer-arrive { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes qoacht-flyer-leave { to { opacity: 0; transform: translateY(8px) scale(.985); } }
@media (max-width: 900px) and (min-width: 701px) {
  .qoacht-flyer-dialog { width: calc(100vw - 40px); }
  .qoacht-flyer-cover { padding: 26px 24px 34px; }
  .qoacht-flyer-page__inner { padding: 64px 26px 26px; }
}
@media (max-width: 700px) {
  .qoacht-flyer-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 32px); overflow: hidden; }
  .qoacht-flyer-sheet { display: block; height: auto; min-height: 0; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
  .qoacht-flyer-cover { min-height: 265px; padding: 22px 24px 25px; }
  .qoacht-flyer-cover__top { padding-right: 42px; }
  .qoacht-flyer-cover__top img { width: 90px; }
  .qoacht-flyer-cover__top > span { display: none; }
  .qoacht-flyer-cover__title { padding-top: 42px; }
  .qoacht-flyer-cover__title p { margin-bottom: 10px; font-size: 11px; }
  .qoacht-flyer-cover__title :is(h1,h2) { margin-bottom: 8px; font-size: clamp(46px,16vw,80px); }
  .qoacht-flyer-cover__title > span { padding-top: 10px; font-size: 10px; }
  .qoacht-flyer-photo { object-position: center 40%; }
  .qoacht-flyer-page { overflow: visible; border: 0; box-shadow: none; }
  .qoacht-flyer-page__inner { padding: 28px 24px 24px; }
  .qoacht-flyer-kicker { margin-bottom: 16px; font-size: 9px; }
  .qoacht-flyer-page h3 { margin-bottom: 16px; font-size: 36px; }
  .qoacht-flyer-page .qoacht-encounter-facts { gap: 12px; margin: 20px 0; }
  .qoacht-flyer-footer { flex-wrap: wrap; }
  .qoacht-flyer-dialog.is-ready .qoacht-flyer-cover { animation-duration: .48s; }
  .qoacht-encounter-flyer-page .qoacht-flyer-sheet { max-height: none; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  .qoacht-flyer-dialog, .qoacht-flyer-dialog *, .qoacht-flyer-dialog.is-closing { animation: none !important; scroll-behavior: auto !important; }
}
.qoacht-flyer-sheet[data-photo-tone="color"] .qoacht-flyer-photo, .qoacht-encounter-card[data-photo-tone="color"] .qoacht-card__image img { filter: none; }
.qoacht-flyer-sheet[data-photo-position="top"] .qoacht-flyer-photo, .qoacht-encounter-card[data-photo-position="top"] .qoacht-card__image img { object-position: center top; }
.qoacht-flyer-sheet[data-photo-position="bottom"] .qoacht-flyer-photo, .qoacht-encounter-card[data-photo-position="bottom"] .qoacht-card__image img { object-position: center bottom; }
