a.nav-logo { text-decoration: none; }

nav { padding-right: 180px; }

.week-page section { padding: 0; }

.week-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 24px 72px;
}

.week-page:not(.index-page):not(.preview-page):not(.members-page),
.preview-main,
.members-page .read {
  max-width: 34em;
}

.week-crumbs {
  position: static;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 16px;
  margin-bottom: 28px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  z-index: auto;
}

.week-crumbs a {
  color: var(--warm-mid);
  text-decoration: none;
  font-weight: 600;
}

.week-crumbs a:hover { color: var(--coral); }

.week-kicker {
  display: inline-block;
  background: var(--coral-soft);
  color: var(--coral);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.week-page h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 16px;
}

.week-lead,
.week-page p,
.week-page li {
  font-size: 17px;
  line-height: 1.8;
  color: var(--warm-dark);
}

.part-body > p + p,
.read-aloud p + p {
  margin-top: 1.15em;
}

.week-lead { margin-bottom: 16px; }

.week-note,
.week-disclaimer {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 16px 0 28px;
  color: var(--warm-mid);
  font-size: 15px;
}

.week-figure {
  margin: 8px 0 32px;
  background: var(--yellow-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.week-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.week-block {
  margin: 36px 0;
}

.week-block h2 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.35;
}

.steps,
.questions {
  margin: 12px 0 0;
  padding-left: 1.25em;
  list-style: disc;
}

.steps li,
.questions li {
  margin: 0 0 0.9em;
  padding-left: 0.2em;
}

.script p { margin-bottom: 12px; }

.pause {
  color: var(--warm-mid);
  font-size: 15px;
  line-height: 1.8;
}

.read-aloud {
  background: var(--teal-soft, #e7f7f5);
  border-radius: 18px;
  padding: 8px 18px 20px;
  margin: 22px 0;
}

.read-aloud .pause {
  margin: 1.8em 0;
}

.quick {
  background: var(--white);
  border-radius: 18px;
  padding: 16px 18px 8px;
  margin: 8px 0 20px;
  box-shadow: 0 8px 24px rgba(30, 42, 94, 0.05);
}

.quick h2 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--navy);
}

.quick ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.quick li {
  display: grid;
  grid-template-columns: 5.2em 1fr;
  gap: 8px;
  align-items: baseline;
  margin: 0 0 12px;
}

.quick-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.quick-label::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--coral);
  transform: translateY(1px);
}

.quick-body .quick-label::before { background: var(--teal); }
.quick-mind .quick-label::before { background: var(--yellow); }
.quick-baby .quick-label::before { background: var(--navy); }

.part,
#help,
#mood,
.quick {
  scroll-margin-top: 140px;
}

details.part {
  background: var(--white);
  border-radius: 1.6em;
  margin: 14px 0;
  overflow: hidden;
}

details.part#worries { background: var(--yellow-soft); }
details.part#body { background: #FFEADF; }
details.part#mind { background: var(--teal-soft); }
details.part#newborn { background: var(--yellow-soft); }

details.part summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  padding: 16px 18px;
}

details.part summary::-webkit-details-marker { display: none; }

details.part summary::after {
  content: "+";
  color: var(--coral);
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
}

details.part[open] summary::after { content: "–"; }

.part-body { padding: 0 18px 18px; }

.week-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.week-actions--end { justify-content: center; }

.week-follow {
  margin-top: 8px;
  text-align: center;
}

.week-follow a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--warm-mid);
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.week-follow a:hover { color: var(--coral); }

.help-box {
  background: var(--teal-soft);
  border-radius: var(--radius-md);
  padding: 18px 18px 8px;
  margin-top: 12px;
}

.help-box p { margin-bottom: 12px; }

.free-list {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.free-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 30px rgba(30, 42, 94, 0.05);
}

.free-card:hover { transform: translateY(-2px); }

.free-card h2 {
  font-size: 22px;
  color: var(--navy);
  margin: 6px 0 8px;
}

.free-card p { color: var(--warm-mid); margin: 0; }

.print-only { display: none; }

.part-nav {
  position: sticky;
  top: 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
  padding: 8px 0;
  background: rgba(255, 245, 240, 0.94);
  box-shadow: none;
  z-index: 40;
}

.part-nav a,
.part-nav button {
  text-decoration: none;
  background: var(--white);
  color: var(--navy);
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(30, 42, 94, 0.06);
}

.part-nav a:hover,
.part-nav button:hover { color: var(--coral); }

.week-block { scroll-margin-top: 110px; }

.week-page section.part-card {
  background: var(--white);
  border-radius: 1.6em;
  padding: 22px 22px 8px;
  margin: 18px 0 22px;
}

#worries.part-card { background: var(--yellow-soft); }
#body.part-card { background: #FFEADF; }
#mind.part-card { background: var(--teal-soft); }
#newborn.part-card { background: var(--yellow-soft); }
#mood.part-card { background: var(--white); }

.part-card h2 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.35;
}

.part-card h3 {
  font-size: 18px;
  color: var(--navy);
  margin: 18px 0 8px;
  line-height: 1.4;
}

.worry-grid { display: grid; gap: 12px; }

.worry-card {
  border-radius: 1.2em;
  padding: 16px 16px 8px;
}
.worry-card details.part,
.worry-card details.part#body,
.worry-card details.part#mind,
.worry-card details.part#newborn {
  background: transparent;
  margin: 4px 0 0;
  border-radius: 0;
  overflow: visible;
}
.worry-card details.part summary {
  align-items: flex-start;
  padding: 10px 0;
  min-height: 44px;
  font-size: 15px;
}
.worry-card details.part summary::after {
  flex: none;
  margin-top: 0;
}
.worry-card .part-body { padding: 0 0 8px; }

.worry-card h3 {
  font-size: 14px;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.worry-body { background: var(--coral-soft); }
.worry-body h3 { color: var(--coral); }
.worry-mind { background: var(--teal-soft); }
.worry-mind h3 { color: #2E8F86; }
.worry-baby { background: var(--yellow-soft); }
.worry-baby h3 { color: #C48A00; }

.ask-note {
  background: var(--white);
  border-radius: 0.5em 1.1em 1.1em 1.1em;
  padding: 14px 16px;
  margin: 12px 0 16px;
}

.pose-figure {
  margin: 16px 0 8px;
  background: #FFFDFB;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--coral-soft);
}

.pose-figure img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 12px auto 0;
  background: #FFFDFB;
}

.pose-figure figcaption { padding: 4px 18px 8px; }

.pose-locked {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0 8px;
  padding: 16px 18px;
  background: #FFFDFB;
  border: 1px solid var(--coral-soft);
  border-radius: var(--radius-lg);
  color: var(--navy);
}
.pose-locked p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}
.pose-lock-icon {
  flex: none;
  margin-top: 2px;
  color: var(--warm-mid);
}

.pose-name {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.week-pager {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.pager-link {
  flex: 1;
  display: block;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(30, 42, 94, 0.05);
}

.pager-link:hover { transform: translateY(-2px); }

.pager-next { text-align: right; }

.pager-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 4px;
}

.pager-title {
  display: block;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.pager-gap { flex: 1; }

.preview-page { max-width: 1080px; }

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 28px;
  align-items: start;
}

.preview-blur {
  filter: blur(6px);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  margin: 8px 0 16px;
}

.join-panel {
  position: sticky;
  top: 100px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 18px 22px;
  box-shadow: 0 12px 36px rgba(30, 42, 94, 0.08);
  border-top: 4px solid var(--coral);
}

.join-panel p { font-size: 15px; margin-bottom: 16px; }

.join-panel .btn-primary {
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.locked-list {
  margin: 8px 0 16px;
  padding: 0;
  list-style: none;
}

.locked-list li {
  background: var(--cream, #FFF5F0);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 8px;
  font-size: 15px;
}

.index-page { max-width: 1080px; }

.stage-group + .stage-group { margin-top: 36px; }

.stage-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0 0 14px;
}

.stage-group-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--navy);
}

.stage-range {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--warm-mid);
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.week-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 118px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 16px 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(30, 42, 94, 0.05);
}

.week-cell:hover { transform: translateY(-2px); }

.week-open { box-shadow: 0 8px 24px rgba(242, 139, 110, 0.18); }

.week-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--coral);
}

.week-cell-title {
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  font-size: 16px;
}

.week-locked .week-cell-title { color: var(--warm-mid); }

.open-chip {
  align-self: flex-start;
  background: var(--coral-soft);
  color: var(--coral);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}

.lock-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--warm-light);
}

@media (max-width: 860px) {
  .preview-layout { grid-template-columns: 1fr; }

  .join-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 18px 18px 0 0;
    border-top: 4px solid var(--coral);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .join-panel p { display: none; }

  .join-panel .btn-primary {
    width: auto;
    margin-left: auto;
    padding: 12px 22px;
  }

  .preview-page.week-page { padding-bottom: 108px; }
}

@media (max-width: 768px) {
  .week-page { padding: 108px 20px 56px; }
  .week-crumbs { padding-right: 108px; }
  .preview-page.week-page { padding-bottom: 120px; }
  .week-pager { flex-direction: column; }
  .pager-next { text-align: left; }
}

html,
body {
  overflow-x: hidden;
}

.week-page {
  position: relative;
  z-index: 0;
}

.week-page::before,
.week-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.week-page::before {
  width: 420px;
  height: 420px;
  right: -210px;
  top: -60px;
  background: #F28B6E;
  opacity: 0.12;
}

.week-page::after {
  width: 300px;
  height: 300px;
  left: -170px;
  top: 1180px;
  background: #5BBFB5;
  opacity: 0.1;
}

.wk {
  --teal-ink: #247A71;
  font-size: 17px;
  color: var(--warm-dark);
}

.wk img { display: block; max-width: 100%; }

.pill {
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  padding: 0.15em 0.85em;
  border-radius: 999px;
  color: var(--navy);
  vertical-align: middle;
  white-space: nowrap;
}

.pill--week,
.pill--worry { background: var(--navy); color: #fff; }
.pill--body { background: var(--coral); color: var(--navy); }
.pill--mind { background: var(--teal); color: var(--navy); }
.pill--baby { background: var(--yellow); color: var(--navy); }

.wk-head {
  position: relative;
  overflow: hidden;
  border-radius: 1.9em;
  padding: 1.25em 1.3em 1.5em;
  margin: 0 0 0.4em;
  background: linear-gradient(135deg, #FFF5F0 0%, #FFE5DB 100%);
}

.wk-head::before,
.wk-head::after,
.qv__card::before,
.qv__card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.wk-head::before {
  width: 10em;
  height: 10em;
  right: -3.6em;
  top: -4.6em;
  background: var(--coral-light);
  opacity: 0.45;
}

.wk-head::after {
  width: 7em;
  height: 7em;
  left: -2.8em;
  bottom: -3.6em;
  background: var(--teal-light);
  opacity: 0.5;
}

.wk-head__dot,
.qv__deco {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.wk-head__dot--a { width: 3.4em; height: 3.4em; background: var(--yellow-light); right: 3.2em; top: -1.1em; opacity: 0.55; }
.wk-head__dot--b { width: 0.9em; height: 0.9em; background: var(--pink-light); right: 1.4em; bottom: 1.1em; }
.wk-head > * { position: relative; z-index: 1; }
.wk-head__pills { margin: 0 0 0.55em; }
.wk-head__pills .pill { margin: 0 0.3em 0.3em 0; }

.wk-head__phase {
  margin: 0 0 0.35em;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy-light);
}

.week-page .wk-head__title {
  margin: 0;
  font-size: 1.95em;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

html[lang="en"] .wk-head__title { letter-spacing: -0.01em; }

.wk-head__bar {
  width: 2.6em;
  height: 0.28em;
  border-radius: 99px;
  background: var(--coral);
  margin: 0.7em 0 0;
}

.week-page .wk-head__note {
  margin: 0.8em 0 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--navy-light);
}

.wk-peek { position: relative; margin: 0 0 0.6em; }

.wk-peek > .qv__mascot {
  position: absolute;
  z-index: 3;
  top: auto;
  right: 0.8em;
  bottom: -0.55em;
  width: 7em;
  height: auto;
  pointer-events: none;
}

.wk-peek .wk-head { padding-right: 7.4em; }

.qv {
  position: relative;
  margin: 4.5em 0 1.6em;
  scroll-margin-top: 140px;
}

.qv__mascot {
  position: absolute;
  z-index: 3;
  right: 1.2em;
  top: -4.45em;
  width: 7em;
  height: auto;
}

.qv__card {
  position: relative;
  overflow: hidden;
  border-radius: 1.9em;
  padding: 1.3em 1.05em 1.6em;
  background: linear-gradient(160deg, #FFEADF 0%, #FFD9CA 100%);
}

.qv__card::before {
  width: 9em;
  height: 9em;
  right: -3.8em;
  top: 2.4em;
  background: var(--coral-light);
  opacity: 0.5;
}

.qv__card::after {
  width: 8em;
  height: 8em;
  left: -3.2em;
  bottom: -2.8em;
  background: var(--teal-light);
  opacity: 0.6;
}

.qv__deco--a { width: 1.1em; height: 1.1em; background: var(--pink-light); right: 1.4em; top: 6.6em; }
.qv__deco--b { width: 0.7em; height: 0.7em; background: var(--yellow-light); left: 1.1em; bottom: 5.2em; }

.qv__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin: 0 0 1em 0.1em;
}

.qv__ring {
  flex: none;
  width: 5.5em;
  height: 5.5em;
  border-radius: 50%;
  background: rgba(255, 182, 39, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qv__disc {
  width: 4.4em;
  height: 4.4em;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Quicksand", "Noto Sans TC", sans-serif;
  line-height: 1;
}

.qv__disc small { font-size: 0.74em; font-weight: 700; line-height: 1.15; }
.qv__disc b { font-size: 2.1em; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.qv__head { margin-left: 0.85em; }

.qv__title {
  margin: 0;
  font-size: 1.45em;
  line-height: 1.3;
  font-weight: 800;
  color: var(--navy);
}

.week-page .qv__sub {
  margin: 0.15em 0 0;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--teal-ink, #247A71);
}

.qv__list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}

.qv__item { margin: 0; }
.qv__item + .qv__item { margin-top: 1em; }

.qv__bubble {
  position: relative;
  background: #fff;
  border-radius: 1.25em;
  padding: 0.6em 1em 0.75em 0.6em;
}

.qv__bubble::after {
  content: "";
  position: absolute;
  left: 1.5em;
  bottom: -0.5em;
  width: 0;
  height: 0;
  border-left: 0.5em solid transparent;
  border-right: 0.5em solid transparent;
  border-top: 0.55em solid #fff;
}

.qv__row { display: flex; align-items: center; margin: 0 0 0.25em; }

.qv__badge {
  flex: none;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qv__badge img { width: 1.3em; height: 1.3em; }
.qv__item--worry .qv__badge { background: var(--navy); }
.qv__item--body .qv__badge { background: var(--coral); }
.qv__item--mind .qv__badge { background: var(--teal); }
.qv__item--baby .qv__badge { background: var(--yellow); }

.qv__label {
  display: inline-block;
  margin-left: 0.55em;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  padding: 0 0.8em;
  border-radius: 999px;
  color: var(--navy);
}

.qv__item--worry .qv__label { background: var(--navy); color: #fff; }
.qv__item--body .qv__label { background: var(--coral); }
.qv__item--mind .qv__label { background: var(--teal); }
.qv__item--baby .qv__label { background: var(--yellow); }

.week-page .qv__line {
  margin: 0;
  padding-left: 0.4em;
  font-size: 17px;
  line-height: 1.7;
  color: var(--warm-dark);
}

html[lang="en"] .qv__line { line-height: 1.55; }

html[lang="en"] .disc-zh { display: none; }

@media (min-width: 640px) {
  .wk-head { padding: 1.6em 1.9em 1.8em; }
  .week-page .wk-head__title { font-size: 2.5em; }
  .qv { margin-top: 4.8em; }
  .qv__mascot { width: 8em; top: -5.1em; right: 2em; }
  .wk-peek > .qv__mascot { width: 8em; top: auto; right: 1.6em; }
  .qv__card { padding: 1.6em 1.8em 1.5em; }
}

@media (max-width: 359px) {
  .wk { font-size: 16px; }
}

@media print {
  .lang-toggle,
  nav,
  footer,
  .week-crumbs,
  .week-actions,
  .part-nav,
  .join-panel,
  .preview-blur,
  .no-print { display: none !important; }

  body {
    background: #fff;
    color: #000;
    overflow: visible;
  }

  .week-page {
    max-width: none;
    padding: 0;
  }

  details.part > summary,
  details.part > .part-body {
    display: block !important;
  }

  .week-page h1,
  .week-block h2,
  .week-page p,
  .week-page li,
  .week-note,
  .week-disclaimer,
  .pause {
    color: #000;
  }

  .week-kicker,
  .week-note,
  .week-disclaimer,
  .help-box,
  .free-card {
    background: transparent;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .week-figure { background: transparent; }

  .week-block,
  .help-box,
  .questions,
  .steps { break-inside: avoid; }

  h2 { break-after: avoid; }

  .print-only { display: block; margin-top: 18px; font-size: 12px; }

  a { color: #000; text-decoration: none; }

  @page { margin: 16mm; }
}
