:root {
  --md-primary-fg-color: #ffffff;
  --md-primary-bg-color: #1a1a2e;
  --md-accent-fg-color: #4b3ff5;
  --md-typeset-a-color: #4b3ff5;
  --hc-purple: #4b3ff5; --hc-purple-2: #7c4dff; --hc-ink: #1a1a2e; --hc-muted: #6b6b7b; --hc-line: #ececf3;
}
body { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
/* header: white, logo only, hairline */
.md-header { background: #fff; color: var(--hc-ink); box-shadow: 0 1px 0 var(--hc-line); }
.md-header__title { display: none; }
.md-header__button.md-logo { padding: .4rem .2rem; }
.md-header__button.md-logo img { height: 1.6rem; width: auto; }
.md-search__form { background: #f3f3f8; border-radius: 10px; }
.md-search__input { color: var(--hc-ink); }
.md-search__input::placeholder { color: var(--hc-muted); }
.md-search__icon svg { fill: var(--hc-muted); }
.md-header__option, .md-header__button { color: var(--hc-ink); }
/* content typography */
.md-typeset { font-size: .82rem; line-height: 1.65; color: var(--hc-ink); }
.md-typeset h1 { font-weight: 800; letter-spacing: -.02em; color: var(--hc-ink); }
.md-typeset .lead { font-size: 1.02rem; color: var(--hc-muted); margin: -.4rem 0 1.5rem; }
/* landing hero with search */
.hc-hero { text-align: center; padding: 3rem 1rem 2.6rem; margin: .2rem 0 1.6rem; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, #4b3ff5 0%, #7c4dff 60%, #9b6bff 100%); }
.hc-hero h1 { color: #fff; margin: 0 0 .35rem; font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; }
.hc-hero p { margin: 0 0 1.3rem; opacity: .92; font-size: 1rem; }
.hc-search { max-width: 560px; margin: 0 auto; display: flex; background: #fff; border-radius: 12px; padding: .3rem .3rem .3rem 1rem;
  box-shadow: 0 12px 30px rgba(30, 20, 90, .25); align-items: center; gap: .5rem; }
.hc-search svg { width: 20px; height: 20px; fill: var(--hc-muted); flex: none; }
.hc-search input { flex: 1; border: 0; outline: 0; font-size: 1rem; padding: .55rem 0; color: var(--hc-ink); background: transparent; font-family: inherit; }
.hc-search button { border: 0; background: var(--hc-purple); color: #fff; font-weight: 600; font-size: .85rem; padding: .6rem 1rem; border-radius: 9px; cursor: pointer; font-family: inherit; }
.hc-search button:hover { background: #3a2fd6; }
/* landing cards */
.md-typeset .grid.cards > ul > li, .hc-card { border: 1px solid var(--hc-line); border-radius: 14px; background: #fff; transition: transform .15s, box-shadow .15s, border-color .15s; }
.md-typeset .grid.cards > ul > li:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(75, 63, 245, .12); border-color: #c9c4ff; }
.md-typeset .grid.cards > ul > li > hr { display: none; }
.md-typeset .grid.cards > ul > li > p:first-child { font-weight: 700; font-size: .95rem; color: var(--hc-ink); margin-bottom: .35rem; }
.md-typeset .grid.cards > ul > li > p:first-child .twemoji, .md-typeset .grid.cards > ul > li > p:first-child svg { width: 1.4rem; height: 1.4rem; fill: var(--hc-purple); vertical-align: -.35rem; margin-right: .35rem; }
.md-typeset .grid.cards > ul > li > p:not(:first-child) { color: var(--hc-muted); font-size: .78rem; line-height: 1.45; }
.md-typeset .grid.cards > ul > li > p:last-child { margin-top: auto; padding-top: .6rem; font-size: .8rem; }
.md-typeset .grid.cards > ul > li > p:last-child a { color: var(--hc-purple); font-weight: 600; text-decoration: none; }
.md-typeset .grid.cards > ul > li > p:last-child a svg { fill: var(--hc-purple); width: 1rem; height: 1rem; vertical-align: -.2rem; margin-left: .2rem; transition: transform .15s; }
.md-typeset .grid.cards > ul > li:hover > p:last-child a svg { transform: translateX(3px); }
.md-typeset .grid.cards > ul > li { display: flex; flex-direction: column; cursor: pointer; }
/* collection lists */
.hc-list { display: flex; flex-direction: column; gap: .55rem; }
.hc-item { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1.05rem; border: 1px solid var(--hc-line); border-radius: 12px;
  text-decoration: none !important; color: var(--hc-ink) !important; transition: border-color .15s, background .15s, transform .15s; }
.hc-item:hover { border-color: #c9c4ff; background: #faf9ff; transform: translateX(2px); }
.hc-item-title { font-weight: 600; font-size: .9rem; }
.hc-item-desc { font-size: .76rem; color: var(--hc-muted); }
/* article body */
.hc-body { font-size: .84rem; line-height: 1.7; }
.hc-body h2 { font-size: 1.3rem; font-weight: 700; margin: 1.7rem 0 .6rem; letter-spacing: -.01em; }
.hc-body h3 { font-size: 1.06rem; font-weight: 700; margin: 1.3rem 0 .5rem; }
.hc-body p { margin: 0 0 .85rem; } .hc-body p:empty { display: none; }
.hc-body .intercom-container { margin: 1rem 0; }
.hc-body img { max-width: 100%; height: auto; border: 1px solid var(--hc-line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.07); }
.hc-body ul, .hc-body ol { margin: 0 0 .9rem 1.2rem; } .hc-body li { margin: .2rem 0; }
.hc-body table { border-collapse: collapse; width: 100%; margin: .8rem 0; font-size: .8rem; }
.hc-body th, .hc-body td { border: 1px solid var(--hc-line); padding: .45rem .6rem; text-align: left; } .hc-body th { background: #f7f7fb; }
.hc-body b, .hc-body strong { font-weight: 700; }
/* nav */
.md-nav__link--active, .md-nav__item .md-nav__link--active { color: var(--hc-purple); font-weight: 600; }
.md-footer { background: #1a1a2e; }
