/* ============================================================
   TrustStudy blog — extends the landing styles.css (same tokens)
   ============================================================ */
body.blog .nav { background: rgba(10, 10, 12, .72); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line-soft); }

.post-wrap, .hub-wrap {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  padding: 120px clamp(18px, 5vw, 44px) 40px;
}

/* Breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--txt-micro); margin-bottom: 26px; }
.crumbs a { color: var(--txt-dim); text-decoration: none; }
.crumbs a:hover { color: var(--accent-2); }
.crumb-here { color: var(--txt-micro); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: min(52ch, 100%); }

/* ---------- Article ---------- */
.post { max-width: 760px; margin: 0 auto; }
.post-head { margin-bottom: 30px; }
.post-cat {
  font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
}
.post-head h1 {
  margin: 12px 0 16px; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1;
  font-weight: 800; letter-spacing: -1px;
}
.post-lead { color: var(--txt-dim); font-size: 19px; line-height: 1.55; }
.post-meta { margin-top: 16px; color: var(--txt-micro); font-size: 14px; }

.toc {
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 18px 22px; margin-bottom: 34px;
}
.toc-h { font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--txt-micro); margin-bottom: 8px; }
.toc ol { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.toc a { color: var(--txt-dim); text-decoration: none; font-size: 15px; }
.toc a:hover { color: var(--accent-2); }

.post-body { font-size: 17.5px; line-height: 1.75; color: #d9d9de; }
.post-body h2 {
  margin: 44px 0 14px; font-size: clamp(23px, 3vw, 29px); line-height: 1.25;
  font-weight: 800; letter-spacing: -.5px; color: var(--txt); scroll-margin-top: 90px;
}
.post-body h3 { margin: 30px 0 10px; font-size: 20px; font-weight: 700; color: var(--txt); }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.post-body li::marker { color: var(--accent); }
.post-body strong { color: var(--txt); font-weight: 650; }
.post-body a { color: var(--accent-2); text-decoration: underline; text-decoration-color: rgba(255, 160, 77, .35); text-underline-offset: 3px; }
.post-body a:hover { text-decoration-color: var(--accent-2); }

.note {
  display: flex; gap: 14px; align-items: flex-start;
  border-radius: var(--r); padding: 16px 18px; margin: 26px 0;
  border: 1px solid var(--line); background: var(--bg-2);
}
.note p { margin: 0; font-size: 16px; line-height: 1.6; }
.note-ico {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}
.note-integrity { border-color: rgba(255, 122, 24, .35); background: rgba(255, 122, 24, .06); }
.note-integrity .note-ico { background: rgba(255, 122, 24, .15); color: var(--accent); }
.note-tip { border-color: rgba(94, 224, 138, .28); background: rgba(94, 224, 138, .05); }
.note-tip .note-ico { background: rgba(94, 224, 138, .14); color: var(--ok); }

/* CTA */
.post-cta {
  position: relative; overflow: hidden; text-align: center;
  margin: 48px 0 10px; padding: 36px 26px; border-radius: 18px;
  background: radial-gradient(ellipse at top, rgba(255, 122, 24, .16), transparent 70%), var(--bg-2);
  border: 1px solid var(--line);
}
.post-cta h2 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.post-cta p { color: var(--txt-dim); margin: 10px auto 22px; max-width: 34em; }

/* FAQ */
.faq { margin-top: 46px; }
.faq h2 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 16px; }
.faq details {
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--r);
  margin-bottom: 10px; transition: border-color .15s;
}
.faq details[open] { border-color: var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; position: relative;
  font-weight: 650; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 22px; font-weight: 400; transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 18px 18px; color: var(--txt-dim); font-size: 16px; line-height: 1.65; }
.faq details a { color: var(--accent-2); }

/* Related + cards */
.related { max-width: var(--maxw); margin: 70px auto 0; padding-top: 40px; border-top: 1px solid var(--line-soft); }
.related h2 { font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.post-card {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--txt);
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 20px;
  transition: transform .2s var(--ease), border-color .2s;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-cat { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.post-card h3 { font-size: 17.5px; line-height: 1.35; font-weight: 700; }
.post-card p { color: var(--txt-dim); font-size: 14.5px; line-height: 1.55; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { color: var(--txt-micro); font-size: 13px; }

/* ---------- Hubs ---------- */
.hub-head { max-width: 760px; margin-bottom: 44px; }
.hub-head h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -1.1px; margin-bottom: 16px; }
.hub-head p { color: var(--txt-dim); font-size: 18px; }
.hub-other { margin-top: 16px; font-size: 15px !important; }
.chip { color: var(--accent-2); text-decoration: none; margin-left: 6px; font-weight: 600; }
.chip:hover { text-decoration: underline; }
.hub-section { margin-bottom: 64px; }
.hub-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hub-section-head h2 { font-size: clamp(23px, 3vw, 30px); font-weight: 800; letter-spacing: -.5px; }
.see-all { color: var(--accent-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.see-all:hover { text-decoration: underline; }

body.blog .footer { position: relative; z-index: 2; margin-top: 40px; }

@media (max-width: 620px) {
  .post-wrap, .hub-wrap { padding-top: 96px; }
  .post-body { font-size: 16.5px; }
  .post-lead { font-size: 17px; }
}
