/* V1 Discover page (discover.html). Mobile first, 16px gutters. */
.dv {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.25rem 16px 3rem;
  box-sizing: border-box;
}

.dv__eyebrow {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #2563eb;
}

.dv__title {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.25rem, 5.4vw, 1.5rem);
  line-height: 1.3;
  color: #0f172a;
}

.dv__intro {
  margin: 0 0 1rem;
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.dv__chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.5rem;
  scrollbar-width: none;
}

.dv__chips::-webkit-scrollbar {
  display: none;
}

.dv__chip {
  flex: 0 0 auto;
  min-height: 2.25rem;
  padding: 0 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
}

.dv__chip--active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.dv__chips--cats .dv__chip--active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.dv__chips--food .dv__chip {
  min-height: 2rem;
  font-size: 0.8125rem;
}

.dv__notice {
  margin: 0.5rem 0 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.875rem;
  line-height: 1.6;
}

.dv__status {
  color: #64748b;
  font-size: 0.9375rem;
}

.dv__retry {
  margin-left: 0.5rem;
  border: 0;
  background: none;
  color: #2563eb;
  font: inherit;
  cursor: pointer;
}

.dv__list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  /* minmax(0, 1fr): a bare 1fr grows to the longest no-wrap line (area meta) and pushed
     cards ~43px past a 390px phone screen (2026-10-27). */
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .dv__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .dv__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dv-card__btn {
  width: 100%;
  height: 100%;
  padding: 1rem;
  border: 1px solid #eef0f3;
  border-radius: 1rem;
  background: #ffffff;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

.dv-card__btn:hover,
.dv-card__btn:focus-visible {
  border-color: #c7d2fe;
  outline: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.dv-card__top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.dv-card__meta {
  font-size: 0.75rem;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dv-card__must {
  flex: 0 0 auto;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.6875rem;
  font-weight: 600;
}

.dv-card__name {
  margin: 0.375rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: #0f172a;
}

.dv-card__ko {
  margin: 0.125rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.dv-card__summary {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #334155;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dv-card__season {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: #2563eb;
}

.dv__footnote {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #94a3b8;
}

/* Detail sheet */
.dv-detail {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dv-detail[hidden] {
  display: none;
}

.dv-detail__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.dv-detail__panel {
  position: relative;
  width: 100%;
  max-width: 40rem;
  max-height: 88vh;
  overflow-y: auto;
  padding: 1.25rem 16px calc(1.5rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  border-radius: 1.25rem 1.25rem 0 0;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  overflow-wrap: anywhere;
}

@media (min-width: 720px) {
  .dv-detail {
    align-items: center;
  }

  .dv-detail__panel {
    border-radius: 1.25rem;
    padding: 1.5rem 1.5rem 1.75rem;
  }
}

body.dv-detail-open {
  overflow: hidden;
}

.dv-detail__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.dv-detail__meta {
  margin: 0 2.5rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.dv-detail__title {
  margin: 0.375rem 2.5rem 0 0;
  font-size: 1.375rem;
  line-height: 1.35;
}

.dv-detail__note {
  margin: 0.75rem 0 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: #f8fafc;
  font-size: 0.8125rem;
  color: #64748b;
}

.dv-detail__summary {
  margin: 0.75rem 0 0;
  line-height: 1.7;
}

.dv-detail__block h3 {
  margin: 1.25rem 0 0.375rem;
  font-size: 0.9375rem;
}

.dv-detail__block ul {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.7;
  font-size: 0.9375rem;
}

.dv-detail__addr {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: #334155;
}

.dv-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dv-detail__actions .dv-detail__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.875rem;
  border-radius: 0.625rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.dv-detail__sources a {
  color: #2563eb;
  font-size: 0.875rem;
}

.dv-detail__checked {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ───────────── Discover v2 (PO 2026-10-20) ───────────── */
body.dv-page { background: #eaf0f8; }
.dv { max-width: 72rem; }

/* category colour tiles (same language as the home Discover card) */
.dv-tiles { display: flex; gap: 0.5rem; padding: 0.25rem 0.125rem 0.5rem; }
.dv-tile {
  flex: 0 0 5rem; display: flex; flex-direction: column; align-items: center; gap: 0.375rem;
  padding: 0.625rem 0.25rem 0.5rem; border: 2px solid transparent; border-radius: 1rem;
  background: var(--tile, #e2e8f0); color: #0f172a; font: inherit; font-size: 0.75rem; font-weight: 700; cursor: pointer;
}
.dv-tile__icon { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 0.875rem; background: rgba(255, 255, 255, 0.65); font-size: 1.375rem; }
.dv-tile__label { line-height: 1.25; text-align: center; }
.dv-tile--active { border-color: #0f172a; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15); }

/* food filters */
.dv-food { margin: 0.25rem 0 0.5rem; padding: 0.75rem 0.875rem; border: 1px solid #d9e3f0; border-radius: 1rem; background: #ffffff; }
.dv-food[hidden] { display: none; }
.dv-filter__label { margin: 0.25rem 0 0.125rem; font-size: 0.75rem; font-weight: 700; color: #64748b; }
.dv__chips--sub .dv__chip { min-height: 2rem; font-size: 0.8125rem; }
.dv__chip--dark.dv__chip--active { border-color: #0f172a; background: #0f172a; color: #ffffff; }
.dv-opts { display: flex; flex-wrap: wrap; gap: 0.375rem 1rem; margin-top: 0.375rem; font-size: 0.8125rem; color: #334155; }
.dv-opt { display: inline-flex; align-items: center; gap: 0.25rem; cursor: pointer; }

/* sections on "all" */
.dv-sections { display: grid; gap: 0.875rem; margin: 0.5rem 0 1rem; }
.dv-sections[hidden] { display: none; }
.dv-sec, .dv-acc { padding: 1rem; border: 1px solid #d9e3f0; border-radius: 1.25rem; background: #ffffff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 14px 34px rgba(30, 64, 175, 0.08); }
.dv-sec__head { margin-bottom: 0.75rem; }
.dv-sec__title { margin: 0; font-size: 1.125rem; }
.dv-sec__intro { margin: 0.125rem 0 0; font-size: 0.75rem; color: #64748b; }
.dv-acc { padding: 0; }
.dv-acc__title { padding: 0.875rem 1rem; font-weight: 700; font-size: 1rem; cursor: pointer; list-style: none; }
.dv-acc__title::-webkit-details-marker { display: none; }
.dv-acc__title::after { content: "⌄"; float: right; color: #64748b; }
.dv-acc[open] .dv-acc__title::after { content: "⌃"; }
.dv-acc .scroll-row, .dv-acc > .dv-posters { margin: 0 1rem 1rem; }
.dv-posters { display: flex; gap: 0.75rem; scroll-snap-type: x mandatory; padding-bottom: 0.25rem; }
.dv-poster { flex: 0 0 42%; max-width: 11rem; display: flex; flex-direction: column; padding: 0; border: 0; background: none; font: inherit; color: #0f172a; text-align: left; cursor: pointer; scroll-snap-align: start; }
.dv-poster__img { position: relative; aspect-ratio: 3 / 4; border-radius: 0.875rem; overflow: hidden; background-size: cover; display: grid; place-items: center; }
.dv-poster__img img { width: 100%; height: 100%; object-fit: cover; }
.dv-poster__img-icon { font-size: 2.5rem; opacity: 0.9; }
.dv-poster__rank { position: absolute; left: 0.5rem; bottom: 0.125rem; color: #ffffff; font-size: 2.5rem; font-weight: 800; line-height: 1; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.dv-poster__name { margin-top: 0.5rem; font-size: 0.875rem; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dv-poster__meta { font-size: 0.75rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-poster__price { font-size: 0.75rem; font-weight: 700; color: #334155; }
.dv-list-title { margin: 1rem 0 0.5rem; font-size: 1.125rem; }
.dv-list-title[hidden] { display: none; }

/* list cards with a cover */
.dv-card__btn { display: flex; gap: 0.75rem; padding: 0.625rem; border-color: #d9e3f0; align-items: flex-start; }
.dv__list > .dv-card { min-width: 0; }
.dv-card__cover { flex: 0 0 6.75rem; height: 6.75rem; border-radius: 0.75rem; overflow: hidden; background-size: cover; display: grid; place-items: center; }
.dv-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.dv-card__cover-icon { font-size: 2rem; opacity: 0.9; }
.dv-card__body { min-width: 0; display: flex; flex-direction: column; gap: 0.125rem; }
.dv-card__name { margin: 0.125rem 0 0; font-weight: 700; display: block; }
.dv-card__summary { margin: 0.25rem 0 0; -webkit-line-clamp: 2; font-size: 0.8125rem; }
.dv-card__chips { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.375rem; }
.dv-pill { padding: 0.125rem 0.4375rem; border-radius: 0.4375rem; background: #f1f5f9; color: #334155; font-size: 0.6875rem; font-weight: 600; }
.dv-pill--green, .dv-pill--free { background: #ecfdf5; color: #047857; }
.dv-pill--price { background: #fff7ed; color: #9a3412; }
.dv-pill--seasonal { background: #fef3c7; color: #92400e; }
.dv-pill--reservation { background: #fee2e2; color: #b91c1c; }
.dv-pill--must { background: #eff6ff; color: #1d4ed8; }

/* detail sheet v2 */
.dv-detail__panel { padding-top: 0; max-width: 44rem; }
.dv-detail__close { z-index: 3; background: rgba(255, 255, 255, 0.9); }
.dv-gal { position: relative; margin: 0 -16px 0.75rem; }
.dv-gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.dv-gal__track::-webkit-scrollbar { display: none; }
.dv-gal__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; aspect-ratio: 4 / 3; }
.dv-gal__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dv-gal__credit { position: absolute; left: 0.5rem; bottom: 0.5rem; padding: 0.125rem 0.375rem; border-radius: 0.375rem; background: rgba(15, 23, 42, 0.55); color: #ffffff; font-size: 0.6875rem; max-width: calc(100% - 5.5rem); line-height: 1.35; }
.dv-gal__count { position: absolute; right: 0.75rem; bottom: 0.75rem; padding: 0.25rem 0.625rem; border-radius: 999px; background: rgba(15, 23, 42, 0.6); color: #ffffff; font-size: 0.75rem; font-weight: 700; }
.dv-gal__empty { aspect-ratio: 16 / 9; display: grid; place-items: center; align-content: center; gap: 0.25rem; background-size: cover; color: #ffffff; }
.dv-gal__icon { font-size: 3rem; text-align: center; }
.dv-gal__note { font-size: 0.75rem; opacity: 0.85; text-align: center; }
.dv-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.875rem; }
.dv-fact { padding: 0.625rem 0.75rem; border: 1px solid #d9e3f0; border-radius: 0.875rem; background: #ffffff; }
.dv-fact small { display: block; font-size: 0.6875rem; color: #64748b; }
.dv-fact b { font-size: 0.875rem; }
.dv-why { margin: 0.875rem 0 0; padding: 0.75rem 0.875rem; border: 1px solid #dbeafe; border-radius: 0.875rem; background: #eff6ff; font-size: 0.9375rem; line-height: 1.6; }
.dv-mine { display: flex; gap: 0.5rem; margin-top: 1rem; }
.dv-mine__btn { flex: 1; min-height: 2.75rem; border: 1px solid #d9e3f0; border-radius: 0.75rem; background: #ffffff; font: inherit; font-weight: 700; font-size: 0.875rem; cursor: pointer; }
.dv-mine__btn--want.is-on { border-color: #2563eb; background: #2563eb; color: #ffffff; }
.dv-mine__btn--been.is-on { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.dv-detail__fine { margin: 1rem 0 0; font-size: 0.75rem; color: #94a3b8; }
.dv-detail__sources { margin-top: 1.25rem; font-size: 0.8125rem; color: #64748b; }
.dv-detail__sources summary { cursor: pointer; }
.dv-detail__sources ul { margin: 0.375rem 0 0; padding-left: 1.25rem; }
.dv-toast { position: fixed; left: 50%; bottom: 6.5rem; z-index: 1400; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 0.625rem 1rem; border-radius: 999px; background: #0f172a; color: #ffffff; font-size: 0.8125rem; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25); }

@media (min-width: 720px) {
  .dv-gal { margin: 0 -1.5rem 1rem; }
  .dv-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dv-poster { flex-basis: 11rem; }
  .dv-tiles { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .dv-tile { flex-basis: auto; }
}
/* keep sections inside the viewport: poster rows scroll inside their card */
.dv, .dv-sections, .dv-sections > *, .dv-sec, .dv-acc { min-width: 0; max-width: 100%; }
.dv-posters { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.dv-posters::-webkit-scrollbar { display: none; }
.dv-more { display: block; width: 100%; max-width: 22rem; min-height: 2.75rem; margin: 1rem auto 0; border: 1px solid #c7d6ea; border-radius: 999px; background: #ffffff; color: #1d4ed8; font: inherit; font-weight: 700; font-size: 0.875rem; cursor: pointer; }
.dv-more[hidden] { display: none; }

/* 公共누리 Type3 photos must not be altered: show the whole picture, no crop. */
.dv-card__cover img.is-contain, .dv-poster__img img.is-contain, .dv-gal__slide img.is-contain { object-fit: contain; background: #1e293b; }
.dv-gal__credit-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* PO 2026-10-25: official trailer slide (click-to-play YouTube). */
.dv-gal__video { background: #0f172a; }
.dv-gal__play { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.dv-gal__play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dv-gal__play-icon { position: absolute; left: 50%; top: 50%; width: 4rem; height: 4rem; margin: -2rem 0 0 -2rem; border-radius: 999px; background: rgba(220, 38, 38, 0.92); color: #ffffff; display: grid; place-items: center; font-size: 1.5rem; padding-left: 0.25rem; box-sizing: border-box; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35); }
.dv-gal__play:focus-visible .dv-gal__play-icon { outline: 3px solid #ffffff; outline-offset: 2px; }
.dv-gal__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Phase 5 (2026-10-21): beauty / medical topic filters and detail blocks */
.dv-topic__intro { margin: 0.25rem 0 0.5rem; font-size: 0.8125rem; line-height: 1.6; color: #475569; }
.dv-ko__list { margin: 0; display: grid; gap: 0.375rem; }
.dv-ko__row { display: grid; grid-template-columns: minmax(6.5rem, 40%) 1fr; gap: 0.625rem; align-items: baseline; padding: 0.5rem 0.75rem; border-radius: 0.625rem; background: #f8fafc; }
.dv-ko__ko { margin: 0; font-weight: 700; color: #0f172a; word-break: keep-all; overflow-wrap: anywhere; }
.dv-ko__meaning { margin: 0; font-size: 0.875rem; line-height: 1.6; color: #334155; }
.dv-say { padding: 0.25rem 0 0; }
.dv-say__line { display: flex; align-items: stretch; gap: 0.5rem; margin-top: 0.25rem; }
.dv-say__line .dv-copy { margin-top: 0; flex: 0 0 auto; border-radius: 0.75rem; padding: 0 0.875rem; }
.dv-say__ko { flex: 1; min-width: 0; margin: 0; padding: 0.625rem 0.875rem; border-radius: 0.75rem; background: #eff6ff; color: #1e3a8a; font-size: 1.0625rem; font-weight: 700; line-height: 1.5; }
.dv-say__meaning { margin: 0.375rem 0 0; font-size: 0.875rem; color: #475569; }
.dv-copy { margin-top: 0.5rem; padding: 0.375rem 0.875rem; border: 1px solid #bfdbfe; border-radius: 999px; background: #ffffff; color: #1d4ed8; font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.dv-copy--mini { margin: 0 0 0 0.375rem; padding: 0.0625rem 0.5rem; font-size: 0.6875rem; vertical-align: middle; }
.dv-copy:focus-visible, .dv-before__btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.dv-detail__block--risk ul { color: #7c2d12; }
.dv-before { margin-top: 1.25rem; padding: 0.75rem 1rem; border-radius: 0.875rem; background: #f8fafc; }
.dv-before h3 { margin-top: 0 !important; }
.dv-before__list { list-style: none; padding-left: 0 !important; display: grid; gap: 0.25rem; }
.dv-before__btn { width: 100%; text-align: left; padding: 0.5rem 0; border: 0; background: none; color: #1d4ed8; font: inherit; font-size: 0.875rem; line-height: 1.5; cursor: pointer; }
.dv-gal__empty--topic { min-height: 0; height: 96px; aspect-ratio: auto; }
.dv-gal__empty--topic .dv-gal__icon { font-size: 2rem; }
.dv-pill--when-upcoming { background: #e0f2fe; color: #075985; }
.dv-pill--when-on { background: #dcfce7; color: #166534; }
.dv-pill--when-ended { background: #fee2e2; color: #b91c1c; font-weight: 700; }
.dv-card--ended .dv-card__cover { filter: grayscale(1); opacity: 0.6; }
.dv-card--ended .dv-card__name, .dv-card--ended .dv-card__summary { color: #94a3b8; }

/* Phase 6: Discover "去过了" → life wall */
.dv-mine__wall { display: inline-block; margin: -4px 0 12px; padding: 8px 14px; border-radius: 999px; background: #fef3c7; color: #92400e; font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.dv-mine__wall[hidden] { display: none; }

/* PO 2026-10-23: per-procedure pictures on 医美 cards (💉 + what is injected) */
.dv-poster__img-icon, .dv-card__cover-icon, .dv-gal__icon { position: relative; display: inline-block; line-height: 1; }
.dv-icon-badge { position: absolute; right: -0.55em; bottom: -0.3em; font-size: 0.55em; padding: 0.12em; border-radius: 999px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25); line-height: 1; }

.dv-taxwarn { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-weight: 600; font-size: 14px; line-height: 1.5; }

/* ── Design batch 8 (PO 2026-10-24) ──────────────────────────────────────── */
/* contribution banner beside the city chips: full card on desktop, compact chip on phones */
.dv-toprow { display: flex; align-items: center; gap: 0.75rem; margin: 0.5rem 0 0.375rem; min-width: 0; }
.dv-toprow > .scroll-row { flex: 1 1 auto; min-width: 0; }
.dv-toprow > .ct-entry--compact { flex: 0 0 auto; margin: 0; gap: 0.375rem; padding: 0.375rem 0.875rem 0.375rem 0.625rem; border-radius: 999px; }
.ct-entry--compact .ct-entry__icon { font-size: 1.125rem; }
.ct-entry--compact .ct-entry__title, .ct-entry--compact .ct-entry__sub { display: none; }
.ct-entry__short { font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }
@media (min-width: 1024px) {
  .dv-toprow { gap: 1.25rem; }
  .dv-toprow > .ct-entry--compact { gap: 0.625rem; padding: 0.5rem 1rem 0.5rem 0.75rem; border-radius: 1rem; max-width: 26rem; }
  .ct-entry--compact .ct-entry__icon { font-size: 1.5rem; }
  .ct-entry--compact .ct-entry__title { display: block; font-size: 0.875rem; }
  .ct-entry--compact .ct-entry__sub { display: block; font-size: 0.75rem; }
  .ct-entry--compact .ct-entry__short { display: none; }
}

/* category tiles: 12 equal tiles in two even rows of 6 (PO 2026-10-25: 演唱会 tile added;
   the 6 + 5 brick offset is gone) — phones scroll the two rows sideways. */
.dv-tiles { display: grid; grid-template-columns: repeat(12, 2.625rem); column-gap: 0.375rem; row-gap: 0.5rem; padding: 0.25rem 0.125rem 0.5rem; }
.dv-tiles > .dv-tile { grid-column: span 2; min-width: 0; }
.dv-tile__label { overflow-wrap: anywhere; }
@media (min-width: 720px) {
  .dv-tiles { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 0.75rem; row-gap: 0.75rem; }
  .dv-tile { flex-basis: auto; padding: 0.875rem 0.375rem 0.75rem; font-size: 0.875rem; }
  .dv-tile__icon { width: 3.25rem; height: 3.25rem; font-size: 1.625rem; border-radius: 1rem; }
}

/* ── Design batch 9 (PO 2026-10-25) ──────────────────────────────────────── */
/* 花盆 contribution banner: its own full-width, eye-catching row above the city chips */
.dv .dv-toprow { flex-wrap: wrap; }
.dv .dv-toprow > .ct-entry--compact {
  order: -1; flex: 1 1 100%; max-width: none; margin: 0.25rem 0 0.25rem; gap: 0.875rem;
  padding: 0.875rem 1rem; border-radius: 1.125rem; border: 0; color: #ffffff;
  background: radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.25), transparent 40%), linear-gradient(120deg, #15803d 0%, #16a34a 45%, #22c55e 100%);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dv .dv-toprow > .ct-entry--compact:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(22, 163, 74, 0.35); }
.dv .dv-toprow > .ct-entry--compact::after {
  content: "→"; flex: 0 0 auto; margin-left: auto; width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  border-radius: 50%; background: #ffffff; color: #15803d; font-size: 1.125rem; font-weight: 800;
}
.dv .ct-entry--compact .ct-entry__icon {
  flex: 0 0 auto; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.95); font-size: 1.625rem;
}
.dv .ct-entry--compact .ct-entry__text { min-width: 0; }
.dv .ct-entry--compact .ct-entry__title { display: block; font-size: 1rem; font-weight: 800; color: #ffffff; }
.dv .ct-entry--compact .ct-entry__sub { display: block; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.92); line-height: 1.4; }
.dv .ct-entry--compact .ct-entry__short { display: none; }
@media (min-width: 1024px) {
  .dv .dv-toprow > .ct-entry--compact { padding: 1rem 1.25rem; }
  .dv .ct-entry--compact .ct-entry__icon { width: 3.25rem; height: 3.25rem; font-size: 1.875rem; }
  .dv .ct-entry--compact .ct-entry__title { font-size: 1.125rem; }
  .dv .ct-entry--compact .ct-entry__sub { font-size: 0.875rem; }
}
@media (max-width: 768px) {
  .dv .dv-toprow > .ct-entry--compact { gap: 0.625rem; padding: 0.75rem 0.75rem; }
  .dv .ct-entry--compact .ct-entry__icon { width: 2.375rem; height: 2.375rem; font-size: 1.375rem; }
  .dv .ct-entry--compact .ct-entry__title { font-size: 0.9375rem; }
  .dv .ct-entry--compact .ct-entry__sub { font-size: 0.75rem; }
  .dv .dv-toprow > .ct-entry--compact::after { width: 1.875rem; height: 1.875rem; font-size: 1rem; }
}
