/* GSNH Unified Smart Search v5.0 Stylesheet. */
:root{--pv-ink:#171717;--pv-muted:#535459;--pv-line:#191919;--pv-faint:#e5e4e1;--pv-purple:#ece4fc;--pv-mint:#e6f4ea;--pv-peach:#fff0df;--pv-soft:#f9f7f1}
.pv-overline{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#8c1616}
.pv-explore-toggle{display:flex;gap:.55rem;align-items:center;border-top:1px solid var(--pv-faint);padding-top:.85rem;margin-top:.85rem;cursor:pointer}
.pv-explore-toggle input{width:18px;height:18px;accent-color:#a51e23;flex-shrink:0}
.pv-explore-toggle strong{display:block;font-size:.86rem}
.pv-explore-toggle small{display:block;color:#6b6b6b;font-size:.75rem;margin-top:.12rem}
.pv-results-title{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;border-bottom:2px solid #111;padding-bottom:.9rem;margin-bottom:.85rem}
.pv-results-title h2{font-family:var(--font-serif,Georgia,serif);font-size:clamp(1.6rem,3vw,2.15rem);letter-spacing:-.03em}
.pv-count{font-size:.78rem;font-weight:700;white-space:nowrap;color:#444}
.pv-status{font-size:.85rem;line-height:1.5;color:#505057;margin-bottom:.9rem}
.pv-alert{padding:.9rem 1.05rem;background:#fff6e5;border:1.5px solid #d2a32c;border-left:5px solid #d2a32c;border-radius:4px;margin:.9rem 0;font-size:.85rem;color:#4a4130}
.pv-typo-note{padding:.65rem .95rem;background:#f4f7fb;border:1.5px solid #b6c7dc;border-radius:4px;margin:0 0 .85rem;font-size:.84rem;color:#1e3a5f}
.pv-border-banner{padding:.85rem 1.05rem;background:#eef8f5;border:2px solid #1f5f5b;border-left:6px solid #1f5f5b;border-radius:5px;margin:0 0 1rem;font-size:.86rem;line-height:1.5;color:#133b39}
.pv-border-alt{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem .8rem;padding:.7rem .95rem;background:#fffbeb;border:1.5px solid #111;border-radius:5px;margin:0 0 1rem;font-size:.84rem;color:#222}
.pv-border-alt-btn{appearance:none;cursor:pointer;font-family:inherit;font-size:.81rem;font-weight:800;color:#111;background:#fecb00;border:1.5px solid #111;border-radius:4px;padding:.35rem .7rem;box-shadow:2px 2px 0 #111}
.pv-border-alt-btn:hover,.pv-border-alt-btn:focus-visible{background:#e5b700}

/* Unified Card Grid */
.pv-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:1.4rem;margin:.5rem 0 1.25rem;align-items:stretch}
.pv-card-grid .pv-card{min-width:0;margin:0;background:var(--surface-white,#fff);border:2px solid var(--border-dark,#111);border-radius:6px;padding:1.65rem;display:flex;flex-direction:column;justify-content:space-between;box-shadow:3px 3px 0 var(--border-dark,#111);transition:transform .12s ease,box-shadow .12s ease;position:relative;overflow:hidden}
.pv-card-grid .pv-card:hover{transform:translate(-2px,-2px);box-shadow:5px 5px 0 var(--border-dark,#111)}
.pv-card-grid .pv-card::before{display:none!important}
.pv-card-grid .pv-card-title{font-family:var(--font-serif,Georgia,serif);font-size:1.22rem;line-height:1.25;letter-spacing:-.01em;font-weight:750;color:var(--text-dark,#111);margin:0 0 .45rem;min-width:0;overflow-wrap:anywhere}
.pv-card-title a.pv-profile-link{color:inherit;text-decoration:none}
.pv-card-title a.pv-profile-link:hover{color:var(--color-crimson,#990000);text-decoration:underline;text-underline-offset:3px}
.pv-card a.pv-visit-btn{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;max-width:100%;min-height:38px;font-family:inherit;font-size:.82rem;font-weight:800;line-height:1.2;text-decoration:none!important;color:var(--text-dark,#111)!important;background:var(--color-yellow,#fecb00);border:2px solid var(--border-dark,#111);border-radius:4px;padding:.45rem .75rem;box-shadow:3px 3px 0 var(--border-dark,#111);white-space:nowrap;transition:transform .13s ease,box-shadow .13s ease,background-color .13s ease}
.pv-card a.pv-visit-btn:hover{background:var(--color-yellow-hover,#e5b700);transform:translate(-1px,-1px);box-shadow:4px 4px 0 #111;text-decoration:none;color:#111!important}
.pv-card a.pv-visit-btn:focus-visible,.pv-card-title a.pv-profile-link:focus-visible{outline:3px solid var(--color-crimson,#990000);outline-offset:3px}
.pv-card .pv-description{font-size:.89rem;color:var(--text-dark,#111);line-height:1.48;margin:.45rem 0 .7rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.pv-match-why{font-size:.79rem;font-weight:700;line-height:1.4;color:#163d22;background:#ecf8ef;border-left:3px solid #2e7d32;border-radius:3px;padding:.38rem .58rem;margin:.35rem 0 .65rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}
.pv-card .pv-regions-line{font-size:.79rem;color:var(--text-muted,#4a4a4f);line-height:1.42;margin:.45rem 0 .75rem}
.pv-regions-line strong{color:var(--text-dark,#111);font-weight:700}
.pv-towns-subline{font-size:.77rem;color:var(--text-muted,#4a4a4f);margin-top:.22rem}
.pv-chipset{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin:.45rem 0 .75rem}
.pv-chip{display:inline-block;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.25;font-size:.68rem;font-weight:750;border:1.5px solid #709750;border-radius:4px;padding:.14rem .4rem;background:#e9f6da;color:#204b17}
.pv-evidence{font-size:.82rem;line-height:1.48;color:#222;background:var(--surface-alt,#f4f4f6);border-left:3px solid var(--border-dark,#111);border-radius:4px;margin:.45rem 0 .75rem;padding:.5rem .68rem;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.pv-card-grid .pv-card-footer{margin-top:auto;padding-top:.85rem;border-top:1.5px solid var(--border-subtle,#d2d2d7);display:flex;flex-direction:column;align-items:stretch;gap:.65rem;min-width:0}
.pv-card-grid .pv-footer-actions{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:.6rem;min-width:0}
.pv-card a.pv-profile-cta{display:inline-flex;align-items:center;min-height:38px;padding:.45rem .75rem;background:#fff;border:2px solid #111;border-radius:4px;box-shadow:2px 2px 0 #111;font-size:.85rem;font-weight:850;line-height:1.2;color:#7a0000!important;text-decoration:none!important;white-space:nowrap;transition:transform .13s ease,box-shadow .13s ease}
.pv-card a.pv-profile-cta:hover{transform:translate(-1px,-1px);box-shadow:3px 3px 0 #111;color:#7a0000!important;text-decoration:none!important}
.pv-card a.pv-profile-cta:focus-visible{outline:3px solid var(--color-crimson,#990000);outline-offset:3px}
.pv-card .pv-caution{font-size:.73rem;color:var(--text-muted,#4a4a4f);line-height:1.42;margin:0}
.pv-empty{padding:2.2rem;background:#f8f8f8;border:2px dashed #a5a5a5;text-align:center;color:#555;border-radius:6px;margin-bottom:1.25rem}
.pv-empty strong{display:block;font-family:var(--font-serif,Georgia,serif);font-size:1.25rem;color:#222;margin-bottom:.45rem}
.pv-pagination{display:flex;justify-content:center;align-items:center;gap:1rem;margin:1.5rem 0 2rem}
.pv-pagination button{font-family:inherit;padding:.55rem .85rem;border:1px solid #111;background:white;border-radius:4px;font-weight:700;cursor:pointer}
.pv-pagination button:hover:not(:disabled){background:#fff1c9}
.pv-pagination button:disabled{opacity:.4;cursor:default}
.pv-pagination span{font-size:.81rem;color:#555}
.pv-pagination[hidden]{display:none}

/* Search-Only Mutual Aid Intake Callout */
.pv-mutual-aid-callout{border:2px solid #111;border-radius:6px;box-shadow:4px 4px 0 #111;margin:1.15rem 3px 1.35rem 0;display:flex;align-items:center;justify-content:space-between;gap:1.15rem;flex-wrap:wrap}
.pv-mutual-aid-callout.is-prominent{padding:1.35rem 1.45rem;background:linear-gradient(120deg,#fff3dc 0%,#eef9f1 55%,#f3effc 100%)}
.pv-mutual-aid-callout.is-compact{padding:.9rem 1.2rem;background:#fffdf6;box-shadow:3px 3px 0 #111}
.pv-mutual-aid-copy{flex:1 1 360px;min-width:0}
.pv-mutual-aid-kicker{font-size:.66rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:#8c1616;margin-bottom:.2rem}
.pv-mutual-aid-heading{font-family:var(--font-serif,Georgia,serif);font-size:1.22rem;line-height:1.25;color:#111;margin:0 0 .35rem}
.pv-mutual-aid-body{font-size:.85rem;line-height:1.52;color:#333;margin:0}
.pv-mutual-aid-inline-title{font-size:.88rem;color:#111}
.pv-mutual-aid-inline-note{font-size:.84rem;color:#444}
.pv-mutual-aid-cta{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:42px;padding:.52rem 1rem;background:var(--color-crimson,#990000)!important;color:#fff!important;border:2px solid #111;border-radius:4px;box-shadow:2px 2px 0 #111;font-weight:850;font-size:.86rem;text-decoration:none!important}
.pv-mutual-aid-cta:hover,.pv-mutual-aid-cta:focus-visible{background:#7a0000!important;color:#fff!important;transform:translate(-1px,-1px);box-shadow:3px 3px 0 #111}

/* Collapsible Exploratory Drawer */
.pv-explore-drawer{margin-top:.35rem}
.pv-explore-summary{cursor:pointer;font-weight:800;font-size:.86rem;color:#4c1d95;padding:.55rem .8rem;background:#fff;border:1.5px solid #6c5099;border-radius:4px;display:inline-flex;align-items:center;gap:.4rem;margin-bottom:.9rem}
.pv-explore-summary:hover{background:#ebe4fb}

/* Evidence Tier Sections */
.pv-tier-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem;margin:1.1rem 0 1.8rem}
.pv-tier-overview[hidden]{display:none}
.pv-overview-tile{position:relative;min-width:0;background:#fff;border:2px solid #111;box-shadow:3px 3px 0 #111;border-radius:5px;padding:.95rem 1.05rem .95rem 1.15rem;overflow:hidden}
.pv-overview-tile::before{content:"";position:absolute;top:0;left:0;bottom:0;width:7px;border-right:2px solid #111;background:var(--pv-bucket)}
.pv-overview-service{--pv-bucket:#fecb00}
.pv-overview-contact{--pv-bucket:#97dabb}
.pv-overview-explore{--pv-bucket:#c9b8ef}
.pv-overview-count{font-family:var(--font-serif,Georgia,serif);font-weight:850;font-size:1.9rem;line-height:1.12;color:#111;font-variant-numeric:tabular-nums}
.pv-overview-title{font-size:.86rem;font-weight:850;color:#171717;margin:.25rem 0 .1rem;line-height:1.3}
.pv-overview-note{font-size:.72rem;color:#5b5b5b;line-height:1.4}
.pv-tier{--pv-bucket:#fecb00;--pv-bucket-surface:#fff9e9;display:block;min-width:0;background:var(--pv-bucket-surface);border:2px solid #111;border-radius:6px;box-shadow:4px 4px 0 #111;margin:0 3px 1.25rem 0;padding:0 1.3rem 1.3rem;overflow:hidden}
.pv-tier-service{--pv-bucket:#fecb00;--pv-bucket-surface:#fff9e9}
.pv-tier-service .pv-tier-banner{background:#fecb00!important}
.pv-tier-contact{--pv-bucket:#a9dfc8;--pv-bucket-surface:#f0f8f4}
.pv-tier-contact .pv-tier-banner{background:#a9dfc8!important}
.pv-tier-explore{--pv-bucket:#d7c8f4;--pv-bucket-surface:#f6f2fc}
.pv-tier-explore .pv-tier-banner{background:#d7c8f4!important}
.pv-tier-banner{background:var(--pv-bucket);border-bottom:2px solid #111;margin:0 -1.3rem .9rem;padding:1.05rem 1.3rem;display:flex;justify-content:space-between;align-items:center;gap:.8rem 1.2rem;flex-wrap:wrap}
.pv-tier-heading-left{display:flex;align-items:center;gap:.8rem;min-width:0}
.pv-tier-marker{display:grid;place-items:center;flex:0 0 auto;width:2.3rem;height:2.3rem;border:2px solid #111;background:#fff;border-radius:50%;font-size:.85rem;font-weight:850;box-shadow:2px 2px 0 #111;color:#111}
.pv-tier-heading-text{min-width:0}
.pv-tier-kicker{font-size:.64rem;font-weight:900;letter-spacing:.1em;line-height:1.3;color:#36302b;margin:0 0 .12rem;text-transform:uppercase}
.pv-tier-heading-text h3{font-family:var(--font-serif,Georgia,serif);font-size:clamp(1.18rem,2vw,1.5rem);font-weight:850;line-height:1.2;letter-spacing:-.02em;color:#111;margin:0}
.pv-tier-count{display:inline-flex;align-items:center;white-space:nowrap;border:1.5px solid #111;background:#fff;border-radius:3px;padding:.34rem .6rem;font-size:.76rem;font-weight:850;color:#171717}
.pv-tier .pv-tier-desc{font-size:.85rem;color:#43413d;line-height:1.52;max-width:840px;margin:.05rem 0 1rem;padding:0}
.pv-tier .pv-card-grid{margin:0;gap:1.15rem}
.pv-tier .pv-card-grid .pv-card{box-shadow:3px 3px 0 #111;height:100%}
.pv-tier-quiet{margin:.5rem 0 .2rem;border:1.5px dashed #989087;border-radius:5px;padding:.85rem 1rem;background:rgba(255,255,255,.78);font-size:.84rem;color:#414141;line-height:1.55}
.pv-tier-quiet p{margin:0 0 .7rem;font-size:inherit;color:inherit}
.pv-tier-reveal{cursor:pointer;display:inline-flex;align-items:center;font-family:inherit;font-size:.82rem;font-weight:850;color:#623a8d;background:#fff;border:1.5px solid #6c5099;border-radius:3px;padding:.45rem .7rem;text-decoration:none}
.pv-tier-reveal:hover,.pv-tier-reveal:focus-visible{color:#111;background:#ebe4fb;outline:2px solid #6c5099;outline-offset:2px}

/* Shell & Fallback Controls */
.gsnh-semantic-shell{margin:1.4rem 0 3rem;min-width:0}
.gsnh-semantic-shell[hidden]{display:none!important}
.gsnh-semantic-actions{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap;margin-top:.55rem}
.gsnh-semantic-actions .nav-btn.gsnh-semantic-find{background:#fecb00;color:#111!important;border:2px solid #111;box-shadow:2px 2px #111;font-size:.84rem;padding:.52rem .85rem}
.gsnh-semantic-classic{font:inherit;font-weight:800;font-size:.8rem;cursor:pointer;white-space:normal;line-height:1.4}
.gsnh-semantic-classic[hidden]{display:none}
.gsnh-semantic-filter-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin-left:auto;max-width:100%}
.gsnh-semantic-filter-actions button{min-height:44px;max-width:100%;white-space:normal}
#emptyState .gsnh-semantic-empty-action{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-height:44px;margin:1.25rem auto 0;white-space:normal;line-height:1.5;text-align:center}
.gsnh-semantic-help{font-size:.76rem;line-height:1.5;color:var(--text-muted,#4a4a4f);margin-top:.35rem}
.gsnh-semantic-notice{border:2px solid #111;background:#fff6df;color:#222;padding:.75rem .95rem;margin-top:.85rem;font-size:.85rem;font-weight:700;line-height:1.5}
.gsnh-semantic-notice[hidden]{display:none}
.gsnh-semantic-related{margin:.9rem 0 1.2rem}
.gsnh-semantic-shell .pv-results{display:block}
.gsnh-semantic-shell .pv-pagination[hidden],.gsnh-semantic-shell .pv-tier-overview[hidden]{display:none}

body.gsnh-semantic-active #directoryOutputContainer,
body.gsnh-semantic-active #partnerGrid,
body.gsnh-semantic-active #emptyState{display:none!important}
body.gsnh-semantic-active .directory-controls .status-count{display:none!important}

/* Structure-coordinated top banner palette within semantic result cards (v5 + legacy) */
.pv-card .card-top-banner {
  margin: -1.65rem -1.65rem 0.85rem -1.65rem;
  padding: 0.5rem 1.25rem;
  min-height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border-dark, #111);
  background: linear-gradient(90deg, #315c85 0%, #4678a8 100%);
}
.pv-card[data-structure="Grassroots Collective"] .card-top-banner,
.pv-card[data-structure="1. Grassroots Association"] .card-top-banner {
  background: linear-gradient(90deg, #2e7d32 0%, #43a047 100%) !important;
}
.pv-card[data-tier="CORE_MOVEMENT_SOLIDARITY"][data-structure="Grassroots Collective"] .card-top-banner,
.pv-card[data-tier="CORE_MOVEMENT_SOLIDARITY"][data-structure="1. Grassroots Association"] .card-top-banner {
  background: var(--header-gradient, linear-gradient(90deg, #f8cca2 0%, #bfeee2 35%, #cbd5f8 70%, #f5bde4 100%)) !important;
}
.pv-card[data-structure="Labor Union"] .card-top-banner,
.pv-card[data-structure="2. Union/Labor"] .card-top-banner {
  background: linear-gradient(90deg, #f5b800 0%, #fecb00 100%) !important;
}
.pv-card[data-structure="Cooperative"] .card-top-banner,
.pv-card[data-structure="3. Co-op"] .card-top-banner,
.pv-card[data-structure="5. Business"] .card-top-banner {
  background: linear-gradient(90deg, #8ec628 0%, #a2db38 100%) !important;
}
.pv-card[data-structure="Community Nonprofit"] .card-top-banner,
.pv-card[data-structure="4. Nonprofit"] .card-top-banner {
  background: linear-gradient(90deg, #315c85 0%, #4678a8 100%) !important;
}
.pv-card[data-structure="Community Grantmaker"] .card-top-banner,
.pv-card[data-structure="6. Donor"] .card-top-banner {
  background: linear-gradient(90deg, #6b3fa0 0%, #8656c2 100%) !important;
}
.pv-card[data-structure="Political Organization"] .card-top-banner,
.pv-card[data-structure="7. Political Org/Party"] .card-top-banner {
  background: linear-gradient(90deg, #8a0000 0%, #b31212 100%) !important;
}
.pv-card[data-structure="Public & Municipal Program"] .card-top-banner,
.pv-card[data-structure="8. Municiple Gov"] .card-top-banner,
.pv-card[data-structure="9. State Gov"] .card-top-banner {
  background: linear-gradient(90deg, #236664 0%, #328a87 100%) !important;
}
.pv-card[data-structure="Other"] .card-top-banner {
  background: linear-gradient(90deg, #4a575e 0%, #60717a 100%) !important;
}
.pv-card .card-top-banner .region-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.71rem;
  font-weight: 800;
  padding: 0.16rem 0.68rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-dark, #111);
  background-color: #ffffff;
  color: var(--text-dark, #111);
  box-shadow: 1.5px 1.5px 0 rgba(17, 17, 17, 0.85);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pv-card .card-top-banner .region-pill.is-statewide {
  background-color: #eef9d2;
  color: #16360d;
}
.pv-card .card-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.45rem;
  margin-top: 0;
  margin-bottom: 0.55rem;
  min-height: 1.6rem;
}

@media(max-width:720px){.pv-tier-overview{gap:.55rem}.pv-overview-tile{padding:.8rem .6rem .8rem .9rem}.pv-overview-count{font-size:1.55rem}.pv-overview-title{font-size:.76rem}.pv-overview-note{font-size:.65rem}}
@media(max-width:660px){.pv-card-grid{grid-template-columns:1fr;gap:1.15rem}.pv-card a.pv-visit-btn{white-space:normal}.pv-results-title{align-items:flex-start;flex-direction:column}.pv-mutual-aid-cta{width:100%}}
@media(max-width:520px){.pv-tier-overview{grid-template-columns:1fr;gap:.65rem;margin-bottom:1.35rem}.pv-overview-tile{padding:.6rem .75rem .6rem 1.15rem;display:grid;grid-template-columns:3rem 1fr;column-gap:.6rem;align-items:center}.pv-overview-count{grid-row:1/3;font-size:1.7rem}.pv-overview-title{margin:0}.pv-overview-note{font-size:.7rem}.pv-tier{padding:0 .85rem 1rem}.pv-tier-banner{margin:0 -.85rem .75rem;padding:.85rem}.pv-tier-heading-left{gap:.6rem}.pv-tier-marker{width:2.1rem;height:2.1rem;font-size:.77rem}.pv-tier-kicker{font-size:.58rem}.pv-tier-heading-text h3{font-size:1.2rem}.pv-tier-count{margin-left:2.7rem;padding:.3rem .5rem;font-size:.7rem}.pv-tier .pv-tier-desc{font-size:.79rem}}
@media(prefers-reduced-motion:reduce){.pv-card-grid .pv-card,.pv-card a.pv-visit-btn,.pv-mutual-aid-cta{transition:none}.pv-card-grid .pv-card:hover,.pv-card a.pv-visit-btn:hover,.pv-mutual-aid-cta:hover{transform:none}}
