
/* article.css — Gabak blog article redesign (reading column, TOC, step cards, callouts, FAQ, related grid). Loaded AFTER nav.css/blog.css. */
.art{
  --a-ink:#1a1a1a;--a-h2:#7a0c06;--a-muted:#555;--a-link:#aa1109;--a-accent:#aa1109;
  --a-card:#ffffff;--a-soft:rgba(170,17,9,.07);--a-line:rgba(170,17,9,.22);--a-shadow:0 10px 26px rgba(122,12,6,.14);
}
/* hero + reading column */
.art-hero{max-width:760px;margin-inline:auto}
html body .post.art{max-width:760px;margin-inline:auto;font-size:1.1rem;line-height:1.8;color:var(--a-ink)}
html body .wrap.post.art{width:min(760px,calc(100% - 32px));max-width:760px}
html body .post.art p,html body .post.art li,html body .post.art .lead{max-width:none;line-height:1.8}
html body .post.art>p,html body .post.art .guide-step p{margin:0 0 1.05em}
html body .post.art .lead{font-size:1.2rem;line-height:1.7;color:var(--a-ink);padding:18px 22px;margin:8px 0 22px;border-left:4px solid var(--a-accent);background:var(--a-soft);border-radius:0 14px 14px 0}
html body .post.art .lead strong:first-child{color:var(--a-accent)}
html body .post.art h2{font-size:1.5rem;line-height:1.25;margin:44px 0 14px;color:var(--a-h2);scroll-margin-top:90px}
html body .post.art h3{font-size:1.2rem;margin:28px 0 8px;color:var(--a-h2)}
html body .post.art a{color:var(--a-link)}
html body .post.art ul,html body .post.art ol{padding-left:1.3em}
html body .post.art li{margin:.45em 0}
html body .post.art li::marker{color:var(--a-accent)}
html body .post.art strong{color:inherit}
html body .post.art img{max-width:100%;height:auto;border-radius:14px}
html body .post.art blockquote{margin:22px 0;padding:14px 20px;border-left:4px solid var(--a-accent);background:var(--a-soft);border-radius:0 12px 12px 0}
html body .post.art table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:22px 0;font-size:.98rem;line-height:1.5}
html body .post.art th,html body .post.art td{padding:10px 14px;border:1px solid var(--a-line);text-align:left}
html body .post.art th{background:var(--a-soft)}
html body .post.art code{background:var(--a-soft);padding:2px 7px;border-radius:6px;font-size:.92em}
/* numbered legacy headings */
.art h2 .h-num{display:inline-grid;place-items:center;min-width:36px;height:36px;margin-right:12px;border-radius:50%;background:var(--a-accent);color:#fff;font-size:1rem;font-weight:800;vertical-align:.1em}
/* tools / difficulty / time box */
html body .post.art .guide-need{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:24px 0 28px;padding:0;border:1px solid var(--a-line);border-radius:18px;background:var(--a-card);overflow:hidden;font-size:1rem;line-height:1.55}
html body .post.art .guide-need>div{padding:16px 20px;border-right:1px solid var(--a-line)}
html body .post.art .guide-need>div:last-child{border-right:0}
html body .post.art .guide-need>div:nth-child(3){grid-column:1/-1;border-right:0;border-top:1px solid var(--a-line)}
html body .post.art .guide-need>div strong{display:flex;align-items:center;gap:8px;font-size:.74rem;letter-spacing:.09em;text-transform:uppercase;color:var(--a-accent);opacity:1;margin:0 0 6px}
html body .post.art .guide-need>div strong::before{content:"";width:18px;height:18px;flex:none;background:var(--a-accent);-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
html body .post.art .guide-need>div:nth-child(1) strong{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 20h4V10H3zm7 0h4V4h-4zm7 0h4v-7h-4z'/%3E%3C/svg%3E")}
html body .post.art .guide-need>div:nth-child(2) strong{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 5v5.4l4 2.4-.9 1.5L11 13V7z'/%3E%3C/svg%3E")}
html body .post.art .guide-need>div:nth-child(3) strong{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 19.6 13.4 11a5 5 0 0 0-6.6-6.3l3.2 3.2-2.1 2.1L4.700 6.800A5 5 0 0 0 11 13.400L19.600 22z'/%3E%3C/svg%3E")}
/* table of contents */
html body .post.art .post-toc{margin:26px 0 30px;border:1px solid var(--a-line);border-radius:18px;background:var(--a-card);padding:0;font-size:1rem}
html body .post.art .post-toc summary{cursor:pointer;list-style:none;padding:16px 22px;font-weight:800;font-size:1.02rem;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--a-ink)}
html body .post.art .post-toc summary::-webkit-details-marker{display:none}
html body .post.art .post-toc summary::after{content:"";width:10px;height:10px;border-right:2px solid var(--a-accent);border-bottom:2px solid var(--a-accent);transform:rotate(45deg);transition:transform .2s;margin-top:-4px}
html body .post.art .post-toc[open] summary::after{transform:rotate(-135deg);margin-top:4px}
html body .post.art .post-toc ol{margin:0;padding:0 22px 18px 44px;display:grid;grid-template-columns:1fr 1fr;column-gap:30px;list-style:decimal}
html body .post.art .post-toc li{margin:.3em 0;line-height:1.4;padding-left:4px}
html body .post.art .post-toc a{color:var(--a-ink);text-decoration:none;border-bottom:1px solid transparent}
html body .post.art .post-toc a:hover,html body .post.art .post-toc a:focus-visible{color:var(--a-accent);border-bottom-color:currentColor}
/* step cards */
html body .post.art{counter-reset:none}
html body .post.art .guide-step{margin:26px 0;padding:24px 26px 12px;border:1px solid var(--a-line);border-radius:20px;background:var(--a-card);box-shadow:var(--a-shadow);scroll-margin-top:90px}
html body .post.art .guide-step>h2{display:flex;align-items:flex-start;gap:16px;margin:0 0 16px;font-size:1.35rem;line-height:1.3}
html body .post.art .step-n{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--a-accent);color:#fff;font-size:1.2rem;font-weight:800;box-shadow:0 4px 12px rgba(0,0,0,.2)}
html body .post.art .step-t{display:block;min-width:0;padding-top:1px}
html body .post.art .step-eyebrow{display:block;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--a-accent);font-weight:800;margin-bottom:2px}
html body .post.art .guide-step .guide-img{margin:0 0 18px;border-radius:14px;overflow:hidden;background:#000;box-shadow:var(--a-shadow)}
html body .post.art .guide-step .guide-img img{display:block;width:100%;height:auto;border-radius:0}
html body .post.art .guide-step ul,html body .post.art .guide-step ol{margin:0 0 16px}
/* callouts */
html body .post.art .guide-note,html body .post.art .guide-caution{position:relative;margin:6px 0 18px;padding:14px 18px 14px 56px;border:1px solid;border-radius:14px;font-size:1.02rem;line-height:1.65}
html body .post.art .guide-note{border-color:rgba(245,158,11,.5);background:rgba(245,158,11,.12);border-left-width:5px;border-left-color:#f59e0b}
html body .post.art .guide-caution{border-color:rgba(239,68,68,.5);background:rgba(239,68,68,.11);border-left-width:5px;border-left-color:#ef4444}
html body .post.art .guide-note::before,html body .post.art .guide-caution::before{content:"";position:absolute;left:18px;top:15px;width:24px;height:24px;background:#f59e0b;-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
html body .post.art .guide-note::before{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 21h6v-1H9zm3-19a7 7 0 0 0-4 12.700V17h8v-2.300A7 7 0 0 0 12 2z'/%3E%3C/svg%3E")}
html body .post.art .guide-caution::before{background:#ef4444;--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22zm1 15h-2v-2h2zm0-4h-2V9h2z'/%3E%3C/svg%3E")}
html body .post.art .call-label{color:inherit;text-transform:uppercase;font-size:.82em;letter-spacing:.05em;margin-right:4px}
/* FAQ accordion */
html body .post.art .faq{margin:18px 0 30px}
html body .post.art .faq details{margin:10px 0;border:1px solid var(--a-line);border-radius:14px;background:var(--a-card);padding:0;overflow:hidden}
html body .post.art .faq summary{cursor:pointer;list-style:none;padding:16px 52px 16px 20px;font-weight:700;font-size:1.04rem;line-height:1.45;position:relative;color:var(--a-ink)}
html body .post.art .faq summary::-webkit-details-marker{display:none}
html body .post.art .faq summary::after{content:"+";position:absolute;right:18px;top:50%;transform:translateY(-50%);width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--a-accent);color:#fff;font-size:1.2rem;line-height:1;font-weight:700}
html body .post.art .faq details[open] summary::after{content:"\2212"}
html body .post.art .faq details[open] summary{border-bottom:1px solid var(--a-line);background:var(--a-soft)}
html body .post.art .faq details>p,html body .post.art .faq details>div{margin:0;padding:14px 20px 16px;font-size:1.02rem}
/* video */
html body .post.art .yt-embed{margin:22px 0;border-radius:18px;box-shadow:var(--a-shadow)}
/* related posts */
html body .post-related{margin:44px 0 12px}
html body .post-related .rel-h{font-size:1.5rem;margin:0 0 18px;color:var(--a-h2)}
.rel-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.rel-card{display:flex;flex-direction:column;border:1px solid var(--a-line);border-radius:16px;background:var(--a-card);overflow:hidden;transition:transform .18s,box-shadow .18s}
.rel-card:hover{transform:translateY(-3px);box-shadow:var(--a-shadow)}
.rel-img{display:block;aspect-ratio:16/9;background:#000;overflow:hidden}
.rel-img img{display:block;width:100%;height:100%;object-fit:cover}
.rel-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:10px;flex:1}
.rel-body h3{margin:0;font-size:1rem;line-height:1.35;font-weight:700}
.rel-body h3 a{color:var(--a-ink);text-decoration:none}
.rel-body h3 a:hover{color:var(--a-accent)}
.rel-more{margin-top:auto;font-size:.9rem;font-weight:700;color:var(--a-accent);text-decoration:none}
@media (max-width:860px){.rel-grid{grid-template-columns:1fr 1fr}.rel-card:nth-child(3){display:none}}
@media (max-width:640px){
 html body .post.art{font-size:1.04rem}
 html body .post.art .lead{font-size:1.1rem;padding:14px 16px}
 html body .post.art h2{font-size:1.3rem;margin-top:34px}
 html body .post.art .guide-step{padding:18px 16px 6px;border-radius:16px}
 html body .post.art .guide-step>h2{gap:12px;font-size:1.18rem}
 html body .post.art .step-n{width:38px;height:38px;font-size:1.05rem}
 html body .post.art .guide-need>div{border-right:0;border-bottom:1px solid var(--a-line)}
 html body .post.art .guide-need>div:last-child{border-bottom:0}
 html body .post.art .guide-need>div:nth-child(3){border-top:0}
 html body .post.art .post-toc ol{grid-template-columns:1fr}
 html body .post.art .guide-note,html body .post.art .guide-caution{padding:12px 14px 12px 48px}
 html body .post.art .guide-note::before,html body .post.art .guide-caution::before{left:13px;width:22px;height:22px}
 .rel-grid{grid-template-columns:1fr}.rel-card:nth-child(3){display:flex}
 .rel-card{flex-direction:row}.rel-img{aspect-ratio:auto;width:42%;flex:none}.rel-body{padding:10px 12px}
}
@media (prefers-reduced-motion:reduce){.rel-card{transition:none}}
