.logo {
  display: block;
  flex: 0 0 auto;
  width: 166px;
  padding: 0;
  line-height: normal;
}

@media (min-width: 851px) {
  footer { grid-template-columns: 1fr auto auto; }
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.schedule-item.is-current {
  grid-template-columns: 8% 20% minmax(0, 1fr) auto;
}

.schedule-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 17px;
  background: var(--red);
  color: #fff;
  font: 700 12px/1.2 'DM Sans', Arial, sans-serif;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: background .2s, transform .2s;
}

.schedule-action .play-symbol {
  font-size: 10px;
}

.schedule-item.is-current:hover .schedule-action,
.schedule-item.is-current:focus-visible .schedule-action {
  background: #79162a;
  transform: translateX(2px);
}

.schedule-item:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -3px;
}

footer .logo {
  width: 146px;
}

@media (max-width: 850px) {
  .logo { width: 140px; }
  footer .logo { width: 140px; }
}

@media (max-width: 540px) {
  .logo { width: 130px; }
  .schedule-item.is-current {
    grid-template-columns: 37px 77px minmax(0, 1fr);
    gap: 8px;
  }
  .schedule-item.is-current .schedule-no,
  .schedule-item.is-current .schedule-date {
    grid-row: 1 / span 2;
    align-self: start;
  }
  .schedule-item.is-current .schedule-title,
  .schedule-item.is-current .schedule-action {
    grid-column: 3;
  }
  .schedule-action {
    justify-self: start;
    gap: 6px;
    min-height: 40px;
    padding: 9px 10px;
    font-size: 10px;
  }
}

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

.editorial-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #7f5960;
  padding: 22px 0 20px;
}

.editorial-heading > div:first-child > span {
  color: #d9b7a4;
  font-size: 10px;
  letter-spacing: .22em;
}

.editorial-heading p {
  margin: 7px 0 0;
  color: #e7d6d1;
  font: 400 clamp(18px, 2vw, 28px)/1.4 'Noto Serif SC', serif;
}
.editorial-swipe-hint {
  display: block;
  margin-top: 7px;
  color: #d5aba4;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .08em;
}

.editorial-controls { display: flex; align-items: center; gap: 10px; }
.editorial-count { min-width: 70px; color: #e7d6d1; font-size: 11px; letter-spacing: .16em; }
.editorial-controls button {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid #a47c82;
  background: transparent;
  color: #fff8f2;
  cursor: pointer;
  font-size: 18px;
  transition: background .2s, border-color .2s;
}
.editorial-controls button:hover:not(:disabled) { background: #ffffff1a; border-color: #fff8f2; }
.editorial-controls button:disabled { opacity: .35; cursor: default; }

.editorial-gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: none;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  padding: 0 0 8px;
}
.editorial-gallery::-webkit-scrollbar { display: none; }
.editorial-gallery.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.editorial-gallery.is-dragging .editorial-card { cursor: grabbing; }
.chapter-bottom { justify-content: flex-end; }

.editorial-card {
  flex: 0 0 clamp(230px, 24vw, 350px);
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e7d6d1;
  text-align: left;
  cursor: grab;
  user-select: none;
  scroll-snap-align: start;
}
.editorial-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1375 / 2063;
  object-fit: contain;
  background: #e8dfd2;
  user-select: none;
  -webkit-user-drag: none;
}
.editorial-card span {
  display: block;
  padding-top: 10px;
  font-size: 10px;
  letter-spacing: .16em;
}
.editorial-card:hover span { color: white; }
.editorial-progress { height: 2px; background: #78545b; margin-top: 18px; }
.editorial-progress span { display: block; height: 100%; width: 100%; background: #f1d3c6; transform: scaleX(.016); transform-origin: left center; }

.editorial-gallery:focus-visible,
.editorial-card:focus-visible,
.editorial-controls button:focus-visible,
.editorial-lightbox button:focus-visible,
.editorial-lightbox a:focus-visible { outline: 2px solid #f1d3c6; outline-offset: 3px; }
.editorial-lightbox .lightbox-prev,
.editorial-lightbox .lightbox-next {
  position: absolute;
  top: 48%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  background: #f7f2ebee;
  color: var(--red);
  font-size: 20px;
  cursor: pointer;
}
.editorial-lightbox .lightbox-prev { left: 8px; }
.editorial-lightbox .lightbox-next { right: 8px; }
.editorial-lightbox .lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
  font-size: 12px;
}
.editorial-lightbox .lightbox-footer a { color: var(--red); border-bottom: 1px solid currentColor; padding-bottom: 3px; }

.piece-ask {
  border: 0;
  border-bottom: 1px solid #9a8980;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.piece-ask:focus-visible,
.picker-links a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.contact-shortcut { border: 0; cursor: pointer; }

/* Keep link arrows monochrome on phones instead of using the OS emoji glyph. */
.ui-arrow,
.icon-up::after,
.icon-down::after,
.piece-photo-arrow::after {
  display: inline-block;
  width: .95em;
  height: .95em;
  flex: none;
  background: currentColor;
  -webkit-mask: url('./brand/arrow-up-right.svg') center / contain no-repeat;
  mask: url('./brand/arrow-up-right.svg') center / contain no-repeat;
  vertical-align: -.08em;
}
.icon-up::after,
.icon-down::after { content: ''; margin-left: .45em; }
.ui-arrow.down,
.icon-down::after {
  -webkit-mask-image: url('./brand/arrow-down-right.svg');
  mask-image: url('./brand/arrow-down-right.svg');
}
.piece-photo-arrow::after { content: ''; width: 50%; height: 50%; }

.advisor-picker {
  width: min(840px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 80px #140b0a66;
}

.advisor-picker::backdrop { background: #180c10b8; }

.picker-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 34px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.picker-header h2 {
  margin: 8px 0 0;
  font: 400 35px/1.2 'Noto Serif SC', serif;
}

.picker-close {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.picker-content { padding: 25px 34px 34px; }
.picker-product { display: flex; align-items: center; gap: 18px; }
.picker-product[hidden] { display: none; }
.picker-product img { width: 76px; height: 96px; object-fit: cover; }
.picker-product div { display: flex; flex-direction: column; gap: 5px; }
.picker-product span,
.picker-product small { color: var(--muted); font-size: 11px; }
.picker-product strong { font: 400 21px/1.3 'Noto Serif SC', serif; }
.picker-explainer {
  margin: 20px 0 25px;
  padding: 13px 16px;
  background: #eee7df;
  color: #695951;
  font-size: 12px;
  line-height: 1.7;
}
.picker-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.picker-branch { padding: 20px; border: 1px solid var(--line); }
.picker-branch h3 { margin: 0 0 16px; color: var(--red); font-size: 13px; letter-spacing: .07em; }
.picker-links { display: flex; flex-wrap: wrap; gap: 8px; }
.picker-links a {
  padding: 9px 11px;
  border: 1px solid var(--line);
  font-size: 12px;
  transition: border-color .2s, color .2s;
}
.picker-links a:hover { border-color: var(--red); color: var(--red); }
.advisor-people { margin-bottom: 0; }

.chapter-jump-nav { display: none; }
.header nav .schedule-nav-link,
.chapter-jump-nav .schedule-nav-link { color: var(--red); font-weight: 600; }

@media (max-width: 1100px) {
  .header nav { display: none; }
  .chapter-jump-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    scrollbar-width: thin;
  }
  .chapter-jump-nav a {
    flex: 0 0 auto;
    padding: 14px 0;
    color: var(--ink);
    font-size: 12px;
  }
  .chapter-jump-nav a:hover,
  .chapter-jump-nav a:focus-visible { color: var(--red); }
}

@media (min-width: 851px) {
  .header { gap: 14px; }
  .header nav { gap: clamp(10px, 1.2vw, 20px); font-size: clamp(10px, .82vw, 12px); white-space: nowrap; }
  .header nav a { flex: 0 0 auto; }
}

.live-chapter {
  --chapter-bg: #eee5da;
  --art-bg: #672b39;
  --art-ink: #fff2e5;
  --art-symbol: #ffffff1d;
  padding: 0 clamp(20px, 4vw, 70px) 24px;
}
.live-chapter-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  min-height: clamp(390px, 37vw, 530px);
  overflow: hidden;
  background: var(--chapter-bg);
}
.live-chapter-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(32px, 5vw, 76px);
}
.live-chapter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}
.live-chapter h2 {
  max-width: 710px;
  margin: clamp(52px, 7vw, 115px) 0 0;
  font: 400 clamp(45px, 5.3vw, 85px)/1.22 'Noto Serif SC', 'Songti SC', serif;
  letter-spacing: -.055em;
}
.live-chapter-foot { margin-top: auto; padding-top: 52px; }
.live-chapter-foot p { margin: 0 0 20px; color: #6d5d57; font-size: 13px; line-height: 1.75; }
.live-chapter-foot a { color: var(--red); border-bottom: 1px solid currentColor; padding-bottom: 4px; font-size: 12px; }
.live-chapter-foot a:hover { color: #6f1326; }
.live-chapter-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 390px;
  overflow: hidden;
  background: var(--art-bg);
  color: var(--art-ink);
}
.live-art-symbol {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--art-symbol);
  font: 400 clamp(230px, 29vw, 420px)/1 'Noto Serif SC', 'Songti SC', serif;
  white-space: nowrap;
  user-select: none;
}
.live-art-caption {
  position: absolute;
  left: clamp(26px, 3vw, 48px);
  right: clamp(26px, 3vw, 48px);
  bottom: clamp(24px, 3vw, 46px);
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 1px solid #ffffff66;
  padding-top: 19px;
}
.live-art-caption span { font-size: 10px; letter-spacing: .18em; }
.live-art-caption strong { font: 400 clamp(22px, 2.2vw, 34px)/1.3 'Noto Serif SC', 'Songti SC', serif; }
.live-art-caption small { font-size: 11px; letter-spacing: .09em; opacity: .8; }
.live-cny-02 { --chapter-bg: #e9d9d3; --art-bg: #692b36; }
.live-christmas { --chapter-bg: #edecdf; --art-bg: #2d453b; --art-symbol: #f8e9b32b; }
.live-cny-03 { --chapter-bg: #eee1d6; --art-bg: #83564d; }

@media (max-width: 850px) {
  .live-chapter-shell { grid-template-columns: 1fr; }
  .live-chapter-copy { min-height: 330px; }
  .live-chapter h2 { margin-top: 45px; font-size: clamp(42px, 8vw, 66px); }
  .live-chapter-art { min-height: 310px; }
  .live-art-symbol { font-size: 260px; }
}

@media (max-width: 540px) {
  .live-chapter { padding: 0 15px 16px; }
  .live-chapter-copy { min-height: 300px; padding: 28px; }
  .live-chapter-meta { font-size: 9px; }
  .live-chapter h2 { margin-top: 46px; font-size: clamp(37px, 11vw, 55px); }
  .live-chapter-foot { padding-top: 34px; }
  .live-chapter-foot p { font-size: 12px; }
  .live-chapter-art { min-height: 255px; }
  .live-art-symbol { font-size: 215px; }
  .live-art-caption { bottom: 23px; }
}

@media (max-width: 540px) {
  .editorial-heading { display: block; }
  .editorial-heading p { font-size: 17px; }
  .editorial-controls { justify-content: flex-end; gap: 5px; margin-top: 13px; }
  .editorial-count { min-width: 57px; font-size: 9px; }
  .editorial-controls button { width: 30px; height: 30px; font-size: 15px; }
  .editorial-gallery { gap: 10px; scroll-snap-type: x proximity; }
  .editorial-card { flex-basis: min(78vw, 330px); }
  .editorial-lightbox .lightbox-prev,
  .editorial-lightbox .lightbox-next { width: 34px; height: 38px; }
  .picker-header { padding: 22px 20px 18px; }
  .picker-header h2 { font-size: 29px; }
  .picker-content { padding: 20px; }
  .picker-branches { grid-template-columns: 1fr; }
  .picker-product strong { font-size: 17px; }
}

/* The eight product photos open their own native, touch-scrollable galleries. */
.piece-photo { width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.piece-photo:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.piece-photo-arrow { font: 400 26px/1 Arial, sans-serif; }
.piece-photo-arrow::after { display: none; }
.piece-ask {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 39px; margin-top: 16px; padding: 9px 12px;
  border: 1px solid var(--red); background: var(--red); color: white;
  font-size: 12px; text-align: center;
}
.piece-ask:hover { background: #79162a; }
.piece-buy { display: table; margin-top: 10px; color: #75665f; border-bottom-color: #a6948a; }
.piece-buy:hover { color: var(--red); }
.product-lightbox {
  width: min(1100px, calc(100vw - 48px));
  max-width: none;
  height: min(92dvh, 900px);
  max-height: none;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 100px #13090a99;
}
.product-lightbox::backdrop { background: #1a0d13db; }
.product-lightbox-shell { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.product-lightbox-header {
  display: flex; align-items: center; justify-content: space-between;
  flex: none; min-height: 62px; padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 10px; letter-spacing: .18em; color: var(--red);
}
.product-lightbox-close {
  flex: none; width: 36px; height: 36px; border: 0;
  background: transparent; color: var(--ink); cursor: pointer;
  font: 300 30px/1 Arial, sans-serif;
}
.product-lightbox-view { position: relative; flex: 1; min-height: 0; background: #e8dfd7; }
.product-gallery-track {
  display: flex; width: 100%; height: 100%;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.product-gallery-track::-webkit-scrollbar { display: none; }
.product-gallery-track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.product-gallery-slide {
  display: flex; flex: 0 0 100%; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-width: 0;
  scroll-snap-align: center;
}
.product-gallery-slide img {
  width: auto; max-width: 100%; height: 100%; max-height: 100%;
  object-fit: contain; user-select: none; -webkit-user-drag: none;
}
.product-gallery-prev,.product-gallery-next {
  position: absolute; z-index: 2; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid #dacdc0;
  border-radius: 50%; background: #f7f2ebed; color: var(--red);
  font: 400 23px/1 Arial, sans-serif; cursor: pointer;
}
.product-gallery-prev { left: 15px; }
.product-gallery-next { right: 15px; }
.product-gallery-prev:disabled,.product-gallery-next:disabled { opacity: .35; cursor: default; }
.product-lightbox-footer {
  display: grid; grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center; gap: 24px; flex: none;
  padding: 19px 24px; border-top: 1px solid var(--line);
}
.product-lightbox-footer h2 {
  margin: 0 0 5px; font: 400 clamp(19px,2vw,28px)/1.25 'Noto Serif SC',serif;
}
.product-lightbox-sku,.product-gallery-count { color: var(--muted); font-size: 10px; letter-spacing: .13em; }
.product-gallery-count { white-space: nowrap; }
.product-lightbox-actions { display: flex; align-items: stretch; gap: 10px; }
.product-lightbox-advisor,.product-lightbox-buy {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 42px; padding: 10px 15px;
  font-size: 12px; white-space: nowrap;
}
.product-lightbox-advisor { border: 1px solid var(--red); background: var(--red); color: white; cursor: pointer; }
.product-lightbox-advisor:hover { background: #79162a; }
.product-lightbox-footer .product-lightbox-buy { border: 1px solid var(--red); background: transparent; color: var(--red); }
.product-lightbox-buy:hover { background: #efe4df; }
.product-lightbox button:focus-visible,.product-lightbox a:focus-visible,.product-gallery-track:focus-visible {
  outline: 2px solid var(--red); outline-offset: 2px;
}
@media (max-width: 650px) {
  .product-lightbox { width: 100vw; height: 100dvh; margin: 0; }
  .product-lightbox-header { min-height: 58px; padding: 10px 18px; padding-top: max(10px, env(safe-area-inset-top)); }
  .product-gallery-prev,.product-gallery-next { width: 36px; height: 36px; font-size: 19px; }
  .product-gallery-prev { left: 8px; }
  .product-gallery-next { right: 8px; }
  .product-lightbox-footer {
    grid-template-columns: minmax(0,1fr) auto; gap: 13px;
    padding: 15px 18px max(17px, env(safe-area-inset-bottom));
  }
  .product-lightbox-footer h2 { font-size: 20px; }
  .product-lightbox-actions { grid-column: 1 / -1; flex-direction: column; gap: 8px; }
  .product-lightbox-advisor,.product-lightbox-buy { width: 100%; min-height: 40px; }
}
