*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --dark: #111827; --dark2: #1a2436;
  --orange: #f97316; --orange-d: #ea6a0e; --orange-l: rgba(249,115,22,0.12);
  --bg: #f0ede6; --surface: #ffffff; --border: #e8e5dc;
  --muted: #6b7280; --muted2: #9ca3af; --text: #111827;
  --mono: 'DM Mono', monospace; --sans: 'Manrope', sans-serif; 
  --content-w: 720px; --sidebar-w: 280px;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.7; font-size: 17px; }

/* ── NAV ── */
.nav { position: sticky; top: 0; z-index: 100; height: 64px; background: rgba(240,237,230,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.nav-logo:visited { color: inherit; }
.nav-logo-img { width: 32px; height: 32px; object-fit: contain; }
.nav-logo-text { font-family: var(--sans); font-weight: 700; font-size: 16px; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { background: var(--dark); color: #fff; padding: 9px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .15s; }
.nav-cta:hover { background: #1f2937; }

/* ── BREADCRUMB ── */
.breadcrumb-wrap { background: var(--bg); padding: 14px 2rem; border-bottom: 1px solid var(--border); }
.breadcrumb { max-width: 1200px; margin: 0 auto; }
.breadcrumb ol { display: flex; align-items: center; gap: 6px; list-style: none; font-size: 12px; flex-wrap: wrap; font-family: var(--mono); letter-spacing: 0.3px; }
.breadcrumb ol li { color: var(--muted2); }
.breadcrumb ol li a { color: var(--muted); text-decoration: none; transition: color .15s; }
.breadcrumb ol li a:hover { color: var(--orange); }
.breadcrumb ol li[aria-current="page"] { color: var(--text); font-weight: 500; }

/* ── ARTICLE LAYOUT ── */
.article-layout { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem 5rem; display: grid; grid-template-columns: 1fr var(--sidebar-w); gap: 3rem; align-items: start; }

/* ── ARTICLE HEADER ── */
.article-header { margin-bottom: 2.5rem; }
.article-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 1rem; font-size: 13px; }
.article-tag { background: var(--orange-l); color: var(--orange); font-family: var(--mono); font-size: 11px; padding: 3px 10px; border-radius: 100px; letter-spacing: 0.5px; }
.article-date { color: var(--muted); }
.article-read { color: var(--muted2); }
.article-title { font-family: var(--sans); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; letter-spacing: -1px; margin-bottom: 1.25rem; }
.article-lead { font-size: 19px; color: var(--muted); line-height: 1.65; margin-bottom: 1.5rem; max-width: 640px; }
.article-author { display: flex; align-items: center; gap: 12px; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.author-name { font-weight: 600; font-size: 14px; }
.author-role { font-size: 12px; color: var(--muted); }

/* ── TOC (mobile, inside article) ── */
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; display: none; }
.toc-title { font-family: var(--sans); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 0.75rem; }
.toc-list { padding-left: 1rem; display: flex; flex-direction: column; gap: 6px; }
.toc-list li { font-size: 14px; }
.toc-list a { color: var(--muted); text-decoration: none; transition: color .15s; }
.toc-list a:hover { color: var(--orange); }

/* ── ARTICLE BODY ── */
.article-body h2 { font-family: var(--sans); font-weight: 800; font-size: 1.65rem; letter-spacing: -0.5px; line-height: 1.2; margin: 2.5rem 0 1rem; color: var(--text); }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; margin: 2rem 0 0.75rem; color: var(--text); }
.article-body h4 { font-weight: 600; font-size: 1rem; margin: 1.5rem 0 0.5rem; }
.article-body p { margin-bottom: 1.25rem; color: #374151; line-height: 1.75; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body li { margin-bottom: 8px; color: #374151; line-height: 1.65; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--orange); text-decoration: underline; text-decoration-color: rgba(249,115,22,0.3); transition: text-decoration-color .15s; }
.article-body a:hover { text-decoration-color: var(--orange); }
.article-body code { font-family: var(--mono); font-size: 14px; background: var(--bg); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--border); }
.article-body blockquote { border-left: 3px solid var(--orange); padding: 1rem 1.5rem; background: var(--orange-l); border-radius: 0 10px 10px 0; margin: 1.5rem 0; font-style: italic; color: var(--muted); }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.article-body img { max-width: 100%; border-radius: 12px; border: 1px solid var(--border); margin: 1.5rem 0; }

/* ── INFO BOXES ── */
.info-box { border-radius: 12px; padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 15px; line-height: 1.6; }
.info-box strong { display: block; margin-bottom: 4px; }
.info-box--orange { background: var(--orange-l); border: 1px solid rgba(249,115,22,0.25); color: var(--text); }
.info-box--orange strong { color: var(--orange-d); }
.info-box--green  { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.25); color: var(--text); }
.info-box--green  strong { color: #059669; }
.info-box--blue   { background: rgba(96,165,250,0.1); border: 1px solid rgba(96,165,250,0.25); color: var(--text); }
.info-box--blue   strong { color: #2563eb; }
.info-box--dark   { background: var(--dark); border: none; color: rgba(255,255,255,0.85); }
.info-box--dark   strong { color: #fff; }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: 12px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
thead th { background: var(--dark); color: #fff; padding: 12px 16px; text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 500; }
tbody td { padding: 11px 16px; border-top: 1px solid var(--border); color: #374151; }
tbody tr:hover td { background: var(--bg); }

/* ── INLINE CTA ── */
.inline-cta { background: var(--dark); border-radius: 16px; padding: 1.75rem 2rem; margin: 2.5rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.inline-cta-text strong { display: block; color: #fff; font-size: 16px; margin-bottom: 6px; }
.inline-cta-text p { color: rgba(255,255,255,0.5); font-size: 14px; margin: 0; }
.inline-cta-btn { background: var(--orange); color: #fff; padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .15s; flex-shrink: 0; }
.inline-cta-btn:hover { background: var(--orange-d); }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; cursor: pointer; font-weight: 600; font-size: 15px; gap: 1rem; list-style: none; color: var(--text); }
.faq-q::-webkit-details-marker { display: none; }
.faq-icon { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--muted); flex-shrink: 0; transition: transform .2s, background .2s, border-color .2s; }
details[open] .faq-icon { transform: rotate(45deg); background: var(--orange); border-color: var(--orange); color: #fff; }
.faq-a { padding: 0 0 1.1rem; font-size: 15px; color: var(--muted); line-height: 1.7; }

/* ── ARTICLE TAGS ── */
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 2.5rem 0 0; padding-top: 2rem; border-top: 1px solid var(--border); }
.tag { font-family: var(--mono); font-size: 11px; background: var(--bg); border: 1px solid var(--border); color: var(--muted); padding: 4px 12px; border-radius: 100px; transition: border-color .15s, color .15s; text-decoration: none; }
.tag:hover { border-color: var(--orange); color: var(--orange); }

/* ── FINAL CTA ── */
.final-cta { background: var(--dark); border-radius: 20px; padding: 3rem; margin: 3rem 0; text-align: center; }
.final-cta-eyebrow { font-family: var(--mono); font-size: 11px; color: var(--orange); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem; }
.final-cta-title { font-family: var(--sans); font-weight: 800; font-size: 1.8rem; color: #fff; letter-spacing: -0.5px; margin-bottom: 0.75rem; }
.final-cta-sub { font-size: 15px; color: rgba(255,255,255,0.45); max-width: 460px; margin: 0 auto 2rem; line-height: 1.6; }
.final-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; background: var(--orange); color: #fff; padding: 13px 26px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s; }
.btn-primary:hover { background: var(--orange-d); }
.btn-ghost { display: inline-flex; align-items: center; background: none; color: rgba(255,255,255,0.6); padding: 13px 26px; border-radius: 10px; font-size: 15px; text-decoration: none; border: 1.5px solid rgba(255,255,255,0.15); transition: border-color .15s, color .15s; }
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); color: #fff; }

/* ── RELATED ARTICLES ── */
.related-articles { margin-top: 3rem; }
.related-title { font-family: var(--sans); font-weight: 800; font-size: 1.3rem; margin-bottom: 1.5rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; text-decoration: none; color: inherit; transition: box-shadow .2s, border-color .2s; display: flex; flex-direction: column; gap: 8px; }
.related-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); border-color: var(--orange); }
.related-tag { font-family: var(--mono); font-size: 10px; color: var(--orange); background: var(--orange-l); padding: 2px 8px; border-radius: 5px; align-self: flex-start; }
.related-card-title { font-family: var(--sans); font-weight: 700; font-size: 14px; line-height: 1.4; }
.related-read { font-size: 12px; color: var(--muted2); margin-top: auto; }

/* ── SIDEBAR ── */
.article-sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 80px; }
.sidebar-widget { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; }
.widget-title { font-family: var(--sans); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 1rem; }
.widget-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.widget-list li a { font-size: 13.5px; color: var(--muted); text-decoration: none; transition: color .15s; }
.widget-list li a:hover { color: var(--orange); }
.sidebar-toc .toc-list { padding-left: 0.75rem; }
.sidebar-cta { background: var(--dark); border-color: var(--dark); text-align: center; }
.sidebar-cta-logo { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.75rem; overflow: hidden; }
.sidebar-cta-title { font-family: var(--sans); font-weight: 700; font-size: 16px; color: #fff; margin-bottom: 8px; }
.sidebar-cta-text { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.5; margin-bottom: 1.25rem; }
.sidebar-cta-btn { display: block; background: var(--orange); color: #fff; padding: 11px; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none; transition: background .15s; margin-bottom: 8px; }
.sidebar-cta-btn:hover { background: var(--orange-d); }
.sidebar-cta-note { font-size: 11px; color: rgba(255,255,255,0.25); font-family: var(--mono); }

/* ── FOOTER ── */
.footer { background: var(--dark); padding: 2.5rem 2rem; margin-top: 4rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-logo-img { width: 28px; height: 28px; object-fit: contain; }
.footer-logo-text { font-family: var(--sans); font-weight: 700; font-size: 15px; color: #fff; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.35); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: rgba(255,255,255,0.7); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.2); font-family: var(--mono); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .toc { display: block; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .article-layout { padding: 2rem 1.25rem 4rem; }
  .related-grid { grid-template-columns: 1fr; }
  .inline-cta { flex-direction: column; text-align: center; }
  .final-cta { padding: 2rem 1.5rem; }
  .nav-links { display: none; }
}