:root {
  /* Light mode - matching me.sauhsoj.wtf */
  --md-primary-fg-color: #0066cc;
  --md-primary-fg-color--light: #4da6ff;
  --md-primary-fg-color--dark: #004d99;
  --md-accent-fg-color: #0066cc;
  --md-text-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --md-code-font: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
}

[data-md-color-scheme="default"] {
  --md-default-bg-color: #ffffff;
  --md-default-fg-color: #333333;
  --md-default-fg-color--light: #666666;
  --md-primary-fg-color: #ffffff;
  --md-primary-bg-color: #333333;
}

[data-md-color-scheme="slate"] {
  /* Dark mode - matching me.sauhsoj.wtf */
  --md-default-bg-color: #1a1a1a;
  --md-default-fg-color: #ffffff;
  --md-default-fg-color--light: #cccccc;
  --md-code-bg-color: #2a2a2a;
  --md-typeset-a-color: #4da6ff;
  --md-primary-fg-color: #1a1a1a;
  --md-primary-bg-color: #ffffff;
  --md-accent-fg-color: #4da6ff;
}

/* Subtle texture overlay like me.sauhsoj.wtf */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

[data-md-color-scheme="default"] body::before {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Blog post layout - sidebar right, content left */
.md-typeset .md-post {
  display: flex;
  flex-direction: row-reverse;
  gap: 2rem;
}

.md-typeset .md-post__content {
  flex: 1;
  max-width: 750px;
}

.md-typeset .md-post__meta {
  width: 200px;
  flex-shrink: 0;
}

/* Hide left sidebar navigation on desktop only, keep drawer functional */
@media screen and (min-width: 76.25em) {
  .md-sidebar--primary {
    display: none;
  }
}

/* Main content area */
.md-main__inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Code block styling */
.highlight {
  border-radius: 6px;
}

/* Header links moved to main.html override */

/* Solid background for content area */
.md-content {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(26, 26, 26, 0.95);
  padding: 1rem 2rem;
  border-radius: 8px;
}

[data-md-color-scheme="default"] .md-content {
  background: rgba(255, 255, 255, 0.95);
}

/* Sharing buttons for posts */
.md-typeset .share-buttons {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--md-default-fg-color--lightest);
}

.md-typeset .share-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  background: var(--md-code-bg-color);
  border-radius: 4px;
  font-size: 0.75rem;
  text-decoration: none;
}

.md-typeset .share-buttons a:hover {
  background: var(--md-accent-fg-color);
  color: white;
}

/* Draft post banner */
.md-typeset article[data-md-draft]::before {
  content: "⚠️ DRAFT - This post is not yet published";
  display: block;
  background: #f59e0b;
  color: #1a1a1a;
  padding: 0.75rem 1rem;
  margin: -1rem -1rem 1.5rem -1rem;
  border-radius: 6px 6px 0 0;
  font-weight: 600;
  text-align: center;
}


/* Post listing on index page */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.post-card {
  display: block;
  padding: 1.5rem;
  background: var(--md-code-bg-color);
  border-radius: 8px;
  text-decoration: none !important;
  color: var(--md-default-fg-color) !important;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.post-card h2 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.3rem;
  color: var(--md-typeset-a-color);
  text-decoration: underline;
}

.post-card p {
  margin: 0;
  color: var(--md-default-fg-color);
  opacity: 0.8;
  font-size: 0.9rem;
  line-height: 1.5;
  text-decoration: none;
}

.post-card small {
  opacity: 0.6;
  font-size: 0.8rem;
  text-decoration: none;
}


/* Search box - align right */
.md-header__inner {
  display: flex;
}

.md-search {
  order: 99;
}


/* Hide h1 on index page only */
