* {
  box-sizing: border-box;
}

.link-directory-page {
  margin: 0;
  background: #f7f3eb;
  color: #0b2344;
}

.directory-header {
  min-height: 78px;
  padding:
    15px
    max(
      28px,
      calc((100% - 1180px) / 2)
    );

  background: #0b2344;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.directory-brand {
  color: #fff;
  text-decoration: none;
}

.directory-brand strong {
  display: block;
  font:
    900
    29px
    Montserrat,
    Arial,
    sans-serif;
}

.directory-brand span {
  display: block;
  margin-top: 2px;
  color: #e0a52f;

  font:
    800
    9px
    Montserrat,
    Arial,
    sans-serif;

  letter-spacing: .08em;
}

.directory-header nav {
  display: flex;
  gap: 20px;
}

.directory-header nav a {
  color: rgba(255,255,255,.88);
  text-decoration: none;

  font:
    800
    9px
    Montserrat,
    Arial,
    sans-serif;
}

.directory-hero {
  padding:
    70px
    max(
      28px,
      calc((100% - 1180px) / 2)
    )
    52px;

  background: #fff;
}

.directory-eyebrow,
.section-heading span {
  color: #c88616;

  font:
    900
    10px
    Montserrat,
    Arial,
    sans-serif;

  letter-spacing: .15em;
}

.directory-hero h1 {
  max-width: 840px;
  margin: 9px 0 20px;

  font:
    700
    clamp(38px, 5vw, 64px)
    / 1.04
    Georgia,
    serif;
}

.directory-hero > p {
  max-width: 720px;

  color: #606979;

  font-size: 15px;
  line-height: 1.7;
}

.directory-controls {
  max-width: 900px;
  margin-top: 32px;

  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.directory-controls input,
.directory-controls select {
  width: 100%;
  min-height: 48px;

  border: 1px solid rgba(11,35,68,.17);
  border-radius: 7px;

  background: #fff;

  padding: 0 14px;

  color: #0b2344;
  font-size: 13px;
}

.directory-summary {
  width: min(
    1180px,
    calc(100% - 40px)
  );

  margin: 25px auto;

  display: grid;
  grid-template-columns:
    repeat(3,1fr);

  border:
    1px
    solid
    rgba(11,35,68,.12);

  border-radius: 10px;
  overflow: hidden;

  background: #fff;
}

.directory-summary div {
  min-height: 92px;

  padding: 18px;

  display: grid;
  place-items: center;

  text-align: center;

  border-right:
    1px
    solid
    rgba(11,35,68,.1);
}

.directory-summary div:last-child {
  border-right: 0;
}

.directory-summary strong {
  display: block;
  font-size: 25px;
}

.directory-summary span {
  color: #697181;

  font:
    800
    8px
    Montserrat,
    Arial,
    sans-serif;

  letter-spacing: .06em;
}

.directory-map-section,
.directory-list-section {
  width: min(
    1180px,
    calc(100% - 40px)
  );

  margin: 0 auto;
  padding: 48px 0;
}

.section-heading {
  margin-bottom: 22px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
}

.section-heading h2 {
  margin: 7px 0 0;

  font:
    700
    31px
    / 1.16
    Georgia,
    serif;
}

.section-heading p {
  max-width: 500px;
  margin: 0;

  color: #687180;

  font-size: 11px;
  line-height: 1.6;
}

.nonprofit-map {
  width: 100%;
  height: 460px;

  border-radius: 12px;
  overflow: hidden;

  border:
    1px
    solid
    rgba(11,35,68,.12);

  background: #e9e5dc;
}

.directory-grid {
  display: grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap: 18px;
}

.directory-card {
  min-height: 390px;

  background: #fff;

  border:
    1px
    solid
    rgba(11,35,68,.12);

  border-radius: 11px;
  overflow: hidden;

  display: flex;
  flex-direction: column;
}

.directory-card-logo {
  min-height: 118px;
  padding: 18px 22px;

  display: grid;
  place-items: center;

  background: #fff;

  border-bottom:
    1px
    solid
    rgba(11,35,68,.08);
}

.directory-card-logo img {
  max-width: 190px;
  max-height: 78px;
  object-fit: contain;
}

.directory-logo-fallback {
  width: 58px;
  height: 58px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #0b2344;
  color: #e0a52f;

  font-size: 23px;
  font-weight: 900;
}

.directory-card-body {
  padding: 20px;
  flex: 1;
}

.directory-verified {
  color: #317356;

  font:
    900
    8px
    Montserrat,
    Arial,
    sans-serif;

  letter-spacing: .05em;
}

.directory-card h3 {
  margin: 9px 0 7px;

  font:
    700
    21px
    / 1.18
    Georgia,
    serif;
}

.directory-category {
  margin-bottom: 12px;

  color: #c88616;

  font:
    900
    8px
    Montserrat,
    Arial,
    sans-serif;

  letter-spacing: .07em;
}

.directory-card p {
  margin: 0;

  color: #5e6878;

  font-size: 11px;
  line-height: 1.6;
}

.directory-chips {
  margin-top: 14px;

  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.directory-chips span {
  padding: 5px 7px;

  border-radius: 999px;

  background: #f3efe6;

  color: #536073;

  font:
    700
    7px
    Montserrat,
    Arial,
    sans-serif;
}

.directory-action-count {
  margin-top: 14px;

  color: #0b2344;

  font:
    800
    8px
    Montserrat,
    Arial,
    sans-serif;
}

.directory-card-footer {
  padding: 16px 20px 20px;
}

.directory-primary {
  display: inline-block;

  padding: 10px 12px;

  border-radius: 4px;

  background: #0b2344;
  color: #fff;

  text-decoration: none;

  font:
    900
    8px
    Montserrat,
    Arial,
    sans-serif;
}

.directory-status {
  margin-bottom: 20px;
  padding: 18px;

  border-radius: 8px;

  background: #fff;

  color: #647080;

  font-size: 12px;
}

.directory-footer {
  padding: 36px;

  background: #06172e;
  color: rgba(255,255,255,.58);

  text-align: center;
  font-size: 10px;
  line-height: 1.6;
}

.directory-footer strong {
  color: #fff;
}


@media (max-width: 900px) {
  .directory-grid {
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}


@media (max-width: 650px) {
  .directory-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .directory-header nav {
    flex-wrap: wrap;
  }

  .directory-controls {
    grid-template-columns: 1fr;
  }

  .directory-summary {
    grid-template-columns: 1fr;
  }

  .directory-summary div {
    border-right: 0;

    border-bottom:
      1px
      solid
      rgba(11,35,68,.1);
  }

  .directory-grid {
    grid-template-columns: 1fr;
  }

  .nonprofit-map {
    height: 390px;
  }
}


/* =========================================================
   LINK NONPROFIT DIRECTORY — COMPACT DIRECTORY CONTENT ONLY
   Shared header/nav remain controlled by link-public-shell.css
   ========================================================= */

.link-directory-page .directory-hero {
  padding:32px 40px 28px !important;
}

.link-directory-page .directory-hero h1 {
  max-width:900px !important;
  margin:8px 0 12px !important;
  font-size:clamp(34px,4vw,46px) !important;
  line-height:1.02 !important;
}

.link-directory-page .directory-hero p {
  max-width:900px !important;
  font-size:13px !important;
  line-height:1.55 !important;
}

.link-directory-page .directory-grid {
  grid-template-columns:
    repeat(3,minmax(0,1fr)) !important;
  gap:16px !important;
}

.link-directory-page .directory-card {
  min-height:0 !important;
}

.link-directory-page .directory-card-logo {
  min-height:70px !important;
  height:70px !important;
  padding:9px 16px !important;
  background:#fff !important;
}

.link-directory-page .directory-card-logo img {
  width:auto !important;
  height:auto !important;
  max-width:150px !important;
  max-height:50px !important;
  object-fit:contain !important;
}

.link-directory-page .directory-logo-fallback {
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  min-height:42px !important;
  font-size:14px !important;
}

.link-directory-page .nonprofit-map {
  min-height:360px !important;
  height:360px !important;
}

@media(max-width:950px) {
  .link-directory-page .directory-grid {
    grid-template-columns:
      repeat(2,minmax(0,1fr)) !important;
  }
}

@media(max-width:650px) {
  .link-directory-page .directory-hero {
    padding:26px 20px 22px !important;
  }

  .link-directory-page .directory-grid {
    grid-template-columns:1fr !important;
  }

  .link-directory-page .nonprofit-map {
    height:320px !important;
    min-height:320px !important;
  }
}

/* ===== END LINK NONPROFIT DIRECTORY COMPACT ===== */







/* LINK DIRECTORY ACTION VISIBILITY START */

.link-directory-page .directory-card {
  overflow:hidden !important;
  background:#fff !important;
  border:1px solid rgba(11,35,68,.13) !important;
  border-radius:8px !important;
  box-shadow:0 5px 18px rgba(6,23,46,.06) !important;
}

.link-directory-page .directory-card-logo {
  height:78px !important;
  min-height:78px !important;
  padding:10px 16px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#fff !important;
}

.link-directory-page .directory-card-logo img {
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:165px !important;
  max-height:56px !important;
  object-fit:contain !important;
}

.link-directory-page .directory-logo-fallback {
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  min-height:42px !important;
  border-radius:50% !important;
  display:grid !important;
  place-items:center !important;
  background:#eef1f4 !important;
  color:#0b2344 !important;
  font-size:14px !important;
  font-weight:800 !important;
}

.link-directory-page .directory-card-body {
  padding:14px 16px 12px !important;
}

.link-directory-page .directory-card h3 {
  margin:7px 0 5px !important;
  color:#0b2344 !important;
  font-size:17px !important;
  line-height:1.15 !important;
}

.link-directory-page .directory-category {
  color:#2d7777 !important;
  font-size:10px !important;
  font-weight:800 !important;
}

.link-directory-page .directory-mission {
  min-height:0 !important;
  margin:8px 0 !important;
  color:#455165 !important;
  font-size:11px !important;
  line-height:1.5 !important;
}

.link-directory-page .directory-mission-muted {
  color:#7a8390 !important;
  font-style:italic;
}

.link-directory-page .directory-location {
  margin:8px 0 !important;
  color:#566070 !important;
  font-size:9px !important;
  line-height:1.4 !important;
}

.link-directory-page .directory-action-count {
  margin:10px 0 8px !important;
  color:#0b2344 !important;
  font-size:9px !important;
  font-weight:900 !important;
  letter-spacing:.03em !important;
}

.link-directory-page .directory-actions-detail {
  margin-top:8px !important;
  border:1px solid rgba(11,35,68,.16) !important;
  border-radius:5px !important;
  background:#fbfaf7 !important;
}

.link-directory-page .directory-actions-detail summary {
  min-height:36px !important;
  padding:9px 10px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  cursor:pointer !important;
  list-style:none !important;
  color:#0b2344 !important;
  font-size:9px !important;
  font-weight:900 !important;
}

.link-directory-page .directory-actions-detail summary::-webkit-details-marker {
  display:none;
}

.link-directory-page .directory-actions-detail summary b {
  width:22px !important;
  height:22px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:50% !important;
  background:#e0a52f !important;
  color:#0b2344 !important;
  font-size:9px !important;
}

.link-directory-page .directory-action-list {
  display:grid !important;
  gap:0 !important;
  border-top:1px solid rgba(11,35,68,.10) !important;
}

.link-directory-page .directory-action-item {
  padding:10px !important;
  border-bottom:1px solid rgba(11,35,68,.08) !important;
}

.link-directory-page .directory-action-item:last-child {
  border-bottom:0 !important;
}

.link-directory-page .directory-action-type {
  display:inline-block !important;
  margin-bottom:4px !important;
  color:#9b3a38 !important;
  font-size:7px !important;
  font-weight:900 !important;
  letter-spacing:.08em !important;
}

.link-directory-page .directory-action-item strong {
  display:block !important;
  color:#0b2344 !important;
  font-size:11px !important;
}

.link-directory-page .directory-action-item p {
  margin:4px 0 !important;
  min-height:0 !important;
  color:#566070 !important;
  font-size:9px !important;
  line-height:1.45 !important;
}

.link-directory-page .directory-action-item a {
  display:inline-block !important;
  margin-top:4px !important;
  color:#2d7777 !important;
  font-size:8px !important;
  font-weight:900 !important;
  text-decoration:none !important;
}

.link-directory-page .directory-no-actions {
  margin-top:8px !important;
  padding:10px !important;
  border-radius:5px !important;
  background:#f7f3eb !important;
  color:#566070 !important;
  font-size:9px !important;
}

.link-directory-page .directory-card-footer {
  padding:0 16px 15px !important;
}

.link-directory-page .directory-primary {
  width:100% !important;
  min-height:38px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:10px 12px !important;
  border-radius:4px !important;
  background:#0b2344 !important;
  color:#fff !important;
  font-size:9px !important;
  font-weight:900 !important;
  text-decoration:none !important;
  letter-spacing:.03em !important;
}

.link-directory-page .directory-primary:hover {
  background:#e0a52f !important;
  color:#0b2344 !important;
}

.link-directory-page .directory-site-unavailable {
  display:block !important;
  padding:9px !important;
  color:#7a8390 !important;
  font-size:8px !important;
  text-align:center !important;
}

.link-directory-page .nonprofit-map {
  height:380px !important;
  min-height:380px !important;
}

@media(max-width:650px) {
  .link-directory-page .nonprofit-map {
    height:320px !important;
    min-height:320px !important;
  }
}

/* LINK DIRECTORY ACTION VISIBILITY END */



/* LINK DIRECTORY NO CIRCLE FALLBACK START */

/*
 * Absolutely suppress every previous initial-circle version.
 */

.link-directory-page .directory-logo-fallback,
.link-directory-page .directory-logo-fallback[hidden],
.link-directory-page
.directory-card-logo
.directory-logo-fallback {
  display:none !important;

  visibility:hidden !important;
  opacity:0 !important;

  width:0 !important;
  height:0 !important;

  min-width:0 !important;
  min-height:0 !important;

  margin:0 !important;
  padding:0 !important;

  border:0 !important;
}


/*
 * Also remove old circle pseudo-elements.
 */

.link-directory-page
.directory-card-logo::before,

.link-directory-page
.directory-card-logo::after {
  content:none !important;
  display:none !important;
}


/*
 * Real nonprofit logo only.
 */

.link-directory-page
.directory-card-logo img {
  display:block !important;

  width:auto !important;
  height:auto !important;

  max-width:175px !important;
  max-height:58px !important;

  margin:0 auto !important;

  object-fit:contain !important;
}


/*
 * Plain fallback only when no logo exists.
 */

.link-directory-page
.directory-logo-name-fallback {
  width:100% !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  color:#0b2344 !important;

  background:transparent !important;

  border:0 !important;
  border-radius:0 !important;

  font-size:11px !important;
  font-weight:800 !important;

  text-align:center !important;
}

/* LINK DIRECTORY NO CIRCLE FALLBACK END */



/* LINK NONPROFIT CLARITY V1 START */

/* ==========================================================
   ONE VISIBLE PUBLIC NAVIGATION
   Universal Nav remains active.
   Legacy static header/nav stay in source for safety.
   ========================================================== */

body.link-directory-page > header.link-standard-header,
body.link-directory-page > nav.link-standard-nav {
  display: none !important;
}

/* ==========================================================
   NEEDS + VOLUNTEER GATEWAY
   ========================================================== */

.link-np-help-gateway {
  width: 100%;
  padding: 58px 24px;
  background:
    linear-gradient(
      135deg,
      #071d3c 0%,
      #0c3154 100%
    );
}

.link-np-help-gateway__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.link-np-help-gateway__intro {
  max-width: 790px;
  margin-bottom: 30px;
}

.link-np-help-gateway__eyebrow {
  margin-bottom: 10px;
  color: #9bd36a;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .10em;
}

.link-np-help-gateway h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: 1.04;
  letter-spacing: -.03em;
}

.link-np-help-gateway h2 span {
  color: #9bd36a;
}

.link-np-help-gateway__intro p {
  max-width: 720px;
  margin: 17px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 18px;
  line-height: 1.6;
}

.link-np-help-gateway__choices {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0,1fr));
  gap: 18px;
}

.link-np-help-choice {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  min-height: 190px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  color: #ffffff;
  text-decoration: none;
  transition:
    transform .18s ease,
    background .18s ease;
}

.link-np-help-choice:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.13);
}

.link-np-help-choice__icon {
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #9bd36a;
  color: #071d3c;
  font-size: 24px;
  font-weight: 900;
}

.link-np-help-choice strong {
  display: block;
  margin-bottom: 9px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.2;
}

.link-np-help-choice span {
  display: block;
  max-width: 460px;
  color: rgba(255,255,255,.80);
  font-size: 16px;
  line-height: 1.55;
}

.link-np-help-choice b {
  display: block;
  margin-top: 18px;
  color: #9bd36a;
  font-size: 14px;
  letter-spacing: .03em;
}

/* ==========================================================
   DIRECTORY CARDS — READABLE PUBLIC TEXT
   ========================================================== */

body.link-directory-page .directory-card h3 {
  font-size: 23px !important;
  line-height: 1.18 !important;
}

body.link-directory-page .directory-card p {
  font-size: 17px !important;
  line-height: 1.58 !important;
}

body.link-directory-page .directory-category {
  font-size: 14px !important;
  line-height: 1.4 !important;
}

body.link-directory-page .directory-verified {
  font-size: 13px !important;
  line-height: 1.35 !important;
}

body.link-directory-page .directory-chips span {
  font-size: 13px !important;
  line-height: 1.3 !important;
}

body.link-directory-page .directory-action-count {
  font-size: 15px !important;
  line-height: 1.45 !important;
}

body.link-directory-page .directory-primary,
body.link-directory-page .directory-card-footer a {
  font-size: 15px !important;
  line-height: 1.2 !important;
}

/* Mobile */

@media (max-width: 760px) {

  .link-np-help-gateway {
    padding:
      44px 18px;
  }

  .link-np-help-gateway__choices {
    grid-template-columns: 1fr;
  }

  .link-np-help-choice {
    min-height: auto;
  }

}

/* LINK NONPROFIT CLARITY V1 END */

/* ============================================================
   LINK NONPROFIT DIRECTORY CLARITY — 2026-09-10
   ONE NAV · ONE NEEDS/OPPORTUNITIES CONTROL · READABLE CARDS
   ============================================================ */

/* Keep Universal Navigation only. */
body > header.link-standard-header,
body > nav.link-standard-nav {
  display: none !important;
}

/* Directory card readability. */
#directory h2,
#directory h3,
.directory-card h2,
.directory-card h3,
.nonprofit-card h2,
.nonprofit-card h3,
.org-card h2,
.org-card h3 {
  color: #0a3157 !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
}

#directory p,
.directory-card p,
.nonprofit-card p,
.org-card p {
  color: #334f67 !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}

/* Main single dropdown/button. */
.link-np-primary-toggle {
  display: flex !important;
  width: 100% !important;
  min-height: 58px !important;
  margin: 18px 0 12px !important;
  padding: 15px 18px !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;

  border: 0 !important;
  border-radius: 10px !important;

  background: #68a846 !important;
  color: #ffffff !important;

  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  letter-spacing: .025em !important;
  text-align: left !important;

  cursor: pointer !important;
}

.link-np-primary-toggle::after {
  content: "▾";
  flex: 0 0 auto;
  font-size: 21px;
}

.link-np-primary-toggle[aria-expanded="true"]::after {
  content: "▴";
}

/* Details area beneath the one dropdown. */
.link-np-details-panel {
  margin: 0 0 16px !important;
  padding: 20px !important;

  border: 1px solid #cddce4 !important;
  border-radius: 10px !important;

  background: #f7fafb !important;
  color: #173b59 !important;
}

.link-np-details-panel strong,
.link-np-details-panel h4 {
  display: block !important;
  margin: 14px 0 8px !important;

  color: #0a3157 !important;

  font-size: 16px !important;
  font-weight: 900 !important;
}

.link-np-details-panel li,
.link-np-details-panel p,
.link-np-details-panel div {
  color: #334f67 !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}

/* Hide presentation duplicates added around the actual dropdown. */
.link-np-duplicate-summary {
  display: none !important;
}

/* Existing known duplicate enhancement classes, if present. */
.link-org-impact-summary,
.link-show-opportunities,
.link-show-needs {
  display: none !important;
}

/* Website action stays visible and readable. */
.directory-card a[href^="http"],
.nonprofit-card a[href^="http"],
.org-card a[href^="http"] {
  font-size: 14px !important;
  font-weight: 900 !important;
}

/* LINK NONPROFIT TRUE CENTER V2 START */

/* ============================================================
   UNIVERSAL NAV — ACTUALLY LARGE
   This stylesheet is loaded only on the nonprofit directory.
   ============================================================ */

html body .link-universal-nav {
  width: 100% !important;
  min-height: 112px !important;
  height: auto !important;
}

html body .link-universal-nav > div {
  width: calc(100% - 40px) !important;
  max-width: 1480px !important;
  min-height: 112px !important;

  margin-left: auto !important;
  margin-right: auto !important;

  padding-top: 12px !important;
  padding-bottom: 12px !important;

  box-sizing: border-box !important;
}

html body .link-universal-nav__brand {
  flex: 0 0 220px !important;
  width: 220px !important;
  max-width: 220px !important;
}

html body .link-universal-nav__brand img {
  display: block !important;

  width: 215px !important;
  max-width: 215px !important;

  height: auto !important;
  max-height: 88px !important;

  object-fit: contain !important;
}

html body .link-universal-nav nav {
  gap: 22px !important;
}

html body .link-universal-nav nav a {
  font-size: 14px !important;
  line-height: 1.2 !important;
}

html body .link-universal-nav nav a strong {
  font-size: 14.5px !important;
  line-height: 1.15 !important;
}

html body .link-universal-nav nav a span {
  font-size: 11px !important;
  line-height: 1.2 !important;
}

/* Keep only the Universal Nav visible. */
html body > header.link-standard-header,
html body > nav.link-standard-nav,
html body > header.directory-header,
html body > header.link-public-header {
  display: none !important;
}


/* ============================================================
   VERIFIED ORGANIZATIONS — CENTER THE ACTUAL SECTION
   ============================================================ */

html body .directory-list-section {
  width: min(1120px, calc(100% - 48px)) !important;
  max-width: 1120px !important;

  margin-left: auto !important;
  margin-right: auto !important;

  padding-left: 0 !important;
  padding-right: 0 !important;

  box-sizing: border-box !important;
}

/* Heading and grid use the SAME centered width. */
html body .directory-list-section .section-heading {
  width: 100% !important;
  max-width: none !important;

  margin-left: auto !important;
  margin-right: auto !important;

  padding-left: 0 !important;
  padding-right: 0 !important;

  box-sizing: border-box !important;
}

html body #directoryGrid.directory-grid {
  display: grid !important;

  width: 100% !important;
  max-width: 1120px !important;

  margin-left: auto !important;
  margin-right: auto !important;

  padding-left: 0 !important;
  padding-right: 0 !important;

  grid-template-columns:
    repeat(3, minmax(0, 1fr)) !important;

  gap: 22px !important;

  justify-content: center !important;
  align-items: stretch !important;

  box-sizing: border-box !important;
}


/* ============================================================
   EACH NONPROFIT CARD — TRUE CENTER
   ============================================================ */

html body #directoryGrid .directory-card {
  width: 100% !important;
  min-width: 0 !important;

  margin: 0 !important;

  padding-left: 0 !important;
  padding-right: 0 !important;

  text-align: center !important;

  box-sizing: border-box !important;
}

html body #directoryGrid .directory-card-logo {
  width: 100% !important;

  margin-left: auto !important;
  margin-right: auto !important;

  text-align: center !important;
}

html body #directoryGrid .directory-card-logo img {
  display: block !important;

  margin-left: auto !important;
  margin-right: auto !important;

  object-position: center center !important;
}

html body #directoryGrid .directory-card-body {
  width: 100% !important;

  margin-left: auto !important;
  margin-right: auto !important;

  padding-left: 22px !important;
  padding-right: 22px !important;

  text-align: center !important;

  box-sizing: border-box !important;
}

html body #directoryGrid .directory-verified,
html body #directoryGrid .directory-category,
html body #directoryGrid .directory-action-count {
  display: block !important;
  width: 100% !important;

  margin-left: auto !important;
  margin-right: auto !important;

  text-align: center !important;
}

html body #directoryGrid .directory-card h3 {
  width: 100% !important;

  margin-left: auto !important;
  margin-right: auto !important;

  text-align: center !important;

  font-size: 22px !important;
  line-height: 1.22 !important;
}

html body #directoryGrid .directory-card p {
  width: 100% !important;
  max-width: 100% !important;

  margin-left: auto !important;
  margin-right: auto !important;

  text-align: center !important;

  font-size: 16px !important;
  line-height: 1.55 !important;
}

html body #directoryGrid .directory-chips {
  width: 100% !important;

  justify-content: center !important;

  margin-left: auto !important;
  margin-right: auto !important;
}

html body #directoryGrid .directory-card-footer {
  width: 100% !important;

  margin-left: auto !important;
  margin-right: auto !important;

  padding-left: 22px !important;
  padding-right: 22px !important;

  text-align: center !important;

  box-sizing: border-box !important;
}

html body #directoryGrid .directory-card-footer a {
  width: 100% !important;

  margin-left: auto !important;
  margin-right: auto !important;

  justify-content: center !important;
  text-align: center !important;
}


/* ============================================================
   SINGLE NEEDS / VOLUNTEER DROPDOWN
   ============================================================ */

html body #directoryGrid .link-np-primary-toggle {
  width: calc(100% - 44px) !important;
  max-width: none !important;

  min-height: 62px !important;

  margin: 18px auto 14px !important;
  padding: 16px 48px 16px 18px !important;

  justify-content: center !important;

  text-align: center !important;

  font-size: 15px !important;
  font-weight: 900 !important;

  box-sizing: border-box !important;
}

html body #directoryGrid .link-np-details-panel {
  width: calc(100% - 44px) !important;
  max-width: none !important;

  margin-left: auto !important;
  margin-right: auto !important;

  box-sizing: border-box !important;
}

/* Details should be readable, not centered paragraphs. */
html body #directoryGrid .link-np-details-panel p,
html body #directoryGrid .link-np-details-panel li {
  text-align: left !important;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {

  html body #directoryGrid.directory-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;
  }

  html body .link-universal-nav__brand {
    flex-basis: 190px !important;
    width: 190px !important;
  }

  html body .link-universal-nav__brand img {
    width: 185px !important;
    max-width: 185px !important;
  }
}

@media (max-width: 700px) {

  html body .directory-list-section {
    width: calc(100% - 28px) !important;
  }

  html body #directoryGrid.directory-grid {
    grid-template-columns: 1fr !important;
  }

  html body .link-universal-nav {
    min-height: 88px !important;
  }

  html body .link-universal-nav > div {
    min-height: 88px !important;
  }

  html body .link-universal-nav__brand {
    flex-basis: 160px !important;
    width: 160px !important;
  }

  html body .link-universal-nav__brand img {
    width: 155px !important;
    max-width: 155px !important;
  }
}

/* LINK NONPROFIT TRUE CENTER V2 END */

/* LINK NONPROFIT NAV FINAL V4 START */

/* ============================================================
   NONPROFIT DIRECTORY — FINAL NAV FIT
   Main labels stay large.
   Descriptions hide at normal laptop/desktop widths.
   ============================================================ */

html body .link-universal-nav {
  width: 100% !important;
  min-height: 104px !important;
  height: auto !important;
}

html body .link-universal-nav > div {
  width: calc(100% - 32px) !important;
  max-width: 1540px !important;
  min-height: 104px !important;

  margin: 0 auto !important;
  padding: 10px 16px !important;

  display: flex !important;
  align-items: center !important;

  box-sizing: border-box !important;
}


/* ---------- LOGO ---------- */

html body .link-universal-nav__brand {
  flex: 0 0 185px !important;

  width: 185px !important;
  max-width: 185px !important;

  margin-right: 24px !important;
}

html body .link-universal-nav__brand img {
  display: block !important;

  width: 180px !important;
  max-width: 180px !important;

  height: auto !important;
  max-height: 82px !important;

  object-fit: contain !important;
}


/* ---------- NAV GRID ---------- */

html body .link-universal-nav nav {
  flex: 1 1 auto !important;

  display: grid !important;

  grid-template-columns:
    repeat(7, minmax(88px, 1fr)) !important;

  gap: 8px !important;

  align-items: center !important;

  min-width: 0 !important;

  margin: 0 18px 0 0 !important;
}


/* ---------- EACH TAB ---------- */

html body .link-universal-nav nav > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-width: 0 !important;
  min-height: 48px !important;

  padding: 8px 5px !important;
  margin: 0 !important;

  text-align: center !important;

  white-space: normal !important;

  box-sizing: border-box !important;
}


/* MAIN TAB NAMES */

html body .link-universal-nav nav > a strong {
  display: block !important;

  width: 100% !important;

  color: #ffffff !important;

  font-size: 15.5px !important;
  line-height: 1.15 !important;

  font-weight: 900 !important;

  letter-spacing: .01em !important;

  text-align: center !important;

  white-space: normal !important;
}


/* LITTLE DESCRIPTIONS:
   hidden at normal laptop/desktop widths
   so labels do not collide.
*/

html body .link-universal-nav nav > a span {
  display: none !important;
}


/* ---------- GET INVOLVED ---------- */

html body .link-universal-nav > div > a:last-child:not(.link-universal-nav__brand) {
  flex: 0 0 auto !important;

  min-height: 46px !important;

  padding: 13px 16px !important;

  font-size: 13.5px !important;
  line-height: 1 !important;

  font-weight: 900 !important;

  white-space: nowrap !important;
}


/* ============================================================
   EXTRA-WIDE SCREENS
   Enough space exists to show descriptions again.
   ============================================================ */

@media (min-width: 1700px) {

  html body .link-universal-nav {
    min-height: 116px !important;
  }

  html body .link-universal-nav > div {
    min-height: 116px !important;
  }

  html body .link-universal-nav nav > a {
    min-height: 66px !important;

    flex-direction: column !important;
  }

  html body .link-universal-nav nav > a span {
    display: block !important;

    margin-top: 4px !important;

    color: rgba(255,255,255,.78) !important;

    font-size: 11px !important;
    line-height: 1.25 !important;

    text-align: center !important;

    white-space: normal !important;
  }
}


/* ============================================================
   SMALLER LAPTOP
   ============================================================ */

@media (max-width: 1280px) {

  html body .link-universal-nav__brand {
    flex-basis: 160px !important;
    width: 160px !important;
    max-width: 160px !important;

    margin-right: 14px !important;
  }

  html body .link-universal-nav__brand img {
    width: 155px !important;
    max-width: 155px !important;
  }

  html body .link-universal-nav nav {
    gap: 5px !important;
    margin-right: 10px !important;
  }

  html body .link-universal-nav nav > a strong {
    font-size: 14px !important;
  }
}


/* LINK NONPROFIT NAV FINAL V4 END */

/* LINK NONPROFIT NAV CLEAN V5 START */

/* ============================================================
   NONPROFIT DIRECTORY ONLY
   FINAL UNIVERSAL NAV GEOMETRY
   ============================================================ */

html body.link-directory-page
.link-universal-nav.link-np-clean-nav {
  width: 100% !important;
  min-height: 104px !important;
}


/* The actual navigation shell:
   logo | seven equal tabs | CTA
*/

html body.link-directory-page
.link-universal-nav.link-np-clean-nav > div {
  width: min(1460px, calc(100% - 40px)) !important;
  max-width: 1460px !important;
  min-height: 104px !important;

  margin: 0 auto !important;
  padding: 10px 0 !important;

  display: grid !important;

  grid-template-columns:
    190px
    minmax(0, 1fr)
    auto !important;

  column-gap: 24px !important;

  align-items: center !important;

  box-sizing: border-box !important;
}


/* ---------- LOGO ---------- */

html body.link-directory-page
.link-universal-nav.link-np-clean-nav
.link-universal-nav__brand {
  width: 190px !important;
  max-width: 190px !important;

  margin: 0 !important;
  padding: 0 !important;

  justify-self: start !important;
}

html body.link-directory-page
.link-universal-nav.link-np-clean-nav
.link-universal-nav__brand img {
  display: block !important;

  width: 185px !important;
  max-width: 185px !important;

  height: auto !important;
  max-height: 84px !important;

  margin: 0 !important;

  object-fit: contain !important;
}


/* ============================================================
   EXACTLY SEVEN EQUAL NAVIGATION CELLS
   ============================================================ */

html body.link-directory-page
.link-universal-nav.link-np-clean-nav nav {
  width: 100% !important;
  min-width: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  display: grid !important;

  grid-template-columns:
    repeat(7, minmax(0, 1fr)) !important;

  gap: 6px !important;

  align-items: stretch !important;

  box-sizing: border-box !important;
}


/* Every menu item has identical geometry. */

html body.link-directory-page
.link-universal-nav.link-np-clean-nav
nav > a.link-np-clean-nav-tab {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 62px !important;

  margin: 0 !important;
  padding: 7px 4px !important;

  display: grid !important;
  place-items: center !important;

  box-sizing: border-box !important;

  text-align: center !important;

  white-space: normal !important;
}


/* Main label only. */

html body.link-directory-page
.link-universal-nav.link-np-clean-nav
nav > a.link-np-clean-nav-tab > strong {
  display: block !important;

  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #ffffff !important;

  font-size: 14.5px !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;

  letter-spacing: .015em !important;

  text-align: center !important;

  white-space: normal !important;
}


/* Absolutely no subtitle/description row remains
   inside the normalized navigation anchors. */

html body.link-directory-page
.link-universal-nav.link-np-clean-nav
nav > a.link-np-clean-nav-tab
:not(strong) {
  display: none !important;
}


/* ============================================================
   GET INVOLVED
   ============================================================ */

html body.link-directory-page
.link-universal-nav.link-np-clean-nav
> div > a:not(.link-universal-nav__brand) {
  justify-self: end !important;

  min-height: 46px !important;

  margin: 0 !important;
  padding: 13px 17px !important;

  font-size: 13.5px !important;
  font-weight: 900 !important;
  line-height: 1 !important;

  white-space: nowrap !important;
}


/* ============================================================
   AT YOUR LAPTOP WIDTH
   Keep all seven equal. Slightly tighten only if necessary.
   ============================================================ */

@media (max-width: 1400px) {

  html body.link-directory-page
  .link-universal-nav.link-np-clean-nav > div {
    width: calc(100% - 26px) !important;

    grid-template-columns:
      165px
      minmax(0, 1fr)
      auto !important;

    column-gap: 15px !important;
  }

  html body.link-directory-page
  .link-universal-nav.link-np-clean-nav
  .link-universal-nav__brand {
    width: 165px !important;
    max-width: 165px !important;
  }

  html body.link-directory-page
  .link-universal-nav.link-np-clean-nav
  .link-universal-nav__brand img {
    width: 160px !important;
    max-width: 160px !important;
  }

  html body.link-directory-page
  .link-universal-nav.link-np-clean-nav
  nav > a.link-np-clean-nav-tab > strong {
    font-size: 13.5px !important;
  }
}


/* LINK NONPROFIT NAV CLEAN V5 END */


/* LINK NONPROFIT ONE NAV FINAL START */

/*
   Keep ONLY .link-universal-nav.
   Hide the legacy white logo header and legacy second navy nav.
   directory.css loads only on the Nonprofit directory.
*/

html body header.link-standard-header,
html body nav.link-standard-nav {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Universal navigation remains visible and becomes the only header. */
html body .link-universal-nav {
  display: block !important;
  visibility: visible !important;
}

/* No artificial gap between the Universal Nav and page hero. */
html body main {
  margin-top: 0 !important;
}

/* LINK NONPROFIT ONE NAV FINAL END */

