/* ==========================================================================
   Single blog article (single.php, comments.php). Card styles for the
   related articles come from blog.css, which single.php also loads.
   ========================================================================== */

/* ---------- Hero ---------- */
.post-hero { padding: 64px 0 80px; }
.post-hero .breadcrumb { flex-wrap: wrap; }
.post-hero-inner { max-width: 880px; }
.post-hero-cat {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px;
  border-radius: 999px; background: rgba(95, 174, 78, 0.14); border: 1px solid rgba(95, 174, 78, 0.38);
  color: #d4efcc; font-size: 0.84rem; font-weight: 700; transition: background-color .2s, color .2s;
}
.post-hero-cat i { color: var(--green-500); font-size: 0.85rem; }
.post-hero-cat:hover { background: rgba(95, 174, 78, 0.26); color: #fff; }
.post-hero h1 { max-width: 880px; margin-bottom: 18px; font-size: clamp(1.85rem, 3.5vw, 2.85rem); line-height: 1.14; }
.post-hero .post-hero-lead { max-width: 720px; margin-bottom: 28px; font-size: 1.12rem; line-height: 1.6; color: var(--on-dark); }
.post-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 0.93rem; color: var(--on-dark); }
.post-hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.post-hero-meta .icon { width: 16px; height: 16px; color: var(--green-500); }
.post-hero-meta strong { color: #fff; font-weight: 700; }
.post-hero-author { gap: 10px !important; }
.post-hero-author .advisor-photo, .post-hero-author .advisor-initials { width: 38px; height: 38px; font-size: 0.8rem; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18); }

/* ---------- Article ---------- */
.post-body { padding: 72px 0 96px; }
.post-wrap { max-width: 760px; margin: 0 auto; }
.post-body .post-cover { margin: 0 0 36px; }
.post-body .entry-content { font-size: 1.08rem; line-height: 1.8; }
.post-body .entry-content > p:first-child { font-size: 1.2rem; line-height: 1.7; color: var(--ink); }
.post-body .entry-content h2 { margin: 2.6rem 0 0.9rem; font-size: clamp(1.4rem, 2.3vw, 1.7rem); line-height: 1.25; }
.post-body .entry-content h3 { margin-top: 2rem; font-size: 1.22rem; }
.post-body .entry-content strong { color: var(--ink); }
.post-body .entry-content ul, .post-body .entry-content ol { padding-left: 1.3rem; }
.post-body .entry-content li { margin-bottom: 0.55rem; padding-left: 4px; }
.post-body .entry-content li::marker { color: var(--green-700); }
.post-body .entry-content blockquote {
  margin: 1.8rem 0; padding: 20px 24px; border-left: 4px solid var(--green-500); border-radius: 0 16px 16px 0;
  background: var(--leaf-50); font-size: 1.15rem; font-weight: 600; line-height: 1.6; color: var(--ink);
}
.post-body .entry-content blockquote p { margin: 0; }
.post-body .entry-content blockquote p + p { margin-top: 0.8rem; }
.post-body .entry-content table {
  margin: 1.8rem 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; font-size: 0.97rem; line-height: 1.5;
}
.post-body .entry-content table th, .post-body .entry-content table td { border: 0; border-top: 1px solid var(--line); padding: 12px 16px; }
.post-body .entry-content table thead th { border-top: 0; background: var(--navy-900); color: #fff; font-weight: 700; }
.post-body .entry-content table tbody tr:nth-child(even) td { background: var(--bg-soft); }
.post-body .entry-content table td:first-child { font-weight: 600; color: var(--ink); }
.page-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2rem; font-weight: 700; }
.page-links a, .page-links .post-page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none !important; }
.page-links .current { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* Time-sensitive note on market updates */
.post-notice {
  display: flex; gap: 12px; align-items: flex-start; margin: 0 0 36px; padding: 16px 20px;
  border-radius: 16px; background: #fff8e8; border: 1px solid #f5dfa8; font-size: 0.95rem; line-height: 1.6; color: var(--ink-2);
}
.post-notice .icon { width: 20px; height: 20px; margin-top: 2px; color: #9a6a06; }
.post-notice strong { color: var(--ink); }

/* ---------- Disclaimer ---------- */
.post-disclaimer { margin-top: 52px; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--line); }
.post-disclaimer h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 1.08rem; letter-spacing: -0.01em; }
.post-disclaimer h2 .icon { width: 20px; height: 20px; color: var(--green-700); }
.post-disclaimer ul { display: grid; gap: 10px; margin-bottom: 16px; }
.post-disclaimer li { position: relative; padding-left: 20px; font-size: 0.95rem; line-height: 1.6; color: var(--ink-2); }
.post-disclaimer li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); }
.post-risk { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 1rem; font-weight: 700; line-height: 1.55; color: var(--ink); }

/* ---------- Author ---------- */
.post-author {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; margin-top: 28px; padding: 32px;
  border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.post-author .advisor-photo, .post-author .advisor-initials { width: 88px; height: 88px; }
.post-author .eyebrow { margin-bottom: 8px; }
.post-author h2 { margin-bottom: 4px; font-size: 1.4rem; }
.post-author-role { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-bottom: 14px; font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.post-author-role span { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.post-author-role .icon { width: 15px; height: 15px; color: var(--green-700); }
.post-author-bio { font-size: 0.98rem; color: var(--ink-2); }
.post-author-creds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.post-author-creds li { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); line-height: 1.35; }
.post-author-creds .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--green-700); }
.post-author-creds strong { display: block; font-size: 0.9rem; color: var(--ink); }
.post-author-creds small { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--muted); }
.post-author-reg { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; padding: 11px 13px; border-radius: 12px; background: var(--leaf-50); border: 1px solid #d4ebcd; font-size: 0.9rem; color: var(--ink-2); }
.post-author-reg .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--leaf-700); }
.post-author-reg strong { color: var(--ink); }

/* ---------- Previous / next ---------- */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.post-nav-link {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.post-nav-link:hover { border-color: var(--green-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.post-nav-link span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-700); }
.post-nav-link span .icon { width: 15px; height: 15px; }
.post-nav-link.prev span .icon { transform: rotate(180deg); }
.post-nav-link strong { font-size: 0.98rem; line-height: 1.4; color: var(--ink); }
.post-nav-link.next { grid-column: 2; align-items: flex-end; text-align: right; }

/* ---------- Comments ---------- */
.post-body .comments-area { margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--line); }
.comments-title, .comment-reply-title { margin-bottom: 14px; font-size: 1.4rem; }
.comment-list { margin: 0 0 40px; padding: 0; list-style: none; }
.comment-list .children { margin: 0; padding: 0 0 0 28px; list-style: none; border-left: 2px solid var(--line); }
.comment-list .comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-list .children .comment-body { padding-left: 4px; }
.comment-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--green-50); color: var(--green-800); font-weight: 800; font-size: 0.85rem; }
.bypostauthor > .comment-body .comment-avatar { background: var(--grad); color: #fff; }
.comment-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--ink); }
.comment-badge { padding: 1px 8px; border-radius: 999px; background: var(--green-50); color: var(--green-800); font-size: 0.72rem; font-weight: 700; }
.comment-date { font-size: 0.85rem; color: var(--muted); }
.comment-date:hover { color: var(--green-700); }
.comment-content { color: var(--ink-2); }
.comment-content p:last-child { margin-bottom: 0; }
.comment-awaiting { padding: 8px 12px; border-radius: 10px; background: #fff8e8; font-size: 0.9rem; }
.comment-list .reply { margin-top: 8px; }
.comment-reply-link { font-size: 0.88rem; font-weight: 700; color: var(--green-700); }
.comment-ping { font-size: 0.92rem; color: var(--muted); }
.comments-closed { color: var(--muted); }
.comment-respond { padding: 30px; border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--line); }
.comment-reply-title small { display: block; margin-top: 6px; font-size: 0.85rem; font-weight: 600; }
.comment-reply-title small a { color: var(--green-700); }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.comment-form > * { grid-column: 1 / -1; }
.comment-form .comment-form-author, .comment-form .comment-form-email { grid-column: auto; }
.comment-notes, .logged-in-as { font-size: 0.92rem; color: var(--muted); }
.comment-notes a, .logged-in-as a { color: var(--green-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.comment-form .required { color: #c2410c; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { background: #fff; transition: border-color .2s, box-shadow .2s; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(40, 104, 144, 0.15); }
.comment-form input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--green-700); }
.comment-form .form-submit { margin: 6px 0 0; }

/* ---------- Related ---------- */
.post-related-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.post-related-head h2 { margin: 0; }
.post-explore { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 44px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .post-body { padding: 56px 0 80px; }
}

@media (max-width: 640px) {
  .post-hero { padding: 44px 0 56px; }
  .post-hero .breadcrumb { margin-bottom: 18px; }
  .post-hero-cat { margin-bottom: 14px; }
  .post-hero .post-hero-lead { font-size: 1.04rem; margin-bottom: 22px; }
  .post-hero-meta { gap: 10px 18px; font-size: 0.9rem; }
  .post-hero-author { flex-basis: 100%; }
  .post-body { padding: 40px 0 64px; }
  .post-body .entry-content { font-size: 1.04rem; line-height: 1.75; }
  .post-body .entry-content > p:first-child { font-size: 1.1rem; }
  .post-body .entry-content blockquote { padding: 16px 18px; font-size: 1.06rem; }
  .post-body .entry-content table { font-size: 0.88rem; }
  .post-body .entry-content table th, .post-body .entry-content table td { padding: 10px 10px; }
  .post-notice { padding: 14px 16px; font-size: 0.92rem; }
  .post-disclaimer { margin-top: 40px; padding: 22px 20px; }
  .post-author { grid-template-columns: 1fr; gap: 16px; padding: 24px 20px; }
  .post-author .advisor-photo, .post-author .advisor-initials { width: 72px; height: 72px; font-size: 1.4rem; }
  .post-author-creds { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-link.next { grid-column: auto; align-items: flex-start; text-align: left; }
  .comment-respond { padding: 24px 18px; }
  .comment-form { grid-template-columns: 1fr; }
  .comment-list .children { padding-left: 16px; }
  .post-related-head { margin-bottom: 28px; }
  .post-explore { flex-direction: column; align-items: flex-start; margin-top: 32px; }
}
