/* Monthly discovery: one portrait and four photos, following the supplied video. */
.monthly-inspiration { scroll-margin-top: 90px; }
.monthly-inspiration .sec { padding-top: 58px; padding-bottom: clamp(48px, 7vh, 88px); }
.monthly-inspiration .sec-head { max-width: 900px; margin-bottom: 32px; }
.monthly-inspiration .sec-head h2 { color: var(--ink); }
.monthly-inspiration .sec-head > p:last-child { max-width: none; margin-top: 12px; }
.month-selector { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; min-width: 0; }
.month-tabs { display: flex; flex: 1; min-width: 0; gap: 8px; overflow-x: auto; padding: 3px; scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
.month-tabs::-webkit-scrollbar { display: none; }
.month-tab { position: relative; isolation: isolate; flex: 0 0 132px; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 72px; padding: 12px 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; scroll-snap-align: center; transition: border-color .2s, color .2s; }
.month-tab img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity .2s; }
.month-tab::after { content: ''; position: absolute; inset: 0; background: rgb(0 0 0 / 55%); z-index: -1; opacity: 0; transition: opacity .2s; }
.month-tab-name { font-size: 16px; line-height: 1.2; font-weight: 600; }
.month-tab-theme { font-size: 10px; line-height: 1.3; white-space: nowrap; }
.month-tab[aria-selected="true"] { color: #fff; border-color: transparent; }
.month-tab[aria-selected="true"] img, .month-tab[aria-selected="true"]::after { opacity: 1; }
.month-tab:hover { border-color: var(--ink-faint); }
.month-controls { display: flex; gap: 7px; }
.month-step { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #fff; cursor: pointer; transition: background .2s, color .2s; }
.month-step svg { width: 20px; height: 20px; }
.month-step:hover { background: var(--ink); color: #fff; }
.month-tab:focus-visible, .month-step:focus-visible, .month-card:focus-visible, .month-panel:focus-visible, .month-all-link:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 3px; }
.month-panels { position: relative; overflow: clip; overflow-clip-margin: min(24px, 4vw); }
.month-panel[hidden] { display: none; }
.month-panel { touch-action: pan-y pinch-zoom; }
.month-panel:focus-visible { outline-offset: -2px; }
.month-grid { display: grid; grid-template-columns: 1.12fr 1fr 1fr; grid-template-rows: repeat(2, 218px); gap: 16px; }
.month-card { display: flex; flex-direction: column; min-width: 0; position: relative; overflow: hidden; border-radius: 14px; background: #fff; color: var(--ink); }
.month-card-photo { position: relative; overflow: hidden; flex: 1; min-height: 0; background: var(--surface-subtle, #f5f5f5); }
.month-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.month-card[data-month-city="harbin"][data-month-attraction="0"] img { object-position: 54% 63%; }
.month-card[data-month-city="dali"][data-month-attraction="0"] img { object-position: 65% 62%; }
.month-card[data-month-city="changsha"][data-month-attraction="0"] img { object-position: center 24%; }
.month-card[data-month-city="dunhuang"][data-month-attraction="0"] img { object-position: 31% 35%; }
.month-tab[data-month-tab="9"] img { object-position: 35% 29%; }
.month-card[data-month-city="kunming"][data-month-attraction="0"] img { object-position: 56% 46%; }
.month-card:hover .month-card-photo img { transform: scale(1.035); }
.month-card-copy { padding: 12px 16px 14px; }
.month-card-location { display: block; margin-bottom: 5px; color: var(--ink-soft); font-size: 11px; font-weight: 500; line-height: 1.2; }
.month-card h3 { margin: 0; font-size: 23px; font-weight: 400; line-height: 1.12; }
.month-card-copy p { margin: 7px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.month-card:not(.month-card--feature) {
  --month-card-tint: 34 43 45;
  isolation: isolate;
  justify-content: flex-end;
  color: #fff;
  background: rgb(var(--month-card-tint));
  box-shadow: 0 9px 28px -9px rgb(var(--month-card-tint) / .30),
    0 2px 6px rgb(var(--month-card-tint) / .07);
}
.month-card[data-month-city="suzhou"]:not(.month-card--feature) { --month-card-tint: 39 51 32; }
.month-card[data-month-city="shanghai"]:not(.month-card--feature) { --month-card-tint: 56 35 34; }
.month-card[data-month-city="guangzhou"]:not(.month-card--feature) { --month-card-tint: 26 52 47; }
.month-card[data-month-city="hong-kong"]:not(.month-card--feature) { --month-card-tint: 41 45 58; }
.month-card:not(.month-card--feature) .month-card-photo { position: absolute; inset: 0; background: inherit; }
.month-card:not(.month-card--feature) .month-card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(var(--month-card-tint) / .98),
    rgb(var(--month-card-tint) / .90) 26%, rgb(var(--month-card-tint) / .68) 45%, transparent 77%);
}
.month-card:not(.month-card--feature) .month-card-copy { position: relative; overflow-wrap: anywhere; }
.month-card:not(.month-card--feature) .month-card-location,
.month-card:not(.month-card--feature) .month-card-copy p { color: inherit; }
.month-card--feature { grid-row: span 2; border: 0; color: #fff; }
.month-card--feature .month-card-photo { position: absolute; inset: 0; }
.month-card--feature .month-card-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 2%) 25%, rgb(0 0 0 / 32%) 50%, rgb(0 0 0 / 80%) 100%); }
.month-card--feature .month-card-copy { position: relative; z-index: 1; padding: 28px; margin-top: auto; }
.month-card--feature .month-card-location { color: #fff; font-size: 12px; }
.month-card--feature .month-card-location span { margin: 0 6px; opacity: .7; }
.month-card--feature h3 { margin: 11px 0 0; font-size: 38px; line-height: 1.06; text-wrap: balance; }
.month-card--feature p { color: #fff; font-size: 14px; line-height: 1.5; margin-top: 13px; }
.month-card-link { display: inline-flex; gap: 18px; align-items: center; margin-top: 22px; font-size: 12px; font-weight: 500; }
.month-card-link > span { font-size: 19px; }
.month-footer { display: flex; padding-top: 24px; }
.month-all-link { display: inline-flex; align-items: center; gap: 18px; font-size: 12px; color: var(--cinnabar); white-space: nowrap; }
.month-all-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.month-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 900px) {
  .month-grid { grid-template-rows: repeat(2, 205px); gap: 12px; }
  .month-card-copy { padding: 10px 12px 12px; }
  .month-card h3 { font-size: 20px; }
  .month-card--feature .month-card-copy { padding: 20px; }
  .month-card--feature h3 { font-size: 31px; }
  .month-card-copy p { font-size: 10px; }
  .month-card--feature p { font-size: 13px; }
}
@media (max-width: 600px) {
  .monthly-inspiration .sec { padding-top: 36px; }
  .monthly-inspiration .sec-head { margin-bottom: 22px; }
  .monthly-inspiration .sec-head > p:last-child { font-size: 14px; max-width: 30ch; }
  .month-selector { gap: 8px; margin-bottom: 12px; }
  .month-tab { flex-basis: 100px; min-height: 61px; padding: 10px 6px; gap: 5px; border-radius: 8px; }
  .month-tab-name { font-size: 14px; }
  .month-tab-theme { font-size: 8px; }
  .month-controls { flex-direction: column; gap: 3px; }
  .month-step { width: 29px; height: 29px; }
  .month-step svg { width: 17px; height: 17px; }
  .month-grid { grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: repeat(2, 156px); gap: 8px; }
  .month-card { border-radius: 9px; }
  .month-card-photo { flex: 1 0 66px; }
  .month-card-copy { padding: 8px; }
  .month-card-location { font-size: 9px; margin-bottom: 4px; line-height: 1.25; }
  .month-card h3 { font-size: 15px; line-height: 1.13; overflow-wrap: anywhere; }
  .month-card-copy p:not(.month-photo-note) { display: none; }
  .month-card:not(.month-card--feature) .month-card-photo::after {
    background: linear-gradient(to top, rgb(var(--month-card-tint) / .98),
      rgb(var(--month-card-tint) / .80) 45%, rgb(var(--month-card-tint) / .60) 66%, transparent);
  }
  .month-card--feature .month-card-copy { padding: 13px; }
  .month-card--feature .month-card-location { font-size: 10px; }
  .month-card--feature .month-card-location span { display: block; line-height: 0; visibility: hidden; }
  .month-card--feature h3 { font-size: 25px; margin-top: 12px; }
  .month-card--feature p { display: block; font-size: 11px; margin-top: 10px; line-height: 1.45; }
  .month-card-link { font-size: 10px; gap: 8px; margin-top: 16px; }
  .month-card-link > span { font-size: 15px; }
  .month-footer { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .month-tab, .month-tab img, .month-tab::after, .month-step, .month-card-photo img { transition: none; }
  .month-card:hover .month-card-photo img { transform: none; }
}
