/* ==========================================================
   ShareMarketGyan — Individual Blog Article System
   Common stylesheet for all blog.*.html article pages.
========================================================== */

.blog-article-page {
  --ba-navy: #0b2f5b;
  --ba-blue: #1769d1;
  --ba-blue-dark: #0f4f9f;
  --ba-green: #079b69;
  --ba-red: #dc4d42;
  --ba-text: #172b46;
  --ba-muted: #66758b;
  --ba-border: #dfe7f0;
  --ba-bg: #f5f8fc;
  --ba-card: #ffffff;
  background: var(--ba-bg);
  color: var(--ba-text);
}

.blog-article-page * { box-sizing: border-box; }
.blog-article-container { width: min(1320px, calc(100% - 32px)); margin: 0 auto; }

.blog-article-breadcrumbs { padding: 18px 0 10px; font-size: 13px; color: var(--ba-muted); }
.blog-article-breadcrumbs a { color: var(--ba-blue); text-decoration: none; font-weight: 600; }
.blog-article-breadcrumbs span { margin: 0 7px; color: #9aa7b7; }

.blog-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; padding-bottom: 52px; }
.blog-article-main { min-width: 0; }

.article-header-card,
.article-body-card,
.article-comments,
.blog-sidebar-card { background: var(--ba-card); border: 1px solid var(--ba-border); border-radius: 14px; box-shadow: 0 6px 22px rgba(25, 54, 92, .055); }

.article-header-card { padding: 28px 30px 24px; }
.article-category { display: inline-flex; align-items: center; width: fit-content; padding: 7px 12px; border: 1px solid rgba(23,105,209,.16); border-radius: 999px; background: #eef5ff; color: var(--ba-blue-dark); font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.article-header-card h1 { margin: 14px 0 12px; color: var(--ba-navy); font-family: Poppins, Inter, Arial, sans-serif; font-size: clamp(34px, 4vw, 54px); line-height: 1.08; letter-spacing: -.035em; }
.article-deck { max-width: 900px; margin: 0; color: #526782; font-size: 18px; line-height: 1.6; }
.article-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #edf1f5; color: var(--ba-muted); font-size: 12px; }
.article-meta-item { display: inline-flex; align-items: center; gap: 7px; }
.article-meta-item i { color: var(--ba-blue); }
.article-author { color: var(--ba-navy); font-weight: 800; }
.article-share { margin-left: auto; display: flex; gap: 7px; }
.article-share a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #d8e2ee; border-radius: 50%; background: #fff; color: var(--ba-blue); text-decoration: none; transition: transform .2s ease, background .2s ease; }
.article-share a:hover { transform: translateY(-2px); background: #f2f7ff; }

.article-featured { margin-top: 18px; overflow: hidden; border-radius: 14px; border: 1px solid #dce6f1; background: #06162a; box-shadow: 0 10px 28px rgba(14, 47, 86, .10); }
.article-featured img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 760; object-fit: cover; }
.article-featured figcaption { padding: 9px 14px; background: #f9fbfd; color: #718097; font-size: 11px; }

.article-body-card { margin-top: 18px; padding: 34px 38px 38px; }
.article-body-card h2 { margin: 26px 0 10px; color: var(--ba-navy); font-family: Poppins, Inter, Arial, sans-serif; font-size: clamp(25px, 3vw, 34px); line-height: 1.2; letter-spacing: -.02em; }
.article-body-card h2:first-child { margin-top: 0; }
.article-body-card h3 { margin: 20px 0 8px; color: #174c88; font-family: Poppins, Inter, Arial, sans-serif; font-size: 21px; line-height: 1.3; }
.article-body-card p { margin: 0 0 16px; color: #263d59; font-size: 16px; line-height: 1.82; }
.article-body-card ul, .article-body-card ol { margin: 0 0 18px 22px; padding: 0; color: #263d59; }
.article-body-card li { margin: 8px 0; padding-left: 3px; line-height: 1.7; }
.article-body-card strong { color: #102e52; }
.article-body-card a { color: var(--ba-blue); }

.article-callout { margin: 18px 0; padding: 19px 21px; border: 1px solid #cfe0f8; border-left: 4px solid var(--ba-blue); border-radius: 10px; background: #f2f7ff; }
.article-callout--green { border-color: #c9ebdd; border-left-color: var(--ba-green); background: #f1fbf7; }
.article-callout--warning { border-color: #f1dfb5; border-left-color: #d88a18; background: #fff9ed; }
.article-callout h3 { margin: 0 0 7px; font-size: 17px; color: #174c88; }
.article-callout p { margin: 0; font-size: 15px; line-height: 1.7; }

.article-equilibrium { margin: 18px 0; padding: 18px; border: 1px solid #dce6f1; border-radius: 12px; background: #fbfdff; }
.article-equilibrium-title { margin-bottom: 10px; color: var(--ba-navy); font-weight: 800; }

.article-table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--ba-border); border-radius: 10px; }
.article-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.article-table th, .article-table td { padding: 13px 14px; border-bottom: 1px solid #e8edf3; text-align: left; vertical-align: top; font-size: 14px; line-height: 1.55; }
.article-table th { background: #eef5ff; color: #143f70; font-weight: 800; }
.article-table tr:last-child td { border-bottom: 0; }

.article-steps { display: grid; gap: 12px; margin: 18px 0; }
.article-step { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; padding: 15px; border: 1px solid #e1e8f0; border-radius: 11px; background: #fff; }
.article-step-number { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #eaf3ff; color: var(--ba-blue-dark); font-weight: 800; }
.article-step h3 { margin: 2px 0 5px; font-size: 17px; }
.article-step p { margin: 0; font-size: 14px; }

.article-takeaways { margin-top: 24px; padding: 22px; border-radius: 12px; background: linear-gradient(135deg, #092c50, #145c99); color: #fff; }
.article-takeaways h2 { margin: 0 0 12px; color: #fff; font-size: 24px; }
.article-takeaways ul { margin-bottom: 0; color: #e9f3fc; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e9eef4; }
.article-tag { padding: 6px 10px; border: 1px solid #d7e4f5; border-radius: 999px; background: #f5f9ff; color: #2765a7; font-size: 11px; font-weight: 700; }

.blog-sidebar { position: sticky; top: 92px; display: grid; gap: 16px; }
.blog-sidebar-card { overflow: hidden; }
.blog-sidebar-card h2 { margin: 0; padding: 16px 17px; background: #eef5ff; color: var(--ba-navy); font-family: Poppins, Inter, Arial, sans-serif; font-size: 18px; }
.article-toc { list-style: none; margin: 0; padding: 8px; }
.article-toc a { display: grid; grid-template-columns: 27px minmax(0,1fr); gap: 9px; align-items: center; padding: 8px 9px; border-radius: 8px; color: #27425f; text-decoration: none; font-size: 12px; line-height: 1.35; }
.article-toc a:hover, .article-toc a.active { background: #eaf3ff; color: var(--ba-blue-dark); }
.article-toc-number { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #f0f4f8; color: #4d6177; font-weight: 800; font-size: 11px; }
.article-toc a.active .article-toc-number { background: #d6e7ff; color: var(--ba-blue-dark); }

.sidebar-links { padding: 8px; }
.sidebar-link { display: grid; grid-template-columns: 68px minmax(0,1fr); gap: 10px; padding: 10px 8px; border-bottom: 1px solid #edf1f5; color: inherit; text-decoration: none; }
.sidebar-link:last-child { border-bottom: 0; }
.sidebar-link img { width: 68px; height: 45px; object-fit: cover; border-radius: 7px; background: #edf3f9; }
.sidebar-link strong { display: block; color: #183b65; font-size: 12px; line-height: 1.35; }
.sidebar-link span { display: block; margin-top: 4px; color: #7a889a; font-size: 10px; }
.sidebar-list { list-style: none; margin: 0; padding: 8px 12px 12px; }
.sidebar-list li + li { border-top: 1px solid #edf1f5; }
.sidebar-list a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 5px; color: #264667; text-decoration: none; font-size: 12px; }
.sidebar-list a:hover { color: var(--ba-blue); }

.article-comments { margin-top: 20px; padding: 24px; }
.comments-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.comments-header h2 { margin: 0; color: var(--ba-navy); font-family: Poppins, Inter, Arial, sans-serif; font-size: 25px; }
.comments-header p { margin: 4px 0 0; color: var(--ba-muted); font-size: 13px; }
.comment-login-note { display: none; margin-bottom: 15px; padding: 13px 15px; border: 1px solid #dce7f3; border-radius: 9px; background: #f6faff; color: #506782; font-size: 13px; }
.comment-login-note a { color: var(--ba-blue); font-weight: 800; }
.comment-form { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 11px; align-items: start; padding: 14px; border: 1px solid #dbe5ef; border-radius: 11px; background: #fbfdff; }
.comment-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #eaf3ff; color: var(--ba-blue); font-size: 18px; }
.comment-form textarea { width: 100%; min-height: 46px; max-height: 180px; padding: 12px; resize: vertical; border: 1px solid #d8e1eb; border-radius: 9px; outline: 0; font: inherit; color: var(--ba-text); }
.comment-form textarea:focus { border-color: #80ace0; box-shadow: 0 0 0 3px rgba(23,105,209,.08); }
.comment-submit, .comment-load-more { min-height: 42px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--ba-blue); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.comment-submit:disabled { opacity: .6; cursor: wait; }
.comment-status { min-height: 18px; margin-top: 8px; color: var(--ba-muted); font-size: 12px; }
.comment-list { margin-top: 17px; }
.comment-item { padding: 17px 0; border-top: 1px solid #e9eef4; }
.comment-item.is-reply { margin-left: 48px; padding-left: 15px; border-left: 2px solid #dce9f8; }
.comment-head { display: flex; align-items: center; gap: 10px; }
.comment-user-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #edf4fb; color: #1a5b9e; font-weight: 800; font-size: 13px; overflow: hidden; }
.comment-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-user-name { color: #15375d; font-size: 13px; font-weight: 800; }
.comment-time { color: #8a96a5; font-size: 11px; }
.comment-author-badge { padding: 3px 6px; border-radius: 999px; background: #eaf4ff; color: #2368ad; font-size: 9px; font-weight: 800; }
.comment-text { margin: 8px 0 9px 46px; color: #334b67; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-actions { margin-left: 46px; display: flex; align-items: center; gap: 13px; }
.comment-action { border: 0; background: transparent; color: #64758a; padding: 0; font-size: 11px; font-weight: 700; cursor: pointer; }
.comment-action:hover, .comment-action.is-liked { color: var(--ba-blue); }
.comment-empty { padding: 28px 10px; text-align: center; color: #7b8999; font-size: 13px; }
.comment-load-wrap { margin-top: 8px; text-align: center; }
.comment-load-more { width: 100%; border: 1px solid #cfe0f5; background: #edf5ff; color: #17548e; }

.article-faq { margin-top: 24px; }
.article-faq details { border: 1px solid #dfe7ef; border-radius: 9px; background: #fff; }
.article-faq details + details { margin-top: 9px; }
.article-faq summary { padding: 14px 16px; cursor: pointer; color: #173d68; font-weight: 800; font-size: 14px; }
.article-faq p { padding: 0 16px 15px; margin: 0; font-size: 14px; }

.article-disclaimer { margin-top: 22px; padding: 14px 16px; border: 1px solid #e4e9ef; border-radius: 9px; background: #fafbfd; color: #738096; font-size: 11px; line-height: 1.6; }

@media (max-width: 1050px) {
  .blog-article-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; }
  .article-header-card { padding: 24px; }
  .article-body-card { padding: 28px; }
}

@media (max-width: 820px) {
  .blog-article-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .article-share { margin-left: 0; width: 100%; }
  .article-header-card h1 { font-size: clamp(31px, 7vw, 45px); }
}

@media (max-width: 620px) {
  .blog-article-container { width: min(100% - 20px, 1320px); }
  .article-header-card, .article-body-card, .article-comments { padding: 20px 16px; border-radius: 11px; }
  .article-deck { font-size: 15px; }
  .article-body-card p { font-size: 15px; line-height: 1.72; }
  .article-body-card h2 { font-size: 25px; }
  .comment-form { grid-template-columns: 38px minmax(0, 1fr); }
  .comment-avatar { width: 38px; height: 38px; }
  .comment-submit { grid-column: 2; justify-self: start; }
  .comment-item.is-reply { margin-left: 20px; }
  .comment-text, .comment-actions { margin-left: 0; }
  .comments-header { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .article-share a { transition: none; }
}

/* ----------------------------------------------------------
   Article exploration widgets
   ---------------------------------------------------------- */
.sidebar-loading {
  display: block;
  padding: 12px 8px;
  color: var(--ba-muted);
  font-size: 11px;
}
.sidebar-link {
  transition: background .18s ease, transform .18s ease;
}
.sidebar-link:hover {
  background: #f6f9fd;
  transform: translateY(-1px);
}
.sidebar-topic-list a {
  align-items: center;
}
.sidebar-topic-count {
  min-width: 24px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #eef5ff;
  color: #32679e;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
}
.sidebar-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #d8e5f4;
  border-radius: 999px;
  background: #f7faff;
  color: #2c5f96;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.sidebar-tag:hover {
  background: #eaf3ff;
  border-color: #bfd6f1;
  color: var(--ba-blue-dark);
}
@media (max-width: 620px) {
  .article-body-card h2 { margin-top: 24px; margin-bottom: 9px; }
  .article-body-card h3 { margin-top: 18px; margin-bottom: 7px; }
}
