/* ===================================================================
   Akbun Diary - Social Media Feed Style
   Left sidebar nav + Center feed cards
   =================================================================== */

/* ----- Design Tokens ----- */
:root {
  --color-bg: #ffffff;
  --color-bg-secondary: #f7f7f8;
  --color-bg-hover: #f0f0f2;
  --color-text: #0f1419;
  --color-text-secondary: #536471;
  --color-text-tertiary: #8899a6;
  --color-accent: #e8590c;
  --color-accent-hover: #c9480a;
  --color-border: #eff3f4;
  --color-border-dark: #cfd9de;
  --color-card-bg: #ffffff;
  --color-badge: #e8590c;
  --color-bold: #ec4899;
  --color-heading-primary: #7a2f2f;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --sidebar-width: 72px;
  --sidebar-width-open: 220px;
  --feed-max: 720px;
  --content-max: 860px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.15s ease-out;
}

/* ----- Reset ----- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); color: var(--color-text); background: var(--color-bg-secondary); line-height: 1.6; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; }

/* ===================================================================
   Mobile Top Bar (hidden on desktop)
   =================================================================== */
.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.mobile-topbar-title {
  font-size: 1.125rem;
  font-weight: 700;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  position: relative;
}

.hamburger::before, .hamburger::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  position: absolute;
  left: 0;
  transition: transform var(--transition);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* ===================================================================
   Left Sidebar - Instagram icon rail style
   Narrow by default, expands on hover to show labels
   =================================================================== */
.left-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: #000000;
  border-right: 1px solid #262626;
  overflow: hidden;
  z-index: 100;
  transition: width 0.2s ease;
}

.left-sidebar:hover {
  width: var(--sidebar-width-open);
  overflow-y: auto;
}

.left-sidebar-inner {
  padding: 1.25rem 0.875rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  width: var(--sidebar-width-open);
}

/* Logo: icon only by default, text on hover */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.sidebar-logo:hover {
  color: var(--color-accent);
}

.sidebar-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--color-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 8px;
}

.sidebar-logo-text {
  opacity: 0;
  transition: opacity 0.15s ease;
}
.left-sidebar:hover .sidebar-logo-text {
  opacity: 1;
}

/* Nav items: icon-only, labels appear on hover */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #e4e6eb;
  border-radius: var(--radius);
  transition: background var(--transition);
  white-space: nowrap;
}

.sidebar-nav-item:hover {
  background: #1a1a1a;
  color: #ffffff;
}

.sidebar-nav-item.active {
  font-weight: 700;
  color: #ffffff;
}

.sidebar-nav-item.active svg {
  stroke-width: 2.5;
}

.sidebar-nav-item svg {
  flex-shrink: 0;
  color: #e4e6eb;
}

.nav-label {
  opacity: 0;
  transition: opacity 0.15s ease;
}
.left-sidebar:hover .nav-label {
  opacity: 1;
}

/* Search toggle button */
.sidebar-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: left;
}

/* Search form */
.sidebar-search {
  display: none;
  padding: 0 0.375rem;
  margin-bottom: 0.5rem;
}

.sidebar-search.open {
  display: block;
}

.sidebar-search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 100px;
  color: #e4e6eb;
  outline: none;
  transition: border-color var(--transition);
}

.sidebar-search-input:focus {
  border-color: var(--color-accent);
}

.sidebar-search-input::placeholder {
  color: #8899a6;
}

/* Divider */
.sidebar-divider {
  border: none;
  border-top: 1px solid #262626;
  margin: 0.5rem 0 1rem;
}

/* Sidebar sections - hidden until hover expand */
.sidebar-section {
  margin-bottom: 1rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.left-sidebar:hover .sidebar-section {
  opacity: 1;
}

.sidebar-section-title {
  display: none;
}

/* Category list */
.sidebar-cat-list {
  list-style: none;
}

.sidebar-cat-list li {
  margin-bottom: 1px;
}

.sidebar-cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #e4e6eb;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.sidebar-cat-list a:hover {
  background: #1a1a1a;
  color: #ffffff;
}

.sidebar-cat-list .children {
  list-style: none;
  padding-left: 0.75rem;
}

/* Tags */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3125rem;
}

.sidebar-tag {
  display: inline-block;
  padding: 0.1875rem 0.5rem;
  font-size: 0.6875rem;
  color: #b0b3b8;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 100px;
  transition: all var(--transition);
}

.sidebar-tag:hover {
  background: #262626;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Sidebar ad */
.sidebar-ad {
  margin-top: auto;
  padding-top: 1rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.left-sidebar:hover .sidebar-ad {
  opacity: 1;
}

/* ===================================================================
   Feed Layout
   =================================================================== */
.feed-layout {
  margin-left: var(--sidebar-width);
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.feed-main {
  width: 100%;
  max-width: var(--feed-max);
  padding: 1.5rem 0;
  min-height: 100vh;
}

.feed-main--single {
  max-width: var(--content-max);
  min-height: 100vh;
}

/* ===================================================================
   Feed Cards
   =================================================================== */
.feed-posts {
  display: flex;
  flex-direction: column;
}

.feed-card {
  background: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
  transition: background var(--transition);
}

.feed-card:first-child {
  border-top: 1px solid var(--color-border);
}

.feed-card:hover {
  background: var(--color-bg-secondary);
}

/* Card header */
.feed-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.625rem;
}

.feed-card-meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
}

.feed-card-category {
  font-weight: 600;
  color: var(--color-accent);
}

.feed-card-category:hover {
  color: var(--color-accent-hover);
}

.feed-card-separator {
  color: var(--color-text-tertiary);
}

.feed-card-date {
  color: var(--color-text-tertiary);
}

.feed-card-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-badge);
  padding: 0.125rem 0.5rem;
  border-radius: 100px;
}

/* Card body */
.feed-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.feed-card-title-link {
  flex: 1;
  min-width: 0;
}

.feed-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
  transition: color var(--transition);
}

.feed-card-title-link:hover .feed-card-title,
.feed-card-title-link:focus-visible .feed-card-title {
  color: var(--color-accent);
}


/* ===================================================================
   Feed Ad Slots
   =================================================================== */
.feed-ad {
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-card-bg);
  min-height: 60px;
}

.feed-ad--top {
  border-top: 1px solid var(--color-border);
}

.feed-ad--after-post {
  margin: 2rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

/* ===================================================================
   Pagination - BIG & prominent
   =================================================================== */
.pagination,
.nav-links {
  margin-top: 0;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
}

.pagination .page-numbers,
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
  background: var(--color-bg-hover);
  color: var(--color-accent);
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
}

.pagination .prev,
.pagination .next {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  padding: 0 1rem;
}

.pagination .prev:hover,
.pagination .next:hover {
  background: var(--color-bg-hover);
}

/* ===================================================================
   Archive / Search Header
   =================================================================== */
.feed-archive-header {
  padding: 1.25rem 1.5rem;
  background: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
}

.feed-archive-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.feed-archive-count {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
  margin-top: 0.25rem;
  display: block;
}

.feed-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--color-text-tertiary);
  background: var(--color-card-bg);
}

/* ===================================================================
   Back Button Bar (Single Post)
   =================================================================== */
.back-bar {
  padding: 0.875rem 1.5rem;
  background: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
  padding: 0.375rem 0.75rem;
  border-radius: 100px;
  transition: background var(--transition);
}

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

.back-button svg {
  flex-shrink: 0;
}

/* ===================================================================
   Single Post Full Article
   =================================================================== */
.post-full {
  padding: 1.5rem;
  background: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.post-category-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.post-category-link:hover { color: var(--color-accent-hover); }

.post-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.post-meta {
  color: var(--color-text-tertiary);
  font-size: 0.875rem;
}

/* Post Body */
.post-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.post-body h1 { font-size: 1.75rem; font-weight: 700; color: var(--color-heading-primary); margin-top: 3rem; margin-bottom: 1rem; }
.post-body h2 { font-size: 1.3125rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 0.875rem; }
.post-body h3 { font-size: 1.125rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; }
.post-body h4 { font-size: 1.0625rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.post-body p { margin-bottom: 1.25rem; }
.post-body ul, .post-body ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 0.375rem; }

.post-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text-secondary);
}

.post-body blockquote p:last-child { margin-bottom: 0; }

.post-body strong, .post-body b { font-weight: 700; color: var(--color-bold); }
.post-body a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--color-border-dark); }
.post-body a:hover { text-decoration-color: var(--color-accent); }
.post-body img { border-radius: var(--radius-sm); margin: 1rem 0; }
.post-body figure { margin: 1.5rem 0; }
.post-body figcaption { font-size: 0.875rem; color: var(--color-text-tertiary); margin-top: 0.5rem; text-align: center; }

/* Inline code */
.post-body code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.2em 0.45em;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

/* Code block */
.post-body pre {
  position: relative;
  margin: 1.75rem 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #1d1f21;
  color: #c5c8c6;
}

.post-body pre > code {
  display: block;
  padding: 1.25rem 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  border: none;
  background: none;
  color: #c5c8c6;
  overflow-x: auto;
}

.wp-block-preformatted { padding: 1.25rem 1.5rem; }
.wp-block-code { margin: 1.75rem 0; border-radius: var(--radius-sm); overflow: hidden; background: #1d1f21; }
.wp-block-code code { display: block; padding: 1.25rem 1.5rem; font-size: 0.8125rem; line-height: 1.65; border: none; background: none; color: #c5c8c6; overflow-x: auto; }

/* Table */
.post-body table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: 0.9375rem; border: 1px solid var(--color-border-dark); border-radius: var(--radius-sm); overflow: hidden; }
.post-body th, .post-body td { padding: 0.75rem 1rem; text-align: left; border: 1px solid var(--color-border); }
.post-body th { font-weight: 600; background: var(--color-bg-secondary); }
.post-body tr:hover td { background: var(--color-bg-secondary); }

/* Post tags */
.post-tags {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.post-tags-label { font-size: 0.8125rem; font-weight: 700; color: var(--color-text-secondary); margin-right: 0.25rem; }

.post-tags a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-accent);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  transition: all var(--transition);
}

.post-tags a:hover { background: var(--color-bg-hover); border-color: var(--color-accent); }

/* Post navigation */
.post-navigation {
  padding: 1.25rem 1.5rem;
  background: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.post-navigation .nav-previous, .post-navigation .nav-next { flex: 1; min-width: 0; }
.post-navigation .nav-next { text-align: right; }
.post-navigation .nav-subtitle { display: block; font-size: 0.75rem; color: var(--color-text-tertiary); margin-bottom: 0.25rem; }
.post-navigation .nav-title { font-size: 0.9375rem; font-weight: 600; color: var(--color-text); }
.post-navigation a:hover .nav-title { color: var(--color-accent); }

/* ===================================================================
   Comments (inside feed)
   =================================================================== */
.comments-section {
  padding: 1.5rem;
  background: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
}

.comments-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.comment-items { list-style: none; }
.comment-item { margin-bottom: 0.75rem; }
.comment-item-inner { padding: 0.875rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg-secondary); }
.comment-item .children { list-style: none; margin-top: 0.75rem; margin-left: 1rem; }
.comment-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; }
.comment-author { font-weight: 700; }
.comment-author a { color: var(--color-text); }
.comment-author a:hover { color: var(--color-accent); }
.comment-date { color: var(--color-text-tertiary); }
.comment-content { margin-top: 0.5rem; line-height: 1.6; font-size: 0.9375rem; }
.comment-actions { display: flex; gap: 0.75rem; margin-top: 0.5rem; font-size: 0.75rem; color: var(--color-text-tertiary); }
.comment-actions a { color: var(--color-text-tertiary); }
.comment-actions a:hover { color: var(--color-accent); }

/* Comment form */
.comment-form { margin-top: 1rem; padding: 0.875rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg-secondary); }
.comment-form label { font-size: 0.8125rem; font-weight: 500; color: var(--color-text-secondary); margin-bottom: 0.25rem; display: block; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 0.625rem 0.75rem; font-size: 0.875rem; font-family: var(--font-sans); color: var(--color-text); background: var(--color-bg); border: 1px solid var(--color-border-dark); border-radius: var(--radius-sm); margin-bottom: 0.625rem;
}
.comment-form textarea { resize: vertical; min-height: 5rem; }
.comment-form .form-submit input[type="submit"] {
  padding: 0.625rem 1.25rem; font-size: 0.9375rem; font-weight: 600; color: #fff; background: var(--color-accent); border: none; border-radius: 100px; cursor: pointer;
}
.comment-form .form-submit input[type="submit"]:hover { background: var(--color-accent-hover); }
.comment-reply-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }

/* ===================================================================
   Floating ToC
   =================================================================== */
.floating-toc { display: none; position: fixed; top: 6rem; left: calc(var(--sidebar-width) + (100vw - var(--sidebar-width) - var(--content-max)) / 2 - 200px); width: 180px; max-height: calc(100vh - 8rem); overflow-y: auto; z-index: 50; }
.floating-toc.visible { display: block; }
.floating-toc-header { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-tertiary); margin-bottom: 0.5rem; }
.floating-toc-list { list-style: none; }
.toc-item { margin-bottom: 0.125rem; }
.toc-h2 { padding-left: 0.75rem; }
.toc-h3 { padding-left: 1.5rem; }
.toc-link { display: block; padding: 0.25rem 0.5rem; font-size: 0.8125rem; font-weight: 500; color: var(--color-text-tertiary); border-left: 2px solid transparent; transition: all var(--transition); line-height: 1.4; }
.toc-link:hover { color: var(--color-text); }
.toc-link.active { color: var(--color-accent); border-left-color: var(--color-accent); }

@media (max-width: 1400px) { .floating-toc { display: none !important; } }

/* ===================================================================
   404 Page
   =================================================================== */
.error-404 { padding: 1.5rem; background: var(--color-card-bg); }
.error-404 .post-header { border-bottom: none; padding-bottom: 0; margin-bottom: 1rem; }
.error-404-recent { margin-top: 2rem; }
.error-404-recent h2 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.list-posts { list-style: none; }
.list-post-item { border-bottom: 1px solid var(--color-border); }
.list-post-item a { display: block; padding: 0.75rem 0; color: var(--color-text); font-size: 0.9375rem; }
.list-post-item a:hover { color: var(--color-accent); }

/* ===================================================================
   WordPress misc
   =================================================================== */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

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

/* Tablet */
@media (max-width: 768px) {
  .mobile-topbar {
    display: flex;
  }

  .left-sidebar {
    display: none;
    position: fixed;
    top: 49px;
    left: 0;
    width: var(--sidebar-width-open);
    height: calc(100vh - 49px);
    box-shadow: 4px 0 16px rgba(0,0,0,0.3);
    overflow-y: auto;
  }

  .left-sidebar.toggled {
    display: block;
  }

  .left-sidebar .nav-label,
  .left-sidebar .sidebar-logo-text,
  .left-sidebar .sidebar-section,
  .left-sidebar .sidebar-ad {
    opacity: 1;
  }

  .menu-toggle {
    display: block;
  }

  .feed-layout {
    margin-left: 0;
  }

  .feed-main {
    max-width: 100%;
    padding: 0;
  }

  .back-bar {
    top: 49px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .feed-card {
    padding: 1rem;
  }

  .feed-card-title {
    font-size: 1rem;
  }

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

  .post-body { font-size: 1rem; }
  .post-body h1 { font-size: 1.375rem; }
  .post-body h2 { font-size: 1.1875rem; }
  .post-body h3 { font-size: 1.0625rem; }

  .post-body pre {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
  }

  .post-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .post-navigation .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .post-navigation .nav-next { text-align: left; }
}

/* ===================================================================
   Print
   =================================================================== */
@media print {
  .left-sidebar, .mobile-topbar, .site-footer, .floating-toc, .post-navigation, .comments-section, .feed-ad, .back-bar, .menu-toggle, .search-bar, .pagination { display: none !important; }
  body { color: #000; background: #fff; }
  .feed-layout { margin-left: 0; }
  .post-body a::after { content: " (" attr(href) ")"; font-size: 0.75em; color: #666; }
}
