/* NWD PartnerLink: scoped to the directory, using the active theme font. */
.nwdpl {
  --nwdpl-navy: #111c33;
  --nwdpl-green: #166938;
  --nwdpl-bg: #fbfaf8;
  --nwdpl-line: #e3e5e1;
  --nwdpl-muted: #526057;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 3em;
  color: var(--nwdpl-navy);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
}
.nwdpl, .nwdpl *, .nwdpl *::before, .nwdpl *::after { box-sizing: border-box; }
.nwdpl [hidden] { display: none !important; }
.nwdpl :where(h2, h3, h4, p) { margin: 0; padding: 0; }
.nwdpl :where(h2, h3, h4) { color: var(--nwdpl-navy); font-family: inherit; font-style: normal; text-transform: none; }

/* Match the homepage's short green rules and strong headings. */
.nwdpl .nwdpl-heading { max-width: 840px; margin: 0 0 36px; }
.nwdpl .nwdpl-eyebrow { margin: 0 0 22px; color: var(--nwdpl-green); font-size: 15px; font-weight: 800; letter-spacing: .065em; line-height: 1.5; }
.nwdpl .nwdpl-eyebrow::after { display: block; width: 60px; height: 4px; margin-top: 18px; background: var(--nwdpl-green); content: ""; }
.nwdpl h2 { margin: 0 0 18px; font-size: clamp(34px, 3.6vw, 52px); font-weight: 800; line-height: 1.14; letter-spacing: -.025em; overflow-wrap: anywhere; }
.nwdpl .nwdpl-heading > p:last-child { max-width: 720px; color: var(--nwdpl-muted); font-size: 18px; line-height: 1.7; }

/* Search and level filter. */
.nwdpl .nwdpl-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 24px; margin: 0 0 48px; padding: 24px; border: 1px solid var(--nwdpl-line); border-radius: 6px; background: var(--nwdpl-bg); }
.nwdpl .nwdpl-tools > div { min-width: 0; }
.nwdpl .nwdpl-tools > div:first-child { flex: 2 1 260px; }
.nwdpl .nwdpl-tools > div:nth-child(2) { flex: 1 1 240px; }
.nwdpl label { display: block; margin: 0 0 8px; font-size: 15px; font-weight: 700; line-height: 1.5; }
.nwdpl input, .nwdpl select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #aebbb2;
  border-radius: 4px;
  background: #fff;
  color: var(--nwdpl-navy);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: normal;
  box-shadow: none;
}
.nwdpl input::placeholder { color: #64716a; opacity: 1; }
.nwdpl .nwdpl-tools > p { margin: 0; padding: 0 0 14px; color: var(--nwdpl-muted); font-size: 15px; white-space: nowrap; }

/* White cards with the homepage's softer 6px corners. */
.nwdpl .nwdpl-group { margin: 0 0 52px; }
.nwdpl .nwdpl-group:last-of-type { margin-bottom: 0; }
.nwdpl .nwdpl-group--supporters { padding-top: 36px; border-top: 1px solid var(--nwdpl-line); }
.nwdpl .nwdpl-group-intro { max-width: 760px; margin: -6px 0 28px; color: var(--nwdpl-muted); font-size: 18px; line-height: 1.7; }
.nwdpl .nwdpl-level-description { margin: -12px 0 26px; color: var(--nwdpl-muted); font-size: 16px; line-height: 1.65; }
.nwdpl h3 { display: flex; align-items: center; gap: 24px; margin: 0 0 24px; font-size: clamp(25px, 2.1vw, 30px); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.nwdpl h3::after { content: ""; flex: 1; min-width: 24px; height: 1px; background: var(--nwdpl-line); }
.nwdpl .nwdpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.nwdpl .nwdpl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
  min-width: 0;
  margin: 0;
  padding: clamp(26px, 2.4vw, 36px);
  border: 1px solid var(--nwdpl-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 24px -12px rgb(17 28 51 / 22%);
  overflow-wrap: anywhere;
  transition: border-color .3s ease, box-shadow .35s ease, transform .35s ease;
}
.nwdpl .nwdpl-card::before { content: ""; flex: 0 0 4px; width: 60px; height: 4px; margin: 0 0 24px; background: var(--nwdpl-green); }
.nwdpl h4 { margin: 0 0 10px; font-size: clamp(24px, 1.8vw, 28px); font-weight: 800; line-height: 1.25; letter-spacing: -.015em; }
.nwdpl .nwdpl-city { margin: 0 0 20px; color: var(--nwdpl-muted); font-size: 17px; line-height: 1.6; }
.nwdpl .nwdpl-logo { display: flex; align-items: center; justify-content: flex-start; height: 120px; margin: 0 0 26px; background: #fff; }
.nwdpl .nwdpl-logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 120px; margin: 0; object-fit: contain; }

/* Native disclosure works with keyboard controls and without JavaScript. */
.nwdpl .nwdpl-description { margin: 4px 0 20px; padding: 0; border-top: 1px solid var(--nwdpl-line); font-size: 17px; }
.nwdpl .nwdpl-description summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 14px 0 8px; color: var(--nwdpl-green); font-weight: 700; line-height: 1.5; list-style: none; cursor: pointer; }
.nwdpl .nwdpl-description summary::marker { content: ""; }
.nwdpl .nwdpl-description summary::-webkit-details-marker { display: none; }
.nwdpl .nwdpl-description summary::after { content: "+"; display: grid; flex: 0 0 28px; height: 28px; place-items: center; border: 1px solid var(--nwdpl-line); border-radius: 50%; font-size: 20px; font-weight: 400; line-height: 1; }
.nwdpl .nwdpl-description[open] summary::after { content: "−"; }
.nwdpl .nwdpl-description > div { padding: 12px 0 4px; color: var(--nwdpl-muted); line-height: 1.75; }
.nwdpl .nwdpl-link { display: inline-flex; align-self: flex-start; align-items: center; gap: 12px; min-height: 44px; max-width: 100%; margin: auto 0 0; padding: 8px 0; color: var(--nwdpl-green); font-size: 15px; font-weight: 800; line-height: 1.5; letter-spacing: .025em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nwdpl .nwdpl-link > [aria-hidden] { transition: transform .3s ease; }
.nwdpl a:focus-visible, .nwdpl summary:focus-visible, .nwdpl input:focus-visible, .nwdpl select:focus-visible { outline: 3px solid var(--nwdpl-green); outline-offset: 4px; }
.nwdpl .nwdpl-empty { margin: 0; padding: 26px; border: 1px solid var(--nwdpl-line); border-radius: 6px; background: var(--nwdpl-bg); color: var(--nwdpl-muted); font-size: 18px; }
.nwdpl .nwdpl-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Featured partners: a native, touch-friendly rail with no autoplay or cloned cards. */
.nwdpl .nwdpl-slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); align-items: stretch; gap: 24px; width: 100%; min-width: 0; margin: 0; padding: 8px 0 22px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--nwdpl-green) var(--nwdpl-bg); direction: ltr; }
.nwdpl .nwdpl-slide { scroll-snap-align: start; scroll-snap-stop: normal; padding: 28px; }
.nwdpl .nwdpl-slide::before { display: none; }
.nwdpl .nwdpl-slide-level { align-self: flex-start; margin: 0 0 26px; padding: 0 0 10px; border-bottom: 3px solid var(--nwdpl-green); color: var(--nwdpl-green); font-size: 14px; font-weight: 800; line-height: 1.5; }
.nwdpl .nwdpl-slide h3 { display: block; margin: 0 0 12px; font-size: clamp(23px, 1.9vw, 28px); line-height: 1.25; }
.nwdpl .nwdpl-slide h3::after { display: none; }
.nwdpl .nwdpl-slide .nwdpl-logo { height: 96px; margin-bottom: 24px; }
.nwdpl .nwdpl-slide .nwdpl-logo img { max-height: 96px; }
.nwdpl .nwdpl-slide .nwdpl-city { margin-bottom: 12px; font-size: 16px; }
.nwdpl .nwdpl-slide-description { margin: 0 0 24px; color: var(--nwdpl-muted); font-size: 16px; line-height: 1.7; }
.nwdpl .nwdpl-slider-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.nwdpl .nwdpl-slider-position { margin: 0; color: var(--nwdpl-muted); font-size: 14px; line-height: 1.5; }
.nwdpl .nwdpl-slider-buttons { display: flex; flex: 0 0 auto; gap: 10px; }
.nwdpl .nwdpl-slider-buttons button { display: grid; width: 48px; min-width: 48px; height: 48px; margin: 0; padding: 0; place-items: center; border: 1px solid var(--nwdpl-green); border-radius: 50%; background: var(--nwdpl-green); color: #fff; font: inherit; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: none; transition: background .2s ease, color .2s ease; }
.nwdpl .nwdpl-slider-buttons button[aria-disabled="true"] { border-color: var(--nwdpl-line); background: var(--nwdpl-bg); color: var(--nwdpl-muted); cursor: default; }
.nwdpl .nwdpl-slider-buttons button:focus-visible, .nwdpl .nwdpl-slider-track:focus-visible { outline: 3px solid var(--nwdpl-green); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .nwdpl .nwdpl-slider-buttons button:not([aria-disabled="true"]):hover { background: var(--nwdpl-navy); border-color: var(--nwdpl-navy); }
}

@media (hover: hover) and (pointer: fine) {
  .nwdpl .nwdpl-card:hover { border-color: #b9c9bc; box-shadow: 0 16px 30px -12px rgb(17 28 51 / 24%); transform: translateY(-3px); }
  .nwdpl .nwdpl-description summary:hover { text-decoration: underline; text-underline-offset: 4px; }
  .nwdpl .nwdpl-link:hover > [aria-hidden] { transform: translate(2px, -2px); }
}
@media (max-width: 980px) {
  .nwdpl { padding: 0 2em; }
  .nwdpl .nwdpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .nwdpl .nwdpl-slider-track { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  .nwdpl { padding: 0 20px; }
  .nwdpl .nwdpl-heading { margin-bottom: 28px; }
  .nwdpl h2 { font-size: 34px; }
  .nwdpl h3 { font-size: 26px; gap: 16px; }
  .nwdpl h4 { font-size: 26px; }
  .nwdpl .nwdpl-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .nwdpl .nwdpl-card { padding: 26px 24px; }
  .nwdpl .nwdpl-tools { gap: 18px; margin-bottom: 36px; padding: 18px; }
  .nwdpl .nwdpl-tools > div { flex: 1 1 100%; }
  .nwdpl .nwdpl-tools > p { padding: 0; }
  .nwdpl .nwdpl-group { margin-bottom: 38px; }
  .nwdpl .nwdpl-slider-track { grid-auto-columns: 92%; gap: 16px; }
  .nwdpl .nwdpl-slide { padding: 26px 24px; }
  .nwdpl .nwdpl-slide:only-child { width: 100%; }
  .nwdpl .nwdpl-slider-track:has(> :only-child) { grid-auto-columns: 100%; }
  .nwdpl .nwdpl-slide h3 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .nwdpl .nwdpl-card, .nwdpl .nwdpl-link > [aria-hidden] { transition: none; transform: none; }
  .nwdpl .nwdpl-slider-buttons button { transition: none; }
  .nwdpl .nwdpl-slider-track { scroll-behavior: auto; }
}
