.hpc-childrens-lesson-page {
  --hpc-ink: #24343b;
  --hpc-navy: #294d5b;
  --hpc-teal: #2d8f86;
  --hpc-coral: #e76f51;
  --hpc-gold: #f2c14e;
  --hpc-sage: #5d9f66;
  --hpc-purple: #76528f;
  --hpc-mist: #f3f8f6;
  --hpc-paper: #fffdfa;
  --hpc-line: #c9ddd8;
}

.hpc-childrens-lesson-page .sc_layouts_title,
.hpc-childrens-lesson-page .post_header,
.hpc-childrens-lesson-page .post_meta,
.hpc-childrens-lesson-page .sidebar,
.hpc-childrens-lesson-page .related_wrap {
  display: none !important;
}

.hpc-childrens-lesson-page .page_content_wrap {
  padding: clamp(28px, 5vw, 64px) 0 !important;
  background:
    radial-gradient(circle at 8% 4%, rgba(242, 193, 78, .18), transparent 24rem),
    radial-gradient(circle at 92% 12%, rgba(45, 143, 134, .13), transparent 27rem),
    #f6faf8 !important;
}

.hpc-childrens-lesson-page .content_wrap,
.hpc-childrens-lesson-page .content,
.hpc-childrens-lesson-page .post_item_single,
.hpc-childrens-lesson-page .post_content_single {
  width: min(1180px, calc(100% - 40px)) !important;
  max-width: none !important;
  margin-inline: auto !important;
}

.hpc-childrens-lesson-page .post_item_single,
.hpc-childrens-lesson-page .post_content_single {
  width: 100% !important;
}

.hpc-lesson.hpc-theme-v6 {
  width: 100% !important;
  max-width: 1040px !important;
  margin: 0 auto !important;
  color: var(--hpc-ink);
  font-size: 17px;
  line-height: 1.65;
}

.hpc-lesson.hpc-theme-v6 > section:first-of-type {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px !important;
  box-shadow: 0 18px 48px rgba(35, 62, 70, .18);
}

.hpc-lesson.hpc-theme-v6 > section:first-of-type::before,
.hpc-lesson.hpc-theme-v6 > section:first-of-type::after {
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hpc-lesson.hpc-theme-v6 > section:first-of-type::before {
  top: -96px;
  right: -50px;
  background: rgba(242, 193, 78, .22);
}

.hpc-lesson.hpc-theme-v6 > section:first-of-type::after {
  right: 90px;
  bottom: -145px;
  background: rgba(255, 255, 255, .1);
}

.hpc-lesson .lesson-title {
  max-width: 18ch;
  text-wrap: balance;
}

.hpc-lesson-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: center;
  margin: 20px 0 26px;
  padding: 16px;
  border: 1px solid var(--hpc-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 24px rgba(41, 77, 91, .08);
}

.hpc-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hpc-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 15px;
  font: inherit;
  font-size: .93rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
}

.hpc-action-primary { background: var(--hpc-coral); color: #fff !important; }
.hpc-action-secondary { background: var(--hpc-navy); color: #fff !important; }
.hpc-action-quiet { border-color: #b9d2cd; background: #f3f8f6; color: var(--hpc-navy); }
.hpc-action:hover, .hpc-action:focus-visible { filter: brightness(.94); transform: translateY(-1px); }

.hpc-age-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  color: #52646b;
  font-size: .83rem;
}

.hpc-age-guide strong { width: 100%; color: var(--hpc-navy); text-align: right; }
.hpc-age-guide span { border-radius: 999px; padding: 5px 9px; background: #eef6f4; }
.hpc-age-guide span:last-child { background: #f4eff8; }

.hpc-lesson .lesson-map-v5 {
  margin: 26px 0;
  overflow: hidden;
  border: 1px solid #b8d5d1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(41, 77, 91, .08);
}

.hpc-lesson .lesson-map-v5 > header {
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--hpc-navy), #2d7469);
  color: #fff;
}

.hpc-lesson .lesson-map-v5 > header h2 { margin: 0 0 5px; color: #fff; font-size: 1.75rem; }
.hpc-lesson .lesson-map-v5 > header p { margin: 0; color: #e8f5f2; }

.hpc-lesson .path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 20px;
}

.hpc-lesson .path-step {
  position: relative;
  min-height: 108px;
  padding: 15px 14px 14px 52px;
  border: 1px solid #d7e4e1;
  border-radius: 12px;
  background: #f9fcfb;
}

.hpc-lesson .path-step .path-number {
  position: absolute;
  top: 15px;
  left: 14px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--hpc-navy);
  color: #fff;
  font-weight: 800;
}

.hpc-lesson .path-step h3 { margin: 0 0 3px; color: var(--hpc-navy); font-size: 1.05rem; }
.hpc-lesson .path-step .path-time { display: block; margin-bottom: 5px; color: #2d7469; font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hpc-lesson .path-step p { margin: 0; color: #52636b; font-size: .94rem; line-height: 1.4; }

.hpc-lesson .map-bottom {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
  padding: 0 20px 20px;
}

.hpc-lesson .map-card { padding: 16px 18px; border: 1px solid #f0d98c; border-radius: 12px; background: #fff7dc; }
.hpc-lesson .map-card:nth-child(2) { border-color: #b8d5d1; background: #eef7f5; }
.hpc-lesson .map-card h3 { margin: 0 0 8px; color: var(--hpc-navy); }
.hpc-lesson .map-card ul { margin: 0; padding-left: 1.25rem; columns: 2; column-gap: 24px; }
.hpc-lesson .map-card li { margin: .3rem 0; break-inside: avoid; }

.hpc-lesson .teacher-snapshot-v5 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 20px;
  padding: 14px;
  border: 1px solid #c5ded9;
  border-radius: 10px;
  background: #eef7f5;
}

.hpc-lesson .teacher-snapshot-v5 > div { padding: 10px 12px; border-radius: 8px; background: #fff; }
.hpc-lesson .teacher-snapshot-v5 strong { display: block; margin-bottom: 3px; color: var(--hpc-navy); font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

.hpc-lesson .leader-heart-v5,
.hpc-lesson .story-route-v5,
.hpc-lesson .discussion-ladder-v5,
.hpc-lesson .inclusive-v5,
.hpc-lesson .declaration-v5,
.hpc-lesson .blessing-v5 {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid #c9dedb;
  border-radius: 11px;
  background: #f6fbf9;
}

.hpc-lesson .leader-heart-v5 { border-left: 6px solid var(--hpc-purple); background: #f0ebfb; }
.hpc-lesson .context-grid-v5 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 22px; }
.hpc-lesson .context-card-v5 { padding: 14px 15px; border: 1px solid #d7e4e1; border-radius: 10px; background: #fff; }
.hpc-lesson .context-card-v5:last-child { grid-column: 1 / -1; border-color: #f0d98c; background: #fff7dc; }

.hpc-lesson .lesson-snapshot-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  padding: 0;
  list-style: none;
}

.hpc-lesson .lesson-snapshot-list li { margin: 0; padding: 10px 12px; border: 1px solid #c9dedb; border-radius: 8px; background: #f6fbf9; }

.hpc-lesson details {
  margin: 0 0 16px !important;
  overflow: clip;
  border: 1px solid #d5e2df !important;
  border-left: 8px solid var(--hpc-teal) !important;
  border-radius: 14px !important;
  background: var(--hpc-paper) !important;
  box-shadow: 0 7px 22px rgba(41, 77, 91, .07);
}

.hpc-lesson details:nth-of-type(6n+2) { border-left-color: var(--hpc-gold) !important; }
.hpc-lesson details:nth-of-type(6n+3) { border-left-color: var(--hpc-coral) !important; }
.hpc-lesson details:nth-of-type(6n+4) { border-left-color: var(--hpc-sage) !important; }
.hpc-lesson details:nth-of-type(6n+5) { border-left-color: var(--hpc-purple) !important; }
.hpc-lesson details:nth-of-type(6n+6) { border-left-color: var(--hpc-navy) !important; }

.hpc-lesson details > summary {
  min-height: 64px;
  align-items: center;
  box-sizing: border-box;
  padding: 17px 20px !important;
  color: var(--hpc-navy) !important;
  font-size: 1.08rem !important;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
}

.hpc-lesson details[open] > summary {
  border-bottom: 1px solid #dce8e5;
  background: #f8fbfa;
}

.hpc-lesson details > div { padding: 18px 22px 24px !important; }
.hpc-lesson details h3 { margin: 1.4rem 0 .5rem; color: var(--hpc-navy); line-height: 1.25; }
.hpc-lesson details p { margin: .2rem 0 1rem; }
.hpc-lesson details ul, .hpc-lesson details ol { margin: .45rem 0 1.15rem; padding-left: 1.45rem; }
.hpc-lesson details li { margin: .42rem 0; padding-left: .15rem; line-height: 1.55; }
.hpc-lesson details li::marker { color: var(--hpc-teal); font-weight: 800; }

.hpc-lesson .teacher-script-v5,
.hpc-lesson [class*="leader-says"],
.hpc-lesson .question-block-v5,
.hpc-lesson .option-block-v5,
.hpc-lesson aside,
.hpc-lesson .section-context-3-1 {
  border-radius: 10px !important;
}

.hpc-lesson .coloring-sheet-actions {
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(41, 77, 91, .07);
}

.hpc-childrens-lesson-page .post_item_single > .header_content_wrap {
  width: min(700px, calc(100% - 40px));
  margin: 0 auto 34px;
}

.hpc-childrens-lesson-page .post_item_single > .header_content_wrap .post_featured {
  overflow: hidden;
  margin: 0;
  border: 1px solid #dce7e4;
  border-radius: 18px;
  background: #fffaf0;
  box-shadow: 0 12px 30px rgba(41, 77, 91, .11);
}

.hpc-childrens-lesson-page .post_item_single > .header_content_wrap .post_featured img.wp-post-image {
  display: block;
  width: 100% !important;
  height: auto !important;
}

.hpc-childrens-lesson-page .comments_wrap {
  width: min(1040px, calc(100% - 40px));
  margin: 48px auto 0;
  padding: clamp(22px, 4vw, 38px);
  box-sizing: border-box;
  border: 1px solid var(--hpc-line);
  border-radius: 18px;
  background: #fff;
}

@media (max-width: 760px) {
  .hpc-childrens-lesson-page .content_wrap,
  .hpc-childrens-lesson-page .content { width: min(100% - 24px, 1180px) !important; }
  .hpc-childrens-lesson-page .post_item_single > .header_content_wrap {
    width: calc(100% - 16px);
    margin-bottom: 24px;
  }
  .hpc-lesson.hpc-theme-v6 { font-size: 16px; }
  .hpc-lesson.hpc-theme-v6 > section:first-of-type { border-radius: 17px !important; }
  .hpc-lesson-actions { grid-template-columns: 1fr; padding: 13px; }
  .hpc-action-buttons, .hpc-action { width: 100%; }
  .hpc-age-guide { justify-content: flex-start; }
  .hpc-age-guide strong { text-align: left; }
  .hpc-lesson .path-grid,
  .hpc-lesson .map-bottom,
  .hpc-lesson .teacher-snapshot-v5,
  .hpc-lesson .context-grid-v5 { grid-template-columns: 1fr; }
  .hpc-lesson .context-card-v5:last-child { grid-column: auto; }
  .hpc-lesson .map-card ul { columns: 1; }
  .hpc-lesson .lesson-map-v5 > header { padding: 18px; }
  .hpc-lesson .path-grid { padding: 14px; }
  .hpc-lesson .map-bottom { padding: 0 14px 14px; }
  .hpc-lesson details > summary { min-height: 58px; padding: 14px !important; }
  .hpc-lesson details > div { padding: 14px 15px 19px !important; }
}

@media print {
  .hpc-screen-only { display: none !important; }
}
