/* Dimensions Help Center — dimensions.fm/help (generated by website/scripts/assemble-help.mjs) */

@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("alte-haas-grotesk.otf") format("opentype");
  font-display: swap;
  font-weight: 400 700;
}

:root {
  --hc-bg: #ffffff;
  --hc-surface: #ffffff;
  --hc-soft: #f6f6f4;
  --hc-soft-2: #efefec;
  --hc-ink: #0b0b0b;
  --hc-ink-2: #2b2b2b;
  --hc-muted: #6e6e6a;
  --hc-faint: #9a9a95;
  --hc-line: #e9e9e5;
  --hc-line-2: #dcdcd7;
  --hc-focus: #2f6bff;
  --hc-link: #0b0b0b;
  --hc-tip: #e9f6ee;
  --hc-tip-ink: #16653a;
  --hc-note: #eef2fb;
  --hc-note-ink: #2a4a8f;
  --hc-warn: #fdf3e2;
  --hc-warn-ink: #8a5300;
  --hc-plan: #f3effd;
  --hc-plan-ink: #5a3bb3;
  --hc-shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 8px 24px -12px rgba(10, 10, 10, 0.12);
  --hc-shadow-lg: 0 24px 80px -24px rgba(10, 10, 10, 0.35), 0 2px 8px rgba(10, 10, 10, 0.06);
  --hc-radius: 16px;
  --hc-radius-sm: 10px;
  --hc-font: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hc-display: "Alte Haas Grotesk", "Geist", ui-sans-serif, system-ui, sans-serif;
  --hc-header-h: 64px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --hc-bg: #0b0b0c;
    --hc-surface: #121214;
    --hc-soft: #17171a;
    --hc-soft-2: #1f1f23;
    --hc-ink: #f4f4f2;
    --hc-ink-2: #d9d9d6;
    --hc-muted: #a0a09b;
    --hc-faint: #75756f;
    --hc-line: #242428;
    --hc-line-2: #303035;
    --hc-link: #f4f4f2;
    --hc-tip: #102a1b;
    --hc-tip-ink: #8fdcab;
    --hc-note: #141d33;
    --hc-note-ink: #a9c1ff;
    --hc-warn: #2c2110;
    --hc-warn-ink: #f2c472;
    --hc-plan: #221a38;
    --hc-plan-ink: #c9b6ff;
    --hc-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --hc-shadow-lg: 0 24px 80px -24px rgba(0, 0, 0, 0.8);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hc-header-h) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body.hc {
  margin: 0;
  background: var(--hc-bg);
  color: var(--hc-ink);
  font-family: var(--hc-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.hc a {
  color: inherit;
}

.hc img,
.hc video {
  max-width: 100%;
  display: block;
}

.hc button {
  font: inherit;
  color: inherit;
}

.hc :focus-visible {
  outline: 2px solid var(--hc-focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.hc-icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.hc kbd {
  font-family: var(--hc-font);
  font-size: 0.75em;
  font-weight: 500;
  line-height: 1;
  padding: 0.25em 0.45em;
  border-radius: 6px;
  border: 1px solid var(--hc-line-2);
  border-bottom-width: 2px;
  background: var(--hc-surface);
  color: var(--hc-muted);
  white-space: nowrap;
}

.hc-skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--hc-ink);
  color: var(--hc-bg) !important;
  padding: 8px 14px;
  border-radius: 8px;
}

.hc-skip:focus {
  left: 8px;
}

.hc-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .hc-wrap {
    padding: 0 16px;
  }
}

/* ------------------------------------------------------------ header */

.hc-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--hc-bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.hc-header.is-scrolled,
.hc:not(.hc--home) .hc-header {
  border-bottom-color: var(--hc-line);
}

.hc-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--hc-header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.hc-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  white-space: nowrap;
}

.hc-logo__mark {
  width: 26px;
  height: 22px;
  fill: currentColor;
}

.hc-logo__word {
  font-family: var(--hc-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hc-logo__divider {
  width: 1px;
  height: 18px;
  background: var(--hc-line-2);
}

.hc-logo__help {
  font-size: 15px;
  font-weight: 500;
  color: var(--hc-muted);
}

.hc-header__search {
  flex: 0 1 340px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 8px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--hc-line);
  background: var(--hc-soft);
  color: var(--hc-muted);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hc-header__search:hover {
  border-color: var(--hc-line-2);
  background: var(--hc-surface);
}

.hc-header__search span {
  flex: 1;
  text-align: left;
}

.hc-header__spacer {
  margin-left: auto;
}

.hc-header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
}

.hc-header__nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--hc-ink-2);
  transition: background 0.15s ease;
}

.hc-header__nav a:hover {
  background: var(--hc-soft);
}

.hc-header__nav .hc-header__app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--hc-ink);
  color: var(--hc-bg);
  margin-left: 6px;
  padding: 9px 16px;
}

.hc-header__nav .hc-header__app:hover {
  background: var(--hc-ink-2);
}

.hc-header__menu {
  display: none;
  border: 0;
  background: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hc-header__menu .hc-icon {
  width: 22px;
  height: 22px;
}

.hc-drawer {
  border-top: 1px solid var(--hc-line);
  padding: 8px 16px 16px;
  display: grid;
}

.hc-drawer[hidden] {
  display: none;
}

.hc-drawer a {
  padding: 12px 4px;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--hc-line);
}

@media (max-width: 900px) {
  .hc-header__nav {
    display: none;
  }

  .hc-header__menu {
    display: inline-flex;
  }

  .hc-header__search {
    flex: 1;
  }

  .hc-header__kbd {
    display: none;
  }
}

@media (max-width: 640px) {
  .hc-header__inner {
    padding: 0 12px 0 16px;
    gap: 10px;
  }

  .hc-logo__word,
  .hc-logo__divider {
    display: none;
  }

  .hc-header__search span {
    font-size: 14px;
  }
}

/* ------------------------------------------------------------ shared */

.hc-eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--hc-muted);
}

.hc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--hc-line-2);
  background: var(--hc-surface);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.hc-btn:hover {
  background: var(--hc-soft);
}

.hc-btn:active {
  transform: scale(0.98);
}

.hc-btn--primary {
  background: var(--hc-ink);
  border-color: var(--hc-ink);
  color: var(--hc-bg) !important;
}

.hc-btn--primary:hover {
  background: var(--hc-ink-2);
}

.hc-btn--lg {
  height: 50px;
  padding: 0 24px;
  font-size: 15px;
}

.hc-btn.is-picked {
  background: var(--hc-ink);
  color: var(--hc-bg);
  border-color: var(--hc-ink);
}

.hc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--hc-line);
  background: var(--hc-surface);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hc-chip:hover {
  border-color: var(--hc-line-2);
  background: var(--hc-soft);
}

.hc-chip[aria-pressed="true"] {
  background: var(--hc-ink);
  color: var(--hc-bg);
  border-color: var(--hc-ink);
}

.hc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--hc-soft);
  color: var(--hc-ink-2);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.hc-badge .hc-icon {
  width: 13px;
  height: 13px;
}

.hc-badge--plan {
  background: var(--hc-plan);
  color: var(--hc-plan-ink);
}

.hc-caticon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--hc-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hc-caticon .hc-icon {
  width: 22px;
  height: 22px;
}

.hc-caticon--img {
  background: none;
}

.hc-caticon--img img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.hc-caticon--lg {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.hc-caticon--lg .hc-icon {
  width: 30px;
  height: 30px;
}

.hc-caticon--lg.hc-caticon--img img {
  width: 64px;
  height: 64px;
}

.hc-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--hc-muted);
  margin-bottom: 20px;
}

.hc-crumbs a {
  text-decoration: none;
}

.hc-crumbs a:hover {
  color: var(--hc-ink);
  text-decoration: underline;
}

.hc-crumbs .hc-icon {
  width: 14px;
  height: 14px;
  color: var(--hc-faint);
}

/* ------------------------------------------------------------ home */

.hc-hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
}

.hc-hero__glow {
  position: absolute;
  inset: -40% -10% auto;
  height: 560px;
  background:
    radial-gradient(40% 50% at 22% 40%, rgba(255, 170, 120, 0.22), transparent 70%),
    radial-gradient(38% 55% at 78% 30%, rgba(120, 150, 255, 0.2), transparent 70%),
    radial-gradient(30% 40% at 50% 75%, rgba(180, 120, 255, 0.14), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hc-hero__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hc-hero__title {
  margin: 0 0 32px;
  font-family: var(--hc-display);
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hc-hero__search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 18px 0 22px;
  border-radius: 999px;
  background: var(--hc-surface);
  border: 1px solid var(--hc-line-2);
  box-shadow: var(--hc-shadow);
  text-align: left;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.hc-hero__search:focus-within {
  border-color: var(--hc-ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hc-ink) 8%, transparent), var(--hc-shadow);
}

.hc-hero__search > .hc-icon {
  width: 22px;
  height: 22px;
  color: var(--hc-muted);
}

.hc-hero__search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 17px;
  color: var(--hc-ink);
}

.hc-hero__search input::placeholder {
  color: var(--hc-faint);
}

.hc-hero__search input::-webkit-search-cancel-button {
  display: none;
}

.hc-hero__kbd {
  font-size: 13px !important;
}

.hc-hero__results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: min(60vh, 460px);
  overflow-y: auto;
  border-radius: 20px;
  background: var(--hc-surface);
  border: 1px solid var(--hc-line);
  box-shadow: var(--hc-shadow-lg);
  padding: 8px;
  z-index: 20;
}

.hc-hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--hc-muted);
}

.hc-band {
  padding: 56px 0;
}

.hc-band--last {
  padding-bottom: 96px;
}

.hc-band__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hc-band__head h2 {
  margin: 0;
  font-family: var(--hc-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hc-band__head p {
  margin: 0;
  color: var(--hc-muted);
  font-size: 15px;
}

.hc-start__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.hc-start__list a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 20px 20px 52px;
  border-radius: var(--hc-radius);
  background: var(--hc-soft);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hc-start__list a:hover {
  background: var(--hc-soft-2);
  transform: translateY(-2px);
}

.hc-start__n {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--hc-ink);
  color: var(--hc-bg);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.hc-start__title {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.hc-start__summary {
  font-size: 14px;
  color: var(--hc-muted);
  line-height: 1.45;
}

.hc-start__go {
  position: absolute;
  left: 20px;
  bottom: 18px;
  color: var(--hc-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.hc-start__list a:hover .hc-start__go {
  transform: translateX(4px);
  color: var(--hc-ink);
}

@media (max-width: 960px) {
  .hc-start__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .hc-start__list {
    grid-template-columns: 1fr;
  }
}

.hc-group + .hc-group {
  margin-top: 36px;
}

.hc-group__name {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--hc-muted);
  letter-spacing: 0.02em;
}

.hc-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 960px) {
  .hc-cats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hc-cats {
    grid-template-columns: 1fr;
  }
}

.hc-cat {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--hc-radius);
  border: 1px solid var(--hc-line);
  background: var(--hc-surface);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hc-cat:hover {
  border-color: var(--hc-line-2);
  box-shadow: var(--hc-shadow);
  transform: translateY(-2px);
}

.hc-cat__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-bottom: 18px;
}

.hc-cat__title {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.hc-cat__desc {
  font-size: 14px;
  color: var(--hc-muted);
  line-height: 1.45;
}

.hc-cat__count {
  position: absolute;
  left: 80px;
  bottom: 16px;
  font-size: 12.5px;
  color: var(--hc-faint);
}

.hc-watch__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
  scrollbar-width: thin;
}

@media (min-width: 1100px) {
  .hc-watch__rail {
    grid-auto-columns: calc((100% - 48px - 48px) / 4);
  }
}

.hc-watch__card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.hc-watch__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--hc-soft);
  border: 1px solid var(--hc-line);
  margin-bottom: 8px;
}

.hc-watch__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.hc-watch__card:hover video {
  transform: scale(1.02);
}

.hc-watch__play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: opacity 0.2s ease;
}

.hc-watch__play .hc-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.hc-watch__card.is-playing .hc-watch__play {
  opacity: 0;
}

.hc-watch__title {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.hc-watch__cat {
  font-size: 13px;
  color: var(--hc-muted);
}

.hc-popular {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
}

@media (max-width: 720px) {
  .hc-popular {
    grid-template-columns: 1fr;
  }
}

.hc-popular__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--hc-line);
  text-decoration: none;
}

.hc-popular__item > .hc-icon {
  margin-top: 3px;
  color: var(--hc-faint);
}

.hc-popular__item > span {
  display: flex;
  flex-direction: column;
}

.hc-popular__title {
  font-weight: 500;
  line-height: 1.35;
}

.hc-popular__item:hover .hc-popular__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hc-popular__cat {
  font-size: 13px;
  color: var(--hc-muted);
}

.hc-contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 36px 40px;
  border-radius: 24px;
  background: var(--hc-ink);
  color: var(--hc-bg);
}

.hc-contact-strip h2 {
  margin: 0 0 6px;
  font-family: var(--hc-display);
  font-size: 30px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hc-contact-strip p {
  margin: 0;
  max-width: 460px;
  opacity: 0.72;
  font-size: 15px;
}

.hc-contact-strip__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hc-contact-strip .hc-btn {
  background: transparent;
  color: var(--hc-bg);
  border-color: color-mix(in srgb, var(--hc-bg) 28%, transparent);
}

.hc-contact-strip .hc-btn:hover {
  background: color-mix(in srgb, var(--hc-bg) 10%, transparent);
}

.hc-contact-strip .hc-btn--primary {
  background: var(--hc-bg);
  color: var(--hc-ink) !important;
  border-color: var(--hc-bg);
}

.hc-contact-strip .hc-btn--primary:hover {
  background: color-mix(in srgb, var(--hc-bg) 88%, transparent);
}

@media (max-width: 640px) {
  .hc-hero {
    padding: 56px 0 40px;
  }

  .hc-hero__inner {
    padding: 0 16px;
  }

  .hc-hero__search {
    height: 56px;
    padding: 0 14px 0 18px;
  }

  .hc-hero__search input {
    font-size: 16px;
  }

  .hc-hero__kbd {
    display: none;
  }

  .hc-band {
    padding: 40px 0;
  }

  .hc-contact-strip {
    padding: 28px 24px;
  }

  .hc-watch__rail {
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    grid-auto-columns: 82%;
  }
}

/* ------------------------------------------------------------ search results (shared) */

.hc-result {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
}

.hc-result[aria-selected="true"],
.hc-result:hover {
  background: var(--hc-soft);
}

.hc-result__icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--hc-soft-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hc-muted);
}

.hc-result__icon .hc-icon {
  width: 16px;
  height: 16px;
}

.hc-result__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.hc-result__title {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.35;
}

.hc-result__meta {
  font-size: 13px;
  color: var(--hc-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-result mark {
  background: none;
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--hc-ink) 30%, transparent);
  text-underline-offset: 3px;
}

.hc-result__go {
  margin-left: auto;
  align-self: center;
  color: var(--hc-faint);
  opacity: 0;
}

.hc-result[aria-selected="true"] .hc-result__go {
  opacity: 1;
}

.hc-results__label {
  padding: 10px 14px 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--hc-faint);
  letter-spacing: 0.02em;
}

.hc-results__empty {
  padding: 22px 16px;
  text-align: center;
  color: var(--hc-muted);
  font-size: 14px;
}

.hc-results__empty a {
  color: var(--hc-ink);
  font-weight: 500;
}

/* ------------------------------------------------------------ palette */

.hc-palette {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 16px 16px;
}

.hc-palette[hidden] {
  display: none;
}

.hc-palette__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.32);
  backdrop-filter: blur(3px);
  animation: hc-fade 0.15s ease;
}

.hc-palette__panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  border-radius: 20px;
  background: var(--hc-surface);
  box-shadow: var(--hc-shadow-lg);
  border: 1px solid var(--hc-line);
  overflow: hidden;
  animation: hc-pop 0.18s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.hc-palette__field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px 0 20px;
  height: 60px;
  border-bottom: 1px solid var(--hc-line);
}

.hc-palette__field > .hc-icon {
  width: 20px;
  height: 20px;
  color: var(--hc-muted);
}

.hc-palette__field input {
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 17px;
  color: var(--hc-ink);
  min-width: 0;
}

.hc-palette__field input::-webkit-search-cancel-button {
  display: none;
}

.hc-palette__esc {
  border: 1px solid var(--hc-line-2);
  background: var(--hc-soft);
  border-radius: 8px;
  font-size: 12px !important;
  padding: 4px 8px;
  color: var(--hc-muted) !important;
  cursor: pointer;
}

.hc-palette__results {
  max-height: min(56vh, 480px);
  overflow-y: auto;
  padding: 8px;
}

.hc-palette__foot {
  display: flex;
  gap: 18px;
  padding: 10px 18px;
  border-top: 1px solid var(--hc-line);
  font-size: 12px;
  color: var(--hc-faint);
}

.hc-palette__foot kbd {
  margin-right: 3px;
}

@media (max-width: 640px) {
  .hc-palette {
    padding: 0;
  }

  .hc-palette__panel {
    max-width: none;
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  .hc-palette__results {
    flex: 1;
    max-height: none;
  }

  .hc-palette__foot {
    display: none;
  }
}

@keyframes hc-fade {
  from {
    opacity: 0;
  }
}

@keyframes hc-pop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
  }
}

/* ------------------------------------------------------------ layout: topic & article */

.hc-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 56px;
  padding-top: 40px;
  padding-bottom: 72px;
}

.hc-layout--article {
  grid-template-columns: 248px minmax(0, 720px) 200px;
  justify-content: space-between;
  gap: 48px;
}

.hc-layout__side,
.hc-layout__toc {
  position: sticky;
  top: calc(var(--hc-header-h) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--hc-header-h) - 48px);
  overflow-y: auto;
  scrollbar-width: none;
}

.hc-layout__side::-webkit-scrollbar,
.hc-layout__toc::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1180px) {
  .hc-layout--article {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .hc-layout__toc {
    display: none;
  }
}

@media (max-width: 900px) {
  .hc-layout,
  .hc-layout--article {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 24px;
  }

  .hc-layout__side {
    display: none;
  }
}

.hc-topicnav {
  font-size: 14px;
}

.hc-topicnav__home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px 0;
  color: var(--hc-muted);
  text-decoration: none;
  font-weight: 500;
}

.hc-topicnav__home:hover {
  color: var(--hc-ink);
}

.hc-topicnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-topicnav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--hc-ink-2);
  line-height: 1.3;
}

.hc-topicnav > ul > li > a .hc-icon {
  width: 16px;
  height: 16px;
  color: var(--hc-faint);
}

.hc-topicnav > ul > li > a:hover {
  background: var(--hc-soft);
}

.hc-topicnav > ul > li.is-active > a {
  font-weight: 600;
  color: var(--hc-ink);
}

.hc-topicnav > ul > li.is-active > a .hc-icon {
  color: var(--hc-ink);
}

.hc-topicnav > ul > li > a[aria-current="page"] {
  background: var(--hc-soft);
}

.hc-topicnav__articles {
  margin: 4px 0 10px 18px !important;
  padding-left: 12px !important;
  border-left: 1px solid var(--hc-line);
}

.hc-topicnav__section {
  margin: 10px 0 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--hc-faint);
}

.hc-topicnav__articles a {
  display: block;
  padding: 5px 8px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--hc-muted);
  font-size: 13.5px;
  line-height: 1.35;
}

.hc-topicnav__articles a:hover {
  color: var(--hc-ink);
  background: var(--hc-soft);
}

.hc-topicnav__articles a[aria-current="page"] {
  color: var(--hc-ink);
  font-weight: 500;
  background: var(--hc-soft);
}

/* topic page */

.hc-topichead {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.hc-topichead h1 {
  margin: 0 0 6px;
  font-family: var(--hc-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hc-topichead p {
  margin: 0;
  font-size: 17px;
  color: var(--hc-muted);
  max-width: 560px;
}

.hc-topichead__count {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--hc-faint);
}

.hc-jump {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hc-jump a {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--hc-soft);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}

.hc-jump a:hover {
  background: var(--hc-soft-2);
}

.hc-topicsection {
  margin-top: 36px;
}

.hc-topicsection h2 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.hc-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hc-line);
}

.hc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 6px;
  border-bottom: 1px solid var(--hc-line);
  text-decoration: none;
  transition: background 0.15s ease;
}

.hc-row:hover {
  background: color-mix(in srgb, var(--hc-soft) 70%, transparent);
}

.hc-row__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.hc-row__title {
  font-weight: 500;
  line-height: 1.35;
}

.hc-row:hover .hc-row__title {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--hc-line-2);
}

.hc-row__summary {
  font-size: 14px;
  color: var(--hc-muted);
  line-height: 1.45;
}

.hc-row__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.hc-row__video {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--hc-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hc-muted);
}

.hc-row__video .hc-icon {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.hc-row__chev {
  color: var(--hc-faint);
  transition: transform 0.15s ease;
}

.hc-row:hover .hc-row__chev {
  transform: translateX(3px);
  color: var(--hc-ink);
}

@media (max-width: 640px) {
  .hc-row__meta .hc-badge {
    display: none;
  }
}

.hc-empty {
  color: var(--hc-muted);
}

/* ------------------------------------------------------------ article */

.hc-article__head h1 {
  margin: 0 0 12px;
  font-family: var(--hc-display);
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}

.hc-article__lede {
  margin: 0 0 18px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--hc-muted);
  text-wrap: pretty;
}

.hc-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--hc-line);
  font-size: 13px;
  color: var(--hc-muted);
}

.hc-article__time,
.hc-article__updated {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
}

.hc-article__time .hc-icon {
  width: 14px;
  height: 14px;
}

.hc-article__copy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--hc-muted);
  font-size: 13px;
  cursor: pointer;
}

.hc-article__copy:hover {
  background: var(--hc-soft);
  color: var(--hc-ink);
}

.hc-article__copy .hc-icon {
  width: 14px;
  height: 14px;
}

.hc-toc-mobile {
  display: none;
  margin: 16px 0 0;
  border: 1px solid var(--hc-line);
  border-radius: 12px;
  font-size: 14px;
}

.hc-toc-mobile summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.hc-toc-mobile summary::-webkit-details-marker {
  display: none;
}

.hc-toc-mobile ul {
  margin: 0;
  padding: 0 14px 12px 36px;
}

.hc-toc-mobile li {
  padding: 3px 0;
}

@media (max-width: 1180px) {
  .hc-toc-mobile {
    display: block;
  }
}

/* prose */

.hc-prose {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--hc-ink-2);
}

.hc-prose > :first-child {
  margin-top: 24px;
}

.hc-prose p {
  margin: 0 0 16px;
}

.hc-prose h2,
.hc-prose h3,
.hc-prose h4 {
  position: relative;
  color: var(--hc-ink);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.hc-prose h2 {
  margin: 44px 0 14px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.hc-prose h3 {
  margin: 32px 0 10px;
  font-size: 19px;
  font-weight: 600;
}

.hc-prose h4 {
  margin: 24px 0 8px;
  font-size: 16.5px;
  font-weight: 600;
}

.hc-anchor {
  position: absolute;
  left: -0.9em;
  padding-right: 0.3em;
  color: var(--hc-faint);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  font-weight: 400;
}

.hc-prose :is(h2, h3, h4):hover .hc-anchor,
.hc-anchor:focus {
  opacity: 1;
}

.hc-prose a {
  color: var(--hc-link);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--hc-ink) 28%, transparent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.15s ease;
}

.hc-prose a:hover {
  text-decoration-color: currentColor;
}

.hc-prose a.hc-anchor {
  text-decoration: none;
}

.hc-icon--ext {
  width: 0.8em;
  height: 0.8em;
  margin-left: 2px;
  vertical-align: -0.05em;
  opacity: 0.6;
}

.hc-prose strong {
  color: var(--hc-ink);
  font-weight: 600;
}

.hc-prose code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.12em 0.38em;
  border-radius: 6px;
  background: var(--hc-soft);
  border: 1px solid var(--hc-line);
  color: var(--hc-ink);
  word-break: break-word;
}

.hc-prose .hc-code {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--hc-soft);
  border: 1px solid var(--hc-line);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
}

.hc-prose .hc-code code {
  padding: 0;
  border: 0;
  background: none;
}

.hc-prose ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.hc-prose ul li {
  margin: 6px 0;
  padding-left: 4px;
}

.hc-prose ul li::marker {
  color: var(--hc-faint);
}

.hc-prose blockquote {
  margin: 0 0 18px;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--hc-line-2);
  color: var(--hc-muted);
}

.hc-prose hr {
  border: 0;
  border-top: 1px solid var(--hc-line);
  margin: 36px 0;
}

/* steps */

.hc-steps {
  list-style: none;
  counter-reset: hc-step;
  margin: 8px 0 24px;
  padding: 0;
}

.hc-steps > li {
  position: relative;
  counter-increment: hc-step;
  padding: 0 0 18px 48px;
  margin: 0;
}

.hc-steps > li::before {
  content: counter(hc-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--hc-ink);
  color: var(--hc-bg);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.hc-steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14.5px;
  top: 36px;
  bottom: 6px;
  width: 1px;
  background: var(--hc-line-2);
}

.hc-steps > li:last-child {
  padding-bottom: 4px;
}

.hc-step__body {
  padding-top: 3px;
}

.hc-step__body > p:first-child {
  margin: 0;
}

.hc-step__body > :not(:first-child) {
  margin-top: 10px;
}

.hc-step__body ul {
  margin-bottom: 0;
}

.hc-steps .hc-steps > li::before {
  background: var(--hc-soft-2);
  color: var(--hc-ink);
  width: 26px;
  height: 26px;
  font-size: 12.5px;
}

.hc-steps .hc-steps > li:not(:last-child)::after {
  left: 12.5px;
  top: 32px;
}

.hc-steps .hc-steps > li {
  padding-left: 40px;
}

/* callouts */

.hc-callout {
  display: flex;
  gap: 14px;
  margin: 20px 0 24px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--hc-note);
  color: var(--hc-ink-2);
  font-size: 15.5px;
  line-height: 1.6;
}

.hc-callout__icon {
  flex: none;
  color: var(--hc-note-ink);
  padding-top: 2px;
}

.hc-callout__icon .hc-icon {
  width: 19px;
  height: 19px;
}

.hc-callout__body {
  min-width: 0;
}

.hc-callout__title {
  margin: 0 0 2px !important;
  font-weight: 600;
  color: var(--hc-note-ink);
  font-size: 14.5px;
}

.hc-callout__body > :last-child {
  margin-bottom: 0;
}

.hc-callout__body p {
  margin-bottom: 8px;
}

.hc-callout--tip {
  background: var(--hc-tip);
}

.hc-callout--tip :is(.hc-callout__icon, .hc-callout__title) {
  color: var(--hc-tip-ink);
}

.hc-callout--warning {
  background: var(--hc-warn);
}

.hc-callout--warning :is(.hc-callout__icon, .hc-callout__title) {
  color: var(--hc-warn-ink);
}

.hc-callout--plan {
  background: var(--hc-plan);
}

.hc-callout--plan :is(.hc-callout__icon, .hc-callout__title) {
  color: var(--hc-plan-ink);
}

/* tabs */

.hc-tabs {
  margin: 20px 0 28px;
  border: 1px solid var(--hc-line);
  border-radius: 16px;
  overflow: hidden;
}

.hc-tabs__list {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: var(--hc-soft);
  border-bottom: 1px solid var(--hc-line);
}

.hc-tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-size: 14px !important;
  font-weight: 500;
  color: var(--hc-muted) !important;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.hc-tabs__tab .hc-icon {
  width: 15px;
  height: 15px;
}

.hc-tabs__tab:hover {
  color: var(--hc-ink) !important;
}

.hc-tabs__tab[aria-selected="true"] {
  background: var(--hc-surface);
  color: var(--hc-ink) !important;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.08), 0 0 0 1px var(--hc-line);
}

.hc-tabs__panel {
  padding: 22px 22px 8px;
}

.hc-tabs__panel > :first-child {
  margin-top: 0;
}

@media (max-width: 640px) {
  .hc-tabs__panel {
    padding: 18px 16px 4px;
  }
}

/* tables */

.hc-table {
  margin: 20px 0 26px;
  overflow-x: auto;
  border: 1px solid var(--hc-line);
  border-radius: 14px;
}

.hc-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.45;
}

.hc-table th,
.hc-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hc-line);
  vertical-align: top;
}

.hc-table th {
  background: var(--hc-soft);
  font-weight: 600;
  color: var(--hc-ink);
  white-space: nowrap;
}

.hc-table tr:last-child td {
  border-bottom: 0;
}

.hc-table td:first-child {
  color: var(--hc-ink);
  font-weight: 500;
}

/* media */

.hc-media {
  margin: 24px 0 30px;
}

.hc-media__frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--hc-soft);
  border: 1px solid var(--hc-line);
  box-shadow: var(--hc-shadow);
}

.hc-media__bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--hc-soft);
  border-bottom: 1px solid var(--hc-line);
}

.hc-media__bar i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--hc-line-2);
}

.hc-media__video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: var(--hc-surface);
  cursor: zoom-in;
}

.hc-media--phone .hc-media__frame {
  max-width: 340px;
  margin: 0 auto;
  border-radius: 34px;
  border: 8px solid #111;
  box-shadow: var(--hc-shadow-lg);
}

.hc-media--phone .hc-media__bar {
  display: none;
}

.hc-media--phone .hc-media__video {
  aspect-ratio: 390 / 780;
}

.hc-media__toggle,
.hc-media__expand {
  position: absolute;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: rgba(10, 10, 10, 0.68);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hc-media__toggle {
  right: 12px;
}

.hc-media__expand {
  right: 52px;
}

.hc-media__frame:hover :is(.hc-media__toggle, .hc-media__expand),
.hc-media__toggle:focus-visible,
.hc-media__expand:focus-visible,
.hc-media.is-paused .hc-media__toggle {
  opacity: 1;
}

.hc-media__toggle .hc-icon,
.hc-media__expand .hc-icon {
  width: 15px;
  height: 15px;
}

.hc-media__play {
  display: none;
  fill: currentColor;
}

.hc-media__pause {
  fill: currentColor;
}

.hc-media.is-paused .hc-media__play {
  display: block;
}

.hc-media.is-paused .hc-media__pause {
  display: none;
}

.hc-media figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--hc-muted);
  text-align: center;
}

@media (hover: none) {
  .hc-media__toggle,
  .hc-media__expand {
    opacity: 1;
  }
}

.hc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 8, 8, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  animation: hc-fade 0.15s ease;
}

.hc-lightbox[hidden] {
  display: none;
}

.hc-lightbox video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  background: #fff;
}

.hc-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* feedback, pager, related */

.hc-feedback {
  margin-top: 48px;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--hc-soft);
}

.hc-feedback__ask {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hc-feedback p {
  margin: 0;
  font-weight: 600;
}

.hc-feedback__btns {
  display: flex;
  gap: 8px;
}

.hc-feedback__btns .hc-btn {
  height: 38px;
}

.hc-feedback__no {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  justify-items: start;
}

.hc-feedback__reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hc-feedback__thanks {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px !important;
  color: var(--hc-tip-ink);
}

.hc-feedback.is-done .hc-feedback__ask .hc-feedback__btns {
  pointer-events: none;
}

.hc-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}

.hc-pager a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--hc-line);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hc-pager a:hover {
  border-color: var(--hc-line-2);
  background: var(--hc-soft);
}

.hc-pager span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--hc-muted);
}

.hc-pager strong {
  font-weight: 500;
  line-height: 1.35;
}

.hc-pager__next {
  text-align: right;
  align-items: flex-end;
}

@media (max-width: 560px) {
  .hc-pager {
    grid-template-columns: 1fr;
  }

  .hc-pager__next {
    text-align: left;
    align-items: flex-start;
  }
}

.hc-related {
  margin-top: 48px;
}

.hc-related h2 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* toc */

.hc-toc p,
.hc-toc__help p {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--hc-faint);
}

.hc-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--hc-line);
}

.hc-toc a {
  display: block;
  margin-left: -1px;
  padding: 5px 0 5px 14px;
  border-left: 1px solid transparent;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--hc-muted);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.hc-toc a:hover {
  color: var(--hc-ink);
}

.hc-toc a.is-active {
  color: var(--hc-ink);
  border-left-color: var(--hc-ink);
  font-weight: 500;
}

.hc-toc__help {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--hc-line);
}

.hc-toc__help a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}

.hc-toc__help a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------ contact */

.hc-contact {
  padding: 40px 0 96px;
}

.hc-contact__wrap {
  max-width: 820px;
}

.hc-contact__head h1 {
  margin: 0 0 10px;
  font-family: var(--hc-display);
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.hc-contact__head p {
  margin: 0 0 32px;
  font-size: 17px;
  color: var(--hc-muted);
  max-width: 560px;
}

.hc-contact__form {
  display: grid;
  gap: 28px;
}

.hc-contact__step {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.hc-contact__step legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hc-contact__n {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--hc-ink);
  color: var(--hc-bg);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hc-topicpicks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 720px) {
  .hc-topicpicks {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hc-topicpick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--hc-line);
  background: var(--hc-surface);
  font-size: 14px !important;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  line-height: 1.25;
}

.hc-topicpick .hc-icon {
  width: 17px;
  height: 17px;
  color: var(--hc-muted);
}

.hc-topicpick:hover {
  border-color: var(--hc-line-2);
}

.hc-topicpick[aria-pressed="true"] {
  border-color: var(--hc-ink);
  background: var(--hc-ink);
  color: var(--hc-bg) !important;
}

.hc-topicpick[aria-pressed="true"] .hc-icon {
  color: var(--hc-bg);
}

.hc-contact__suggest {
  padding: 18px 20px 8px;
  border-radius: 16px;
  background: var(--hc-soft);
  animation: hc-pop 0.2s ease;
}

.hc-contact__suggest-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 15px;
}

.hc-contact__suggest .hc-rows {
  border-top: 0;
}

.hc-contact__suggest .hc-row {
  border-bottom-color: var(--hc-line-2);
}

.hc-contact__suggest .hc-row:last-child {
  border-bottom: 0;
}

.hc-field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}

.hc-field em {
  font-style: normal;
  color: var(--hc-faint);
  font-weight: 400;
}

.hc-field input,
.hc-field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--hc-line-2);
  background: var(--hc-surface);
  color: var(--hc-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hc-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

.hc-field input:focus,
.hc-field textarea:focus {
  outline: 0;
  border-color: var(--hc-ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hc-ink) 8%, transparent);
}

.hc-field.is-invalid input,
.hc-field.is-invalid textarea {
  border-color: #d93a3a;
}

.hc-field__hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--hc-muted);
}

.hc-contact__submit {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hc-contact__status {
  margin: 0;
  font-size: 14px;
  color: var(--hc-muted);
}

.hc-contact__status.is-ok {
  color: var(--hc-tip-ink);
}

.hc-contact__alt {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--hc-line);
}

@media (max-width: 720px) {
  .hc-contact__alt {
    grid-template-columns: 1fr;
  }
}

.hc-altcard {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--hc-line);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hc-altcard:hover {
  border-color: var(--hc-line-2);
  background: var(--hc-soft);
}

.hc-altcard > .hc-icon {
  margin-top: 2px;
  width: 20px;
  height: 20px;
}

.hc-altcard > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  min-width: 0;
}

.hc-altcard > span > span {
  color: var(--hc-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------ search page */

.hc-searchpage {
  padding: 40px 0 96px;
}

.hc-searchpage__wrap {
  max-width: 820px;
}

.hc-searchpage__form {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--hc-line-2);
  background: var(--hc-surface);
  box-shadow: var(--hc-shadow);
}

.hc-searchpage__form:focus-within {
  border-color: var(--hc-ink);
}

.hc-searchpage__form .hc-icon {
  width: 20px;
  height: 20px;
  color: var(--hc-muted);
}

.hc-searchpage__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 17px;
  color: var(--hc-ink);
}

.hc-searchpage__count {
  margin: 22px 0 10px;
  color: var(--hc-muted);
  font-size: 14px;
}

.hc-searchpage__results mark {
  background: none;
  color: inherit;
  font-weight: 650;
}

.hc-searchpage__empty h2 {
  font-size: 20px;
  margin: 24px 0 6px;
}

.hc-searchpage__empty p {
  color: var(--hc-muted);
  margin: 0;
}

/* ------------------------------------------------------------ footer */

.hc-footer {
  border-top: 1px solid var(--hc-line);
  background: var(--hc-soft);
  font-size: 14px;
}

.hc-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 960px) {
  .hc-footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .hc-footer__brand {
    grid-column: 1 / -1;
  }
}

.hc-footer__brand p {
  margin: 14px 0 12px;
  color: var(--hc-muted);
  max-width: 280px;
  line-height: 1.5;
}

.hc-footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-decoration: none;
}

.hc-footer__mail:hover {
  text-decoration: underline;
}

.hc-footer__col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hc-footer__col p {
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--hc-ink);
}

.hc-footer__col a {
  color: var(--hc-muted);
  text-decoration: none;
}

.hc-footer__col a:hover {
  color: var(--hc-ink);
}

.hc-footer__base {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--hc-faint);
  border-top: 1px solid var(--hc-line);
}

.hc-footer__base a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hc-ink);
  font-weight: 500;
  text-decoration: none;
}

@media print {
  .hc-header,
  .hc-footer,
  .hc-layout__side,
  .hc-layout__toc,
  .hc-feedback,
  .hc-pager,
  .hc-related,
  .hc-band--last {
    display: none !important;
  }

  .hc-layout--article {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc *,
  .hc *::before,
  .hc *::after {
    animation: none !important;
    transition: none !important;
  }
}
