/* Organisation role directory and optional service-group filters. */
.org-role-directory,
.org-role-directory [id^="role-"] {
  scroll-margin-top: 6rem;
}
.org-merged section#audiences.org-role-directory {
  padding-block: clamp(3.5rem, 6vw, 5.8rem);
  color: var(--org-ink, #173b49);
  background: var(--org-paper, #f5f9fa);
  border-block: 1px solid var(--org-line, #c6d5da);
}
.org-role-intro { max-width: 44rem; }
.org-role-kicker {
  margin: 0 0 .55rem;
  color: var(--org-accent-deep, #185165);
  font-size: .79rem;
  font-weight: 750;
  letter-spacing: .08em;
}
.org-role-intro h2 {
  margin: 0;
  color: var(--org-ink, #173b49);
  font-size: 2.2rem;
  line-height: 1.3;
}
.org-role-intro > p:last-child {
  margin: .8rem 0 0;
  color: var(--org-muted, #485e68);
  font-size: .98rem;
  line-height: 1.8;
}
.org-role-tools, .org-role-fallback { margin-top: 1.55rem; }
.org-role-filters, .org-role-fallback { display: flex; flex-wrap: wrap; gap: .45rem; }
.org-role-filter, .org-role-fallback a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .4rem .9rem;
  border: 1px solid var(--org-line, #b8c8d0);
  border-radius: 999px;
  background: #fff;
  color: var(--org-ink, #173b49);
  font: inherit;
  font-size: .87rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.org-role-filter:hover, .org-role-fallback a:hover { border-color: var(--org-accent-deep, #185165); }
.org-role-filter[aria-pressed="true"] {
  background: var(--org-accent-deep, #185165);
  border-color: var(--org-accent-deep, #185165);
  color: #fff;
}
.org-role-result-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  min-height: 44px;
  margin: .34rem 0 .25rem;
  color: var(--org-muted, #485e68);
  font-size: .78rem;
}
.org-role-result-line p { margin: 0; }
.org-role-result-line button {
  min-height: 44px;
  padding: 0 .2rem;
  border: 0;
  background: transparent;
  color: var(--org-accent-deep, #185165);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.org-role-directory :focus-visible { outline: 3px solid var(--org-accent, #066b89); outline-offset: 3px; }
.org-role-directory [hidden] { display: none !important; }
.org-role-bookmark { position: absolute; inset: 0 auto auto 0; }
.org-role-grid, .org-role-directory [id^="overview-p"] { scroll-margin-top: 6rem; }
.org-role-fallback { margin-bottom: 1rem; }
.org-role-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(.8rem, 1.8vw, 1.5rem);
}
.org-role-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--org-line, #c6d5da);
  border-radius: 1rem;
  color: var(--org-ink, #173b49);
  background: #fff;
}
.org-role-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  background: #e5eff1;
}
.org-role-copy {
  display: block;
  padding: 1.1rem;
  padding: clamp(.9rem, 1.8vw, 1.4rem);
}
.org-role-model {
  color: var(--org-accent-deep, #185165);
  margin: 0 0 .3rem;
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .055em;
}
.org-role-copy h3 {
  margin: 0;
  color: var(--org-ink, #173b49);
  font-size: 1.25rem;
  line-height: 1.4;
}
.org-role-gain {
  margin: .45rem 0 0;
  color: var(--org-ink, #173b49);
  font-size: .94rem;
  line-height: 1.52;
  font-weight: 700;
}
.org-role-description {
  margin: .5rem 0 1rem;
  color: var(--org-copy, #344f5b);
  font-size: .87rem;
  line-height: 1.8;
}
.org-role-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  align-self: stretch;
  margin-top: .6rem;
  padding-top: .64rem;
  border-top: 1px solid var(--org-line, #c6d5da);
  min-height: 44px;
  color: var(--org-accent-deep, #185165);
  font-size: .87rem;
  font-weight: 750;
  text-decoration: none;
}
.org-role-cta span { font-size: 1.1em; flex: none; }
.org-role-cta:hover { color: var(--org-accent-deep, #185165); text-decoration: underline; }
@media(max-width: 959px) {
  .org-role-grid { grid-template-columns: minmax(0,1fr); }
  .org-role-card { display: grid; grid-template-columns: minmax(0,.79fr) minmax(0,1.21fr); align-items: stretch; }
  .org-role-card > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; align-self: center; }
}
@media(max-width: 599px) {
  .org-role-intro h2 { font-size: 1.63rem; }
  .org-role-copy h3 { font-size: 1.17rem; }
  .org-merged section#audiences.org-role-directory { padding-block: 2.8rem; }
  .org-role-filter, .org-role-fallback a { padding-inline: .65rem; }
  .org-role-card { display: block; }
  .org-role-card > img { height: auto; }
  .org-role-copy { padding: 1.05rem; }
  .org-role-cta { margin-top: 0; }
}
@media(forced-colors:active) {
  .org-role-filter[aria-pressed="true"] { border: 3px solid Highlight; }
  .org-role-cta { text-decoration: underline; }
}
