:root,
[data-md-color-scheme="default"] {
  --md-primary-color: #08131d !important;
  --md-primary-color--dark: #000000 !important;
  --md-accent-color: #38bdf8 !important;

  --md-default-bg-color: #070c14 !important;
  --md-default-bg-color--light: #0d1522 !important;
  --md-default-fg-color: #f0f9ff !important;
  --md-default-fg-color--light: #bae6fd !important;

  --md-card-bg-color: #0d1522 !important;
  --md-card-bg-color--active: #152236 !important;
  --md-code-bg-color: #09101b !important;
  --md-code-fg-color: #f0f9ff !important;

  --md-typeset-border-color: rgba(56, 189, 248, 0.18) !important;
}

::-webkit-scrollbar-thumb {
  background: #112235;
  border: 1px solid #1c3652;
}

::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

h1 {
  color: #38bdf8 !important;
  border-bottom: 2px dashed rgba(56, 189, 248, 0.4) !important;
}

h2 {
  color: #7dd3fc !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}

h3 {
  color: #0ea5e9 !important;
}

/* Fluid types showcase */
.water-showcase-container {
  display: flex;
  gap: 32px;
  align-items: center;
  margin: 20px 0 28px;
  flex-wrap: wrap;
}

.water-showcase-left {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.water-showcase-right {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.water-types-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.water-type-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(13, 21, 34, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.water-type-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.15);
}

.water-type-slot {
  width: 56px;
  height: 56px;
  background: #0d1522;
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.water-type-slot img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  transition: transform 0.2s ease;
}

.water-type-card:hover .water-type-slot img {
  transform: scale(1.1);
}

.water-type-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.water-type-info h3 {
  margin: 0 !important;
  font-size: 16px !important;
  color: #7dd3fc !important;
}

.water-type-desc {
  margin: 0 !important;
  font-size: 13px !important;
  color: #bae6fd !important;
}

.water-type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.water-mini-tag {
  font-size: 11px;
  font-family: 'Silkscreen', monospace;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1.2;
}

.water-mini-tag.light {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
  border-color: rgba(234, 179, 8, 0.35);
}

/* Badges */
.badge {
  display: inline-block;
  font-family: 'Silkscreen', monospace;
  font-size: 11px;
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

.badge-v1-21 {
  background: rgba(168, 85, 247, 0.18) !important;
  color: #c084fc !important;
  border: 1px solid rgba(168, 85, 247, 0.45) !important;
}

/* CozaryCore button */
.header-cozarycore-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  margin-left: 12px;
  margin-right: 4px;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e0f2fe !important;
  font-family: 'Silkscreen', monospace;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  line-height: 1;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.header-cozarycore-link svg {
  display: block;
  fill: #38bdf8;
  transition: transform 0.2s ease, fill 0.2s ease;
}

.header-cozarycore-link:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #38bdf8 !important;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.header-cozarycore-link:hover svg {
  transform: scale(1.1);
  fill: #7dd3fc;
}

@media screen and (max-width: 640px) {
  .header-cozarycore-link span {
    display: none;
  }

  .header-cozarycore-link {
    padding: 6px 8px;
    margin-right: 6px;
  }
}

/* Code blocks & syntax */
.md-typeset pre {
  background-color: #09101b !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 6px !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

.md-typeset pre > code {
  color: #f0f9ff !important;
  font-family: var(--md-code-font), 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13.5px;
  line-height: 1.6;
}

.md-typeset :not(pre) > code {
  color: #7dd3fc !important;
  background-color: rgba(13, 21, 34, 0.85) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
}

.highlight .k,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kt,
.highlight .kc {
  color: #38bdf8 !important;
  font-weight: 600;
}

.highlight .o,
.highlight .ow {
  color: #38bdf8 !important;
}

.highlight .p {
  color: #94a3b8 !important;
}

.highlight .na,
.highlight .nv,
.highlight .vc,
.highlight .vg,
.highlight .vi,
.highlight .vm {
  color: #7dd3fc !important;
}

.highlight .m,
.highlight .mb,
.highlight .mf,
.highlight .mh,
.highlight .mi,
.highlight .mo,
.highlight .il {
  color: #facc15 !important;
  font-weight: 500;
}

.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sx,
.highlight .sr {
  color: #4ade80 !important;
}

.highlight .bp,
.highlight .nb,
.highlight .no {
  color: #c084fc !important;
}

.highlight .c,
.highlight .c1,
.highlight .ch,
.highlight .cm,
.highlight .cs {
  color: #64748b !important;
  font-style: italic;
}