/* Approved Technical Resources B: image-led horizontal cards.
   Complete reference artwork, with real accessible text and controls. */
#resources.resources-design-b{
 position:relative;isolation:isolate;overflow:hidden;
 padding:50px 0;
 background:linear-gradient(145deg,#f8fbfd 0%,#f1f8fd 48%,#eaf5fc 100%)
}
#resources.resources-header-reference::before{
 content:"";position:absolute;z-index:-1;inset:0 0 auto auto;width:clamp(190px,24vw,410px);height:auto;aspect-ratio:256/113;
 background:url('/static/home-d/resources-design-b-header.webp') no-repeat top right / contain;pointer-events:none
}
#resources .section-head{margin-bottom:23px}
#resources .resource-grid{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch
}
#resources .resource-design-card{
 position:relative;isolation:isolate;container-type:inline-size;
 display:flex;min-width:0;min-height:190px;padding:0;aspect-ratio:2.25;overflow:hidden;
 border:1px solid #cde5f2;border-radius:15px;
 background:linear-gradient(145deg,#eff8fc,#f5fafc);
 box-shadow:0 7px 15px #2d769a20;transition:box-shadow .25s
}
#resources .resource-design-card:hover{box-shadow:0 10px 22px #2d769a2a}
#resources .resource-design-card::before{
 content:"";position:absolute;z-index:-1;inset:0;width:100%;height:100%;
 background-repeat:no-repeat;background-size:cover;background-position:left bottom;
 pointer-events:none
}
#resources .resources-reference-b .resource-catalogue::before{background-image:url('/static/home-d/resources-design-b-catalogue.webp')}
#resources .resources-reference-b .resource-tds::before{background-image:url('/static/home-d/resources-design-b-tds.webp')}
#resources .resources-reference-b .resource-insights::before{background-image:url('/static/home-d/resources-design-b-insights.webp')}
#resources .resource-design-copy{
 display:flex;flex-direction:column;align-items:flex-start;min-width:0;
 flex:1;margin-left:47%;padding:11px 12px 15px 0;
}
#resources .resource-tds .resource-design-copy{margin-left:41%}
#resources .resource-insights .resource-design-copy{margin-left:43%}
#resources .resource-design-copy .eyebrow{font-size:clamp(9px,2.6cqw,11px);line-height:1.25;margin:0 0 5px;color:#007f8c;letter-spacing:.075em}
#resources .resource-design-copy h3{font-size:clamp(15px,4.35cqw,20px);line-height:1.15;margin:0 0 5px;color:#092e4e;font-weight:750;letter-spacing:-.025em}
#resources .resource-design-copy>p:not(.eyebrow){font-size:clamp(12px,3.25cqw,14px);color:#34536e;line-height:1.38;margin:0 0 6px}
#resources .resource-design-copy .doc-count{font-size:11px;padding:2px 5px;background:#dceff4}
#resources .resource-design-copy .buttons{display:flex;flex-wrap:wrap;gap:7px;margin-top:auto;width:100%}
#resources .resource-design-copy .btn{
 display:inline-flex;align-items:center;justify-content:center;
 font-size:clamp(10px,2.85cqw,13px);padding:7px 9px;min-height:33px;
 border-radius:6px;white-space:nowrap;line-height:1.2;letter-spacing:-.015em
}
#resources .resource-catalogue .btn[download]{
 background:#008b96;color:#fff;border:1px solid #008b96
}
#resources .resource-catalogue .btn[download]:hover{background:#006e7b;border-color:#006e7b}
#resources .resource-design-copy .tds-links{
 display:flex;flex-wrap:wrap;gap:5px;align-content:flex-start;
 margin:0 0 5px;max-height:62px;overflow:auto;width:100%;padding:1px 0
}
#resources .resource-design-copy .tds-links a{
 display:inline-flex;align-items:center;padding:3px 6px;
 font-size:clamp(10px,2.7cqw,12px);line-height:1.25;
 min-height:22px;white-space:nowrap;border-radius:5px;background:#fafdffdb;
 border:1px solid #accbdc;color:#007a89
}
#resources .resource-design-copy .text-link{font-size:clamp(11px,3.1cqw,14px);line-height:1.35;margin-top:auto}
#resources .resource-design-copy a:focus-visible{outline:2px solid #007e8b;outline-offset:2px}
#resources .resources-fallback-b .resource-design-card::before{
 background:linear-gradient(90deg,#c4dfef 0%,#e2f1f8 42%,transparent 57%)
}
#resources .resources-fallback-b .resource-design-copy{margin-left:36%}
@media(max-width:1100px) and (min-width:761px){
 #resources .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #resources .resource-design-card{min-height:190px}
}
@media(max-width:760px){
 #resources .resource-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 #resources .resource-design-card{min-height:185px;aspect-ratio:auto}
 #resources .resource-design-copy{padding:12px 12px 17px 0}
 #resources.resources-header-reference::before{opacity:.65}
}
@media(max-width:360px){
 #resources .resource-design-card{min-height:205px}
 #resources .resource-design-copy{padding-right:8px}
 #resources .resource-design-copy .btn{padding:6px 7px}
 #resources .resource-design-copy .tds-links{max-height:88px}
}
@media(prefers-reduced-motion:reduce){#resources .resource-design-card{transition:none}}

/* Preserve artwork aspect ratios even when mobile content grows. */
@media(max-width:1100px){
 #resources.resources-design-b{padding:42px 0}
 #resources .resources-reference-b .resource-design-card::before{
  inset:auto 0 0;width:100%;height:auto;aspect-ratio:var(--resource-art-ratio);
  background-size:contain;background-position:left bottom;
  mask-image:linear-gradient(to bottom,transparent,#000 18%);
 }
 #resources .resource-catalogue{--resource-art-ratio:427/181}
 #resources .resource-tds{--resource-art-ratio:416/187}
 #resources .resource-insights{--resource-art-ratio:425/187}
}
@media(max-width:760px){
 #resources.resources-design-b{padding:36px 0}
}
