.advice-topic-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.advice-topic-filters a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface, #fffaf3); text-decoration: none; font-size: 14px; line-height: 1.25; }
.advice-topic-filters a:hover, .advice-topic-filters a:focus-visible, .advice-topic-filters a[aria-current="page"] { border-color: currentColor; background: var(--surface-2, #f2e9dd); }
.advice-card-topic { display: inline-block; margin-right: 10px; color: var(--muted, #685d53); font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.news-card .news-image { aspect-ratio: 3 / 2; overflow: hidden; }
.news-card .news-image :is(picture, img) { width: 100%; height: 100%; object-fit: cover; }
body.family-site .news-reading-page .news-single-media .single-photo-grid > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.advice-breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; font-size: 13px; color: var(--muted, #685d53); }
.advice-breadcrumbs a { color: inherit; text-underline-offset: 3px; }
.advice-toc { margin: 22px 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, #fffaf3); }
.advice-toc strong { display: block; margin-bottom: 8px; }
.advice-toc ol { margin: 0; padding-left: 22px; }
.advice-toc li + li { margin-top: 5px; }
.news-single-text :is(h2, h3)[id] { scroll-margin-top: 96px; }
.news-single-text table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.news-single-text th, .news-single-text td { padding: 11px 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.news-single-text th { background: var(--surface-2, #f2e9dd); }
.advice-products, .advice-related, .advice-category-help { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.advice-products h2, .advice-related h2, .advice-category-help h2 { margin: 0 0 10px; font-size: clamp(21px, 3vw, 27px); }
.advice-products > p { margin: 0 0 18px; }
body.family-site .advice-products.catalog-products-panel { margin-top: 34px !important; padding-top: 24px !important; }
body.family-site .advice-products .catalog-product-copy h3 { margin: 0 0 8px !important; font: 650 15px/1.4 Manrope, Arial, sans-serif !important; letter-spacing: -.02em; overflow-wrap: anywhere; }
body.family-site .advice-products .catalog-product-copy h3 a { color: inherit; text-decoration: none; }
body.family-site .advice-products .catalog-product-copy h3 a:hover,
body.family-site .advice-products .catalog-product-copy h3 a:focus-visible { text-decoration: underline; }
body.family-site .advice-products .catalog-product-copy > .advice-product-view { grid-column: 1 / -1; display: inline-flex; align-self: start; width: fit-content; min-height: 40px; align-items: center; color: var(--forest); font-size: 13px; font-weight: 700; text-underline-offset: 3px; }
body.family-site:not(.plf-theme-evening) .advice-products .catalog-product-copy footer strong { color: #843645 !important; }
body.family-site.plf-theme-sunset .advice-products .catalog-product-copy footer strong { color: #244a4a !important; }
body.family-site.plf-theme-evening .advice-products .catalog-product-copy footer strong { color: #f4c27f !important; }
/* Article recommendations use the same compact list proportions as the catalog. */
body.family-site .advice-products .catalog-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
body.family-site .advice-products .catalog-product-item {
  display: grid !important; grid-template-columns: 112px minmax(0, 1fr) !important;
  gap: 12px !important; min-width: 0; min-height: 0 !important; padding: 12px !important;
  align-content: start; border-radius: 14px;
}
body.family-site .advice-products .catalog-product-image {
  display: block; position: relative; width: 112px !important; height: 112px !important;
  min-height: 0 !important; padding: 0 !important; align-self: start; overflow: hidden;
  background: #fff; border-radius: 8px;
}
body.family-site .advice-products .catalog-product-image img {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important;
  padding: 0 !important; object-fit: contain !important; transform: none !important;
}
body.family-site .advice-products .catalog-product-copy {
  display: grid !important; grid-template-columns: minmax(0, 1fr) 44px;
  grid-template-rows: auto auto auto auto; gap: 4px 8px; min-width: 0; padding: 0 !important;
}
body.family-site .advice-products .catalog-product-copy > :is(h3, .catalog-product-code, .catalog-card-availability, .advice-product-view) { grid-column: 1 / -1; }
body.family-site .advice-products .catalog-product-copy h3 { margin: 0 !important; font-size: 13px !important; line-height: 1.3 !important; }
body.family-site .advice-products .catalog-product-title-link { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
body.family-site .advice-products .catalog-product-copy .catalog-product-code { margin: 0 !important; }
body.family-site .advice-products .catalog-product-copy .catalog-card-availability { margin: 0 !important; }
body.family-site .advice-products .catalog-product-copy footer {
  grid-column: 1; grid-row: 4; display: flex; align-items: center; margin: 0 !important;
  padding: 0 !important; min-height: 44px;
}
body.family-site .advice-products .catalog-product-copy footer strong { font-size: 18px !important; line-height: 1.2; }
body.family-site .advice-products .catalog-product-copy > .ploc-add-button {
  grid-column: 2; grid-row: 4; justify-self: end; align-self: center;
  width: 44px !important; min-width: 44px !important; height: 44px !important;
  min-height: 44px !important; margin: 0 !important; padding: 10px !important;
}
body.family-site .advice-products .catalog-product-copy > .ploc-add-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.family-site .advice-products .catalog-product-copy > .advice-product-view { grid-row: 5; min-height: 28px; margin-top: 2px; font-size: 12px; }
.advice-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.advice-product { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, #fffaf3); }
.advice-product img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border-radius: 8px; }
.advice-product h3 { margin: 9px 0; font-size: 15px; line-height: 1.4; }
.advice-product h3 a { color: inherit; }
.advice-product strong { display: block; margin-bottom: 6px; font-size: 18px; }
.advice-product small { display: block; margin-bottom: 10px; }
.advice-product .button { min-height: 40px; padding: 8px 12px; font-size: 13px; }
.advice-related ul, .advice-category-help ul { margin: 12px 0 0; padding-left: 20px; }
.advice-related li + li, .advice-category-help li + li { margin-top: 8px; }
@media (max-width: 760px) {
  .advice-topic-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
  .advice-topic-filters a { flex: 0 0 auto; }
  .advice-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-single-text table { display: block; overflow-x: auto; }
}
@media (max-width: 767px) {
  body.family-site .advice-products .catalog-product-grid { grid-template-columns: minmax(0, 1fr) !important; }
  body.family-site .advice-products .catalog-product-item { grid-template-columns: 88px minmax(0, 1fr) !important; gap: 10px !important; padding: 9px !important; }
  body.family-site .advice-products .catalog-product-image { width: 88px !important; height: 96px !important; align-self: center; }
  body.family-site .news-grid.archive-news-grid .news-card:not(.news-card-featured) { display: flex; flex-direction: column; min-height: 0; }
  body.family-site .news-grid.archive-news-grid .news-card:not(.news-card-featured) .news-image { width: 100%; height: auto; min-height: 0; aspect-ratio: 3 / 2; flex: 0 0 auto; }
  body.family-site .news-grid.archive-news-grid .news-card:not(.news-card-featured) .news-image :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
}
@media (max-width: 400px) { .advice-product-grid { grid-template-columns: minmax(0, 1fr); } }
