/* ==========================================
   IDEAMART DOCS — WARM PRODUCT THEME
   Material for MkDocs
   ========================================== */

:root {
  --bg: #ffffff;
  --tint: #f5f5f8;
  --ty: #fff4d6;
  --to: #ffeedd;
  --tr: #ffe6ee;
  --tp: #ffe9f3;
  --plum: #1b0f22;
  --ink: #0f0e17;
  --ink-2: #262433;
  --muted: #494656;
  --faint: #76737f;
  --hair: rgba(15, 14, 23, 0.08);
  --hair-2: rgba(15, 14, 23, 0.14);
  --y: #fdbe26;
  --o: #f7941e;
  --r: #e8195a;
  --p: #ee3f80;
  --g: #b3b3b5;
  --ok: #0d9f68;
  --header-hover: #ee3f80;
  --spec: linear-gradient(100deg, var(--y), var(--o) 28%, var(--r) 62%, var(--p));
  --text-grad: linear-gradient(95deg, #ef6614, #e8195a 55%, #d41f72);
  --sun: linear-gradient(135deg, #ffd44f, #f7941e);
  --berry: linear-gradient(135deg, #d3114f, #e8195a 45%, #f1559a);
  --f-hud: "Comfortaa", "Varela Round", "Arial Rounded MT Bold", system-ui, sans-serif;
  --f-body: "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}

/* Keep the same Ideamart accents while switching every surface and text role
   to a dark, high-contrast palette. */

[data-md-color-scheme="slate"] {
  --bg: #000000;
  --tint: #0b0b0b;
  --ty: #241d0d;
  --to: #29180d;
  --tr: #250c17;
  --tp: #230d18;
  --plum: #1b0f22;
  --ink: #fff7fb;
  --ink-2: #f0e6ee;
  --muted: #c8b7c4;
  --faint: #9a8797;
  --hair: rgba(255, 255, 255, 0.11);
  --hair-2: rgba(255, 255, 255, 0.18);
  --ok: #4fdb9a;
  color-scheme: dark;
}

/* ===== MATERIAL TOKENS ===== */

[data-md-color-scheme="default"],
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: var(--plum);
  --md-primary-bg-color: var(--bg);
  --md-accent-fg-color: var(--r);
  --md-default-bg-color: var(--bg);
  --md-default-fg-color: var(--ink);
  --md-default-fg-color--light: var(--muted);
  --md-default-fg-color--lighter: var(--faint);
  --md-typeset-color: var(--ink-2);
  --md-typeset-a-color: var(--r);
  --md-code-bg-color: var(--tint);
  --md-code-fg-color: var(--ink-2);
  --md-admonition-bg-color: var(--tint);
  --md-footer-bg-color: var(--plum);
  --md-footer-bg-color--dark: #100815;
  --ideamart-border: var(--hair);
  --ideamart-hover: var(--tp);
  --ideamart-heading: var(--ink);
}

/* ===== TYPOGRAPHY ===== */

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
}

.md-typeset {
  color: var(--ink-2);
  font-size: 0.84rem;
  line-height: 1.8;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  color: var(--ink);
  font-family: var(--f-hud);
  letter-spacing: -0.025em;
}

.md-typeset h1 {
  font-size: 2.3rem;
  font-weight: 800;
}

.md-typeset h2 {
  border-bottom: 1px solid var(--hair);
  font-size: 1.55rem;
  font-weight: 800;
  padding-bottom: 12px;
}

.md-typeset h3 {
  font-size: 1.14rem;
  font-weight: 800;
}

.md-typeset a {
  color: var(--r);
  font-weight: 700;
  text-decoration: none;
}

.md-typeset a:hover {
  color: var(--p);
  text-decoration: underline;
}

/* ===== HEADER ===== */


/* =========================================
   HEADER - ALWAYS BLACK (LIGHT & DARK)
   ========================================= */

:root,
[data-md-color-scheme="default"],
[data-md-color-scheme="slate"] {
  --header-hover: #f7941e;
}

/* Force black background across all themes */
.md-header,
[data-md-color-scheme="default"] .md-header,
[data-md-color-scheme="slate"] .md-header {
  background: #000000 !important;
  background-color: #000000 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: none;
  color: #ffffff !important;
}

/* Header title, icons and buttons */
.md-header__title,
.md-header__topic,
.md-header__button,
.md-header .md-icon,
.md-header .md-ellipsis,
.md-header a {
  color: #ffffff !important;
}

/* Header title styling */
.md-header__title {
  font-family: var(--f-hud);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Hover styling */
.md-header__title:hover,
.md-header__title:hover .md-ellipsis,
.md-header__topic:hover,
.md-header__topic:hover .md-ellipsis,
.md-header__button:hover,
.md-header__button:focus,
.md-header .md-icon:hover,
.md-header a:hover {
  color: var(--header-hover) !important;
}

/* Repository button */
.md-header__source {
  margin-left: 0.35rem;
}

.md-header__source .md-source {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 100px;
  color: #ffffff !important;
  padding: 0.18rem 0.65rem;
  transition: background 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease;
}

/* Repository hover */
.md-header__source .md-source:hover,
.md-header__source .md-source:focus {
  background: rgba(247, 148, 30, 0.18);
  border-color: var(--header-hover);
  color: var(--header-hover) !important;
}

.md-header__source .md-source__repository {
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 400;
}

/* Keep header icons white */
.md-header svg {
  fill: currentColor;
}

/* Search field styling */
.md-search__form {
  background: rgba(255, 255, 255, 0.12);
}

.md-search__input,
.md-search__input::placeholder,
.md-search__icon {
  color: #ffffff !important;
}


/* ===== TOP NAVIGATION ===== */


/* =========================================
   NAVIGATION TABS - ALWAYS BLACK
   LIGHT & DARK THEMES
   ========================================= */

:root,
[data-md-color-scheme="default"],
[data-md-color-scheme="slate"] {
  --y: #fdbe26;
}

/* Force black background */
.md-tabs,
[data-md-color-scheme="default"] .md-tabs,
[data-md-color-scheme="slate"] .md-tabs {
  background: #000000 !important;
  background-color: #000000 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
}

/* Navigation tab links */
.md-tabs__link,
[data-md-color-scheme="default"] .md-tabs__link,
[data-md-color-scheme="slate"] .md-tabs__link {
  border-bottom: 3px solid transparent;
  color: #ffffff !important;
  font-size: 0.74rem;
  font-weight: 200;
  opacity: 1 !important;
  transition: color 0.2s ease,
              border-color 0.2s ease;
}

/* Hover and active tabs */
.md-tabs__link:hover,
.md-tabs__link:focus,
.md-tabs__link--active,
[data-md-color-scheme="default"] .md-tabs__link:hover,
[data-md-color-scheme="default"] .md-tabs__link--active,
[data-md-color-scheme="slate"] .md-tabs__link:hover,
[data-md-color-scheme="slate"] .md-tabs__link--active {
  border-bottom-color: var(--y);
  color: var(--y) !important;
  opacity: 1 !important;
}

/* ===== SEARCH ===== */

.md-search__form {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: none;
}

.md-search__form:hover,
.md-search__form:focus-within {
  border-color: var(--y);
}

.md-search__input::placeholder {
  color: #eadfec;
}

.md-search__output {
  border: 1px solid var(--hair);
  border-radius: 14px;
}

.md-search-result__link:hover {
  background: var(--ideamart-hover);
}

/* ===== SIDEBAR ===== */

.md-sidebar--primary {
  background: var(--bg);
}

.md-nav__title {
  color: var(--ink);
  font-family: var(--f-hud);
  font-weight: 800;
}

.md-nav__item {
  margin: 2px 0;
}

.md-nav__link {
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 8px 10px;
  transition: background 0.2s, color 0.2s;
}

.md-nav__link:hover {
  background: var(--tint);
  color: var(--r);
}

.md-nav__link--active,
.md-nav__link[aria-current="page"] {
  background: var(--tp);
  color: var(--r);
  font-weight: 800;
}

.md-nav__item--nested > .md-nav__link {
  color: var(--ink-2);
  font-weight: 800;
}

/* ===== TABLE OF CONTENTS ===== */

.md-sidebar--secondary .md-nav__link {
  border-left: 2px solid transparent;
  border-radius: 0;
}

.md-sidebar--secondary .md-nav__link--active {
  border-left-color: var(--r);
}

/* ===== CONTENT AREA ===== */

.md-main__inner {
  margin-top: 0.5rem;
}

.md-content__inner {
  padding-bottom: 3rem;
  padding-top: 1.2rem;
}

.md-typeset p {
  line-height: 1.85;
}

/* ===== HOME PAGE ===== */

/* The Home page has no navigation sidebar, so let its content use the full
   viewport while keeping equal responsive gutters on both sides. */
.md-main__inner:has(.hero-section) {
  margin-top: 0;
  max-width: none;
  width: 100%;
}

.md-main__inner:has(.hero-section) > .md-content {
  width: 100%;
}

.md-main__inner:has(.hero-section) .md-content__inner {
  margin-left: auto;
  margin-right: auto;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  text-align: center;
  width: 100%;
}

.md-main__inner:has(.hero-section) .hero-content,
.md-main__inner:has(.hero-section) .hero-lead {
  margin-left: auto;
  margin-right: auto;
}

.md-main__inner:has(.hero-section) .hero-actions {
  justify-content: center;
}

.md-main__inner:has(.hero-section) .steps-list {
  text-align: center;
}

.hero-section {
  background:
    radial-gradient(circle at 90% 12%, rgba(253, 190, 38, 0.22), transparent 24%),
    radial-gradient(circle at 10% 80%, rgba(238, 63, 128, 0.12), transparent 27%),
    var(--tint);
  border: 1px solid var(--hair);
 
  margin: 0 0 2.5rem;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5.5rem);
  position: relative;
}

.hero-section::after {
  background: var(--spec);
  content: "";
  height: 7px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.hero-content {
  max-width: 760px;
}

.hero-kicker {
  color: var(--r);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.hero-section h1 {
  background: var(--text-grad);
  background-clip: text;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 1.02;
  margin: 0 0 1.35rem;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.steps-box,
.info-panel {
  background: var(--ty);
  border: 1px solid rgba(253, 190, 38, 0.35);
  border-radius: 18px;
  padding: 1.3rem 1.5rem;
}

.steps-list {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps-list li {
  color: var(--ink-2);
  font-weight: 750;
  line-height: 1.35;
}

.steps-list li::before {
  color: var(--o);
  content: counter(list-item, decimal-leading-zero);
  display: block;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.home-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0 2rem;
}

.home-card {
  background: var(--bg);
  border: 1px solid var(--hair-2);
  border-radius: 18px;
  padding: 1.6rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-card:hover {
  border-color: rgba(232, 25, 90, 0.35);
  box-shadow: 0 12px 30px rgba(27, 15, 34, 0.09);
  transform: translateY(-3px);
}

.home-card h3 {
  margin-top: 0;
}

.card-link {
  display: inline-block;
  margin-top: 0.5rem;
}

.info-panel {
  background: var(--tr);
  border-color: rgba(232, 25, 90, 0.18);
}

.info-panel h3 {
  margin-top: 0;
}

/* ===== BUTTONS ===== */

.md-typeset .md-button {
  background: var(--bg);
  border: 1px solid var(--r);
  border-radius: 999px;
  color: var(--r);
  font-weight: 800;
  padding: 11px 22px;
  transition: 0.2s ease;
}

.md-typeset .md-button:hover {
  background: var(--tr);
  border-color: var(--p);
  color: var(--r);
  text-decoration: none;
  transform: translateY(-1px);
}

.md-typeset .md-button--primary {
  background: var(--berry);
  border-color: transparent;
  color: #ffffff;
}

.md-typeset .md-button--primary:hover {
  background: var(--berry);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(232, 25, 90, 0.22);
  color: #ffffff;
}

/* ===== CODE BLOCKS ===== */

.md-typeset .highlight,
.md-typeset pre {
  border: 1px solid var(--hair);
  border-radius: 12px;
  overflow: hidden;
}

.md-typeset pre > code {
  padding: 20px;
  line-height: 1.7;
  font-size: 0.74rem;
}

.md-typeset code {
  border-radius: 5px;
}

.md-clipboard:hover {
  color: var(--r);
}

/* ===== TABLES ===== */

.md-typeset table:not([class]) {
  border: 1px solid var(--hair-2);
  border-radius: 12px;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background: var(--plum);
  color: #ffffff;
  font-weight: 800;
  padding: 13px;
}

.md-typeset table:not([class]) td {
  border-bottom: 1px solid var(--hair);
  padding: 12px;
}

.md-typeset table:not([class]) tr:hover td {
  background: var(--tint);
}

/* ===== INFO / WARNING BOXES ===== */

.md-typeset .admonition,
.md-typeset details {
  border-radius: 12px;
  box-shadow: none;
  border-width: 1px;
}

.md-typeset .admonition.note {
  border-color: var(--p);
}

.md-typeset .admonition.tip {
  border-color: var(--ok);
}

.md-typeset .admonition.warning {
  border-color: var(--o);
}

/* ===== CONTENT TABS ===== */

.md-typeset .tabbed-labels {
  border-bottom: 1px solid var(--hair);
}

.md-typeset .tabbed-labels > label {
  font-weight: 800;
}

.md-typeset .tabbed-labels > label:hover {
  color: var(--r);
}

/* ===== PAGINATION / FOOTER ===== */

.md-footer {
  background: var(--plum);
  color: #ffffff;
}

.md-footer-meta {
  background: #100815;
}

.md-footer__link:hover,
.md-social__link:hover {
  color: var(--y);
}

/* ===== RESPONSIVE ===== */

@media screen and (max-width: 76.234375em) {
  .md-nav--primary .md-nav__title {
    background: var(--plum);
    color: #ffffff;
  }

  .md-header__source .md-source__repository {
    font-size: 0.68rem;
  }
}

@media screen and (max-width: 700px) {
  .md-typeset h1 {
    font-size: 1.9rem;
  }

  .md-typeset h2 {
    font-size: 1.3rem;
  }

  .md-content__inner {
    padding-top: 0.1rem;
  }

  .md-typeset pre > code {
    padding: 6px;
  }

  .steps-list,
  .home-card-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    border-radius: 20px;
    padding: 2rem 1.25rem;
  }
}

/* ===== IDEAMART DOCS ASSISTANT ===== */

.home-card__eyebrow {
  color: var(--r);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0 0 0.45rem;
}

.home-card--assistant {
  background: linear-gradient(135deg, var(--ty), var(--tp));
  border-color: rgba(232, 25, 90, 0.24);
}

.card-link--button {
  background: none;
  border: 0;
  color: var(--r);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
}

.card-link--button:hover {
  color: var(--p);
  text-decoration: underline;
}

.ideamart-chatbot {
  bottom: 1.25rem;
  font-family: var(--f-body);
  position: fixed;
  right: 1.25rem;
  z-index: 30;
}

.ideamart-chatbot__fab {
  align-items: center;
  background: var(--berry);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(27, 15, 34, 0.28);
  color: #fff;
  cursor: pointer;
  display: flex;
  font: 800 0.86rem var(--f-body);
  gap: 0.55rem;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ideamart-chatbot__fab:hover,
.ideamart-chatbot__fab:focus-visible {
  box-shadow: 0 16px 38px rgba(232, 25, 90, 0.34);
  transform: translateY(-2px);
}

.ideamart-chatbot__orb {
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  display: inline-flex;
  font-size: 1rem;
  height: 1.75rem;
  justify-content: center;
  width: 1.75rem;
}

.ideamart-chatbot__panel {
  background: var(--bg);
  border: 1px solid var(--hair-2);
  border-radius: 20px;
  bottom: 4.5rem;
  box-shadow: 0 22px 70px rgba(27, 15, 34, 0.24);
  display: flex;
  flex-direction: column;
  height: min(640px, calc(100vh - 7rem));
  overflow: hidden;
  position: absolute;
  right: 0;
  width: min(390px, calc(100vw - 2rem));
}

.ideamart-chatbot__panel[hidden] {
  display: none !important;
}

.ideamart-chatbot__header {
  background: linear-gradient(135deg, var(--plum), #32122e);
  color: #fff;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.15rem 1.2rem 1rem;
  position: relative;
}

.ideamart-chatbot__header h2 {
  border: 0;
  color: #fff;
  font-family: var(--f-hud);
  font-size: 1.15rem;
  margin: 0.1rem 0 0.25rem;
  padding: 0;
}

.ideamart-chatbot__header p:last-child {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.75rem;
  line-height: 1.45;
  margin: 0;
}

.ideamart-chatbot__eyebrow {
  color: var(--y);
  font: 800 0.62rem var(--f-mono);
  letter-spacing: 0.12em;
  margin: 0;
}

.ideamart-chatbot__close {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 0;
  height: 2rem;
  line-height: 1;
  padding: 0;
  position: relative;
  z-index: 1;
  width: 2rem;
}

.ideamart-chatbot__close::before {
  content: "X";
  font-size: 1.6rem;
}

.ideamart-chatbot__close:hover,
.ideamart-chatbot__close:focus-visible {
  color: #fff;
}

.ideamart-chatbot__messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  padding: 1rem;
}

.ideamart-chatbot__message {
  background: var(--tint);
  border: 1px solid var(--hair);
  border-radius: 14px 14px 14px 4px;
  color: var(--ink-2);
  font-size: 0.78rem;
  line-height: 1.65;
  max-width: 92%;
  padding: 0.7rem 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.ideamart-chatbot__message--user {
  align-self: flex-end;
  background: var(--tr);
  border-color: rgba(232, 25, 90, 0.2);
  border-radius: 14px 14px 4px 14px;
  color: var(--ink);
}

.ideamart-chatbot__message--error {
  border-color: rgba(247, 148, 30, 0.4);
  color: var(--ink);
}

.ideamart-chatbot__message--fallback {
  border-color: rgba(13, 159, 104, 0.35);
}

.ideamart-chatbot__message--pending {
  color: var(--muted);
}

.ideamart-chatbot__connect {
  background: var(--ty);
  border-top: 1px solid var(--hair);
  padding: 0.75rem 1rem;
}

.ideamart-chatbot__connect label {
  color: var(--ink);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.ideamart-chatbot__connect label span,
.ideamart-chatbot__connect small {
  color: var(--muted);
  font-weight: 400;
}

.ideamart-chatbot__connect small {
  display: block;
  font-size: 0.68rem;
  margin-top: 0.35rem;
}

.ideamart-chatbot__token-row {
  display: flex;
  gap: 0.4rem;
}

.ideamart-chatbot__token-row input,
.ideamart-chatbot__composer textarea {
  background: var(--bg);
  border: 1px solid var(--hair-2);
  border-radius: 10px;
  color: var(--ink);
  font: 0.78rem var(--f-body);
  outline: 0;
}

.ideamart-chatbot__token-row input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.6rem;
}

.ideamart-chatbot__token-row input:focus,
.ideamart-chatbot__composer textarea:focus {
  border-color: var(--r);
  box-shadow: 0 0 0 3px rgba(232, 25, 90, 0.12);
}

.ideamart-chatbot__connect-button,
.ideamart-chatbot__send {
  background: var(--berry);
  border: 0;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  font: 800 0.72rem var(--f-body);
  padding: 0.5rem 0.75rem;
}

.ideamart-chatbot__composer {
  border-top: 1px solid var(--hair);
  padding: 0.75rem 1rem 1rem;
}

.ideamart-chatbot__composer textarea {
  display: block;
  line-height: 1.45;
  padding: 0.65rem 0.7rem;
  resize: vertical;
  width: 100%;
}

.ideamart-chatbot__composer-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 0.55rem;
}

.ideamart-chatbot__status {
  color: var(--muted);
  font: 700 0.64rem var(--f-mono);
  letter-spacing: 0.02em;
}

.ideamart-chatbot__settings {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: 700 0.7rem var(--f-body);
  padding: 0.35rem 0;
}

.ideamart-chatbot__settings:hover {
  color: var(--r);
}

.ideamart-chatbot__send:disabled {
  cursor: wait;
  opacity: 0.65;
}

.ideamart-chatbot__spinner {
  animation: ideamart-chatbot-spin 0.8s linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  border-top-color: #fff;
  display: inline-block;
  height: 0.7rem;
  margin-left: 0.25rem;
  vertical-align: -0.1rem;
  width: 0.7rem;
}

@keyframes ideamart-chatbot-spin {
  to { transform: rotate(360deg); }
}

@media screen and (max-width: 700px) {
  .ideamart-chatbot {
    bottom: 0.8rem;
    right: 0.8rem;
  }

  .ideamart-chatbot__panel {
    bottom: 4rem;
    height: min(640px, calc(100vh - 5.5rem));
  }
}

/* ===== MODERN POLISH ===== */

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 5% 18%, rgba(253, 190, 38, 0.06), transparent 24rem),
    radial-gradient(circle at 92% 36%, rgba(232, 25, 90, 0.05), transparent 28rem),
    var(--bg);
}

[data-md-color-scheme="slate"] body,
[data-md-color-scheme="slate"] .md-main,
[data-md-color-scheme="slate"] .md-sidebar--primary,
[data-md-color-scheme="slate"] .md-sidebar--secondary {
  background: #000000;
}

.md-header {
  background: var(--plum);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.md-header,
.md-header__title,
.md-header__button,
.md-header .md-icon {
  color: #ffffff;
}

.md-header__inner {
  min-height: 4.2rem;
}

.md-header__title {
  font-size: 0.98rem;
}

.md-header__source .md-source {
  background: linear-gradient(135deg, rgba(253, 190, 38, 0.18), rgba(232, 25, 90, 0.2));
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.14);
}

.md-tabs {
  background: var(--plum);
  backdrop-filter: blur(16px);
}

.md-tabs__list {
  gap: 0.35rem;
}

.md-tabs__link {
  border: 1px solid transparent;
  border-radius: 999px;
  color: #ffffff;
  margin: 0.45rem 0;
  padding: 0.45rem 0.8rem;
}

.md-tabs__link:hover,
.md-tabs__link--active {
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: transparent;
  border-color: rgba(255, 255, 255, 0.14);
}

.md-tabs__link:hover {
  background: rgba(247, 148, 30, 0.18);
  border-color: rgba(247, 148, 30, 0.48);
  color: var(--header-hover);
}

.md-tabs__link--active {
  color: var(--y);
}

.md-main__inner {
  margin-top: 2.25rem;
}

.md-content__inner {
  max-width: 960px;
}

.md-sidebar--primary,
.md-sidebar--secondary {
  border-color: var(--hair);
}

.md-nav__link {
  align-items: center;
  display: flex;
  min-height: 2.15rem;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  text-wrap: balance;
}

.md-typeset h2 {
  margin-top: 2.8rem;
}

.md-typeset blockquote {
  background: var(--tint);
  border-left: 3px solid var(--r);
  border-radius: 0 14px 14px 0;
  padding: 0.7rem 1rem;
}

.hero-section {
  box-shadow: 0 24px 70px rgba(27, 15, 34, 0.11);
  isolation: isolate;
  min-height: calc(100svh - 3rem);

}

.hero-section::before {
  border: 1px solid rgba(232, 25, 90, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(232, 25, 90, 0.035),
    0 0 0 48px rgba(253, 190, 38, 0.035);
  content: "";
  height: 240px;
  position: absolute;
  right: 9%;
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  z-index: -1;
}

.hero-kicker {
  align-items: center;
  background: rgba(232, 25, 90, 0.08);
  border: 1px solid rgba(232, 25, 90, 0.16);
  border-radius: 999px;
  display: inline-flex;
  padding: 0.35rem 0.75rem;
}

.hero-lead {
  font-size: 1.08rem;
  line-height: 1.75;
}

.steps-box,
.info-panel,
.home-card {
  box-shadow: 0 12px 34px rgba(27, 15, 34, 0.06);
}

.steps-box {
  position: relative;
}

.steps-box::before {
  background: var(--spec);
  border-radius: 999px;
  content: "";
  height: 3px;
  left: 1.5rem;
  position: absolute;
  right: 1.5rem;
  top: 0;
  transform: translateY(-1px);
}

.home-card {
  background: color-mix(in srgb, var(--bg) 94%, var(--tp));
}

.home-card h3 {
  font-size: 1.24rem;
}

.md-typeset .md-button {
  box-shadow: 0 6px 16px rgba(232, 25, 90, 0.1);
  letter-spacing: -0.01em;
}

.md-typeset .highlight,
.md-typeset pre {
  box-shadow: 0 14px 32px rgba(27, 15, 34, 0.08);
}

.md-typeset .highlight pre {
  box-shadow: none;
}

.md-typeset table:not([class]) {
  box-shadow: 0 12px 28px rgba(27, 15, 34, 0.05);
}

.video-redirect,
.guided-placeholder {
  background: linear-gradient(135deg, var(--tint), var(--tp));
  border: 1px solid var(--hair-2);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(27, 15, 34, 0.06);
  margin: 1.25rem 0 2rem;
  padding: 1.25rem 1.4rem;
}

.video-redirect {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.video-redirect__label,
.guided-placeholder__label {
  color: var(--r);
  flex-basis: 100%;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-redirect a {
  font-family: var(--f-hud);
  font-size: 1.05rem;
  font-weight: 800;
}

.video-redirect p,
.guided-placeholder p {
  color: var(--muted);
  flex-basis: 100%;
  margin: 0;
}

.guided-placeholder {
  background: linear-gradient(135deg, var(--ty), var(--to));
  border-color: rgba(247, 148, 30, 0.24);
  display: grid;
  gap: 0.4rem;
}

.guided-placeholder strong {
  color: var(--ink);
  font-family: var(--f-hud);
  font-size: 1.08rem;
}

@media (prefers-reduced-motion: no-preference) {
  .md-header__source .md-source,
  .md-tabs__link,
  .md-typeset .md-button,
  .home-card,
  .video-redirect,
  .guided-placeholder {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }

  .video-redirect:hover,
  .guided-placeholder:hover {
    border-color: rgba(232, 25, 90, 0.35);
    box-shadow: 0 16px 38px rgba(27, 15, 34, 0.1);
    transform: translateY(-2px);
  }
}

@media screen and (max-width: 900px) {
  .hero-section::before {
    opacity: 0.45;
    right: -4rem;
  }

  .md-tabs__list {
    gap: 0.05rem;
  }

  .md-tabs__link {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }
}

@media screen and (max-width: 700px) {
  .md-main__inner {
    margin-top: 1rem;
  }

  .hero-section {
    min-height: 0;
  }

  .hero-section::before {
    height: 160px;
    right: -4rem;
    width: 160px;
  }
}
