#association-directory, .sppb-section[id^="association-"] { scroll-margin-top: 6rem; }
.fedad { --navy: #122940; --blue: #1a4061; --line: #d7e1ea; --paper: #fff; color: var(--navy); }
.fedad-filter {
    display: grid; grid-template-columns: 1.35fr 1fr 1fr auto; align-items: end; gap: 1rem;
    padding: clamp(1rem, 2.2vw, 1.6rem); background: var(--paper); border: 1px solid var(--line);
    border-top: 3px solid #d6ae60; border-radius: .75rem; margin-bottom: 1.15rem;
}
.fedad-field { min-width: 0; }
.fedad-field label { display: block; font-weight: 700; font-size: .91rem; margin-bottom: .35rem; }
.fedad-field input, .fedad-field select {
    display: block; width: 100%; min-width: 0; min-height: 2.85rem;
    border: 1px solid #a8bacb; border-radius: .45rem; color: var(--navy);
    background-color: var(--paper); padding: .55rem .75rem; font: inherit; font-size: 16px;
}
.fedad-field select { text-overflow: ellipsis; }
.fedad-filter-actions, .fedad-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .65rem; }
.fedad-btn, .fedad a.fedad-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-height: 2.7rem;
    border: 1px solid transparent; padding: .48rem .78rem; border-radius: .45rem; font-weight: 700;
    font-size: .89rem; line-height: 1.35; text-decoration: none;
}
.fedad button.fedad-primary, .fedad a.fedad-primary { background: var(--blue); color: #fff; }
.fedad button.fedad-primary:hover, .fedad a.fedad-primary:hover { background: var(--navy); color: #fff; }
.fedad a.fedad-secondary { background: #f2f6fb; border-color: #c4d3e2; color: var(--navy); }
.fedad a.fedad-secondary:hover { background: #e1ebf5; color: var(--navy); }
.fedad a.fedad-clear { color: #174e77; font-size: .875rem; text-underline-offset: .15em; text-decoration: underline; }
.fedad a.fedad-clear { display: inline-flex; align-items: center; min-height: 2.7rem; }
.fedad-index, .fedad-pagination { display: flex; gap: .375rem; flex-wrap: wrap; }
.fedad-index a, .fedad-index span, .fedad-pagination a, .fedad-pagination span {
    display: inline-flex; align-items: center; justify-content: center; min-height: 2.2rem; min-width: 2.15rem;
    padding: .12rem .4rem; border-radius: .35rem; font-weight: 700; font-size: .88rem;
}
.fedad-index a, .fedad-pagination a { background: var(--paper); border: 1px solid var(--line); color: var(--blue); text-decoration: none; }
.fedad-index a:hover, .fedad-pagination a:hover { background: #e0edf7; color: var(--navy); }
.fedad-index [aria-current], .fedad-pagination [aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.fedad-index [aria-disabled] { color: #607182; }
.fedad-count { color: #435971; font-size: .95rem; margin: 1.1rem 0 .7rem; font-weight: 650; }
.fedad ul.fedad-grid {
    padding: 0; margin: 0; list-style: none; display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem;
}
.fedad-card {
    min-width: 0; display: flex; flex-direction: column; padding: 1.15rem; overflow-wrap: anywhere;
    border: 1px solid var(--line); border-radius: .65rem; background: var(--paper);
    box-shadow: 0 2px 5px #1229400b;
}
.fedad-sector, .fedad-coverage { color: #425a74; font-size: .89rem; margin: 0 0 .45rem; }
.fedad-sector { font-weight: 700; }
.fedad-card h3 { color: var(--navy); font-size: 1.12rem; font-weight: 750; line-height: 1.3; margin: 0 0 .45rem; }
.fedad-card-actions { margin-top: auto; padding-top: .6rem; }
.fedad-missing { color: #53677d; font-size: .875rem; }
.fedad-pagination { justify-content: center; margin-top: 1.5rem; }
.fedad-pagination a, .fedad-pagination span { min-height: 2.65rem; min-width: 2.65rem; padding-inline: .55rem; }
.fedad-empty { background: var(--paper); border: 1px solid var(--line); padding: clamp(1rem, 2vw, 1.75rem); border-radius: .65rem; }
.fedad-empty h3 { font-size: 1.2rem; }
.fedad-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fedad :is(a, button, input, select):focus-visible { outline: 3px solid #9b6600; outline-offset: 2px; }
@media (max-width: 1100px) {
    .fedad-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fedad-filter-actions { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    .fedad ul.fedad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .fedad-filter, .fedad ul.fedad-grid { grid-template-columns: minmax(0, 1fr); }
    .fedad-filter { gap: .75rem; }
    .fedad-index a, .fedad-index span { min-width: 2.05rem; min-height: 2.15rem; }
}
