.facility-portal { background: #f7f5ef; color: #25383c; min-height: 100vh; }
.facility-portal .bar, .facility-portal main { width: min(68rem, calc(100% - 2rem)); }
.facility-portal .panel { border-color: #d9ded2; border-radius: 1rem; }
.portal-heading { position: relative; margin-bottom: 1.25rem; padding: clamp(1.4rem, 4vw, 2.7rem); border-radius: 1.2rem; background: #293f43; color: #fffcf4; }
.portal-heading a { color: #e0e9df; font-size: .8rem; }
.portal-heading h1 { margin: .46rem 0 .25rem; }
.portal-heading p { color: #edf1e9; font-size: .92rem; }
.portal-live {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: .8rem; padding: .2rem .72rem;
  border: 1px solid #718781; border-radius: 2rem; color: #f1f6eb; font-size: .77rem;
}
.portal-live::before { content: ""; width: .43rem; height: .43rem; border-radius: 50%; background: #a5d9b7; }
.portal-live:empty { display: none; }
.portal-intake {
  display: flex; align-items: center; gap: 1.1rem 2rem; flex-wrap: wrap;
  margin-bottom: 1.25rem; padding: 1.15rem 1.45rem; border-radius: 1rem; background: #ede7da; color: #394747;
}
.portal-intake h2 { margin: 0; font-family: inherit; font-weight: 750; font-size: .86rem; }
.portal-intake strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.portal-intake p { max-width: 32rem; font-size: .9rem; }
.portal-access { margin-top: 1rem; }
.portal-access summary { font-weight: 750; }
.portal-access p { margin-top: .55rem; }
.portal-access input, .directory-filter input {
  width: 100%; min-width: 0; padding: .57rem .7rem; border: 1px solid #9aaea0; border-radius: .4rem; background: white; font-size: 1rem;
}
.portal-access form > button { margin-top: .65rem; }
.portal-access li { margin-bottom: .4rem; overflow-wrap: anywhere; }
.facility-checks { display: flex; flex-wrap: wrap; gap: .25rem .85rem; }
.facility-checks .check { margin: .2rem 0; }
.facility-portal fieldset { min-width: 0; border: 1px solid var(--line); border-radius: .5rem; margin: .7rem 0; }
.facility-portal .vacancy-progress { font-size: .86rem; font-weight: 760; color: #375b55; }
.directory-filter {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.2rem;
  background: #fffdf8; border: 1px solid #d9ded2; border-radius: 1rem; padding: .8rem 1.15rem 1.15rem;
}
.directory-count { margin-block: .65rem; }
.directory-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.directory-card { min-width: 0; padding: 1.2rem; border: 1px solid #d9ded2; border-radius: 1rem; background: #fffdf8; }
.directory-meta, .directory-date { color: #526365; font-size: .8rem; overflow-wrap: anywhere; }
.directory-head { display: flex; align-items: start; justify-content: space-between; gap: .35rem .65rem; flex-wrap: wrap; margin: .25rem 0; }
.directory-head h2 { margin: 0; font-size: 1.28rem; overflow-wrap: anywhere; }
.directory-badge { flex-shrink: 0; padding: .12rem .55rem; border-radius: 2rem; background: #dceee4; color: #254d3d; font-size: .79rem; font-weight: 750; }
.directory-badge[data-state="consultation"] { color: #5c460e; background: #f7edcc; }
.directory-categories { display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0 .7rem; padding: 0; list-style: none; }
.directory-categories li { border: 1px solid #d8ded1; padding: .15rem .5rem; border-radius: .35rem; font-size: .76rem; }
.directory-phone { display: inline-block; margin: .15rem 0 .25rem; font-weight: 720; }
.directory-empty { padding: 1.2rem; border: 1px dashed #a6b3a9; border-radius: .7rem; color: #43585a; }
@media (max-width: 620px) {
  .directory-filter, .directory-items { grid-template-columns: 1fr; }
  .facility-portal .bar { gap: .55rem; }
  .facility-portal .area-name { display: none; }
}
