/* Blog layout — builds on styles.css (tokens, nav, ribbon, buttons, footer). */

.article-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}

/* Breadcrumb */
.crumbs {
  font: 600 13px var(--body);
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.crumbs a:hover { color: var(--gold-bright); }
.crumbs .sep { opacity: 0.5; }
.crumbs [aria-current] { color: var(--cream); }

/* Post header */
.post-head { margin-bottom: 34px; }
.cat-chip {
  display: inline-block;
  font: 700 12px var(--body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}
.post-head h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 800;
  margin-bottom: 16px;
}
.dek {
  font-size: 20px;
  color: #cdbfa6;
  line-height: 1.5;
  margin-bottom: 20px;
}
.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.byline .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  display: grid; place-items: center;
  color: #241a08; font-weight: 800; font-family: var(--display); font-size: 15px;
  flex: none;
}
.byline strong { color: var(--cream); font-weight: 700; }
.byline .dot { opacity: 0.5; }

/* Article body type */
.article-body { font-size: 17.5px; line-height: 1.72; color: var(--cream); }
.article-body p { margin: 0 0 20px; color: #ddd1ba; }
.article-body h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 46px 0 16px;
  padding-top: 8px;
}
.article-body h3 { font-size: 21px; margin: 30px 0 12px; color: var(--gold-bright); }
.article-body a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-deep); }
.article-body a:hover { text-decoration-color: var(--gold-bright); }
/* Buttons and card links are not text links — keep their own styling, no underline. */
.article-body a.btn,
.article-body a.rel-card { text-decoration: none; }
.article-body a.btn-gold { color: #241a08; }
.article-body a.btn-ghost,
.article-body a.btn-light { color: var(--cream); }
.article-body a.btn-ghost:hover { color: var(--gold-bright); }
.article-body a.rel-card { color: inherit; }
.article-body strong { color: var(--cream); }
.article-body code {
  background: rgba(217, 164, 65, 0.12);
  border: 1px solid var(--gold-deep);
  color: var(--gold-bright);
  padding: 1px 7px; border-radius: 5px; font-size: 0.92em;
}

/* Figures + image fallback (images dropped in later) */
.fig { margin: 26px 0; }
.fig img {
  display: block; width: 100%; height: auto;
  border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.85);
}
.fig figcaption { margin-top: 9px; font-size: 13px; color: var(--muted); text-align: center; }
/* Placeholder shown until the real screenshot is added */
.fig.is-empty img { display: none; }
.fig.is-empty {
  position: relative;
  border: 1px dashed var(--gold-deep);
  border-radius: 12px;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(217,164,65,.08), transparent 60%),
    var(--panel);
  min-height: 230px;
  display: grid; place-items: center; text-align: center; padding: 24px;
}
.fig.is-empty::before {
  content: attr(data-label);
  color: var(--muted);
  font: 600 14px var(--body);
  letter-spacing: 0.03em;
  max-width: 32ch;
}
.fig.is-empty::after {
  content: "🔒 screenshot coming soon";
  position: absolute; top: 12px; left: 12px;
  font: 700 11px var(--body); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); opacity: 0.7;
}

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

/* Starting-position fingerprint box */
.start-box {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
}
.start-box h4 { font-family: var(--display); color: var(--gold-bright); font-size: 16px; margin-bottom: 10px; }
.start-box p { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.pins { display: flex; flex-wrap: wrap; gap: 10px; }
.pin-cell {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 12px; min-width: 64px;
}
.pin-cell .pl { font: 700 11px var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pin-cell .pv { font: 800 18px var(--display); color: var(--gold-bright); }

/* Step list */
.steps-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 8px 8px 0;
  margin: 22px 0;
}
.steps-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted); letter-spacing: 0.02em;
}
.steps-meta b { color: var(--gold-bright); font-weight: 700; }
ol.steps { list-style: none; counter-reset: step; margin: 0; padding: 10px 8px; max-height: 460px; overflow-y: auto; }
ol.steps li {
  counter-increment: step;
  display: flex; align-items: center; gap: 14px;
  padding: 9px 14px; border-radius: 8px; font-size: 16px;
}
ol.steps li:nth-child(odd) { background: rgba(255,255,255,.02); }
ol.steps li::before {
  content: counter(step);
  flex: none; width: 28px; height: 28px; border-radius: 7px;
  background: var(--panel2); border: 1px solid var(--line);
  color: var(--muted); font: 700 13px var(--body);
  display: grid; place-items: center;
}
ol.steps .mv-plate { font-weight: 700; color: var(--cream); }
ol.steps .mv-dir { color: var(--gold-bright); font-weight: 700; }
ol.steps .arrow { font-size: 13px; }
ol.steps::-webkit-scrollbar { width: 10px; }
ol.steps::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 6px; }

/* CTA promo box */
.cta-box {
  position: relative;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(217,164,65,.14), transparent 55%),
    var(--panel2);
  border: 1px solid var(--gold-deep);
  border-radius: 16px;
  padding: 28px 28px 26px;
  margin: 34px 0;
  box-shadow: 0 20px 60px -34px rgba(217,164,65,.5);
}
.cta-box .kicker { font: 700 12px var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.cta-box h3 { font-size: 24px; margin-bottom: 10px; color: var(--cream); }
.cta-box p { font-size: 16px; color: #d8ccb4; margin-bottom: 18px; }
.cta-box .cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-box .code-pill {
  background: rgba(217,164,65,.14); border: 1px dashed var(--gold-deep);
  color: var(--gold-bright); padding: 8px 14px; border-radius: 8px;
  font: 700 14px var(--body); letter-spacing: 0.08em;
}

/* Callout */
.callout {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 10px; padding: 16px 18px; margin: 24px 0;
  font-size: 15.5px; color: #cdbfa6;
}
.callout strong { color: var(--cream); }

/* Related guides */
.related { margin: 46px 0 0; }
.related h2 { margin-bottom: 18px; }
.rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .rel-grid { grid-template-columns: 1fr; } }
.rel-card {
  display: block; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; transition: border-color .2s, transform .15s;
}
.rel-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.rel-card .rc-cat { font: 700 11px var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.rel-card .rc-title { font-family: var(--display); font-weight: 700; font-size: 16.5px; color: var(--cream); margin-top: 6px; line-height: 1.25; }

/* FAQ */
.faq-list { margin: 14px 0 0; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 2px; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--cream);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 6px; top: 16px;
  font-size: 24px; color: var(--gold); font-family: var(--body); transition: transform .2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-a { padding: 0 2px 20px; color: #cdbfa6; font-size: 16px; line-height: 1.65; }

/* Post footer / final CTA */
.post-foot { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); text-align: center; }
.post-foot h2 { font-size: 26px; margin-bottom: 12px; }
.post-foot p { color: var(--muted); margin-bottom: 20px; }

/* ---------------- Blog hub ---------------- */
.hub-head { max-width: 820px; margin: 0 auto; text-align: center; padding: 56px 24px 8px; }
.hub-head h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; margin-bottom: 16px; }
.hub-head p { font-size: 19px; color: #cdbfa6; max-width: 38em; margin: 0 auto; }
.hub-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 90px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; transition: border-color .2s, transform .15s, box-shadow .25s;
}
.hub-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 24px 60px -34px rgba(217,164,65,.4); }
.hub-thumb {
  aspect-ratio: 16 / 9; background:
    radial-gradient(120% 120% at 50% 0%, rgba(217,164,65,.12), transparent 60%), var(--panel2);
  display: grid; place-items: center; border-bottom: 1px solid var(--line);
  position: relative;
}
.hub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hub-thumb .ph { font-family: var(--display); font-weight: 700; color: var(--gold); opacity: .55; letter-spacing: .04em; }
.hub-card .hc-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.hub-card .hc-cat { font: 700 11px var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.hub-card .hc-title { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.2; margin: 8px 0 8px; color: var(--cream); }
.hub-card .hc-dek { font-size: 14.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.hub-card .hc-go { margin-top: 14px; font: 700 14px var(--body); color: var(--gold-bright); }
