/* Dossier Book — branded layout on top of Just Right! design tokens */

@import url("assets/colors_and_type.css");

/* ============ VIEW SWITCHER ============ */
.view-switcher {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  background: var(--jr-blue-900);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 0 24px;
}
.view-tab {
  appearance: none;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.55);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  padding: 16px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s, background .15s;
}
.view-tab:hover { color: #fff; background: rgba(255,255,255,.04); }
.view-tab.active { color: #fff; border-bottom-color: #6FB1E5; }
.view-tab-count {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,.1);
  padding: 2px 8px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.view-tab.active .view-tab-count { background: rgba(255,255,255,.18); }

.hotel-sidebar .hotel-side-note {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255,255,255,.65);
  margin: 16px 0 0;
  padding: 12px 14px;
  background: rgba(110,177,229,.08);
  border-left: 2px solid #6FB1E5;
  border-radius: 0 2px 2px 0;
}
.hotel-dossier .hotel-why {
  background: var(--jr-blue-50);
  border-top: 3px solid var(--jr-blue-700);
}
.hotel-dossier .section-label { color: var(--jr-blue-700); }


/* Tier blocks in the "Roster by tier" summary */
.tier-block {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 4px;
  padding: 28px 28px 24px;
  margin-bottom: 24px;
}
.tier-block-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-1);
}
.tier-block-label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--jr-blue-700);
  margin-bottom: 6px;
}
.tier-block-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.1;
  color: var(--jr-gray-900);
  margin: 0 0 8px;
}
.tier-block-desc {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-3);
  line-height: 1.55;
  margin: 0;
  max-width: 60ch;
}
.tier-block-count {
  text-align: right;
  border-left: 1px solid var(--border-1);
  padding-left: 22px;
}
.tier-block-count .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  color: var(--jr-blue-700);
}
.tier-block-count .lbl {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 700;
  margin-top: 4px;
}

.tier-firm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* Tier section header before dossier groups */
.tier-section-header {
  background: linear-gradient(135deg, var(--jr-blue-900) 0%, var(--jr-blue-800) 100%);
  color: #fff;
  padding: 36px clamp(28px, 4vw, 48px) 32px;
  border-radius: 4px;
  margin: 48px 0 24px;
  position: relative;
  overflow: hidden;
}
.tier-section-header::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle at center, rgba(110,177,229,.22), transparent 65%);
  pointer-events: none;
}
.tier-section-header .tier-label {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6FB1E5;
  font-weight: 700;
  margin-bottom: 10px;
}
.tier-section-header .tier-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: .005em;
}
.tier-section-header .tier-desc {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255,255,255,.78);
  max-width: 64ch;
  margin: 0 0 14px;
}
.tier-section-header .tier-meta {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,.55);
}

/* Sidebar nav-tier styling */
.nav-tier { margin-bottom: 14px; }
.nav-tier-link {
  background: rgba(255,255,255,.04);
  border-left: 2px solid #6FB1E5 !important;
}
.nav-tier-link .nav-tier-sub {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  font-weight: 400;
}
.nav-tier-body {
  padding: 4px 0 4px 10px;
}
.nav-firm-link {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,.7) !important;
}

/* Elevated buyer styling */
.firm-buyer-name.elevated::before {
  content: "⭐";
  margin-right: 6px;
}
.nav-link.elevated { color: #FFD089; }
.dossier.elevated { border-top: 4px solid #6FB1E5; }
.dossier.elevated .dossier-body > section.fit-block {
  background: #EAF3FA;
  border-top-color: #6FB1E5;
}
.dossier.elevated .section-label { color: var(--jr-blue-900); }
.dossier.elevated .headshot {
  box-shadow: 0 0 0 2px #6FB1E5, var(--shadow-2);
}

/* Attended tag */
.tag.attended {
  background: var(--jr-blue-50);
  color: var(--jr-blue-700);
}
.tag.elevated {
  background: #6FB1E5;
  color: #fff;
}

/* ============ TRACKER + FILTERS ============ */

.sidebar-progress {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.sidebar-progress-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  color: #fff;
}
.sidebar-progress-num .sep { color: rgba(255,255,255,.4); margin: 0 4px; }
.sidebar-progress-lbl {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  margin-top: 5px;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 14px 18px;
  margin: 0 0 24px;
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 4px;
  position: sticky;
  top: 8px;
  z-index: 10;
  box-shadow: var(--shadow-2);
}
.filter-chip {
  appearance: none;
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  color: var(--fg-2);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background .15s, color .15s, border-color .15s;
}
.filter-chip:hover { background: var(--jr-blue-50); border-color: var(--jr-blue-300); }
.filter-chip.active { background: var(--jr-blue-700); color: #fff; border-color: var(--jr-blue-700); }
.filter-chip.hotel { background: #FFF7EA; color: #8A5A1F; border-color: #E7C695; }
.filter-chip.hotel:hover { background: #FCEBD1; }
.filter-chip.hotel.active { background: #C68A2E; color: #fff; border-color: #C68A2E; }
.filter-chip .chip-count {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0,0,0,.08);
  border-radius: 999px;
  padding: 1px 7px;
  min-width: 22px;
  text-align: center;
}
.filter-chip.active .chip-count { background: rgba(255,255,255,.22); }
.filter-sep {
  width: 1px;
  height: 22px;
  background: var(--border-1);
  margin: 0 4px;
}
.filter-result {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.dossier.filter-hidden,
.firm-section-header.filter-hidden,
.tier-section-header.filter-hidden { display: none !important; }

/* Tracker bar on each dossier */
.tracker-bar {
  display: flex;
  gap: 10px;
  padding: 12px 32px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-1);
}
.tracker-btn {
  appearance: none;
  border: 1px solid var(--border-2);
  background: #fff;
  color: var(--fg-2);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .15s;
}
.tracker-btn:hover {
  border-color: var(--jr-blue-300);
  background: var(--jr-blue-50);
  color: var(--jr-blue-900);
}
.tracker-btn .tracker-icon {
  font-size: 15px;
  line-height: 1;
  display: inline-block;
  width: 16px;
  text-align: center;
}
.tracker-btn .tracker-meta {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-3);
  padding-left: 4px;
  border-left: 1px solid var(--border-1);
  margin-left: 4px;
}
.tracker-btn.met-btn.active {
  background: #E8F4EC;
  color: #1E5733;
  border-color: #8FC2A1;
}
.tracker-btn.met-btn.active:hover {
  background: #D5EBDC;
}
.tracker-btn.hotel-btn.active {
  background: #FFF1D9;
  color: #8A5A1F;
  border-color: #E7C695;
}
.tracker-btn.hotel-btn.active:hover {
  background: #FCE3B6;
}

/* Notes block */
.notes-block { background: #FAFBFC; }
.team-notes-block { background: #F3F8FC; border-top: 1px solid var(--border-1); }
.notes-tag-private,
.notes-tag-shared {
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 2px;
  margin-left: 10px;
  vertical-align: middle;
}
.notes-tag-private { background: var(--jr-gray-200); color: var(--jr-gray-700); }
.notes-tag-shared { background: var(--jr-blue-100); color: var(--jr-blue-900); }
.dossier-notes {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--fg-1);
  background: #fff;
  resize: vertical;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.dossier-notes:focus { border-color: var(--jr-blue-500); box-shadow: 0 0 0 3px rgba(34,90,133,.12); }
.dossier-notes::placeholder { color: var(--fg-4); }
.notes-meta {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--jr-blue-700);
  letter-spacing: .04em;
  text-transform: uppercase;
  min-height: 14px;
}

/* Hotel friend visual indicator on dossier card */
.dossier .tracker-btn.hotel-btn.active::before {
  content: "";
}

/* ============ PWA INSTALL BANNER ============ */
#pwa-install {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--jr-blue-900);
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  font-family: var(--font-sans);
  animation: pwa-slide-up .3s ease-out;
}
@keyframes pwa-slide-up { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.pwa-install-msg { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pwa-install-msg strong { font-size: 13.5px; font-weight: 700; letter-spacing: .01em; }
.pwa-install-msg span { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.7); line-height: 1.4; }
.pwa-install-msg .ios-share {
  display: inline-block;
  background: rgba(255,255,255,.15);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  margin: 0 2px;
}
.pwa-install-btn {
  appearance: none;
  background: #6FB1E5;
  color: var(--jr-blue-900);
  border: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.pwa-install-btn:hover { background: #93C5EB; }
.pwa-install-close {
  appearance: none;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  font-weight: 300;
}
.pwa-install-close:hover { color: #fff; }

/* ============ AUTH OVERLAY ============ */
#auth-overlay {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, var(--jr-blue-900) 0%, var(--jr-blue-800) 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.auth-card {
  background: #fff;
  border-radius: 6px;
  padding: 44px 48px 36px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.auth-logo { width: 200px; height: auto; margin-bottom: 28px; }
.auth-eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--jr-blue-700);
  margin-bottom: 10px;
}
.auth-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  line-height: 1.1;
  color: var(--jr-gray-900);
  margin: 0 0 10px;
}
.auth-sub {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg-2);
  line-height: 1.55;
  margin: 0 0 24px;
}
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-input {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 14px;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  background: #fff;
  color: var(--fg-1);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.auth-input:focus { border-color: var(--jr-blue-500); box-shadow: 0 0 0 3px rgba(34,90,133,.15); }
.auth-submit {
  appearance: none;
  background: var(--jr-blue-700);
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .02em;
  padding: 12px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s;
}
.auth-submit:hover { background: var(--jr-blue-900); }
.auth-status {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 4px;
  display: none;
}
.auth-status:not(:empty) { display: block; }
.auth-status[data-kind="info"] { background: var(--jr-blue-50); color: var(--jr-blue-900); }
.auth-status[data-kind="success"] { background: #E8F4EC; color: #1E5733; }
.auth-status[data-kind="error"] { background: #FBEAE7; color: #8A2C20; }
.auth-foot {
  margin-top: 22px;
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.5;
  border-top: 1px solid var(--border-1);
  padding-top: 16px;
}

.user-badge {
  margin-top: 22px;
  padding: 12px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  display: flex; flex-direction: column; gap: 8px;
}
.user-badge-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  word-break: break-all;
}
.user-signout {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.75);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .04em;
  padding: 6px 10px;
  border-radius: 3px;
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s;
}
.user-signout:hover { background: rgba(255,255,255,.1); color: #fff; }




* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: 16px;
  line-height: var(--lh-normal);
  color: var(--fg-2);
  background: var(--bg-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ============ APP SHELL ============ */
.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  background: var(--jr-blue-900);
  color: var(--fg-on-dark);
  padding: 28px 22px 32px;
  border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-brand img { width: 168px; height: auto; }
.sidebar-meta {
  font-size: 11px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 4px;
}
.sidebar-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 24px;
}

.search {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  padding: 10px 12px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.search::placeholder { color: rgba(255,255,255,.45); }
.search:focus { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); }

.nav-group { margin-bottom: 18px; }
.nav-group-title {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  font-weight: 700;
  margin: 0 0 8px 4px;
}
.nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: 3px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .12s, color .12s;
  border-left: 2px solid transparent;
}
.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link.active { background: rgba(255,255,255,.09); color: #fff; border-left-color: #6FB1E5; }
.nav-link .count {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  font-variant-numeric: tabular-nums;
}

.nav-firm-buyers { margin: 4px 0 6px 8px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.1); }
.nav-firm-buyers .nav-link { font-size: 12px; padding: 5px 8px; color: rgba(255,255,255,.7); }
.nav-firm-buyers .nav-link.top8 { color: #FFD089; }
.nav-firm-buyers .nav-link .pri-dots {
  font-size: 10px;
  letter-spacing: 1px;
  color: #6FB1E5;
}

/* ============ MAIN ============ */
.main { background: var(--bg-2); }
.section { scroll-margin-top: 16px; }

/* ============ COVER ============ */
.cover {
  background: var(--jr-blue-900);
  color: #fff;
  padding: 64px clamp(24px, 5vw, 80px) 72px;
  position: relative;
  overflow: hidden;
}
.cover::before {
  content: "";
  position: absolute;
  inset: auto -10% -50% auto;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 30% 40%, rgba(110, 177, 229, .18), transparent 60%);
  pointer-events: none;
}
.cover-eyebrow {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6FB1E5;
  font-weight: 600;
  margin-bottom: 20px;
}
.cover h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: .005em;
  margin: 0 0 16px;
  text-wrap: balance;
  max-width: 16ch;
}
.cover h1 em { font-style: normal; color: #6FB1E5; }
.cover-sub {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255,255,255,.78);
  max-width: 60ch;
  margin: 0 0 36px;
}
.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  overflow: hidden;
  max-width: 900px;
}
.cover-stat {
  background: var(--jr-blue-900);
  padding: 18px 22px;
}
.cover-stat-label {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-weight: 600;
  margin-bottom: 6px;
}
.cover-stat-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.15;
  color: #fff;
}
.cover-stat-value small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  letter-spacing: 0;
}

/* ============ CONTENT BLOCKS ============ */
.block {
  padding: 56px clamp(24px, 5vw, 80px);
  max-width: 1180px;
}
.block.tight { padding-top: 32px; padding-bottom: 32px; }
.block.alt { background: var(--bg-1); }

.eyebrow {
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--jr-blue-700);
  font-weight: 700;
  margin: 0 0 10px;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: .005em;
  color: var(--jr-gray-900);
  margin: 0 0 14px;
  text-wrap: balance;
}
.h2-sub {
  font-size: 16.5px;
  font-weight: 500;
  color: var(--fg-2);
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 64ch;
}

/* ============ TOP 8 ============ */
.top8-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.top8-card {
  background: #fff;
  border: 1px solid var(--border-1);
  border-top: 3px solid var(--jr-blue-700);
  border-radius: 4px;
  padding: 18px 20px 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s var(--ease-out), transform .18s var(--ease-out), border-color .18s;
  cursor: pointer;
  position: relative;
}
.top8-card:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-2px);
}
.top8-rank {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--jr-blue-700);
}
.top8-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.15;
  color: var(--jr-gray-900);
  margin: 0 0 4px;
  padding-right: 28px;
}
.top8-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--jr-blue-700);
  line-height: 1.4;
  margin: 0 0 2px;
}
.top8-firm {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.top8-note {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-2);
  line-height: 1.55;
  margin: 0;
}

/* Priority dots: small visual stack of 1–3 dots */
.pri {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}
.pri i {
  width: 5px; height: 5px; border-radius: 999px; background: var(--jr-blue-700); display: block;
}
.pri.lvl-1 i:nth-child(n+2) { background: var(--jr-blue-100); }
.pri.lvl-2 i:nth-child(n+3) { background: var(--jr-blue-100); }

/* ============ FIRM ROSTER GRID ============ */
.firm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.firm-card {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 4px;
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
}
.firm-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--border-1);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.firm-card-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.18;
  color: var(--jr-gray-900);
  margin: 0 0 3px;
}
.firm-card-hq {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.firm-count {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  color: var(--jr-blue-700);
  font-variant-numeric: tabular-nums;
}
.firm-count small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--fg-3);
  text-transform: uppercase;
  margin-top: 4px;
  text-align: right;
}
.firm-buyer-list { display: flex; flex-direction: column; gap: 0; }
.firm-buyer-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--jr-gray-200);
  font-size: 13.5px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: padding .15s;
}
.firm-buyer-row:last-child { border-bottom: none; }
.firm-buyer-row:hover { padding-left: 4px; }
.firm-buyer-row:hover .firm-buyer-name { color: var(--jr-blue-700); }
.firm-buyer-name {
  font-weight: 700;
  color: var(--jr-gray-900);
  flex-shrink: 0;
  transition: color .15s;
}
.firm-buyer-name.top8::before {
  content: "★";
  color: #D9A24A;
  margin-right: 6px;
  font-size: 12px;
}
.firm-buyer-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-3);
  text-align: right;
  line-height: 1.4;
  flex: 1;
}

/* ============ INDIVIDUAL DOSSIER ============ */
.dossier {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 4px;
  margin-bottom: 24px;
  overflow: hidden;
}
.dossier-head {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 22px;
  padding: 24px 32px 22px;
  border-bottom: 1px solid var(--border-1);
  align-items: start;
}
.headshot {
  width: 88px; height: 88px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--jr-blue-700);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--border-1), var(--shadow-2);
  flex-shrink: 0;
}
.headshot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.headshot.no-photo::before {
  content: attr(data-initials);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  color: #fff;
  letter-spacing: .02em;
}
.dossier.top8 .headshot { box-shadow: 0 0 0 2px #D9A24A, var(--shadow-2); border-color: #fff; }
.dossier.top8 { border-top: 4px solid #D9A24A; }
.dossier-name-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dossier-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  line-height: 1.05;
  color: var(--jr-gray-900);
  margin: 0;
}
.dossier-creds {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--jr-blue-700);
  background: var(--jr-blue-50);
  padding: 4px 8px;
  border-radius: 2px;
}
.dossier-role {
  font-size: 16px;
  font-weight: 600;
  color: var(--jr-blue-700);
  margin: 6px 0 4px;
  line-height: 1.4;
}
.dossier-firm {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-3);
  margin-bottom: 10px;
}
.dossier-firm strong { color: var(--jr-gray-800); font-weight: 700; }

.dossier-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 2px;
  background: var(--jr-gray-100);
  color: var(--jr-gray-700);
}
.tag.tier { background: var(--jr-blue-700); color: #fff; }
.tag.top8 { background: #D9A24A; color: #fff; }
.tag.region { background: transparent; color: var(--fg-3); border: 1px solid var(--border-1); }

.dossier-priority {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.dossier-priority-label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fg-3);
}
.dossier-priority-bar {
  display: flex;
  gap: 3px;
}
.dossier-priority-bar i {
  width: 22px;
  height: 4px;
  background: var(--jr-blue-100);
  display: block;
}
.dossier-priority-bar i.on { background: var(--jr-blue-700); }
.dossier.top8 .dossier-priority-bar i.on { background: #D9A24A; }

.dossier-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--border-1);
}
.dossier-body > section {
  background: #fff;
  padding: 22px 32px 26px;
}
.dossier-body > section.full { grid-column: 1 / -1; }
.dossier-body > section.fit-block {
  background: var(--jr-blue-50);
  border-top: 3px solid var(--jr-blue-700);
}
.dossier.top8 .dossier-body > section.fit-block {
  background: #FBF4E8;
  border-top-color: #D9A24A;
}

.section-label {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--jr-blue-700);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dossier.top8 .section-label { color: #B27B22; }
.section-label::before {
  content: "";
  width: 14px;
  height: 2px;
  background: currentColor;
  display: block;
}

.dossier p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.65; color: var(--fg-2); }
.dossier ul { list-style: none; padding: 0; margin: 0; }
.dossier ul li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  padding: 5px 0 5px 18px;
  position: relative;
}
.dossier ul.signals li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 6px; height: 6px;
  background: var(--jr-blue-700);
  border-radius: 999px;
}
.dossier ul.hooks li::before {
  content: "→";
  position: absolute;
  left: 0; top: 4px;
  font-weight: 800;
  color: var(--jr-blue-700);
}
.fit-text {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--jr-gray-900);
  margin: 0;
}
.dossier-firm-context {
  background: var(--bg-2);
  padding: 18px 32px 20px;
  border-top: 1px solid var(--border-1);
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-3);
}
.dossier-firm-context strong { color: var(--jr-gray-800); font-weight: 700; }
.dossier-firm-context-label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fg-4);
  margin: 0 0 6px;
}
.linkedin-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--jr-blue-700);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  letter-spacing: .03em;
}
.linkedin-link:hover { color: var(--jr-blue-900); }

/* Firm header row above firm group */
.firm-section-header {
  background: var(--jr-blue-900);
  color: #fff;
  padding: 22px 32px;
  border-radius: 4px;
  margin: 36px 0 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.firm-section-header h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  margin: 0 0 4px;
  line-height: 1.1;
}
.firm-section-header .meta {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  font-weight: 600;
}
.firm-section-header .why {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255,255,255,.85);
  margin: 8px 0 0;
  max-width: 70ch;
}
.firm-section-header .count-block {
  text-align: right;
  border-left: 1px solid rgba(255,255,255,.15);
  padding-left: 24px;
}
.firm-section-header .count-block .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 38px;
  line-height: 1;
  color: #6FB1E5;
}
.firm-section-header .count-block .lbl {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  font-weight: 600;
  margin-top: 4px;
}

/* Hidden state for search filtering */
.hidden { display: none !important; }

/* ============ FOOTER ============ */
.footer {
  padding: 36px clamp(24px, 5vw, 80px);
  background: var(--jr-blue-900);
  color: rgba(255,255,255,.6);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.footer strong { color: #fff; font-weight: 700; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; max-height: 320px; }
  .dossier-body { grid-template-columns: 1fr; }
  .dossier-head { grid-template-columns: 64px 1fr; }
  .headshot { width: 64px; height: 64px; }
  .headshot.no-photo::before { font-size: 20px; }
  .dossier-priority { align-items: flex-start; }
  .firm-section-header { grid-template-columns: 1fr; }
  .firm-section-header .count-block { border-left: none; padding-left: 0; }
}

/* ============ PRINT ============ */
@media print {
  .sidebar { display: none; }
  .app { grid-template-columns: 1fr; }
  .cover { padding: 32px; }
  .cover, .firm-section-header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dossier { break-inside: avoid; page-break-inside: avoid; box-shadow: none; }
  .firm-section-header { break-inside: avoid; }
  body { background: #fff; }
}
