/*
 * SPDCalc Docsify Theme
 * Based on the Vue theme structure, using the SPDCalc / Flat UI color palette.
 */

@import url("https://fonts.googleapis.com/css?family=Roboto+Mono|Roboto:300,400,500,700");

/* ─── Color palette ────────────────────────────────────────── */
/* Raw Flat UI palette values — only referenced by semantic vars below */

:root {
  --color-turquoise:    #1abc9c;
  --color-green-sea:    #16a085;
  --color-midnight-blue:#2c3e50;
  --color-wet-asphalt:  #34495e;
  --color-belize-hole:  #2980b9;
  --color-amethyst:     #9b59b6;
  --color-concrete:     #95a5a6;
  --color-asbestos:     #7f8c8d;
  --color-silver:       #bdc3c7;
  --color-clouds:       #ecf0f1;
  --color-carrot:       #e67e22;
  --color-alizarin:     #e74c3c;
  --color-sun-flower:   #f1c40f;
  --color-white:        #ffffff;

  /* Derived surface colors (not in Flat UI) */
  --color-page-bg:      #f4f7f9;
  --color-code-bg:      #f4f6f8;
  --color-surface:      #f8fafc;
  --color-border:       #dde3e9;
}

/* ─── Semantic variables ───────────────────────────────────── */
/* All component colors are defined here and reference the palette above */

:root {
  /* Accent / theme */
  --theme-color:              var(--color-turquoise);

  /* Body */
  --body-bg:                  var(--color-page-bg);
  --body-text:                var(--color-wet-asphalt);

  /* Headings & anchors */
  --heading-color:            var(--color-midnight-blue);
  --muted-text:               var(--color-asbestos);

  /* Links */
  --link-color:               var(--theme-color);

  /* Borders & surfaces */
  --border-color:             var(--color-border);
  --surface-color:            var(--color-surface);

  /* Sidebar */
  --sidebar-bg:               var(--color-midnight-blue);
  --sidebar-title-text:       var(--color-white);
  --sidebar-text:             var(--color-clouds);
  --sidebar-nav-text:         var(--color-silver);
  --sidebar-section-text:     var(--color-concrete);
  --sidebar-nav-hover:        var(--color-white);
  --sidebar-nav-active:       var(--theme-color);

  /* Sidebar toggle */
  --toggle-bg:                var(--color-midnight-blue);
  --toggle-icon:              var(--color-sun-flower);

  /* Search (inside dark sidebar) */
  --search-input-bg:          rgba(255, 255, 255, 0.12);
  --search-input-bg-focus:    rgba(255, 255, 255, 0.18);
  --search-input-border:      rgba(255, 255, 255, 0.2);
  --search-input-text:        var(--color-clouds);
  --search-placeholder:       var(--color-asbestos);
  --search-divider:           rgba(255, 255, 255, 0.08);
  --search-result-text:       var(--color-clouds);

  /* App-nav dropdown */
  --nav-dropdown-bg:          var(--color-midnight-blue);
  --nav-dropdown-border:      var(--color-wet-asphalt);
  --nav-dropdown-text:        var(--color-silver);

  /* Scrollbar (on dark sidebar) */
  --scrollbar-thumb:          rgba(255, 255, 255, 0.15);
  --scrollbar-track:          rgba(255, 255, 255, 0.05);

  /* Kbd */
  --kbd-bg:                   var(--color-code-bg);
  --kbd-border:               var(--color-silver);

  /* Code */
  --code-bg:                  var(--color-code-bg);
  --code-inline-color:        var(--color-belize-hole);
  --code-block-text:          var(--color-wet-asphalt);
  --code-label-color:         var(--color-concrete);
  --code-output-border:       var(--color-silver);

  /* Tables */
  --table-header-bg:          var(--color-page-bg);
  --table-stripe-bg:          var(--color-surface);

  /* Tip / callout */
  --tip-bg:                   var(--color-surface);
  --tip-accent:               var(--color-alizarin);
  --tip-code-bg:              var(--color-border);
  --warn-bg:                  rgba(26, 188, 156, 0.08);

  /* Top navbar */
  --navbar-height:            40px;
  --navbar-bg:                var(--color-midnight-blue);
  --navbar-text:              var(--color-clouds);
  --navbar-text-hover:        var(--color-white);
  --navbar-border:            rgba(255, 255, 255, 0.08);
  --navbar-link-active-color: var(--theme-color);

  /* Cover page */
  --cover-mask-bg:            var(--color-midnight-blue);

  /* Syntax highlighting */
  --syntax-comment:           var(--color-concrete);
  --syntax-number:            var(--color-carrot);
  --syntax-punctuation:       var(--color-asbestos);
  --syntax-string:            var(--theme-color);
  --syntax-tag:               var(--color-belize-hole);
  --syntax-selector:          var(--color-amethyst);
  --syntax-url:               var(--color-green-sea);
  --syntax-keyword:           var(--color-carrot);
  --syntax-inserted-border:   var(--color-midnight-blue);
  --syntax-error:             var(--color-alizarin);
}

/* ─── Reset ────────────────────────────────────────────────── */

* {
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-text-size-adjust: none;
  -webkit-touch-callout: none;
  box-sizing: border-box;
}

body:not(.ready) {
  overflow: hidden;
}

body:not(.ready) [data-cloak],
body:not(.ready) .app-nav,
body:not(.ready) > nav {
  display: none;
}

div#app {
  font-size: 30px;
  font-weight: lighter;
  margin: 40vh auto;
  text-align: center;
}

div#app:empty::before {
  content: 'Loading...';
}

img.emoji {
  height: 1.2em;
  vertical-align: middle;
}

span.emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1.2em;
  vertical-align: middle;
}

/* ─── Progress bar ─────────────────────────────────────────── */

.progress {
  background-color: var(--theme-color);
  height: 2px;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  transition: width 0.2s, opacity 0.4s;
  width: 0%;
  z-index: 999999;
}

/* ─── Search ───────────────────────────────────────────────── */

.search {
  border-bottom: none !important;
  padding: 6px 16px;
}

.search .input-wrap {
  border: none;
}

.search input {
  background: var(--search-input-bg);
  border: 1px solid var(--search-input-border);
  border-radius: 6px;
  color: var(--search-input-text);
  outline: none;
  padding: 6px 12px;
  width: 100%;
}

.search input::placeholder {
  color: var(--search-placeholder);
}

.search input:focus {
  background: var(--search-input-bg-focus);
  border-color: var(--theme-color);
}

.search .results-panel {
  background: var(--sidebar-bg);
  padding: .5em .5em;
}

.search .matching-post {
  border-bottom: 1px solid var(--search-divider);
}

.search .matching-post a {
  color: var(--search-result-text);
}

.search a:hover {
  color: var(--theme-color);
}

.search .search-keyword {
  color: var(--theme-color);
  font-style: normal;
  font-weight: bold;
}

/* ─── Base ─────────────────────────────────────────────────── */

html,
body {
  height: 100%;
}

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  background-color: var(--body-bg);
  color: var(--body-text);
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  letter-spacing: 0;
  margin: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

kbd {
  background-color: var(--kbd-bg);
  border: 1px solid var(--kbd-border);
  border-radius: 3px;
  display: inline-block;
  font-size: 12px !important;
  line-height: 12px;
  margin-bottom: 3px;
  padding: 3px 5px;
  vertical-align: middle;
}

li input[type='checkbox'] {
  margin: 0 0.2em 0.25em 0;
  vertical-align: middle;
}

/* ─── App nav ──────────────────────────────────────────────── */

.app-nav {
  align-items: center;
  background-color: var(--navbar-bg);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  height: var(--navbar-height);
  justify-content: flex-end;
  left: 300px;
  margin: 0;
  padding: 0 24px;
  position: fixed;
  transition: left 250ms ease;
  right: 0;
  text-align: right;
  top: 0;
  z-index: 100;
}

.app-nav.no-badge {
  padding-right: 24px;
}

.app-nav p {
  margin: 0;
}

.app-nav > a {
  margin: 0 0.5rem;
  padding: 0;
}

.app-nav ul,
.app-nav li {
  display: inline-flex;
  align-items: center;
  list-style: none;
  margin: 0;
  height: 100%;
}

.app-nav a {
  color: var(--navbar-text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0 12px;
  text-decoration: none;
  transition: color 0.2s;
}

.app-nav a:hover {
  color: var(--navbar-text-hover);
  text-decoration: underline;
}

.app-nav a.active {
  color: var(--navbar-link-active-color);
}

.app-nav li {
  cursor: pointer;
  position: relative;
}

.app-nav li ul {
  background-color: var(--nav-dropdown-bg);
  border: 1px solid var(--nav-dropdown-border);
  border-radius: 4px;
  box-sizing: border-box;
  display: none;
  max-height: calc(100vh - var(--navbar-height));
  overflow-y: auto;
  padding: 6px 0;
  position: absolute;
  right: 0;
  text-align: left;
  top: 100%;
  white-space: nowrap;
}

.app-nav li ul li {
  display: block;
  height: auto;
  margin: 0;
}

.app-nav li ul a {
  border-radius: 0;
  color: var(--nav-dropdown-text);
  display: block;
  font-size: 14px;
  height: auto;
  padding: 8px 16px;
}

.app-nav li ul a:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.app-nav li ul a.active {
  border-bottom: 0;
}

.app-nav li:hover ul {
  display: block;
}

/* ─── GitHub corner ────────────────────────────────────────── */

.github-corner {
  border-bottom: 0;
  position: fixed;
  right: 0;
  text-decoration: none;
  top: 0;
  z-index: 1;
}

.github-corner:hover .octo-arm {
  animation: octocat-wave 560ms ease-in-out;
}

.github-corner svg {
  color: var(--color-white);
  fill: var(--theme-color);
  height: 80px;
  width: 80px;
}

/* ─── Main layout ──────────────────────────────────────────── */

main {
  display: block;
  height: 100%;
  position: relative;
  width: 100vw;
  z-index: 0;
}

main.hidden {
  display: none;
}

.anchor {
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s;
}

.anchor span {
  color: var(--body-text);
}

.anchor:hover {
  text-decoration: underline;
}

/* ─── Sidebar ──────────────────────────────────────────────── */

.sidebar {
  background-color: var(--sidebar-bg);
  border-right: none;
  bottom: 0;
  color: var(--sidebar-text);
  left: 0;
  overflow-y: auto;
  padding: 24px 0 0;
  position: absolute;
  top: 0;
  transition: transform 250ms ease;
  width: 300px;
  z-index: 20;
}

.sidebar > h1 {
  color: var(--sidebar-title-text);
  font-size: 1.5rem;
  font-weight: 300;
  margin: 0 auto 1rem;
  text-align: center;
}

.sidebar > h1 a {
  color: inherit;
  text-decoration: none;
}

.sidebar > h1 .app-nav {
  display: block;
  position: static;
}

.sidebar .sidebar-nav {
  line-height: 2em;
  padding-bottom: 40px;
}

.sidebar li.collapse .app-sub-sidebar {
  display: none;
}

.sidebar ul {
  margin: 0 0 0 15px;
  padding: 0;
}

.sidebar li {
  margin: 6px 0;
}

.sidebar li > p {
  color: var(--sidebar-section-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 12px 0 4px;
  text-transform: uppercase;
}

.sidebar ul,
.sidebar ul li {
  list-style: none;
}

.sidebar ul li a {
  border-bottom: none;
  color: var(--sidebar-nav-text);
  display: block;
  font-size: 14px;
  font-weight: normal;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  transition: color 0.2s;
  white-space: nowrap;
}

.sidebar ul li a:hover {
  color: var(--sidebar-nav-hover);
  text-decoration: none;
}

.sidebar ul li ul {
  padding-left: 20px;
}

.sidebar ul li ul {
  padding: 0;
}

.sidebar ul li.active > a {
  border-right: 4px solid var(--sidebar-nav-active);
  color: var(--sidebar-nav-active);
  font-weight: 600;
}

.app-sub-sidebar li::before {
  content: '-';
  float: left;
  padding-right: 4px;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
}

.sidebar:hover::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
}

.sidebar:hover::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

/* ─── Sidebar toggle ───────────────────────────────────────── */

.sidebar-toggle {
  appearance: none;
  background: var(--toggle-bg);
  border: 0;
  cursor: pointer;
  height: 32px;
  left: 0;
  outline: none;
  padding: 0;
  position: absolute;
  top: 60px;
  transition: transform 250ms ease;
  width: 32px;
  z-index: 30;
}

.sidebar-toggle-button {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.sidebar-toggle:hover .sidebar-toggle-button {
  opacity: 0.7;
}

.sidebar-toggle span {
  background-color: var(--toggle-icon);
  display: block;
  height: 2px;
  margin: 2px 0;
  width: 14px;
}

body.sticky .sidebar,
body.sticky .sidebar-toggle {
  position: fixed;
}

/* ─── Content area ─────────────────────────────────────────── */

.content {
  bottom: 0;
  left: 300px;
  padding-top: 20px;
  position: absolute;
  right: 0;
  top: 0;
  transition: transform 250ms ease;
}

.markdown-section {
  margin: 0 auto;
  max-width: 80%;
  padding: 30px 40px 60px;
  position: relative;
}

.markdown-section > * {
  box-sizing: border-box;
  font-size: inherit;
}

.markdown-section > :first-child {
  margin-top: 0 !important;
}

.markdown-section hr {
  border: none;
  border-bottom: 1px solid var(--border-color);
  margin: 2em 0;
}

.markdown-section iframe {
  border: 1px solid var(--border-color);
  min-width: 100%;
  width: 1px;
}

.markdown-section table {
  border-collapse: collapse;
  border-spacing: 0;
  display: block;
  margin-bottom: 1rem;
  overflow: auto;
  width: 100%;
}

.markdown-section th {
  background-color: var(--table-header-bg);
  border: 1px solid var(--border-color);
  font-weight: bold;
  padding: 6px 13px;
}

.markdown-section td {
  border: 1px solid var(--border-color);
  padding: 6px 13px;
}

.markdown-section tr {
  border-top: 1px solid var(--border-color);
}

.markdown-section tr:nth-child(2n) {
  background-color: var(--table-stripe-bg);
}

.markdown-section p.tip {
  background-color: var(--tip-bg);
  border-bottom-right-radius: 2px;
  border-left: 4px solid var(--tip-accent);
  border-top-right-radius: 2px;
  margin: 2em 0;
  padding: 12px 24px 12px 30px;
  position: relative;
}

.markdown-section p.tip::before {
  background-color: var(--tip-accent);
  border-radius: 100%;
  color: var(--color-white);
  content: '!';
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  height: 20px;
  left: -12px;
  line-height: 20px;
  position: absolute;
  text-align: center;
  top: 14px;
  width: 20px;
}

.markdown-section p.tip code {
  background-color: var(--tip-code-bg);
}

.markdown-section p.tip em {
  color: var(--body-text);
}

.markdown-section p.warn {
  background: var(--warn-bg);
  border-radius: 2px;
  padding: 1rem;
}

.markdown-section ul.task-list > li {
  list-style-type: none;
}

/* ─── Sidebar closed state ─────────────────────────────────── */

.sidebar-toggle {
  transform: translateX(300px);
}

body.close .sidebar {
  transform: translateX(-300px);
}

body.close .sidebar-toggle {
  transform: translateX(0px);
}

body.close .content {
  transform: translateX(-300px);
}

body.close .app-nav {
  left: 0;
}

/* ─── Print ────────────────────────────────────────────────── */

@media print {
  .github-corner,
  .sidebar-toggle,
  .sidebar,
  .app-nav {
    display: none;
  }
}

/* ─── Mobile ───────────────────────────────────────────────── */

@media screen and (max-width: 768px) {
  .github-corner,
  .sidebar-toggle,
  .sidebar {
    position: fixed;
  }

  .app-nav {
    display: none;
  }

  .app-nav li ul {
    top: 100%;
  }

  main {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
  }

  .sidebar {
    left: -300px;
    top: 0;
    transition: transform 250ms ease;
  }

  .content {
    left: 0;
    max-width: 100vw;
    padding-top: 20px;
    position: static;
    transition: transform 250ms ease;
  }

  .markdown-section {
    max-width: 100%;
    padding: 20px 20px 20px 46px;
  }

  .app-nav,
  .github-corner {
    transition: transform 250ms ease;
  }

  .sidebar-toggle {
    position: fixed;
    top: 12px;
    transform: translateX(0px);
  }

  body.close .sidebar {
    transform: translateX(300px);
  }

  body.close .sidebar-toggle {
    transform: translateX(300px);
  }

  body.close .content {
    transform: translateX(300px);
  }

  body.close .app-nav,
  body.close .github-corner {
    display: none;
  }

  .github-corner:hover .octo-arm {
    animation: none;
  }

  .github-corner .octo-arm {
    animation: octocat-wave 560ms ease-in-out;
  }
}

@keyframes octocat-wave {
  0%, 100% { transform: rotate(0); }
  20%, 60%  { transform: rotate(-25deg); }
  40%, 80%  { transform: rotate(10deg); }
}

/* ─── Cover page ───────────────────────────────────────────── */

section.cover {
  align-items: center;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: none;
  min-height: 100vh;
  position: relative;
  width: 100%;
}

section.cover.show {
  display: flex;
}

section.cover.has-mask .mask {
  background-color: var(--cover-mask-bg);
  bottom: 0;
  opacity: 0.85;
  position: absolute;
  top: 0;
  width: 100%;
}

section.cover .cover-main {
  flex: 1;
  margin: 0 16px;
  position: relative;
  text-align: center;
}

section.cover a {
  color: inherit;
  text-decoration: none;
}

section.cover a:hover {
  text-decoration: none;
}

section.cover p {
  line-height: 1.5rem;
  margin: 1em 0;
}

section.cover h1 {
  color: inherit;
  font-size: 2.5rem;
  font-weight: 300;
  margin: 0.625rem 0 2.5rem;
  position: relative;
  text-align: center;
}

section.cover h1 a {
  display: block;
}

section.cover h1 small {
  bottom: -0.4375rem;
  font-size: 1rem;
  position: absolute;
}

section.cover blockquote {
  font-size: 1.5rem;
  text-align: center;
}

section.cover ul {
  line-height: 1.8;
  list-style-type: none;
  margin: 1em auto;
  max-width: 500px;
  padding: 0;
}

section.cover .cover-main > p:last-child a {
  border-color: var(--theme-color);
  border-radius: 2rem;
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  color: var(--theme-color);
  display: inline-block;
  font-size: 1.05rem;
  letter-spacing: 0.1rem;
  margin: 0.5rem 1rem;
  padding: 0.75em 2rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

section.cover .cover-main > p:last-child a:last-child {
  background-color: var(--theme-color);
  color: var(--color-white);
}

section.cover .cover-main > p:last-child a:last-child:hover {
  color: inherit;
  opacity: 0.8;
}

section.cover .cover-main > p:last-child a:hover {
  color: inherit;
}

section.cover blockquote > p > a {
  border-bottom: 2px solid var(--theme-color);
  transition: color 0.3s;
}

section.cover blockquote > p > a:hover {
  color: var(--theme-color);
}

/* ─── Markdown: headings ───────────────────────────────────── */

.markdown-section h1,
.markdown-section h2,
.markdown-section h3,
.markdown-section h4,
.markdown-section strong {
  color: var(--heading-color);
  font-weight: 600;
}

.markdown-section h1 {
  font-size: 2rem;
  margin: 0 0 1rem;
}

.markdown-section h2 {
  border-bottom: 1px solid var(--border-color);
  font-size: 1.75rem;
  margin: 45px 0 0.8rem;
  padding-bottom: 0.4rem;
}

.markdown-section h3 {
  font-size: 1.5rem;
  margin: 40px 0 0.6rem;
}

.markdown-section h4 {
  font-size: 1.25rem;
}

.markdown-section h5 {
  font-size: 1rem;
}

.markdown-section h6 {
  color: var(--muted-text);
  font-size: 1rem;
}

/* ─── Markdown: links ──────────────────────────────────────── */

.markdown-section a {
  color: var(--link-color);
  font-weight: 600;
}

/* ─── Markdown: body text ──────────────────────────────────── */

.markdown-section figure,
.markdown-section p {
  margin: 1.2em 0;
}

.markdown-section img {
  border: 1px solid var(--theme-color);
}

.markdown-section p,
.markdown-section ul,
.markdown-section ol {
  line-height: 1.6rem;
  word-spacing: 0.05rem;
}

.markdown-section ul,
.markdown-section ol {
  padding-left: 1.5rem;
}

.markdown-section em {
  color: var(--muted-text);
}

.markdown-section blockquote {
  border-left: 4px solid var(--theme-color);
  color: var(--muted-text);
  margin: 2em 0;
  padding-left: 20px;
}

.markdown-section blockquote p {
  font-weight: 600;
  margin-left: 0;
}

.markdown-section iframe {
  margin: 1em 0;
}

/* ─── Markdown: code ───────────────────────────────────────── */

.markdown-section code,
.markdown-section pre,
.markdown-section output::after {
  font-family: 'Roboto Mono', Monaco, courier, monospace;
}

.markdown-section code,
.markdown-section pre {
  background-color: var(--code-bg);
}

.markdown-section pre,
.markdown-section output {
  margin: 1.2em 0;
  position: relative;
}

.markdown-section pre > code,
.markdown-section output {
  border-radius: 4px;
  display: block;
}

.markdown-section pre > code,
.markdown-section output::after {
  -moz-osx-font-smoothing: initial;
  -webkit-font-smoothing: initial;
}

.markdown-section code {
  border-radius: 3px;
  color: var(--code-inline-color);
  margin: 0 2px;
  padding: 3px 5px;
  white-space: pre-wrap;
}

.markdown-section > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) code {
  font-size: 0.8rem;
}

.markdown-section pre {
  line-height: 1.5rem;
  overflow: auto;
  padding: 0 1.4rem;
  word-wrap: normal;
}

.markdown-section pre > code {
  color: var(--code-block-text);
  font-size: 0.8rem;
  line-height: inherit;
  margin: 0 2px;
  max-width: inherit;
  overflow: inherit;
  padding: 2.2em 5px;
  white-space: inherit;
}

.markdown-section output {
  border: 1px dotted var(--code-output-border);
  padding: 1.7rem 1.4rem;
}

.markdown-section output > :first-child {
  margin-top: 0;
}

.markdown-section output > :last-child {
  margin-bottom: 0;
}

.markdown-section code::after,
.markdown-section code::before,
.markdown-section output::after,
.markdown-section output::before {
  letter-spacing: 0.05rem;
}

.markdown-section pre::after,
.markdown-section output::after {
  color: var(--code-label-color);
  content: attr(data-lang);
  font-size: 0.6rem;
  font-weight: 600;
  height: 15px;
  line-height: 15px;
  padding: 5px 10px 0;
  position: absolute;
  right: 0;
  text-align: right;
  top: 0;
}

/* ─── Syntax highlighting ──────────────────────────────────── */

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: var(--syntax-comment);
}

.token.namespace {
  opacity: 0.7;
}

.token.boolean,
.token.number {
  color: var(--syntax-number);
}

.token.punctuation {
  color: var(--syntax-punctuation);
}

.token.property {
  color: var(--syntax-number);
}

.token.tag {
  color: var(--syntax-tag);
}

.token.string {
  color: var(--syntax-string);
}

.token.selector {
  color: var(--syntax-selector);
}

.token.attr-name {
  color: var(--syntax-tag);
}

.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: var(--syntax-url);
}

.token.attr-value,
.token.control,
.token.directive,
.token.unit {
  color: var(--syntax-string);
}

.token.keyword,
.token.function {
  color: var(--syntax-keyword);
}

.token.statement,
.token.regex,
.token.atrule {
  color: var(--syntax-url);
}

.token.placeholder,
.token.variable {
  color: var(--syntax-tag);
}

.token.deleted {
  text-decoration: line-through;
}

.token.inserted {
  border-bottom: 1px dotted var(--syntax-inserted-border);
  text-decoration: none;
}

.token.italic {
  font-style: italic;
}

.token.important,
.token.bold {
  font-weight: bold;
}

.token.important {
  color: var(--syntax-error);
}

.token.entity {
  cursor: help;
}

code .token {
  -moz-osx-font-smoothing: initial;
  -webkit-font-smoothing: initial;
  left: auto;
  min-height: 1.5rem;
  position: relative;
}
