/*
 * Topic landing pages and the article-to-service context block.
 *
 * This stylesheet intentionally stays scoped to the new renderer. The home
 * page and established editorial templates keep their existing composition.
 */

.yd-topic-landing {
  --yd-topic-surface: #fffdf9;
  --yd-topic-soft: #f1eee6;
  --yd-topic-sage: #e4eae2;
  --yd-topic-deep: var(--yd-deep, #30483d);
  --yd-topic-ink: var(--yd-ink, #1f2924);
  --yd-topic-muted: var(--yd-muted, #607067);
  --yd-topic-line: var(--yd-line, rgba(31, 41, 36, .17));
  --yd-topic-shadow: 0 22px 60px rgba(31, 41, 36, .075);
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  color: var(--yd-topic-ink);
}

.yd-topic-landing *,
.yd-topic-landing *::before,
.yd-topic-landing *::after,
.yd-article-service-link,
.yd-article-service-link *,
.yd-article-service-link *::before,
.yd-article-service-link *::after {
  box-sizing: border-box;
}

.yd-topic-landing > *,
.yd-topic-landing :where(header, section, article, aside, nav, div, dl, ol, ul, li),
.yd-article-service-link > * {
  min-width: 0;
  max-width: 100%;
}

.yd-topic-landing :where(h1, h2, h3, p, li, dt, dd, a),
.yd-article-service-link :where(h2, p, a) {
  overflow-wrap: break-word;
}

.yd-topic-landing img {
  display: block;
  max-width: 100%;
  height: auto;
}

.yd-topic-landing :where(h1, h2, h3) {
  color: var(--yd-topic-ink);
  font-family: var(--yd-serif, Georgia, serif);
  font-weight: 400;
  text-wrap: balance;
}

.yd-topic-landing :where(.yd-button, .yd-text-link),
.yd-article-service-link .yd-text-link {
  max-width: 100%;
  min-height: 44px;
  white-space: normal;
}

.yd-topic-landing :where(a, button):focus-visible,
.yd-article-service-link a:focus-visible {
  outline: 3px solid #a76524;
  outline-offset: 4px;
}

/* Breadcrumbs */
.yd-topic-breadcrumbs {
  padding: 0 0 clamp(24px, 4vw, 42px);
  border-bottom: 1px solid var(--yd-topic-line);
}

.yd-topic-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  color: var(--yd-topic-muted);
  font-size: .76rem;
  list-style: none;
}

.yd-topic-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.yd-topic-breadcrumbs li:not(:last-child)::after {
  color: #8b968f;
  content: "/";
}

.yd-topic-breadcrumbs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--yd-topic-muted);
  text-decoration-thickness: 1px;
}

.yd-topic-breadcrumbs [aria-current="page"] {
  min-height: 44px;
  color: var(--yd-topic-ink);
}

/* Hero */
.yd-topic-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, .72fr);
  grid-template-areas:
    "eyebrow identity"
    "title identity"
    "lead terms"
    "cta terms";
  column-gap: clamp(42px, 7vw, 104px);
  row-gap: 22px;
  align-items: start;
  padding: clamp(48px, 8vw, 104px) clamp(0px, 1vw, 12px) clamp(64px, 9vw, 112px);
}

.yd-topic-hero > .yd-eyebrow {
  grid-area: eyebrow;
  align-self: end;
  margin: 0;
}

.yd-topic-hero h1 {
  grid-area: title;
  max-width: 15ch;
  margin: 0;
  font-size: clamp(3.15rem, 6.6vw, 6.4rem);
  line-height: .95;
  letter-spacing: -.046em;
}

.yd-topic-hero__lead {
  grid-area: lead;
  max-width: 650px;
  margin: 8px 0 10px;
  color: var(--yd-topic-muted);
  font-size: clamp(1.06rem, 1.45vw, 1.26rem);
  line-height: 1.72;
}

.yd-topic-hero > .yd-button {
  grid-area: cta;
  width: fit-content;
  margin-top: 10px;
}

.yd-topic-hero__identity {
  grid-area: identity;
  align-self: end;
  padding: 20px 0;
  border-top: 1px solid var(--yd-topic-line);
  border-bottom: 1px solid var(--yd-topic-line);
}

.yd-topic-hero__identity strong,
.yd-topic-hero__identity span {
  display: block;
}

.yd-topic-hero__identity strong {
  font: 400 clamp(1.45rem, 2vw, 1.9rem)/1.18 var(--yd-serif, Georgia, serif);
}

.yd-topic-hero__identity span {
  margin-top: 6px;
  color: var(--yd-topic-muted);
  font-size: .78rem;
  line-height: 1.45;
}

.yd-topic-hero__terms {
  grid-area: terms;
  align-self: start;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--yd-topic-line);
  background: rgba(255, 255, 255, .48);
}

.yd-topic-status {
  width: fit-content;
  margin: 0 0 18px;
  padding: 6px 11px;
  border: 1px solid #9fb2a4;
  border-radius: 999px;
  color: #274c38;
  background: #edf4ee;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.35;
}

.yd-topic-hero__terms dl,
.yd-direction-card__terms dl,
.yd-format-card__terms dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.yd-topic-hero__terms dl > div,
.yd-direction-card__terms dl > div,
.yd-format-card__terms dl > div {
  display: grid;
  grid-template-columns: minmax(88px, .72fr) minmax(0, 1.28fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--yd-topic-line);
}

.yd-topic-hero__terms dl > div:first-child,
.yd-direction-card__terms dl > div:first-child,
.yd-format-card__terms dl > div:first-child {
  padding-top: 0;
}

.yd-topic-hero__terms dl > div:last-child,
.yd-direction-card__terms dl > div:last-child,
.yd-format-card__terms dl > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.yd-topic-hero__terms dt,
.yd-direction-card__terms dt,
.yd-format-card__terms dt {
  color: var(--yd-topic-muted);
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .09em;
  line-height: 1.45;
  text-transform: uppercase;
}

.yd-topic-hero__terms dd,
.yd-direction-card__terms dd,
.yd-format-card__terms dd {
  margin: 0;
  color: var(--yd-topic-ink);
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.5;
}

/* Directions and format cards */
.yd-direction-catalog,
.yd-format-overview {
  padding: clamp(64px, 9vw, 108px) 0;
  border-top: 1px solid var(--yd-topic-line);
}

.yd-direction-catalog > header,
.yd-format-overview > header,
.yd-topic-credentials > header,
.yd-topic-faq > header,
.yd-topic-articles > header {
  display: grid;
  grid-template-columns: 130px minmax(0, 820px);
  margin-bottom: clamp(34px, 5vw, 54px);
}

.yd-direction-catalog > header .yd-eyebrow,
.yd-format-overview > header .yd-eyebrow,
.yd-topic-credentials > header .yd-eyebrow,
.yd-topic-faq > header .yd-eyebrow,
.yd-topic-articles > header .yd-eyebrow {
  grid-row: 1 / span 2;
  margin: 8px 0 0;
}

.yd-direction-catalog > header h2,
.yd-format-overview > header h2,
.yd-topic-credentials > header h2,
.yd-topic-faq > header h2,
.yd-topic-articles > header h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.yd-direction-catalog > header > p:last-child {
  grid-column: 2;
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--yd-topic-muted);
  font-size: 1.05rem;
}

.yd-direction-catalog__grid,
.yd-format-overview__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.yd-direction-card,
.yd-format-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--yd-topic-line);
  background: rgba(255, 255, 255, .48);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.yd-direction-card:hover,
.yd-format-card:hover {
  border-color: rgba(48, 72, 61, .38);
  box-shadow: var(--yd-topic-shadow);
  transform: translateY(-3px);
}

.yd-direction-card h3,
.yd-format-card h3 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.12;
}

.yd-direction-card h3 a {
  text-decoration: none;
}

.yd-direction-card > p {
  margin: 0 0 22px;
  color: var(--yd-topic-muted);
  line-height: 1.65;
}

.yd-direction-card__signals {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  color: var(--yd-topic-muted);
  line-height: 1.52;
  list-style: none;
}

.yd-direction-card__signals li {
  position: relative;
  padding-left: 17px;
}

.yd-direction-card__signals li::before {
  position: absolute;
  top: .72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yd-topic-deep);
  content: "";
}

.yd-direction-card__terms,
.yd-format-card__terms {
  margin: auto 0 22px;
  padding-top: 20px;
  border-top: 1px solid var(--yd-topic-line);
}

.yd-direction-card .yd-text-link {
  align-self: flex-start;
  margin-top: auto;
}

/* Confirmed conditions for one concrete therapy group. */
.yd-topic-group-details {
  margin: 0 0 clamp(32px, 6vw, 72px);
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid var(--yd-topic-line);
  background: linear-gradient(145deg, rgba(228, 234, 226, .82), rgba(255, 253, 249, .72));
  box-shadow: var(--yd-topic-shadow);
}

.yd-topic-group-details > header {
  display: grid;
  grid-template-columns: 130px minmax(0, 760px);
  margin-bottom: clamp(28px, 5vw, 48px);
}

.yd-topic-group-details > header .yd-eyebrow {
  grid-row: 1 / span 2;
  margin: 7px 0 0;
}

.yd-topic-group-details > header h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.2vw, 3.9rem);
  line-height: 1.03;
  letter-spacing: -.032em;
}

.yd-topic-group-details > header > p:last-child {
  grid-column: 2;
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--yd-topic-muted);
  line-height: 1.65;
}

.yd-topic-group-details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--yd-topic-line);
  background: var(--yd-topic-line);
}

.yd-topic-group-details dl > div {
  min-width: 0;
  padding: clamp(19px, 2.5vw, 28px);
  background: rgba(255, 253, 249, .94);
}

.yd-topic-group-details dt {
  margin: 0 0 8px;
  color: var(--yd-topic-muted);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .1em;
  line-height: 1.45;
  text-transform: uppercase;
}

.yd-topic-group-details dd {
  margin: 0;
  color: var(--yd-topic-ink);
  font-size: .98rem;
  line-height: 1.6;
}

/* Main content rhythm */
.yd-topic-section {
  display: grid;
  grid-template-columns: 130px minmax(0, 850px);
  padding: clamp(60px, 8vw, 94px) 0;
  border-top: 1px solid var(--yd-topic-line);
}

.yd-topic-section .yd-section__number {
  display: block;
  margin: 8px 0 0;
  color: var(--yd-topic-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.yd-topic-section h2,
.yd-topic-method h2 {
  max-width: 760px;
  margin: 0 0 clamp(24px, 4vw, 36px);
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.032em;
}

.yd-topic-section > div > p {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--yd-topic-muted);
  font-size: 1.05rem;
}

.yd-topic-first-session .yd-topic-list--steps li {
  background: var(--yd-topic-soft);
}

.yd-topic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yd-topic-list li {
  position: relative;
  min-width: 0;
  padding: 21px 22px 21px 42px;
  border: 1px solid var(--yd-topic-line);
  color: var(--yd-topic-muted);
  background: rgba(255, 255, 255, .38);
  line-height: 1.58;
}

.yd-topic-list:not(.yd-topic-list--steps) li::before {
  position: absolute;
  top: 29px;
  left: 22px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yd-topic-deep);
  content: "";
}

.yd-topic-list--steps {
  counter-reset: yd-topic-step;
}

.yd-topic-list--steps li {
  padding-left: 22px;
  counter-increment: yd-topic-step;
}

.yd-topic-list--steps li::before {
  display: block;
  margin-bottom: 14px;
  color: var(--yd-topic-deep);
  content: counter(yd-topic-step, decimal-leading-zero);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .13em;
}

/* Context notices */
.yd-topic-notice,
.yd-topic-emergency {
  margin: 8px 0 clamp(54px, 8vw, 88px) 130px;
  padding: clamp(24px, 4vw, 38px);
}

.yd-topic-notice {
  border: 1px solid #bdcbbf;
  background: #edf2ed;
}

.yd-topic-emergency {
  border: 1px solid #c99d55;
  background: #fff5d9;
}

.yd-topic-notice h2,
.yd-topic-emergency h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  line-height: 1.12;
}

.yd-topic-notice p,
.yd-topic-emergency p {
  max-width: 760px;
  margin: 0;
  color: #4f6056;
}

.yd-topic-emergency h2,
.yd-topic-emergency p {
  color: #5f481d;
}

/* Method */
.yd-topic-method {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, .96fr);
  gap: clamp(38px, 7vw, 92px);
  margin: clamp(20px, 4vw, 44px) 0 clamp(72px, 10vw, 118px);
  padding: clamp(38px, 6vw, 68px);
  color: #f7f4ed;
  background: var(--yd-topic-deep);
}

.yd-topic-method .yd-eyebrow {
  margin: 0 0 16px;
  color: #cbd5cd;
}

.yd-topic-method h2 {
  color: #fff;
}

.yd-topic-method > div > p:last-child {
  max-width: 680px;
  margin: 0;
  color: #dbe2dc;
  font-size: 1.04rem;
}

.yd-topic-method .yd-topic-list {
  grid-template-columns: 1fr;
  align-content: start;
}

.yd-topic-method .yd-topic-list li {
  border-color: rgba(255, 255, 255, .2);
  color: #e5ebe5;
  background: rgba(255, 255, 255, .055);
}

.yd-topic-method .yd-topic-list li::before {
  background: #d6b37c;
}

/* Specialist */
.yd-topic-specialist {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 8vw, 108px);
  align-items: center;
  padding: 0 0 clamp(74px, 10vw, 118px);
}

.yd-topic-specialist figure {
  position: relative;
  margin: 0;
}

.yd-topic-specialist figure::before {
  position: absolute;
  inset: -5% 11% 8% -8%;
  z-index: -1;
  border-radius: 48% 52% 45% 55% / 50% 42% 58% 50%;
  background: #dfe5dc;
  content: "";
}

.yd-topic-specialist figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 48% 48% 42% 42% / 38% 38% 30% 30%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(.8) contrast(.97);
}

.yd-topic-specialist .yd-eyebrow {
  margin: 0 0 13px;
}

.yd-topic-specialist h2 {
  margin: 0 0 20px;
  font-size: clamp(2.35rem, 4.5vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -.035em;
}

.yd-topic-specialist__name {
  margin: 0 0 22px;
  color: var(--yd-topic-muted);
}

.yd-topic-specialist__name strong {
  color: var(--yd-topic-ink);
  font-size: 1.05rem;
}

.yd-topic-specialist > div > p:not(.yd-eyebrow, .yd-topic-specialist__name) {
  max-width: 680px;
  color: var(--yd-topic-muted);
  font-size: 1.04rem;
}

.yd-topic-specialist__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 22px;
  padding: 0;
  list-style: none;
}

.yd-topic-specialist__facts li {
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid var(--yd-topic-line);
  border-radius: 999px;
  color: var(--yd-topic-muted);
  font-size: .74rem;
  line-height: 1.4;
}

.yd-topic-specialist__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.yd-topic-specialist__links .yd-text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
}

/* Credentials */
.yd-topic-credentials,
.yd-topic-faq,
.yd-topic-articles {
  padding: clamp(64px, 9vw, 104px) 0;
  border-top: 1px solid var(--yd-topic-line);
}

.yd-topic-credentials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.yd-topic-credential {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--yd-topic-line);
  background: rgba(255, 255, 255, .55);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.yd-topic-credential:hover {
  border-color: rgba(48, 72, 61, .38);
  box-shadow: 0 16px 40px rgba(31, 41, 36, .07);
  transform: translateY(-3px);
}

.yd-topic-credential img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--yd-topic-soft);
}

.yd-topic-credential h3 {
  margin: 16px 7px 14px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.yd-topic-credential .yd-text-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin: auto 7px 0;
  font-size: .78rem;
}

.yd-topic-credentials > .yd-text-link {
  display: inline-flex;
  align-items: center;
}

/* FAQ */
.yd-topic-landing #faq {
  scroll-margin-top: 28px;
}

.yd-topic-faq__items {
  max-width: 980px;
  border-bottom: 1px solid var(--yd-topic-line);
}

.yd-topic-faq__item {
  min-width: 0;
  max-width: 100%;
  border-top: 1px solid var(--yd-topic-line);
  transition: border-color .25s ease, background-color .25s ease;
}

.yd-topic-faq__item[open] {
  border-color: rgba(48, 72, 61, .38);
  background: rgba(240, 243, 238, .54);
}

.yd-topic-faq__item summary {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 24px;
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
  min-height: 76px;
  padding: 19px clamp(12px, 2.5vw, 24px);
  color: var(--yd-topic-ink);
  cursor: pointer;
  list-style: none;
  transition: color .2s ease, background-color .2s ease;
}

.yd-topic-faq__item summary::-webkit-details-marker {
  display: none;
}

.yd-topic-faq__item summary:hover {
  background: rgba(240, 243, 238, .38);
}

.yd-topic-faq__item summary:focus-visible {
  outline: 2px solid var(--yd-topic-ink);
  outline-offset: 3px;
}

.yd-topic-faq__index {
  color: var(--yd-topic-muted);
  font: 600 .7rem/1.2 var(--yd-sans, sans-serif);
  letter-spacing: .14em;
}

.yd-topic-faq__question {
  overflow-wrap: anywhere;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.24;
}

.yd-topic-faq__icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  justify-self: end;
}

.yd-topic-faq__icon::before,
.yd-topic-faq__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .25s ease;
}

.yd-topic-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.yd-topic-faq__item[open] .yd-topic-faq__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.yd-topic-faq__answer {
  padding: 0 clamp(50px, 6.5vw, 76px) 28px clamp(54px, 6vw, 66px);
}

.yd-topic-faq__answer p {
  margin: 0;
  max-width: 760px;
  color: var(--yd-topic-muted);
  line-height: 1.75;
}

/* Articles */
.yd-topic-articles .yd-article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yd-topic-articles .yd-article-card {
  min-width: 0;
}

.yd-topic-articles .yd-article-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--yd-topic-soft);
}

.yd-topic-articles .yd-article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yd-topic-articles .yd-article-card h3 {
  margin: 8px 0 14px;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 1.12;
}

.yd-topic-articles .yd-article-card h3 a {
  text-decoration: none;
}

.yd-topic-articles .yd-article-card__body > p:not(.yd-meta) {
  margin: 0 0 24px;
  color: var(--yd-topic-muted);
}

/* Closing path */
.yd-topic-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px 60px;
  align-items: end;
  margin: clamp(36px, 6vw, 72px) 0 0;
  padding: clamp(36px, 6vw, 66px);
  color: #f7f4ed;
  background: var(--yd-topic-deep);
}

.yd-topic-final .yd-eyebrow {
  margin: 0 0 10px;
  color: #cbd5cd;
}

.yd-topic-final h2 {
  max-width: 720px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2.2rem, 4.3vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -.032em;
}

.yd-topic-final p:not(.yd-eyebrow) {
  max-width: 640px;
  margin: 0;
  color: #dbe2dc;
}

.yd-topic-final .yd-button {
  border-color: #fff;
  color: var(--yd-topic-deep);
  background: #fff;
}

.yd-topic-final .yd-button:hover,
.yd-topic-final .yd-button:focus-visible {
  color: #fff;
  background: transparent;
}

.yd-topic-final :where(a, button):focus-visible,
.yd-topic-method :where(a, button):focus-visible {
  outline-color: #f1cb8d;
}

.yd-topic-neighbors {
  padding: clamp(54px, 8vw, 84px) 0;
  border-bottom: 1px solid var(--yd-topic-line);
}

.yd-topic-neighbors > .yd-eyebrow {
  margin: 0 0 20px;
}

.yd-topic-neighbors ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yd-topic-neighbors a {
  display: flex;
  min-height: 100%;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--yd-topic-line);
  font: 400 clamp(1.1rem, 1.8vw, 1.4rem)/1.3 var(--yd-serif, Georgia, serif);
  text-decoration: none;
  transition: border-color .25s ease, background-color .25s ease;
}

.yd-topic-neighbors a:hover,
.yd-topic-neighbors a:focus-visible {
  border-color: var(--yd-topic-deep);
  background: var(--yd-topic-sage);
}

.yd-topic-terms-link {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 24px 0;
}

.yd-topic-terms-link .yd-text-link {
  display: inline-flex;
  align-items: center;
  text-align: right;
}

.yd-topic-legal {
  margin: 0 0 clamp(54px, 8vw, 88px);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--yd-topic-line);
  background: rgba(255, 255, 255, .48);
}

.yd-topic-legal > .yd-eyebrow {
  margin: 0 0 18px;
}

.yd-topic-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yd-topic-legal .yd-text-link {
  display: inline-flex;
  align-items: center;
}

/* Dynamic block shown after an explicitly related article. */
.yd-article-service-link {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: clamp(44px, 7vw, 68px) auto 0;
  padding: clamp(25px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid var(--yd-topic-line, rgba(31, 41, 36, .17));
  background: #eff2ed;
  isolation: isolate;
}

.yd-article-service-link::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--yd-deep, #30483d);
  content: "";
}

.yd-article-service-link h2 {
  max-width: 620px;
  margin: 0 0 14px;
  color: var(--yd-ink, #1f2924);
  font: 400 clamp(1.75rem, 3vw, 2.45rem)/1.1 var(--yd-serif, Georgia, serif);
  letter-spacing: -.018em;
}

.yd-article-service-link p {
  max-width: 640px;
  margin: 0 0 18px;
  color: var(--yd-muted, #607067);
}

.yd-article-service-link .yd-text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: 0;
  padding: 7px 0;
  color: var(--yd-deep, #30483d);
  font-size: .86rem;
  font-weight: 750;
}

/* Medium screens */
@media (max-width: 1050px) {
  .yd-topic-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, .88fr);
    column-gap: 44px;
  }

  .yd-direction-catalog__grid,
  .yd-format-overview__grid,
  .yd-topic-articles .yd-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yd-topic-specialist {
    gap: 54px;
  }
}

@media (max-width: 850px) {
  .yd-topic-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "eyebrow"
      "title"
      "lead"
      "identity"
      "terms"
      "cta";
    gap: 20px;
    padding-top: 48px;
  }

  .yd-topic-hero h1 {
    max-width: 16ch;
    font-size: clamp(3rem, 10vw, 5.2rem);
  }

  .yd-topic-hero__identity {
    max-width: 650px;
    margin-top: 8px;
  }

  .yd-topic-hero__terms {
    width: min(100%, 650px);
  }

  .yd-topic-section,
  .yd-direction-catalog > header,
  .yd-format-overview > header,
  .yd-topic-group-details > header,
  .yd-topic-credentials > header,
  .yd-topic-faq > header,
  .yd-topic-articles > header {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .yd-direction-catalog > header .yd-eyebrow,
  .yd-format-overview > header .yd-eyebrow,
  .yd-topic-group-details > header .yd-eyebrow,
  .yd-topic-credentials > header .yd-eyebrow,
  .yd-topic-faq > header .yd-eyebrow,
  .yd-topic-articles > header .yd-eyebrow {
    grid-row: auto;
    margin-top: 0;
  }

  .yd-direction-catalog > header > p:last-child {
    grid-column: 1;
  }

  .yd-topic-group-details > header > p:last-child {
    grid-column: 1;
  }

  .yd-topic-notice,
  .yd-topic-emergency {
    margin-left: 0;
  }

  .yd-topic-method {
    grid-template-columns: minmax(0, 1fr);
  }

  .yd-topic-specialist {
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    gap: 42px;
    align-items: start;
  }

  .yd-topic-neighbors ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phones and narrow tablets */
@media (max-width: 620px) {
  .yd-topic-breadcrumbs ol {
    gap: 4px 8px;
    font-size: .72rem;
  }

  .yd-topic-hero {
    padding-top: 38px;
    padding-bottom: 72px;
  }

  .yd-topic-hero h1 {
    font-size: clamp(2.75rem, 13vw, 4.2rem);
    line-height: .97;
  }

  .yd-topic-hero__lead {
    font-size: 1rem;
  }

  .yd-topic-hero > .yd-button,
  .yd-topic-final .yd-button {
    width: 100%;
  }

  .yd-topic-hero__terms dl > div,
  .yd-direction-card__terms dl > div,
  .yd-format-card__terms dl > div {
    grid-template-columns: minmax(78px, .7fr) minmax(0, 1.3fr);
    gap: 11px;
  }

  .yd-direction-catalog__grid,
  .yd-format-overview__grid,
  .yd-topic-group-details dl,
  .yd-topic-list,
  .yd-topic-faq__items,
  .yd-topic-articles .yd-article-grid,
  .yd-topic-neighbors ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .yd-direction-card,
  .yd-format-card {
    padding: 24px 20px;
  }

  .yd-topic-group-details {
    padding: 28px 20px;
  }

  .yd-topic-section {
    padding: 56px 0;
  }

  .yd-topic-section h2,
  .yd-topic-method h2,
  .yd-direction-catalog > header h2,
  .yd-format-overview > header h2,
  .yd-topic-group-details > header h2,
  .yd-topic-credentials > header h2,
  .yd-topic-faq > header h2,
  .yd-topic-articles > header h2 {
    font-size: clamp(2.15rem, 10vw, 3.25rem);
  }

  .yd-topic-list li {
    padding: 19px 19px 19px 38px;
  }

  .yd-topic-list:not(.yd-topic-list--steps) li::before {
    top: 27px;
    left: 19px;
  }

  .yd-topic-list--steps li {
    padding-left: 19px;
  }

  .yd-topic-faq__item summary {
    grid-template-columns: 25px minmax(0, 1fr) 20px;
    gap: 10px;
    min-height: 68px;
    padding: 17px 8px;
  }

  .yd-topic-faq__question {
    font-size: clamp(1.12rem, 5.2vw, 1.35rem);
  }

  .yd-topic-faq__answer {
    padding: 0 8px 24px 43px;
  }

  .yd-topic-method,
  .yd-topic-final {
    margin-right: -2px;
    margin-left: -2px;
    padding: 30px 22px;
  }

  .yd-topic-specialist {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .yd-topic-specialist figure {
    width: min(100%, 390px);
    margin-inline: auto;
  }

  .yd-topic-specialist__links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .yd-topic-specialist__links .yd-text-link {
    width: 100%;
    border-bottom: 1px solid var(--yd-topic-line);
  }

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

  .yd-topic-final {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .yd-topic-terms-link {
    justify-content: flex-start;
  }

  .yd-topic-terms-link .yd-text-link {
    text-align: left;
  }

  .yd-article-service-link {
    padding: 25px 20px 25px 24px;
  }
}

@media (max-width: 390px) {
  .yd-topic-hero__terms {
    padding: 20px 17px;
  }

  .yd-topic-hero__terms dl > div,
  .yd-direction-card__terms dl > div,
  .yd-format-card__terms dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .yd-topic-credentials__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .yd-topic-specialist__facts {
    display: grid;
  }

  .yd-topic-specialist__facts li {
    width: fit-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yd-topic-landing *,
  .yd-topic-landing *::before,
  .yd-topic-landing *::after,
  .yd-article-service-link *,
  .yd-article-service-link *::before,
  .yd-article-service-link *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .yd-direction-card:hover,
  .yd-format-card:hover,
  .yd-topic-credential:hover {
    transform: none;
  }
}

@media (prefers-contrast: more) {
  .yd-topic-landing {
    --yd-topic-muted: #445149;
    --yd-topic-line: rgba(31, 41, 36, .42);
  }

  .yd-topic-status {
    border-color: currentColor;
  }
}

@media (forced-colors: active) {
  .yd-topic-landing :where(.yd-topic-hero__terms, .yd-direction-card, .yd-format-card, .yd-topic-list li, .yd-topic-method, .yd-topic-credential, .yd-topic-faq__item, .yd-topic-final, .yd-topic-neighbors a, .yd-topic-notice, .yd-topic-emergency),
  .yd-article-service-link {
    border: 1px solid CanvasText;
  }

  .yd-topic-list:not(.yd-topic-list--steps) li::before,
  .yd-article-service-link::before {
    background: CanvasText;
  }
}
