/* Box Wilson Investor Portal — brand styles
   Palette + type mirror boxwilson.com: navy #212e40, gold #b27503,
   Open Sans (body) + Playfair Display (headings). */

:root {
  --navy: #212e40;
  --gold: #b27503;
  --blue: #2ea3f2;
  --ink: #2a2f36;
  --muted: #6b7280;
  --line: #e6e8eb;
  --bg: #f6f7f9;
  --card: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(33, 46, 64, .08), 0 6px 20px rgba(33, 46, 64, .05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .35em;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- top bar ---------- */
.topbar { background: var(--navy); border-bottom: 3px solid var(--gold); }
.topbar-inner {
  max-width: 1040px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; }
.logo { height: 34px; width: auto; display: block; filter: brightness(0) invert(1); }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a {
  color: #cfd6e0; font-weight: 600; font-size: .94rem; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: #fff; text-decoration: none; }
.nav a.active { color: #fff; border-bottom-color: var(--gold); }
.account { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.who { color: #cfd6e0; font-size: .9rem; }
.logout { color: #cfd6e0; font-size: .9rem; }
.logout:hover { color: #fff; text-decoration: none; }

/* ---------- layout ---------- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 36px 24px 64px; min-height: 60vh; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: 2rem; }
.page-head .sub { color: var(--muted); margin: 0; }

/* ---------- login / hero ---------- */
.hero { display: flex; justify-content: center; padding: 24px 0; }
.hero-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 44px 40px; max-width: 460px; width: 100%; text-align: center;
  border-top: 4px solid var(--gold);
}
.hero-logo { height: 46px; margin-bottom: 18px; }
.hero h1 { font-size: 1.8rem; }
.lede { color: var(--muted); margin: 6px 0 26px; }
.btn-ms {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--navy); color: #fff; font-weight: 600;
  padding: 13px 26px; border-radius: 8px; font-size: 1rem;
}
.btn-ms:hover { background: #2c3b52; text-decoration: none; }
.fineprint { color: var(--muted); font-size: .82rem; margin-top: 24px; line-height: 1.5; }

/* ---------- document groups ---------- */
.doc-group {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 22px;
}
.doc-group h2 {
  font-size: 1.15rem; margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc { border-bottom: 1px solid var(--line); }
.doc:last-child { border-bottom: none; }
.doc-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 6px;
  color: var(--ink); border-radius: 6px;
}
.doc-link:hover { background: #f3f5f8; text-decoration: none; }
.doc-icon { color: var(--gold); font-size: 1.05rem; }
.doc-chevron { color: var(--muted); font-size: 1.3rem; line-height: 1; margin-left: 4px; }
.doc-name { flex: 1; }
.doc-period {
  color: var(--muted); font-size: .82rem; font-weight: 600;
  background: #eef1f5; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
}

/* breadcrumb on folder views */
.crumbs { font-size: .9rem; margin-bottom: 6px; }
.crumbs a { color: var(--blue); }
.crumbs .sep { color: var(--line); margin: 0 7px; }
.crumbs .current { color: var(--muted); }

/* ---------- performance cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; border-left: 4px solid var(--gold);
}
.card-label { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.card-value { font-family: "Playfair Display", Georgia, serif; color: var(--navy); font-size: 1.7rem; font-weight: 700; margin-top: 6px; }

.positions { width: 100%; border-collapse: collapse; }
.positions th, .positions td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); }
.positions th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.positions .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- states ---------- */
.alert {
  background: #fdf3e7; border: 1px solid #f0d9b5; color: #8a5a12;
  padding: 12px 16px; border-radius: 8px; margin-bottom: 20px;
}
.empty {
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 40px; text-align: center; color: var(--ink);
}
.muted { color: var(--muted); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: #fff; }
.foot-inner {
  max-width: 1040px; margin: 0 auto; padding: 20px 24px;
  color: var(--muted); font-size: .85rem; display: flex; gap: 10px; flex-wrap: wrap;
}
.foot .sep { color: var(--line); }

@media (max-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .topbar-inner { gap: 16px; flex-wrap: wrap; }
  .account { margin-left: 0; }
}
