.dept-directory { color: #151b2d; --dep-surface: #fff; --dep-rule: #cbc6bc; --dep-detail: #4b5563; --dep-link: #175f9a; }
.dept-directory :is(.dep-index,.dep-page) { max-width: 64rem; margin-inline: auto; min-width: 0; }
.dept-directory h1 { margin-block: .65rem .8rem; font-size: clamp(2rem, 4.5vw, 3.3rem); overflow-wrap: anywhere; }
.dept-directory h2 { margin: 0 0 .6rem; font-size: 1.22rem; }
.dept-directory a { color: var(--dep-link); text-underline-offset: .18em; }
.dep-line,.dep-source { color: var(--dep-detail); font-size: .92rem; margin-block: .85rem .25rem; }
.dep-services { font-size: 1.12rem; max-width: 48rem; margin-bottom: 1.25rem; }
.dep-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,20rem),1fr)); gap: 1rem; }
.dep-panel { min-width: 0; border: 1px solid var(--dep-rule); background: var(--dep-surface); padding: clamp(1rem,2vw,1.4rem); border-radius: .45rem; }
.dep-page .dep-panel { margin: .85rem 0; }
.dep-panel ul { margin: .3rem 0 0; padding-inline-start: 1.1rem; }
.dep-panel li { margin: .4rem 0; }
.dep-grid ul { list-style:none; padding:0; }
.dep-grid li { border-top: 1px solid var(--dep-rule); margin: 0; padding: .5rem 0; }
.dep-grid li:first-child { border-top: 0; }
.dep-panel form { margin: .7rem 0 1rem; }
.dep-panel form:last-child { margin-bottom: 0; }
.dep-search { display:flex; flex-wrap:wrap; gap:.5rem; }
.dep-search :is(input,button) { padding:.52rem .78rem; font:inherit; border:1px solid #586579; border-radius:.35rem; }
.dep-search input { flex:1 1 12rem; min-width:0; color:#151b2d; background:white; }
.dep-search button { background:#c2410c; color:white; cursor:pointer; }
.dep-search button:disabled { background:#eef0f3; color:#4b5563; cursor:default; }
.dept-directory :focus-visible { outline:3px solid var(--dep-link); outline-offset:3px; }
@media screen and (forced-colors: none) {
  [data-village-brand]:where([data-edocus-appearance="graphite"]) .page:has(.dept-directory) {background:#10162a;}
  [data-village-brand]:where([data-edocus-appearance="graphite"]) .dept-directory {color:#f2f4f8; --dep-surface:#1b2238; --dep-rule:#657083; --dep-detail:#cbd5e1; --dep-link:#93c5fd;}
  [data-village-brand]:where([data-edocus-appearance="graphite"]) .dept-directory :is(h1,h2,p,li,label) { color:inherit; }
  [data-village-brand]:where([data-edocus-appearance="graphite"]) .dept-directory a:not(.btn) {color:var(--dep-link);}
  :where([data-edocus-appearance="graphite"]) .dep-search input { background:#10162a; color:#f2f4f8; border-color:#8390a4; }
  :where([data-edocus-appearance="graphite"]) .dep-search input::placeholder { color:#aeb9c9; opacity:1; }
  :where([data-edocus-appearance="graphite"]) .dep-search button:not(:disabled) {border-color:#fdba74;}
}
@media(forced-colors: active) {
  .dept-directory :focus-visible {outline-color:Highlight;}
  .dep-panel,.dep-search button {border-color:ButtonText;}
}
