/* ============================================================
   OpenCard — article (blog post) page styles
   Shared by article.html and all generated cluster guides.
   ============================================================ */

.art-head { background:#fff; border-bottom:1px solid var(--border); padding:24px 0 0; }
.crumbs { display:flex; align-items:center; gap:8px; font-size:14px; color:var(--ink-500); margin-bottom:18px; flex-wrap:wrap; }
.crumbs a{ color:var(--ink-500);} .crumbs a:hover{ color:var(--brand-primary);} .crumbs .sep{ color:var(--ink-300);} .crumbs .here{ color:var(--ink-900); font-weight:500;}
.art-head .wrap { max-width:760px; margin:0 auto; padding-inline:var(--pad-x); }
.art-head h1 { font-size:clamp(30px,3.6vw,46px); line-height:1.1; margin:14px 0 18px; }
.art-byline { display:flex; align-items:center; gap:14px; flex-wrap:wrap; font-size:14px; color:var(--ink-500); padding-bottom:28px; }
.art-byline .author { display:flex; align-items:center; gap:9px; }
.art-byline .avatar { width:34px; height:34px; border-radius:50%; background:var(--brand-gradient); }
.art-byline b { color:var(--ink-900); }
.art-byline .dot { width:3px; height:3px; border-radius:50%; background:var(--ink-300); }
.cover-hero { height:clamp(220px,34vw,400px); position:relative; overflow:hidden; max-width:1100px; margin:0 auto; border-radius:0; }

/* layout: TOC + content */
.art-layout { max-width:1100px; margin:0 auto; padding:40px var(--pad-x) 80px; display:grid; grid-template-columns:240px minmax(0,1fr); gap:48px; align-items:start; }
.art-layout > * { min-width:0; }
.prose table.data { display:block; max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.toc { position:sticky; top:calc(var(--header-h) + 24px); font-size:14px; }
.toc .lbl { font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-300); margin-bottom:14px; }
.toc a { display:block; padding:7px 0 7px 14px; color:var(--ink-500); border-left:2px solid var(--surface-2); line-height:1.4; transition:color .14s, border-color .14s; }
.toc a:hover { color:var(--ink-900); }
.toc a.active { color:var(--brand-primary); border-left-color:var(--brand-primary); font-weight:500; }

/* prose */
.prose { max-width:680px; font-size:18px; line-height:1.75; color:var(--ink-700); }
.prose > p { margin:0 0 22px; }
.prose h2 { font-size:30px; margin:44px 0 16px; scroll-margin-top:calc(var(--header-h) + 20px); }
.prose h3 { font-size:22px; margin:32px 0 12px; scroll-margin-top:calc(var(--header-h) + 20px); }
.prose a { font-weight:500; text-decoration:underline; text-underline-offset:2px; }
.prose ul, .prose ol { margin:0 0 22px; padding-left:24px; }
.prose li { margin-bottom:8px; }
.prose strong { color:var(--ink-900); }
.prose blockquote { margin:28px 0; padding:18px 24px; border-left:4px solid var(--brand-primary); background:var(--surface-1); border-radius:0 12px 12px 0; font-size:19px; color:var(--ink-900); font-style:italic; }

/* callout */
.callout { display:flex; gap:14px; padding:18px 20px; border-radius:var(--r-card); margin:28px 0; font-size:16px; line-height:1.6; }
.callout svg { width:22px; height:22px; flex:none; margin-top:2px; }
.callout--info { background:var(--info-soft); border:1px solid #D9DDFF; color:#2D2F8F; } .callout--info svg{ color:var(--brand-primary);}
.callout--warn { background:var(--warning-soft); border:1px solid #FBE2B5; color:#92500B; } .callout--warn svg{ color:var(--warning);}
.callout b { display:block; margin-bottom:3px; }

/* numbered steps */
.steps-list { display:flex; flex-direction:column; gap:14px; margin:28px 0; }
.step-card { display:flex; gap:16px; padding:20px; background:#fff; border:1px solid var(--border); border-radius:var(--r-card); box-shadow:var(--shadow-sm); }
.step-num { width:34px; height:34px; border-radius:50%; background:var(--brand-gradient); color:#fff; font-family:var(--font-display); font-weight:700; display:grid; place-items:center; flex:none; font-size:16px; }
.step-card h4 { font-size:18px; margin-bottom:5px; } .step-card p { font-size:15px; color:var(--ink-500); margin:0; line-height:1.55; }

/* figure */
figure { margin:28px 0; } figure .ph { height:280px; border-radius:var(--r-card); background:var(--brand-gradient-soft); border:1px solid var(--border); display:grid; place-items:center; color:var(--ink-300); }
figcaption { font-size:14px; color:var(--ink-300); text-align:center; margin-top:10px; }

/* data table */
.prose table.data { width:100%; border-collapse:collapse; font-size:15px; margin:28px 0; border:1px solid var(--border); border-radius:var(--r-card); overflow:hidden; }
.prose table.data th { background:var(--surface-1); text-align:left; padding:12px 14px; font-weight:600; color:var(--ink-500); font-size:13px; border-bottom:1px solid var(--border); }
.prose table.data td { padding:12px 14px; border-bottom:1px solid var(--surface-2); font-variant-numeric:tabular-nums; }
.prose table.data tr:last-child td { border-bottom:0; }

/* inline affiliate */
.aff-card { background:var(--ink-900); border-radius:var(--r-block); padding:28px; margin:32px 0; color:#fff; position:relative; overflow:hidden; }
.aff-card .glow { position:absolute; width:300px; height:300px; background:var(--brand-gradient); filter:blur(30px); opacity:.28; border-radius:50%; top:-150px; right:-80px; }
.aff-card .inner { position:relative; display:flex; gap:18px; align-items:center; flex-wrap:wrap; }
.aff-logo { width:54px; height:54px; border-radius:14px; background:#fff; display:grid; place-items:center; font-family:var(--font-display); font-weight:800; color:var(--brand-primary); font-size:20px; flex:none; }
.aff-card h4 { color:#fff; font-size:19px; margin-bottom:4px; } .aff-card p { color:#B9C0CC; font-size:14px; margin:0; }
.aff-card .disclosure { position:relative; font-size:12px; color:#6B7484; margin-top:14px; }

/* faq */
.art-faq { max-width:680px; margin:48px 0 0; }
.art-faq h2 { font-size:28px; margin-bottom:16px; }
details.afq { border-bottom:1px solid var(--surface-2); }
details.afq summary { list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 0; font-family:var(--font-display); font-weight:600; font-size:17px; color:var(--ink-900); }
details.afq summary svg { transition:transform .2s; color:var(--ink-500); flex:none; }
details.afq[open] summary svg { transform:rotate(180deg); color:var(--brand-primary); }
details.afq .a { padding:0 0 18px; color:var(--ink-500); font-size:16px; line-height:1.65; }

/* author + share */
.author-box { max-width:680px; display:flex; gap:18px; align-items:flex-start; background:var(--surface-1); border:1px solid var(--border); border-radius:var(--r-block); padding:24px; margin:40px 0; }
.author-box .av { width:56px; height:56px; border-radius:50%; background:var(--brand-gradient); flex:none; }
.author-box .nm { font-family:var(--font-display); font-weight:700; font-size:17px; color:var(--ink-900); display:flex; align-items:center; gap:8px; }
.author-box p { font-size:14px; color:var(--ink-500); margin-top:6px; }
.share { max-width:680px; display:flex; align-items:center; gap:12px; margin:32px 0; flex-wrap:wrap; }
.share .lbl { font-size:14px; color:var(--ink-500); }
.share-btn { display:inline-flex; align-items:center; gap:8px; height:40px; padding:0 16px; border:1.5px solid var(--border); border-radius:var(--r-pill); background:#fff; font-size:14px; font-weight:500; color:var(--ink-700); cursor:pointer; }
.share-btn:hover { border-color:var(--ink-300); }

/* related */
.related { background:var(--surface-1); border-top:1px solid var(--border); padding:56px 0; }
.related h2 { text-align:center; margin-bottom:32px; }
.rel-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; max-width:1100px; margin:0 auto; padding-inline:var(--pad-x); }
.art-card { background:#fff; border:1px solid var(--border); border-radius:var(--r-card); overflow:hidden; box-shadow:var(--shadow-sm); transition:box-shadow .18s, transform .18s; display:block; }
.art-card:hover { box-shadow:var(--shadow-md); transform:translateY(-3px); }
.art-cover { height:150px; position:relative; overflow:hidden; }
.art-body { padding:18px; }
.art-card .art-title { font-family:var(--font-display); font-weight:700; font-size:17px; color:var(--ink-900); margin:10px 0 8px; line-height:1.3; }
.art-meta { display:flex; gap:10px; font-size:13px; color:var(--ink-300); margin-top:12px; }

/* reading progress */
.progress { position:fixed; top:0; left:0; height:3px; background:var(--brand-gradient); z-index:120; width:0; transition:width .1s linear; }

@media (max-width:1023px){ .art-layout { grid-template-columns:1fr; gap:0;} .toc { display:none;} .rel-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){ .prose { font-size:16px;} .rel-grid{ grid-template-columns:1fr;} }
