/* Only the marked planning introduction participates in the reveal. */
[data-w40-type-group] > h2,
[data-w40-type-group] > p {
  text-wrap: wrap;
}

[data-w40-type-group] [data-w40-type-target] {
  position: relative;
}

[data-w40-type-group] [data-w40-type-measure] {
  display: block;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

[data-w40-type-group] [data-w40-type-output] {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  display: block;
}

[data-w40-type-group] [data-w40-type-accessible] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[data-w40-type-group][data-w40-state="typing"] [data-w40-type-state="typing"] [data-w40-type-output]::after,
[data-w40-type-group][data-w40-state="erasing"] [data-w40-type-state="erasing"] [data-w40-type-output]::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: .82em;
  margin-inline-end: -1px;
  vertical-align: -.04em;
  background: currentColor;
  animation: w40-type-caret 900ms step-end infinite;
}

@keyframes w40-type-caret {
  0%, 52%, 100% { opacity: 1; }
  53%, 99% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  [data-w40-type-group] [data-w40-type-output]::after {
    display: none !important;
    animation: none !important;
  }
}

/* A shared, quieter hierarchy for the introduction and its native accordions. */
.w41-planning {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 5.5vw, 80px);
}

.w41-planning > header {
  padding-top: 17px;
  max-width: 430px;
  min-width: 0;
}

.w41-planning > header > h2 {
  font-size: 35px;
  line-height: 1.3;
  letter-spacing: -.035em;
  max-width: 20ch;
}

.w41-planning > header > p:last-child {
  font-size: 15px;
  line-height: 1.9;
  margin-top: 22px;
  max-width: 43ch;
}

html[dir="rtl"] .w41-planning > header > h2 {
  letter-spacing: normal;
}

.w41-planning > .w39-topics {
  min-width: 0;
  padding: 8px 30px;
  background: #f5f7f4;
  border: 1px solid var(--line);
}

.w41-planning .w39-topic:first-child {
  border-top: 0;
}

.w41-planning .w39-topic:last-child {
  border-bottom: 0;
}

.w41-planning .w39-topic > summary {
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  min-height: 70px;
  padding-block: 20px;
  gap: 20px;
}

.w41-planning .w39-topic > summary > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.w41-planning .w39-topic > div {
  padding: 0 0 24px;
}

.w41-planning .w39-topic > div > p {
  max-width: 54ch;
  font-size: 14px;
  line-height: 1.9;
}

.w41-planning .w39-topic > div > a {
  max-width: 100%;
  font-size: 11px;
  line-height: 1.7;
  margin-top: 15px;
  gap: 11px;
}

@media (max-width: 1060px) {
  .w41-planning {
    gap: 36px;
  }

  .w41-planning > header > h2 {
    font-size: 32px;
  }

  .w41-planning > .w39-topics {
    padding-inline: 24px;
  }
}

@media (max-width: 760px) {
  .w41-planning > header {
    padding-top: 0;
    max-width: 500px;
    margin-bottom: 29px;
  }

  .w41-planning > header > h2 {
    font-size: 28px;
    line-height: 1.35;
    max-width: 23ch;
  }

  .w41-planning > header > p:last-child {
    font-size: 14px;
    line-height: 1.9;
    margin-top: 18px;
  }

  .w41-planning > .w39-topics {
    padding: 5px 21px;
  }

  .w41-planning .w39-topic > summary {
    font-size: 18px;
    line-height: 1.55;
    min-height: 66px;
    padding-block: 18px;
    gap: 16px;
  }

  .w41-planning .w39-topic > div {
    padding-bottom: 21px;
  }
}
