/* Associations: search & filter dialog + active-filter bar. px units (theme sets html{font-size:10px}). */
.if-no-scroll { overflow: hidden; }

/* Floating button */
.if-filter-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 1040;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 20px; border: 0; border-radius: 999px;
  background: #072366; color: #fff; font: inherit; font-size: 15px; font-weight: 700;
  box-shadow: 0 14px 32px rgba(7, 35, 102, .28); cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.if-filter-fab:hover { background: #078658; transform: translateY(-2px); }
.if-filter-fab:focus-visible { outline: 3px solid rgba(10, 174, 112, .5); outline-offset: 3px; }
.if-filter-fab__badge {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: #0aae70; color: #fff; font-size: 12px; font-weight: 800;
}

/* Dialog */
.if-filter {
  width: min(560px, calc(100% - 32px)); max-height: min(720px, calc(100vh - 48px));
  margin: auto; padding: 0; border: 0; border-radius: 22px; background: #fff; color: #072366;
  box-shadow: 0 30px 80px rgba(7, 35, 102, .3); overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.if-filter[open] { display: flex; animation: if-filter-in .2s ease; }
.if-filter::backdrop { background: rgba(7, 35, 102, .45); backdrop-filter: blur(2px); }
@keyframes if-filter-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.if-filter__form { display: flex; flex-direction: column; width: 100%; max-height: inherit; margin: 0; }

.if-filter__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px 14px;
}
.if-filter__head h2 { margin: 0; color: #072366; font-family: inherit; font-size: 22px; font-weight: 780; letter-spacing: -.03em; }
.if-filter__close {
  display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
  border: 0; border-radius: 12px; background: transparent; color: #5c6b7a; cursor: pointer;
}
.if-filter__close:hover { background: #eff8f4; color: #072366; }

.if-filter__body { flex: 1; overflow-y: auto; padding: 6px 24px 24px; }
.if-filter__label { display: block; margin: 0 0 10px; padding: 0; color: #072366; font-size: 14px; font-weight: 700; }
.if-filter__search {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px;
  border: 1px solid #dce8e2; border-radius: 14px; background: #fff; color: #5c6b7a;
}
.if-filter__search:focus-within { border-color: #0aae70; box-shadow: 0 0 0 3px rgba(10, 174, 112, .15); }
.if-filter__search input {
  flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent;
  color: #072366; font: inherit; font-size: 16px; /* 16px avoids iOS zoom */
}

.if-filter__group { margin: 26px 0 0; padding: 0; border: 0; min-width: 0; }
.if-filter__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.if-filter__chip { position: relative; margin: 0; cursor: pointer; }
.if-filter__chip input { position: absolute; opacity: 0; pointer-events: none; }
.if-filter__chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px;
  border: 1px solid #dce8e2; border-radius: 999px; background: #fff;
  color: #072366; font-size: 14px; font-weight: 600; transition: border-color .15s, background-color .15s;
}
.if-filter__chip:hover span { border-color: #0aae70; }
.if-filter__chip input:checked + span { border-color: #072366; background: #072366; color: #fff; }
.if-filter__chip input:focus-visible + span { outline: 3px solid rgba(10, 174, 112, .45); outline-offset: 2px; }

.if-filter__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 24px; border-top: 1px solid #eef3f0; background: #fff;
}
.if-filter__reset { padding: 12px 4px; color: #5c6b7a; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.if-filter__reset:hover { color: #072366; }
.if-filter__submit {
  min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px;
  background: #0aae70; color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.if-filter__submit:hover { background: #078658; }

/* Phones: bottom sheet */
@media (max-width: 767.98px) {
  .if-filter-fab { right: 16px; bottom: 16px; width: 56px; padding: 0; justify-content: center; }
  .if-filter-fab__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .if-filter-fab__badge { position: absolute; top: -2px; right: -2px; border: 2px solid #fff; }
  .if-filter {
    width: 100%; max-width: 100%; max-height: 88vh; margin: auto 0 0;
    border-radius: 22px 22px 0 0;
  }
  .if-filter[open] { animation: if-filter-up .25s ease; }
  .if-filter__head { padding-top: 26px; position: relative; }
  .if-filter__head::before {
    content: ""; position: absolute; top: 9px; left: 50%; width: 40px; height: 4px;
    border-radius: 4px; background: #dce8e2; transform: translateX(-50%);
  }
  .if-filter__foot { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .if-filter__submit { flex: 1; }
}
@keyframes if-filter-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .if-filter[open] { animation: none; } }

/* Active-filter bar above the grid */
.if-results {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin: 0 0 28px; font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.if-results__count { margin: 0; color: #5c6b7a; font-size: 15px; }
.if-results__count strong { color: #072366; }
.if-results__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.if-results__tag {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; background: #eff8f4; color: #078658; font-size: 14px; font-weight: 600;
}
.if-results__tag:hover { background: #d9f2e5; color: #072366; }
.if-results__clear { color: #5c6b7a; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.if-results__empty { max-width: 520px; margin: 0 auto 40px; padding: 40px 24px; text-align: center; }
.if-results__empty h3 { margin: 0 0 8px; color: #072366; font-size: 22px; }
.if-results__empty p { margin: 0 0 20px; color: #5c6b7a; font-size: 16px; }
.if-filter__hint { color: #5c6b7a; font-weight: 500; }
.if-filter__chip input:checked + span::before {
  content: ""; width: 10px; height: 6px; margin-right: 8px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-2px) rotate(-45deg);
}

/* Page header (rebrand) — same look as the landing page and the Journal */
.if-assos-hero {
  border-bottom: 1px solid #e6efea;
  background: #f8fbfa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.if-assos-hero__inner { max-width: 1170px; margin: 0 auto; padding: clamp(48px, 8vw, 88px) 15px clamp(36px, 5vw, 56px); }
.if-assos-hero__pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  border: 1px solid rgba(10, 174, 112, .22); border-radius: 999px; background: rgba(255, 255, 255, .7);
  color: #078658; font-size: 13px; font-weight: 700;
}
.if-assos-hero__pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #0aae70; }
.if-assos-hero h1 {
  max-width: 780px; margin: 20px 0 0; color: #072366; font-family: inherit;
  font-size: clamp(36px, 5.4vw, 68px); font-weight: 780; letter-spacing: -.06em; line-height: 1.02;
}
.if-assos-hero h1 em { color: #078658; font-style: normal; }
.if-assos-hero p {
  max-width: 600px; margin: 20px 0 0; color: #5c6b7a; font-family: inherit; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65;
}
.our-cases-area { padding-top: 40px; background: #f7fbf9; }
