/* Trading Bite — Insights / Blog pages (uses site chrome + theme from styles.css) */
.tb-blog-page.tb-subpage {
  min-height: 100vh;
}

.tb-blog-main {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 6vw, 4.5rem) 5% 3.5rem;
  box-sizing: border-box;
}

.tb-blog-inset {
  width: 100%;
  max-width: 1540px;
  margin-inline: auto;
  box-sizing: border-box;
}

.tb-blog-hub,
.tb-blog-article-wrap {
  width: 100%;
}

.tb-blog-hero {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-top: 0.5rem;
}

.tb-blog-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal, #5eead4);
  margin: 0 0 0.5rem;
}

.tb-blog-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
}

.tb-blog-lead {
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.tb-blog-series-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tb-blog-series-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.14), rgba(251, 191, 36, 0.06));
}

[data-theme="light"] .tb-blog-series-head {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(251, 191, 36, 0.08));
}

.tb-blog-series-title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.tb-blog-series-count {
  font-size: 0.75rem;
  color: var(--muted);
}

.tb-blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}

.tb-blog-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.15s, transform 0.15s;
}

[data-theme="light"] .tb-blog-card {
  background: #fff;
  box-shadow: 0 1px 4px rgba(10, 14, 22, 0.06);
}

.tb-blog-card:hover {
  border-color: var(--teal, #5eead4);
  transform: translateY(-2px);
}

.tb-blog-card-link {
  display: block;
  padding: 1rem 1.05rem;
  text-decoration: none;
  color: inherit;
}

.tb-blog-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text);
}

.tb-blog-card p {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tb-blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.7rem;
  color: var(--muted);
}

.tb-blog-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.65rem;
  color: var(--teal, #5eead4);
  background: rgba(13, 148, 136, 0.08);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

a.tb-blog-tag:hover {
  border-color: var(--teal, #5eead4);
  background: rgba(13, 148, 136, 0.16);
}

.tb-blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 1.05rem 1rem;
}

.tb-blog-keywords {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.tb-blog-keywords h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  text-align: center;
}

.tb-blog-keywords-lead {
  margin: 0 auto 1.25rem;
  max-width: 520px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.tb-blog-keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.tb-blog-tag-page-head {
  text-align: center;
  margin-bottom: 2rem;
}

.tb-blog-tag-page-head h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.tb-blog-tag-count {
  font-size: 0.82rem;
  color: var(--muted);
}

.tb-subpage .nav-links a.active {
  color: var(--gold-light, var(--teal, #5eead4));
}

.tb-subpage .nav-links a.active::after {
  width: 100%;
}

[data-theme="light"] .tb-blog-tag {
  color: #0d9488;
  background: rgba(13, 148, 136, 0.06);
}

.tb-blog-breadcrumb {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
}

.tb-blog-breadcrumb a {
  color: var(--teal, #5eead4);
  text-decoration: none;
}

.tb-blog-article {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
}

.tb-blog-article-head {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.tb-blog-article-head .tb-blog-tags {
  justify-content: center;
}

.tb-blog-series-badge {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal, #5eead4);
  border: 1px solid rgba(13, 148, 136, 0.35);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.16), rgba(251, 191, 36, 0.05));
}

[data-theme="light"] .tb-blog-series-badge {
  color: #0d9488;
  background: rgba(13, 148, 136, 0.1);
}

.tb-blog-article-head h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.25;
}

.tb-blog-article-desc {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

.tb-blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.tb-blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tb-blog-body {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  user-select: none;
  -webkit-user-select: none;
}

.tb-blog-page .ms-reader-body {
  max-width: 100%;
  margin-inline: auto;
  width: 100%;
}

.tb-blog-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 2rem auto 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 820px;
}

.tb-blog-pager a {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

.tb-blog-pager a:hover {
  border-color: var(--teal, #5eead4);
}

.tb-blog-pager span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.tb-blog-pager strong {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text);
}

.tb-blog-pager-next {
  text-align: right;
}

.tb-blog-pager-gap {
  display: block;
}

.tb-blog-cta {
  text-align: center;
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.03);
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
}

[data-theme="light"] .tb-blog-cta {
  background: #f8fafc;
}

.tb-blog-cta p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.tb-blog-cta .btn {
  margin: 0.25rem;
}

.tb-blog-related {
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 820px;
}

.tb-blog-related h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.tb-blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.tb-blog-related-card {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

.tb-blog-related-card:hover {
  border-color: var(--teal, #5eead4);
}

.tb-blog-related-card strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.tb-blog-related-card span {
  font-size: 0.72rem;
  color: var(--muted);
}

.tb-blog-related-tags {
  margin-top: 0.5rem;
}

.tb-blog-tag .tb-blog-tag-count {
  opacity: 0.8;
  font-size: 0.92em;
}

.tb-blog-loading,
.tb-blog-error {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}

/* Blur shield — all screen sizes */
.tb-blog-shield {
  position: fixed;
  inset: 0;
  z-index: 99990;
  backdrop-filter: blur(22px) saturate(0.85);
  -webkit-backdrop-filter: blur(22px) saturate(0.85);
  background: rgba(6, 8, 13, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

[data-theme="light"] .tb-blog-shield {
  background: rgba(248, 250, 252, 0.72);
}

.tb-blog-shield.hidden {
  display: none !important;
}

.tb-blog-shield-inner {
  text-align: center;
  padding: 1.5rem 2rem;
  border-radius: 14px;
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  background: rgba(0, 0, 0, 0.35);
  max-width: 320px;
}

[data-theme="light"] .tb-blog-shield-inner {
  background: rgba(255, 255, 255, 0.9);
}

.tb-blog-shield-inner strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--teal, #5eead4);
}

.tb-blog-shield-inner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted, #94a3b8);
}

.tb-blog-watermark {
  position: fixed;
  inset: 0;
  z-index: 99980;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.9rem, 3vw, 1.4rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.04);
  transform: rotate(-24deg);
  user-select: none;
  white-space: nowrap;
}

[data-theme="light"] .tb-blog-watermark {
  color: rgba(15, 23, 42, 0.04);
}

@media (max-width: 640px) {
  .tb-blog-pager {
    grid-template-columns: 1fr;
  }
  .tb-blog-pager-next {
    text-align: left;
  }
}

/* Article footer links (internal + partner) */
.tb-article-links {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.1));
}

.tb-article-links h3 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--teal, #5eead4);
}

.tb-article-links ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.tb-article-links li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.tb-article-links a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.85em;
  opacity: 0.7;
}

.tb-partner-note {
  font-size: 0.8rem;
  color: var(--muted, #94a3b8);
  margin: 0.5rem 0 0;
}

/* Academy long-form article components */
.tb-toc {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid #1F497D;
  border-top: 3px solid #D60C76;
  background: rgba(31, 73, 125, 0.08);
}

.tb-toc h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.tb-toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.tb-toc li {
  margin-bottom: 0.35rem;
}

.tb-callout {
  margin: 1.25rem 0;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid #1F497D;
  background: rgba(31, 73, 125, 0.1);
}

.tb-callout-tip {
  border-left-color: #D60C76;
}

.tb-callout-warn {
  border-left-color: #b45309;
  background: rgba(180, 83, 9, 0.08);
}

.tb-callout strong {
  display: block;
  margin-bottom: 0.35rem;
}

.tb-callout p {
  margin: 0;
}

.tb-faq-item {
  margin: 1rem 0 1.35rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.tb-faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.tb-diagram {
  margin: 1.25rem 0;
}

.tb-diagram figcaption {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted, #94a3b8);
}

.tb-compare {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.tb-compare th,
.tb-compare td {
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.tb-compare th {
  background: rgba(31, 73, 125, 0.2);
}

.tb-related-cluster {
  margin: 2rem 0;
}

.tb-related-cluster ul {
  padding-left: 1.25rem;
}
