/* 301 BIOTEC — Industries directory (served at /solutions/).
   A tool, not a presentation: one light band, a card grid and a single information panel.
   Colour, type and spacing tokens all come from site.css; nothing here is a new brand value. */

/* The page is warm from the first paint. Without a hero there is no bridge for chrome.js to
   fade across, so the background would otherwise start on the site's near-black default. */
#bg{background:var(--off)}

.dir{position:relative;padding-top:calc(92px + clamp(34px,5vh,60px));padding-bottom:clamp(56px,8vh,96px)}
@media (max-width:900px){ .dir{padding-top:calc(76px + clamp(26px,4vh,40px))} }

/* ---------- masthead: compact, not cinematic ---------- */
.dir-head{max-width:54em;padding-bottom:clamp(26px,3.4vh,38px);border-bottom:1px solid rgba(21,26,23,.16)}
.dir-head .k{display:flex;align-items:center;gap:14px;color:var(--muted)}
.dir-head .k i{font-style:normal;color:#846739}
.dir-head h1{margin-top:16px;font:700 clamp(30px,3.4vw,52px)/1.02 var(--h);letter-spacing:-.04em;color:var(--ink)}
.dir-head p{margin-top:14px;max-width:62ch;font-size:clamp(15px,1.15vw,17px);line-height:1.6;color:var(--muted)}

/* ---------- the directory grid ---------- */
.dir-cards{list-style:none;margin:clamp(22px,3vh,32px) 0 0;padding:0;
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1vw,14px)}
.dir-cards button{display:flex;flex-direction:column;width:100%;height:100%;gap:0;
  padding:clamp(14px,1.3vw,18px);text-align:left;cursor:pointer;font:inherit;color:var(--ink);
  background:rgba(255,255,255,.55);border:1px solid rgba(21,26,23,.14);
  transition:background .22s,border-color .22s,color .22s,transform .22s}
.dir-cards button:hover{background:#fff;border-color:rgba(21,26,23,.3);transform:translateY(-2px)}
.dir-cards .no{font:600 9.5px/1 var(--b);letter-spacing:.2em;color:#846739;transition:color .22s}
.dir-cards .nm{margin-top:12px;font:600 clamp(15px,1.15vw,18px)/1.2 var(--h);letter-spacing:-.02em}
.dir-cards .ds{margin-top:9px;font-size:12.5px;line-height:1.5;color:var(--muted);transition:color .22s}
.dir-cards .rt{display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:14px}
.dir-cards .rt em{font-style:normal;font:600 8.5px/1.3 var(--b);letter-spacing:.14em;
  text-transform:uppercase;color:var(--muted);transition:color .22s}
.dir-cards .rsc{flex:none}
.dir-cards button:focus-visible{outline:2px solid var(--brass-lo);outline-offset:2px}

/* selected: the forest green already used for the active state everywhere else on the site */
.dir-cards button[aria-selected="true"]{background:var(--forest);border-color:var(--forest);color:var(--off)}
.dir-cards button[aria-selected="true"] .no{color:var(--brass-hi)}
.dir-cards button[aria-selected="true"] .ds,
.dir-cards button[aria-selected="true"] .rt em{color:rgba(242,238,229,.74)}
.dir-cards button[aria-selected="true"]:hover{background:var(--forest);transform:none}

/* ---------- the one information panel ---------- */
.dir-panel{margin-top:clamp(10px,1vw,14px);padding:clamp(22px,2.4vw,34px);
  background:#fff;border:1px solid rgba(21,26,23,.14);border-top:2px solid var(--forest);
  transition:opacity .22s}
.dir-panel.swap{opacity:0}
.dir-p-head{display:flex;align-items:baseline;gap:clamp(12px,1.4vw,20px);flex-wrap:wrap;
  padding-bottom:clamp(16px,1.8vh,22px);border-bottom:1px solid rgba(21,26,23,.12)}
.dir-no{font:600 10px/1 var(--b);letter-spacing:.2em;color:#846739}
.dir-p-head h2{font:700 clamp(21px,2vw,30px)/1.1 var(--h);letter-spacing:-.03em;color:var(--ink)}
.dir-tag{display:inline-flex;align-items:center;gap:8px;margin-left:auto;
  font:600 9px/1.3 var(--b);letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}

.dir-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,2.4vw,40px);
  margin-top:clamp(18px,2.2vh,26px)}
.dir-cols h3{font:600 9.5px/1.5 var(--b);letter-spacing:.18em;text-transform:uppercase;color:#846739;
  padding-bottom:9px;border-bottom:1px solid rgba(21,26,23,.12)}
.dir-cols p{margin-top:11px;font-size:14px;line-height:1.62;color:var(--muted)}

.dir-acts{display:flex;align-items:center;gap:clamp(18px,2.4vw,34px);flex-wrap:wrap;
  margin-top:clamp(22px,2.6vh,32px);padding-top:clamp(18px,2.2vh,24px);border-top:1px solid rgba(21,26,23,.12)}
.dir-links{display:flex;align-items:center;gap:clamp(16px,2vw,26px);flex-wrap:wrap}
.dir-links a{font:600 10px/1.4 var(--b);letter-spacing:.16em;text-transform:uppercase;color:var(--muted);
  border-bottom:1px solid rgba(21,26,23,.22);padding-bottom:3px;transition:color .2s,border-color .2s}
.dir-links a:hover{color:var(--forest);border-color:var(--forest)}

.dir-note{margin-top:clamp(20px,2.4vh,28px);font-size:12.5px;line-height:1.6;color:var(--muted);max-width:60ch}

@media (max-width:1100px){ .dir-cards{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:760px){
  .dir-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dir-cards .ds{display:none}                  /* the panel carries the detail on a phone */
  .dir-cards .rt{padding-top:12px}
  .dir-cols{grid-template-columns:minmax(0,1fr);gap:18px}
  .dir-tag{margin-left:0;width:100%}
  .dir-acts{flex-direction:column;align-items:stretch;gap:16px}
  .dir-acts .go{justify-content:center}
  .dir-links{justify-content:flex-start}
}
