/* Silk Road — site chrome.
   Locked: white #FFFFFF ground (never tinted) · espresso #4A3526 · dark surface #33241A
   · tan #C1A87F line-art on dark. Depth only from family shades. No new hues. */

:root {
  --espresso: #4A3526;
  --dark: #33241A;
  --tan: #C1A87F;
  --sand: #9E7F58;
  --cream: #FDFBF7;
  --ink: #57503F;
  --hdr-h: 58px;
  --pin: 80px;          /* header 58px + 22px gap — coupled, re-measure together */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  color: #000;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--espresso); }
a:hover { color: #000; }

.frl { font-family: 'Frank Ruhl Libre', serif; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */

.shell {
  width: 66vw;
  min-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding-top: var(--hdr-h);
}

.ground {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .shell, .hdr-in, .ftr-in { width: 1000px; }
}

/* ---------- header ---------- */

.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(51, 36, 26, 0.97);
  backdrop-filter: blur(4px);
  z-index: 50;
}

.hdr-in {
  width: 66vw;
  min-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 16px 0;
}

.wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  white-space: nowrap;
}

.navl {
  margin-left: auto;
  display: flex;
  gap: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.navl a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding-bottom: 5px;
}

.navl a:hover { color: #fff; }
.navl a.on { color: var(--tan); }

/* saddle notch — active nav */
.notch {
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  display: flex;
  align-items: flex-end;
  height: 8px;
}
.notch i { flex: 1; border-bottom: 2px solid var(--tan); }
.notch svg { flex: 0 0 14px; }

/* ---------- footer (Footer A: asset skyline) ---------- */

.ftr {
  background: var(--dark);
  margin-top: 70px;
  position: relative;
  z-index: 1;
}

.ftr-in {
  width: 66vw;
  min-width: 1000px;
  margin: 0 auto;
  padding: 30px 0 26px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.ftr-in svg { max-width: 100%; height: auto; }

.ftr-line {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 8px;
}

.ftr-contact {
  font-size: 12.5px;
  line-height: 1.9;
  text-align: right;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}
.ftr-contact b { color: #fff; font-weight: 600; display: block; }

/* ---------- filter rail ---------- */

.rail {
  flex: 0 0 232px;
  position: sticky;
  top: var(--pin);
  align-self: flex-start;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}

.fgroup { border-top: 1.5px solid #000; padding: 12px 0 16px; }

.fgroup h5 {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--espresso);
  padding: 0 10px;
}

.fbtn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  padding: 7px 10px;
  font-size: 12.5px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: #333;
}
.fbtn:hover { color: var(--espresso); }
.fbtn.on { font-weight: 700; color: var(--espresso); }
.fbtn .ct { font-size: 10.5px; color: #999; font-variant-numeric: tabular-nums; }

.clearbtn { border-top: 1.5px solid #000; padding-top: 12px; font-weight: 600; }

/* ---------- sort strip ---------- */

.sortbar {
  position: sticky;
  top: var(--pin);
  z-index: 20;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin: 0 0 18px;
  border-top: 1.5px solid #000;
  border-bottom: 1.5px solid #000;
  padding: 10px 0;
  /* white mask so no tombstone peeks through above the strip */
  box-shadow: 0 7px 0 0 #fff, 0 20px 22px -6px rgba(255, 255, 255, 0.98);
}
.sortbar::before {
  content: '';
  position: absolute;
  left: -10px; right: -10px;
  bottom: calc(100% + 1.5px);
  height: 22px;
  background: #fff;
}
.sortbar .fbtn { width: auto; padding: 0; font-size: 11.5px; letter-spacing: 0.03em; }
.sortdir { width: auto; padding: 0 2px; }
.sortdir svg { transition: transform 0.2s ease; }

/* ---------- tombstone grid (new9 — banner-capped) ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-content: start;
}

.tomb {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  padding: 0;
  min-height: 236px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tomb:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--espresso);
}
.tomb.open {
  border-color: var(--espresso);
  box-shadow: inset 0 -3px 0 var(--espresso);
}
.tomb:focus-visible { outline: 2px solid var(--espresso); outline-offset: 2px; }

.tomb-banner {
  background: var(--dark);
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.tomb-val { font-size: 23px; font-weight: 700; color: #fff; }
.tomb-role {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tan);
  white-space: nowrap;
}

.tomb-body { padding: 14px 16px; display: flex; flex-direction: column; flex: 1; }
.tomb-meta {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.tomb-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 14px 0;
  min-height: 48px;
}
.tomb-logos span { height: 46px; flex: 1 1 0; min-width: 0; }
.tomb-line { font-size: 12px; line-height: 1.4; color: #333; overflow: hidden; flex: 1; }

/* ---------- deal note (row-chunked accordion) ---------- */

.note {
  grid-column: 1 / -1;
  border: 1px solid var(--espresso);
  border-top: 3px solid var(--espresso);
  background: var(--cream);
  padding: 30px 34px;
}
.note-head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--espresso);
}
.note-title { font-size: 24px; font-weight: 700; line-height: 1.2; margin: 10px 0 12px; }
.note-thesis { font-size: 14px; line-height: 1.6; color: #333; margin: 0; }
.note-stub { font-size: 11.5px; color: #999; margin-top: 16px; }
.note-rail { flex: 0 0 200px; border-left: 1px solid rgba(0, 0, 0, 0.15); padding-left: 26px; }
.note-stat + .note-stat { margin-top: 14px; }
.note-stat b { font-family: 'Frank Ruhl Libre', serif; font-weight: 700; display: block; }
.note-stat span {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.empty {
  grid-column: 1 / -1;
  border-top: 1.5px solid #000;
  padding: 30px 0;
  font-size: 13.5px;
  color: var(--ink);
}
