:root, [data-theme="light"] {
  --bg-base: #fbf9f5;
  --bg-surface: #fbf9f5;
  --bg-surface-elevated: #f5f3ef;
  --bg-surface-hover: #efeeea;
  --border-subtle: #cbc6bd;
  --border-strong: #59564f;
  --border-focus: #000000;
  --text-primary: #1b1c1a;
  --text-secondary: #494740;
  --text-muted: #59564f;
  --heading-color: #000000;
  --accent-primary: #943516;
  --accent-secondary: #1c1b19;
  --accent-tertiary: #943516;
  --accent-gradient: linear-gradient(145deg, #943516 35%, #721c00 100%);
  --accent-gradient-subtle: linear-gradient(135deg, rgba(148, 53, 22, 0.12) 0%, rgba(0, 0, 0, 0.08) 100%);
  --glass-bg: rgba(251, 249, 245, 0.96);
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-full: 9999px;
  --shadow-sm: none;
  --shadow-md: 0 4px 14px rgba(27, 28, 26, 0.06);
  --shadow-lg: 0 12px 28px rgba(27, 28, 26, 0.1);
  --font-ui: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'EB Garamond', Georgia, serif;
  --font-body-serif: 'Newsreader', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg-base: #121210;
  --bg-surface: #181816;
  --bg-surface-elevated: #20201d;
  --bg-surface-hover: #2a2a26;
  --border-subtle: rgba(255, 255, 255, 0.18);
  --border-strong: rgba(255, 255, 255, 0.34);
  --border-focus: #f28f73;
  --text-primary: #f5f3ef;
  --text-secondary: #d8d3ca;
  --text-muted: #b5b0a6;
  --heading-color: #ffffff;
  --accent-primary: #f28f73;
  --accent-secondary: #f5f3ef;
  --accent-tertiary: #ffb49d;
  --accent-gradient: linear-gradient(145deg, #f28f73 35%, #a23e1f 100%);
  --accent-gradient-subtle: linear-gradient(135deg, rgba(242, 143, 115, 0.18) 0%, rgba(162, 62, 31, 0.18) 100%);
  --glass-bg: rgba(18, 18, 16, 0.96);
  --shadow-sm: none;
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-ui);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent-primary);
  z-index: 100;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Header */
.site-header, .header {
  height: auto;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 50;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-inner {
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.head__logo {
  display: flex;
  align-items: center;
}

.brand-link, .brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--heading-color);
  letter-spacing: -0.025em;
  transition: color 0.2s ease;
}
.brand-link:hover .brand-title, .brand:hover .brand-title {
  color: var(--accent-primary);
}

.brand-tagline {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}

.head__nav, .header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.head__nav a, .header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.head__nav a:hover, .header-nav a:hover {
  color: var(--accent-primary);
  background-color: var(--bg-surface-elevated);
}

.theme-toggle-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--heading-color);
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.2s ease;
}
.theme-toggle-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

/* Layout */
.site-container, .container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 64px 80px;
  width: 100%;
  flex: 1;
}

.layout-wrapper {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.content-area {
  flex: 1;
  min-width: 0;
}

.sidebar-area {
  width: 360px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
  font-weight: 600;
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--accent-primary); }
.breadcrumbs span.separator { color: var(--text-muted); opacity: 0.5; }

/* Filter Toolbar */
.filter-toolbar {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.filter-categories {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
}
.filter-categories::-webkit-scrollbar { display: none; }

.filter-pill {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-ui);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  text-decoration: none;
}
.filter-pill:hover {
  color: var(--heading-color);
  background: var(--bg-surface-elevated);
}
.filter-pill.active {
  background: var(--heading-color);
  color: #ffffff;
  border-color: transparent;
}
.filter-pill-series {
  border: 1px dashed rgba(162, 62, 31, 0.4);
  color: var(--accent-primary);
}

.filter-search-box {
  position: relative;
  width: 220px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.filter-search-box .search-icon {
  position: absolute;
  left: 10px;
  font-size: 12px;
  pointer-events: none;
  opacity: 0.6;
}
.filter-search-box .search-input {
  width: 100%;
  height: 34px;
  padding: 0 10px 0 30px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
  font-family: var(--font-ui);
  outline: none;
  transition: all 0.15s ease;
}
.filter-search-box .search-input:focus {
  border-color: var(--accent-primary);
}

/* Post Cards Feed */
.posts-feed {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-card, .card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.post-card.border-b {
  border-top: 0;
  border-left: 0;
  border-right: 0;
  background: transparent;
}

.post-card:hover, .card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.post-card-thumb, .card-media {
  position: relative;
  width: 300px;
  min-width: 260px;
  flex-shrink: 0;
  background: var(--bg-surface-elevated);
  overflow: hidden;
}

.post-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

.post-thumb-img, .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.post-card:hover .post-thumb-img, .card:hover .card-img {
  transform: scale(1.04);
}

.post-thumb-placeholder, .card-media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  position: relative;
}

.placeholder-icon, .card-placeholder-icon {
  font-size: 32px;
  color: var(--accent-primary);
  opacity: 0.8;
}

.thumb-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: auto;
  z-index: 2;
}

.thumb-cat-badge, .cat-pill {
  background: var(--accent-primary);
  color: #ffffff !important;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 0;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.thumb-cat-badge:hover, .cat-pill:hover {
  background: #721c00;
}

.thumb-read-time {
  background: rgba(15, 18, 29, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

.post-card-body, .card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.post-card-meta, .card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.meta-author {
  font-weight: 600;
  color: var(--text-secondary);
}

.post-card-title, .card-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--heading-color);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.post-card-title a, .card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.post-card-title a:hover, .card-title a:hover {
  color: var(--accent-primary);
}

.post-card-excerpt, .card-excerpt {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer, .card-footer {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-discover {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(145deg, #8e8bff 35%, #4440b4 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 5px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(68, 64, 180, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
}

.btn-discover:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(68, 64, 180, 0.4);
  filter: brightness(1.05);
}

/* Sidebar Widgets */
.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 8px;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.widget-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget-post-item {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}
.widget-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget-post-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
}

.widget-post-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading-color);
  line-height: 1.4;
  transition: color 0.15s ease;
}
.widget-post-title:hover {
  color: var(--accent-primary);
}

.widget-post-date {
  font-size: 11.5px;
  color: var(--text-muted);
}

.widget-tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tagcloud-link {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.tagcloud-link:hover {
  background: var(--accent-gradient-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
.tagcloud-count {
  font-size: 10.5px;
  opacity: 0.7;
}

.widget-series-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.widget-series-item {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}
.widget-series-item:last-child { border-bottom: none; }
.widget-series-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--heading-color);
  font-weight: 600;
}
.widget-series-link:hover { color: var(--accent-primary); }
.widget-series-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
}

.widget-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.btn-rss-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--heading-color);
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-rss-subscribe:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
.rss-dot {
  color: #f97316;
  font-size: 10px;
}

/* Archive header */
.archive-header-banner {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.archive-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  color: var(--heading-color);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.archive-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* Article Reader */
.article-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.article-header {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 22px;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--heading-color);
  margin: 14px 0 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.article-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 24px 0 32px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

/* Table of Contents (TOC) */
.toc-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 12px;
}

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

.toc-item {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.5;
}
.toc-item.level-3 {
  padding-left: 18px;
  font-size: 13px;
}
.toc-item a {
  color: var(--text-secondary);
  display: inline-block;
  padding: 2px 0;
  transition: color 0.15s ease;
}
.toc-item a:hover {
  color: var(--accent-primary);
}

/* Series Navigation Box */
.series-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-secondary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.series-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 14px;
}

.series-box-header a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-primary);
}

.series-box-links {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}
.series-box-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}
.series-link-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.series-link-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--heading-color);
}

/* Article Content Typography */
.article-content {
  font-family: var(--font-body-serif, 'Newsreader', Georgia, serif);
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
}
.article-content h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 90px;
}
.article-content h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 30px 0 14px;
  scroll-margin-top: 90px;
}
.article-content p {
  margin-bottom: 22px;
}
.article-content ul, .article-content ol {
  margin: 16px 0 24px 28px;
}
.article-content li {
  margin-bottom: 8px;
}
.article-content li:has(> input.task-list-item-checkbox),
.article-content li:has(> p:first-child > input.task-list-item-checkbox) {
  list-style: none;
}
.article-content input.task-list-item-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 0 8px 0 0;
  vertical-align: -2px;
  border: 2px solid var(--border-strong);
  border-radius: 3px;
  background-color: var(--bg-surface);
  display: inline-block;
  position: relative;
  cursor: default;
  opacity: 1;
}
.article-content input.task-list-item-checkbox:checked {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
}
.article-content input.task-list-item-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0px;
  width: 4px;
  height: 8px;
  border: solid var(--bg-base);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.article-content blockquote {
  border-left: 4px solid var(--accent-primary);
  background: var(--bg-surface-elevated);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-secondary);
}
.article-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-surface-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}
.article-content pre {
  background: #161a29;
  color: #f8fafc;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border-subtle);
}
.article-content pre code {
  background: transparent;
  padding: 0;
  border: none;
  color: inherit;
}
.article-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 20px 0;
}

/* Ad Container */
.ad-container {
  margin: 32px auto;
  text-align: center;
  min-height: 100px;
  background: transparent;
  display: block;
}

/* Social Share Bar */
.share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin: 36px 0;
  flex-wrap: wrap;
}
.share-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--heading-color);
}
.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.share-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.share-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

/* Author Box */
.author-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}
.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 0;
  background: var(--heading-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  color: #fff;
  font-weight: 600;
  flex-shrink: 0;
}
.author-info h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--heading-color);
}
.author-info p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Next / Prev Navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0;
}
.post-nav-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.post-nav-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.post-nav-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.post-nav-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.4;
}

/* Related Posts Section */
.related-section {
  margin: 50px 0 20px;
}
.related-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 22px;
  color: var(--heading-color);
  border-left: 4px solid var(--accent-primary);
  padding-left: 14px;
  letter-spacing: -0.015em;
}

/* Series Hub Part List */
.series-part-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.series-part-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.series-part-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}
.series-part-number {
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: var(--heading-color);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.series-part-body {
  flex: 1;
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--accent-primary);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  font-weight: 600;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}
.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.site-footer, .footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 44px 24px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.footer-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--heading-color);
}
.footer-desc {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: var(--accent-primary);
}
.footer-copy {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .site-header, .header { height: auto; padding: 12px 0; }
  .header-inner { flex-direction: column; gap: 12px; padding: 0 16px; }
  .layout-wrapper { flex-direction: column; }
  .sidebar-area { width: 100%; }
  .post-card, .card { flex-direction: column; }
  .post-card-thumb, .card-media { width: 100%; min-width: 100%; height: 220px; }
  .article-title { font-size: 28px; }
  .article-container { padding: 20px 16px 60px; }
  .post-nav { grid-template-columns: 1fr; }
}

*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.collapse{visibility:collapse}.relative{position:relative}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-space-lg{margin-bottom:1.5rem}.mb-space-md{margin-bottom:1rem}.mb-space-sm{margin-bottom:.5rem}.mb-space-xs{margin-bottom:.25rem}.mb-space-xxl{margin-bottom:4rem}.mr-space-xs{margin-right:.25rem}.mt-0\.5{margin-top:.125rem}.mt-\[3px\]{margin-top:3px}.mt-space-md{margin-top:1rem}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-1\.5{height:.375rem}.h-48{height:12rem}.h-6{height:1.5rem}.h-\[1px\]{height:1px}.h-\[200px\]{height:200px}.h-\[2px\]{height:2px}.h-\[420px\]{height:420px}.h-full{height:100%}.min-h-screen{min-height:100vh}.w-1\.5{width:.375rem}.w-36{width:9rem}.w-6{width:1.5rem}.w-full{width:100%}.max-w-2xl{max-width:42rem}.max-w-\[1360px\]{max-width:1360px}.flex-grow{flex-grow:1}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-space-lg{gap:1.5rem}.gap-space-md{gap:1rem}.gap-space-sm{gap:.5rem}.gap-space-xl{gap:2.5rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem*var(--tw-space-y-reverse))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-right-width:calc(1px*var(--tw-divide-x-reverse));border-left-width:calc(1px*(1 - var(--tw-divide-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px*var(--tw-divide-y-reverse))}.divide-outline-variant>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(203 198 189/var(--tw-divide-opacity,1))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-none{border-radius:0}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-x{border-left-width:1px;border-right-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-t-2{border-top-width:2px}.border-outline-variant{--tw-border-opacity:1;border-color:rgb(203 198 189/var(--tw-border-opacity,1))}.border-primary{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity,1))}.border-secondary{--tw-border-opacity:1;border-color:rgb(162 62 31/var(--tw-border-opacity,1))}.bg-background{--tw-bg-opacity:1;background-color:rgb(251 249 245/var(--tw-bg-opacity,1))}.bg-outline-variant{--tw-bg-opacity:1;background-color:rgb(203 198 189/var(--tw-bg-opacity,1))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-secondary{--tw-bg-opacity:1;background-color:rgb(162 62 31/var(--tw-bg-opacity,1))}.bg-surface{--tw-bg-opacity:1;background-color:rgb(251 249 245/var(--tw-bg-opacity,1))}.bg-surface-container{--tw-bg-opacity:1;background-color:rgb(239 238 234/var(--tw-bg-opacity,1))}.bg-surface-container-low{--tw-bg-opacity:1;background-color:rgb(245 243 239/var(--tw-bg-opacity,1))}.bg-surface-container-lowest{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-space-lg{padding:1.5rem}.p-space-md{padding:1rem}.p-space-xl{padding:2.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-margin-desktop{padding-left:4rem;padding-right:4rem}.px-space-lg{padding-left:1.5rem;padding-right:1.5rem}.px-space-md{padding-left:1rem;padding-right:1rem}.px-space-sm{padding-left:.5rem;padding-right:.5rem}.px-space-xs{padding-left:.25rem;padding-right:.25rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-space-lg{padding-top:1.5rem;padding-bottom:1.5rem}.py-space-sm{padding-top:.5rem;padding-bottom:.5rem}.py-space-xl{padding-top:2.5rem;padding-bottom:2.5rem}.py-space-xs{padding-top:.25rem}.pb-1,.py-space-xs{padding-bottom:.25rem}.pb-space-lg{padding-bottom:1.5rem}.pb-space-md{padding-bottom:1rem}.pb-space-sm{padding-bottom:.5rem}.pb-space-xs{padding-bottom:.25rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-space-md{padding-top:1rem}.pt-space-sm{padding-top:.5rem}.text-center{text-align:center}.font-body-lg,.font-body-md,.font-body-sm,.font-editorial-lede{font-family:Newsreader}.font-headline-lg,.font-headline-md,.font-headline-sm{font-family:EB Garamond}.font-label-caps,.font-label-md,.font-label-sm{font-family:Hanken Grotesk}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-serif{font-family:ui-serif,Georgia,Cambria,Times New Roman,Times,serif}.text-body-lg{font-size:18px;line-height:28px;font-weight:400}.text-body-md{font-size:16px;line-height:26px;font-weight:400}.text-body-sm{font-size:14px;line-height:22px;font-weight:400}.text-editorial-lede{font-size:20px;line-height:32px;letter-spacing:-.005em;font-weight:400}.text-headline-lg{font-size:40px;line-height:48px;letter-spacing:-.015em;font-weight:400}.text-headline-md{font-size:28px;line-height:36px;letter-spacing:-.01em;font-weight:400}.text-headline-sm{font-size:22px;line-height:30px;letter-spacing:0;font-weight:500}.text-label-caps{font-size:11px;line-height:16px;letter-spacing:.12em;font-weight:600}.text-label-md{font-size:13px;line-height:18px;letter-spacing:.01em;font-weight:500}.text-label-sm{font-size:12px;line-height:16px;letter-spacing:.02em;font-weight:400}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-normal{letter-spacing:0}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-on-primary{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-on-surface{--tw-text-opacity:1;color:rgb(27 28 26/var(--tw-text-opacity,1))}.text-on-surface-variant{--tw-text-opacity:1;color:rgb(73 71 64/var(--tw-text-opacity,1))}.text-outline{--tw-text-opacity:1;color:rgb(122 119 111/var(--tw-text-opacity,1))}.text-outline-variant{--tw-text-opacity:1;color:rgb(203 198 189/var(--tw-text-opacity,1))}.text-primary{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.text-secondary{--tw-text-opacity:1;color:rgb(162 62 31/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.outline{outline-style:solid}.contrast-\[1\.05\]{--tw-contrast:contrast(1.05)}.contrast-\[1\.05\],.grayscale-\[10\%\]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale-\[10\%\]{--tw-grayscale:grayscale(10%)}.grayscale-\[15\%\]{--tw-grayscale:grayscale(15%)}.grayscale-\[15\%\],.grayscale-\[20\%\]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale-\[20\%\]{--tw-grayscale:grayscale(20%)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-opacity{transition-duration:.15s}.selection\:bg-secondary-fixed ::-moz-selection{--tw-bg-opacity:1;background-color:rgb(255 219 209/var(--tw-bg-opacity,1))}.selection\:bg-secondary-fixed ::selection{--tw-bg-opacity:1;background-color:rgb(255 219 209/var(--tw-bg-opacity,1))}.selection\:text-on-secondary-container ::-moz-selection{--tw-text-opacity:1;color:rgb(114 28 0/var(--tw-text-opacity,1))}.selection\:text-on-secondary-container ::selection{--tw-text-opacity:1;color:rgb(114 28 0/var(--tw-text-opacity,1))}.selection\:bg-secondary-fixed::-moz-selection{--tw-bg-opacity:1;background-color:rgb(255 219 209/var(--tw-bg-opacity,1))}.selection\:bg-secondary-fixed::selection{--tw-bg-opacity:1;background-color:rgb(255 219 209/var(--tw-bg-opacity,1))}.selection\:text-on-secondary-container::-moz-selection{--tw-text-opacity:1;color:rgb(114 28 0/var(--tw-text-opacity,1))}.selection\:text-on-secondary-container::selection{--tw-text-opacity:1;color:rgb(114 28 0/var(--tw-text-opacity,1))}.placeholder\:font-body-sm::-moz-placeholder{font-family:Newsreader}.placeholder\:font-body-sm::placeholder{font-family:Newsreader}.placeholder\:italic::-moz-placeholder{font-style:italic}.placeholder\:italic::placeholder{font-style:italic}.hover\:bg-primary-container:hover{--tw-bg-opacity:1;background-color:rgb(28 27 25/var(--tw-bg-opacity,1))}.hover\:bg-surface-container:hover{--tw-bg-opacity:1;background-color:rgb(239 238 234/var(--tw-bg-opacity,1))}.hover\:text-primary:hover{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.hover\:text-secondary:hover{--tw-text-opacity:1;color:rgb(162 62 31/var(--tw-text-opacity,1))}.hover\:opacity-90:hover{opacity:.9}.focus\:border-primary:focus{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity,1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.active\:bg-secondary:active{--tw-bg-opacity:1;background-color:rgb(162 62 31/var(--tw-bg-opacity,1))}@media (min-width:768px){.md\:col-span-1{grid-column:span 1/span 1}.md\:inline{display:inline}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-right-width:calc(1px*var(--tw-divide-x-reverse));border-left-width:calc(1px*(1 - var(--tw-divide-x-reverse)))}.md\:divide-y-0>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(0px*(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px*var(--tw-divide-y-reverse))}.md\:text-left{text-align:left}}@media (min-width:1024px){.lg\:col-span-4{grid-column:span 4/span 4}.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:col-span-8{grid-column:span 8/span 8}.lg\:flex{display:flex}.lg\:w-48{width:12rem}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-right-width:calc(1px*var(--tw-divide-x-reverse));border-left-width:calc(1px*(1 - var(--tw-divide-x-reverse)))}.lg\:divide-y-0>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(0px*(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px*var(--tw-divide-y-reverse))}}


::selection {
  background-color: #ffdbd1;
  color: #721c00;
}

/* Broadsheet Post-Tailwind Overrides: Dark Mode, Article Reader Typography, Tables, & Mobile Layout */
.text-outline { color: var(--text-muted) !important; }
.text-secondary { color: var(--accent-primary) !important; }
.bg-secondary { background-color: #943516 !important; color: #ffffff !important; }
.thumb-cat-badge, .cat-pill { background: #943516 !important; color: #ffffff !important; }
.breadcrumbs span.separator { color: var(--text-muted); opacity: 1; }
input::-moz-placeholder, textarea::-moz-placeholder { opacity: 1; color: var(--text-muted) !important; }
input::placeholder, textarea::placeholder { opacity: 1; color: var(--text-muted) !important; }
[data-theme="dark"] .bg-background,
[data-theme="dark"].bg-background { background-color: var(--bg-base) !important; }
[data-theme="dark"] .bg-surface { background-color: var(--bg-surface) !important; }
[data-theme="dark"] .bg-surface-container-low { background-color: var(--bg-surface-elevated) !important; }
[data-theme="dark"] .bg-surface-container-lowest { background-color: #141412 !important; }
[data-theme="dark"] .bg-surface-container { background-color: var(--bg-surface-hover) !important; }
[data-theme="dark"] .text-primary { color: var(--heading-color) !important; }
[data-theme="dark"] .text-on-surface { color: var(--text-primary) !important; }
[data-theme="dark"] .text-on-surface-variant { color: var(--text-secondary) !important; }
[data-theme="dark"] .text-outline { color: var(--text-muted) !important; }
[data-theme="dark"] .text-secondary { color: var(--accent-primary) !important; }
[data-theme="dark"] .border-outline-variant { border-color: var(--border-subtle) !important; }
[data-theme="dark"] .border-primary { border-color: var(--border-strong) !important; }
[data-theme="dark"] .divide-outline-variant > :not([hidden]) ~ :not([hidden]) { border-color: var(--border-subtle) !important; }
[data-theme="dark"] .bg-primary { background-color: #943516 !important; color: #ffffff !important; }
[data-theme="dark"] .filter-pill.active { background-color: #943516 !important; color: #ffffff !important; border-color: #943516 !important; }
[data-theme="dark"] .text-on-primary { color: #ffffff !important; }
[data-theme="dark"] .author-avatar,
[data-theme="dark"] .series-part-number {
  background: #f5f3ef !important;
  color: #121210 !important;
}
[data-theme="dark"] .hover\:bg-surface-container:hover { background-color: var(--bg-surface-hover) !important; }
/* Tailwind hover colors are tuned for the light surface; keep hovered text at AA contrast in dark mode (#216 — PUB-08).
   The doubled backslash survives this template literal, so the emitted selector is .hover\:… as Tailwind defines it. */
[data-theme="dark"] .hover\:text-primary:hover { color: var(--heading-color) !important; }
[data-theme="dark"] .hover\:text-secondary:hover { color: var(--accent-primary) !important; }

.article-content h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 90px;
}
.article-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 30px 0 14px;
  scroll-margin-top: 90px;
}
.article-content h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 24px 0 10px;
}
.article-content p {
  margin-bottom: 22px;
}
.article-content ul {
  list-style-type: disc;
  margin: 16px 0 24px;
  padding-left: 28px;
}
.article-content ol {
  list-style-type: decimal;
  margin: 16px 0 24px;
  padding-left: 28px;
}
.article-content li {
  margin-bottom: 8px;
  padding-left: 4px;
}
.article-content li > ul,
.article-content li > ol {
  margin: 8px 0;
}
.article-content a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.article-content a:hover {
  color: var(--heading-color);
}
.article-content blockquote {
  margin: 24px 0;
}
.article-content pre {
  margin: 24px 0;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-family: var(--font-ui);
  font-size: 14.5px;
  line-height: 1.5;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.article-content thead {
  background: var(--bg-surface-elevated);
  border-bottom: 2px solid var(--heading-color);
}
.article-content th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: var(--heading-color);
  border: 1px solid var(--border-subtle);
}
.article-content td {
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: top;
}
.article-content tbody tr:nth-child(even) {
  background: var(--bg-surface-elevated);
}

/* Article reading layout (#138): reading measure, type scale, section rhythm, figures, TOC.
   The article column is about 65-72 characters wide. The reading grid owns the TOC;
   the article end uses the full container without sharing the TOC rows. Tailwind's .container
   max-width is overridden here because it is emitted after the base .article-container rule. */
.site-container.article-container {
  --article-measure: 38rem;
  --article-wide: 60rem;
  --article-toc-width: 15rem;
  max-width: 820px;
  padding: 32px 20px 80px;
}
body:has(.article-container) { overflow-x: clip; }
.article-container > .breadcrumbs,
.article-container > article > .article-header,
.article-container > article > .article-content,
.article-container > article > .article-reading-layout > .article-header,
.article-container > article > .article-reading-layout > .toc-box,
.article-container > article > .article-reading-layout > .series-box,
.article-container > article > .article-reading-layout > .article-content,
.article-container > article > .article-reading-layout > .article-tags {
  max-width: var(--article-measure);
  margin-left: auto;
  margin-right: auto;
}
.article-content {
  font-size: 1.1875rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}
.article-content > :first-child { margin-top: 0; }
.article-content p { margin: 0 0 1.25em; }
.article-content h2 {
  font-size: clamp(1.625rem, 1.25rem + 1.2vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 3.5rem 0 1rem;
  padding: 2rem 0 0;
  border-bottom: 0;
  border-top: 1px solid var(--border-subtle);
}
.article-content > h2:first-child,
.article-content hr + h2 {
  padding-top: 0;
  border-top: 0;
}
.article-content h3 {
  font-size: 1.375rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.75rem;
}
.article-content h2 + h3 { margin-top: 1.25rem; }
.article-content h4 {
  font-size: 1.1875rem;
  line-height: 1.35;
  margin: 1.75rem 0 0.5rem;
}
.article-content hr {
  border: 0;
  height: 1px;
  width: 6rem;
  margin: 3rem auto;
  background: var(--border-strong);
}
.article-content ul,
.article-content ol {
  margin: 0 0 1.5em;
  padding-left: 1.75em;
}
.article-content ol { padding-left: 2.25em; }
.article-content li {
  margin-bottom: 0.6em;
  padding-left: 0.25em;
}
.article-content ol > li { margin-bottom: 1em; }
.article-content li::marker {
  color: var(--accent-primary);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9em;
}
.article-content li > p { margin-bottom: 0.5em; }
.article-content li > ul,
.article-content li > ol { margin: 0.5em 0 0; }
.article-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.25rem 1rem 1.5rem;
  border-left: 3px solid var(--accent-primary);
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  font-style: italic;
}
.article-content blockquote > :last-child { margin-bottom: 0; }
.article-content blockquote.pull-quote,
.article-content aside.pull-quote {
  margin: 2.5rem 0;
  padding: 1.25rem 0;
  border-left: 0;
  border-top: 2px solid var(--heading-color);
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--heading-color);
  text-align: center;
}
.article-content pre {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  tab-size: 2;
}
.article-content :not(pre) > code {
  font-size: 0.875em;
  overflow-wrap: anywhere;
}
.article-content figure { margin: 2rem 0; }
.article-content figure img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}
.article-content figcaption {
  margin-top: 0.625rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}
.article-content figure.wide {
  width: min(calc(100vw - 2rem), var(--article-wide));
  margin-left: calc((100% - min(calc(100vw - 2rem), var(--article-wide))) / 2);
  margin-right: calc((100% - min(calc(100vw - 2rem), var(--article-wide))) / 2);
}
.article-content figure.full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.article-content figure.wide img,
.article-content figure.full img { width: 100%; }
.article-content figure.full figcaption { padding: 0 1rem; }
.article-content .table-scroll {
  margin: 1.75rem 0;
  overflow-x: auto;
}
.article-content .table-scroll:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}
.article-content .table-scroll > table { margin: 0; }
.article-content .heading-anchor {
  margin-left: 0.35em;
  color: var(--text-muted);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.article-content .heading-anchor::before { content: "#"; }
.article-content h2:hover .heading-anchor,
.article-content h3:hover .heading-anchor,
.article-content .heading-anchor:focus-visible { opacity: 1; }
@media (hover: none) {
  .article-content .heading-anchor { opacity: 1; }
}
.article-content .callout,
.article-content .key-takeaways {
  margin: 2rem 0;
  padding: 1.125rem 1.375rem;
  border-left: 4px solid var(--callout-accent);
  background: var(--callout-bg);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.article-content .callout > :last-child,
.article-content .key-takeaways > :last-child { margin-bottom: 0; }
.article-content .callout-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heading-color);
}
.callout-note { --callout-accent: #2f5f8a; --callout-bg: #edf2f7; }
.callout-tip { --callout-accent: #2e6b3f; --callout-bg: #edf5ee; }
.callout-warning { --callout-accent: #94600f; --callout-bg: #fbf2e1; }
.key-takeaways { --callout-accent: var(--accent-primary); --callout-bg: var(--bg-surface-elevated); }
[data-theme="dark"] .callout-note { --callout-accent: #8db4dd; --callout-bg: rgba(141, 180, 221, 0.1); }
[data-theme="dark"] .callout-tip { --callout-accent: #8fca9c; --callout-bg: rgba(143, 202, 156, 0.1); }
[data-theme="dark"] .callout-warning { --callout-accent: #e5b562; --callout-bg: rgba(229, 181, 98, 0.1); }
.article-content .key-takeaways {
  border-left: 0;
  border-top: 3px solid var(--callout-accent);
}
.article-content .key-takeaways ul,
.article-content .key-takeaways ol { margin-bottom: 0; }
.article-content .section-break { margin: 4.5rem 0 3rem; }
.article-content .section-break hr {
  width: 3rem;
  height: 3px;
  margin: 0 auto;
  background: var(--accent-primary);
}
.article-content .section-break .section-image { margin-top: 2.5rem; margin-bottom: 0; }
.article-content .section-break + h2 {
  margin-top: 2.5rem;
  padding-top: 0;
  border-top: 0;
}
.article-content .media-side { margin: 2.5rem 0; }
.article-content .media-side-figure .article-figure { margin: 0 0 1.25rem; }
.article-content .media-side-text > :last-child { margin-bottom: 0; }
@media (min-width: 768px) {
  .article-content .media-side {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-template-areas: "figure text";
    column-gap: 2rem;
    align-items: center;
  }
  .article-content .media-side-right { grid-template-areas: "text figure"; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .article-content .media-side-figure { grid-area: figure; }
  .article-content .media-side-text { grid-area: text; }
  .article-content .media-side-figure .article-figure { margin: 0; }
}
@media (min-width: 1024px) {
  .article-content .media-side {
    width: min(calc(100vw - 2rem), var(--article-wide));
    margin-left: calc((100% - min(calc(100vw - 2rem), var(--article-wide))) / 2);
    margin-right: calc((100% - min(calc(100vw - 2rem), var(--article-wide))) / 2);
  }
}
.toc-box { padding: 0; }
.article-container > article > .article-reading-layout > .toc-box { margin-top: 1.5rem; margin-bottom: 2rem; }
.toc-header {
  cursor: pointer;
  list-style: none;
  margin: 0;
  padding: 14px 20px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc-header::-webkit-details-marker { display: none; }
.toc-header::after { content: "+"; font-size: 1.25em; line-height: 1; }
.toc-details[open] > .toc-header::after { content: "−"; }
.toc-list { margin: 0; padding: 0 20px 16px; }
@media (min-width: 1200px) {
  .site-container.article-container.has-toc {
    max-width: calc(var(--article-measure) + var(--article-toc-width) + 3rem + 40px);
  }
  .article-container.has-toc > .breadcrumbs { margin-left: 0; }
  .article-container.has-toc .article-reading-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--article-toc-width);
    column-gap: 3rem;
    align-items: start;
  }
  .article-container.has-toc .article-reading-layout > * {
    grid-column: 1;
    min-width: 0;
  }
  .article-container.has-toc .article-reading-layout > .toc-box {
    grid-column: 2;
    grid-row: 1 / span 5;
    position: sticky;
    top: 1.5rem;
    max-width: none;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    margin: 0;
  }
}
/* Owner rule (#138): the column grows; no reading-layout figure breaks out.
   Intrinsic source ratio reserves the capped image before decoding. */
.article-reading-layout .article-content figure {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.article-reading-layout .article-content img:not(.ad-container img) {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: min(70vh, 720px);
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}
.article-reading-layout .article-content img[style*="--image-ratio"]:not(.ad-container img) {
  width: min(100%, var(--image-native-width), calc(70vh * var(--image-ratio)), calc(720px * var(--image-ratio))) !important;
  aspect-ratio: var(--image-ratio);
}
.article-reading-layout .article-content figure figcaption { width: 100%; padding: 0; }
.article-reading-layout .article-content .media-side { width: 100%; margin-left: 0; margin-right: 0; }
.article-reading-layout > .article-hero-img { max-width: var(--article-measure); height: auto; margin-left: auto; margin-right: auto; }
@media (min-width: 1600px) {
  .site-container.article-container:has(.article-reading-layout) {
    --article-measure: 720px;
    --article-toc-width: 260px;
    --article-body-size: 21px;
  }
  .site-container.article-container:has(.article-reading-layout):not(.has-toc) {
    max-width: max(820px, calc(var(--article-measure) + 40px));
  }
  .article-reading-layout .article-content { font-size: var(--article-body-size); line-height: 1.7; }
  .article-reading-layout .article-content h2 { font-size: calc(var(--article-body-size) * 32 / 19); }
  .article-reading-layout .article-content h3 { font-size: calc(var(--article-body-size) * 22 / 19); }
  .article-reading-layout .article-content h4 { font-size: var(--article-body-size); }
  .article-reading-layout .article-content .callout,
  .article-reading-layout .article-content .key-takeaways { font-size: calc(var(--article-body-size) * 17 / 19); }
  .article-reading-layout .article-content .callout-title { font-size: calc(var(--article-body-size) * 13 / 19); }
  .article-reading-layout .article-content blockquote.pull-quote { font-size: calc(var(--article-body-size) * 24 / 19); }
  .article-reading-layout .article-content table { font-size: calc(var(--article-body-size) * 14.5 / 19); }
  .article-reading-layout .article-content th { font-size: calc(var(--article-body-size) * 12 / 19); }
  .article-reading-layout .article-content pre,
  .article-reading-layout .article-content figcaption { font-size: calc(var(--article-body-size) * 14 / 19); }
}
@media (min-width: 1900px) {
  .site-container.article-container:has(.article-reading-layout) {
    --article-measure: 800px;
    --article-body-size: 22px;
  }
}

.ad-container {
  display: block;
  margin: 24px auto;
  text-align: center;
  background: transparent;
}
.ad-container:not([data-ad-filled="true"]):not(:has(ins[data-ad-status="filled"])) {
  margin: 0 auto !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}
.ad-container:not([data-ad-filled="true"]):not(:has(ins[data-ad-status="filled"])) .ad-label {
  display: none !important;
}

/* Keep the footer out of the reading/TOC grid, including on short posts. */
.article-end {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2.5rem;
  min-width: 0;
}
.article-end > * {
  width: 100%;
  margin: 0;
}
/* Per-block margins let the unfilled ad collapse without adding flex gaps.
   Keep its width measurable so AdSense can still size and fill the unit. */
.article-end > * + * { margin-top: 2rem; }
.related-section .card { min-width: 0; padding: 1.25rem; overflow-wrap: anywhere; }
.related-section .post-card-meta {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}
.related-section .card h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.related-section .post-card-byline { flex-wrap: wrap; gap: 0.75rem; }
.related-section .posts-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .px-margin-desktop {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .site-container, .container {
    padding: 20px 16px 60px !important;
    max-width: 100% !important;
  }
  .article-container {
    max-width: 820px !important;
  }
  .text-headline-lg {
    font-size: 30px !important;
    line-height: 36px !important;
  }
  .related-section .posts-feed {
    grid-template-columns: 1fr;
  }
}

/* Reserve loading/filled geometry; unfilled or unavailable units leave no grid cell.
   Fixed containment prevents a late fluid creative from moving sibling cards. */
.in-feed-card {
  position: relative;
  height: 360px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.in-feed-card:has(ins[data-ad-status="unfilled"]),
.in-feed-card[data-ad-unavailable] { display: none; }
/* Remove empty fills from flow, but keep the unit measurable for ResizeObserver.
   display:none would prevent a later fluid creative from sizing and recovering. */
.ad-container[data-ad-empty-filled],
.in-feed-card[data-ad-empty-filled] {
  position: absolute !important;
  width: var(--ad-measure-width);
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  overflow: hidden !important;
  visibility: hidden;
  pointer-events: none;
}
.in-feed-card > .ad-container {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  padding: 16px;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .home-latest-grid > aside {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border-subtle);
    border-left: 0;
  }
}

/* Homepage archive cells never inherit the latest row's twelve-column spans. */
.home-archive-section:has(.home-archive-grid > .in-feed-card:only-child ins[data-ad-status="unfilled"]),
.home-archive-section:has(.home-archive-grid > .in-feed-card[data-ad-unavailable]:only-child) { display: none; }
.home-archive-section:has(.home-archive-grid > .in-feed-card[data-ad-empty-filled]:only-child) {
  position: absolute;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
}
.home-archive-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 768px) {
  .home-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .home-archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Listing cards (#139): preserve the 4:3 crop instead of a fixed-height strip.
   Scoped to listings: article heroes and recommendations keep their existing layout. */
.listing-page .site-container { max-width: 1360px; }
.listing-page .posts-feed {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.listing-page .listing-card-frame,
.listing-page .post-card-thumb,
.listing-page .card-media {
  position: relative;
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.listing-page .post-card-thumb, .listing-page .card-media { display: block; }
.listing-page .listing-card-frame > a,
.listing-page .post-thumb-link { position: absolute; inset: 0; display: block; }
.listing-page .listing-card-frame img,
.listing-page .post-thumb-img,
.listing-page .card-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-page .post-thumb-placeholder,
.listing-page .card-media-placeholder { min-height: 0; }
@media (min-width: 768px) {
  .listing-page .posts-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 901px) and (max-width: 1199px) {
  .listing-page .layout-wrapper { flex-direction: column; }
  .listing-page .sidebar-area { width: 100%; }
}

/* CSS-Native Motion Layer (Issue #156) */
@supports (animation-timeline: scroll()) {
  @keyframes reading-progress-grow {
    from {
      width: 0%;
    }
    to {
      width: 100%;
    }
  }

  .reading-progress {
    animation-name: reading-progress-grow;
    animation-timing-function: linear;
    animation-timeline: scroll();
    transition: none;
  }
}

@supports (animation-timeline: view()) {
  @keyframes card-fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .post-card-reveal {
    animation-name: card-fade-in;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

/* Reduced Motion: state changes stay visible (color, border, shadow, opacity) but nothing moves */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reading-progress,
  .post-card, .card {
    animation: none !important;
    animation-timeline: none !important;
  }
  .theme-toggle-btn:hover,
  .post-card:hover, .card:hover,
  .post-card:hover .post-thumb-img, .card:hover .card-img,
  .btn-discover:hover,
  .share-btn:hover,
  .post-nav-card:hover,
  .series-part-item:hover {
    transform: none;
  }
}