@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  font-family: Helvetica, Arial, sans-serif;
  color: #222;
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #315dd6; outline-offset: 3px; }

.demo-banner {
  background: #eef3ff;
  color: #234bb4;
  padding: 11px 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.site-header {
  min-height: 124px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 12px max(28px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}

.home-link {
  justify-self: start;
  color: #1b1b1b;
  text-decoration: none;
  font-size: 16px;
}

.home-link:hover { text-decoration: underline; text-underline-offset: 7px; }
.brand { display: block; line-height: 0; }
.brand img { display: block; width: 212px; height: auto; }

.header-label {
  justify-self: end;
  color: #1b1b1b;
  font-size: 16px;
}

.layout { max-width: 1280px; margin: 0 auto; padding: 70px 28px 24px; }
.intro { max-width: 760px; margin: 0 auto 72px; text-align: center; }
.eyebrow { margin: 0 0 16px; color: #315dd6; font-size: 12px; font-weight: 700; letter-spacing: .17em; }
.intro h1, .detail-header h2, .empty-detail h2, .section-heading h2, .panel-heading h3 {
  font-family: "League Spartan", Helvetica, Arial, sans-serif;
  font-weight: 400;
}
.intro h1 { color: #808080; font-size: clamp(37px, 4.4vw, 58px); line-height: 1.05; margin: 0 0 22px; }
.intro > p:last-child { color: #777; font-size: 18px; line-height: 1.6; margin: 0; }

.section-heading, .panel-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.section-heading h2 { color: #555; font-size: 27px; margin: 0 0 18px; }
.section-heading span, .panel-heading span { color: #999; font-size: 13px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.category-card {
  min-height: 170px;
  text-align: left;
  border: 1px solid #dedede;
  border-radius: 4px;
  background: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: border-color .15s, box-shadow .15s;
}
.category-card:hover { border-color: #315dd6; box-shadow: 0 4px 18px rgba(49, 93, 214, .08); }
.category-card.selected { border: 2px solid #315dd6; padding: 19px; }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-top strong { color: #525252; font-family: "League Spartan", Helvetica, Arial, sans-serif; font-size: 27px; font-weight: 500; }
.card-arrow { color: #315dd6; font-size: 19px; }
.card-description { color: #777; font-size: 13px; line-height: 1.5; }
.card-note { color: #315dd6; font-size: 12px; font-weight: 700; margin-top: auto; }

.workspace { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 18px; margin-top: 46px; align-items: start; }
.directory, .detail { background: #fff; border: 1px solid #dedede; border-radius: 4px; }
.directory { padding: 22px; min-height: 500px; }
.basket-list { display: flex; flex-direction: column; gap: 8px; }
.basket-button { text-align: left; border: 1px solid #e1e1e1; background: #fff; border-radius: 3px; padding: 15px; display: flex; flex-direction: column; gap: 7px; color: #333; }
.basket-button.selected { border-color: #315dd6; background: #f5f7ff; }
.basket-button strong { font-size: 14px; }
.basket-button span, .empty-directory { color: #888; font-size: 12px; line-height: 1.5; }
.empty-directory { border: 1px dashed #d5d5d5; padding: 18px; }
.detail { padding: 32px; min-height: 500px; }
.detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.detail-header h2 { color: #696969; font-size: 38px; margin: 0 0 10px; }
.detail-header p:not(.eyebrow) { margin: 0; color: #777; font-size: 14px; line-height: 1.5; }
.date-chip { white-space: nowrap; border: 1px solid #dedede; padding: 9px 12px; color: #666; font-size: 12px; }

.mode-tabs { display: inline-flex; border: 1px solid #d5d5d5; padding: 3px; margin: 30px 0 24px; }
.mode-tabs button { border: 0; background: transparent; padding: 10px 18px; color: #777; font-size: 13px; font-weight: 700; }
.mode-tabs button.selected { background: #315dd6; color: #fff; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.metric { border: 1px solid #e0e0e0; padding: 17px; }
.metric span { display: block; color: #888; font-size: 12px; margin-bottom: 10px; }
.metric strong { color: #303030; font-family: "League Spartan", Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; }
.metric strong.positive, td.positive { color: #315dd6; }
.metric strong.negative, td.negative { color: #444; }
.chart-panel, .holdings { border-top: 1px solid #e5e5e5; padding-top: 24px; margin-top: 24px; }
.panel-heading h3 { color: #666; font-size: 22px; margin: 0 0 16px; }
.chart { display: block; width: 100%; height: auto; max-height: 285px; }
.legend { display: flex; gap: 22px; justify-content: center; color: #777; font-size: 12px; }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 20px; height: 0; border-top: 3px solid #315dd6; }
.legend .legend-dashed { border-color: #a7a7a7; border-top-style: dashed; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 550px; text-align: left; }
th, td { padding: 13px 10px; border-bottom: 1px solid #ebebeb; font-size: 13px; }
th { color: #888; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
th:last-child, td:last-child { text-align: right; }
td strong { font-size: 14px; }
.method-note { color: #8b8b8b; font-size: 11px; line-height: 1.6; margin: 22px 0 0; }
.data-pending { border-left: 3px solid #315dd6; background: #f3f6fc; color: #44516a; padding: 16px 18px; font-size: 13px; line-height: 1.6; }
.empty-detail { min-height: 420px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #777; padding: 30px; }
.empty-detail h2 { color: #6b6b6b; font-size: 30px; margin: 0 0 10px; }
.empty-detail p { max-width: 440px; line-height: 1.6; }
.empty-icon { color: #315dd6; font-size: 46px; margin-bottom: 15px; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 40px 0; color: #999; font-size: 11px; }

@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .workspace { grid-template-columns: 1fr; }
  .directory { min-height: 0; }
  .basket-list { display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .site-header { min-height: 78px; grid-template-columns: auto 1fr; padding: 9px 17px; }
  .home-link { display: none; }
  .brand img { width: 145px; }
  .header-label { font-size: 12px; }
  .layout { padding: 45px 16px 18px; }
  .intro { margin-bottom: 44px; }
  .intro > p:last-child { font-size: 16px; }
  .category-grid { gap: 9px; }
  .category-card { min-height: 166px; padding: 14px; }
  .category-card.selected { padding: 13px; }
  .card-top strong { font-size: 22px; }
  .card-description { font-size: 12px; }
  .workspace { margin-top: 32px; }
  .directory, .detail { padding: 19px; }
  .detail-header { display: block; }
  .detail-header h2 { font-size: 32px; }
  .date-chip { display: inline-block; margin-top: 18px; }
  .metrics { gap: 7px; }
  .metric { padding: 10px; }
  .metric span { font-size: 10px; }
  .metric strong { font-size: 21px; }
  .panel-heading { display: block; }
  .panel-heading span { display: block; margin-bottom: 8px; }
  .basket-list { display: block; }
  .basket-button { width: 100%; margin-bottom: 7px; }
  footer { display: block; line-height: 2; }
}
