:root {
  --ink: #14243a;
  --ink-soft: #3f4f60;
  --muted: #667483;
  --paper: #f6f1e7;
  --white: #fffdf8;
  --line: #e4dccb;
  --line-strong: #d3c9b4;
  --teal: #0b7a75;
  --teal-deep: #085f5b;
  --teal-soft: #dcece8;
  --clay: #c4532b;
  --clay-soft: #fbe6da;
  --shadow: 0 14px 34px -20px rgba(20, 36, 58, .35);
  --serif: Charter, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.shell {
  max-width: 1360px;
  margin: auto;
  padding: 0 48px 56px;
}

/* Top bar */
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
}

.nav-note {
  margin-right: auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}

.saved-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.saved-toggle:hover,
.saved-toggle[aria-pressed="true"] {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.saved-star {
  color: var(--clay);
  font-size: 15px;
  line-height: 1;
}

#savedCount {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 44px;
  isolation: isolate;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  width: min(46%, 560px);
  aspect-ratio: 600 / 260;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 260'%3E%3Ccircle cx='455' cy='62' r='24' fill='%23e9a27f' opacity='.75'/%3E%3Cpath d='M0 260V170L90 110L150 150L240 70L330 140L400 100L500 160L600 120V260Z' fill='%23cfe3df' opacity='.8'/%3E%3Cpath d='M0 260V210L110 150L190 195L290 120L380 190L470 150L600 210V260Z' fill='%23a6cdc8' opacity='.85'/%3E%3Cpath d='M0 260V236L80 205L170 240L270 190L360 235L450 205L600 245V260Z' fill='%230b7a75' opacity='.9'/%3E%3C/svg%3E") no-repeat right bottom / 100% auto;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.06;
}

.lede {
  max-width: 640px;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.freshness {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}

.freshness strong {
  color: var(--ink-soft);
  font-weight: 700;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f9a74;
  box-shadow: 0 0 0 4px rgba(47, 154, 116, .16);
}

.divider {
  color: var(--line-strong);
}

.freshness button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}

.freshness button:hover {
  color: var(--teal);
  border-color: var(--teal);
}

/* Category tabs */
.entity-tabs {
  display: flex;
  align-items: stretch;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line-strong);
}

.entity-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
  margin-bottom: -1px;
  padding: 14px 14px 13px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}

.entity-tab:hover {
  color: var(--ink);
}

.entity-tab.active,
.entity-tab[aria-pressed="true"] {
  color: var(--ink);
  border-bottom-color: var(--teal);
}

.entity-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ebe4d4;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.entity-tab.active .entity-count,
.entity-tab[aria-pressed="true"] .entity-count {
  background: var(--teal);
  color: var(--white);
}

/* Workspace & filters */
.workspace {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  padding-top: 32px;
}

.filters {
  align-self: start;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 4px 6px 4px 10px;
  margin: -4px 0 -4px -10px;
}

.search {
  position: relative;
  display: block;
  margin-bottom: 22px;
}

.search input {
  width: 100%;
  padding: 12px 36px 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  color: var(--ink);
}

.search input::placeholder {
  color: #8a8575;
}

.search input:focus {
  border-color: var(--teal);
  outline-offset: 0;
}

.filter-panel > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0 10px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.filter-panel > summary::-webkit-details-marker {
  display: none;
}

.filter-panel > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .15s;
}

.filter-panel[open] > summary::after {
  transform: rotate(-135deg);
}

.clear-link {
  display: block;
  margin: 0 0 4px auto;
}

.clear-link,
#emptyState button {
  border: 0;
  background: none;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

fieldset {
  padding: 16px 0;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  min-width: 0;
}

legend {
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.filter-options {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.filter-options label,
.actionable-only {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1.3;
}

.filter-options input,
.actionable-only input {
  accent-color: var(--teal);
  flex-shrink: 0;
}

.actionable-only {
  padding: 16px 0 4px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

/* Results header */
.results {
  min-width: 0;
}

.results-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.results h2 {
  margin: 0;
  margin-right: auto;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.sort-select {
  min-width: 190px;
  min-height: 38px;
  padding: 7px 30px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.view-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  flex-shrink: 0;
}

.view-switch button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.view-switch .active {
  background: var(--ink);
  color: var(--white);
}

.active-filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  min-height: 4px;
  margin-bottom: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  background: var(--teal-soft);
  color: var(--teal-deep);
  border-radius: 999px;
  padding: 5px 11px;
}

/* Cards */
.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(20, 36, 58, .03);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.card > :nth-last-child(2) {
  margin-bottom: 18px;
}

.card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.tone-grant { --tone: #0b6561; --tone-tint: #d8ebe7; }
.tone-investor { --tone: #25456b; --tone-tint: #dde6f0; }
.tone-hub { --tone: #a04620; --tone-tint: #f9e0d2; }
.tone-startup { --tone: #38672b; --tone-tint: #e1edda; }
.tone-all,
.tone-changes { --tone: var(--ink-soft); --tone-tint: #ece8dc; }

.entity-tile {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--tone-tint);
  color: var(--tone);
}

.entity-tile svg {
  width: 22px;
  height: 22px;
}

.tab-icon {
  display: inline-grid;
  place-items: center;
  color: var(--tone);
}

.tab-icon svg {
  width: 17px;
  height: 17px;
}

.type-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 240px;
  color: var(--tone);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.type-label::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: .35em;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1px 0 5px;
  font-size: 12px;
  line-height: 1.3;
}

.kind {
  font-weight: 700;
  color: var(--muted);
}

.card-grant .kind { color: #0b6561; }
.card-investor .kind { color: #25456b; }
.card-hub .kind { color: #a04620; }
.card-startup .kind { color: #38672b; }

.card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.22;
}

.card h3 button {
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.card h3 button:hover {
  color: var(--teal);
}

.org {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.summary {
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--ink-soft);
}

.facts {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
}

.fact {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.fact dt {
  color: var(--muted);
  font-weight: 700;
}

.fact dd {
  margin: 0;
  color: var(--ink-soft);
}

.card-connections {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 16px 0 0;
}

.conn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8f4ea;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.conn-pill:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.conn-rel {
  color: var(--muted);
  font-weight: 500;
}

.conn-more {
  border: 0;
  background: none;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.conn-more:hover {
  text-decoration: underline;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.source,
.profile-trigger,
.action-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-deep);
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.source:hover,
.profile-trigger:hover,
.action-btn:hover {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.verified {
  font-size: 12px;
  color: var(--muted);
}

.save {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #9a9380;
  cursor: pointer;
  padding: 6px;
  margin: -6px -6px 0 0;
  border-radius: 8px;
  transition: color .15s, transform .15s;
}

.save:hover {
  color: var(--clay);
  transform: scale(1.1);
}

.save.saved {
  color: var(--clay);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  line-height: 1.3;
  background: #ece8dc;
  color: #5a5648;
}

.badge.open {
  background: #d9efe3;
  color: #1b6b46;
}

.badge.upcoming {
  background: #fbefc7;
  color: #7b5700;
}

.badge.rolling {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.badge.closed {
  background: #ece8dc;
  color: #6b665b;
}

.badge.active-org {
  background: #ece8dc;
  color: #5a5648;
}

.badge.urgent {
  background: var(--clay-soft);
  color: #a03e1a;
}

/* Empty state */
.empty-state {
  padding: 64px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 253, 248, .6);
}

.empty-state h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.empty-state p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

/* What's changed */
.changes-list {
  display: grid;
  gap: 14px;
}

.change-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.change-date {
  padding-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.change-type {
  display: inline-block;
  width: fit-content;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.change-type::first-letter {
  text-transform: uppercase;
}

.change-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.change-summary {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.change-related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 12px 0;
}

.change-related a,
.change-related button,
.change-related .related-entity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8f4ea;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.change-related a:hover,
.change-related button:hover,
.change-related .related-entity:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

/* Footer note */
.note {
  max-width: 760px;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.note p {
  margin: 0;
}

.note .note-lead {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
}

/* Dialogs & profile */
dialog {
  max-width: 520px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(20, 36, 58, .3);
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(20, 36, 58, .5);
  backdrop-filter: blur(3px);
}

dialog h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
}

#methodDialog p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.dialog-close {
  position: sticky;
  top: 0;
  float: right;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -8px -8px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.dialog-close:hover {
  border-color: var(--teal);
  color: var(--teal);
}

#profileDialog,
.profile-dialog {
  max-width: 700px;
}

.profile-header {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.profile-header > * + * {
  margin-top: 8px;
}

.profile-type {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

.profile-type .entity-tile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.profile-type .entity-tile svg {
  width: 20px;
  height: 20px;
}

.profile-header h2 {
  margin: 4px 0 0;
  font-size: 30px;
}

.profile-header .org {
  margin: 0;
  font-size: 14px;
}

.profile-summary,
.profile-dialog > p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.profile-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  padding: 18px;
  margin-bottom: 20px;
  background: var(--paper);
  border-radius: 14px;
}

.profile-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.profile-meta .meta-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.profile-meta .meta-value {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  word-break: break-word;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.profile-links a,
.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}

.profile-links button.profile-link {
  border: 0;
  cursor: pointer;
}

.profile-links a:hover,
.profile-link:hover {
  background: var(--teal);
}

.profile-links a.secondary,
.profile-link.secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.profile-links a.secondary:hover,
.profile-link.secondary:hover {
  background: var(--white);
  border-color: var(--teal);
  color: var(--teal-deep);
}

.related-entities {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.related-entities h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.related-entities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-connection-row {
  display: grid;
  grid-template-columns: minmax(110px, 150px) minmax(0, 1fr);
  align-items: start;
  gap: 8px 14px;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
}

.profile-connection-row > strong {
  color: var(--muted);
}

.profile-connection-row > span,
.profile-connection-row > .profile-link {
  grid-column: 2;
}

.profile-connection-row .profile-link {
  justify-self: start;
  padding: 5px 12px;
  font-size: 12px;
}

.related-entity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s, color .15s;
}

.related-entity:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.profile-note {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--teal-soft);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #2f5552;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover,
  .save:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero::after {
    opacity: .55;
    width: min(60%, 420px);
  }
}

@media (max-width: 800px) {
  .shell {
    padding: 0 20px 36px;
  }
  .nav-note {
    display: none;
  }
  .brand {
    margin-right: auto;
  }
  .hero {
    padding: 40px 0 120px;
  }
  .hero::after {
    width: 100%;
    opacity: .5;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 24px;
  }
  .filters {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--line);
  }
  .opportunity-grid {
    grid-template-columns: 1fr;
  }
  .sort-select {
    flex: 1 1 190px;
  }
  .change-card {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px;
  }
  dialog,
  #profileDialog,
  .profile-dialog {
    padding: 24px 20px;
    width: calc(100% - 20px);
    max-height: calc(100vh - 24px);
  }
  .profile-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .profile-connection-row {
    grid-template-columns: 1fr;
  }
  .profile-connection-row > span,
  .profile-connection-row > .profile-link {
    grid-column: 1;
  }
}

@media (max-width: 430px) {
  .divider {
    display: none;
  }
  .topbar {
    gap: 10px;
  }
  .brand {
    font-size: 17px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .lede {
    font-size: 16px;
  }
  .entity-tab {
    padding: 12px 10px 11px;
    font-size: 14px;
  }
  .results h2 {
    flex-basis: 100%;
    font-size: 24px;
  }
  .sort-select {
    width: 100%;
  }
  .view-switch {
    display: none;
  }
  .fact {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
