/* JustBlock guides — article layout. Loads after /home.css (fonts, nav, buttons, footer). */
.guide { padding: 56px 0 40px; }
.guide-head { width: min(780px, calc(100% - 40px)); margin: 0 auto; text-align: left; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--dim); font-size: 14px; font-weight: 600; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.guide-head h1 { margin: 18px 0 18px; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.045em; font-weight: 800; }
.guide-head h1 em { font-style: normal; background: linear-gradient(90deg, #1169ef, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dek { margin: 0; color: var(--muted); font-size: 20px; line-height: 1.55; }
.byline { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 24px; color: var(--dim); font-size: 14px; }
.byline span { display: inline-flex; align-items: center; gap: 6px; }

.hero-art { width: min(1040px, calc(100% - 40px)); margin: 44px auto 0; border-radius: 28px; overflow: hidden; background: linear-gradient(135deg, #eaf3ff 0%, #f3edff 100%); box-shadow: var(--shadow); }
.hero-art svg { display: block; width: 100%; height: auto; }

.article { width: min(720px, calc(100% - 40px)); margin: 0 auto; padding-top: 50px; }
.article p, .article li { font-size: 18px; line-height: 1.75; color: #2a3f5f; }
.article p { margin: 0 0 22px; }
.article h2 { margin: 64px 0 16px; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -.03em; scroll-margin-top: 110px; }
.article h3 { margin: 34px 0 10px; font-size: 22px; letter-spacing: -.02em; }
.article a:not(.btn) { color: var(--blue2); text-underline-offset: 3px; }
.article strong { color: var(--ink); }
.article code { padding: 2px 7px; border-radius: 7px; background: #eef4ff; color: #0b3d91; font: 600 15px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; }

.short-answer { margin: 0 0 34px; padding: 24px 26px; border-radius: 20px; background: #f2f8ff; border: 1px solid #d6e6fb; }
.short-answer .label { display: inline-block; margin-bottom: 8px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.short-answer p { margin: 0; font-size: 18px; }

.toc { margin: 0 0 10px; padding: 22px 26px; border-radius: 20px; border: 1px solid var(--line2); }
.toc b { display: block; margin-bottom: 8px; font: 800 15px/1.4 var(--display); color: var(--ink); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { font-size: 16px; line-height: 1.9; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0 30px; }
.kind { padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line2); box-shadow: 0 10px 26px rgba(38,83,147,.07); }
.kind svg { display: block; width: 52px; height: 52px; margin-bottom: 12px; }
.kind h3 { margin: 0 0 6px; font-size: 18px; }
.kind p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.kind .jump { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; text-decoration: none; }

.steps { counter-reset: step; list-style: none; margin: 22px 0 28px; padding: 0; }
.steps li { position: relative; margin: 0 0 14px; padding: 2px 0 0 52px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 11px; background: var(--blue); color: #fff; font: 800 16px/34px var(--display); text-align: center; }

.path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 24px; }
.path span { padding: 7px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line2); color: var(--ink); font-size: 14.5px; font-weight: 700; }
.path i { color: var(--dim); font-style: normal; font-weight: 700; }

figure { margin: 30px 0 34px; }
figure.wide { width: min(940px, calc(100vw - 40px)); margin-left: 50%; transform: translateX(-50%); }
figure img, figure svg { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow); }
figure.plain svg { box-shadow: none; }
figcaption { margin-top: 12px; color: var(--dim); font-size: 14px; line-height: 1.5; text-align: center; }

.callout { display: grid; grid-template-columns: 46px 1fr; gap: 16px; margin: 30px 0; padding: 22px 24px; border-radius: 20px; }
.callout svg { width: 46px; height: 46px; }
.callout p { margin: 0 0 10px; font-size: 17px; }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { background: #fff6f5; border: 1px solid #f7d3cf; }
.callout.tip { background: #f1fbf7; border: 1px solid #c8eedf; }
.callout b.title { display: block; margin-bottom: 6px; font: 800 18px/1.3 var(--display); color: var(--ink); }

.article .pull { margin: 38px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--blue); font: 700 24px/1.4 var(--display); color: var(--ink); letter-spacing: -.02em; }

.cta-card { position: relative; overflow: hidden; margin: 56px 0 20px; padding: 36px 34px; border-radius: 26px; background: linear-gradient(135deg, #0c2856 0%, #1a3f86 60%, #3b2a8f 100%); color: #dfe9ff; }
.cta-card h2 { margin: 0 0 10px; color: #fff; font-size: clamp(26px, 3vw, 34px); }
.cta-card p { color: #c9d8f5; font-size: 17px; margin: 0 0 22px; max-width: 30em; }
.cta-card .btn { background: #fff; color: var(--ink); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.cta-card .btn:hover { background: #eef4ff; }
.cta-card small { display: block; margin-top: 14px; color: #a9bde6; font-size: 14px; }
.cta-card .deco { position: absolute; right: -30px; bottom: -40px; width: 230px; opacity: .16; }

.faq-list details { border-top: 1px solid var(--line2); padding: 16px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line2); }
.faq-list summary { cursor: pointer; list-style: none; font: 700 18px/1.4 var(--display); color: var(--ink); padding-right: 30px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: -2px; color: var(--blue); font-size: 24px; font-weight: 700; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 10px 0 0; font-size: 17px; }

.article .updated { margin-top: 40px; color: var(--dim); font-size: 14px; }

@media (max-width: 700px) {
  .guide { padding-top: 34px; }
  .dek { font-size: 18px; }
  .kinds { grid-template-columns: 1fr; }
  .article p, .article li { font-size: 17px; }
  .article code { white-space: normal; overflow-wrap: anywhere; }
  .callout { grid-template-columns: 1fr; }
  .cta-card { padding: 28px 22px; }
  .cta-card .btn { width: 100%; }
  .hero-art { border-radius: 20px; }
}

/* Guides index */
.guides-list { width: min(780px, calc(100% - 40px)); margin: 44px auto 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.guide-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid var(--line2); box-shadow: 0 14px 34px rgba(38,83,147,.09); color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(38,83,147,.16); }
.guide-card .thumb { background: linear-gradient(135deg, #eaf3ff 0%, #f3edff 100%); }
.guide-card .thumb svg { display: block; width: 100%; height: auto; }
.guide-card .body { padding: 22px 24px 26px; }
.guide-card .tag { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; background: #eaf3ff; color: var(--blue2); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.guide-card h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.guide-card p { margin: 0 0 14px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.guide-card .meta { color: var(--dim); font-size: 13.5px; font-weight: 600; }
