/* Pathly Blog — shared article styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --orange: #ff9500; --orange-dk: #e07b00;
  --blue: #2f7cf6; --green: #16a34a; --red: #dc2626; --amber: #d97706;
  --text: #111827; --muted: #6b7280; --border: #e5e7eb; --bg: #f9fafb;
}
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text); background: #fff;
  -webkit-font-smoothing: antialiased; letter-spacing: -0.015em;
}

/* ── NAV ── */
nav[aria-label="Main navigation"] {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 64px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(0,0,0,0.07);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.nav-logo img { width: 28px; height: 28px; border-radius: 7px; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-link { text-decoration: none; color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: color 0.15s; }
.nav-link:hover { color: var(--text); }

/* ── HEADER ── */
.article-header {
  background: linear-gradient(155deg, #fff8ed 0%, #ffefd0 60%, #ffd28a 100%);
  padding: 64px 5vw 56px;
}
.breadcrumb { font-size: 0.82rem; color: #6b7280; margin-bottom: 20px; }
.breadcrumb a { color: #6b7280; text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { margin: 0 6px; }
.article-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--orange); background: rgba(255,149,0,0.12);
  border-radius: 6px; padding: 4px 10px; margin-bottom: 16px;
}
.article-header h1 {
  font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.1; max-width: 760px;
}
.article-header .subtitle {
  margin-top: 16px; font-size: 1.1rem; color: #4b5563;
  max-width: 640px; line-height: 1.7;
}
.article-meta {
  margin-top: 24px; display: flex; align-items: center;
  gap: 20px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted);
}
.author { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); }
.author-avatar {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange); display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 0.8rem; font-weight: 700;
}

/* ── ARTICLE BODY ── */
.article-wrap { max-width: 740px; margin: 0 auto; padding: 64px 5vw 80px; }
.article-body { font-size: 1.05rem; line-height: 1.8; }
.article-body h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin: 52px 0 16px; }
.article-body h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; margin: 36px 0 12px; }
.article-body h4 { font-size: 1rem; font-weight: 700; margin: 24px 0 8px; }
.article-body p { margin-bottom: 18px; color: #374151; }
.article-body ul, .article-body ol { margin: 16px 0 18px 24px; color: #374151; }
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body a:hover { color: #1a5fd1; }

code {
  font-family: "SF Mono","Fira Code","JetBrains Mono", monospace;
  font-size: 0.85em; background: rgba(47,124,246,0.08);
  color: var(--blue); padding: 2px 7px; border-radius: 5px;
}
pre {
  background: #1e293b; border-radius: 12px; padding: 20px 24px;
  overflow-x: auto; margin: 20px 0 24px;
}
pre code {
  background: none; color: #e2e8f0; font-size: 0.85rem;
  line-height: 1.8; padding: 0;
}

/* ── CALLOUTS ── */
.callout {
  border-left: 4px solid var(--orange); background: rgba(255,149,0,0.06);
  border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 24px 0;
}
.callout.tip  { border-color: var(--green); background: rgba(22,163,74,0.06); }
.callout.info { border-color: var(--blue);  background: rgba(47,124,246,0.06); }
.callout-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange); margin-bottom: 6px; }
.callout.tip  .callout-label { color: var(--green); }
.callout.info .callout-label { color: var(--blue); }
.callout p { color: #374151; margin: 0; font-size: 0.95rem; }

/* ── STEPS ── */
.steps { margin: 24px 0; }
.step-item { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.step-badge {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 0.85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.step-content p { margin-bottom: 8px; }
.step-content p:last-child { margin-bottom: 0; }

/* ── COMPARISON TABLE ── */
.compare-table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
  margin: 24px 0; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--border);
}
.compare-table thead th {
  padding: 12px 16px; text-align: left; font-weight: 700;
  font-size: 0.82rem; background: var(--bg); border-bottom: 2px solid var(--border);
}
.compare-table tbody td {
  padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .highlight { background: rgba(255,149,0,0.04); font-weight: 500; }
.ico-yes  { color: var(--green); }
.ico-no   { color: var(--red); }
.ico-warn { color: var(--amber); }

/* ── SHORTCUT TABLE ── */
.shortcut-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 16px 0 24px; }
.shortcut-table th { padding: 10px 14px; text-align: left; background: var(--bg); border-bottom: 2px solid var(--border); font-size: 0.82rem; font-weight: 700; }
.shortcut-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.shortcut-table tr:last-child td { border-bottom: none; }
kbd {
  display: inline-block; font-family: "SF Mono","Fira Code", monospace;
  font-size: 0.8em; background: #fff; border: 1px solid #d1d5db;
  border-radius: 5px; padding: 2px 7px; box-shadow: 0 1px 0 #d1d5db;
  color: var(--text); white-space: nowrap;
}

/* ── INLINE CTA ── */
.inline-cta {
  background: linear-gradient(135deg, #fff5e0 0%, #ffd28a 100%);
  border-radius: 16px; padding: 28px 32px; margin: 40px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.inline-cta p { font-size: 1rem; font-weight: 600; color: #4b3b00; max-width: 380px; line-height: 1.5; margin: 0; }
.btn-orange {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff; border-radius: 10px;
  padding: 12px 22px; font-size: 0.92rem; font-weight: 600;
  text-decoration: none; transition: background 0.2s; white-space: nowrap;
  font-family: inherit;
}
.btn-orange:hover { background: var(--orange-dk); }

/* ── FAQ ── */
.faq-section { margin-top: 64px; border-top: 2px solid var(--border); padding-top: 48px; }
.faq-section h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 32px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-item details summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 4px; cursor: pointer; font-size: 0.97rem; font-weight: 600; list-style: none;
}
.faq-item details summary::-webkit-details-marker { display: none; }
.faq-icon { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: transform 0.2s, background 0.2s; }
.faq-item details[open] .faq-icon { transform: rotate(45deg); background: var(--orange); color: #fff; }
.faq-answer { padding: 0 4px 18px; font-size: 0.93rem; line-height: 1.75; color: var(--muted); }

/* ── AUTHOR BOX ── */
.author-box {
  margin-top: 56px; padding: 28px; border: 1.5px solid var(--border);
  border-radius: 16px; display: flex; gap: 20px; align-items: flex-start;
}
.author-avatar-lg {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  background: var(--orange); display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 1.1rem; font-weight: 800;
}
.author-box h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.author-box p { font-size: 0.87rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* ── RELATED POSTS ── */
.related { margin-top: 56px; border-top: 1px solid var(--border); padding-top: 40px; }
.related h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.related-card { border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-decoration: none; color: inherit; display: block; transition: border-color 0.2s; }
.related-card:hover { border-color: var(--orange); }
.related-card .tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange); margin-bottom: 8px; }
.related-card h3 { font-size: 0.88rem; font-weight: 600; line-height: 1.4; }

/* ── FOOTER ── */
footer {
  padding: 32px 5vw; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 0.84rem; color: #9ca3af;
}
footer a { color: #6b7280; text-decoration: none; }
footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

@media (max-width: 640px) { .inline-cta { flex-direction: column; } }
