:root {
  --wz-bg: #ffffff;
  --wz-text: #171717;
  --wz-muted: #666b72;
  --wz-link: #4f789c;
  --wz-link-hover: #315a7b;
  --wz-rule: #d8dadd;
  --wz-code-bg: #f5f6f7;
  --wz-nav: #30343a;
  --wz-nav-text: #e7e9ec;
  --wz-max: 800px;
  --wz-home: 960px;
  --wz-wide: 1240px;
  --wz-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    "Segoe UI", sans-serif;
  --wz-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

body.quarto-dark {
  --wz-bg: #191b1f;
  --wz-text: #e7e9ec;
  --wz-muted: #a7adb5;
  --wz-link: #82add0;
  --wz-link-hover: #afd0ea;
  --wz-rule: #3b3f45;
  --wz-code-bg: #23262b;
  --wz-nav: #272a2f;
  --wz-nav-text: #e7e9ec;
  color-scheme: dark;
}

html:has(body.quarto-dark) {
  background: #191b1f;
}

html {
  background: var(--wz-bg);
  color: var(--wz-text);
  font-size: 17px;
}

body {
  margin: 0;
  background: var(--wz-bg);
  color: var(--wz-text);
  font-family: var(--wz-font);
  font-weight: 400;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--wz-link);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--wz-link-hover);
}

.navbar {
  min-height: 58px;
  padding: 0;
  background: var(--wz-nav) !important;
  border-bottom: 0;
  box-shadow: none;
}

.navbar > .container-fluid {
  width: min(calc(100% - 48px), var(--wz-wide));
  margin-inline: auto;
  padding: 0;
}

.navbar-brand {
  color: #ffffff !important;
  font-family: var(--wz-font);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.navbar-logo {
  width: 32px;
  height: 32px;
  max-height: 32px;
  margin-right: 0.55rem;
  object-fit: contain;
}

.navbar-nav .nav-link {
  margin-inline: 0.15rem;
  padding: 1rem 0.75rem 0.88rem !important;
  color: var(--wz-nav-text) !important;
  font-family: var(--wz-font);
  font-size: 0.94rem;
  font-weight: 450;
  border-bottom: 3px solid transparent;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible,
.navbar-nav .nav-link.active {
  color: #ffffff !important;
  border-bottom-color: #6fa8dc;
}

.navbar-toggler {
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
}

#quarto-search,
.quarto-navbar-tools {
  display: flex;
  align-items: center;
}

#quarto-search .aa-DetachedSearchButton,
.quarto-navigation-tool {
  min-width: 38px;
  min-height: 38px;
  margin: 0 0.08rem;
  padding: 0.45rem !important;
  color: var(--wz-nav-text) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 4px;
  box-shadow: none !important;
}

#quarto-search .aa-DetachedSearchButton:hover,
#quarto-search .aa-DetachedSearchButton:focus-visible,
.quarto-navigation-tool:hover,
.quarto-navigation-tool:focus-visible {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

#quarto-search .aa-DetachedSearchButtonIcon,
#quarto-search .aa-DetachedSearchButtonIcon svg,
.quarto-navigation-tool .bi {
  color: currentColor;
}

#quarto-content {
  min-height: calc(100vh - 150px);
}

main.content {
  width: min(calc(100% - 40px), var(--wz-max));
  margin-inline: auto;
  padding-top: 3.75rem;
  padding-bottom: 6rem;
}

.page-layout-full main.content {
  width: min(calc(100% - 40px), var(--wz-home));
  max-width: var(--wz-home);
  padding-top: 4.75rem !important;
}

#title-block-header {
  margin: 0 0 2.25rem;
}

#title-block-header .title {
  margin: 0;
  color: var(--wz-text);
  font-family: var(--wz-font);
  font-size: clamp(2.15rem, 4.2vw, 2.85rem);
  font-weight: 730;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.page-layout-full #title-block-header .title {
  font-size: clamp(2.4rem, 6vw, 3.35rem);
  text-align: center;
}

#title-block-header .description,
.home-intro {
  max-width: 720px;
  margin-top: 1.25rem;
  color: var(--wz-muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.page-layout-full #title-block-header .description {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

#title-block-header .quarto-title-meta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--wz-rule);
  color: var(--wz-muted);
  font-size: 0.86rem;
}

h2 {
  margin-top: 3rem;
  margin-bottom: 1.15rem;
  padding: 0 0 0.55rem;
  color: var(--wz-text);
  border-bottom: 1px solid var(--wz-rule);
  font-family: var(--wz-font);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

h3 {
  margin-top: 2.4rem;
  color: var(--wz-text);
  font-family: var(--wz-font);
  font-size: 1.18rem;
  font-weight: 700;
}

p,
li,
td,
th {
  font-family: var(--wz-font);
}

p {
  margin-top: 0;
  margin-bottom: 1.1rem;
}

hr {
  margin: 2.8rem 0;
  border: 0;
  border-top: 1px solid var(--wz-rule);
  opacity: 1;
}

#title-block-header + h2 {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--wz-rule);
  border-bottom: 1px solid var(--wz-rule);
}

table {
  width: 100%;
  margin: 1rem 0 2.25rem;
  border-collapse: collapse;
  border-top: 0;
  font-size: 0.98rem;
}

thead {
  border-bottom: 1px solid var(--wz-rule);
}

tbody tr {
  border-bottom: 1px solid var(--wz-rule);
}

th,
td {
  padding: 0.85rem 0.35rem;
  border: 0 !important;
  vertical-align: top;
}

th {
  color: var(--wz-text);
  font-size: 0.9rem;
  font-weight: 650;
}

th:first-child,
td:first-child {
  width: 138px;
  padding-left: 0;
  color: var(--wz-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

th:last-child,
td:last-child {
  padding-right: 0;
}

.quarto-listing-table {
  margin-top: 1.5rem;
}

.quarto-listing-table td,
.quarto-listing-table th {
  background: transparent !important;
}

.quarto-listing-table .listing-description {
  color: var(--wz-muted);
}

.works-list {
  margin: 0 0 3.25rem;
  border-top: 1px solid var(--wz-rule);
}

.work-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 28px;
  gap: 1.25rem;
  align-items: center;
  min-height: 112px;
  padding: 1.1rem 0.35rem;
  color: var(--wz-text);
  border-bottom: 1px solid var(--wz-rule);
  text-decoration: none;
}

a.work-item:hover,
a.work-item:focus-visible {
  color: var(--wz-text);
  background: color-mix(in srgb, var(--wz-link) 6%, transparent);
}

.work-logo {
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
}

.work-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-logo-website {
  border-radius: 0;
}

.work-logo-website img {
  object-fit: contain;
}

.work-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.2rem;
}

.work-copy strong {
  font-size: 1.08rem;
  font-weight: 700;
}

.work-copy small {
  color: var(--wz-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.work-arrow {
  color: var(--wz-link);
  font-size: 1.5rem;
  line-height: 1;
}

.strategy-live {
  margin: 3.6rem 0 4rem;
}

.strategy-live-heading,
.strategy-history-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  align-items: baseline;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--wz-rule);
}

.strategy-live-heading h2,
.strategy-history-intro h2 {
  margin: 0;
  padding: 0;
  border: 0;
}

.strategy-live-heading p,
.strategy-history-intro p {
  margin: 0;
  color: #d33c32;
  font-size: 0.88rem;
  font-weight: 650;
}

.strategy-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.7rem 0 2.1rem;
  border-top: 1px solid var(--wz-rule);
  border-bottom: 1px solid var(--wz-rule);
}

.strategy-summary > div {
  min-width: 0;
  padding: 1.05rem 1.2rem 1.1rem;
  border-right: 1px solid var(--wz-rule);
}

.strategy-summary > div:first-child {
  padding-left: 0;
}

.strategy-summary > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.strategy-summary span,
.strategy-history-record summary small {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--wz-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.strategy-summary strong {
  display: block;
  overflow: hidden;
  color: var(--wz-text);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.is-up {
  color: #d33c32 !important;
}

.is-down {
  color: #16845b !important;
}

.strategy-chart-wrap {
  margin-bottom: 2.2rem;
}

.strategy-chart-label {
  margin-bottom: 0.65rem;
  color: var(--wz-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.strategy-chart {
  position: relative;
  min-height: 300px;
}

.strategy-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.strategy-chart-grid line {
  stroke: var(--wz-rule);
  stroke-width: 1;
}

.strategy-chart-grid text,
.strategy-chart-labels text {
  fill: var(--wz-muted);
  font-family: var(--wz-font);
  font-size: 12px;
}

.strategy-chart-area {
  fill: color-mix(in srgb, var(--wz-link) 12%, transparent);
}

.strategy-chart-line {
  fill: none;
  stroke: var(--wz-link);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.strategy-chart-segment {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.strategy-chart-segment.is-positive {
  stroke: #d33c32;
}

.strategy-chart-segment.is-negative {
  stroke: #16845b;
}

.strategy-chart-points circle {
  fill: var(--wz-bg);
  stroke: var(--wz-link);
  stroke-width: 3;
  cursor: crosshair;
}

.strategy-chart-points circle:hover,
.strategy-chart-points circle:focus {
  fill: var(--wz-link);
  outline: none;
}

.strategy-tooltip {
  position: absolute;
  z-index: 2;
  min-width: 148px;
  padding: 0.55rem 0.7rem;
  color: var(--wz-text);
  background: var(--wz-bg);
  border: 1px solid var(--wz-rule);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
}

.strategy-tooltip span,
.strategy-tooltip strong {
  display: block;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

.strategy-tooltip span {
  color: var(--wz-muted);
}

.strategy-holdings-title {
  margin: 0 0 0.35rem;
}

.strategy-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.strategy-table {
  min-width: 710px;
  margin-top: 0;
  font-size: 0.88rem;
}

.strategy-table th,
.strategy-table td {
  padding: 0.72rem 0.5rem;
  text-align: right;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.strategy-table th:first-child,
.strategy-table td:first-child {
  width: auto;
  min-width: 160px;
  color: var(--wz-text);
  text-align: left;
}

.strategy-table td:first-child strong,
.strategy-table td:first-child small {
  display: block;
}

.strategy-mobile-holdings {
  display: none;
}

.strategy-table td:first-child small {
  color: var(--wz-muted);
  font-size: 0.72rem;
}

.strategy-status,
.strategy-empty {
  color: var(--wz-muted);
  font-size: 0.84rem;
}

.strategy-history-link {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.15rem;
  padding: 0.55rem 0.85rem;
  color: var(--wz-link);
  border: 1px solid var(--wz-link);
  text-decoration: none;
}

.strategy-history-link:hover,
.strategy-history-link:focus-visible {
  color: var(--wz-bg);
  background: var(--wz-link);
}

.strategy-risk-note {
  margin: 1.2rem 0 0;
  color: #d33c32;
  font-size: 0.92rem;
  font-weight: 700;
}

.strategy-history {
  margin-bottom: 3rem;
}

.strategy-history-list {
  margin-top: 1.7rem;
}

.strategy-history-record {
  border-bottom: 1px solid var(--wz-rule);
}

.strategy-history-record:first-child {
  border-top: 1px solid var(--wz-rule);
}

.strategy-history-record summary {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  cursor: pointer;
  list-style-position: outside;
}

.strategy-history-record summary::marker {
  color: var(--wz-link);
}

.strategy-history-record summary strong {
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.strategy-history-date {
  color: var(--wz-text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.strategy-history-record[open] .strategy-table-wrap {
  padding: 0.3rem 0 0.8rem;
}

.contact-list {
  margin-bottom: 1rem;
  border-top: 1px solid var(--wz-rule);
}

.contact-list p {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--wz-rule);
}

.contact-list span {
  color: var(--wz-muted);
}

.contact-list strong {
  font-weight: 500;
}

blockquote {
  margin: 1.6rem 0;
  padding: 0.1rem 0 0.1rem 1.15rem;
  color: var(--wz-text);
  border-left: 3px solid var(--wz-link);
  font-size: 1.02rem;
}

code,
pre,
.sourceCode {
  font-family: var(--wz-mono);
}

code:not(.sourceCode) {
  padding: 0.12em 0.3em;
  background: var(--wz-code-bg);
  border-radius: 3px;
  color: var(--wz-text);
  font-size: 0.88em;
}

div.sourceCode {
  margin: 1.5rem 0;
  background: var(--wz-code-bg);
  border: 1px solid #e2e5e8;
  border-radius: 0;
  max-width: 100%;
  overflow-x: auto;
}

pre.sourceCode {
  padding: 1rem 1.1rem;
  font-size: 0.84rem;
  line-height: 1.65;
}

.callout {
  margin: 1.65rem 0;
  background: transparent !important;
  border: 0 !important;
  border-left: 3px solid var(--wz-link) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.callout.callout-style-default > div.callout-header,
.callout.callout-style-default > .callout-body,
.callout .callout-body-container {
  background: transparent !important;
}

.callout .callout-header {
  background: transparent;
  font-family: var(--wz-font);
  font-weight: 650;
}

.callout .callout-body {
  font-size: 0.96rem;
}

.page-columns .sidebar.margin-sidebar {
  font-family: var(--wz-font);
  font-size: 0.8rem;
}

#TOC {
  border-left: 1px solid var(--wz-rule);
  padding-left: 1.15rem;
  line-height: 1.45;
}

#TOC .toc-title,
.sidebar-title {
  color: var(--wz-text);
  font-size: 0.88rem;
  font-weight: 650;
}

#TOC a {
  color: var(--wz-muted);
  text-decoration: none;
}

#TOC a:hover,
#TOC a:focus-visible {
  color: var(--wz-link);
}

#TOC .active {
  color: var(--wz-link) !important;
  font-weight: 600;
}

.nav-page {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--wz-rule);
}

.nav-page a {
  color: var(--wz-link);
}

.quarto-title .quarto-categories {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.65rem;
}

.quarto-title .quarto-category {
  margin: 0;
  padding: 0.12rem 0.5rem !important;
  color: var(--wz-link) !important;
  background: transparent !important;
  border: 1px solid #b8ccdc !important;
  border-radius: 3px !important;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
}

mjx-container[jax="CHTML"][display="true"] {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.nav-footer {
  min-height: 76px;
  background: var(--wz-bg);
  border-top: 1px solid var(--wz-rule);
  color: var(--wz-muted);
  font-family: var(--wz-font);
  font-size: 0.8rem;
}

.nav-footer-center {
  display: none;
}

@media (max-width: 991px) {
  .navbar-collapse {
    padding: 0.5rem 0 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .navbar-nav .nav-link {
    padding: 0.65rem 0 !important;
    border-bottom: 0;
  }

  main.content {
    padding-top: 3.25rem;
  }

  .page-layout-full main.content {
    padding-top: 3.75rem !important;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .navbar > .container-fluid {
    width: min(calc(100% - 32px), var(--wz-wide));
  }

  main.content,
  .page-layout-full main.content {
    width: calc(100% - 32px);
    padding-top: 3.1rem !important;
    padding-bottom: 4.5rem;
  }

  #title-block-header .title {
    font-size: 2.35rem;
  }

  .page-layout-full #title-block-header .title {
    font-size: clamp(2rem, 9.5vw, 2.5rem);
    letter-spacing: -0.035em;
    white-space: normal;
  }

  .work-item {
    grid-template-columns: 60px minmax(0, 1fr) 22px;
    gap: 0.9rem;
    min-height: 94px;
    padding-block: 0.9rem;
  }

  .work-logo {
    width: 54px;
    height: 54px;
    border-radius: 12px;
  }

  .work-logo-website {
    border-radius: 0;
  }

  .strategy-live-heading,
  .strategy-history-intro {
    display: block;
  }

  .strategy-live-heading p,
  .strategy-history-intro p {
    margin-top: 0.35rem;
  }

  .strategy-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-summary > div {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--wz-rule);
  }

  .strategy-summary > div:nth-child(2) {
    padding-right: 0;
    border-right: 0;
  }

  .strategy-summary > div:nth-child(3) {
    padding-left: 0;
    border-bottom: 0;
  }

  .strategy-summary > div:nth-child(4) {
    border-bottom: 0;
  }

  .strategy-chart {
    min-height: 0;
    margin-inline: -0.35rem;
  }

  #strategy-total {
    font-size: 0.9rem;
    letter-spacing: -0.02em;
  }

  #strategy-date {
    font-size: 0.92rem;
  }

  .strategy-chart-grid text,
  .strategy-chart-labels text {
    font-size: 15px;
  }

  .strategy-chart-line,
  .strategy-chart-segment {
    stroke-width: 4;
  }

  .strategy-chart-points circle {
    r: 7px;
    stroke-width: 4;
  }

  .strategy-chart-wrap {
    margin-bottom: 1.85rem;
  }

  .strategy-table-wrap {
    display: none;
  }

  .strategy-mobile-holdings {
    display: block;
    margin-bottom: 0.9rem;
    border-top: 1px solid var(--wz-rule);
  }

  .strategy-position-card {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--wz-rule);
  }

  .strategy-position-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.7rem;
    align-items: center;
  }

  .strategy-position-name {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.35;
  }

  .strategy-position-name strong {
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .strategy-position-name small {
    color: var(--wz-muted);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
  }

  .strategy-position-price,
  .strategy-position-change {
    font-size: 0.98rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .strategy-position-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin-top: 0.5rem;
    color: var(--wz-muted);
    font-size: 0.76rem;
    line-height: 1.5;
  }

  .strategy-position-meta strong {
    color: var(--wz-text);
    font-weight: 550;
    font-variant-numeric: tabular-nums;
  }

  .strategy-history-link {
    display: flex;
    min-height: 44px;
    justify-content: center;
    margin-top: 0.9rem;
  }

  .strategy-risk-note {
    text-align: center;
  }

  .strategy-history-record summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 0.8rem;
    min-height: 54px;
    padding: 0.85rem 0.1rem;
  }

  .strategy-history-record summary > span:first-child {
    grid-column: 1 / -1;
  }

  .strategy-history-record summary > span:last-child {
    grid-column: 1 / -1;
  }

  .strategy-history-record[open] .strategy-mobile-holdings {
    margin-bottom: 0;
    padding-left: 0.75rem;
  }

  #title-block-header .description,
  .home-intro {
    font-size: 1.05rem;
  }

  h2 {
    margin-top: 2.7rem;
    font-size: 1.4rem;
  }

  th:first-child,
  td:first-child {
    width: 106px;
  }

  .nav-footer {
    padding-inline: 1rem;
  }

  .nav-footer-left,
  .nav-footer-right {
    width: 100%;
    text-align: left;
  }

  pre.sourceCode code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  mjx-container[jax="CHTML"][display="true"] {
    max-width: calc(100vw - 32px);
    font-size: 0.88em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
