/* Homepage only: quieter groups and a clear reading hierarchy. */
html[data-template="forum_list"] {
  --dp-home-line: color-mix(in srgb, var(--dp-compact-text) 15%, transparent);
  --dp-home-hover: color-mix(in srgb, var(--dp-compact-link) 7%, transparent);
}
html[data-template="forum_list"] .dp-portal-home-intro { margin-bottom: 20px; }
html[data-template="forum_list"] .dp-promotion-section { margin-bottom: 32px; }
html[data-template="forum_list"] .dp-promotion-grid { gap: 0 24px; }
html[data-template="forum_list"] .dp-promotion {
  min-height: 104px;
  height: 100%;
  gap: 12px;
  padding: 18px 8px;
  border: 0;
  border-bottom: 1px solid var(--dp-home-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-template="forum_list"] .dp-promotion > img.dp-default-resource-icon { width: 36px; height: 36px; flex: 0 0 36px; }
html[data-template="forum_list"] .dp-promotion-eyebrow { font-size: 10px; letter-spacing: .06em; color: var(--dp-compact-muted); }
html[data-template="forum_list"] .dp-promotion-title { font-size: 15px; line-height: 1.5; font-weight: 600; }
html[data-template="forum_list"] .dp-promotion-arrow { position: static; align-self: center; margin-inline-start: auto; color: var(--dp-compact-muted); }
html[data-template="forum_list"] .dp-promotion:hover { background: var(--dp-home-hover); }
html[data-template="forum_list"] .dp-topics { margin-block: 28px 12px; }
html[data-template="forum_list"] .dp-home-section { align-items: baseline; margin-bottom: 12px; gap: 8px 18px; }
html[data-template="forum_list"] .dp-home-section h2,
html[data-template="forum_list"] .dp-home-section h2 a { color: var(--dp-compact-text); font-size: 21px; font-weight: 600; }
html[data-template="forum_list"] .dp-home-section p { color: var(--dp-compact-muted); font-size: 13px; }
html[data-template="forum_list"] .dp-topic-grid { gap: 0 24px; }
html[data-template="forum_list"] .dp-topic-grid .dp-topic-card {
  min-height: 58px;
  padding: 14px 8px;
  border: 0;
  border-bottom: 1px solid var(--dp-home-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-template="forum_list"] .dp-topic-card .dp-topic-icon { font-size: 18px; }
html[data-template="forum_list"] .dp-topic-card .dp-topic-copy strong { font-size: 15px; font-weight: 500; }
html[data-template="forum_list"] .dp-topic-grid .dp-topic-card:hover { background: var(--dp-home-hover); }
html[data-template="forum_list"] .dp-staff-links { border: 0; padding: 14px 8px 0; color: var(--dp-compact-muted); }
html[data-template="forum_list"] .p-body-sidebar .uix_sidebar--scroller:has(> .dp-learning-carousel) { gap: 18px; }
html[data-template="forum_list"] .p-body-sidebar .dp-compact-action {
  min-height: 78px;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid var(--dp-home-line);
  border-radius: 0;
  background: transparent;
}
html[data-template="forum_list"] .dp-compact-action .dp-compact-art { width: 36px; height: 36px; flex-basis: 36px; }
html[data-template="forum_list"] .dp-compact-copy strong { font-size: 14px; }
html[data-template="forum_list"] .p-body-sidebar .dp-compact-action:hover { background: var(--dp-home-hover); }
html[data-template="forum_list"] .dp-learning-carousel > .block-container { border: 0; border-radius: 6px; }
/* UI.X places this row inside its content wrapper, below the upper columns. */
html[data-template="forum_list"] .dp-home-full-feed { margin-top: 36px; }
html[data-template="forum_list"] .dp-home-full-feed > .block { margin-bottom: 36px; }
html[data-template="forum_list"] .dp-home-full-feed .block-container:has(> .block-body .dp-list-row) > :is(.block-header,.block-minorHeader) {
  padding-bottom: 16px;
  color: var(--dp-compact-text);
  font-size: 21px;
  font-weight: 600;
}
html[data-template="forum_list"] .dp-home-full-feed .structItem.dp-list-row {
  background: transparent;
  border-bottom: 1px solid var(--dp-home-line);
}
html[data-template="forum_list"] .dp-home-full-feed .structItem.dp-list-row:is(:hover,:focus-within) { background: var(--dp-home-hover); }
html[data-template="forum_list"] .dp-home-full-feed .dp-list-row > :is(.dp-list-excerpt,.dp-list-activity) { border: 0; }
html[data-template="forum_list"] .dp-home-full-feed .dp-list-row .dp-list-excerpt { color: var(--dp-compact-muted); font-size: 13px; }
html[data-template="forum_list"] .dp-home-full-feed .dp-list-activity,
html[data-template="forum_list"] .dp-home-full-feed .dp-list-activity a { color: var(--dp-compact-muted); }
html[data-template="forum_list"] .dp-home-full-feed .dp-list-identity > .structItem-cell--icon { width: 36px; flex-basis: 36px; }
html[data-template="forum_list"] .dp-home-full-feed .dp-list-type-icon,
html[data-template="forum_list"] .dp-home-full-feed .dp-list-type-icon > .dp-content-icon { width: 34px; height: 34px; }
html[data-template="forum_list"] :is(.dp-promotion,.dp-topic-card,.dp-compact-action):focus-visible { outline: 2px solid var(--dp-compact-link); outline-offset: 3px; }
@media (min-width: 1601px) {
  html[data-template="forum_list"] .p-body-main--withSidebar { column-gap: 24px; }
  html[data-template="forum_list"] .p-body-main--withSidebar > .p-body-content { flex: 1 1 0; width: auto; max-width: none; }
  html[data-template="forum_list"] .p-body-main--withSidebar > .p-body-sidebar { width: 300px; flex: 0 0 300px; }
  html[data-template="forum_list"] .p-body-sidebar .uix_sidebarInner { width: 100%; max-width: 100%; }
}
@media (max-width: 650px) {
  html[data-template="forum_list"] .dp-home-section { display: block; }
  html[data-template="forum_list"] .dp-home-section p { margin-top: 6px; }
  html[data-template="forum_list"] .dp-promotion { min-height: 88px; padding-block: 16px; }
  html[data-template="forum_list"] .dp-home-full-feed .dp-list-row > .dp-list-excerpt { padding: 0 16px 10px; }
  html[data-template="forum_list"] .dp-home-full-feed .dp-list-row > .dp-list-activity { padding: 0 16px 16px; }
}
