/*! tailwindcss v4.2.0 | MIT License | https://tailwindcss.com */
:root {
  --t-accent: #f97316;
  --t-accent-hover: #ea580c;
  --t-surface: #f4f4f5;
  --t-border: #e4e4e7;
}
html.dark {
  --t-accent: #fb923c;
  --t-accent-hover: #f97316;
  --t-surface: #27272a;
  --t-border: #3f3f46;
}
.article-title {
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1.2;
  letter-spacing: -1.44px;
  margin-bottom: 2rem;
  display: block;
  text-align: center;
}
.article-info {
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: rgb(161 161 170);
  text-align: center;
}
.read-time {
  margin-top: 0.25rem;
  margin-bottom: 2.5rem;
  font-size: 0.875rem;
  color: rgb(161 161 170);
  text-align: center;
}
.article-content {
  font-size: 1.125rem;
  line-height: 2;
  color: rgb(82 82 91);
  word-break: break-word;
  position: relative;
  display: flex;
  flex: 1;
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: rgb(63 63 70);
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}
.article-content .heading-anchor {
  opacity: 0;
  color: rgb(249 115 22);
  text-decoration: none;
  margin-left: 0.25rem;
  transition: opacity 0.15s ease;
}
.article-content h1:hover .heading-anchor,
.article-content h2:hover .heading-anchor,
.article-content h3:hover .heading-anchor,
.article-content h4:hover .heading-anchor,
.article-content h5:hover .heading-anchor,
.article-content h6:hover .heading-anchor {
  opacity: 1;
}
.article-content h2 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: -1.2px;
}
.article-content h3 {
  font-size: 1.5rem;
  line-height: 2rem;
  letter-spacing: -0.96px;
}
.article-content h4 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  letter-spacing: -0.48px;
}
.article-content h5 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  letter-spacing: -0.32px;
}
.article-content h6 {
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: -0.32px;
}
.article-content p {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}
.article-content img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  margin-bottom: 1rem;
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  cursor: zoom-in;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1) !important;
}
.article-content video {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}
.article-content a {
  color: var(--t-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.article-content a:hover {
  color: var(--t-accent-hover);
}
.article-content blockquote {
  border-left: 4px solid var(--t-accent);
  padding-left: 1rem;
  margin: 1rem 0;
  color: rgb(113 113 122);
  background: var(--t-surface);
  border-radius: 0 0.5rem 0.5rem 0;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.article-content ul,
.article-content ol {
  padding-left: 2rem;
  margin: 0.5rem 0;
}
.article-content ul {
  list-style-type: disc;
}
.article-content ol {
  list-style-type: decimal;
}
.article-content li {
  margin: 0.25rem 0;
}
.article-content hr {
  border-color: var(--t-border);
  margin: 2rem 0;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.article-content th,
.article-content td {
  border: 1px solid var(--t-border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.article-content th {
  background: var(--t-surface);
  font-weight: 600;
}
.article-content pre {
  font-size: 14px;
  padding: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-radius: 0.75rem;
  box-shadow: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  overflow: auto;
  max-height: 30.5em;
  max-width: 100%;
}
.article-content pre code {
  display: block;
  overflow-x: auto;
  position: relative;
}
.article-content pre code .code-lang-label {
  display: block;
  width: 100%;
  text-align: right;
  height: 0.5rem;
  position: relative;
}
.article-content pre code .code-lang-label::after {
  content: attr(data-lang);
}
.article-content :not(pre) > code {
  background: var(--t-surface);
  color: rgb(239 68 68);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}
.code-lang-label {
  display: inline-block;
  float: right;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.1rem 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 0.25rem;
  user-select: none;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}
.code-lang-label:hover {
  color: rgba(255, 255, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.08);
}
.code-lang-label.copied {
  color: #4ade80;
}
.article-content code {
  white-space: pre;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 1.5px 10px;
  border-radius: 9999px;
  border: 1px solid var(--t-border);
  font-size: 0.75rem;
  color: var(--t-text-3);
  background: var(--t-surface);
  transition: background 0.2s, color 0.2s;
}
.tag-pill:hover {
  background: var(--t-border);
  color: var(--t-text-2);
}
.t-accent {
  color: var(--t-accent);
}
.t-link {
  color: var(--t-accent);
  transition: color 0.2s;
}
.t-link:hover {
  color: var(--t-accent-hover);
}
.dark .article-title {
  color: rgb(244 244 245);
}
.dark .article-content {
  color: rgb(212 212 216);
}
.dark .article-content h1,
.dark .article-content h2,
.dark .article-content h3,
.dark .article-content h4,
.dark .article-content h5,
.dark .article-content h6 {
  color: rgb(244 244 245);
}
.dark .article-content :not(pre) > code {
  color: rgb(248 113 113);
}
.katex-error {
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.dark .katex {
  color: rgb(228 228 231);
}
.dark .katex .mord,
.dark .katex .mbin,
.dark .katex .mrel,
.dark .katex .mopen,
.dark .katex .mclose,
.dark .katex .mpunct,
.dark .katex .minner {
  color: rgb(228 228 231);
}
@media (max-width: 768px) {
  .article-title {
    font-size: 1.75rem;
    line-height: 1.25;
    letter-spacing: -1.12px;
  }
}
@media (min-width: 769px) {
  .article-info,
  .read-time {
    font-size: 1rem;
  }
}
.dark .article-content img {
  box-shadow: rgba(255, 255, 255, 0.08) 0px 0px 0px 1px;
}
.dark .article-content pre {
  box-shadow: rgba(255, 255, 255, 0.08) 0px 0px 0px 1px;
}
.medium-zoom-overlay {
  z-index: 9999 !important;
}
.medium-zoom-image {
  z-index: 10000 !important;
}
.medium-zoom-image--opened {
  border-radius: 0.75rem !important;
}
.atlas-carousel .medium-zoom-image:not(.medium-zoom-image--opened) {
  z-index: auto !important;
}
.vp-player {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #1c1c1c;
  user-select: none;
  position: relative;
}
.vp-media-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.vp-media-wrap > video {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}
.vp-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.vp-play-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: scale(1);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.vp-play-icon::after {
  content: '';
  border-style: solid;
  border-color: transparent transparent transparent #fff;
  border-width: 0.55rem 0 0.55rem 1rem;
  margin-left: 0.2rem;
}
.vp-overlay:hover .vp-play-icon {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.6);
}
.vp-player.is-playing .vp-overlay .vp-play-icon {
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
}
.vp-controls {
  position: relative;
  width: 100%;
  background: #0b0b0b;
}
.vp-seekbar {
  position: relative;
  width: 100%;
  height: 28px;
  cursor: pointer;
}
.vp-seekbar-inner {
  position: absolute;
  top: 11px;
  left: 15px;
  right: 15px;
  height: 6px;
  border-radius: 3px;
  background: #313131;
  overflow: hidden;
}
.vp-progress-past {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(249, 115, 22, 0.5);
  pointer-events: none;
}
.vp-progress-cur {
  position: absolute;
  top: 0;
  height: 100%;
  background: #f97316;
  pointer-events: none;
}
.vp-sections-seps {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.vp-sep {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: #0b0b0b;
  transform: translateX(-50%);
}
.vp-sparkles-wrap {
  position: absolute;
  top: 14px;
  left: 15px;
  width: calc(100% - 30px);
  height: 0;
  pointer-events: none;
  z-index: 10;
}
.vp-sparkles {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.vp-player.is-done .vp-sparkles {
  opacity: 1;
}
.vp-sparkle {
  position: absolute;
  top: 0;
  left: 0;
}
.vp-sparkle .vp-inner {
  position: absolute;
}
.vp-sparkle .vp-inner::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f97316;
}
.vp-sparkle:nth-child(1) {
  transform: rotate(-108deg);
}
.vp-sparkle:nth-child(2) {
  transform: rotate(-126deg);
}
.vp-sparkle:nth-child(3) {
  transform: rotate(-54deg);
}
.vp-sparkle:nth-child(4) {
  transform: rotate(-162deg);
}
.vp-sparkle:nth-child(5) {
  transform: rotate(-18deg);
}
.vp-sparkle:nth-child(6) {
  transform: rotate(-72deg);
}
.vp-sparkle:nth-child(7) {
  transform: rotate(-144deg);
}
.vp-sparkle:nth-child(8) {
  transform: rotate(-90deg);
}
.vp-sparkle:nth-child(9) {
  transform: rotate(-36deg);
}
.vp-sparkle:nth-child(10) {
  transform: rotate(-180deg);
}
.vp-player.is-done .vp-sparkles .vp-sparkle:nth-child(1) .vp-inner,
.vp-player.is-done .vp-sparkles .vp-sparkle:nth-child(2) .vp-inner,
.vp-player.is-done .vp-sparkles .vp-sparkle:nth-child(3) .vp-inner {
  transform: translate(25px);
  transition: transform 1.2s cubic-bezier(0, 0, 0, 1);
}
.vp-player.is-done .vp-sparkles .vp-sparkle:nth-child(4) .vp-inner,
.vp-player.is-done .vp-sparkles .vp-sparkle:nth-child(5) .vp-inner,
.vp-player.is-done .vp-sparkles .vp-sparkle:nth-child(6) .vp-inner {
  transform: translate(30px);
  transition: transform 0.5s cubic-bezier(0, 0, 0, 1);
}
.vp-player.is-done .vp-sparkles .vp-sparkle:nth-child(7) .vp-inner,
.vp-player.is-done .vp-sparkles .vp-sparkle:nth-child(8) .vp-inner,
.vp-player.is-done .vp-sparkles .vp-sparkle:nth-child(9) .vp-inner,
.vp-player.is-done .vp-sparkles .vp-sparkle:nth-child(10) .vp-inner {
  transform: translate(35px);
  transition: transform 0.3s cubic-bezier(0, 0, 0, 1);
}
.vp-player.is-done .vp-sparkles .vp-sparkle .vp-inner::after {
  transition: transform 1.2s 0.25s cubic-bezier(0, 0, 0, 1);
  transform: scale(0.0001);
}
.vp-toolbar {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  overflow: visible;
  opacity: 0;
  padding: 0 12px;
  box-sizing: border-box;
  gap: 8px;
  background: #0b0b0b;
  transform: translateY(100%);
  transition: transform 0.25s ease, opacity 0.2s ease;
  pointer-events: none;
}
.vp-controls:hover .vp-toolbar,

.vp-player.is-speed-open .vp-toolbar {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.vp-toolbar-left,
.vp-toolbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.vp-toolbar-right {
  flex-shrink: 0;
}
.vp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
}
.vp-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.vp-btn svg {
  flex-shrink: 0;
}
.vp-btn .vp-icon-pause {
  display: none;
}
.vp-btn .vp-icon-mute {
  display: none;
}
.vp-btn .vp-icon-exit-fs {
  display: none;
}
.vp-player.is-playing .vp-btn .vp-icon-play {
  display: none;
}
.vp-player.is-playing .vp-btn .vp-icon-pause {
  display: block;
}
.vp-player.is-muted .vp-btn .vp-icon-vol {
  display: none;
}
.vp-player.is-muted .vp-btn .vp-icon-mute {
  display: block;
}
.vp-player.is-fullscreen .vp-btn .vp-icon-fs {
  display: none;
}
.vp-player.is-fullscreen .vp-btn .vp-icon-exit-fs {
  display: block;
}
.vp-time {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  letter-spacing: 0.02em;
  padding: 0 4px;
}
.vp-time-sep {
  color: rgba(255, 255, 255, 0.35);
}
.vp-speed-wrap {
  position: relative;
}
.vp-speed-btn {
  min-width: 3rem;
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
}
.vp-speed-menu {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 18, 18, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 64px;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.vp-speed-menu.is-open {
  display: flex;
}
.vp-speed-opt {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 1rem;
  text-align: center;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.vp-speed-opt:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.vp-speed-opt.is-active {
  color: #f97316;
}
.vp-vol-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
}
.vp-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 60px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
}
.vp-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.vp-vol-slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
}
.article-body a[href="#broken-wikilink"],
.atlas-body a[href="#broken-wikilink"] {
  color: #c92a2a;
  text-decoration: line-through;
  cursor: not-allowed;
}
html.dark .article-body a[href="#broken-wikilink"],
html.dark .atlas-body a[href="#broken-wikilink"] {
  color: #ff8787;
}
