/*
 * mnix theme: rules that tokens alone can't express. The palette, fonts and
 * sizes live in theme.json; this file only adds shape and layout details taken
 * from the mnix.dev portfolio. Delete this file (and its "stylesheets" entry)
 * and the theme still works from tokens alone.
 */

[data-ob-theme="rustbound"] {
  --mnix-brand-hue: -62;
  --mnix-brand-icon: rustbound;
}
[data-ob-theme="git-history"] {
  --mnix-brand-hue: -65;
}
[data-ob-theme="advanced-git"] {
  --mnix-brand-hue: 180;
}
[data-ob-theme="pipeline-vault"] {
  --mnix-brand-hue: 145;
}
[data-ob-theme="unbundled-kinetic"] {
  --mnix-brand-hue: -83;
}
[data-ob-theme="audio-graph"] {
  --mnix-brand-hue: -30;
}
[data-ob-theme="encapsulated-modular"] {
  --mnix-brand-hue: 86;
}

/* <mnx-typewriter> (typewriter.js) types titles out on first view. The full
   text stays in the layout so the heading never reflows while typing. */
mnx-typewriter {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
}

mnx-typewriter[typing] .mnix-typewriter-visible::after {
  content: "_";
  display: inline-block;
  width: 0;
}

.mnix-typewriter-accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mnix-typewriter-sizer {
  visibility: hidden;
}

.mnix-typewriter-visible {
  position: absolute;
  inset: 0;
}

.mnix-title-accent {
  color: var(--ob-color-accent-soft);
}

/* The portfolio centres its section headings under dim <h2> code labels. */
[data-ob-theme="mnix"] .ob-section-heading {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

[data-ob-theme="mnix"] .ob-post-title {
  text-align: left;
}

[data-ob-theme="mnix"] .ob-heading .ob-title {
  margin: 0.75rem 0 1rem;
}

[data-ob-theme="mnix"] .ob-intro:has(mnx-home) {
  max-width: none;
  margin: 0;
  padding-block: clamp(1rem, 4vw, 3rem) 2rem;
}

[data-ob-theme="mnix"] mnx-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.5fr);
  align-items: center;
  gap: 2rem;
}

[data-ob-theme="mnix"] .mnix-hero-copy {
  min-width: 0;
}

[data-ob-theme="mnix"] .mnix-hero-kicker {
  margin: 0 0 1.75rem;
  color: var(--ob-color-accent-soft);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

[data-ob-theme="mnix"] .mnix-hero-kicker a {
  text-decoration: none;
}

[data-ob-theme="mnix"] .mnix-hero-lede {
  margin: 1.5rem 0 0.5rem;
  color: var(--ob-color-accent-soft);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

[data-ob-theme="mnix"] .mnix-hero-topics {
  margin: 0 0 1rem;
  color: var(--ob-color-muted);
  font-size: 0.8rem;
}

[data-ob-theme="mnix"] .mnix-hero-description {
  max-width: 57ch;
  margin: 0;
  color: var(--ob-color-muted);
  font-size: 0.95rem;
}

[data-ob-theme="mnix"] .ob-section-heading:has(#latest) {
  max-width: none;
  margin: 0;
  text-align: left;
}

[data-ob-theme="mnix"] .ob-section-heading:has(#latest) .ob-code-label {
  color: var(--ob-color-subtle);
  font-size: 0.75rem;
}

[data-ob-theme="mnix"] #latest {
  font-size: clamp(1.65rem, 4.3vw, 3.5rem);
  line-height: 1.2;
  text-wrap: initial;
}

[data-ob-theme="mnix"] #latest mnx-typewriter {
  max-width: 100%;
}

[data-ob-theme="mnix"] .mnix-blog-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.8rem;
}

[data-ob-theme="mnix"] .mnix-blog-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  text-decoration: none;
}

[data-ob-theme="mnix"] .mnix-blog-nav .mnix-blog-primary {
  padding: 0.5rem 1rem;
  border: 1px solid var(--ob-color-accent-border);
  border-radius: var(--ob-radius-sm);
  background: var(--ob-color-accent);
  color: var(--ob-color-ink);
}

[data-ob-theme="mnix"] .mnix-blog-nav a:hover {
  text-decoration: underline;
}

.mnix-start {
  margin-block: 3rem 1rem;
  padding-block: 2rem;
  border-top: 2px solid var(--ob-color-border);
}
.mnix-start-kicker {
  color: var(--ob-color-accent-soft);
  font: 0.7rem / 1.8 var(--ob-font-mono);
}
.mnix-start #start-here {
  margin-block: 1rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  scroll-margin-top: 2rem;
}
.mnix-start > p {
  max-width: 70ch;
  color: var(--ob-color-muted);
  font-size: 0.9rem;
}
.mnix-start-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-block: 2rem;
}
.mnix-start-paths article {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 1.25rem 0;
  border-top: 1px solid var(--ob-color-accent-border);
}
.mnix-start-number {
  color: var(--ob-color-subtle);
  font: 0.8rem / 1.8 var(--ob-font-mono);
}
.mnix-start-paths h3 {
  margin-block: 0.75rem;
  font: 600 1.1rem / 1.5 var(--ob-font-body);
  color: var(--ob-color-text);
}
.mnix-start-paths p {
  color: var(--ob-color-muted);
  font-size: 0.85rem;
}
.mnix-start-paths .mnix-start-expect {
  font-size: 0.75rem;
  color: var(--ob-color-subtle);
  margin-bottom: 1.5rem;
}
.mnix-start-paths a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: 0.8rem;
}
.mnix-start-paths a:first-of-type {
  margin-top: auto;
}
.mnix-start-paths .mnix-start-outline {
  font-size: 0.75rem;
}
.mnix-start a:focus-visible {
  outline: var(--ob-focus-ring);
  outline-offset: 4px;
}
.mnix-start-more {
  padding-top: 1rem;
  border-top: 1px solid var(--ob-color-border);
}
@media (max-width: 900px) {
  .mnix-start-paths {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }
}

[data-ob-theme="mnix"] .mnix-orbit {
  position: relative;
  width: min(100%, 16rem);
  aspect-ratio: 1;
  justify-self: center;
  color: var(--ob-color-accent-soft);
  pointer-events: none;
}

[data-ob-theme="mnix"] .mnix-orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--ob-color-accent-border);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-30deg);
}

[data-ob-theme="mnix"] .mnix-orbit-ring:nth-child(2) {
  inset: 14px;
  transform: rotate(120deg);
}

[data-ob-theme="mnix"] .mnix-orbit-ring:nth-child(3) {
  inset: 28px;
  transform: rotate(240deg);
}

[data-ob-theme="mnix"] .mnix-orbit-ring::after {
  content: "";
  position: absolute;
  top: -3px;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

[data-ob-theme="mnix"] .mnix-orbit-label {
  position: absolute;
  inset: 42px;
  display: grid;
  place-content: center;
  border: 1px solid var(--ob-color-accent-border);
  border-radius: 50%;
  background: var(--ob-color-surface);
  font-size: 0.75rem;
  line-height: 1.6;
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  [data-ob-theme="mnix"] .mnix-orbit-ring {
    animation: mnix-orbit-spin 18s linear -1.5s infinite;
  }

  [data-ob-theme="mnix"] .mnix-orbit-ring:nth-child(2) {
    animation-duration: 24s;
    animation-delay: -8s;
    animation-direction: reverse;
  }

  [data-ob-theme="mnix"] .mnix-orbit-ring:nth-child(3) {
    animation-duration: 30s;
    animation-delay: -20s;
  }
}

@keyframes mnix-orbit-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

[data-ob-theme="mnix"] .mnix-feed-heading {
  margin: 0 0 1.5rem;
  color: var(--ob-color-subtle);
  font-family: var(--ob-font-body);
  font-size: 0.8rem;
  font-weight: 400;
}

/* Match the portfolio's widely spaced link pairs and mobile disclosure. */
:is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .ob-header {
  border-bottom: 0;
  padding-top: 3rem;
}

:is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .ob-header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  width: 80%;
  gap: 0;
  padding: 0;
  margin-bottom: 4rem;
}

:is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .ob-brand {
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
}

:is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .mnix-nav-brand {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: center;
}

:is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .mnix-nav-brand
  .ob-brand {
  display: flex;
}

:is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .ob-brand-logo {
  border-radius: 4px;
  filter: hue-rotate(calc(var(--mnix-brand-hue, 0) * 1deg));
}

:is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .ob-nav {
  grid-column: 1 / -1;
  grid-row: 1;
}

:is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .ob-brand-name {
  /* The portfolio shows only the logo; keep the name for screen readers. */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .ob-brand:not(:has(.ob-brand-logo))
  .ob-brand-name {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}

:is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .ob-nav
  ul {
  display: grid;
  grid-template-columns: max-content minmax(54px, 1fr) max-content;
  grid-template-rows: repeat(2, auto);
  column-gap: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

:is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .ob-nav
  li:nth-child(-n + 2):not(.mnix-nav-brand) {
  grid-column: 1;
}

:is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .ob-nav
  li:nth-last-child(-n + 2):not(.mnix-nav-brand) {
  grid-column: 3;
}

:is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .ob-nav
  li:is(:first-child, :nth-last-child(2)):not(.mnix-nav-brand) {
  grid-row: 1;
}

:is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .ob-nav
  li:is(:nth-child(2), :last-child):not(.mnix-nav-brand) {
  grid-row: 2;
}

:is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .ob-nav-link {
  padding: 0.75rem 0.25rem;
}

:is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .mnix-menu-toggle {
  display: none;
}

@media (min-width: 1024px) {
  :is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .ob-header-inner {
    width: calc((100% - 12rem) * 0.8);
  }
}

@media (max-width: 850px) {
  [data-ob-theme="mnix"] mnx-home {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-ob-theme="mnix"] .mnix-orbit {
    display: none;
  }
}

@media (max-width: 767px) {
  :is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .ob-header-inner {
    display: block;
    width: 100%;
    margin-bottom: 0;
  }

  :is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .ob-brand {
    margin-left: 1rem;
  }

  :is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .mnix-nav-brand
    .ob-brand {
    margin: 0;
  }

  :is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .ob-nav
    ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 1rem 1rem;
  }

  :is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .mnix-nav-brand {
    order: -1;
    align-self: start;
    height: 58px;
    padding-top: 2px;
  }

  :is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .mnix-navigation-ready
    .ob-nav
    li:not(.mnix-nav-brand) {
    display: none;
  }

  :is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .mnix-menu-open
    .ob-nav
    li:not(.mnix-nav-brand) {
    display: block;
  }

  :is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .mnix-menu-open
    .ob-nav
    li:first-child {
    margin-top: 1rem;
  }

  :is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .mnix-navigation-ready:not(.mnix-menu-open)
    .ob-nav
    ul {
    padding-bottom: 0;
  }

  :is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .mnix-navigation-ready
    .mnix-menu-toggle {
    position: absolute;
    top: 10px;
    left: 70px;
    display: block;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ob-color-text);
    font: 1.5rem / 1 var(--ob-font-body);
    cursor: pointer;
  }
}

@media (max-width: 639px) {
  :is([data-ob-theme="mnix"], [data-ob-theme="rustbound"], [data-ob-theme="git-history"], [data-ob-theme="advanced-git"], [data-ob-theme="pipeline-vault"], [data-ob-theme="unbundled-kinetic"], [data-ob-theme="audio-graph"], [data-ob-theme="encapsulated-modular"], [data-ob-theme="epoch-engine"]) .ob-header {
    padding-top: 0;
  }
}

/* The accent-filled hover row with the bright code-ish arrow. */
[data-ob-theme="mnix"] .ob-row-title {
  font-weight: 400;
}

[data-ob-theme="mnix"] .ob-row-arrow {
  color: var(--ob-color-accent-soft);
  font-family: var(--ob-font-body);
}

[data-ob-theme="mnix"] .ob-row:hover .ob-row-arrow,
[data-ob-theme="mnix"] .ob-row:focus-visible .ob-row-arrow {
  color: var(--ob-color-ink);
}

/* Cards (used by series) follow the project cards: thin border, 12px radius. */
[data-ob-theme="mnix"] .ob-card {
  background: var(--ob-color-surface);
}

/* Pill buttons and tags become the portfolio's squared outline buttons. */
[data-ob-theme="mnix"] .ob-tags a {
  border-color: var(--ob-color-accent-border);
  border-radius: var(--ob-radius-sm);
  color: var(--ob-color-accent-soft);
}

[data-ob-theme="mnix"] .ob-tags a:hover {
  background: var(--ob-color-accent);
  color: var(--ob-color-ink);
}

[data-ob-theme="mnix"] .ob-prose a {
  color: var(--ob-color-accent-soft);
}

[data-ob-theme="mnix"] .ob-prose :is(h2, h3) {
  color: var(--ob-color-accent-soft);
}

[data-ob-theme="mnix"] .ob-footer {
  border-top: 0;
  text-align: center;
}

[data-ob-theme="mnix"] .ob-footer-inner {
  justify-content: center;
}

/* Header search: a native <dialog> (search-dialog.js). Its title bar doubles as a drag handle. */
.mnix-search-dialog {
  box-sizing: border-box;
  width: min(40rem, calc(100vw - 2rem));
  max-height: min(34rem, calc(100vh - 2rem));
  padding: 0;
  border: 1px solid var(--ob-color-accent-border);
  border-radius: var(--ob-radius, 16px);
  background: var(--ob-color-surface);
  color: var(--ob-color-text);
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.45);
  overflow: hidden;
}

.mnix-search-dialog[open] {
  display: flex;
  flex-direction: column;
}

.mnix-search-dialog::backdrop {
  background: rgb(0 0 0 / 0.6);
}

.mnix-search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-bottom: 1px solid var(--ob-color-border);
  background: var(--ob-color-surface-raised, var(--ob-color-surface));
  color: var(--ob-color-accent-soft);
  font: 0.85rem / 1.4 var(--ob-font-mono);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.mnix-search-dragging,
.mnix-search-dragging .mnix-search-bar {
  cursor: grabbing;
}

.mnix-search-dragging {
  box-shadow: 0 36px 110px rgb(0 0 0 / 0.6);
}

.mnix-search-close {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: var(--ob-radius-sm, 8px);
  background: transparent;
  color: var(--ob-color-text);
  font: 1.4rem / 1 var(--ob-font-body);
  cursor: pointer;
}

.mnix-search-close:hover {
  background: var(--ob-color-border);
}

.mnix-search-close:focus-visible {
  outline: 2px solid var(--ob-color-accent-soft);
  outline-offset: 2px;
}

.mnix-search-dialog ob-search {
  display: block;
  min-height: 0;
  padding: 1rem;
  overflow: auto;
}
