/* Only materials and tests on the homepage. Match the approved direction palette. */
.page-home #materials-list.section--soft-cards {
  --soft-card-bg: #FFF5E9;
  --soft-card-border: #F1D7BB;
  --soft-card-hover: #FFF0DF;
  --soft-card-accent: var(--accent);
}
.page-home #tests-list.section--soft-cards {
  --soft-card-bg: #EEF8F4;
  --soft-card-border: #C7DFD6;
  --soft-card-hover: #E5F4ED;
  --soft-card-accent: #7C3ACB;
}
.page-home #materials-list.section--soft-cards .sect-card--illustrated,
.page-home #tests-list.section--soft-cards .test-card--v24 {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  padding: 20px;
  gap: 12px;
  border: 1px solid var(--soft-card-border);
  border-radius: 12px;
  background: var(--soft-card-bg);
  color: var(--text);
  text-decoration: none;
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.page-home #materials-list.section--soft-cards .material-card__head,
.page-home #tests-list.section--soft-cards .test-card__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 82px;
  margin: 0;
}
.page-home #materials-list.section--soft-cards .sect-card__title {
  display: block;
  grid-column: auto;
  grid-row: auto;
  font: 700 18px/1.35 var(--font-mono);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.page-home #materials-list.section--soft-cards .sect-card__figure,
.page-home #tests-list.section--soft-cards .test-card__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: auto;
  grid-row: auto;
  width: 82px;
  height: 82px;
  min-width: 0;
  background: none;
  border-radius: 0;
}
.page-home #materials-list.section--soft-cards .sect-card__figure img,
.page-home #tests-list.section--soft-cards .test-card__figure img {
  display: block;
  width: 82px;
  height: 82px;
  max-height: 82px;
  object-fit: contain;
}
.page-home #materials-list.section--soft-cards .sect-card__text {
  display: block;
  grid-column: auto;
  grid-row: auto;
  flex: 0 0 auto;
  font: 400 14px/1.5 var(--font-sans);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.page-home #materials-list.section--soft-cards .material-card__foot,
.page-home #tests-list.section--soft-cards .test-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-height: 28px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--soft-card-border);
}
.page-home #materials-list.section--soft-cards .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.page-home #materials-list.section--soft-cards .badge {
  background: var(--surface2);
  color: var(--text);
}
.page-home #materials-list.section--soft-cards .material-card__arrow {
  display: inline-block;
  margin-left: auto;
  color: var(--soft-card-accent);
  font: 600 24px/1 var(--font-sans);
  transition: transform .18s ease;
}
.page-home #tests-list.section--soft-cards .test-card__eyebrow {
  margin: 0;
  color: var(--soft-card-accent);
  font-size: 11px;
}
.page-home #tests-list.section--soft-cards .test-card__title {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  font: 700 19px/1.3 var(--font-sans);
  overflow-wrap: anywhere;
}
.page-home #tests-list.section--soft-cards .test-card__description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  font: 400 14px/1.5 var(--font-sans);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.page-home #tests-list.section--soft-cards .test-card__count svg,
.page-home #tests-list.section--soft-cards .test-card__cta { color: var(--soft-card-accent); }
.page-home #tests-list.section--soft-cards .test-card__cta { min-height: 28px; }
.page-home #tests-list.section--soft-cards .test-card__cta > span { transition: transform .18s ease; }
.page-home #materials-list.section--soft-cards .sect-card--illustrated:focus-visible,
.page-home #tests-list.section--soft-cards .test-card--v24:focus-visible {
  outline: 3px solid var(--soft-card-accent);
  outline-offset: 4px;
  border-color: var(--soft-card-accent);
  transform: none;
}
@media (hover: hover) {
  .page-home #materials-list.section--soft-cards .sect-card--illustrated:hover,
  .page-home #tests-list.section--soft-cards .test-card--v24:hover {
    transform: translateY(-3px);
    border-color: var(--soft-card-accent);
    background: var(--soft-card-hover);
    box-shadow: 0 9px 22px -15px var(--soft-card-accent);
  }
  .page-home #materials-list.section--soft-cards .sect-card--illustrated:hover .material-card__arrow,
  .page-home #tests-list.section--soft-cards .test-card--v24:hover .test-card__cta > span { transform: translateX(3px); }
}
@media (hover: none) {
  .page-home #materials-list.section--soft-cards .sect-card--illustrated:hover,
  .page-home #tests-list.section--soft-cards .test-card--v24:hover { transform: none; box-shadow: none; }
}
:root[data-theme="dark"] .page-home #materials-list.section--soft-cards {
  --soft-card-bg: #251D16; --soft-card-border: #59412B; --soft-card-hover: #302318;
}
:root[data-theme="dark"] .page-home #tests-list.section--soft-cards {
  --soft-card-bg: #14231F; --soft-card-border: #304D41; --soft-card-hover: #1A3028; --soft-card-accent: #BF91FF;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .page-home #materials-list.section--soft-cards { --soft-card-bg: #251D16; --soft-card-border: #59412B; --soft-card-hover: #302318; }
  :root:not([data-theme]) .page-home #tests-list.section--soft-cards { --soft-card-bg: #14231F; --soft-card-border: #304D41; --soft-card-hover: #1A3028; --soft-card-accent: #BF91FF; }
}
@media (max-width: 1080px) {
  .page-home #materials-list.section--soft-cards .sect-card--illustrated:last-child:nth-child(odd) { grid-column: auto; }
}
@media (max-width: 440px) {
  .page-home #materials-list.section--soft-cards .sect-card--illustrated,
  .page-home #tests-list.section--soft-cards .test-card--v24 { padding: 16px; }
  .page-home #materials-list.section--soft-cards .material-card__head,
  .page-home #tests-list.section--soft-cards .test-card__main { grid-template-columns: minmax(0, 1fr) 72px; min-height: 72px; }
  .page-home #materials-list.section--soft-cards .sect-card__figure,
  .page-home #tests-list.section--soft-cards .test-card__figure,
  .page-home #materials-list.section--soft-cards .sect-card__figure img,
  .page-home #tests-list.section--soft-cards .test-card__figure img { width: 72px; height: 72px; }
  .page-home #materials-list.section--soft-cards .sect-card__title,
  .page-home #tests-list.section--soft-cards .test-card__title { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-home #materials-list.section--soft-cards .sect-card--illustrated,
  .page-home #tests-list.section--soft-cards .test-card--v24,
  .page-home #materials-list.section--soft-cards .material-card__arrow,
  .page-home #tests-list.section--soft-cards .test-card__cta > span { transition: none; }
  .page-home #materials-list.section--soft-cards .sect-card--illustrated:hover,
  .page-home #tests-list.section--soft-cards .test-card--v24:hover,
  .page-home #materials-list.section--soft-cards .sect-card--illustrated:hover .material-card__arrow,
  .page-home #tests-list.section--soft-cards .test-card--v24:hover .test-card__cta > span { transform: none; }
}
