/* ===========================================
   Editorial Theme - adonese.sd
   Light, readable, classic blog aesthetic
   =========================================== */

/* Typography: Literata for body (excellent readability), Source Sans for UI */
@import url('https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,500;0,7..72,600;1,7..72,400;1,7..72,500&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Light, warm palette */
  --bg: #fafaf9;
  --bg-subtle: #f5f5f4;
  --bg-elevated: #ffffff;
  --border: #e7e5e4;
  --border-strong: #d6d3d1;

  /* Text hierarchy */
  --text: #1c1917;
  --text-secondary: #44403c;
  --text-muted: #78716c;
  --text-subtle: #a8a29e;

  /* Accent - warm terracotta, distinctive but not loud */
  --accent: #b45309;
  --accent-muted: #d97706;
  --accent-bg: #fef3c7;

  /* Links - classic blue, readable */
  --link: #1d4ed8;
  --link-hover: #1e40af;

  /* Code */
  --code-bg: #f5f5f4;
  --code-text: #c2410c;

  /* Typography */
  --font-body: 'Literata', Georgia, 'Times New Roman', serif;
  --font-ui: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Reading width - generous for modern screens */
  --content-width: 940px;
  --wide-width: 1140px;
  /* Override PaperMod main-width to ensure consistency */
  --main-width: 940px;

  /* Override PaperMod vars */
  --theme: var(--bg);
  --entry: var(--bg);
  --primary: var(--text);
  --secondary: var(--text-secondary);
  --tertiary: var(--border);
  --content: var(--text);
  --code-block-bg: var(--code-bg);
  --code-bg: var(--code-bg);
}

/* Base */
body {
  background: var(--bg) !important;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Disable dark mode */
.dark {
  --theme: var(--bg);
  --entry: var(--bg);
  --primary: var(--text);
  --secondary: var(--text-secondary);
  --tertiary: var(--border);
  --content: var(--text);
  --code-block-bg: var(--code-bg);
  --code-bg: var(--code-bg);
}

body.dark {
  background: var(--bg) !important;
  color: var(--text);
}

#theme-toggle {
  display: none;
}

/* ===========================================
   Header / Navigation
   =========================================== */

.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--wide-width);
  margin: 0 auto;
}

.logo a {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text) !important;
  letter-spacing: -0.02em;
}

.logo a::before {
  content: none;
}

#menu a {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

#menu a:hover,
#menu .active {
  color: var(--text) !important;
}

/* ===========================================
   Main Content Container
   =========================================== */

.main {
  max-width: var(--content-width) !important;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ===========================================
   Homepage - Clean intro, no cards
   =========================================== */

.first-entry {
  border: none;
  background: none;
  border-radius: 0;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.first-entry::before {
  content: none;
}

.home-info {
  padding: 0;
}

.home-info .entry-title {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.home-info .entry-title::before,
.home-info .entry-title::after {
  content: none;
}

.home-info .entry-content {
  font-family: var(--font-body);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.1rem;
}

.home-info .entry-content a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}

.home-info .entry-content a:hover {
  text-decoration-color: var(--link);
}

/* Social icons - minimal */
.social-icons {
  margin-top: 1.5rem;
  gap: 1rem;
}

.social-icons a {
  background: none;
  border: none;
  padding: 0;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.social-icons a:hover {
  opacity: 1;
  background: none;
  border: none;
}

.social-icons a svg {
  fill: var(--text);
  width: 20px;
  height: 20px;
}

/* ===========================================
   Post List - Classic blog style, no cards
   =========================================== */

.post-entry {
  background: none;
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.post-entry:first-child {
  padding-top: 0;
}

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

.post-entry .entry-header {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: baseline;
  gap: 1rem;
}

.post-entry .entry-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.post-entry:hover .entry-title {
  color: var(--link);
}

.post-entry .entry-hint {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.post-entry .entry-hint::before {
  content: none;
}

/* Post excerpt - single line, muted */
.post-entry .entry-content {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===========================================
   Single Post
   =========================================== */

.post-header {
  margin-bottom: 2.5rem;
}

.post-title {
  font-family: var(--font-body);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.post-meta {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Post content - optimized for reading */
.post-content {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text);
}

.post-content > * {
  margin-bottom: 1.5rem;
}

.post-content h2 {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.post-content h2::before {
  content: none;
}

.post-content h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.post-content h3::before {
  content: none;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}

.post-content a:hover {
  text-decoration-color: var(--link);
}

.post-content strong {
  font-weight: 600;
  color: var(--text);
}

.post-content em {
  font-style: italic;
}

/* Code */
.post-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--code-bg);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  color: var(--code-text);
}

.post-content pre {
  background: var(--bg-subtle) !important;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.highlight::before {
  content: none;
}

/* Blockquote */
.post-content blockquote {
  border-left: 3px solid var(--border-strong);
  background: none;
  padding: 0 0 0 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

.post-content blockquote p {
  margin-bottom: 0;
}

/* Lists */
.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content li::marker {
  color: var(--text-muted);
}

/* Images */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 2rem 0;
}

/* ===========================================
   Bio/About Page
   =========================================== */

.page-single .post-title {
  font-size: 2rem;
}

.page-single .post-title::before {
  content: none;
}

.page-single .post-content > p:first-of-type {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Contact links at bottom */
.post-content p:last-of-type a {
  display: inline;
  background: none;
  padding: 0;
  border-radius: 0;
  border: none;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
}

.post-content p:last-of-type a:hover {
  background: none;
  border: none;
}

/* ===========================================
   Footer
   =========================================== */

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  margin-top: 4rem;
}

.footer span {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===========================================
   Search
   =========================================== */

#searchbox {
  font-family: var(--font-ui);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  padding: 0.75rem 1rem;
}

#searchbox::placeholder {
  color: var(--text-subtle);
}

#searchbox:focus {
  border-color: var(--text-muted);
  outline: none;
}

/* ===========================================
   Pagination
   =========================================== */

.pagination {
  margin-top: 2rem;
}

.pagination a,
.page-link {
  background: none !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: border-color 0.15s;
}

.pagination a:hover,
.page-link:hover {
  border-color: var(--text-muted) !important;
  background: none !important;
}

/* ===========================================
   Selection
   =========================================== */

::selection {
  background: var(--accent-bg);
  color: var(--text);
}

/* ===========================================
   Back to Top Button
   =========================================== */

.top-link {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-muted) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all 0.15s ease;
}

.top-link:hover {
  border-color: var(--text-muted) !important;
  color: var(--text) !important;
}

.top-link svg {
  fill: currentColor;
}

/* ===========================================
   Table of Contents
   =========================================== */

.toc {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.toc details summary {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.toc details summary::-webkit-details-marker {
  display: none;
}

.toc details summary::before {
  content: "▸ ";
  color: var(--text-muted);
  transition: transform 0.15s;
  display: inline-block;
}

.toc details[open] summary::before {
  content: "▾ ";
}

.toc .inner {
  margin-top: 0.75rem;
  padding-left: 0.5rem;
}

.toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc li {
  margin: 0.35rem 0;
}

.toc li ul {
  padding-left: 1rem;
  margin-top: 0.35rem;
}

.toc a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.toc a:hover {
  color: var(--link);
}

/* ===========================================
   Post Navigation (Prev/Next)
   =========================================== */

.paginav {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border) !important;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.5rem;
}

.paginav a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  text-decoration: none;
  transition: all 0.2s ease;
  flex: 1;
  max-width: 45%;
}

.paginav a:hover {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.paginav a.prev {
  text-align: left;
  padding-left: 0;
}

.paginav a.next {
  text-align: right;
  padding-right: 0;
  margin-left: auto;
}

/* When only next exists */
.paginav a.next:first-child {
  margin-left: auto;
}

/* When only prev exists */
.paginav a.prev:last-child {
  margin-right: auto;
}

/* Label (« Prev / Next ») */
.paginav .title {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

/* Post title */
.paginav a > span:last-child {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  transition: color 0.2s ease;
}

.paginav a:hover > span:last-child {
  color: var(--link);
}

/* Subtle arrow indicators */
.paginav a.prev .title::before {
  content: "←  ";
  letter-spacing: 0;
}

.paginav a.next .title::after {
  content: "  →";
  letter-spacing: 0;
}

/* ===========================================
   Code Copy Button
   =========================================== */

.copy-code {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-muted) !important;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  transition: all 0.15s;
}

.copy-code:hover {
  border-color: var(--text-muted) !important;
  color: var(--text) !important;
}

/* ===========================================
   Figures and Captions
   =========================================== */

.post-content figure {
  margin: 2.5rem 0;
}

.post-content figure img {
  margin: 0;
  display: block;
}

.post-content figcaption {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
}

.post-content figcaption p {
  margin: 0;
}

/* ===========================================
   Footnotes
   =========================================== */

.footnotes {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footnotes hr {
  display: none;
}

.footnotes ol {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
}

.footnotes li {
  margin-bottom: 0.75rem;
}

.footnotes li p {
  margin: 0;
}

.footnote-ref {
  font-family: var(--font-ui);
  font-size: 0.75em;
  vertical-align: super;
  text-decoration: none;
  color: var(--link);
  padding: 0 0.1em;
}

.footnote-ref::before {
  content: "[";
}

.footnote-ref::after {
  content: "]";
}

.footnote-backref {
  font-family: var(--font-ui);
  text-decoration: none;
  margin-left: 0.25rem;
}

/* ===========================================
   External Link Indicator
   =========================================== */

.post-content a[href^="http"]:not([href*="adonese.sd"])::after {
  content: " ↗";
  font-size: 0.75em;
  color: var(--text-muted);
  vertical-align: super;
}

/* Don't show for images or buttons */
.post-content a[href^="http"]:not([href*="adonese.sd"]):has(img)::after,
.social-icons a::after {
  content: none;
}

/* ===========================================
   Reading Time
   =========================================== */

.post-meta .reading-time {
  color: var(--text-muted);
}

/* ===========================================
   Search Modal
   =========================================== */

#search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.15s ease;
}

#search-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#search-modal .search-container {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  max-width: 560px;
  max-height: 70vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#search-modal .search-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#search-modal .search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

#search-modal #search-input {
  flex: 1;
  border: none;
  background: none;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text);
  outline: none;
}

#search-modal #search-input::placeholder {
  color: var(--text-subtle);
}

#search-modal .search-close {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
}

#search-modal .search-results {
  max-height: calc(70vh - 60px);
  overflow-y: auto;
}

#search-modal .search-result {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}

#search-modal .search-result:hover {
  background: var(--bg-subtle);
}

#search-modal .search-result:last-child {
  border-bottom: none;
}

#search-modal .search-result-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.25rem;
}

#search-modal .search-result-excerpt {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#search-modal .search-result-meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 0.35rem;
}

#search-modal .search-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-ui);
}

#search-modal .search-hint {
  padding: 0.75rem 1rem;
  background: var(--bg-subtle);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

#search-modal .search-hint kbd {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

/* ===========================================
   Archives Page
   =========================================== */

.archive-year {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.archive-year:first-of-type {
  margin-top: 0;
}

.archive-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-entry {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
}

.archive-entry-date {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 5rem;
}

.archive-entry-title a {
  font-family: var(--font-body);
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.archive-entry-title a:hover {
  color: var(--link);
}

/* ===========================================
   Responsive
   =========================================== */

@media (max-width: 768px) {
  body {
    font-size: 17px;
  }

  .post-title {
    font-size: 1.75rem;
  }

  .home-info .entry-title {
    font-size: 1.5rem;
  }

  .post-entry .entry-header {
    flex-direction: column;
    gap: 0.25rem;
  }

  .post-entry .entry-hint {
    order: -1;
  }

  .paginav {
    flex-direction: column;
    gap: 1.5rem;
  }

  .paginav a {
    max-width: 100%;
  }

  .paginav a.next {
    text-align: left;
    margin-left: 0;
  }

  .paginav a.next .title::after {
    content: none;
  }

  .paginav a.next .title::before {
    content: "→  ";
    letter-spacing: 0;
  }

  #search-modal .search-container {
    margin: 0 1rem;
    max-height: 80vh;
  }

  .archive-entry {
    flex-direction: column;
    gap: 0.25rem;
  }

  .archive-entry-date {
    width: auto;
  }
}

/* ===========================================
   Additional Design Refinements
   =========================================== */

/* Post content horizontal rules - more subtle */
.post-content hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

/* Tables - cleaner look */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.post-content table th {
  font-family: var(--font-ui);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--bg-subtle);
  border-bottom: 2px solid var(--border-strong);
}

.post-content table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.post-content table tr:last-child td {
  border-bottom: none;
}

/* Definition lists */
.post-content dl {
  margin: 1.5rem 0;
}

.post-content dt {
  font-weight: 600;
  color: var(--text);
  margin-top: 1rem;
}

.post-content dt:first-child {
  margin-top: 0;
}

.post-content dd {
  margin-left: 1.5rem;
  color: var(--text-secondary);
}

/* Keyboard inputs */
.post-content kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  box-shadow: 0 1px 0 var(--border-strong);
}

/* Better spacing for nested lists */
.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Post tags - refined */
.post-tags {
  margin-top: 2rem;
}

.post-tags a {
  font-family: var(--font-ui) !important;
  font-size: 0.8rem !important;
  background: var(--bg-subtle) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-muted) !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 4px !important;
  transition: all 0.15s !important;
}

.post-tags a:hover {
  border-color: var(--border-strong) !important;
  color: var(--text) !important;
  background: var(--bg-elevated) !important;
}

/* Share buttons - cleaner */
.share-buttons {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin-top: 1.5rem;
  justify-content: flex-start !important;
}

.share-buttons a {
  opacity: 0.5;
  transition: opacity 0.15s;
}

.share-buttons a:hover {
  opacity: 1;
}

/* Author section if present */
.post-footer .author {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Breadcrumbs - minimal */
.breadcrumbs {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--link);
}

/* Cover images */
.post-cover img {
  border-radius: 8px;
  margin-bottom: 2rem;
}

/* Reading progress indicator - optional enhancement */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  z-index: 1000;
  transition: width 0.1s;
}

/* ===========================================
   Related Posts
   =========================================== */

.related-posts {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-posts-title {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.related-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.related-post-item {
  margin: 0;
}

.related-post-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.related-post-link:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

.related-post-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  transition: color 0.15s;
}

.related-post-link:hover .related-post-title {
  color: var(--link);
}

.related-post-date {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .related-post-link {
    flex-direction: column;
    gap: 0.25rem;
  }

  .related-post-date {
    order: -1;
  }
}
