/* News and article layouts, scoped independently from the site header/footer. */
.px-posts { --px-accent: #955e40; --px-secondary: #815039; color: #58473e; background: #fffdf9; font-family: "UTM Aptima", sans-serif; padding: 40px 0; }
.px-posts *, .px-posts *::before, .px-posts *::after { box-sizing: border-box; }
.px-posts-container { width: 100%; max-width: 1536px; margin: 0 auto; padding: 0 16px; }
.px-posts a { color: inherit; transition: color .2s ease; }
.px-posts a:hover { color: var(--px-accent); }
.px-posts a:focus-visible, .px-posts button:focus-visible, .px-posts [tabindex="0"]:focus-visible { outline: 2px solid var(--px-accent); outline-offset: 4px; }
.px-posts .px-breadcrumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0 0 40px; font-size: 14px; line-height: 1.6; }
.px-breadcrumbs > a { color: #8c7a6e; }
.px-breadcrumbs > a:hover { text-decoration: underline; }
.px-breadcrumbs > [aria-current="page"] { color: var(--px-accent); }
.px-posts .px-department-tabs { display: flex; gap: 12px; margin-bottom: 24px; }
.px-posts .px-department-tabs button { min-height: 0; margin: 0; padding: 8px 24px; border: 1px solid var(--px-accent); border-radius: 999px; background: transparent; color: var(--px-accent); font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.5; text-transform: none; letter-spacing: 0; box-shadow: none; }
.px-posts .px-department-tabs button[aria-selected="true"] { background: var(--px-accent); color: #fff; }
.px-posts .px-department-tabs #px-dental-tab { border-color: var(--px-secondary); color: var(--px-secondary); }
.px-posts .px-department-tabs #px-dental-tab[aria-selected="true"] { background: var(--px-secondary); color: #fff; }
.px-posts .px-department-panel[hidden] { display: none; }
.px-department-dental { --px-accent: #955e40; }
.px-posts .px-news-section { margin: 0 0 40px; }
.px-posts .px-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 24px 0; }
.px-posts .px-section-heading h2 { margin: 0; color: var(--px-accent); font-family: inherit; font-size: 24px; line-height: 1.4; font-weight: 700; }
.px-posts .px-news-section .px-section-heading h2 { text-transform: uppercase; }
.px-posts .px-section-heading > a { color: var(--px-accent); font-size: 16px; white-space: nowrap; }
.px-posts .px-section-heading > a:hover { text-decoration: underline; }
.px-posts .px-section-heading > a > span { display: inline-block; margin-left: 8px; }
.px-posts .px-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.px-posts .px-news-featured { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.px-posts .px-news-featured > .px-post-card:first-child { grid-row: span 2; }
.px-posts .px-post-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; }
.px-posts .px-card-image { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 24px; background: #f7eae0; }
.px-posts .px-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.px-posts .px-card-image:hover img { transform: scale(1.05); }
.px-posts .px-card-meta { display: flex; flex-wrap: wrap; gap: 5px; color: #58473e; font-size: 14px; line-height: 1.5; }
.px-posts .px-card-meta a { color: var(--px-secondary); }
.px-posts .px-post-card h3 { margin: 0; color: #58473e; font-family: inherit; font-size: 18px; line-height: 1.5; font-weight: 700; }
.px-posts .px-post-card h3 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.px-posts .px-post-card h3 a:hover { text-decoration: underline; }
.px-posts .px-card-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 14px; line-height: 1.6; }
.px-posts .px-news-featured > .px-post-card:first-child h3 { font-size: 24px; }
.px-posts .px-news-featured > .px-post-card:first-child .px-card-excerpt { font-size: 16px; -webkit-line-clamp: 3; }
.px-posts .px-image-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: linear-gradient(135deg, #fff7f0, #ecd1bc); color: #955e40; letter-spacing: .12em; font-size: 18px; }
.px-posts .px-news-banner { display: block; margin: 48px 0; overflow: hidden; border-radius: 24px; }
.px-posts .px-news-banner img { display: block; width: 100%; height: auto; }
.px-posts .px-archive-heading h1 { margin: 0 0 16px; color: var(--px-accent); font-family: inherit; font-size: 30px; font-weight: 700; text-transform: uppercase; }
.px-posts .px-archive-heading { margin-bottom: 24px; }
.px-posts .px-category-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.px-posts .px-category-links a { padding: 8px 18px; border: 1px solid #dec3b1; border-radius: 999px; font-size: 14px; }
.px-posts .px-category-links a:hover, .px-posts .px-category-links a[aria-current="page"] { background: var(--px-accent); border-color: var(--px-accent); color: #fff; }
.px-posts .pagination { margin-top: 40px; }
.px-posts .nav-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.px-posts .page-numbers { display: inline-flex; justify-content: center; align-items: center; width: 36px; height: 36px; border: 1px solid #dec3b1; border-radius: 50%; }
.px-posts .page-numbers.current, .px-posts a.page-numbers:hover { color: #fff; background: var(--px-accent); border-color: var(--px-accent); }
.px-posts .px-posts-empty { padding: 40px 20px; border-radius: 16px; background: #fff7f0; text-align: center; }
.px-posts .px-single-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.px-posts .px-single-main { min-width: 0; }
.px-posts .px-article-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16px; }
.px-posts .px-article-category { color: var(--px-secondary); }
.px-posts .px-article-byline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.px-posts .px-article-byline i { margin-right: 4px; font-size: 14px; }
.px-posts .px-article-title { margin: 16px 0; color: var(--px-accent); font-family: inherit; font-size: 30px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.px-posts .px-article-intro { font-size: 16px; line-height: 1.75; }
.px-posts .px-article-content { margin: 0; padding: 0; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.px-posts .px-article-content p, .px-posts .px-article-content ul, .px-posts .px-article-content ol { margin: 0 0 16px; }
.px-posts .px-article-content h2, .px-posts .px-article-content h3, .px-posts .px-article-content h4 { margin: 24px 0 16px; color: var(--px-accent); font-family: inherit; font-weight: 700; line-height: 1.45; }
.px-posts .px-article-content h2 { font-size: 24px; }
.px-posts .px-article-content h3 { font-size: 21px; }
.px-posts .px-article-content h4 { font-size: 18px; }
.px-posts .px-article-content a { color: var(--px-accent); text-decoration: underline; }
.px-posts .px-article-content figure, .px-posts .px-article-content .wp-caption { width: auto; max-width: 100%; margin: 24px auto; }
.px-posts .px-article-content img { max-width: 100%; height: auto; }
.px-posts .px-article-content figure img { display: block; margin: 0 auto; }
.px-posts .px-article-content figcaption, .px-posts .px-article-content .wp-caption-text { margin: 8px 0 0; color: #847267; font-size: 14px; font-style: italic; line-height: 1.5; text-align: center; }
.px-posts .px-article-content blockquote { margin: 24px 0; padding: 20px 24px; background: #f8eee5; border-left: 3px solid var(--px-accent); color: #58473e; font-size: inherit; }
.px-posts .px-article-content .wp-block-table, .px-posts .px-article-content figure.table { overflow-x: auto; }
.px-posts .px-article-content table { width: 100%; margin: 20px 0; border-collapse: collapse; color: inherit; font-size: inherit; }
.px-posts .px-article-content td, .px-posts .px-article-content th { padding: 12px; border: 1px solid #e8d9cd; }
.px-posts .px-article-content iframe, .px-posts .px-article-content video { max-width: 100%; }
.px-posts .px-article-sidebar { position: sticky; top: var(--px-sidebar-top, 120px); align-self: start; min-width: 0; width: 100%; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #dec3b1 transparent; }
.px-posts .px-sidebar-categories { position: relative; margin-bottom: 24px; padding: 24px 18px 18px; border: 1px solid #eadbce; border-radius: 20px; background: linear-gradient(145deg, #fff9f2, #fff 65%); box-shadow: 0 8px 28px rgba(104, 68, 44, .055); }
.px-posts .px-sidebar-categories::before { content: ''; position: absolute; top: 0; left: 24px; width: 44px; height: 3px; border-radius: 0 0 4px 4px; background: #b17a53; }
.px-posts .px-sidebar-categories h2 { margin: 0 6px 18px; padding-bottom: 16px; border-bottom: 1px solid #eadbce; color: #815039; font-family: inherit; font-size: 20px; font-weight: 700; line-height: 1.4; }
.px-posts .px-sidebar-categories ul { margin: 0; padding: 0; list-style: none; }
.px-posts .px-sidebar-categories ul.children { margin: 4px 0 8px 12px; padding-left: 10px; border-left: 1px solid #e8d9cd; }
.px-posts .px-sidebar-categories li { margin: 0; }
.px-posts .px-sidebar-categories li + li { margin-top: 5px; }
.px-posts .px-sidebar-categories a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 11px 12px; border-radius: 10px; color: #695346; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; transition: color .2s ease, background-color .2s ease; }
.px-posts .px-sidebar-categories a::after { content: '›'; flex: 0 0 24px; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid #ebdfd4; border-radius: 50%; background: #fffaf5; color: #ac805f; font-family: Arial, sans-serif; font-size: 19px; line-height: 1; }
.px-posts .px-sidebar-categories a:hover, .px-posts .px-sidebar-categories a:focus-visible { background: #f5e8db; color: #815039; text-decoration: none; }
.px-posts .px-sidebar-categories .current-cat > a { background: #f2e2d3; color: #79472f; font-weight: 700; }
.px-posts .px-sidebar-categories .current-cat > a::after { border-color: #955e40; background: #955e40; color: #fff; }
.px-posts .px-article-sidebar > a { display: block; overflow: hidden; border-radius: 20px; }
.px-posts .px-article-sidebar img { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) { .px-posts .px-sidebar-categories a { transition: none; } }
.px-posts .px-article-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; padding: 16px 0; border-bottom: 1px solid #e8d9cd; font-weight: 700; }
.px-posts .px-related { margin: 64px 0 24px; }
.px-posts .px-related-controls { display: flex; gap: 16px; }
.px-posts .px-related-controls button { display: inline-flex; justify-content: center; margin: 0; padding: 0; width: 32px; height: 32px; min-height: 32px; border: 1px solid var(--px-accent); border-radius: 50%; background: #fff; box-shadow: none; color: var(--px-accent); font-size: 24px; line-height: 1; }
.px-posts .px-related-controls button:hover { background: var(--px-accent); color: #fff; }
.px-posts .px-related-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 64px) / 3); gap: 32px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #dec3b1 transparent; padding-bottom: 16px; }
.px-posts .px-related-track > article { scroll-snap-align: start; }
@media (min-width: 1280px) and (max-width: 1535px) { .px-posts-container { max-width: 1280px; } }
@media (min-width: 1024px) and (max-width: 1279px) { .px-posts-container { max-width: 1024px; } .px-posts .px-single-grid { gap: 32px; } }
@media (max-width: 1023px) {
    .px-posts .px-single-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .px-posts .px-article-sidebar { position: static; max-height: none; overflow: visible; max-width: 390px; margin: 0 auto; }
    .px-posts .px-news-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .px-posts .px-news-featured > .px-post-card:first-child { grid-column: 1 / -1; grid-row: auto; }
    .px-posts .px-news-grid { gap: 24px; }
}
@media (max-width: 767px) {
    .px-posts { padding: 28px 0; }
    .px-posts-container { padding: 0 16px; }
    .px-posts .px-breadcrumbs { margin-bottom: 28px; font-size: 13px; gap: 6px; }
    .px-posts .px-department-tabs { gap: 8px; }
    .px-posts .px-department-tabs button { padding: 8px 14px; font-size: 14px; }
    .px-posts .px-section-heading { margin: 20px 0; gap: 10px; }
    .px-posts .px-section-heading h2 { font-size: 20px; }
    .px-posts .px-section-heading > a { font-size: 13px; }
    .px-posts .px-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
    .px-posts .px-news-featured { gap: 24px 16px; }
    .px-posts .px-card-image, .px-posts .px-news-banner { border-radius: 16px; }
    .px-posts .px-post-card h3 { font-size: 16px; }
    .px-posts .px-news-featured > .px-post-card:first-child h3 { font-size: 20px; }
    .px-posts .px-card-meta { font-size: 12px; }
    .px-posts .px-card-excerpt { font-size: 13px; }
    .px-posts .px-news-banner { margin: 32px 0; }
    .px-posts .px-archive-heading h1 { font-size: 24px; }
    .px-posts .px-article-meta { align-items: flex-start; flex-direction: column; gap: 8px; font-size: 14px; }
    .px-posts .px-article-title { font-size: 23px; }
    .px-posts .px-article-content h2 { font-size: 21px; }
    .px-posts .px-article-content h3 { font-size: 19px; }
    .px-posts .px-related { margin-top: 40px; }
    .px-posts .px-related-track { grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; }
}
@media (max-width: 479px) {
    .px-posts .px-news-grid { grid-template-columns: minmax(0, 1fr); }
    .px-posts .px-related-track { grid-auto-columns: 85%; }
}
@media (prefers-reduced-motion: reduce) { .px-posts a, .px-posts img { transition: none; } }

/* Warm, readable article details across categories and single posts. */
.px-posts .px-article-content a:hover { color: #79472f; }
.px-posts .px-article-content th { background: #f7eae0; color: #704a35; }
.px-posts .px-article-content hr { border-color: #e8d9cd; }
.px-posts .px-content-pages { color: var(--px-accent); }
.px-posts .px-article-byline { color: #847267; }
.px-posts .px-article-byline a:hover { color: var(--px-accent); }
