/* Local originals: same font files and visual tokens as the approved Next.js UI. */
@font-face {
  font-family: Outfit;
  src: url('fonts/outfit.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --font-outfit: Outfit;
  --font-jetbrains: 'JetBrains Mono';
  --font-sans: Outfit, sans-serif;
  --font-heading: Outfit, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
body {
  margin: 0;
}
img {
  height: auto;
}
img.object-cover {
  height: 100%;
}
.mb-site [hidden] {
  display: none !important;
}
.mb-site svg {
  flex-shrink: 0;
}
.mb-site a > svg {
  display: inline-block;
  vertical-align: middle;
}
.mb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s;
}
.mb-button:hover {
  background: #080da3;
}
.mb-button-outline {
  border-color: var(--primary);
  background: transparent;
  color: var(--primary);
}
.mb-button-outline:hover {
  background: #080db50d;
}
.mb-button-small {
  padding-inline: 16px;
}
.mb-button:active {
  transform: scale(0.97);
}
.mb-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--muted);
  color: var(--foreground);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.mb-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 400;
}
.mb-filter:hover {
  border-color: var(--primary);
}
.mb-filter.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.mb-search {
  display: flex;
  min-width: 0;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  height: 44px;
}
.mb-search input {
  min-width: 0;
  flex: 1;
  padding: 10px 14px;
  width: 100%;
  background: transparent;
  font-size: 16px;
}
.mb-search button {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 42px;
}
.mb-search:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.mb-search input:focus {
  outline: none;
}
.mb-pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
}
.mb-pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.mb-pagination .current {
  background: var(--primary);
  color: white;
}
.mb-menu-toggle,
.mb-menu-close {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.mb-menu-toggle {
  display: flex;
}
.mb-menu-close {
  display: flex;
  position: absolute;
  right: 16px;
  top: 16px;
}
.mb-mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(90vw, 380px);
  max-width: 100vw;
  max-height: none;
  height: 100dvh;
  padding: 32px 24px;
  border: 0;
  border-left: 1px solid var(--border);
  background: white;
  color: var(--foreground);
  box-shadow: -8px 0 30px #00000012;
}
.mb-mobile-menu::backdrop {
  background: #0006;
}
.mb-mobile-menu:not([open]) {
  display: none;
}
.mb-skip {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 100000;
  padding: 16px;
  border-radius: 8px;
  background: white;
  color: var(--primary);
}
.mb-skip:focus {
  top: 16px;
}
.mb-header.is-scrolled {
  border-color: var(--border);
}
.admin-bar .mb-header {
  top: 32px;
}
.mb-nav-list {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 16px;
  color: var(--muted-foreground);
}
.mb-nav-list .current-menu-item {
  color: var(--primary);
}
.mb-site details > summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
}
.mb-site summary::-webkit-details-marker {
  display: none;
}
.mb-site details[open] > summary svg {
  transform: rotate(180deg);
}
.mb-site details [data-state] {
  height: auto;
}
.mb-syllabus {
  border-bottom: 1px solid var(--border);
  padding-block: 16px;
}
.mb-syllabus summary {
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.mb-syllabus summary:after {
  content: '+';
  color: var(--primary);
  font-size: 22px;
}
.mb-syllabus[open] summary:after {
  content: '−';
}
.mb-syllabus ol {
  list-style: none;
  padding: 0;
}
.mb-syllabus li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.mb-syllabus li span {
  white-space: nowrap;
  color: var(--muted-foreground);
}
[data-toc] {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted-foreground);
}
[data-toc] a:hover {
  color: var(--primary);
}
.mb-toc-mobile {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
#mb-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 0;
  height: 3px;
  background: var(--primary);
}
.mb-status {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: calc(100vw - 48px);
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 24px #0001;
  z-index: 1000;
  font-size: 14px;
}
.mb-site .prose-content pre {
  overflow: auto;
  padding: 20px;
  background: #0d1117;
  color: #e6edf3;
  border-radius: 12px;
  font-size: 13px;
}
.mb-site .prose-content pre.shiki {
  border-radius: 0;
}
.mb-site .prose-content .is-prompt {
  white-space: pre-wrap;
  background: var(--dark);
  color: white;
}
.mb-site [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}
.wp-block-image img {
  height: auto;
}
.wp-block-table {
  overflow-x: auto;
}
.prose-content :where(img, video, iframe) {
  max-width: 100%;
}
@media (min-width: 1024px) {
  .mb-menu-toggle {
    display: none;
  }
  .mb-search {
    width: 288px;
  }
}
@media (max-width: 782px) {
  .admin-bar .mb-header {
    top: 46px;
  }
}
@media (max-width: 600px) {
  .admin-bar .mb-header {
    top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.mb-badge {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted-foreground);
}
.mb-badge[class*='bg-white'] {
  color: var(--foreground);
}
.mb-badge-dark {
  background: #ffffff1a;
  color: #9fcdff;
}
.mb-product-content > p:not([class]) {
  margin-block: 16px;
  line-height: 1.8;
  color: var(--muted-foreground);
}
.mb-product-content > h2:not([class]) {
  font-size: 24px;
  margin: 40px 0 16px;
}
.mb-site summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}
/* Native block content keeps the approved white canvas and local typography. */
.mb-site .wp-block-group {
  box-sizing: border-box;
}
.mb-site .wp-block-image {
  margin: 0;
}
.mb-site figure.wp-block-image.object-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mb-site .wp-block-details > summary {
  padding-block: 20px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.mb-site .wp-block-details > summary::after {
  content: '⌄';
  color: var(--muted-foreground);
  font-weight: 400;
}
.mb-site .wp-block-details[open] > summary::after {
  transform: rotate(180deg);
}
.mb-site .wp-block-details > summary svg {
  display: none;
}
.mb-site .wp-block-details > :not(summary) {
  margin-block: 0;
}
.mb-site .wp-block-table {
  margin: 0;
  overflow-x: auto;
}
.mb-site .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}
.mb-custom-logo {
  display: block;
  width: 162px;
  max-width: 100%;
}
.mb-custom-logo img {
  width: 100%;
  max-height: 44px;
  object-fit: contain;
}
.mb-nav-mobile {
  display: grid;
  gap: 8px;
}
.mb-nav-mobile a {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 12px;
}
.mb-nav-mobile .current-menu-item a {
  color: var(--primary);
}
.mb-code {
  padding: 20px;
  overflow: auto;
  white-space: pre;
  font:
    13px/1.8 'JetBrains Mono',
    monospace;
  color: #e6edf3;
}
.mb-footer-widget :where(input, textarea, select) {
  max-width: 100%;
}
.hero-description br {
  display: none;
}
@media (min-width: 640px) {
  .hero-description br {
    display: block;
  }
}
.lesson-step > .mb-was-span {
  color: var(--primary);
  font-size: 12px;
  margin-top: 4px;
}
p.testimonial-number {
  display: inline;
}
.mb-footer-menu {
  display: grid;
  gap: 8px;
}
