/* ==========================================================================
   Bitgold Help Center — theme layer
   Brand palette is taken from docs.bitgold.network so the two sites read as
   one family. Only presentation lives here; content structure stays Markdown.
   ========================================================================== */

:root {
  --hc-gold: #a9711a;
  --hc-gold-strong: #8a5a12;
  --hc-link: #8a5a12;
  --hc-link-hover: #6f4a0d;
  --hc-gold-soft: #f3e3c2;
  --hc-gold-wash: #fbf4e6;
  --hc-ink: #181a1e;
  --hc-ink-2: #23262d;
  --hc-surface: #f7f7f8;
  --hc-surface-2: #f1f2f3;
  --hc-line: #e3e3e7;
  --hc-text: #23252b;
  --hc-muted: #5c5f6a;
  --hc-radius: 14px;
  --hc-radius-sm: 9px;
  --hc-shadow: 0 1px 2px rgba(24, 26, 30, 0.04), 0 12px 32px rgba(24, 26, 30, 0.06);
  --hc-font-display: "Space Grotesk", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hc-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --md-primary-fg-color: #181a1e;
  --md-primary-fg-color--light: #23262d;
  --md-primary-fg-color--dark: #111316;
  --md-primary-bg-color: #ffffff;
  --md-accent-fg-color: var(--hc-gold);
  --md-typeset-a-color: var(--hc-gold);
  --md-code-font: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

[data-md-color-scheme="slate"] {
  --hc-gold: #f0c05a;
  --hc-gold-strong: #f7d98a;
  --hc-link: #f0c05a;
  --hc-link-hover: #f7d98a;
  --hc-gold-soft: #4a3a1c;
  --hc-gold-wash: #241d10;
  --hc-ink: #111316;
  --hc-ink-2: #181a1e;
  --hc-surface: #1e2026;
  --hc-surface-2: #23262d;
  --hc-line: #373943;
  --hc-text: #f1f2f3;
  --hc-muted: #c4c5cb;
  --hc-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 36px rgba(0, 0, 0, 0.28);

  --md-default-bg-color: #181a1e;
  --md-default-bg-color--light: #1e2026;
  --md-default-bg-color--lighter: #23262d;
  --md-default-bg-color--lightest: #292c34;
  --md-default-fg-color: #f1f2f3;
  --md-default-fg-color--light: #c4c5cb;
  --md-default-fg-color--lighter: #8c8f9b;
  --md-default-fg-color--lightest: #373943;
  --md-typeset-color: #e7e8ea;
  --md-code-bg-color: #111316;
  --md-code-fg-color: #e7e8ea;
  --md-typeset-a-color: var(--hc-gold);
  --md-accent-fg-color: var(--hc-gold);
}

[data-md-color-scheme="slate"] .md-header,
[data-md-color-scheme="slate"] .md-tabs {
  background-color: #111316;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

body {
  --md-text-font-family: var(--hc-font-body);
  --md-code-font-family: var(--md-code-font);
  --md-typeset-a-color: var(--hc-gold);
  font-family: var(--hc-font-body);
  color: var(--hc-text);
  background-color: var(--md-default-bg-color);
  -webkit-font-smoothing: antialiased;
}

[data-md-color-scheme="slate"] body {
  --md-typeset-a-color: var(--hc-gold);
}

.md-typeset {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--hc-text);
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  font-family: var(--hc-font-display);
  color: var(--md-default-fg-color);
  letter-spacing: -0.015em;
}

.md-typeset h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.55em;
}

.md-typeset h2 {
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 2rem 0 0.6em;
}

.md-typeset h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.8em 0 0.5em;
}

.md-typeset h4 {
  font-size: 0.85rem;
  font-weight: 600;
}

/* The sentence under an H1 is the page promise; make it read as a lede. */
.md-content__inner > h1 + p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--hc-muted);
  max-width: 62ch;
  margin-bottom: 1.6em;
}

.md-typeset a {
  color: var(--hc-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.md-typeset a:hover,
.md-typeset a:focus {
  color: var(--hc-link-hover);
  text-decoration: underline;
}

.md-typeset code {
  border-radius: 5px;
  padding: 0.12em 0.36em;
  font-size: 0.86em;
  font-weight: 600;
  color: #1a1c20 !important;
  background-color: #eef0f2 !important;
}

[data-md-color-scheme="slate"] .md-typeset code {
  background-color: #111316 !important;
  color: #f1f2f3 !important;
}

.md-typeset a code {
  color: inherit !important;
  background-color: transparent !important;
}

.md-typeset pre > code {
  padding: 1em 1.2em;
  line-height: 1.65;
}

.md-typeset .admonition,
.md-typeset details {
  border-radius: var(--hc-radius-sm);
  border-left-width: 3px;
  box-shadow: none;
  font-size: 0.74rem;
}

/* --------------------------------------------------------------------------
   Header, announcement, tabs
   -------------------------------------------------------------------------- */

.md-header {
  background-color: #181a1e;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.md-header[data-md-state="shadow"],
.md-header--shadow {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.md-header__title {
  font-family: var(--hc-font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.md-header__button.md-logo {
  margin: 0 0.35rem 0 0.2rem;
  padding: 0.28rem;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.7rem;
  width: 1.7rem;
  border-radius: 7px;
}

.md-tabs {
  background-color: #181a1e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
}

.md-tabs__link {
  font-family: var(--hc-font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.78;
  margin-top: 0;
  padding: 0.7rem 0;
}

.md-tabs__link--active,
.md-tabs__link:hover {
  color: #fff;
  opacity: 1;
}

.md-tabs__item .md-tabs__link--active {
  border-bottom: 2px solid var(--hc-gold);
}

.md-tabs__link--active {
  font-weight: 600;
}

/* Announcement bar (community `announce` block) */
.md-banner {
  background: #f0c05a;
}

.md-banner__inner.md-grid {
  max-width: none;
  margin: 0;
  padding: 0;
}

.hc-announce {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f0c05a;
  color: #181a1e;
  font-family: var(--hc-font-display);
  font-size: 0.68rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

.hc-announce a {
  color: #181a1e;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-weight: 600;
  white-space: nowrap;
}

.hc-announce a:hover {
  color: #000;
}

.hc-announce__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #181a1e;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.md-grid {
  max-width: 84rem;
}

.md-main__inner {
  margin-top: 1.1rem;
}

.md-content__inner {
  max-width: 40rem;
  margin-inline: auto;
  padding-bottom: 2.4rem;
}

.md-content__inner > h1 {
  margin-top: 0.2rem;
}

.md-sidebar {
  font-size: 0.7rem;
}

/* Material hard-codes 12.1rem for the mobile drawer offset; widening the
   sidebar must only happen at the desktop breakpoint or the closed drawer
   peeks in from the left and covers the article. */
@media screen and (min-width: 76.25em) {
  .md-sidebar--primary {
    width: 13.5rem;
  }

  .md-sidebar--secondary {
    width: 11rem;
  }
}

.md-nav {
  font-size: 0.7rem;
  line-height: 1.45;
}

.md-nav__title {
  font-family: var(--hc-font-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hc-muted);
  padding: 0 0.6rem 0.5rem;
}

.md-nav__link {
  margin-top: 0.15rem;
  padding: 0.18rem 0;
}

.md-nav__link--active,
.md-nav__link--active code {
  color: var(--hc-link) !important;
  font-weight: 600;
}

.md-nav--primary > .md-nav__list > .md-nav__item > .md-nav__link {
  font-family: var(--hc-font-display);
  font-weight: 600;
}

/* Section labels need to read as headings, not as another page link. */
.md-nav--primary > .md-nav__list > .md-nav__item--section > .md-nav__link {
  margin-top: 0.35rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--hc-line);
  color: var(--md-default-fg-color);
  font-family: var(--hc-font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.md-nav--primary .md-nav__item--nested:not(.md-nav__item--section) > .md-nav__link {
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  color: var(--md-default-fg-color);
  font-family: var(--hc-font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}


.md-nav--secondary {
  border-left: 1px solid var(--hc-line);
  padding-left: 0.75rem;
}

.md-nav--secondary .md-nav__title {
  display: block;
  padding: 0 0 0.45rem;
  font-family: var(--hc-font-display);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hc-muted);
}

.md-nav--secondary .md-nav__link--active {
  color: var(--hc-link) !important;
}

/* Breadcrumb path above the H1 */
.md-path {
  font-size: 0.66rem;
  color: var(--hc-muted);
  margin-bottom: 0.9rem;
}

.md-path__list {
  flex-wrap: wrap;
  row-gap: 0.15rem;
}

.md-path__link {
  color: var(--hc-muted);
  text-decoration: none;
}

.md-path__link:hover {
  color: var(--hc-gold);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */

.hc-home .md-content__inner {
  padding-top: 0.2rem;
}

.hc-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  background: #181a1e;
  color: #f7f7f8;
  padding: 3.4rem 3rem 3rem;
  margin: 0.2rem 0 2.6rem;
  box-shadow: 0 18px 44px rgba(24, 26, 30, 0.14);
}

.hc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 84% 12%, rgba(240, 192, 90, 0.38), transparent 38%),
    radial-gradient(circle at 8% 95%, rgba(169, 113, 26, 0.3), transparent 42%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  background-position: center, center, -1px -1px, -1px -1px;
  mask-image: linear-gradient(180deg, #000 55%, rgba(0, 0, 0, 0.55));
}

.hc-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--hc-font-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0c05a;
  margin: 0 0 1.1rem;
}

.hc-hero__eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: #f0c05a;
}

.hc-hero h1 {
  font-family: var(--hc-font-display);
  font-size: 2.65rem;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 1rem;
  max-width: 20ch;
}

.hc-hero__lead {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.74);
  max-width: 48ch;
  margin: 0 0 1.9rem;
}

.hc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.md-typeset .hc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 9px;
  padding: 0.62rem 1.05rem;
  font-family: var(--hc-font-display);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.md-typeset .hc-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.md-typeset .hc-btn--primary {
  background: #f0c05a;
  border-color: #f0c05a;
  color: #181a1e;
}

.md-typeset .hc-btn--primary:hover {
  background: #f7d98a;
  border-color: #f7d98a;
  color: #181a1e;
}

.hc-hero__emblem {
  position: absolute;
  right: 2.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 15.5rem;
  height: 15.5rem;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hc-hero__emblem img {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 18px 32px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 32px rgba(240, 192, 90, 0.18));
}

.hc-section {
  margin: 0 0 2.8rem;
}

.hc-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.1rem;
}

.hc-section__head h2 {
  font-family: var(--hc-font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--md-default-fg-color);
}

.hc-section__head p {
  margin: 0;
  color: var(--hc-muted);
  font-size: 0.75rem;
}

.hc-section__more {
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.hc-paths {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.hc-path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.35rem 1.35rem 1.2rem;
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius);
  background: var(--md-default-bg-color);
  color: var(--hc-text) !important;
  text-decoration: none !important;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.hc-path:hover {
  border-color: var(--hc-gold);
  transform: translateY(-3px);
  box-shadow: var(--hc-shadow);
}

.hc-path__num {
  font-family: var(--hc-font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--hc-link);
  text-transform: uppercase;
}

.hc-path__title {
  font-family: var(--hc-font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--md-default-fg-color);
  margin-top: 0.15rem;
}

.hc-path__desc {
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--hc-muted);
  margin: 0.1rem 0 0.7rem;
}

.hc-path__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.66rem;
  color: var(--hc-muted);
}

.hc-path__arrow {
  font-family: var(--hc-font-display);
  color: var(--hc-gold);
  font-size: 0.9rem;
  transition: transform 0.15s ease;
}

.hc-path:hover .hc-path__arrow {
  transform: translateX(3px);
}

.hc-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  counter-reset: hc-step;
}

.hc-step {
  position: relative;
  padding: 1.15rem 1.1rem 1.05rem;
  border-radius: var(--hc-radius);
  background: var(--hc-surface);
  border: 1px solid transparent;
}

.hc-step__num {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  border: 1px solid var(--hc-gold);
  color: var(--hc-link);
  font-family: var(--hc-font-display);
  font-size: 0.62rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.hc-step__title {
  font-family: var(--hc-font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--md-default-fg-color);
  margin: 0 0 0.2rem;
}

.hc-step__desc {
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--hc-muted);
  margin: 0;
}

.hc-step__desc a {
  font-weight: 600;
}

.hc-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.hc-fact {
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius);
  padding: 1.25rem 1.3rem;
  background: var(--md-default-bg-color);
}

.hc-fact__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.hc-fact__name {
  font-family: var(--hc-font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--md-default-fg-color);
}

.hc-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--hc-gold-wash);
  color: var(--hc-gold-strong);
  border: 1px solid var(--hc-gold-soft);
}

.hc-tag--muted {
  background: var(--hc-surface-2);
  color: var(--hc-muted);
  border-color: var(--hc-line);
}

.hc-fact dl {
  display: grid;
  grid-template-columns: 6.2rem minmax(0, 1fr);
  gap: 0.42rem 0.8rem;
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.5;
}

.hc-fact dt {
  color: var(--hc-muted);
}

.hc-fact dd {
  margin: 0;
  color: var(--hc-text);
  overflow-wrap: anywhere;
}

.hc-fact dd code {
  font-size: 0.9em;
  background: transparent;
  padding: 0;
}

.hc-rpc-list {
  display: grid;
  gap: 0.18rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hc-rpc-list code {
  font-size: 0.88em;
  word-break: break-all;
}

.hc-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hc-links li {
  border-bottom: 1px solid var(--hc-line);
}

.hc-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0.1rem;
  color: var(--hc-text) !important;
  text-decoration: none !important;
  font-size: 0.73rem;
  font-weight: 500;
}

.hc-links a:hover {
  color: var(--hc-gold) !important;
}

.hc-links a span:last-child {
  color: var(--hc-gold);
  font-size: 0.8rem;
}

.hc-callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.4rem;
  border-radius: var(--hc-radius);
  background: var(--hc-gold-wash);
  border: 1px solid var(--hc-gold-soft);
}

.hc-callout__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--hc-gold);
  color: #181a1e;
  font-family: var(--hc-font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.hc-callout h3 {
  font-family: var(--hc-font-display);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  color: var(--md-default-fg-color);
}

.hc-callout p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--hc-muted);
}

.hc-callout a {
  font-weight: 600;
}

.hc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.6rem 1.8rem;
  border-radius: var(--hc-radius);
  background: #181a1e;
  color: #fff;
}

.hc-cta h3 {
  font-family: var(--hc-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: #fff;
}

.hc-cta p {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 52ch;
}

.hc-cta .hc-btn {
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Chapter / group landing pages
   -------------------------------------------------------------------------- */

.hc-chapter-head {
  border-bottom: 1px solid var(--hc-line);
  padding-bottom: 1.2rem;
  margin-bottom: 1.8rem;
}

.hc-kicker {
  font-family: var(--hc-font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hc-gold);
  margin: 0 0 0.55rem;
}

.hc-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 2rem;
}

.hc-group-grid--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hc-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius);
  background: var(--md-default-bg-color);
  color: var(--hc-text) !important;
  text-decoration: none !important;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.hc-group:hover {
  border-color: var(--hc-gold);
  transform: translateY(-2px);
}

.hc-group__label {
  font-family: var(--hc-font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--md-default-fg-color);
}

.hc-group__desc {
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--hc-muted);
}

.hc-group__count {
  margin-top: 0.4rem;
  font-size: 0.62rem;
  color: var(--hc-link);
  font-weight: 600;
}

.hc-lede {
  font-size: 0.92rem;
  color: var(--hc-muted);
  max-width: 62ch;
}

/* Guide tables on chapter and group landings, plus the troubleshooting tables
   inside task pages. Styled globally so authors never need a wrapper class. */
.md-typeset table:not([class]) {
  display: table;
  width: 100%;
  font-size: 0.71rem;
  line-height: 1.55;
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius);
  overflow: hidden;
  box-shadow: none;
}

.md-typeset table:not([class]) th {
  background: var(--hc-surface);
  font-family: var(--hc-font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--hc-muted);
  border-bottom: 1px solid var(--hc-line);
  padding: 0.62rem 0.8rem;
  white-space: nowrap;
}

.md-typeset table:not([class]) td {
  border-top: 1px solid var(--hc-line);
  padding: 0.6rem 0.8rem;
  vertical-align: top;
  color: var(--hc-text);
}

.md-typeset table:not([class]) td code {
  color: #1a1c20 !important;
  background-color: #eef0f2 !important;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) td code {
  color: #f1f2f3 !important;
  background-color: #111316 !important;
}

.md-typeset table:not([class]) tr:first-child td {
  border-top: 0;
}

.md-typeset table:not([class]) td:first-child {
  font-weight: 600;
  color: var(--md-default-fg-color);
}

.md-typeset table:not([class]) td:first-child a {
  color: var(--md-default-fg-color);
}

.md-typeset table:not([class]) td:first-child a:hover {
  color: var(--hc-gold);
}

.md-typeset .md-typeset__table {
  display: block;
  width: 100%;
  border-radius: var(--hc-radius);
}

/* External links get a quiet marker; added by extra.js. */
.md-typeset a.hc-external::after {
  content: "↗";
  display: inline-block;
  margin-left: 0.18em;
  font-size: 0.82em;
  color: var(--hc-gold);
  text-decoration: none;
}

/* Guide rows used on group landings */
.hc-guide-list {
  margin: 0.4rem 0 1.6rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hc-line);
}

.hc-guide-list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 1rem;
  padding: 0.62rem 0.1rem;
  border-bottom: 1px solid var(--hc-line);
  font-size: 0.72rem;
}

.hc-guide-list > li > a {
  font-weight: 600;
  color: var(--md-default-fg-color);
}

.hc-guide-list > li > span {
  color: var(--hc-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Article furniture
   -------------------------------------------------------------------------- */

.hc-page-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
  font-family: var(--hc-font-display);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hc-muted);
}

.hc-page-meta__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hc-gold);
}

.hc-page-meta__sep {
  color: var(--hc-line);
}

.hc-page-tools {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}

.hc-page-tools .hc-page-meta {
  margin: 0;
}

.hc-print {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-left: auto;
  padding: 0;
  color: var(--hc-muted);
  background: var(--hc-surface);
  border: 1px solid var(--hc-line);
  border-radius: 8px;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}

.hc-print:hover {
  color: var(--hc-link);
  border-color: var(--hc-gold);
  background: var(--hc-gold-wash);
}

.hc-print:focus-visible {
  outline: 2px solid var(--hc-link);
  outline-offset: 2px;
}

.hc-print svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}

.md-typeset .task-list-item {
  list-style: none;
  margin-left: -0.35rem;
}

.md-typeset [type="checkbox"]:checked + .task-list-indicator::before {
  background-color: var(--hc-gold);
}

/* Keep note/tip admonitions in the brand palette; warning and danger stay
   semantic so they still read as caution. */
.md-typeset .admonition.note,
.md-typeset .admonition.tip {
  border-color: #c9973b;
  background-color: var(--hc-gold-wash);
}

.md-typeset .admonition.note > .admonition-title,
.md-typeset .admonition.tip > .admonition-title {
  background-color: rgba(201, 151, 59, 0.14);
  color: var(--hc-gold-strong);
}

.md-typeset .admonition.note > .admonition-title::before,
.md-typeset .admonition.tip > .admonition-title::before {
  background-color: var(--hc-gold-strong);
}

.md-typeset hr {
  border-bottom-color: var(--hc-line);
}

.md-typeset blockquote {
  border-left: 2px solid var(--hc-gold-soft);
  color: var(--hc-muted);
}

.md-typeset .md-button {
  border-radius: 8px;
  font-family: var(--hc-font-display);
  font-weight: 600;
  font-size: 0.7rem;
}

.md-typeset .md-button--primary {
  background-color: #181a1e;
  border-color: #181a1e;
  color: #fff;
}

[data-md-color-scheme="slate"] .md-typeset .md-button--primary {
  background-color: var(--hc-gold);
  border-color: var(--hc-gold);
  color: #181a1e;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.md-footer {
  background-color: #181a1e;
}

.md-footer-meta {
  background-color: #111316;
}

.hc-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 1.6rem;
  padding: 2.2rem 0 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.1rem;
}

.hc-footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.hc-footer__brand img {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 7px;
  margin-top: 0.1rem;
}

.hc-footer__name {
  font-family: var(--hc-font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

.hc-footer__tag {
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin-top: 0.15rem;
  max-width: 34ch;
}

.hc-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 1.2rem 2.8rem;
  font-size: 0.68rem;
}

.hc-footer__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hc-footer__heading {
  font-family: var(--hc-font-display);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 0.15rem;
}

.hc-footer__links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.hc-footer__links a:hover {
  color: var(--hc-gold);
}

.hc-footer__note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.64rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.48);
  max-width: 90ch;
}

.md-copyright {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.45);
}

.md-copyright__highlight {
  color: rgba(255, 255, 255, 0.6);
}

.md-footer__link {
  color: #fff;
}

.md-footer__direction {
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media screen and (max-width: 76.1875em) {
  .hc-hero {
    padding: 2.8rem 2.2rem 2.6rem;
  }

  .hc-hero h1 {
    font-size: 2.2rem;
  }

  .hc-hero__emblem {
    right: 1.6rem;
    width: 9.5rem;
    height: 9.5rem;
  }
}

@media screen and (min-width: 60.01em) and (max-width: 76.24em) {
  .hc-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 60em) {
  /* The breadcrumb cannot wrap without stranding a separator at the start of
     the second line; the H1 and tab bar already provide the context. */
  .md-path {
    display: none;
  }

  .hc-hero__emblem {
    display: none;
  }

  .hc-paths {
    grid-template-columns: 1fr;
  }

  .hc-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hc-group-grid {
    grid-template-columns: 1fr;
  }

  .hc-links {
    grid-template-columns: 1fr;
  }

  .hc-footer {
    grid-template-columns: 1fr;
  }

  .hc-footer__links {
    justify-content: flex-start;
  }
}

@media screen and (max-width: 76.24em) {
  .md-content__inner {
    margin-inline: 0;
    padding-inline: 0.8rem;
  }
}

@media screen and (max-width: 44em) {
  .md-typeset h1 {
    font-size: 1.65rem;
  }

  .md-typeset h2 {
    font-size: 1.12rem;
    margin-top: 1.7em;
  }

  .hc-announce {
    font-size: 0.62rem;
    padding: 0.45rem 0.7rem;
  }

  .hc-announce__extra,
  .hc-announce__safety {
    display: none;
  }

  .hc-hero {
    margin-left: -0.6rem;
    margin-right: -0.6rem;
    padding: 2.2rem 1.4rem 2rem;
    border-radius: 16px;
  }

  .hc-hero h1 {
    font-size: 1.8rem;
    max-width: none;
  }

  .hc-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .md-typeset .hc-btn {
    justify-content: center;
  }

  .hc-hero__lead {
    font-size: 0.85rem;
  }

  .hc-steps,
  .hc-facts {
    grid-template-columns: 1fr;
  }

  .hc-section__head {
    flex-direction: column;
    gap: 0.2rem;
  }

  .hc-guide-list > li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .hc-cta {
    padding: 1.3rem 1.2rem;
  }
}

@media print {
  @page {
    margin: 16mm 14mm;
  }

  html,
  body {
    background: #fff !important;
    color: #111 !important;
  }

  .md-header,
  .md-tabs,
  .md-sidebar,
  .md-footer,
  .hc-announce,
  .hc-print,
  .md-top,
  .md-search,
  .md-dialog,
  .md-overlay,
  .md-path {
    display: none !important;
  }

  .hc-page-tools {
    display: block !important;
    margin: 0 0 0.6rem !important;
  }

  .hc-page-meta {
    margin: 0 !important;
    color: #555 !important;
  }

  .md-container,
  .md-main,
  .md-main__inner,
  .md-content,
  .md-content__inner {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .md-grid {
    max-width: none !important;
    margin: 0 !important;
  }

  .md-typeset {
    color: #111 !important;
    font-size: 11pt;
  }

  .md-typeset h1,
  .md-typeset h2,
  .md-typeset h3,
  .md-typeset h4 {
    color: #000 !important;
  }

  .md-typeset a {
    color: #000 !important;
    text-decoration: underline;
  }

  .md-typeset a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #555;
    word-break: break-all;
  }

  .md-typeset img {
    max-width: 100% !important;
  }

  .md-typeset code,
  .md-typeset pre {
    color: #111 !important;
    background: #f5f5f5 !important;
    border-color: #ddd !important;
  }

  .md-typeset th {
    color: #000 !important;
    background: #f5f5f5 !important;
  }

  .hc-figure,
  table,
  pre,
  blockquote,
  .hc-cta,
  .hc-callout {
    break-inside: avoid;
  }

  .hc-figure img {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }

  h1,
  h2,
  h3 {
    break-after: avoid;
  }
}

/* --------------------------------------------------------------------------
   Screenshots
   -------------------------------------------------------------------------- */

.hc-figure {
  margin: 1.8rem 0;
  padding: 0;
}

.hc-figure img {
  display: block;
  width: 100%;
  max-width: 20rem;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--hc-line);
  border-radius: 14px;
  background: var(--hc-surface);
  box-shadow: var(--hc-shadow);
}

.hc-figure--phone img {
  max-width: 18rem;
}

.hc-figure--wide img {
  max-width: 32rem;
}

.hc-figure figcaption {
  max-width: 34rem;
  margin: 0.65rem auto 0;
  font-size: 0.64rem;
  line-height: 1.55;
  color: var(--hc-muted);
  text-align: center;
}

.hc-figure figcaption a {
  color: var(--hc-link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
