body {
  font-family: "Rubik", sans-serif, system-ui, -apple-system;
}

a {
  color: inherit;
  text-decoration: none;
}

[id] {
  scroll-margin-top: 1rem;
}

.katex-display {
  overflow-y: hidden;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.vault-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100dvh - 3rem);
  padding: 1rem;
  box-sizing: border-box;
  overflow-y: auto;
}

.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.vault-card {
  display: block;
  border-radius: 5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 1.2rem;
  text-decoration: none;
  color: var(--color-text);
  position: relative;
  overflow: hidden;
  height: 7rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
  filter: grayscale(100%);
}

.vault-card::before {
  content: "";
  position: absolute;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  transition: background 0.3s ease;
  pointer-events: none;
  top: 0.4rem;
  left: 0.4rem;
  right: 0.4rem;
  bottom: 0.4rem;
  z-index: 0;
  border-radius: 5px;
}

.vault-card h3,
.vault-card p {
  position: relative;
  z-index: 1;
}

.vault-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
  filter: grayscale(0%);
}

.vault-card h3 {
  position: absolute;
  bottom: 0.8rem;
  left: 1.2rem;
  z-index: 1;
  font-size: 1.3rem;
  user-select: none;
  color: #fff;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.7);
  font-family: "Rubik", system-ui;
  font-weight: 500;
  line-height: 1;
  margin: 0;
}

.vault-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #fff;
  user-select: none;
}

@media (max-width: 1000px) {

  .vault-selector {
    align-items: flex-start;
    padding-top: 1rem;
    min-height: auto;
  }

  .vault-card {
    filter: grayscale(0%);
  }

  .vault-card:hover {
    transform: translateY(-2px) scale(1.008);
  }
}


.vault-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.vault-layout {
  display: flex;
  height: calc(100dvh - 3rem);

}

.vault-sidebar {
  width: 18rem;
  padding: 0 1rem 1rem 1rem;
  border-right: 0.5px solid var(--color-borders);
  box-sizing: border-box;
  background-color: var(--color-bg);
  height: calc(100dvh - 3rem);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.vault-sidebar ::-webkit-scrollbar {
  display: none;
}

.vault-content {
  flex: 1;
  padding: 0 1rem;
  overflow: auto;
  height: calc(100dvh - 3rem);
}

.vault-tree {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;

}

.vault-tree ul {
  padding-left: 1rem;
  margin: 0;
}

.vault-item {
  margin: 0;
  position: relative;
  border-left: 0.5px solid var(--color-borders);
}

.vault-item.folder>.vault-link {
  cursor: pointer;
  user-select: none;
  padding: 6px 5px 6px 10px;
  border-radius: 0 5px 5px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.arrow-icon {
  min-width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s ease, color 0.2s ease;
  margin-left: 0.5rem;
  color: #70798e;
}

.vault-item.folder:not(.collapsed)>.folder-toggle .arrow-icon {
  transform: rotate(90deg);
}

.vault-item.note>.vault-link {
  display: block;
  padding: 6px 10px;
  border-radius: 0 5px 5px 0;
  color: var(--color-secondary);
}

.vault-item.folder.collapsed>ul {
  display: none;
}

.vault-link.active {
  background: var(--color-hoverActive);
  color: var(--color-primary) !important;
}

.vault-link.active:hover {
  background: var(--color-hoverActive);
}

.vault-link:hover {
  background: var(--color-hover);
}


.vault-selector-header {
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.vault-selector-title {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.vault-link-selector {
  padding: 4px 8px;
  border-radius: 5px;
  display: block;
}

.vault-link-selector.active {
  background: #e0e2e5;
  color: #0b63e6;
}

.vault-current-title {
  margin-top: 0.75rem;
  color: var(--color-text);
  position: sticky;
  top: 4.75rem;
  font-weight: 500;
}

.stick-bar {
  padding: 1rem 0 0.75rem 0;
  background-color: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 0.5px solid var(--color-borders);

}

.vault-icon {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  vertical-align: middle;
  display: inline-block;
  color: #70798e;
}

.vault-icon svg {
  width: 1.15rem;
  height: 1.15rem;

}

.note-title {
  display: flex;
  align-items: center;

}

.folder-name {
  display: flex;
  align-items: center;
  color: var(--color-text);
}

.sidebar-pattern-overlay {
  position: fixed;
  top: 0;
  left: 18rem;
  width: 2.5rem;
  height: 100%;
  z-index: 39;
  border-right: 1px solid rgba(15, 23, 42, 0.1);
  border-left: 1px solid rgba(15, 23, 42, 0.1);
  background-image: repeating-linear-gradient(315deg,
      rgba(15, 23, 42, 0.1) 0,
      rgba(15, 23, 42, 0.1) 1px,
      transparent 0,
      transparent 50%);
  background-size: 10px 10px;
  background-attachment: fixed;
  display: none;
  pointer-events: none;
}

[data-theme="dark"] .sidebar-pattern-overlay {

  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background-image: repeating-linear-gradient(315deg,
      rgba(255, 255, 255, 0.1) 0,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 0,
      transparent 50%);
}

.right-pattern-overlay {
  position: fixed;
  right: 0;
  top: 0;
  width: 2.5rem;
  height: 100%;
  z-index: 39;
  border-right: 1px solid rgba(15, 23, 42, 0.1);
  border-left: 1px solid rgba(15, 23, 42, 0.1);
  background-image: repeating-linear-gradient(315deg,
      rgba(15, 23, 42, 0.1) 0,
      rgba(15, 23, 42, 0.1) 1px,
      transparent 0,
      transparent 50%);
  background-size: 10px 10px;
  background-attachment: fixed;
  display: none;
  pointer-events: none;
}

[data-theme="dark"] .right-pattern-overlay {

  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background-image: repeating-linear-gradient(315deg,
      rgba(255, 255, 255, 0.1) 0,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 0,
      transparent 50%);
}

@media (min-width: 1000px) {
  .sidebar-pattern-overlay {
    display: block;
  }

  .right-pattern-overlay {
    display: block;
  }

  .vault-sidebar {
    border-right: none;
  }

}

.header-toolbar {
  display: flex;
  padding: 0.5rem;
  background-color: var(--color-surface);
  border-radius: 4px;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 1rem;
  z-index: 10;
}

.toolbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--color-surfaceIcon);
  transition: color 0.2s ease-in-out;
  padding: 4px;
}

.toolbar-btn .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.toolbar-btn:hover {
  color: var(--color-secondary);
}

[data-theme="dark"] .toolbar-btn:hover {
  color: var(--color-primary);
}

.toolbar-btn.active {
  color: var(--color-code);
}

.toolbar-divider {
  border-left: 1px solid var(--color-secondary);
  height: 1rem;
}

.divider {
  border-left: 1px solid var(--color-secondary);
  height: 1rem;
}

.vault-overlay {
  position: fixed;
  top: 3rem;
  left: 0;
  right: 0;
  bottom: 0;

  background: rgba(0, 0, 0, 0.45);
  z-index: 997;

  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.vault-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1000px) {
  #vaultSidebar {
    position: fixed;
    left: 0;
    width: 18rem;
    max-width: 80vw;
    transform: translateX(-110%);
    transition: transform .25s ease;
    z-index: 998;
  }

  #vaultSidebar.open {
    transform: translateX(0);
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .sidebar-pattern-overlay {
    display: none;
  }
}

.note-content {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  margin: 0 4.5rem;
  margin-top: 1rem;
  box-sizing: border-box;
  color: var(--color-text);
}

@media (max-width: 1000px) {

  .note-content {
    margin: 0;
    margin-top: 1rem;
  }

}

.note-content h1,
.note-content h2,
.note-content h3,
.note-content h4,
.note-content h5,
.note-content h6 {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
  font-family: system-ui, -apple-system;
}

.note-content h1 {
  font-size: 2.2em;
}

.note-content h2 {
  font-size: 1.8em;
}

.note-content h3 {
  font-size: 1.5em;
}

.note-content h4 {
  font-size: 1.3em;
}

.note-content h5 {
  font-size: 1em;
}

.note-content h6 {
  font-size: 0.8em;
}

.note-content p {
  margin-bottom: 1.2em;
  line-height: 1.6;
}

.note-content strong {
  font-weight: 600;
}

.note-content a {
  color: var(--color-code);
  text-decoration: none;
}

.note-content a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.note-content ul,
.note-content ol {
  margin-bottom: 1.2em;
  padding-inline-start: 2em;
}

.note-content li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

.note-content pre {
  display: block;
  border-radius: 4px;

  background-color: var(--color-card) !important;
  margin: 0 0 1.2rem 0 !important;
  padding: 0;

}

.note-content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  width: 100%;
  background-color: var(--color-codeCard) !important;
  color: var(--color-text);
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none;
}

.note-content pre code {
  display: block;
  white-space: pre;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
  width: 100%;
  padding: 0.8rem;
  border-radius: 0;
  background: none !important;
  line-height: 1.5;
}

.note-content h1 code,
.note-content h2 code,
.note-content h3 code,
.note-content h4 code,
.note-content h5 code,
.note-content h6 code {

  font-size: 0.9em;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  width: 100%;
  background-color: var(--color-lightCard);
  color: var(--color-text);
}

.code-header {
  position: relative;
  margin: 1em 0;
  border-radius: 4px;
}

.code-header__title {
  display: flex;
  height: 2.2rem;
  align-items: center;
  padding: 0.5em;
  background-color: var(--color-card) !important;
  border-radius: 4px 4px 0 0;
  position: relative;
  z-index: 9;
  box-shadow: 0px 6px 16px 0px var(--color-main50);
}

.code-header__language {
  color: var(--color-secondary);
  font-family: monospace;
  font-size: 0.8em;
  margin-left: 0.6rem;
  margin-right: auto;
}

.code-header__theme-buttons {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
  margin-right: 0.5rem;
  padding-right: 1rem;
  border-right: 1px solid var(--color-secondary);
}

.theme-square {
  width: 1rem;
  height: 1rem;
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.theme-square:hover {
  transform: scale(1.15);

}

.theme-square.active {
  transform: scale(1.15);
}

.code-header__copy {
  padding: 0.3rem;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--color-secondary);
}

.code-header__copy:hover {
  color: var(--color-text);
}

.code-header__toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  user-select: none;
  color: var(--color-secondary);
  transition: color 0.3s ease;
  font-weight: bold;
  margin-left: 97.6px;
}

.code-header__toggle:hover {
  color: var(--color-text);
}

.note-content blockquote {
  margin: 1.2em 0;
  padding: 0 1em;
  border-left: 4px solid var(--color-primary);
  font-style: italic;
}

.note-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2em;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.note-content th,
.note-content td {
  padding: 0.5em;
  border: 1px solid var(--color-text);
}

.note-content th {
  background-color: var(--color-surface);
  font-weight: 600;
}

.note-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1.2em;
}

.note-content hr {
  border: 0;
  height: 1px;
  background-color: var(--color-text);
  margin: 2em 0;
}

.callout-content code,
.note-content p code,
.note-content li code {
  background-color: var(--color-lightCard);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  color: var(--color-code);
  font-size: 0.9em;
  white-space: pre-wrap;
  word-break: break-word;
}

.note-content .task-list-item {
  list-style-type: none;
}

.note-content .task-list-item input[type="checkbox"] {
  margin-right: 0.5em;
}

.note-content .footnotes {
  font-size: 0.9em;
  margin-top: 2em;
}

.note-content .footnotes ol {
  padding-left: 1.5em;
}

.note-content .footnotes li {
  margin-bottom: 0.5em;
}

.note-content .footnote-ref {
  font-size: 0.9em;
  vertical-align: super;
}

.note-content .footnote-backref {
  font-size: 0.9em;
  text-decoration: none;
}

.note-content mark {
  background-color: #ff3be2;
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

.note-content kbd {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
  background-color: var(--color-lightCard);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  border: 1px solid rgb(238, 238, 238);
}

.note-content abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

.note-content sub,
.note-content sup {
  font-size: 0.8em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

.note-content sub {
  bottom: -0.25em;
}

.note-content sup {
  top: -0.5em;
}

.note-content dl {
  margin-bottom: 1.2em;
}

.note-content dt {
  font-weight: 600;
  margin-top: 1em;
}

.note-content dd {
  margin-left: 2em;
  margin-bottom: 1em;
}

.note-content address {
  font-style: italic;
  margin-bottom: 1.2em;
}

.note-content img {
  max-width: 100%;
  height: auto;
}

.note-content table {
  width: 100%;
  overflow-x: auto;
  display: block;
}

@media print {


  .note-content pre,
  .note-content code {
    white-space: pre-wrap;
  }

  .note-content table {
    display: table;
  }
}

.code-block-wrapper {
  display: block;
  margin-bottom: 1.2rem;

}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.7rem;
  background-color: var(--color-card) !important;
  border-radius: 4px 4px 0 0;
  position: relative;
  z-index: 9;
  border-bottom: 0.5px solid var(--color-borders);
}

.code-block-wrapper pre {
  border-radius: 0 0 4px 4px;
}

.code-toggle {
  margin: 0 auto;
}

.code-lang {
  color: var(--color-codeLang);
  font-family: monospace;
  font-size: 0.9rem;

  margin-right: auto;
}

.code-toggle,
.code-copy {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85em;
  margin-left: 0.5em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.code-toggle svg {
  width: 1.4em;
  height: 1.4em;
  vertical-align: middle;
  color: var(--color-text);
  transition: color 0.2s ease-in-out;
}

.code-copy svg {
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  color: var(--color-text);
  transition: color 0.2s ease-in-out;
}

.code-toggle svg:hover {
  color: var(--color-secondary);
}

.code-copy svg:hover {
  color: var(--color-secondary);
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 1rem 1rem 1rem;

  background: rgba(0, 0, 0, 0.6);

  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: 0.2s ease;
}

.search-overlay:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.search-box {
  width: 100% !important;
  max-width: 700px !important;
  display: flex;
  flex-direction: column;
  border-radius: 5px !important;
  transition: width 0.2s ease !important;
}

.pagefind-ui__results-area {
  height: 100% !important;
  padding: 1rem 1rem 0 1rem;
  background-color: var(--color-card);
  border-radius: 5px;
  overflow-y: hidden !important;
}

.pagefind-ui__result-inner {
  margin-top: 1.5rem !important;
}

.pagefind-ui__result mark {
  background-color: #97bb72 !important;
  color: #000 !important;
  color: inherit;
}

.pagefind-ui__search-input {
  width: 100%;
  height: 3rem !important;
  padding: 0.75rem 1rem;
  border-radius: 5px !important;
  background-color: var(--color-card) !important;
  color: inherit;
  color: var(--color-text);
  border: none !important;
  font-weight: 500 !important;
}

.pagefind-ui__form::before {
  height: 1rem !important;
  width: 1rem !important;
  font-size: 1rem !important;
  background-color: var(--color-text) !important;
  pointer-events: none !important;
  user-select: none !important;
}

.pagefind-ui__search-input:focus {
  outline: none !important;
}

.pagefind-ui__search-input::placeholder {
  opacity: 0.5;
}

.pagefind-ui__search-clear {
  font-size: 0 !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  top: 0.5rem !important;
  right: 0.5rem !important;
  border-radius: 50% !important;
  background: transparent !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  padding: 0 !important;
  outline: none !important;
  border: none !important;
  background-color: var(--color-borders) !important;
}

.pagefind-ui__search-clear:hover {
  background: var(--color-card) !important;
}

.pagefind-ui__search-clear::after {
  content: "✕" !important;
  font-size: 14px !important;
  color: var(--color-text) !important;
  line-height: 1 !important;
}



.pagefind-ui__message {
  margin: 0 !important;
  padding: 0 !important;
  padding-bottom: 1rem !important;
  border-bottom: 0.5px solid var(--color-borders);
  color: var(--color-secondary) !important;
}

.pagefind-ui__results {
  height: auto !important;
  max-height: 40vh !important;
  overflow-y: auto;
  scrollbar-width: none;
}

.pagefind-ui__result::-webkit-scrollbar {
  display: none;
}

.pagefind-ui__result {
  padding: 0 !important;
  padding-bottom: 1.5rem !important;
  transition: 0.2s;
  color: var(--color-text);
  border-bottom: 0.5px solid var(--color-borders) !important;
  border-top: none !important;
}

.pagefind-ui__result:last-of-type {
  border-bottom: none !important;
}

.pagefind-ui__result-link {
  color: var(--color-text) !important;
  font-weight: 600 !important;
}

.pagefind-ui__result-title {
  font-weight: 600;
  color: var(--color-text);
}

.pagefind-ui__result-excerpt {
  font-size: 0.9rem;
  opacity: 0.7;
  color: var(--color-text);
}

.pagefind-ui__button {
  margin: 1rem 0 !important;
  font-size: 1rem !important;
  background-color: var(--color-borders) !important;
  border: none !important;
  color: var(--color-text) !important;

}

.pagefind-ui__button:hover {
  border-color: transparent !important;
  color: none !important;
  background-color: var(--color-hover) !important;
}

.tags-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 3rem);
}

.tag-title-con {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.back-button {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  margin-right: 0.5rem;
  color: var(--color-secondary);
  padding: 0;
}

.back-button svg {
  width: 24px;
  height: 24px;
  display: block;
}

.back-button :hover {
  color: var(--color-primary);
}

.tags-container h1 {
  font-size: 1.8em;
  color: var(--color-text);
  font-weight: 500;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  overflow-y: auto !important;
}

.tag {
  background-color: var(--color-card);
  border-radius: 5px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s ease, background-color 0.2s ease;
  flex: 1 1 calc(33.333% - 1rem);
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
}

.tag:hover {
  background-color: var(--color-hover);
}

.tag span {
  font-size: 1.1rem;
  color: var(--color-text);
}

.tag .number {
  background-color: var(--color-bg);
  color: var(--color-text);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-left: 1rem;
}

.posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.post {
  width: 100%;
  background-color: var(--color-card);
  border-radius: 5px;
  padding: 1rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.post:hover {
  background-color: var(--color-hover);
}

.post span {
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.4rem;
  display: block;
}

.post .time {
  color: var(--color-primary);
  font-size: 0.9rem;
  margin: 0 0 0 0.8em;
}

.post-description {
  font-size: 1rem;
  color: var(--color-secondary);
  margin: 0.25rem 0;
  margin-left: 0.6em;
}



@media (max-width: 768px) {
  .tag {
    flex: 1 1 calc(50% - 1rem);
  }

  .tags-container {
    padding: 1.5rem 1rem 1rem 1rem;
  }
}

@media (max-width: 480px) {
  .tag {
    flex: 1 1 100%;
  }
}

.post-title {
  display: flex;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.post-tags {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-tags .tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background-color: #96bb721c;
  color: var(--color-hard);
  border-radius: 0.25rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.post-tags .tag:hover {
  text-decoration: underline;
}

.code-raw {
  padding: 2px 7px !important;
  border-radius: 4px !important;
  margin-left: 0.5rem;
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-decoration: none !important;
  cursor: pointer;
  border: 1px solid var(--color-borders) !important;
  color: var(--color-secondary) !important;
  background: transparent !important;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.code-raw:hover {
  color: var(--color-text) !important;
  background: var(--color-hoverActive) !important;
  border-color: var(--color-secondary) !important;
}


/* powershell */

.code-block-powershell {
  border-radius: 6px;
}

.code-block-powershell .code-block-header {
  background-color: #012456 !important;
  border-bottom: 1px solid #2a62b8 !important;
}

.code-block-powershell .code-toggle svg,
.code-block-powershell .code-copy svg {
  color: #f6f9ff  !important;
}

.code-block-powershell .code-toggle svg:hover,
.code-block-powershell .code-copy svg:hover {
  color: #cce0ff !important;
}

[data-theme="dark"] .code-block-powershell .code-toggle,
.code-block-powershell .code-copy {
  color: #f6f9ff  !important;
}

.code-block-powershell .code-lang {
  color: #cce0ff !important;
  font-family: 'Cascadia Code', 'Consolas', monospace;
}

.code-block-powershell pre {
  background-color: #012456 !important;
}

.code-block-powershell code {
  color: #eaeaea !important;
  font-family: 'Cascadia Code', 'Consolas', 'Courier New', monospace;
}


/* Chroma token colors — real PSReadLine defaults on blue bg */
.code-block-powershell .chroma .c,
.code-block-powershell .chroma .c1,
.code-block-powershell .chroma .cm  { color: #008000; font-style: normal; } /* comments — DarkGreen */

.code-block-powershell .chroma .s,
.code-block-powershell .chroma .s1,
.code-block-powershell .chroma .s2  { color: #008B8B; }  /* strings — DarkCyan */

.code-block-powershell .chroma .k,
.code-block-powershell .chroma .kd  { color: #008B8B; }  /* keywords — DarkCyan */

.code-block-powershell .chroma .nb  { color: #FFFF00; }  /* cmdlets — Yellow */

.code-block-powershell .chroma .nv,
.code-block-powershell .chroma .vi  { color: #00FF00; }  /* variables — DarkGreen */

.code-block-powershell .chroma .mi,
.code-block-powershell .chroma .mf  { color: #cccccc; }  /* numbers — white (default) */

.code-block-powershell .chroma .na  { color: #cccccc; }  /* parameters — white (default) */

.code-block-powershell .chroma .p   { color: #cccccc; }  /* punctuation — white */

.code-block-powershell .chroma .o   { color: #cccccc; }  /* operators — white */