/* Market selection is the entrance to the complete facility story. */
.buyer-home #markets.market-showcase,.portfolio-industries .market-showcase{background:#101315;color:#fff;border-top:3px solid #ed2638;position:relative;padding:clamp(48px,6vw,86px) max(5vw,22px)}
.market-showcase .section-head{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,.8fr);gap:clamp(28px,5vw,74px);align-items:end;margin-bottom:36px}
.market-showcase .eyebrow,.portfolio-industries .market-intro .eyebrow{color:var(--sla-red-on-dark)!important}
.buyer-home #markets.market-showcase h2,.portfolio-industries .market-showcase h2{font-size:clamp(36px,4.7vw,68px);line-height:1.04;letter-spacing:-.045em;text-transform:none;color:#fff}
.market-showcase h2 em{color:var(--sla-red)}
.market-showcase .section-head>p{font-size:18px;line-height:1.65;color:#d7dde0;max-width:440px;margin:0 0 5px}
.market-story-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.market-story-grid .market-story-card{display:flex;position:relative;isolation:isolate;overflow:hidden;flex-direction:column;justify-content:flex-end;min-width:0;min-height:326px;padding:26px;border:1px solid #465056;border-top:2px solid #ed2638;background:#171b1e;color:#fff;text-decoration:none;scroll-margin-top:100px}
.market-story-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;opacity:.84}
.market-story-card::before{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(8,12,15,.12) 0%,rgba(8,12,15,.54) 34%,#101518 82%)}
.market-story-card>div,.market-story-card>h3,.market-story-card>p{position:relative;z-index:2}
.market-story-card .market-card-top{display:flex;align-items:start;justify-content:space-between;gap:14px;margin-bottom:auto;padding-bottom:50px}
.market-story-card .market-index{font:800 16px/1 Archivo,Arial,sans-serif;letter-spacing:.08em;color:#fff;display:inline-flex;align-items:center;gap:10px;text-shadow:0 1px 8px #000}
.market-story-card .market-index:before{content:'';width:22px;height:3px;background:var(--sla-red)}
.market-story-card .market-icon{width:34px;height:34px;stroke:#fff;filter:drop-shadow(0 1px 5px #000)}
.market-story-grid .market-story-card h3{font:800 clamp(23px,2.1vw,29px)/1.12 Archivo,Arial,sans-serif;letter-spacing:-.025em;text-transform:none;color:#fff;margin:0 0 12px;max-width:310px;text-wrap:balance}
.market-story-card .market-story-line{display:block;font-size:16px;font-weight:500;line-height:1.5;color:#dce1e4;margin:0 0 20px;max-width:320px}
.market-story-card .market-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #536069;padding-top:15px}
.market-story-card .market-image-kind{font-size:11px;line-height:1.3;color:#b7c2c9;letter-spacing:.03em}
.market-story-card .market-arrow{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #ef2c3e;border-radius:50%;font-size:21px;line-height:1;color:#fff;flex:none;background:#ac1425}
.market-story-grid .market-story-card:hover,.market-story-grid .market-story-card:focus-visible{background:#171b1e;color:#fff;border-color:var(--sla-red);box-shadow:0 0 0 1px var(--sla-red)}
.market-story-grid .market-story-card:hover h3,.market-story-grid .market-story-card:focus-visible h3{color:#fff;text-decoration:underline;text-decoration-color:var(--sla-red);text-underline-offset:6px;text-decoration-thickness:2px}
.market-story-grid .market-story-card:focus-visible{outline:3px solid white;outline-offset:5px}
.market-story-grid .market-story-card:hover .market-arrow,.market-story-grid .market-story-card:focus-visible .market-arrow{background:#f12a35;color:#fff}
.market-showcase-footer{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-top:32px;padding-top:24px;border-top:1px solid #424c52}
.market-showcase-footer p{font-size:15px;line-height:1.6;color:#c2cbd1;margin:0;max-width:670px}
.market-showcase-footer a{color:#fff;white-space:nowrap;font-size:16px;text-decoration:underline;text-decoration-color:#ed2638;text-underline-offset:6px;padding:10px 0}
.portfolio-industries .market-intro{background:#fff;color:#131719;padding:clamp(46px,5vw,72px) max(5vw,22px);border-bottom:0}
.portfolio-industries .market-intro h1{font-size:clamp(42px,5.4vw,76px);line-height:1.06;letter-spacing:-.045em;color:#131719;margin:18px 0 26px;max-width:1060px}
.portfolio-industries .market-intro h1 em{color:var(--sla-red)}
.portfolio-industries .market-intro .lead{color:#35424a;max-width:890px}
.portfolio-industries .market-intro .breadcrumbs{color:#42525c;font-size:14px}
.portfolio-industries .market-intro .breadcrumbs a{color:inherit}
.portfolio-industries .market-showcase .section-head{grid-template-columns:1fr 1fr}
.portfolio-industries .market-showcase h2{font-size:clamp(34px,4vw,54px)}
.portfolio-industries .market-showcase .market-grid-label{font-size:28px;line-height:1.2;margin:0 0 26px;text-transform:none;letter-spacing:-.025em}
.portfolio-industries .market-intro{padding-top:42px;padding-bottom:42px}
.portfolio-industries .market-contact{background:#fff;color:#151a1d}
.portfolio-industries .market-contact .lead{color:#3e4b53}
.market-story-page .detail-hero{background:#101619;border-bottom:3px solid #ec2638}
.market-story-page .detail-hero h1 em{color:var(--sla-red)}
.market-story-page .detail-hero .eyebrow{color:var(--sla-red-on-dark)!important}
.market-story-page .detail-hero .sector-hero-photo{border-top:3px solid #ed2638;box-shadow:14px 14px 0 #ffffff08}
.market-story-page .detail-intro,.market-story-page .portfolio-sector-example,.market-story-page .market-story-evidence{background:#fff}
.market-story-page .portfolio-sector-example{border-top:1px solid #d5dce0}
.market-story-page .portfolio-sector-records{background:#101619;border-top:3px solid #ed2638}
.market-story-page .portfolio-sector-records .deliverables>article>span{font-size:35px;font-weight:800;line-height:1;color:var(--sla-red-on-dark)}
.market-story-page .market-story-evidence{padding-top:52px;padding-bottom:52px;color:#182027}
.market-story-page .market-story-proof-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px;margin-top:30px}
.market-story-page .market-story-proof-grid>article{border-top:3px solid #e22135;padding:24px 0 0;min-width:0}
.market-story-page .market-story-proof-grid h3{font-size:26px;line-height:1.2;margin:12px 0 18px;color:#151b1f;text-transform:none}
.market-story-page .market-story-proof-grid p{font-size:18px;line-height:1.65;color:#2f3d47}
.market-story-page .market-story-proof-grid small{display:block;font-size:14px;line-height:1.6;color:#53616b;margin-top:18px}
.market-story-page .detail-cta{background:#b8172d;color:white}
.market-story-page .detail-cta .btn{background:#fff;color:#151a1e;border-color:#fff}
.market-story-page .detail-cta .btn:hover{background:#101619;color:#fff}
@media(prefers-reduced-motion:no-preference){
 .market-story-card{transition:border-color .2s,box-shadow .2s}
 .market-story-card>img{transition:transform .45s ease}
 .market-story-card:hover>img{transform:scale(1.035)}
}
html[data-motion=paused] .market-story-card>img{transform:none;transition:none}
@media(max-width:1000px){.market-story-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.market-story-card .market-card-top{padding-bottom:45px}.market-showcase .section-head{grid-template-columns:1.2fr 1fr}.market-story-grid .market-story-card{min-height:310px}}
@media(max-width:700px){
 .buyer-home #markets.market-showcase,.portfolio-industries .market-showcase{padding:44px 22px}
 .market-showcase .section-head,.portfolio-industries .market-showcase .section-head{grid-template-columns:1fr;gap:20px;margin-bottom:28px}
 .buyer-home #markets.market-showcase h2{font-size:clamp(34px,9vw,44px)!important;line-height:1.06}
 .market-showcase-footer{display:block;margin-top:24px}.market-showcase-footer a{display:inline-block;margin-top:14px}
 .portfolio-industries .market-intro{padding:36px 22px}
 .portfolio-industries .market-intro h1{font-size:clamp(35px,9vw,44px)!important}
 .market-story-page .market-story-proof-grid{grid-template-columns:1fr;gap:28px}
 .market-story-page .market-story-evidence{padding:38px 22px}
 .market-story-page .portfolio-sector-records .deliverables>article{grid-template-columns:48px minmax(0,1fr)}
 .market-story-page .portfolio-sector-records .deliverables>article>span{white-space:nowrap}
 /* Long experience headings must fit the phone column without widening it. */
 .market-story-page .market-experience-story{grid-template-columns:minmax(0,1fr)}
 .market-story-page .market-experience-story>div{min-width:0}
 .market-story-page .market-experience-story h2{font-size:clamp(24px,6.7vw,32px);overflow-wrap:anywhere;hyphens:auto}
}
@media (max-width:700px), (max-width:950px) and (max-height:500px) {
 /* Each market remains one full-width link with its own photo and description. */
 .market-story-grid {grid-template-columns:minmax(0,1fr);gap:8px}
 .market-story-grid .market-story-card {
   display:grid;grid-template-columns:clamp(64px,20vw,96px) minmax(0,1fr);
   grid-template-rows:auto auto;align-content:center;column-gap:14px;row-gap:4px;
   min-height:96px;padding:10px 12px 10px 0;
 }
 .market-story-card>img {
   grid-area:1/1/3/2;position:static;align-self:stretch;width:100%;height:100%;
   min-height:0;max-height:96px;object-fit:cover;opacity:1;
 }
 .market-story-card .market-card-bottom {grid-column:2;padding:0;border:0}
 .market-story-card .market-card-bottom .market-arrow {display:none}
 .market-story-card::before,.market-story-card .market-card-top {display:none}
 .market-story-grid .market-story-card h3 {grid-area:1/2;align-self:end;font-size:18px;line-height:1.18;margin:0;text-wrap:initial}
 .market-story-card .market-story-line {grid-area:2/2;align-self:start;font-size:15px;line-height:1.35;margin:0}
}
@media (min-width:701px) and (max-width:950px) and (max-height:500px) {
  .market-story-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:1100px) {
  .market-story-grid {grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(12px,1.15vw,24px)}
  .market-story-grid .market-story-card {min-height:clamp(200px,15vw,300px);padding:clamp(14px,1.15vw,26px)}
  .market-story-card .market-card-top {padding-bottom:18px}
  .market-story-grid .market-story-card h3 {font-size:clamp(21px,1.55vw,29px);margin-bottom:8px}
  .market-story-card .market-story-line {margin-bottom:0;line-height:1.38}
  .market-story-card .market-card-bottom {margin-top:8px;padding-top:8px}
}
.market-story-page #laboratory-experience{background:#101619;color:#fff}
.market-story-page #laboratory-experience h2{color:#fff}
.market-story-page #laboratory-experience .section-head>p{color:#dde5e9}
.market-story-page #laboratory-experience .market-story-proof-grid h3{color:#fff}
.market-story-page #laboratory-experience .market-story-proof-grid p{color:#dde5e9}
.market-story-page #laboratory-experience .market-story-proof-grid p.eyebrow{color:var(--sla-red-on-dark)}
.market-story-page #laboratory-experience a.text-link{color:#fff}

body.market-story-page main .detail-hero .sector-hero-photo{min-width:0;width:100%;max-width:none;justify-self:stretch}
body.market-story-page main .detail-hero .sector-hero-photo>img{width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain}
.healthcare-reference-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,3vw,42px);align-items:start}
.healthcare-reference{margin:0;min-width:0}
.healthcare-reference img{display:block;width:100%;height:auto;max-width:100%}
.healthcare-reference figcaption{margin-top:8px;font-size:15px;line-height:1.45;color:#42525c}
@media(max-width:850px){.healthcare-reference-grid{grid-template-columns:minmax(0,1fr)}}

/* Give market photos and copy the same responsive page edges. */
@media (min-width: 851px) {
  body.market-story-page main .detail-hero,
  body.market-story-page main > .section {
    padding-inline: clamp(2rem, 5.5vw, 12rem);
  }
  body.market-story-page main .detail-hero:has(.sector-hero-photo) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 3.5vw, 7rem);
  }
  body.market-story-page main .detail-hero h1 {
    max-width: none;
    font-size: clamp(2.75rem, 3.65vw, 8rem);
  }
  body.market-story-page main .detail-hero .lead {
    max-width: 54ch;
    font-size: clamp(1.2rem, 1.35vw, 2.5rem);
  }
  body.market-story-page main .detail-intro h2 {
    font-size: clamp(2rem, 2.65vw, 5.5rem);
  }
  body.market-story-page main .detail-intro .intro-copy > p {
    max-width: 67ch;
    font-size: clamp(1.2rem, 1.18vw, 2rem);
  }
}
@media (max-width: 850px) {
  body.market-story-page main .detail-hero,
  body.market-story-page main .detail-intro {
    grid-template-columns: minmax(0, 1fr);
  }
  body.market-story-page main .detail-intro > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

.market-pages[hidden],.market-story-grid .market-story-card[hidden] {display:none!important}
.market-story-grid {scroll-margin-top:5rem}
.market-pages {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:1rem;margin-top:1.25rem;color:#fff}
.market-pages button {font:inherit;font-weight:700;min-height:44px;padding:8px 14px;border:1px solid #9ca9b0;background:#20292f;color:white;cursor:pointer}
.market-pages button:disabled {opacity:.48;cursor:default}
.market-pages button:focus-visible {outline:3px solid white;outline-offset:3px}
