@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/design/fonts/cormorant-cyrillic-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

.cx-page:has(.cx-directory) .content { background:#faf9f5 }
.cx-page .cx-directory .cx-heading {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,36%);
  align-items:end;
  gap:18px 32px;
  margin:clamp(22px,3vw,48px) 0 clamp(24px,2.6vw,40px);
}
.cx-directory .cx-directory-intro h1 {
  font:650 clamp(44px,5.1vw,78px)/1 Mulish,Arial,sans-serif;
  letter-spacing:-.065em;
  color:#1b3026;
}
.cx-directory .cx-directory-intro h1 em {
  font:italic 500 1.16em/.87 'Cormorant Garamond',Georgia,serif;
  color:#45634c;
  letter-spacing:-.055em;
}
.cx-page .cx-directory .cx-directory-intro p {
  max-width:50ch;
  margin:13px 0 0;
  font:500 clamp(15px,1.2vw,18px)/1.45 Mulish,Arial,sans-serif;
  color:#4e5c52;
}
.cx-directory-search {
  display:flex;
  gap:4px;
  align-items:center;
  padding:4px;
  border:1px solid #bcc7ba;
  border-radius:9px;
  background:#fff;
}
.cx-directory-search:focus-within { outline:2px solid #496d52; outline-offset:2px }
.cx-directory .cx-directory-search input {
  display:block;
  min-width:0;
  width:100%;
  flex:1;
  height:44px;
  margin:0;
  padding:8px 10px;
  border:0;
  outline:0;
  background:transparent;
  color:#203329;
  font:500 16px/1.35 Mulish,Arial,sans-serif;
}
.cx-directory-search input::placeholder { color:#5d695e; opacity:1 }
.cx-directory-search button {
  min-height:44px;
  padding:0 20px;
  border:0;
  border-radius:6px;
  background:#233f32;
  color:#fff;
  cursor:pointer;
  font:700 15px/1.2 Mulish,Arial,sans-serif;
}
.cx-directory .cx-directory-grid {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:clamp(12px,1.2vw,20px);
}
.cx-directory .cx-department {
  --tile:#e9e8e3;
  position:relative;
  display:grid;
  grid-column:span 2;
  grid-template-rows:auto 1fr;
  align-content:end;
  align-items:end;
  gap:14px;
  min-width:0;
  padding:clamp(18px,2vw,32px);
  border-radius:12px;
  background:var(--tile);
  color:#1a2a20;
  text-decoration:none;
}
.cx-department[data-tone="energy"] { --tile:#f3e7c6 }
.cx-department[data-tone="oral"] { --tile:#e0e9e2 }
.cx-department[data-tone="care"] { --tile:#f2e5e9 }
.cx-department[data-tone="equipment"] { --tile:#e3e9ed }
.cx-department-art {
  display:grid;
  height:clamp(114px,12vw,180px);
  place-items:center;
}
.cx-department-art img {
  display:block;
  width:100%;
  height:100%;
  min-height:0;
  object-fit:contain;
  transition:transform .25s ease;
}
.cx-directory .cx-department-copy h2 {
  color:inherit;
  font:700 clamp(21px,1.95vw,31px)/1.12 Mulish,Arial,sans-serif;
  letter-spacing:-.047em;
  overflow-wrap:break-word;
}
.cx-directory .cx-department-copy p {
  margin:5px 0 0;
  color:#4c5a51;
  font:600 14px/1.35 Mulish,Arial,sans-serif;
}
.cx-department-arrow {
  position:absolute;
  top:14px;
  right:17px;
  color:#31483a;
  font:500 21px/1 Mulish,Arial,sans-serif;
}
@media (min-width:861px) {
  .cx-department:nth-last-child(-n+2) {
    grid-column:span 3;
    grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);
    grid-template-rows:auto;
    align-items:center;
    gap:clamp(16px,2vw,32px);
  }
  .cx-department:nth-last-child(-n+2) .cx-department-art { height:clamp(86px,8vw,130px) }
}
@media (hover:hover) {
  .cx-department:hover img { transform:translateY(-3px) scale(1.04) }
  .cx-department:hover h2 { text-decoration:underline; text-underline-offset:4px }
  .cx-directory-search button:hover { background:#365741 }
}
@media (max-width:860px) {
  .cx-page .cx-directory .cx-heading { grid-template-columns:1fr }
  .cx-directory .cx-directory-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .cx-directory .cx-department { grid-column:auto; }
  .cx-department:last-child:nth-child(odd) { grid-column:1/-1; }
  .cx-department:last-child:nth-child(odd) { grid-template-columns:minmax(90px,25%) 1fr; grid-template-rows:auto; align-items:center; }
  .cx-department:last-child:nth-child(odd) .cx-department-art { height:78px; }
}
@media (max-width:600px) {
  .cx-page .cx-directory .cx-heading { margin:18px 0 16px; gap:14px }
  .cx-directory .cx-directory-intro h1 { font-size:clamp(38px,9vw,52px) }
  .cx-page .cx-directory .cx-directory-intro p { margin-top:8px; line-height:1.35; }
  .cx-directory .cx-directory-grid { grid-template-columns:minmax(0,1fr); gap:8px; }
  .cx-directory .cx-department,.cx-directory .cx-department:last-child {
    grid-column:auto;
    grid-template-columns:clamp(54px,16vw,84px) minmax(0,1fr) auto;
    grid-template-rows:auto;
    align-items:center;
    gap:13px;
    padding:10px 13px;
    border-radius:8px;
  }
  .cx-directory .cx-department-art,.cx-directory .cx-department:last-child .cx-department-art { height:55px; }
  .cx-directory .cx-department-copy h2 { font-size:clamp(17px,4.5vw,21px); line-height:1.12; }
  .cx-directory .cx-department-copy p { margin-top:3px; font-size:12px; }
  .cx-department-arrow { position:static; font-size:17px; }
  .cx-directory-search button { padding-inline:16px; }
}
