/* Home design batch 9 (PO 2026-10-25) — loaded after home-v3.css.
   1 tighter, even section rhythm   2 「生活帮手」 merged block (journeys + 常办事项)
   3 bigger, coloured tool icons    4 coloured life-wall / gallery intro cards */

/* ── 1. spacing: one rhythm — 24px between blocks on desktop, 16px on phones ── */
@media (min-width: 769px) {
  body.home-page { --hm-desk-section: 24px; }
  body.home-page main { gap: 24px; padding-bottom: 40px; }
  body.home-page .home-hero.hv2-top { padding-bottom: 0; }
  body.home-page .hv2-inner > .hv2-carousel { margin-bottom: 16px; }
  body.home-page .hv2-search .hero-search { margin-top: 0; }
  body.home-page .hv2-inner > .hv2-discover { margin-top: 24px; }
  body.home-page .hv2-inner > .hv2-duo { margin: 24px 0 0; }
  body.home-page .hv2-discover,
  body.home-page .home-community .posts__inner,
  body.home-page .hv2-week__inner,
  body.home-page .hv3-groups__inner { padding-top: 1.25rem; padding-bottom: 1.25rem; }
}
@media (max-width: 768px) {
  body.home-page { --hm-section: 16px; }
  body.home-page main { gap: 16px; }
  body.home-page .home-hero__inner.hv2-inner { gap: 16px; }
  body.home-page .hv2-inner > .hv2-duo { margin-top: 0; margin-bottom: 0; }
}

/* ── 2. 「생활 도우미」: one coloured block — title + explanation, 3 journeys, common-task chips ── */
.hv4-helper {
  margin-top: 1rem; padding: 1rem 1rem 0.875rem; border-radius: 1.25rem;
  background: radial-gradient(circle at 92% 0%, rgba(167, 243, 208, 0.55), transparent 42%), linear-gradient(135deg, #dbe7ff 0%, #ebe5ff 55%, #f3ecff 100%);
  border: 1px solid #c9d8f5; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 26px rgba(59, 91, 219, 0.1);
}
.hv4-helper__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.875rem; }
.hv4-helper__icon {
  flex: 0 0 auto; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 0.875rem;
  background: #ffffff; font-size: 1.5rem; box-shadow: 0 2px 8px rgba(59, 91, 219, 0.15);
}
.hv4-helper__heading { min-width: 0; }
.hv4-helper__title { margin: 0; font-size: 1.125rem; font-weight: 800; line-height: 1.3; color: #1e1b4b; }
.hv4-helper__sub { margin: 0.125rem 0 0; font-size: 0.8125rem; line-height: 1.45; color: #475569; }

/* the old 「지금 뭘 하면 될까요?」 panel becomes plain content inside the block */
.hv4-helper .hv2-unlock { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.hv4-helper .hv2-unlock__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.625rem; }
.hv4-journey.hv2-unlock__item {
  --j-bg: #dbeafe; --j-ink: #1d4ed8;
  display: flex; flex-direction: row; align-items: center; gap: 0.875rem; padding: 0.875rem 1rem;
  border-radius: 1rem; background: #ffffff; border: 1px solid rgba(255, 255, 255, 0.9); text-align: left;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 12px rgba(30, 64, 175, 0.06); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hv4-journey--working { --j-bg: #fef3c7; --j-ink: #b45309; }
.hv4-journey--moving { --j-bg: #d1fae5; --j-ink: #047857; }
.hv4-journey:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(30, 64, 175, 0.14); }
.hv2-unlock .hv4-journey > span.hv4-journey__icon {
  flex: 0 0 auto; width: 3.5rem; height: 3.5rem; display: grid; place-items: center; border-radius: 1rem;
  background: var(--j-bg); font-size: 2rem; line-height: 1;
}
.hv4-journey__text { flex: 1 1 auto; min-width: 0; display: grid; gap: 0.2rem; }
.hv4-journey__title { font-size: 1rem; font-weight: 800; line-height: 1.3; color: #0f172a; }
.hv4-journey__desc { font-size: 0.8125rem; font-weight: 500; line-height: 1.4; color: #64748b; }
.hv4-journey__go {
  flex: 0 0 auto; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--j-bg); color: var(--j-ink); font-size: 0.9375rem; font-weight: 800;
}

/* common tasks row, inside the block under a light divider */
.hv4-helper .hv2-doing { margin-top: 0.875rem; padding-top: 0.75rem; border-top: 1px dashed rgba(99, 102, 241, 0.3); }
.hv4-helper .hv2-doing__label { color: #3730a3; font-size: 0.8125rem; font-weight: 800; }
.hv4-helper .hv2-chip { background: rgba(255, 255, 255, 0.92); border-color: rgba(255, 255, 255, 0.95); }
.hv4-helper .hv2-chip:hover { background: #ffffff; border-color: #a5b4fc; }

@media (min-width: 1024px) {
  .hv4-helper { padding: 1.25rem 1.5rem 1.125rem; }
  .hv4-helper .hv2-doing { justify-content: flex-start; }
  .hv4-helper .hv2-doing__list { justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .hv4-helper { margin: 0; padding: 0.875rem 0.75rem 0.75rem; }
  .hv4-helper__head { gap: 0.625rem; margin-bottom: 0.75rem; }
  .hv4-helper__icon { width: 2.375rem; height: 2.375rem; font-size: 1.25rem; }
  .hv4-helper__title { font-size: 1rem; }
  .hv4-helper__sub { font-size: 0.75rem; }
  .hv4-helper .hv2-unlock__list { gap: 0.5rem; }
  .hv4-journey.hv2-unlock__item { flex-direction: column; align-items: center; gap: 0.375rem; padding: 0.75rem 0.375rem; text-align: center; }
  .hv2-unlock .hv4-journey > span.hv4-journey__icon { width: 2.875rem; height: 2.875rem; font-size: 1.625rem; border-radius: 0.875rem; }
  .hv4-journey__title { font-size: 0.8125rem; }
  .hv4-journey__desc { font-size: 0.6875rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hv4-journey__go { display: none; }
  .hv4-helper .hv2-doing { margin-top: 0.75rem; padding-top: 0.625rem; }
}

/* ── 3. tools: bigger icons, each tool its own colour ── */
.hv2-tools { margin-top: 1rem; }
.hv2-tools__item:nth-child(1) { background: linear-gradient(135deg, #ffffff 40%, #e0edff); border-color: #c7dafc; }
.hv2-tools__item:nth-child(2) { background: linear-gradient(135deg, #ffffff 40%, #ede7ff); border-color: #d8ccfb; }
.hv2-tools__item:nth-child(3) { background: linear-gradient(135deg, #ffffff 40%, #ffedd9); border-color: #fbd5ad; }
.hv2-tools__item:nth-child(1) > .hv2-tools__icon { background: #c7dcff; }
.hv2-tools__item:nth-child(2) > .hv2-tools__icon { background: #ddd2ff; }
.hv2-tools__item:nth-child(3) > .hv2-tools__icon { background: #ffd8ad; }
.hv2-tools__item--sos { background: linear-gradient(135deg, #fff5f5 40%, #ffe0e0); }
.hv2-tools__item--sos > .hv2-tools__icon { background: #fecaca; }
.hv2-tools .hv2-tools__item > span.hv2-tools__icon { width: 3rem; height: 3rem; font-size: 1.75rem; border-radius: 0.875rem; }
@media (min-width: 1024px) {
  .hv2-tools__item { padding: 1.125rem 1.25rem; }
  .hv2-tools .hv2-tools__item > span.hv2-tools__icon { width: 3.75rem; height: 3.75rem; font-size: 2.25rem; border-radius: 1.125rem; }
  .hv2-tools__title { font-size: 1.0625rem; font-weight: 800; }
}
@media (max-width: 768px) {
  .hv2-tools { margin-top: 0; }
}

/* ── 4. life wall / art gallery intro cards: coloured, not white ── */
.hv2-pair--wall { background: linear-gradient(135deg, #e8edff, #e3f8f4); }
.hv2-pair--gallery { background: linear-gradient(135deg, #ffeef5, #fff1e4); }
.hv2-pair--wall .hv2-intro { background: linear-gradient(160deg, #d3dcff 0%, #c4efe8 100%); }
.hv2-pair--gallery .hv2-intro { background: linear-gradient(160deg, #fcd3e6 0%, #ffd9b8 100%); }
.hv2-pair--wall .hv2-intro__title { color: #1e1b4b; }
.hv2-pair--gallery .hv2-intro__title { color: #6b1238; }
.hv2-intro__list li { color: #1e293b; }
@media (min-width: 769px) {
  .hv2-pair--wall .hv2-intro__ico, .hv2-pair--gallery .hv2-intro__ico { background: rgba(255, 255, 255, 0.75); }
}

/* PO 2026-10-27: compact common-tasks row on Home (the helper box and journeys moved to 问&办事). */
.hv2-doing--home { margin-top: 0.75rem; }
.hv2-doing--home .hv2-doing__label { color: #3730a3; font-size: 0.8125rem; font-weight: 800; }
