:root {
  --navy: #495a30;
  --navy-2: #38472a;
  --gold: #efe9d4;
  --red: #495a30;
  --bg: #f7f7f2;
  --card: #ffffff;
  --text: #1b2433;
  --muted: #6b7587;
  --line: #e2e5d9;
  --gain: #12805c;
  --loss: #c0392b;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: var(--navy-2); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--gold);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
h1, h2, h3, .brand-text { font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; }
h1, h2 { font-weight: 700; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.6rem; letter-spacing: .02em; color: #fff; text-decoration: none; }
.brand img { height: 60px; width: 60px; border-radius: 10px; display: block; }
.brand span { color: var(--gold); font-weight: 500; }
nav a {
  color: #e6ebd9; text-decoration: none; margin-left: 22px; font-weight: 600;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
}
nav a:hover, nav a.active { color: #fff; border-bottom-color: var(--gold); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 44px 0 56px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(2.3rem, 5vw, 3.4rem); }
.hero p { margin: 0; max-width: 640px; color: #dfe6cf; font-size: 1.05rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: -32px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: 0 2px 8px rgba(40,55,25,.08);
}
.card .label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.card .value { font-size: 1.6rem; font-weight: 800; margin-top: 2px; }
.gain { color: var(--gain); }
.loss { color: var(--loss); }

section.block { margin: 34px 0; }
h2 { margin: 0 0 12px; font-size: 1.7rem; color: var(--navy); }

/* Allocation bar */
.alloc-bar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: var(--line); }
.alloc-bar div { height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: .88rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* Controls */
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--text);
  padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: .88rem; font-weight: 600;
}
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.spacer { flex: 1; }
.toggle { font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 11px 14px; text-align: right; white-space: nowrap; }
th:first-child, td:first-child, th:nth-child(2), td:nth-child(2) { text-align: left; }
thead th {
  background: #f0f2e8; color: var(--muted); font-size: .76rem; text-transform: uppercase;
  letter-spacing: .06em; cursor: pointer; user-select: none;
}
tbody tr { border-top: 1px solid var(--line); }
tbody tr:hover { background: #fbfbf6; }
tr.group td {
  background: #e8edde; font-weight: 700; color: var(--navy); text-align: left; cursor: default;
}
tr.group td.num { text-align: right; }
.ticker { font-weight: 800; }
.name { color: var(--muted); font-size: .85rem; }
.note { color: var(--muted); font-size: .82rem; margin-top: 10px; }
.banner {
  background: #f7f3dc; border: 1px solid #f0dc95; color: #6b5300;
  padding: 10px 14px; border-radius: 10px; margin: 22px 0 0; font-size: .9rem;
}
.error { background: #fdecea; border-color: #f4b8b1; color: #7a1f16; }

/* About */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.person { text-align: center; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 6px auto 12px;
  background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.6rem; font-family: Georgia, serif;
  object-fit: cover;
}
.person h3 { margin: 0; font-size: 1.3rem; }
.person .role { color: var(--red); font-weight: 700; font-size: .85rem; }
.person p { color: var(--muted); font-size: .88rem; margin: 6px 0 0; }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } nav a { margin-left: 14px; } }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }

footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 24px 0 40px; color: var(--muted); font-size: .85rem; }
