/* Diretórios de estados, cidades, dioceses e paróquias.
   Complementa os tokens, componentes e cores da /home, sem interferir nas fichas. */
.hm-dir-header .hm-dir-nav { margin-left: auto; }
.hm-dir-header .hm-dir-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 0; margin: 0; list-style: none; }
.hm-dir-header .hm-dir-nav a { display: inline-flex; min-height: 44px; padding: 7px 8px; align-items: center; color: var(--hdm-marinho); font-weight: 700; text-decoration: none; font-size: 14px; }
.hm-dir-header .hm-dir-nav a:hover, .hm-dir-header .hm-dir-nav a[aria-current="page"] { color: var(--hm-gold-dark); text-decoration: underline; text-underline-offset: 4px; }
.hm-dir-hero .hm-hero-inner { padding-top: clamp(44px, 8vw, 92px); padding-bottom: clamp(52px, 8vw, 98px); }
.hm-dir-hero .hm-hero h1 { max-width: unset; }
.hm-dir-hero .hm-dir-hero-label { margin-bottom: 10px; color: var(--hdm-ouro-suave); text-transform: uppercase; font-size: 12px; letter-spacing: .16em; font-weight: 900; }
.hm-dir-hero .hm-dir-title { color: #fff; font-size: clamp(38px, 6vw, 64px); max-width: 22ch; }
.hm-dir-hero .hm-dir-hero-subtitle { color: rgba(255,255,255,.93); font-size: clamp(16px, 2.2vw, 20px); max-width: 60ch; margin: 14px 0 0; }
.hm-dir-main { padding-bottom: 70px; }
.hm-dir-breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 22px 0; font-size: 14px; color: var(--hdm-cinza); }
.hm-dir-breadcrumbs a { color: var(--hdm-marinho); font-weight: 700; text-underline-offset: 3px; }
.hm-dir-breadcrumbs span[aria-current] { overflow-wrap: anywhere; }
.hm-dir-separator { color: var(--hm-gold-dark); }
.hm-dir-intro { display: flex; gap: 20px; align-items: flex-start; padding: clamp(20px, 3vw, 30px); border-radius: var(--hdm-radius-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.hm-dir-emblem { width: 62px; height: 62px; display: grid; place-items: center; flex: none; border-radius: 18px; color: var(--hdm-marinho); background: #FAF0DC; border: 1px solid #E5D9C2; }
.hm-dir-emblem svg { width: 38px; height: 38px; fill: none; stroke: var(--hm-gold-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hm-dir-intro h2 { font-size: clamp(26px, 4.2vw, 34px); overflow-wrap: anywhere; }
.hm-dir-intro p { margin: 9px 0 0; color: var(--hdm-cinza); max-width: 70ch; }
.hm-dir-directory { margin-top: 36px; }
.hm-dir-section-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.hm-dir-section-header h2 { font-size: clamp(24px, 3.7vw, 34px); }
.hm-dir-count { background: #F7ECD1; border-radius: 999px; padding: 6px 12px; color: #6A4A00; font-size: 13px; font-weight: 900; white-space: nowrap; }
.hm-dir-filter-label { display: block; margin-bottom: 8px; color: var(--hdm-marinho); font-size: 14px; font-weight: 700; }
.hm-dir-filter-wrap { position: relative; }
.hm-dir-filter-wrap svg { position: absolute; top: 50%; left: 16px; width: 20px; height: 20px; transform: translateY(-50%); stroke: var(--hdm-cinza); fill: none; stroke-width: 2; pointer-events: none; }
.hm-dir-filter { width: 100%; min-height: 52px; padding: 12px 16px 12px 46px; font: inherit; font-size: 16px; color: var(--hdm-texto); background: #fff; border: 1px solid #C9CFD9; border-radius: 14px; }
.hm-dir-filter:focus-visible { outline: 3px solid var(--hdm-focus); outline-offset: 2px; }
.hm-dir-status { min-height: 24px; margin: 12px 0 18px; font-size: 13px; color: var(--hdm-cinza); }
.hm-dir-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; list-style: none; margin: 0; padding: 0; }
.hm-dir-grid li { min-width: 0; }
.hm-dir-grid li[hidden] { display: none; }
.hm-dir-grid a { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 14px; border: 1px solid #E3DED3; border-radius: 14px; text-decoration: none; background: #fff; color: var(--hdm-marinho); box-shadow: 0 1px 2px rgba(0,28,67,.03); transition: border-color .18s, box-shadow .18s, transform .18s; font-weight: 700; overflow-wrap: anywhere; }
.hm-dir-grid a:hover { border-color: var(--hdm-ouro); box-shadow: var(--shadow); transform: translateY(-2px); }
.hm-dir-grid a:focus-visible { outline: 3px solid var(--hdm-focus); outline-offset: 2px; }
.hm-dir-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #FBF3E3; }
.hm-dir-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--hm-gold-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hm-dir-name { flex: 1; min-width: 0; }
.hm-dir-chevron { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--hm-gold-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hm-dir-empty { padding: 24px; text-align: center; border: 1px dashed #D3C6B4; border-radius: 12px; color: var(--hdm-cinza); background: #fff; }
.hm-dir-empty[hidden] { display: none; }
.hm-dir-note { margin: 28px 0 0; color: var(--hdm-cinza); font-size: 13px; }
@media (min-width: 700px) {
  .hm-dir-grid { grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 20px; row-gap: 12px; }
}
@media (max-width: 640px) {
  .hm-dir-header .hm-header-bar { flex-wrap: wrap; padding-block: 7px; gap: 2px 10px; }
  .hm-dir-header .hm-dir-nav { width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: thin; }
  .hm-dir-header .hm-dir-nav ul { flex-wrap: nowrap; gap: 8px; }
  .hm-dir-header .hm-dir-nav a { font-size: 13px; white-space: nowrap; }
  .hm-dir-intro { align-items: center; gap: 12px; }
  .hm-dir-emblem { width: 48px; height: 48px; border-radius: 12px; }
  .hm-dir-emblem svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-dir-grid a { transition: none; }
  .hm-dir-grid a:hover { transform: none; }
}
