/* Minimal style bridge to match site look */
html, body { margin: 0; padding: 0; }
body { font-family: var(--font-body-stack); }

/* Colors aligned with globals.css */
.bg-primary { background-color: #131313; }
.bg-primary-5 { background-color: #ffffff1a; }
.bg-primary-10 { background-color: #ffffff0d; }
.bg-primary-80 { background-color: #ffffffcc; }
.bg-secondary { background-color: #a7ff3d; }
.bg-black { background-color: #000000; }
.color-primary { color: #ffffff; }
.color-primary-60 { color: #ffffff99; }
.color-primary-80 { color: #ffffffcc; }
.color-primary-20 { color: #ffffff33; }
.color-secondary { color: #a7ff3d; }
.border-primary { border-color: #a7ff3d; }
.border-secondary { border-color: #ffffff33; }

/* Layout */
.vv-layout { display: flex; min-height: 100vh; }
.vv-sidebar { width: 64px; box-sizing: border-box; border-right: 1px solid; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 16px 0; position: sticky; top: 0; height: 100vh; }
.vv-logo { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 600; letter-spacing: 1px; }
.vv-nav { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.vv-nav-item { text-decoration: none; font-size: 12px; }
.vv-content { flex: 1; box-sizing: border-box; padding: 32px; }
.vv-container { max-width: 920px; margin: 0 auto; }

/* Post list */
.vv-post-item { margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid #ffffff1a; }
.vv-post-title { margin: 0 0 8px; font-size: 22px; }
.vv-meta { font-size: 13px; margin-bottom: 8px; }
.vv-excerpt { font-size: 14px; }
.vv-tag-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.vv-tag-link { text-decoration: none; }
.vv-tag-link:hover { color: #a7ff3d; }

/* Post content */
.vv-post-h1 { margin: 0 0 12px; font-size: 28px; }
.vv-post-title,
.vv-post-h1,
.article-body h1,
.article-body h2,
.article-body h3 {
  font-family: var(--font-body-stack);
}
.article-body img { max-width: 100%; width: auto; height: auto; }
.article-body pre { background: #1e1e1e; color: #ddd; padding: 12px; border-radius: 8px; overflow: auto; }
.article-body code { background: #1e1e1e; color: #ddd; padding: 2px 4px; border-radius: 4px; }
.article-body a { color: #a7ff3d; text-decoration: none; }
.article-body a:hover { text-decoration: underline; }

/* Table of Contents */
.vv-toc {
  background: #ffffff0d;
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.vv-toc-list,
.vv-toc-list ol,
.vv-toc-list ul {
  list-style: none;
  list-style-type: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
}
.vv-toc-list ol {
  padding-left: 20px;
  margin: 8px 0;
}
.vv-toc-list li,
.vv-toc-list ol li,
.vv-toc-list ul li {
  list-style: none;
  list-style-type: none;
  counter-increment: none;
}
.vv-toc-list-item {
  list-style: none;
  list-style-type: none;
}
.vv-toc-list li::before,
.vv-toc-list li::marker {
  content: none;
  display: none;
}
.vv-toc-list-item::marker {
  content: none;
  display: none;
}
.vv-toc-list .toc-number {
  display: none;
}
.vv-toc ol,
.vv-toc ul {
  list-style: none;
  list-style-type: none;
  padding-left: 0;
  margin-left: 0;
}
.vv-toc li::marker {
  content: none;
  display: none;
}
.vv-toc .toc-number {
  display: none;
}
.vv-toc-list a {
  color: #ffffff99;
  text-decoration: none;
  display: block;
  padding: 6px 0;
  transition: color 0.2s;
}
.vv-toc-list a:hover {
  color: #a7ff3d;
}
.vv-toc-list .toc-level-1 > a {
  font-weight: 500;
  color: #ffffffcc;
}

/* Footer policy links (align with app footer layout on /overview) */
.vv-footer .vv-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.vv-footer .vv-links a,
.vv-footer .vv-links .vv-cookie-link-button {
  height: 40px;
  display: flex;
  align-items: center;
  color: #a7ff3d;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  text-transform: uppercase;
  text-align: left;
  text-decoration: none;
}
.vv-footer .vv-links a:hover,
.vv-footer .vv-links .vv-cookie-link-button:hover {
  opacity: 0.8;
}
.vv-footer .vv-links .vv-cookie-link-button {
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Cookie consent (Hexo posts) */
.vv-cookie-link-button {
  font: inherit;
}
.vv-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
}
.vv-cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: #131313;
  border: 1px solid #ffffff33;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}
.vv-cookie-banner-text {
  min-width: 0;
}
.vv-cookie-banner-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.vv-cookie-banner-desc {
  color: #ffffff99;
  font-size: 13px;
  line-height: 1.5;
}
.vv-cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.vv-cookie-btn {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  border: 1px solid #ffffff33;
  transition: opacity 0.2s ease;
}
.vv-cookie-btn:hover {
  opacity: 0.85;
}
.vv-cookie-btn-primary {
  background: #a7ff3d;
  color: #131313;
  border-color: #a7ff3d;
  font-weight: 600;
}
.vv-cookie-btn-secondary {
  background: #ffffff0d;
  color: #ffffff;
}
.vv-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
}
.vv-cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.vv-cookie-modal-panel {
  position: relative;
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  margin: 12px auto;
  background: #131313;
  border: 1px solid #ffffff33;
  border-radius: 14px;
  padding: 18px;
  box-sizing: border-box;
}
.vv-cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.vv-cookie-modal-title {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
}
.vv-cookie-icon-close {
  border: none;
  background: transparent;
  color: #ffffffcc;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.vv-cookie-modal-desc {
  margin: 8px 0 14px;
  color: #ffffff99;
  font-size: 13px;
  line-height: 1.5;
}
.vv-cookie-category {
  border: 1px solid #ffffff1a;
  background: #ffffff0d;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vv-cookie-category-copy {
  min-width: 0;
}
.vv-cookie-category-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.vv-cookie-category-desc {
  color: #ffffff99;
  font-size: 12px;
  line-height: 1.45;
}
.vv-cookie-category-status {
  color: #a7ff3d;
  border: 1px solid #a7ff3d;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  white-space: nowrap;
}
.vv-cookie-toggle-row {
  cursor: pointer;
}
.vv-cookie-toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #a7ff3d;
  cursor: pointer;
  flex: 0 0 auto;
}
.vv-cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 768px) {
  .vv-footer .vv-links {
    align-items: center;
  }
  .vv-cookie-banner-inner {
    flex-direction: column;
  }
  .vv-cookie-banner-actions {
    width: 100%;
    justify-content: stretch;
  }
  .vv-cookie-banner-actions .vv-cookie-btn {
    flex: 1 1 100%;
  }
  .vv-cookie-category {
    align-items: flex-start;
  }
  .vv-cookie-modal-actions .vv-cookie-btn {
    flex: 1 1 100%;
  }
}
