/* LAFV viewer — app chrome on Equanimity CI (vendor/equanimity/style.css) */

:root {
  --mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
}

body.lafv-app {
  /* keep Equanimity heritage wash from style.css */
}

.lafv-main {
  padding-bottom: 4rem;
}

.lafv-hero {
  padding: clamp(2.25rem, 6vw, 3.75rem) 0 1.75rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}

.lafv-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0.35rem 0 1rem;
  color: var(--navy);
}

.lafv-hero h1 i {
  font-style: italic;
  color: var(--gold);
}

.lafv-hero .hero-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--gold);
  background: var(--white);
  padding: 0.35rem 0.85rem;
  max-width: 40rem;
}

.search-shell svg {
  flex: 0 0 auto;
  color: var(--gold);
  opacity: 0.85;
}

.search-shell input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.85rem 0.25rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
}

.search-shell input::placeholder {
  color: var(--ink-muted);
}

.kbd-hint {
  display: none;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--rule);
  padding: 0.25rem 0.45rem;
}
@media (min-width: 720px) {
  .kbd-hint { display: inline-block; }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0.75rem;
  align-items: center;
}

.filters select {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--ink-soft);
  min-width: 9rem;
}

.filters select:focus {
  outline: 1px solid var(--navy);
  outline-offset: 1px;
}

.chip-btn {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: none;
}

.chip-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
  text-decoration: none;
}

.chip-btn.active {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--parchment);
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0.5rem 0 1.25rem;
}

.stats-row strong {
  color: var(--navy);
  font-weight: 600;
}

.table-wrap {
  border: 1px solid var(--gold);
  background: var(--white);
  overflow: auto;
  max-height: min(70vh, 820px);
}

table.funds {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

table.funds thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--parchment);
}

table.funds th {
  text-align: left;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

table.funds th:hover,
table.funds th.sorted {
  color: var(--gold);
}

table.funds td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink);
}

table.funds tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

table.funds tbody tr:hover,
table.funds tbody tr.active {
  background: var(--off-white);
}

.name-cell {
  font-weight: 500;
  max-width: 22rem;
  color: var(--navy);
}

.name-cell .umb {
  display: block;
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.isin {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.num {
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.num.pos { color: #2a6b4f; }
.num.neg { color: #9b3b2e; }
.num.na { color: var(--ink-muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--ink-soft);
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.badge.active {
  color: var(--navy);
  border-color: rgba(35, 57, 129, 0.35);
  background: rgba(35, 57, 129, 0.05);
}

.badge.liq {
  color: #8a5a2b;
  border-color: rgba(198, 159, 115, 0.55);
  background: var(--parchment);
}

.badge.sub {
  color: var(--muted);
  border-color: var(--rule);
}

.badge.dead {
  color: var(--ink-muted);
}

.badge.pack {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--parchment);
  text-transform: uppercase;
}

.badge.pack::before { display: none; }

.badge.holdings {
  color: var(--navy);
  border-color: rgba(35, 57, 129, 0.35);
  background: rgba(35, 57, 129, 0.06);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.badge.holdings::before { display: none; }

table.funds td.name-cell {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 12rem;
}
.name-stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.name-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.15rem;
}
.expand-btn {
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  margin-top: 0.05rem;
  border: 1.5px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(35, 57, 129, 0.06);
}
.expand-btn:hover {
  border-color: var(--navy);
  background: rgba(35, 57, 129, 0.08);
}
.expand-btn:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.expand-btn.muted {
  border-color: rgba(35, 57, 129, 0.22);
  color: rgba(35, 57, 129, 0.28);
  background: transparent;
  cursor: default;
  box-shadow: none;
}
.chevron-icon {
  display: block;
  transition: transform 0.18s ease;
  transform: rotate(0deg);
}
.chevron-icon.open {
  transform: rotate(180deg);
}
table.funds tbody tr.has-holdings {
  cursor: pointer;
}
table.funds tbody tr.has-holdings:hover td {
  background: rgba(35, 57, 129, 0.03);
}
table.funds tbody tr.no-holdings.row-hint td.name-cell {
  box-shadow: inset 3px 0 0 rgba(35, 57, 129, 0.35);
}

.actions-cell {
  text-align: right;
  white-space: nowrap;
}
.btn-view-more {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--navy);
  background: var(--parchment);
  border: 1px solid rgba(35, 57, 129, 0.28);
  padding: 0.28rem 0.55rem;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.2;
}
a.btn-view-more:hover,
button.btn-view-more:hover {
  border-color: var(--navy);
  background: rgba(35, 57, 129, 0.06);
}
table.funds tbody tr.has-holdings.expanded {
  background: rgba(35, 57, 129, 0.03);
}
table.funds tbody tr.holdings-row td {
  background: var(--parchment);
  border-bottom: 1px solid var(--rule);
  padding: 0.75rem 0.85rem 1rem;
  cursor: default;
}
table.funds tbody tr.holdings-row:hover td {
  background: var(--parchment);
}
.holdings-block { max-width: 52rem; }
.holdings-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  margin-bottom: 0.65rem;
}
.holdings-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table.holdings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  background: var(--white);
}
table.holdings-table th,
table.holdings-table td {
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
table.holdings-table th {
  color: var(--ink-muted);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
table.holdings-table td.num,
table.holdings-table th:nth-child(1),
table.holdings-table th:nth-child(3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.holdings-note {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.holdings-row-actions {
  margin-top: 0.65rem;
  font-size: 0.85rem;
}
.holdings-panel { margin: 0 0 1.25rem; }
.holdings-panel h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  table.funds th:nth-child(6),
  table.funds td:nth-child(6),
  table.funds th:nth-child(3),
  table.funds td:nth-child(3) {
    display: none;
  }
  .btn-view-more { font-size: 0.68rem; padding: 0.25rem 0.45rem; }
  table.funds td.name-cell { min-width: 9rem; }
}


.badge.tok-yes {
  background: rgba(46, 125, 80, 0.12);
  color: #1b5e40;
  border: 1px solid rgba(46, 125, 80, 0.28);
}
.badge.tok-yes::before { background: #2e7d50; }

.badge.tok-no {
  background: rgba(35, 57, 129, 0.05);
  color: var(--ink-soft, #6b7280);
  border: 1px solid rgba(35, 57, 129, 0.1);
  font-weight: 450;
}
.badge.tok-no::before { background: #b0b7c3; }

.badge.tok-planned {
  background: rgba(198, 159, 115, 0.16);
  color: #8a6230;
  border: 1px solid rgba(198, 159, 115, 0.45);
}
.badge.tok-planned::before { background: #c69f73; }


.empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--ink-soft);
}

/* Fund detail */
.fund-view { padding-top: 0.5rem; }

.sticky-fund {
  position: sticky;
  top: 4.5rem;
  z-index: 5;
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.35rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gold);
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  color: var(--ink-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.crumb a {
  color: var(--ink-muted);
  text-decoration: none;
}

.crumb a:hover { color: var(--navy); }

.fund-title {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  color: var(--navy);
}

.fund-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  align-items: center;
}

.meta-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.meta-pill b {
  color: var(--navy);
  font-weight: 600;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
}
@media (max-width: 880px) {
  .detail-grid { grid-template-columns: 1fr; }
}

.panel {
  border: 1px solid var(--gold);
  background: var(--white);
  padding: 1.35rem 1.5rem;
}

.panel h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--navy);
}

.kv {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.5rem 0.85rem;
  font-size: 0.9rem;
}

.kv dt { color: var(--ink-muted); }
.kv dd { margin: 0; color: var(--ink); word-break: break-word; }

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 32rem;
  overflow: auto;
}

.doc-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 0.85rem;
  align-items: start;
  padding: 0.7rem 0.75rem;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}

.doc-item:hover,
.doc-item.active {
  background: var(--parchment);
  border-color: var(--rule);
}

.doc-item .fn {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--navy);
}

.doc-item .meta {
  color: var(--ink-muted);
  font-size: 0.75rem;
  margin-top: 0.2rem;
}

.doc-item .open-tag {
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 0.15rem;
}

/* Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 80;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(34rem, 100vw);
  height: 100vh;
  background: var(--white);
  border-left: 1px solid var(--gold);
  box-shadow: -12px 0 40px rgba(17, 17, 17, 0.08);
  z-index: 90;
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--rule);
  background: var(--parchment);
}

.drawer-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--navy);
  line-height: 1.25;
}

.drawer-head .sub {
  color: var(--ink-muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.4rem;
}

.icon-btn {
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--navy);
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 1rem;
}

.icon-btn:hover {
  border-color: var(--navy);
}

.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 0;
  background: var(--white);
}

.drawer-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--white);
}

.drawer-foot {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  background: var(--off-white);
}

/* Pack */
.pack-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  margin: 1rem 0 1.75rem;
  align-items: end;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 800px) {
  .pack-hero { grid-template-columns: 1fr; }
}

.pack-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0.35rem 0 0.75rem;
  color: var(--navy);
}

.pack-hero p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 36rem;
}

.pack-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.stat {
  border: 1px solid var(--gold);
  padding: 1rem 1.1rem;
  background: var(--off-white);
}

.stat .n {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--navy);
  line-height: 1;
}

.stat .l {
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.45rem;
}

.sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.85rem;
  margin: 0.5rem 0 0.25rem;
}

.sc-tile {
  display: block;
  border: 1px solid var(--rule);
  padding: 1rem 1.1rem;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sc-tile:hover {
  border-color: var(--gold);
  background: var(--parchment);
  text-decoration: none;
}

.sc-tile .isin { display: block; margin-bottom: 0.4rem; }
.sc-tile .nm {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--navy);
}
.sc-tile .row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.digest-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.digest-table th,
.digest-table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.digest-table th {
  color: var(--navy);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--parchment);
}

.digest-table tr { cursor: pointer; }
.digest-table tr:hover { background: var(--off-white); }

.site-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 42rem;
}

.site-note p { margin: 0 0 0.65rem; }

.loading {
  padding: 4rem 1.5rem;
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.local-badge {
  display: none !important;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 100;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  background: var(--navy);
  color: var(--white);
}

/* Doc standalone (digests) */
body.doc-page {
  background: var(--bg);
}

.doc-top {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold);
}

.doc-top .back {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.doc-top .back:hover { color: var(--navy); }

.doc-top h1 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0.5rem 0 0;
  color: var(--navy);
}

.doc-body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 4rem;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.prose h1 { font-size: 1.6rem; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose p { color: var(--ink); }
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--parchment);
  padding: 0.05rem 0.35rem;
}
.prose pre {
  background: var(--off-white);
  border: 1px solid var(--rule);
  padding: 0.85rem 1rem;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  white-space: pre-wrap;
}
.prose ul { padding-left: 1.2em; color: var(--ink); }
.md-table-wrap { overflow: auto; margin: 1em 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.prose th, .prose td {
  border: 1px solid var(--rule);
  padding: 0.4rem 0.55rem;
  text-align: left;
}
.prose th {
  background: var(--parchment);
  color: var(--navy);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}


/* —— Equanimity global section rules are too heavy for app chrome —— */
.lafv-main section {
  padding: 0;
}
.lafv-main section.lafv-hero {
  padding: clamp(2.25rem, 6vw, 3.75rem) 0 1.75rem;
}
.lafv-main section.panel {
  padding: 1.35rem 1.5rem;
}
.lafv-main section.panel + section.panel {
  margin-top: 0;
}

/* Ensure content sits above heritage wash */
.lafv-app .top,
.lafv-app .lafv-main,
.lafv-app footer,
.lafv-app .drawer,
.lafv-app .local-badge {
  position: relative;
  z-index: 1;
}
.lafv-app .top { z-index: 210; position: sticky; top: 0; }
.lafv-app .drawer-backdrop { z-index: 80; }
.lafv-app .drawer { z-index: 90; }
.lafv-app .local-badge { z-index: 100; }

/* Make loading / empty states unmistakable */
.loading, .empty { min-height: 8rem; }


/* —— Disclaimer gate (LAFV-style) —— */
body.disclaimer-locked {
  overflow: hidden;
}

.disclaimer-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(248, 245, 238, 0.97), rgba(248, 245, 238, 0.92)),
    var(--parchment, #f8f5ee);
  padding: clamp(1.25rem, 4vw, 2.5rem) 1rem 3rem;
}

.disclaimer-panel {
  max-width: 42rem;
  margin: 0 auto;
  background: var(--white, #fff);
  border: 1px solid var(--gold, #c69f73);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.disclaimer-panel > .small-caps {
  margin: 0 0 0.35rem;
  color: var(--gold, #c69f73);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.disclaimer-panel > h1 {
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 500;
  color: var(--navy, #233981);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.disclaimer-lead {
  color: var(--ink-soft, #4a4a4a);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.disclaimer-lead a {
  color: var(--navy, #233981);
}

.disclaimer-scroll {
  max-height: min(42vh, 22rem);
  overflow: auto;
  border: 1px solid var(--rule, #e5dfd3);
  background: var(--parchment, #f8f5ee);
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink, #222);
}

.disclaimer-scroll h2 {
  font-family: var(--serif, Georgia, serif);
  font-size: 1.05rem;
  color: var(--navy, #233981);
  margin: 0 0 0.65rem;
  font-weight: 500;
}

.disclaimer-scroll h3 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy, #233981);
  margin: 1rem 0 0.4rem;
}

.disclaimer-scroll p {
  margin: 0 0 0.65rem;
}

.disclaimer-source {
  font-size: 0.8rem;
  color: var(--ink-soft, #4a4a4a);
}

.disclaimer-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy, #233981);
}

.disclaimer-form select {
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--rule, #e5dfd3);
  background: var(--white, #fff);
  color: var(--ink, #222);
}

.investor-type {
  border: 1px solid var(--rule, #e5dfd3);
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
}

.investor-type legend {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy, #233981);
  padding: 0 0.35rem;
}

.investor-type .radio {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--ink, #222);
  cursor: pointer;
}

.investor-type input {
  accent-color: var(--navy, #233981);
}

.disclaimer-confirm {
  font-size: 0.88rem;
  color: var(--ink-soft, #4a4a4a);
  margin: 0 0 1.1rem;
  line-height: 1.45;
}

.disclaimer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.disclaimer-actions .btn,
.disclaimer-declined .btn {
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--navy, #233981);
  background: var(--navy, #233981);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

.disclaimer-actions .btn:hover,
.disclaimer-declined .btn:hover {
  background: #1a2d66;
}

.disclaimer-actions .btn-outline {
  background: transparent;
  color: var(--navy, #233981);
}

.disclaimer-actions .btn-outline:hover {
  background: var(--parchment, #f8f5ee);
}

.disclaimer-declined {
  margin-top: 1.25rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--gold, #c69f73);
  background: var(--parchment, #f8f5ee);
}

.disclaimer-declined h2 {
  font-family: var(--serif, Georgia, serif);
  font-size: 1.15rem;
  color: var(--navy, #233981);
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.disclaimer-declined p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft, #4a4a4a);
}

.lafv-app .disclaimer-gate {
  z-index: 200;
}


/* Header stays reachable during disclaimer (navigate back to equanimity.li) */
body.disclaimer-locked .top {
  z-index: 210;
}
body.disclaimer-locked .disclaimer-gate {
  top: 4.5rem; /* below sticky header */
  height: auto;
  bottom: 0;
}
body.disclaimer-locked .contact-gold,
body.disclaimer-locked footer.wrap,
body.disclaimer-locked .lafv-research-note {
  display: none;
}
/* Active section marker (Fund data) — same weight/size as apex nav */
.lafv-app nav a.nav-active {
  color: var(--navy);
  box-shadow: inset 0 -2px 0 var(--gold);
}


/* Document list — new-tab links (no drawer) */
.doc-hint {
  color: var(--ink-soft, #6b7280);
  font-size: 0.88rem;
  margin: 0 0 0.85rem;
  line-height: 1.45;
}
a.doc-item {
  text-decoration: none;
}
.doc-list > li {
  position: relative;
}
a.doc-secondary {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--gold, #c69f73);
  margin: 0 0.75rem 0.55rem 0.75rem;
  text-decoration: none;
}
a.doc-secondary:hover { text-decoration: underline; }
.doc-row.muted {
  opacity: 0.65;
  padding: 0.7rem 0.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 0.85rem;
  border-bottom: 1px solid var(--rule);
}
.doc-open-cell a {
  color: var(--navy, #233981);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.doc-open-cell a:hover { color: var(--gold, #c69f73); }

/* Digest pages + SPA doc view */
.doc-top.sticky-doc {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper, #fff);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule, #e5e2d9);
}
.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-items: center;
  margin-bottom: 0.65rem;
}
.doc-nav .doc-action {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy, #233981);
  text-decoration: none;
}
.doc-nav .doc-action:hover { color: var(--gold, #c69f73); }
.doc-nav .doc-action.muted { color: var(--ink-soft, #6b7280); font-weight: 400; }
.doc-extras { padding: 0 0.75rem 0.55rem; display: flex; gap: 0.85rem; flex-wrap: wrap; }
.digest-md {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--ink, #1a1a1a);
}
.digest-frame {
  width: 100%;
  min-height: 70vh;
  border: 1px solid var(--rule, #e5e2d9);
  border-radius: 8px;
  background: #fff;
}
.doc-actions-row .btn { margin: 0; }
.digest-panel { margin-top: 1rem; }


/* Subtle discovery for full-list exports */
.lafv-hero .hero-overview {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.lafv-hero .hero-overview a,
.site-note .overview-links a,
.lafv-research-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.lafv-hero .hero-overview a:hover,
.site-note .overview-links a:hover,
.lafv-research-note a:hover {
  color: var(--ink, #1a1a1a);
}
