:root {
  color-scheme: light;
  --bg-a: #f8f0df;
  --bg-b: #eef4e8;
  --bg-c: #e6efe9;
  --paper: rgba(255, 251, 244, 0.9);
  --surface: #fff;
  --surface-strong: #fff;
  --text: #1e2732;
  --muted: #5b6675;
  --accent: #166b4a;
  --accent-2: #b8892a;
  --accent-3: #8f4f32;
  --line: rgba(30, 39, 50, 0.08);
  --line-strong: rgba(22, 107, 74, 0.18);
  --shadow: 0 18px 44px rgba(34, 44, 55, 0.13);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --reader-scale: 1.08;
}

* {
  box-sizing: border-box;
}

button,
input,
textarea,
select {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(184, 137, 42, 0.22), transparent 26%),
    radial-gradient(circle at top right, rgba(22, 107, 74, 0.18), transparent 25%),
    radial-gradient(circle at bottom left, rgba(143, 79, 50, 0.14), transparent 28%),
    linear-gradient(180deg, var(--bg-a), var(--bg-b) 50%, var(--bg-c));
  font-size: 16px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 39, 50, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 39, 50, 0.025) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.45;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 72%);
}

.bg-blur {
  position: fixed;
  border-radius: 999px;
  filter: blur(52px);
  opacity: 0.55;
  pointer-events: none;
}

.blur-one {
  width: 34vw;
  height: 34vw;
  top: -8vw;
  left: -10vw;
  background: rgba(184, 137, 42, 0.26);
}

.blur-two {
  width: 28vw;
  height: 28vw;
  top: 8vw;
  right: -10vw;
  background: rgba(22, 107, 74, 0.2);
}

.blur-three {
  width: 30vw;
  height: 30vw;
  bottom: -6vw;
  left: 20vw;
  background: rgba(143, 79, 50, 0.16);
}

.app-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 20px 20px calc(84px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.top-hero {
  flex: 0 0 auto;
  padding: 22px 24px 20px;
  position: relative;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.7), rgba(255, 252, 247, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 14px 36px rgba(34, 44, 55, 0.08);
  backdrop-filter: blur(12px);
  display: grid;
  justify-items: start;
  text-align: left;
}

.pill {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(22, 107, 74, 0.1);
  color: #0f5b3f;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, p {
  margin: 0;
}

h1 {
  margin-top: 14px;
  width: 100%;
  font-size: clamp(1.35rem, 5.1vw, 3rem);
  line-height: 1.06;
  letter-spacing: 0;
  font-weight: 800;
  font-family: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  max-width: 100%;
}

.jump-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.jump-search {
  display: grid;
  gap: 8px;
}

.jump-search span {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.jump-search input {
  width: 100%;
  border: 0;
  outline: none;
  border-radius: 20px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
}

.ghost-btn {
  border: 0;
  border-radius: 20px;
  background: rgba(143, 79, 50, 0.12);
  color: #8f4f32;
  font: inherit;
  font-weight: 800;
  padding: 16px 16px;
  box-shadow: 0 12px 24px rgba(143, 79, 50, 0.08);
}

.ghost-btn:active,
.control-btn:active {
  transform: translateY(1px);
}

.reader {
  --reader-padding: 16px;
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  padding: var(--reader-padding);
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.reader-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.page-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(184, 137, 42, 0.16);
  color: #805d16;
  font-size: calc(0.96rem * var(--reader-scale));
  font-weight: 900;
  letter-spacing: 0.03em;
}

.chapter-title {
  margin-top: 10px;
  font-size: clamp(1.8rem, 6.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 900;
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
}

.progress-text {
  flex: none;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.progress-rail {
  width: 100%;
  height: 10px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(11, 43, 30, 0.14);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #2f8a68 55%, var(--accent-2));
  transition: width 0.35s ease;
}

.lesson-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 28px;
  border-radius: 0;
  background: transparent;
  border: 0;
  overflow: visible;
  box-shadow: none;
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.lesson-card.is-swap {
  transform: scale(0.98);
  opacity: 0.7;
}

.hidden {
  display: none !important;
}

.chapter-meta {
  color: var(--muted);
  font-size: calc(1.08rem * var(--reader-scale));
  line-height: 1.72;
  padding: 18px 18px 0;
}

.section-paragraph {
  padding: 4px 0 6px;
  font-size: calc(1rem * var(--reader-scale));
  line-height: 1.72;
  color: #2d3442;
}

.section-paragraph strong {
  color: #183d2f;
}

.highlight-strip {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(22, 107, 74, 0.1);
  color: #0f5b3f;
  font-weight: 900;
  font-size: calc(0.96rem * var(--reader-scale));
  line-height: 1.4;
}

.concept-grid,
.mode-grid,
.reason-grid {
  display: grid;
  gap: 12px;
}

.concept-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.concept-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.concept-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.concept-grid-stack {
  grid-template-columns: 1fr;
}

.review-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.9fr);
  align-items: stretch;
}

.review-grid .concept-card {
  align-content: start;
}

.review-grid .identity-points {
  list-style: none;
  padding-left: 0;
  font-weight: 800;
}

.concept-card,
.mode-card,
.reason-card {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(31, 36, 48, 0.04);
}

.concept-card,
.mode-card {
  padding: 16px 16px 15px;
}

.concept-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.concept-card-full {
  grid-template-columns: minmax(0, 1fr);
}

.concept-card-readable .concept-title {
  font-size: calc(1rem * var(--reader-scale));
  line-height: 1.72;
  font-weight: 700;
}

.leader-list .concept-card {
  align-items: baseline;
}

.leader-list .concept-title {
  font-size: calc(1rem * var(--reader-scale));
  line-height: 1.68;
  font-weight: 700;
}

.concept-card-soft {
  background: var(--surface);
}

.concept-card-strong {
  background: var(--surface);
}

.concept-step {
  display: inline-flex;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #0f5b3f;
  font-size: calc(1.2rem * var(--reader-scale));
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.concept-title {
  font-size: calc(1.2rem * var(--reader-scale));
  line-height: 1.35;
  font-weight: 900;
  color: #1f2430;
}

.concept-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: #333b49;
  font-size: calc(1rem * var(--reader-scale));
  line-height: 1.7;
  font-weight: 500;
}

.concept-card .identity-points {
  grid-column: 1 / -1;
}

.concept-card p + p,
.concept-card p + .identity-points,
.concept-card .identity-points + p {
  margin-top: 6px;
}

.marriage-relationship-card {
  overflow: hidden;
}

.relationship-diagram {
  grid-column: 1 / -1;
  position: relative;
  min-height: 220px;
  margin-top: 8px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 24% 50%, rgba(22, 107, 74, 0.1), transparent 28%),
    radial-gradient(circle at 76% 50%, rgba(184, 137, 42, 0.11), transparent 28%),
    linear-gradient(180deg, rgba(247, 250, 247, 0.96), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(22, 107, 74, 0.14);
}

.relationship-arrows {
  position: absolute;
  inset: 8px 12px;
  width: calc(100% - 24px);
  height: calc(100% - 16px);
  overflow: visible;
}

.relationship-arrow {
  fill: none;
  stroke: rgba(31, 36, 48, 0.56);
  stroke-width: 4;
  stroke-linecap: round;
}

.relationship-arrow-honor {
  stroke: rgba(22, 107, 74, 0.6);
}

.relationship-arrow-submit {
  stroke: rgba(184, 137, 42, 0.62);
}

.relationship-arrows marker path {
  fill: rgba(31, 36, 48, 0.62);
}

.relationship-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #273241;
  font-size: calc(0.96rem * var(--reader-scale));
  line-height: 1.45;
  font-weight: 850;
  box-shadow: 0 6px 16px rgba(31, 36, 48, 0.08);
  white-space: nowrap;
}

.relationship-label-top {
  top: 48px;
}

.relationship-label-bottom {
  bottom: 44px;
}

.relationship-node {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(145deg, #a4c660, #86aa45);
  color: #465367;
  font-size: calc(1.04rem * var(--reader-scale));
  font-weight: 900;
  box-shadow:
    7px 8px 0 rgba(31, 36, 48, 0.18),
    inset 0 0 0 4px rgba(255, 255, 255, 0.26);
}

.relationship-node-wife {
  left: 12%;
}

.relationship-node-husband {
  right: 12%;
}

.marriage-needs-card {
  overflow: hidden;
}

.diagram-image-frame {
  display: flex;
  justify-content: center;
  grid-column: 1 / -1;
  margin: 8px 0 0;
  overflow: hidden;
  border-radius: 22px;
  border: 0;
  background: transparent;
}

.diagram-image {
  display: block;
  width: 100%;
  height: auto;
}

.diagram-image[src$="course-overview.svg"] {
  width: min(100%, 920px);
}

.needs-diagram {
  grid-column: 1 / -1;
  position: relative;
  min-height: 380px;
  margin-top: 8px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 50%, rgba(22, 107, 74, 0.1), transparent 24%),
    radial-gradient(circle at 82% 50%, rgba(184, 137, 42, 0.11), transparent 24%),
    linear-gradient(180deg, rgba(247, 250, 247, 0.96), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(22, 107, 74, 0.14);
}

.needs-diagram .relationship-node {
  top: 50%;
}

.needs-cycle-arrows {
  position: absolute;
  inset: 24px 7%;
  z-index: 1;
  width: 86%;
  height: calc(100% - 48px);
  overflow: visible;
  pointer-events: none;
}

.needs-cycle-arrow {
  fill: none;
  stroke: rgba(31, 36, 48, 0.58);
  stroke-width: 3.2;
  stroke-linecap: round;
}

.needs-cycle-arrow-top {
  stroke: rgba(22, 107, 74, 0.58);
}

.needs-cycle-arrow-bottom {
  stroke: rgba(184, 137, 42, 0.62);
}

.needs-cycle-arrows marker path {
  fill: rgba(31, 36, 48, 0.62);
}

.needs-node-wife {
  left: 8%;
}

.needs-node-husband {
  right: 8%;
}

.needs-flow {
  position: absolute;
  left: 31%;
  right: 31%;
  z-index: 4;
  display: grid;
  gap: 7px;
}

.needs-flow-to-husband {
  top: 84px;
}

.needs-flow-to-wife {
  top: 220px;
}

.needs-flow-row {
  position: relative;
  min-height: 28px;
  display: grid;
  place-items: center;
  color: #273241;
  font-size: calc(0.94rem * var(--reader-scale));
  line-height: 1.35;
  font-weight: 850;
}

.needs-flow-row::before,
.needs-flow-row::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.needs-flow-row::before {
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(31, 36, 48, 0.62);
}

.needs-flow-row::after {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.needs-flow-to-husband .needs-flow-row::after {
  right: 0;
  border-left: 9px solid rgba(31, 36, 48, 0.62);
}

.needs-flow-to-wife .needs-flow-row::after {
  left: 0;
  border-right: 9px solid rgba(31, 36, 48, 0.62);
}

.needs-flow-row span {
  position: relative;
  z-index: 1;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(31, 36, 48, 0.06);
  white-space: nowrap;
}

.concept-note {
  padding-left: 12px;
  color: #556071 !important;
  font-size: calc(1rem * var(--reader-scale)) !important;
  line-height: 1.72 !important;
}

.concept-card-hierarchy {
  gap: 12px;
}

.lesson-hierarchy {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.lesson-hierarchy-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.lesson-hierarchy-number {
  flex: none;
  min-width: 1.8em;
  color: #0f5b3f;
  font-size: calc(1rem * var(--reader-scale));
  line-height: 1.55;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.lesson-hierarchy-text {
  flex: 1;
  color: #2d3442;
  font-size: calc(0.99rem * var(--reader-scale));
  line-height: 1.72;
  font-weight: 750;
}

.lesson-hierarchy-major .lesson-hierarchy-text {
  color: #1f2430;
  font-weight: 800;
}

.lesson-hierarchy-points {
  margin: 0;
  padding-left: 20px;
  color: #2f3745;
}

.lesson-hierarchy-points li + li {
  margin-top: 6px;
}

.mode-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mode-card {
  display: grid;
  gap: 10px;
}

.mode-card-wrong {
  background: var(--surface);
}

.mode-card-neutral {
  background: var(--surface);
}

.mode-card-right {
  background: var(--surface);
}

.mode-tag {
  display: inline-flex;
  align-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(30, 39, 50, 0.06);
  color: #4c5868;
  font-size: 0.96rem;
  font-weight: 900;
}

.mode-card h4 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.45;
  color: #1f2430;
  font-weight: 900;
}

.mode-card p {
  margin: 0;
  color: #5f6b7e;
  font-size: 1rem;
  line-height: 1.55;
}

.mode-points {
  margin: 0;
  padding-left: 18px;
  color: #2f3745;
  font-size: 1.02rem;
  line-height: 1.7;
}

.mode-points li + li {
  margin-top: 7px;
}

.reason-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reason-card {
  padding: 14px 15px;
  color: #2f3745;
  font-size: 1.03rem;
  line-height: 1.7;
}

.reason-card strong {
  color: #0f5b3f;
}

.series-grid,
.trend-grid,
.needs-grid,
.pair-grid,
.identity-grid {
  display: grid;
  gap: 12px;
}

.series-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.series-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(31, 36, 48, 0.04);
  display: grid;
  gap: 10px;
}

.series-card-one {
  background: var(--surface);
}

.series-card-two {
  background: var(--surface);
}

.series-card-three {
  background: var(--surface);
}

.series-kicker {
  display: inline-flex;
  align-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(30, 39, 50, 0.06);
  color: #4c5868;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.series-card h4 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.4;
  font-weight: 900;
}

.series-focus,
.series-challenge,
.series-goal {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #303744;
}

.series-points {
  margin: 0;
  padding-left: 18px;
  color: #2f3745;
  line-height: 1.7;
}

.series-points li + li {
  margin-top: 6px;
}

.trend-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trend-card,
.need-card,
.pair-card,
.identity-card {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(31, 36, 48, 0.04);
}

.trend-card {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.trend-card-up {
  background: var(--surface);
}

.trend-card-down {
  background: var(--surface);
}

.trend-kicker {
  color: #5b6675;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.trend-value {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.15;
  font-weight: 900;
  color: #1f2430;
}

.trend-card p {
  margin: 0;
  color: #303744;
  line-height: 1.7;
}

.callout-card {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: #28323f;
  line-height: 1.7;
}

.man-model-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.man-model-row {
  display: grid;
  grid-template-columns: minmax(9.5rem, 11rem) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 0 2px;
  color: #2d3442;
  font-size: calc(1rem * var(--reader-scale));
  line-height: 1.72;
}

.man-model-row strong {
  color: #0f5b3f;
  font-weight: 900;
}

.man-model-row span {
  color: #2d3442;
}

.needs-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.need-card {
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  background: var(--surface);
}

.need-card strong {
  flex: none;
  color: #0f5b3f;
  font-size: 0.98rem;
  font-weight: 900;
  min-width: 3rem;
}

.need-card span {
  color: #303744;
  font-size: calc(1rem * var(--reader-scale));
  line-height: 1.7;
}

.pair-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pair-card {
  padding: 14px 16px 15px;
  display: grid;
  gap: 8px;
  background: var(--surface);
}

.pair-head {
  display: block;
  align-self: start;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #1f2430;
  font-size: calc(1.2rem * var(--reader-scale));
  line-height: 1.35;
  font-weight: 900;
}

.pair-title-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
}

.pair-label {
  color: #0f5b3f;
}

.pair-body {
  font-size: calc(1rem * var(--reader-scale));
  line-height: 1.7;
  font-weight: 500;
  color: #333b49;
}

.pair-tail {
  color: #505a69;
  font-size: 0.96rem;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .pair-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pair-body {
    font-size: calc(0.98rem * var(--reader-scale));
    line-height: 1.78;
    font-weight: 500;
  }
}

.identity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.identity-card {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.identity-card-adam {
  background: var(--surface);
}

.identity-card-jesus {
  background: var(--surface);
}

.identity-kicker {
  display: inline-flex;
  align-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(30, 39, 50, 0.06);
  color: #4c5868;
  font-size: 0.96rem;
  font-weight: 900;
}

.identity-card h4 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.4;
  font-weight: 900;
  color: #1f2430;
}

.identity-card p {
  margin: 0;
  color: #303744;
  line-height: 1.68;
}

.identity-points {
  margin: 0;
  padding-left: 18px;
  color: #2f3745;
  line-height: 1.72;
  font-size: calc(1rem * var(--reader-scale));
  font-weight: 500;
}

.identity-points li + li {
  margin-top: 8px;
}

.identity-points-nested {
  margin-top: 6px;
  padding: 8px 0 8px 22px;
  color: #556071;
}

.identity-points-nested li {
  margin-top: 4px;
  font-size: calc(1rem * var(--reader-scale));
  line-height: 1.72;
}

.identity-points-nested li + li {
  margin-top: 8px;
}

.identity-points-subitem {
  position: relative;
  list-style: none;
  margin-left: 14px;
  padding-left: 14px;
  color: #6a7687;
}

.identity-points-subitem::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.92em;
  width: 6px;
  height: 1.5px;
  border-radius: 999px;
  background: rgba(15, 91, 63, 0.42);
}

.pdf-item {
  position: relative;
  margin: 0;
  padding: 5px 0 7px 28px;
  color: #2d3442;
  font-size: calc(1.05rem * var(--reader-scale));
  line-height: 1.78;
}

.pdf-item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.pdf-item.bullet {
  padding-left: 24px;
}

.extreme-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.extreme-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.extreme-row span {
  color: #0f5b3f;
  font-weight: 900;
}

.extreme-row strong {
  color: #252c38;
  font-weight: 800;
  line-height: 1.65;
}

.subsection {
  margin-top: 14px;
}

.subsection h4 {
  margin: 0 0 8px;
  font-size: calc(1.18rem * var(--reader-scale));
  line-height: 1.5;
  color: #1f2430;
  font-weight: 900;
}

.subsection p {
  margin: 0;
  font-size: calc(1rem * var(--reader-scale));
  line-height: 1.72;
  color: #333b49;
}

.table-wrap,
.desktop-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  border-radius: 18px;
  border: 1px solid rgba(31, 36, 48, 0.1);
  background: #fff;
}

.table-wrap + .concept-grid,
.desktop-table + .concept-grid,
.table-wrap + .subsection,
.desktop-table + .subsection,
.table-wrap + .section-paragraph,
.desktop-table + .section-paragraph {
  margin-top: 16px;
}

.lesson-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: calc(1rem * var(--reader-scale));
  color: #303744;
  table-layout: auto;
}

.lesson-table th,
.lesson-table td {
  border: 1px solid rgba(31, 36, 48, 0.14);
  padding: 14px 12px;
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lesson-table thead th {
  background: #f5f7fb;
  text-align: center;
  font-weight: 800;
  color: #50586a;
}

.lesson-table thead th:first-child,
.lesson-table tbody th {
  width: 140px;
  background: #fbfcfe;
  font-weight: 800;
  color: #60687a;
  white-space: normal;
}

.lesson-table thead th:first-child,
.lesson-table tbody th {
  padding-left: 10px;
  padding-right: 10px;
}

.lesson-table th:not(:first-child),
.lesson-table td {
  width: auto;
}

.lesson-table ul {
  margin: 0;
  padding-left: 18px;
}

.lesson-table li + li {
  margin-top: 8px;
}

.table-hint {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 36, 48, 0.06);
  color: #60687a;
  font-size: 0.96rem;
  font-weight: 700;
}

.lesson-body {
  padding: 12px 0 20px;
  overflow: auto;
  padding-bottom: 12px;
}

.section-block + .section-block {
  margin-top: 34px;
}

@media (min-width: 768px) {
  .reader {
    --reader-padding: 22px;
  }

  .lesson-body {
    padding: 18px 0 24px;
  }

  .section-block + .section-block {
    margin-top: 42px;
  }
}

.section-label {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  margin: 8px 0 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #0f5b3f;
  font-size: calc(1.42rem * var(--reader-scale));
  font-weight: 900;
  letter-spacing: 0.01em;
}

.section-label::after {
  content: "";
  flex: 1;
  min-width: 48px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(22, 107, 74, 0.24), transparent);
}

.intro-copy {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.intro-copy p {
  margin: 0;
  color: #333b49;
  font-size: 1.08rem;
  line-height: 1.85;
}

.official-links {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.official-link {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.official-link span {
  color: #0f5b3f;
  font-size: 0.98rem;
  font-weight: 900;
}

.official-link strong {
  color: #1f2430;
  font-size: 1rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.official-link em {
  color: var(--muted);
  font-size: 0.96rem;
  font-style: normal;
  overflow-wrap: anywhere;
}

.copyright-note {
  display: block;
  margin: 8px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(31, 36, 48, 0.1);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}

.directory-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.directory-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  padding: 14px 14px 14px 44px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 1.02rem;
  line-height: 1.65;
  position: relative;
}

.directory-link::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.directory-link:active {
  transform: translateY(1px);
}

.body-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.body-list li {
  position: relative;
  padding: 14px 14px 14px 44px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: clamp(0.98rem, 2.6vw, 1.08rem);
  line-height: 1.75;
}

.body-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #2f8a68);
  box-shadow: 0 0 0 5px rgba(22, 107, 74, 0.08);
}

.question-grid {
  display: grid;
  gap: 10px;
}

.question-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: clamp(0.98rem, 2.6vw, 1.06rem);
  line-height: 1.7;
}

.reflection-block {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.reflection-block .section-label {
  margin-bottom: 14px;
}

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

.reflection-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(31, 36, 48, 0.04);
}

.reflection-card span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.reflection-card p {
  margin: 0;
  color: #1f2430;
  font-size: calc(1rem * var(--reader-scale));
  line-height: 1.72;
  font-weight: 700;
}

.reflection-subcard {
  margin-left: 28px;
  padding: 12px 14px;
  background: rgba(31, 36, 48, 0.025);
}

.reflection-subcard span {
  width: 22px;
  height: 22px;
  background: rgba(22, 107, 74, 0.14);
  color: #0f5b3f;
  font-size: 0.9rem;
}

.reflection-subcard p {
  color: #4e5a69;
  font-weight: 650;
}

.controls {
  position: relative;
  width: min(100%, 720px);
  max-width: none;
  z-index: 20;
  padding: 8px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 50px rgba(32, 39, 56, 0.14);
  backdrop-filter: blur(22px) saturate(1.2);
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr 1fr 1fr;
  gap: 8px;
  margin-top: 0;
}

.bottom-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  pointer-events: none;
  padding: 0 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.82));
}

.bottom-dock .controls {
  pointer-events: auto;
  margin: 0 auto;
}

.control-btn {
  border: 0;
  border-radius: 22px;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  max-height: 62px;
  padding: 0;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  color: inherit;
}

.control-btn.secondary {
  background: rgba(30, 39, 50, 0.06);
  color: #39485a;
}

.control-btn.primary {
  background: linear-gradient(135deg, var(--accent), #2f8a68, var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 20px rgba(22, 107, 74, 0.16);
}

.control-btn.tertiary {
  background: rgba(184, 137, 42, 0.12);
  color: #805d16;
  border: 1px solid rgba(184, 137, 42, 0.1);
}

.control-btn.font-btn {
  background: rgba(22, 107, 74, 0.1);
  color: #0f5b3f;
}

.control-btn:disabled {
  opacity: 0.45;
  box-shadow: none;
}

.control-icon {
  width: 28px;
  height: 28px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.control-icon.font-icon {
  width: 29px;
  height: 29px;
  stroke-width: 2.05;
}

.control-icon.page-icon {
  width: 30px;
  height: 30px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.control-btn:focus-visible,
.ghost-btn:focus-visible,
.jump-search input:focus-visible,
.close-btn:focus-visible,
.catalog-item:focus-visible {
  outline: 3px solid rgba(15, 157, 88, 0.22);
  outline-offset: 2px;
}

.catalog-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  justify-items: end;
  align-items: center;
  padding: 16px;
}

.catalog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 18, 26, 0.18);
  backdrop-filter: blur(3px);
  z-index: 0;
}

.catalog-sheet {
  position: relative;
  width: min(92vw, 380px);
  background: rgba(255, 252, 247, 0.98);
  border-radius: 24px;
  box-shadow: 0 16px 50px rgba(32, 39, 56, 0.22);
  padding: 16px;
  max-height: min(72vh, 680px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.catalog-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.catalog-head h3 {
  font-size: 1.5rem;
}

.catalog-head p {
  margin-top: 6px;
  color: var(--muted);
}

.close-btn {
  border: 0;
  border-radius: 16px;
  background: rgba(30, 39, 50, 0.06);
  color: #39485a;
  font: inherit;
  font-weight: 800;
  padding: 12px 14px;
}

.catalog-list {
  display: grid;
  gap: 10px;
}

.catalog-item {
  border: 0;
  text-align: left;
  border-radius: 18px;
  background: var(--surface);
  padding: 14px 14px 14px 16px;
  display: grid;
  gap: 4px;
  border: 1px solid transparent;
}

.catalog-item.active {
  background: linear-gradient(135deg, rgba(22, 107, 74, 0.12), rgba(184, 137, 42, 0.12));
  border: 1px solid rgba(22, 107, 74, 0.12);
}

.catalog-item:not(.active) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.catalog-num {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.catalog-item strong {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
}

@media (max-width: 620px) {
  .app-shell {
    padding: 10px 10px calc(86px + env(safe-area-inset-bottom));
  }

  .top-hero {
    padding: 14px 14px 12px;
  }

  .pill {
    padding: 7px 12px;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
  }

  h1 {
    font-size: clamp(1.3rem, 5.8vw, 2rem);
  }

  .jump-row {
    grid-template-columns: 1fr;
  }

  .reader {
    --reader-padding: 12px;
    border-radius: 26px;
  }

  .lesson-table {
    min-width: 720px;
  }

  .reader-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .bottom-dock {
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: 0 -10px 28px rgba(32, 39, 56, 0.12);
    backdrop-filter: blur(22px) saturate(1.2);
  }

  .bottom-dock .controls {
    width: 100%;
    max-width: none;
  }

  .controls {
    grid-template-columns: 1fr 1fr 1.25fr 1fr 1fr;
    gap: 7px;
    border-radius: 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: none;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }

  .control-btn {
    aspect-ratio: auto;
    height: 56px;
    max-height: none;
    border-radius: 18px;
  }

  .control-icon {
    width: 26px;
    height: 26px;
  }

  .control-icon.font-icon {
    width: 27px;
    height: 27px;
  }

  .control-icon.page-icon {
    width: 28px;
    height: 28px;
  }

  .directory-list li {
    padding-left: 40px;
  }

  .catalog-sheet {
    width: min(88vw, 360px);
    max-height: 72vh;
  }

  .concept-grid,
  .concept-grid-2,
  .review-grid,
  .mode-grid,
  .reason-grid {
    grid-template-columns: 1fr;
  }

  .desktop-table {
    display: block;
  }

  .relationship-diagram {
    min-height: 190px;
  }

  .relationship-node {
    width: 86px;
    height: 86px;
    font-size: calc(0.98rem * var(--reader-scale));
  }

  .relationship-node-wife {
    left: 7%;
  }

  .relationship-node-husband {
    right: 7%;
  }

  .relationship-label-top {
    top: 38px;
  }

  .relationship-label-bottom {
    bottom: 34px;
  }

  .needs-diagram {
    min-height: 350px;
  }

  .needs-diagram .relationship-node {
    top: 50%;
  }

  .needs-cycle-arrows {
    inset: 20px 4%;
    width: 92%;
    height: calc(100% - 40px);
  }

  .needs-node-wife {
    left: 4%;
  }

  .needs-node-husband {
    right: 4%;
  }

  .needs-flow {
    left: 29%;
    right: 29%;
    gap: 6px;
  }

  .needs-flow-to-husband {
    top: 78px;
  }

  .needs-flow-to-wife {
    top: 204px;
  }

  .needs-flow-row {
    min-height: 26px;
    font-size: calc(0.86rem * var(--reader-scale));
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: clamp(1.2rem, 5.6vw, 1.7rem);
  }

  .chapter-meta {
    font-size: 0.96rem;
  }

  .section-label {
    font-size: calc(1.18rem * var(--reader-scale));
  }

  .body-list li {
    padding-left: 40px;
  }

  .body-list li::before {
    left: 12px;
    top: 17px;
    width: 16px;
    height: 16px;
  }

  .bottom-dock {
    bottom: 0;
  }

  .controls {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 0.92fr) minmax(0, 1.12fr) minmax(0, 0.92fr) minmax(0, 0.78fr);
    gap: 4px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }

  .control-btn {
    height: 54px;
    padding: 0;
    font-size: 0.86rem;
  }

  .control-icon {
    width: 22px;
    height: 22px;
  }

  .control-icon.font-icon,
  .control-icon.page-icon {
    width: 23px;
    height: 23px;
  }
}
