* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e5e7eb;
  --border-hover: #cbd5e1;
  --text: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-bg: rgba(99, 102, 241, 0.08);
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 10px 30px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header (top nav only) ── */
body > header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
}

nav { display: flex; align-items: center; gap: 6px; }

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

nav a:hover { color: var(--accent); background: var(--accent-bg); }

/* ── Hero ── */
.hero {
  padding: 52px 0 32px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--text) 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.hero-left {
  flex: 1;
}

/* ── Search ── */
.search-box {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

#search-input, #home-search {
  width: 100%;
  max-width: 480px;
  padding: 12px 20px 12px 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.92rem;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 16px center no-repeat;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#search-input:focus, #home-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

#search-input::placeholder, #home-search::placeholder {
  color: var(--text-muted);
}

/* ── Sidebar ── */
.cat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  padding-top: 8px;
}

.cat-btn {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cat-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

.cat-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── Filters ── */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.filter-btn {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
/* PLACEHOLDER_POST_LIST */

/* ── Post list (auto-fill grid) ── */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding-bottom: 72px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(99, 102, 241, 0.4);
}

/* ── Card cover image ── */
.card-cover {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
  flex-shrink: 0;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-cover img[data-error] {
  display: none;
}

.card-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card[data-cat="Model Comparison"] .card-cover-placeholder { background: linear-gradient(135deg, #6366f1, #3b82f6); }
.post-card[data-cat="Product Analysis"] .card-cover-placeholder { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.post-card[data-cat="Industry Analysis"] .card-cover-placeholder { background: linear-gradient(135deg, #10b981, #14b8a6); }
.post-card[data-cat="Research & Innovation"] .card-cover-placeholder { background: linear-gradient(135deg, #f59e0b, #ec4899); }
.post-card[data-cat="Tool Guide"] .card-cover-placeholder { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.post-card[data-cat="Opinion"] .card-cover-placeholder { background: linear-gradient(135deg, #e11d48, #f97316); }

.card-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--text);
  font-weight: 600;
  backdrop-filter: blur(4px);
  z-index: 1;
}

.card-date-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  z-index: 1;
}

.post-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.post-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.post-category {
  font-size: 0.73rem;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  font-weight: 600;
}

.post-level {
  font-size: 0.73rem;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}

.post-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

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

.post-views {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all 0.15s;
}

.tag::before { content: "#"; color: var(--accent-light); }

.post-card:hover .tag {
  border-color: var(--border-hover);
}
/* PLACEHOLDER_ARTICLE */

/* ── Article cover (top of article page) ── */
.article-cover {
  margin: 24px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 400px;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Article page ── */
.article-header {
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.article-header h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.6px;
  color: var(--text);
}

/* Constrain article reading width */
article {
  max-width: 760px;
  min-width: 0;
}

/* ── Article layout (content + sidebar TOC) ── */
.article-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  max-width: 1040px;
  margin: 0 auto;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #334155;
  padding-bottom: 72px;
}

/* First paragraph emphasis */
.article-body > p:first-child {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text);
}

.article-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 48px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  letter-spacing: -0.3px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body figure {
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-body figure img {
  width: 100%;
  height: auto;
  display: block;
}

.article-body figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 0;
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
}

.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { margin-bottom: 10px; line-height: 1.75; }
.article-body li::marker { color: var(--accent-light); }

.article-body strong {
  color: var(--text);
  font-weight: 650;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(99, 102, 241, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.article-body a:hover {
  text-decoration-color: var(--accent);
}

.article-body code {
  background: var(--accent-bg);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.88em;
  font-weight: 500;
}

.article-body pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.article-body pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-weight: 400;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--accent-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }
/* PLACEHOLDER_FOOTER */

/* ── Loading / empty ── */
.loading, .empty {
  text-align: center;
  color: var(--text-muted);
  padding: 56px 0;
  font-size: 0.95rem;
}

mark {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent);
  padding: 1px 4px;
  border-radius: 3px;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--surface);
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand .logo { display: inline-block; margin-bottom: 12px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; max-width: 320px; }

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .container { max-width: 100%; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .article-toc { display: none; }
  .article-layout { display: block; }
  article { margin: 0 auto; }
}

@media (max-width: 768px) {
  .card-grid { grid-template-columns: 1fr; gap: 18px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 1.8rem; }
  .article-header h1 { font-size: 1.7rem; }
  .container { padding: 0 20px; }
}

@media (max-width: 640px) {
  .hero-row { flex-direction: column; gap: 16px; }
  .cat-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 0.95rem; }
  .hero { padding: 36px 0 24px; }
  .article-header h1 { font-size: 1.6rem; }
  .post-card-body { padding: 14px 16px 16px; }
  .container { padding: 0 16px; }
  .article-body { font-size: 1rem; }
  .post-list { grid-template-columns: 1fr; gap: 16px; }
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .stats-row { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .blog-header { flex-direction: column; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Nav active ── */
nav a.active { color: var(--accent); background: var(--accent-bg); }

/* ── Reading time badge ── */
.read-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.read-time::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") no-repeat center;
}

/* ── Stats row (homepage) ── */
.stats-row {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  align-items: center;
  justify-content: center;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.stat-number {
  font-weight: 700;
  color: var(--text);
}

/* ── Sort toggle ── */
.sort-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.sort-btn {
  padding: 6px 18px;
  font-size: 0.84rem;
  font-weight: 500;
  border: none;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.sort-btn:hover {
  color: var(--accent);
  background: var(--accent-bg);
}

.sort-btn.active {
  background: var(--accent);
  color: #fff;
}

/* ── Card grid (homepage auto-fill) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ── View all link ── */
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  color: var(--surface);
  background: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 999px;
  transition: all 0.2s;
}

.view-all:hover { background: var(--accent-light); transform: translateY(-1px); }

.view-all-wrap { text-align: center; margin-top: 8px; }

/* ── Compact hero (blog page) ── */
.hero-compact { padding: 32px 0 20px; }
.hero-compact h1 { font-size: 1.6rem; margin-bottom: 6px; }

/* ── Blog header (title + sort) ── */
.blog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* ── Filters row (blog page) ── */
.filters-row {
  margin-bottom: 24px;
}

.cat-list-horizontal {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

/* ── Section header (homepage) ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 36px 0 20px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

/* ── Table styles (article body) ── */
.article-body .table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 24px 0;
}

.article-body thead {
  background: #f1f5f9;
}

.article-body th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.article-body td {
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.article-body tbody tr:last-child td {
  border-bottom: none;
}

.article-body tbody tr:nth-child(odd) {
  background: #fff;
}

.article-body tbody tr:nth-child(even) {
  background: #f8fafc;
}

.article-body tbody tr:hover {
  background: #f1f5f9;
}

/* ── Table of Contents (sticky sidebar) ── */
.article-toc {
  position: sticky;
  top: 80px;
  width: 220px;
  flex-shrink: 0;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.toc-title {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.article-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--border);
}
.article-toc li {
  margin-bottom: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}
.article-toc a {
  display: block;
  padding: 5px 0 5px 14px;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.article-toc a:hover {
  color: var(--text);
  border-left-color: var(--text-secondary);
}
.article-toc a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 500;
}

/* ── Callout cards (FAQ, highlights, pros/cons) ── */
.callout-card {
  background: #f8fafc;
  border: 1px solid #e8ecf1;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.callout-card.callout-faq {
  background: transparent;
  border: none;
  padding: 0;
}
.callout-card.callout-faq h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 48px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  letter-spacing: -0.3px;
}
.callout-card.callout-faq .faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}
.callout-card.callout-faq .faq-item {
  padding: 20px 0;
  border-bottom: 1px dashed var(--border);
}
.callout-card.callout-faq .faq-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: none !important;
  color: var(--text);
}
.callout-card.callout-faq .faq-item p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}
@media (max-width: 768px) {
  .callout-card.callout-faq .faq-grid {
    grid-template-columns: 1fr;
  }
}
.callout-card.callout-pro {
  background: #f0fdf4;
  border-color: #d1e7dd;
  border-left: 3px solid #22c55e;
}
.callout-card.callout-con {
  background: #fff5f5;
  border-color: #fecaca;
  border-left: 3px solid #ef4444;
}
.callout-card.callout-pro h3,
.callout-card.callout-con h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: none !important;
}
/* Pros/Cons two-column layout */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
@media (max-width: 768px) {
  .pros-cons-grid { grid-template-columns: 1fr; }
}
.callout-card h3 {
  margin-top: 0 !important;
  padding-top: 0;
  border: none;
}

/* ── Related posts ── */
.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related-posts h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.related-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
  background: var(--surface);
}

.related-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.related-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.related-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Author byline */
.author-byline {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.author-byline a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.author-byline a:hover {
  text-decoration: underline;
}

/* Author box */
.author-box {
  margin: 2.5rem 0 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.author-box-inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.author-box-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.author-box-content strong a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
}
.author-box-content strong a:hover {
  color: var(--accent);
}
.author-box-content p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Language switcher ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  border-left: 1px solid var(--border);
  padding-left: 12px;
}
.lang-active {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  padding: 4px 8px;
}
.lang-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}
.lang-link:hover {
  color: var(--accent);
  background: var(--accent-bg);
}

/* Featured Tools on Homepage */
.featured-tools-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.ft-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 8px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s ease;
}
.ft-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: var(--accent);
}
.ft-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 6px;
}
.ft-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.view-all-inline {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.view-all-inline:hover { text-decoration: underline; }
/* Search tools results row */
.search-tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.search-tools-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}
@media (max-width: 1024px) {
  .featured-tools-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 768px) {
  .featured-tools-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .featured-tools-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Tool Compare ── */
.compare-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.15s;
  z-index: 2;
}
.compare-btn:hover { border-color: var(--accent); color: var(--accent); }
.compare-btn.selected { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Compare bar (fixed bottom) */
.compare-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--card-bg);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  z-index: 100;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.compare-bar.visible { transform: translateY(0); }
.compare-bar-slots {
  display: flex;
  gap: 12px;
  flex: 1;
}
.compare-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  min-width: 140px;
  font-size: 13px;
  color: var(--text-muted);
}
.compare-slot.filled {
  border-style: solid;
  border-color: var(--accent);
  color: var(--text);
}
.compare-slot img { width: 20px; height: 20px; border-radius: 4px; }
.compare-slot-remove {
  margin-left: auto;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1;
}
.compare-slot-remove:hover { color: var(--text); }
.compare-bar-actions { display: flex; gap: 8px; }
.btn-compare-now {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-compare-now:hover { opacity: 0.85; }
.btn-compare-now:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-compare-clear {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-muted);
}
.btn-compare-clear:hover { border-color: var(--text-muted); }

/* Compare modal */
.compare-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.compare-overlay.visible { opacity: 1; pointer-events: all; }
.compare-modal {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  isolation: isolate;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.compare-modal-close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  border: none;
  line-height: 1;
}
.compare-modal-close:hover { color: var(--text); }
.compare-modal h2 { font-size: 18px; margin-bottom: 20px; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.compare-table th { font-weight: 600; color: var(--text-muted); font-size: 12px; text-transform: uppercase; }
.compare-table td:first-child { color: var(--text-muted); font-size: 13px; width: 110px; }
.compare-table .tool-header { text-align: center; }
.compare-table .tool-header img { width: 32px; height: 32px; border-radius: 6px; display: block; margin: 0 auto 6px; }
.compare-table .tool-header span { font-size: 13px; font-weight: 600; }
.compare-stars { color: #f59e0b; letter-spacing: 1px; }
.compare-tag { display: inline-block; font-size: 11px; padding: 2px 7px; background: var(--tag-bg, #f0f0f0); border-radius: 6px; margin: 2px; }
.compare-visit { display: inline-block; font-size: 12px; padding: 4px 12px; background: var(--accent); color: #fff; border-radius: 6px; text-decoration: none; font-weight: 500; }
.compare-visit:hover { opacity: 0.85; }
.compare-recommended { font-size: 12px; color: var(--accent); font-style: italic; line-height: 1.5; }
.compare-plan { font-size: 12px; padding: 2px 0; }
.compare-plan strong { margin-right: 4px; }
.compare-plan span { color: var(--text-muted); }
.compare-list { margin: 0; padding-left: 16px; font-size: 12px; line-height: 1.7; }
.compare-pros li::marker { color: #22c55e; }
.compare-cons li::marker { color: #ef4444; }
@media (max-width: 600px) {
  .compare-bar { flex-direction: column; align-items: stretch; }
  .compare-bar-slots { flex-wrap: wrap; }
  .compare-modal { padding: 16px; }
  .compare-table th, .compare-table td { padding: 8px 10px; }
}

/* Compare overlay opacity fix */
.compare-overlay { background: rgba(0,0,0,0.75); }

/* Floating compare hint */
.compare-hint {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card-bg);
  border: 1px solid var(--accent);
  border-right: none;
  border-radius: 12px 0 0 12px;
  padding: 14px 16px 14px 14px;
  max-width: 200px;
  box-shadow: -4px 0 16px rgba(0,0,0,0.1);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.compare-hint-icon { font-size: 22px; text-align: center; }
.compare-hint-text { display: flex; flex-direction: column; gap: 4px; }
.compare-hint-text strong { font-size: 13px; color: var(--accent); }
.compare-hint-text span { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.compare-hint-close {
  position: absolute;
  top: 6px; right: 8px;
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.compare-hint-close:hover { color: var(--text); }
@media (max-width: 768px) { .compare-hint { display: none; } }

/* ── Daily Feed ── */
.daily-feed {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 0 48px;
}

.daily-day {
  margin-bottom: 48px;
}

.daily-day-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.daily-day-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.daily-day-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.daily-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--border);
  margin-left: 8px;
  padding-left: 0;
}

.daily-item {
  position: relative;
  padding: 0 0 24px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.daily-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg);
}

.daily-item:hover::before {
  background: var(--accent);
}

.daily-item-body {
  flex: 1;
  min-width: 0;
}

.daily-item-img-wrap {
  flex-shrink: 0;
  width: 100px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
}

.daily-item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.daily-item-img-wrap:hover img {
  transform: scale(1.05);
}

.daily-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.daily-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.daily-tag.model    { background: rgba(99,102,241,0.1); color: #6366f1; }
.daily-tag.product  { background: rgba(16,185,129,0.1); color: #059669; }
.daily-tag.research { background: rgba(245,158,11,0.1);  color: #d97706; }
.daily-tag.industry { background: rgba(239,68,68,0.1);   color: #dc2626; }

.daily-source {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.daily-item-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 6px;
}

.daily-item-title a {
  color: var(--text);
  text-decoration: none;
}

.daily-item-title a:hover {
  color: var(--accent);
}

.daily-item-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.daily-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .daily-items { margin-left: 4px; }
  .daily-item  { padding-left: 20px; }
  .daily-item-img-wrap { display: none; }
}
