/* These styles stop at #content; the site header, navigation and footer are unchanged. */
#content .dtx-sal {color:#263f50;background:#f4f8fa;min-height:40vh;overflow-wrap:anywhere}
#content .dtx-sal-wrap {max-width:1040px;margin-inline:auto;padding-inline:clamp(16px,4vw,36px)}
#content .dtx-sal-hero {padding-block:clamp(26px,5vw,54px);background:#e8f2f5;border-bottom:1px solid #cbdfe6}
#content .dtx-sal h1 {margin:0 0 18px;font-size:clamp(29px,4.5vw,46px);line-height:1.13;color:#123a60}
#content .dtx-sal h2 {margin:0 0 6px;font-size:clamp(19px,2.5vw,24px);line-height:1.28;color:#123a60}
#content .dtx-sal p {font-size:16px;line-height:1.55}
#content .dtx-sal a {color:#164e69;text-decoration:underline;text-underline-offset:.2em}
#content .dtx-sal :is(a,button,input):focus-visible {outline:2px solid #136f68;outline-offset:3px}
#content .dtx-sal-form {max-width:680px;margin:0}
#content .dtx-sal-form label {display:block;margin-bottom:6px;color:#183c54;font-size:15px}
#content .dtx-sal-form-row {display:flex;gap:9px}
#content .dtx-sal-form input {min-width:0;flex:1;min-height:46px;border:1px solid #7894a3;border-radius:8px;background:#fff;color:#183c54;padding:8px 12px;font:inherit;font-size:16px}
#content .dtx-sal-form button {min-height:46px;padding:9px 19px;border:1px solid #24586b;border-radius:8px;color:#fff;background:#24586b;font:inherit;font-weight:600}
#content .dtx-sal-form button:hover {background:#173e54}
#content .dtx-sal-content {padding-block:24px 40px}
#content .dtx-sal-summary {margin:0 0 15px}
#content .dtx-sal-results {list-style:none;margin:0;padding:0;display:grid;gap:12px}
#content .dtx-sal-card,#content .dtx-sal-empty {padding:clamp(14px,2.8vw,23px);border:1px solid #cbdde5;border-radius:11px;background:#fff}
#content .dtx-sal-card.has-image {display:grid;grid-template-columns:minmax(0,152px) minmax(0,1fr);gap:18px;align-items:center}
#content .dtx-sal-image img {display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:6px}
#content .dtx-sal-card .dtx-sal-type {margin:0 0 4px;color:#315f66;font-size:13px;font-weight:600}
#content .dtx-sal-card .dtx-sal-excerpt {margin:6px 0 0}
#content .dtx-sal .pagination {display:block;margin-top:20px}
#content .dtx-sal :is(.page-numbers,.dtx-sal-links a) {display:inline-block;padding:9px 12px;margin:4px 4px 0 0;border-radius:7px;background:#e8f2f5;color:#123a60}
#content .dtx-sal .page-numbers.current {background:#24586b;color:#fff}
@media(max-width:520px){
 #content .dtx-sal-card.has-image {grid-template-columns:minmax(0,1fr);gap:12px}
 #content .dtx-sal-image img {max-width:360px;aspect-ratio:16/9}
}

/* Shared treatment for older posts, media pages, and category/tag/date lists. */
body:is(.single-post,.attachment,.archive) #content .w_blog {background:#f4f8fa}
body:is(.single-post,.attachment,.archive) #content .w_right_side {min-width:0}
body:is(.single-post,.attachment,.archive) #content .w_blogs_post_desc .entry-title > a {color:#123a60;line-height:1.28;overflow-wrap:anywhere}
body:is(.single-post,.attachment) #content .w_blog_single .entry-content {color:#263f50;line-height:1.62;overflow-wrap:anywhere}
body:is(.single-post,.attachment) #content .w_blog_single .entry-content :is(p,li) {line-height:1.62}
body:is(.single-post,.attachment) #content .w_blog_single .entry-content img {max-width:100%;height:auto}
body:is(.single-post,.attachment) #content .w_blog_single .entry-content .wp-block-table {max-width:100%;overflow-x:auto}
body.archive #content .blog_gallery > .w_blogs_post {margin-bottom:14px;padding:clamp(14px,2.5vw,22px);border:1px solid #cbdde5;border-radius:10px;background:#fff}
body.archive #content .blog_gallery .w_blogs_post_desc {padding-inline:0}
body.archive #content .blog_gallery .w_blogs_post_desc .entry-title {margin:8px 0;font-size:clamp(19px,2.5vw,24px)}
body.archive #content .blog_gallery .entry-summary {color:#263f50;overflow-wrap:anywhere}
body.archive #content .blog_gallery .wp-post-image {height:auto;max-width:100%}
body.single-post #content .w_blog_single .w_blogs_post_desc {border-radius:10px}
body.single-post #content .w_blog_single .post-info {display:flex;flex-wrap:wrap;gap:8px 16px;margin-bottom:12px;color:#405969}
body.single-post #content .w_blog_single .post-info li {margin:0}
body.single-post #content .w_blog_single .entry-content :is(h2,h3) {color:#123a60;line-height:1.28;overflow-wrap:anywhere}
body.single-post #content .w_blog_single .entry-content a:not(.wp-block-button__link) {color:#164e69;text-underline-offset:.18em}

/* Keep the search intro in normal flow, independent of sticky site navigation. */
#content .dtx-sal > .dtx-sal-hero { position:static; inset:auto; z-index:auto; }

/* Search cards: labels, heading, facts/excerpt and the action each get their own row. */
#content .dtx-sal .dtx-sal-card {display:block;padding:0;overflow:hidden}
#content .dtx-sal a.dtx-sal-card-link {display:block;padding:clamp(16px,2.8vw,25px);color:#263f50;text-decoration:none}
#content .dtx-sal .has-image > .dtx-sal-card-link {display:grid;grid-template-columns:minmax(120px,156px) minmax(0,1fr);align-items:center;gap:clamp(14px,2.7vw,24px)}
#content .dtx-sal .dtx-sal-card-link:focus-visible {outline-offset:-3px;border-radius:10px}
#content .dtx-sal .dtx-sal-card-link:hover {background:#f7fbfc}
#content .dtx-sal .dtx-sal-card-copy {display:grid;gap:9px;min-width:0}
#content .dtx-sal .dtx-sal-card-copy h2 {margin:0;font-size:clamp(20px,2.7vw,26px);line-height:1.24;color:#123a60}
#content .dtx-sal .dtx-sal-kicker {display:flex;align-items:center;flex-wrap:wrap;gap:6px 9px}
#content .dtx-sal .dtx-sal-type {margin:0;color:#405969;font-size:13px;font-weight:600}
#content .dtx-sal :is(.dtx-sal-code,.dtx-sal-status) {padding:2px 8px;border:1px solid #c4dce6;border-radius:5px;background:#eaf4f7;color:#123a60;font-size:13px;font-weight:600;line-height:1.4}
#content .dtx-sal .dtx-sal-status {background:#f3f1ed;border-color:#ded5c6;color:#604b38}
#content .dtx-sal .dtx-sal-facts {display:flex;flex-wrap:wrap;gap:6px 16px;margin:0;font-size:15px;line-height:1.45}
#content .dtx-sal .dtx-sal-facts div {display:flex;flex-wrap:wrap;gap:0 6px}
#content .dtx-sal .dtx-sal-facts dt {font-weight:600;color:#405969}
#content .dtx-sal .dtx-sal-facts dd {margin:0;color:#223c4a}
#content .dtx-sal .dtx-sal-excerpt {margin:0;max-width:66ch;font-size:15px;line-height:1.55}
#content .dtx-sal .dtx-sal-cta {width:fit-content;margin-top:3px;font-weight:600;color:#164e69;font-size:15px;line-height:1.45;text-decoration:underline;text-underline-offset:.22em}
@media (max-width:535px) {
 #content .dtx-sal .has-image > .dtx-sal-card-link {grid-template-columns:minmax(0,1fr);gap:13px}
 #content .dtx-sal .dtx-sal-image img {width:100%;max-width:none;aspect-ratio:16/9}
}

/* Older machine detail listings: readable specs without changing the underlying data. */
body.dtx-legacy-machine #content:has(.bp_header_pics h1) .w_blog_single .w_blogs_post_desc > h2.entry-title {display:none}
body.dtx-legacy-machine #content .w_blog_single .entry-content table {
 width:100%!important;max-width:100%!important;height:auto!important;min-width:0!important;
 margin:12px 0 24px!important;table-layout:fixed;border-collapse:separate!important;border-spacing:0!important;
 background:#fff!important;border:1px solid #ccdfe6!important;border-radius:9px;overflow:hidden;
 font-size:15px;line-height:1.48;
}
body.dtx-legacy-machine #content .w_blog_single .entry-content table :is(th,td) {
 width:auto!important;height:auto!important;min-width:0!important;
 padding:10px 14px!important;border:0!important;border-bottom:1px solid #e1ebef!important;
 background:#fff!important;color:#233f51!important;text-align:left;vertical-align:top;
 overflow-wrap:anywhere;white-space:normal!important;
}
body.dtx-legacy-machine #content .w_blog_single .entry-content table :is(th,td) p {margin:0;color:inherit;font-size:inherit;line-height:inherit}
body.dtx-legacy-machine #content .w_blog_single .entry-content table :is(th,[colspan]),
body.dtx-legacy-machine #content .w_blog_single .entry-content table tr > :first-child:not([colspan]) {
 background:#eef5f8!important;color:#123a60!important;font-weight:600;
}
body.dtx-legacy-machine #content .w_blog_single .entry-content table:not(:has(tr > :nth-child(3))) tr > :first-child:not([colspan]):not(:only-child) {width:31%!important}
body.dtx-legacy-machine #content .w_blog_single .entry-content table tr:last-child > :is(th,td) {border-bottom:0!important}
body.dtx-legacy-machine #content .w_blog_single .entry-content table mark {background:#e8f2f5;color:inherit;padding:0}
@media(max-width:600px){
 body.dtx-legacy-machine #content .w_blog_single .entry-content table {font-size:14px}
 body.dtx-legacy-machine #content .w_blog_single .entry-content table :is(th,td) {padding:8px 9px!important}
 body.dtx-legacy-machine #content .w_blog_single .entry-content table:not(:has(tr > :nth-child(3))) tr > :first-child:not([colspan]):not(:only-child) {width:36%!important}
}

/* Current inventory and past listings are distinct. */
#content .dtx-past-listings {margin:38px 0 16px;padding:clamp(16px,3vw,24px);border:1px solid #cbdde5;border-radius:10px;background:#f7fafb;color:#263f50;scroll-margin-top:90px}
#content .dtx-past-listings h2 {margin:0 0 7px;color:#123a60;font-size:clamp(22px,3vw,28px);line-height:1.25}
#content .dtx-past-listings p {margin:0 0 14px;color:#405969;font-size:15px;line-height:1.5}
#content .dtx-past-listings details {border-top:1px solid #d8e5ea;padding-top:6px;margin:0}
#content .dtx-past-listings summary {color:#164e69;font-size:15px;font-weight:600;cursor:pointer;padding:10px 0}
#content .dtx-past-listings :is(a,summary):focus-visible,#content .dtx-past-notice a:focus-visible {outline:2px solid #136f68;outline-offset:3px}
#content .dtx-past-listing-list {list-style:none;margin:0;padding:0}
#content .dtx-past-listing-list li {display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;margin:0;padding:9px 0;border-top:1px solid #dfe9ed;font-size:15px}
#content .dtx-past-listing-list a {display:flex;align-items:baseline;gap:5px 10px;flex-wrap:wrap;flex:1 1 225px;min-width:0;color:#164e69;text-underline-offset:.16em;overflow-wrap:anywhere}
#content .dtx-past-name {text-decoration:underline}
#content .dtx-past-code,#content .dtx-past-state {display:inline-block;white-space:nowrap;padding:2px 7px;border-radius:5px;border:1px solid #c4dce6;background:#eaf4f7;color:#123a60;font-weight:600;font-size:13px;line-height:1.4}
#content .dtx-past-state {background:#fff;border-color:#cbdde5;color:#405969}
#content .dtx-past-sold {background:#edf4ef;border-color:#c5d9cb;color:#285640}
#content .dtx-past-notice {margin:4px 0 18px;padding:12px 15px;border:1px solid #cbdde5;border-radius:8px;background:#edf5f8;color:#263f50}
#content .dtx-past-notice p {margin:0 0 6px;color:#263f50;font-size:15px;line-height:1.5}
#content .dtx-past-notice strong {margin-right:5px;color:#123a60}
#content .dtx-past-notice a {color:#164e69;text-decoration:underline;text-underline-offset:.18em;font-weight:600}
