.people-theme {
  background:
    radial-gradient(circle at top right, rgba(255, 217, 153, 0.22), transparent 28%),
    linear-gradient(180deg, #fffaf3 0%, #f9efe1 52%, #fff8ef 100%);
}

.people-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 209, 132, 0.16), transparent 18%),
    linear-gradient(180deg, #a70e17 0%, #c3171f 48%, #8c0f17 100%);
}

.people-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 210, 146, 0.2), rgba(248, 210, 146, 0));
}

.people-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(93, 8, 13, 0.18));
}

.people-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 26px;
  align-items: end;
}

.people-title-wrap {
  padding: 20px 0 48px;
  color: #fff8ef;
}

.people-kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 10px 18px;
  border: 1px solid rgba(246, 215, 149, 0.42);
  border-radius: 999px;
  color: #f7d795;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
}

.people-title-wrap h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1.04;
}

.people-title-wrap h2 {
  margin: 12px 0 0;
  color: #f8d79c;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.people-subtitle {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 248, 239, 0.82);
  line-height: 1.9;
}

.people-hero-art {
  align-self: end;
}

.people-hero-art img {
  width: 100%;
  border-radius: 28px 28px 0 0;
}

.people-editorial-wrap {
  margin-top: -18px;
  position: relative;
  z-index: 2;
}

.people-editorial {
  padding: 28px 30px;
  border-radius: 24px;
  background: rgba(255, 251, 245, 0.96);
  box-shadow: 0 18px 48px rgba(94, 46, 15, 0.12);
}

.people-editorial-title img,
.people-team-title img {
  height: 54px;
  width: auto;
}

.people-editorial p {
  margin: 18px 0 0;
  color: #6a5749;
  line-height: 1.95;
}

.editorial-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #6a5749;
  line-height: 1.95;
}

.quote-section {
  position: relative;
}

.quote-stack {
  display: grid;
  gap: 24px;
}

.quote-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 18px 42px rgba(111, 56, 21, 0.12);
}

.quote-card::before,
.quote-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.quote-card::before {
  top: 0;
  right: 20%;
  width: 220px;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.14));
  transform: skewX(-24deg);
  opacity: 0.75;
}

.quote-card::after {
  inset: auto -40px -80px auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 213, 145, 0.28), rgba(255, 213, 145, 0));
}

.quote-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, 0.74fr) minmax(240px, 0.58fr);
  align-items: stretch;
  min-height: 340px;
}

.quote-copy,
.quote-person {
  position: relative;
  padding: 48px 42px;
  transition: color 0.2s ease;
}

.quote-copy::after {
  content: "";
  position: absolute;
  top: 38px;
  left: 42px;
  width: 54px;
  height: 4px;
  background: currentColor;
  opacity: 0.3;
}

.quote-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-copy h2 {
  margin: 20px 0 24px;
  font-size: clamp(2.4rem, 3.2vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.quote-copy p,
.quote-person p {
  margin: 0;
  line-height: 1.9;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.quote-person {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding-top: 56px;
  padding-bottom: 42px;
}

.quote-person::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 0;
  width: 1px;
  height: calc(100% - 80px);
  background: rgba(191, 141, 108, 0.26);
  transition: background 0.2s ease;
}

.quote-person h3 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  transition: color 0.2s ease;
}

.quote-person p {
  max-width: 260px;
}

.quote-portrait {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 100%;
  padding: 18px 18px 0;
}

.quote-portrait::before {
  content: "";
  position: absolute;
  inset: 26px 24px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  transition: opacity 0.2s ease;
}

.quote-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 260px;
  max-height: 322px;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
}

.hover-card {
  background-color: #f7e8d8;
  background-image: url("../assets/party-card-bg-default.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-image 0.2s ease;
  transform-origin: center center;
}

.hover-card .quote-copy h2,
.hover-card .quote-person h3 {
  color: #c99886;
}

.hover-card .quote-copy p,
.hover-card .quote-person p {
  color: rgba(167, 113, 96, 0.94);
}

.hover-card:hover,
.hover-card:focus-within {
  transform: scale(1.035);
  box-shadow: 0 28px 54px rgba(112, 13, 16, 0.22);
  background-color: #a70e17;
  background-image: url("../assets/party-card-bg-hover.jpg");
}

.hover-card:hover::before,
.hover-card:focus-within::before {
  opacity: 0.92;
  transform: skewX(-24deg) translateX(18px);
}

.hover-card:hover .quote-content,
.hover-card:focus-within .quote-content {
  background:
    linear-gradient(90deg, rgba(110, 0, 0, 0.08), rgba(255, 255, 255, 0) 30%),
    repeating-linear-gradient(-6deg, rgba(255, 255, 255, 0.06) 0 20px, rgba(0, 0, 0, 0) 20px 56px);
}

.hover-card:hover .quote-copy h2,
.hover-card:hover .quote-copy p,
.hover-card:hover .quote-person h3,
.hover-card:hover .quote-person p,
.hover-card:focus-within .quote-copy h2,
.hover-card:focus-within .quote-copy p,
.hover-card:focus-within .quote-person h3,
.hover-card:focus-within .quote-person p {
  color: #fff6ec;
}

.hover-card:hover .quote-person::before,
.hover-card:focus-within .quote-person::before {
  background: rgba(255, 255, 255, 0.22);
}

.hover-card:hover .quote-portrait::before,
.hover-card:focus-within .quote-portrait::before {
  opacity: 0.9;
}

.people-team {
  padding-top: 0;
}

.people-team-box {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 24px;
  margin-top: 18px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 252, 246, 0.94);
  box-shadow: 0 18px 52px rgba(89, 47, 18, 0.1);
}

.people-team-poster img {
  width: 100%;
  border-radius: 22px;
}

.people-team-copy h3 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.people-team-copy p {
  margin: 0 0 16px;
  color: #6f5a4a;
  line-height: 1.9;
}

@media (max-width: 1180px) {
  .quote-content {
    grid-template-columns: 1fr 0.82fr;
  }

  .quote-person {
    justify-content: center;
  }

  .quote-portrait {
    grid-column: span 2;
    max-height: 380px;
  }

  .quote-person::before {
    display: none;
  }
}

@media (max-width: 1080px) {
  .people-hero-inner,
  .people-team-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .people-hero {
    padding-top: 24px;
  }

  .people-title-wrap {
    padding-bottom: 24px;
  }

  .people-editorial,
  .people-team-box,
  .quote-copy,
  .quote-person {
    padding: 20px 24px;
  }

  .quote-copy::after {
    top: 18px;
    left: 24px;
  }

  .quote-content {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .quote-copy h2,
  .people-team-copy h3 {
    font-size: 1.8rem;
  }

  .quote-person {
    padding-top: 8px;
  }

  .quote-person h3 {
    font-size: 2rem;
  }

  .quote-person p {
    max-width: none;
  }

  .quote-portrait {
    max-height: 320px;
    padding: 12px 12px 0;
  }

  .quote-portrait::before {
    inset: 18px 16px 0;
  }

  .hover-card:hover,
  .hover-card:focus-within {
    transform: scale(1.012);
  }
}

/* ===== Mobile-only redesign: 党员企业家 ===== */
/* 参考图：上口号引言 / 中姓名职务 / 下圆形头像（竖排居中） */
@media (max-width: 780px) {
  body[data-page="party"] .quote-section {
    padding-top: 24px !important;
    padding-bottom: 36px !important;
  }

  body[data-page="party"] .quote-stack {
    gap: 18px !important;
  }

  body[data-page="party"] .quote-card,
  body[data-page="party"] .hover-card,
  body[data-page="party"] .hover-card-primary {
    border-radius: 18px !important;
    overflow: hidden !important;
    transform: none !important;
    box-shadow: 0 12px 26px rgba(96, 8, 12, 0.28) !important;
    border: 1px solid rgba(232, 186, 74, 0.55) !important;
    background-color: #a70e17 !important;
    background-image: url("../assets/party-card-bg-hover.jpg") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }

  body[data-page="party"] .quote-card::before,
  body[data-page="party"] .quote-card::after,
  body[data-page="party"] .hover-card::before,
  body[data-page="party"] .hover-card::after {
    display: none !important;
  }

  body[data-page="party"] .quote-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    min-height: 0 !important;
    padding: 22px 18px 26px !important;
    background: transparent !important;
    text-align: center !important;
  }

  body[data-page="party"] .quote-copy {
    order: 1 !important;
    width: 100% !important;
    position: relative !important;
    display: block !important;
    padding: 0 4px !important;
    margin: 0 0 18px !important;
    text-align: center !important;
  }

  body[data-page="party"] .quote-copy::before,
  body[data-page="party"] .quote-copy::after {
    display: none !important;
    content: none !important;
  }

  body[data-page="party"] .quote-copy h2 {
    margin: 0 0 12px !important;
    font-size: 1.42rem !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    color: #ffd978 !important;
    text-align: center !important;
  }

  body[data-page="party"] .quote-copy p {
    margin: 0 !important;
    font-size: 0.94rem !important;
    line-height: 1.8 !important;
    color: rgba(255, 248, 239, 0.96) !important;
    text-align: left !important;
  }

  body[data-page="party"] .quote-person {
    order: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 0 8px !important;
    margin: 0 !important;
    text-align: center !important;
  }

  body[data-page="party"] .quote-person::before {
    display: none !important;
    content: none !important;
  }

  body[data-page="party"] .quote-person h3 {
    margin: 0 !important;
    font-size: 1.7rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    color: #fff8ef !important;
    text-align: center !important;
  }

  body[data-page="party"] .quote-person p {
    max-width: 92% !important;
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
    color: rgba(255, 244, 220, 0.96) !important;
    text-align: center !important;
  }

  body[data-page="party"] .quote-portrait {
    order: 2 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 148px !important;
    height: 148px !important;
    min-height: 148px !important;
    max-height: 148px !important;
    padding: 0 !important;
    margin: 0 auto 16px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body[data-page="party"] .quote-portrait::before,
  body[data-page="party"] .quote-portrait::after {
    display: none !important;
    content: none !important;
    background: none !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  body[data-page="party"] .quote-portrait img {
    position: relative !important;
    z-index: 1 !important;
    width: 148px !important;
    height: 148px !important;
    max-width: 148px !important;
    max-height: 148px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center top !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
  }

  body[data-page="party"] .hover-card:hover,
  body[data-page="party"] .hover-card:focus-within {
    transform: none !important;
    box-shadow: 0 12px 26px rgba(96, 8, 12, 0.28) !important;
  }

  body[data-page="party"] .hover-card .quote-copy h2,
  body[data-page="party"] .hover-card-primary .quote-copy h2 {
    color: #ffd978 !important;
  }

  body[data-page="party"] .hover-card .quote-person h3,
  body[data-page="party"] .hover-card-primary .quote-person h3 {
    color: #fff8ef !important;
  }

  body[data-page="party"] .hover-card .quote-copy p,
  body[data-page="party"] .hover-card-primary .quote-copy p {
    color: rgba(255, 248, 239, 0.96) !important;
  }

  body[data-page="party"] .hover-card .quote-person p,
  body[data-page="party"] .hover-card-primary .quote-person p {
    color: rgba(255, 244, 220, 0.96) !important;
  }
}

body[data-page="party"] .pp-stage-cards-only .pp-grid-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body[data-page="party"] .pp-stage-cards-only .pp-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  min-height: 198px;
}

body[data-page="party"] .pp-stage-cards-only .pp-card-media {
  position: relative;
  min-height: 100%;
}

body[data-page="party"] .pp-stage-cards-only .pp-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-page="party"] .pp-stage-cards-only .pp-card-body {
  padding: 18px 18px 16px;
}

body[data-page="party"] .pp-stage-cards-only .pp-card h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
}

body[data-page="party"] .pp-stage-cards-only .pp-card .pp-role {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  body[data-page="party"] .pp-stage-cards-only .pp-grid-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body[data-page="party"] .pp-stage-cards-only .pp-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body[data-page="party"] .pp-stage-cards-only .pp-card-media {
    min-height: 180px;
  }
}

/* ===== 优秀党员：人物在左 文字在右 ===== */
body[data-page="party"] .exm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

body[data-page="party"] .exm-card {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(185, 28, 28, 0.12);
  box-shadow: 0 12px 30px rgba(127, 16, 24, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

body[data-page="party"] .exm-card:hover {
  transform: translateY(-2px);
  border-color: rgba(185, 28, 28, 0.2);
  box-shadow: 0 14px 30px rgba(127, 16, 24, 0.1);
}

body[data-page="party"] .exm-photo {
  flex: 0 0 240px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(255, 232, 170, 0.22), transparent 36%), linear-gradient(165deg, #8b1118 0%, #b91c1c 50%, #6f0d14 100%);
}

body[data-page="party"] .exm-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

body[data-page="party"] .exm-card:hover .exm-photo img {
  transform: scale(1.02);
}

body[data-page="party"] .exm-info {
  flex: 1 1 0;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body[data-page="party"] .exm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

body[data-page="party"] .exm-badge {
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  background: linear-gradient(135deg, #b91c1c, #d89a3a);
  box-shadow: 0 4px 10px rgba(185, 28, 28, 0.16);
}

body[data-page="party"] .exm-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(185, 28, 28, 0.28), transparent);
}

body[data-page="party"] .exm-card h3 {
  margin: 0 0 4px;
  color: #3b1717;
  font-size: 1.3rem;
  line-height: 1.2;
}

body[data-page="party"] .exm-role {
  margin: 0 0 8px;
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.9rem;
}

body[data-page="party"] .exm-desc {
  margin: 0;
  color: #6f4d43;
  line-height: 1.75;
  font-size: 0.85rem;
  }

/* 手机端：一行一个 */
@media (max-width: 780px) {
  body[data-page="party"] .exm-card {
    cursor: pointer;
  }

  body[data-page="party"] .exm-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body[data-page="party"] .exm-photo {
    flex: 0 0 130px;
  }

  body[data-page="party"] .exm-info {
    padding: 14px 16px;
  }

  body[data-page="party"] .exm-info::after {
    content: "点击查看详情  ›";
    align-self: flex-end;
    margin-top: 8px;
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }

  body[data-page="party"] .exm-card h3 {
    font-size: 1.12rem;
  }

  body[data-page="party"] .exm-role,
  body[data-page="party"] .exm-desc {
    font-size: 0.82rem;
  }

  body[data-page="party"] .exm-desc {
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* 小屏手机进一步缩窄图片列 */
@media (max-width: 480px) {
  body[data-page="party"] .exm-photo {
    flex: 0 0 150px;
  }

  body[data-page="party"] .exm-info {
    padding: 12px 14px;
  }

  body[data-page="party"] .exm-card h3 {
    font-size: 1.04rem;
  }
}

/* ===== 优秀党员弹窗 ===== */
body[data-page="party"] .exm-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

body[data-page="party"] .exm-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

body[data-page="party"] .exm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 18, 24, 0.6);
  backdrop-filter: blur(4px);
}

body[data-page="party"] .exm-modal-dialog {
  position: relative;
  max-height: 82vh;
  padding: 36px 40px 40px;
  overflow: auto;
  background: #ffffff;
  border-top: 6px solid #b91c1c;
  border-radius: 10px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.22s ease;
}

body[data-page="party"] .exm-modal.is-open .exm-modal-dialog {
  transform: translateY(0) scale(1);
}

body[data-page="party"] .exm-modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  margin: -12px -14px 0 20px;
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  background: #b91c1c;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

body[data-page="party"] .exm-modal-kicker {
  margin-bottom: 8px;
  color: #b91c1c;
  font-weight: 700;
  letter-spacing: 0.18em;
}

body[data-page="party"] .exm-modal h3 {
  margin: 0 0 6px;
  color: #3b1717;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

body[data-page="party"] .exm-modal-role {
  margin: 0 0 18px;
  color: #b91c1c;
  font-weight: 700;
  font-size: 1rem;
}

body[data-page="party"] .exm-modal-divider {
  height: 1px;
  margin: 0 0 18px;
  background: linear-gradient(90deg, rgba(185, 28, 28, 0.3), transparent);
}

body[data-page="party"] .exm-modal-desc {
  margin: 0;
  color: #4a3833;
  line-height: 1.9;
  font-size: 1rem;
}

@media (max-width: 780px) {
  body[data-page="party"] .exm-modal {
    padding: 12px;
  }

  body[data-page="party"] .exm-modal-dialog {
    max-height: 86vh;
    padding: 26px 18px 28px;
  }
}

/* Mobile entrepreneur cards: match the compact red editorial composition. */
@media (max-width: 780px) {
  body[data-page="party"] .quote-section {
    padding-top: 18px !important;
    padding-bottom: 28px !important;
    background: #f7eee4 !important;
  }

  body[data-page="party"] .quote-section > .container:first-child {
    margin-bottom: 16px !important;
  }

  body[data-page="party"] .quote-section > .home-section-title p {
    display: none !important;
  }

  body[data-page="party"] .quote-stack {
    width: min(100% - 24px, 520px) !important;
    gap: 14px !important;
  }

  body[data-page="party"] .quote-card,
  body[data-page="party"] .hover-card {
    min-height: 500px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: #a90f18 !important;
    background-image: url("../assets/party-card-bg-hover.jpg") !important;
    background-position: center !important;
    background-size: 100% 100% !important;
    box-shadow: 0 10px 22px rgba(92, 11, 17, 0.18) !important;
  }

  body[data-page="party"] .quote-content {
    display: block !important;
    position: relative !important;
    min-height: 500px !important;
    padding: 22px 18px 18px !important;
    text-align: left !important;
  }

  body[data-page="party"] .quote-copy {
    width: auto !important;
    padding: 0 !important;
    margin: 0 0 14px !important;
    padding-right: 220px !important;
    text-align: left !important;
  }

  body[data-page="party"] .quote-copy h2 {
    margin: 0 0 9px !important;
    max-width: 12em !important;
    color: #f8d47e !important;
    font-size: 1.5rem !important;
    line-height: 1.32 !important;
    text-align: left !important;
  }

  body[data-page="party"] .quote-copy p {
    display: none !important;
  }

  body[data-page="party"] .quote-person {
    position: absolute !important;
    left: 18px !important;
    right: 220px !important;
    bottom: 18px !important;
    align-items: flex-start !important;
    justify-content: end !important;
    width: auto !important;
    padding: 0 0 3px !important;
    margin: 0 !important;
    text-align: left !important;
  }

  body[data-page="party"] .quote-person h3 {
    color: #fff8ef !important;
    font-size: 1.68rem !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }

  body[data-page="party"] .quote-person p {
    max-width: 15em !important;
    color: rgba(255, 244, 220, 0.88) !important;
    font-size: 0.7rem !important;
    line-height: 1.45 !important;
    text-align: left !important;
  }

  body[data-page="party"] .quote-portrait {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    align-items: end !important;
    justify-content: end !important;
    align-self: end !important;
    width: 376px !important;
    height: 476px !important;
    min-height: 476px !important;
    max-height: 476px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body[data-page="party"] .quote-portrait img {
    width: 376px !important;
    height: 476px !important;
    max-width: 376px !important;
    max-height: 476px !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    object-position: right bottom !important;
  }
}

@media (max-width: 390px) {
  body[data-page="party"] .quote-stack {
    width: min(100% - 20px, 520px) !important;
  }

  body[data-page="party"] .quote-content {
    min-height: 430px !important;
    padding: 18px 14px 14px !important;
  }

  body[data-page="party"] .quote-copy {
    padding-right: 190px !important;
  }

  body[data-page="party"] .quote-person {
    left: 14px !important;
    right: 190px !important;
    bottom: 14px !important;
  }

  body[data-page="party"] .quote-portrait {
    width: 320px !important;
    height: 416px !important;
    min-height: 416px !important;
    max-height: 416px !important;
  }

  body[data-page="party"] .quote-portrait img {
    width: 320px !important;
    height: 416px !important;
    max-width: 320px !important;
    max-height: 416px !important;
  }
}

/* Final mobile composition: compact card, portrait fills the lower-right area. */
@media (max-width: 780px) {
  body[data-page="party"] .quote-card,
  body[data-page="party"] .hover-card {
    min-height: 232px !important;
    height: 232px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
  }

  body[data-page="party"] .quote-content {
    min-height: 232px !important;
    height: 232px !important;
    padding: 18px 14px !important;
    overflow: hidden !important;
  }

  body[data-page="party"] .quote-copy {
    margin: 0 !important;
    padding: 0 126px 0 0 !important;
  }

  body[data-page="party"] .quote-copy h2 {
    font-size: 1.5rem !important;
    line-height: 1.35 !important;
  }

  body[data-page="party"] .quote-person {
    left: 14px !important;
    right: 132px !important;
    bottom: 60px !important;
  }

  body[data-page="party"] .quote-person h3 {
    font-size: 1.5rem !important;
  }

  body[data-page="party"] .quote-portrait {
    right: 0 !important;
    bottom: 0 !important;
    width: 184px !important;
    height: 184px !important;
    min-height: 184px !important;
    max-height: 184px !important;
  }

  body[data-page="party"] .quote-portrait img {
    width: auto !important;
    height: 230px !important;
    max-width: none !important;
    max-height: none !important;
    transform: none !important;
    object-fit: contain !important;
    object-position: right bottom !important;
  }
}

@media (max-width: 390px) {
  body[data-page="party"] .quote-card,
  body[data-page="party"] .hover-card,
  body[data-page="party"] .quote-content {
    min-height: 218px !important;
    height: 218px !important;
  }

  body[data-page="party"] .quote-copy {
    padding-right: 108px !important;
  }

  body[data-page="party"] .quote-person {
    right: 112px !important;
  }

  body[data-page="party"] .quote-portrait {
    width: 152px !important;
    height: 160px !important;
    min-height: 160px !important;
    max-height: 160px !important;
  }

  body[data-page="party"] .quote-portrait img {
    width: auto !important;
    height: 204px !important;
    max-width: none !important;
    max-height: none !important;
    transform: none !important;
  }
}
