/* Resources page. The hero, Browse tiles (.resource-tile), blog cards (.post), buttons, Get Expert Advice and
   A Trusted Partner reuse existing styles; this file only adds what has no existing component. */

/* Browse by Content Type: ten tiles (five content types, five tools) in one grid, the homepage tile design. */
.pmx-resources-page .resources-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.pmx-resources-page .resources-grid .resource-tile{min-height:320px}
.pmx-resources-page .resources-grid .resource-tile:nth-child(5n){border-right:0}
.pmx-resources-page .resources-grid .resource-tile:nth-child(n+6){border-top:1px solid rgba(136,194,225,.24)}
@media (max-width:1100px){
.pmx-resources-page .resources-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.pmx-resources-page .resources-grid .resource-tile:nth-child(5n){border-right:1px solid rgba(136,194,225,.24)}
.pmx-resources-page .resources-grid .resource-tile:nth-child(2n){border-right:0}
.pmx-resources-page .resources-grid .resource-tile:nth-child(n+3){border-top:1px solid rgba(136,194,225,.24)}
}
@media (max-width:650px){
.pmx-resources-page .resources-grid{grid-template-columns:1fr}
.pmx-resources-page .resources-grid .resource-tile{border-right:0;min-height:0}
.pmx-resources-page .resources-grid .resource-tile:nth-child(n+2){border-top:1px solid rgba(136,194,225,.24)}
}

/* Browse heading: eyebrow and heading on the left, "View all resources" at the far right of the container,
   level with the bottom of the heading (grid bottom alignment follows any wrapping). */
#browse .resources-heading{grid-template-columns:minmax(0,1fr) auto;align-items:end}
#browse .resources-heading__aside{justify-self:end;max-width:none;padding-bottom:0;text-align:right}
#browse .resources-heading__aside p{margin:0}
@media (max-width:650px){
#browse .resources-heading{grid-template-columns:minmax(0,1fr)}
#browse .resources-heading__aside{justify-self:start;text-align:left}
}

/* Featured article / resource: the Specialty Systems card layout, image blended in from the right. */
.pmx-resources-page #featured{isolation:isolate}
.rs-featured{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.rs-featured--single{grid-template-columns:minmax(0,1fr)}
.rs-feature{position:relative;display:flex;overflow:hidden;min-height:480px;padding:40px;background:radial-gradient(ellipse at 85% 77%,rgba(15,96,157,.26),transparent 57%),linear-gradient(150deg,#061626,#09243d 75%,#0a1a2b);border:1px solid rgba(108,166,205,.26);box-shadow:0 20px 52px rgba(4,28,52,.14);color:#fff}
.rs-feature__body{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;max-width:62%}
.rs-feature .label{margin:0 0 16px;color:#b9dcfa}
.rs-feature__type{color:#8fb3cf}
.rs-feature__title{margin:0;color:#fff;font:600 clamp(26px,2.5vw,38px)/1.12 var(--sans);letter-spacing:-.03em}
.rs-feature__title a{color:inherit}
.rs-feature__copy{max-width:46ch;margin:18px 0 28px;color:#e6eef5;font-size:16px;line-height:1.65}
.rs-feature .btn{margin-top:auto}
.rs-feature::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(4,17,30,.94) 0%,rgba(4,17,30,.84) 48%,rgba(4,17,30,.34) 80%,transparent 100%)}
.rs-feature__img{position:absolute;inset:0 0 0 38%;z-index:0;margin:0;pointer-events:none;-webkit-mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.55) 30%,#000 60%),linear-gradient(180deg,transparent 0,#000 18%,#000 82%,transparent 100%);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.55) 30%,#000 60%),linear-gradient(180deg,transparent 0,#000 18%,#000 82%,transparent 100%);mask-composite:intersect}
.rs-feature__img img{width:100%;height:100%;object-fit:cover;opacity:.9}
.rs-featured--single .rs-feature__body{max-width:48%}
@media (max-width:1000px){
.rs-featured{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
.rs-feature::before{background:linear-gradient(180deg,rgba(4,17,30,.94),rgba(4,17,30,.8))}
.rs-feature{min-height:0;padding:28px 22px}
.rs-feature__body,.rs-featured--single .rs-feature__body{max-width:none}
.rs-feature__img{inset:0;opacity:.3}
}

/* Library: filter links, status line, cards (the blog .post card), Load more. */
.rs-filters{display:flex;flex-wrap:wrap;gap:0;margin-bottom:28px;border:1px solid var(--hair-l);width:max-content;max-width:100%}
.rs-filter{padding:12px 16px;background:rgba(255,255,255,.6);color:var(--steel);font:500 12px/1 var(--narrow);letter-spacing:.08em;text-transform:uppercase;text-decoration:none;transition:background .2s,color .2s}
.rs-filter+.rs-filter{border-left:1px solid var(--hair-l)}
.rs-filter:hover{color:var(--graphite);background:#fff}
.rs-filter.is-active{background:var(--navy-900);color:#fff}
.rs-filter:focus-visible{outline:2px solid var(--pmx-blue);outline-offset:-2px;position:relative}
.rs-results:focus{outline:0}
.rs-count{margin-bottom:20px;color:var(--steel);font:500 12px/1.3 var(--narrow);letter-spacing:.1em;text-transform:uppercase}
.rs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.rs-grid .post{flex:none;min-width:0}
.rs-more{margin-top:36px;text-align:right}
.rs-more .btn--line span{background:#141e2f;border-color:#141e2f;color:#fff}
.rs-empty{padding:56px 0;text-align:center}
.rs-empty p{margin-bottom:16px}
.rs-library[aria-busy="true"] .rs-results{opacity:.55;transition:opacity .2s}
@media (max-width:1000px){
.rs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
.rs-grid{grid-template-columns:minmax(0,1fr)}
.rs-filters{width:100%}
.rs-filter{flex:1 1 auto;text-align:center}
}

/* Downloads band: eyebrow, heading and text spacing like the other section headers. */
#downloads .label{margin-bottom:20px}
#downloads .rb-prose{margin-top:20px;max-width:62ch}
#downloads .hero__ctas{margin-top:32px}

/* Icon images are 48px, the text glyphs 42px: trim the difference so headings in a row stay level with the glyph tiles. */
.pmx-resources-page .pmx-resource-icon{margin:-3px 0}
