/* Association detail page — same look as the Journal and Associations headers.
   Flat light header (no glow), Inter, px units (the theme sets html{font-size:10px}). */
.if-asso {
  color: #072366; background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.if-asso h1, .if-asso h2, .if-asso p, .if-asso a, .if-asso li { font-family: inherit; }
.if-asso-shell { max-width: 1170px; margin: 0 auto; padding: 0 20px; }

/* Header */
.if-asso-hero { border-bottom: 1px solid #e6efea; background: #f8fbfa; }
.if-asso-hero .if-asso-shell { padding-top: 28px; padding-bottom: clamp(36px, 5vw, 56px); }
.if-asso-crumbs a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: #5c6b7a; font-size: 14px; font-weight: 600; text-decoration: none;
}
.if-asso-crumbs a:hover { color: #078658; }
.if-asso-hero__row { display: flex; align-items: center; gap: clamp(20px, 3vw, 36px); margin-top: 20px; }
.if-asso-logo {
  display: grid; place-items: center; flex: none; width: 148px; height: 148px; overflow: hidden;
  border: 1px solid #dce8e2; border-radius: 22px; background: #fff;
  box-shadow: 0 12px 30px rgba(7, 35, 102, .07);
}
.if-asso-logo img { width: 100%; height: 100%; padding: 16px; object-fit: contain; }
.if-asso-logo span { color: #072366; font-size: 56px; font-weight: 800; }
.if-asso-hero__copy { min-width: 0; }
.if-asso-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  border: 1px solid rgba(10, 174, 112, .22); border-radius: 999px; background: #fff;
  color: #078658; font-size: 13px; font-weight: 700;
}
.if-asso-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #0aae70; }
.if-asso-pill:has(.if-asso-pill__star)::before { display: none; }
.if-asso-pill__star {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: #e0c77f; color: #fff; font-size: 11px;
}
.if-asso h1 {
  margin: 16px 0 0; color: #072366; font-size: clamp(34px, 5vw, 60px);
  font-weight: 780; letter-spacing: -.055em; line-height: 1.04; overflow-wrap: anywhere;
}
.if-asso-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.if-asso-tags li {
  padding: 7px 12px; border-radius: 8px; background: #fff; border: 1px solid #e3ebe6;
  color: #344150; font-size: 14px; font-weight: 500;
}

/* Body */
.if-asso-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(36px, 6vw, 80px);
  padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(64px, 9vw, 112px);
}
.if-asso-story { min-width: 0; max-width: 760px; }
.if-asso-story h2, .if-asso-card h2 {
  margin: 0 0 18px; color: #072366; font-size: 26px; font-weight: 760; letter-spacing: -.035em;
}
.if-asso-text { color: #3e5163; font-size: 18px; line-height: 1.8; }
.if-asso-text p { margin: 0 0 1.2em; color: inherit; font-size: inherit; line-height: inherit; }
.if-asso-text h2, .if-asso-text h3 { margin: 1.6em 0 .5em; color: #072366; font-size: 22px; font-weight: 750; letter-spacing: -.03em; }
.if-asso-text ul, .if-asso-text ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.if-asso-text li { margin: 0 0 .4em; color: inherit; font-size: inherit; line-height: inherit; list-style: disc; }
.if-asso-text ol li { list-style: decimal; }
.if-asso-text a { color: #078658; text-decoration: underline; text-underline-offset: 3px; }

.if-asso-places { margin-top: 48px; padding-top: 36px; border-top: 1px solid #e6efea; }
.if-asso-places__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.if-asso-places__list li {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px;
  border: 1px solid #dce8e2; border-radius: 12px; background: #fff;
  color: #294357; font-size: 15px; font-weight: 600;
}
.if-asso-places__list svg { flex: none; color: #0aae70; }

/* Action card */
.if-asso-aside { min-width: 0; }
.if-asso-card {
  position: sticky; top: 110px; padding: 28px;
  border: 1px solid #dce8e2; border-radius: 20px; background: #fff;
  box-shadow: 0 16px 38px rgba(7, 35, 102, .07);
}
.if-asso-card h2 { font-size: 22px; margin-bottom: 10px; }
.if-asso-card > p { margin: 0 0 22px; color: #5c6b7a; font-size: 15px; line-height: 1.6; }
.if-asso-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px;
  border-radius: 999px; background: #0aae70; color: #fff !important; font-size: 15px; font-weight: 700;
  text-decoration: none; transition: background-color .15s ease;
}
.if-asso-btn:hover { background: #078658; }
.if-asso-socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; }
.if-asso-socials a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  border: 1px solid #dce8e2; border-radius: 999px; color: #072366; font-size: 14px; font-weight: 650;
  text-decoration: none; transition: border-color .15s ease, color .15s ease;
}
.if-asso-socials a:hover { border-color: #0aae70; color: #078658; }
.if-asso-socials i { font-size: 15px; }
.if-asso-card .if-asso-card__note { margin: 16px 0 0; color: #6b7c88; font-size: 13px; text-align: center; }
.if-asso a:focus-visible { outline: 3px solid rgba(10, 174, 112, .45); outline-offset: 3px; }

/* Tablet & phone */
@media (max-width: 960px) {
  .if-asso-body { grid-template-columns: 1fr; }
  .if-asso-aside { order: -1; }
  .if-asso-card { position: static; }
}
@media (max-width: 640px) {
  .if-asso-hero__row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .if-asso-logo { width: 96px; height: 96px; border-radius: 18px; }
  .if-asso-logo img { padding: 10px; }
  .if-asso-text { font-size: 16px; }
  .if-asso-card { padding: 22px; }
}

/* v2: smaller partner pill, actions under the name, single column */
.if-asso-pill { gap: 6px; padding: 5px 10px; font-size: 12px; }
.if-asso-pill::before { width: 6px; height: 6px; }
.if-asso-pill__star { width: 16px; height: 16px; font-size: 9px; }
.if-asso h1 { margin-top: 12px; }
.if-asso-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.if-asso-actions .if-asso-btn { display: inline-flex; padding: 0 24px; }
.if-asso-social {
  display: grid; place-items: center; width: 52px; height: 52px;
  border: 1px solid #dce8e2; border-radius: 50%; background: #fff;
  color: #072366; font-size: 17px; text-decoration: none; transition: border-color .15s, color .15s;
}
.if-asso-social:hover { border-color: #0aae70; color: #078658; }
.if-asso-body { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) {
  .if-asso-actions .if-asso-btn { flex: 1; }
}

/* Justified "About" text, like Word; hyphenation avoids big gaps between words */
.if-asso-text p, .if-asso-text li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 480px) { .if-asso-text p, .if-asso-text li { text-align: left; } }
button.if-asso-social { cursor: pointer; }
.if-asso-social.is-on { border-color: #0aae70; color: #078658; }

/* Locations map */
.if-asso-places__hint { margin: 4px 0 14px; color: #6b757c; font-size: 14px; }
.if-asso-map { height: 340px; overflow: hidden; border: 1px solid #e6ebe8; border-radius: 18px; background: #e9eeeb;
  box-shadow: 0 6px 20px rgba(7, 35, 102, .08); z-index: 0; }
@media (min-width: 900px) { .if-asso-map { height: 420px; } }
.if-asso-map .ifm-pin span { position: absolute; left: 3px; top: 0; width: 24px; height: 24px; border: 3px solid #fff; border-radius: 50% 50% 50% 0;
  background: #0aae70; transform: rotate(-45deg); box-shadow: 0 3px 8px rgba(7, 35, 102, .3); }
.if-asso-map .ifm-pin.is-partner span { background: #072366; }
.if-asso-map .leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 12px 30px rgba(7, 35, 102, .18); }
.if-asso-map .ifm-pop { display: grid; gap: 8px; min-width: 180px; font-family: inherit; }
.if-asso-map .ifm-pop__place { color: #072366; font-size: 14px; font-weight: 700; line-height: 1.4; }
.if-asso-map .ifm-pop__btn { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #0aae70; color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none; }
.if-asso-map .leaflet-control-zoom { border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(7, 35, 102, .18); }
.if-asso-places__hint a { color: #078658; font-weight: 700; }
