/* ============================================================
   br-binance.com  —  Blog Style
   Container: 960px
   Background: #fff   Text: #1a1a1a   Link: #4f46e5
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: #1a1a1a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: #4f46e5; text-decoration: none; transition: color .15s; }
a:hover { color: #3730a3; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* --- Container --- */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   Header — minimal blog style
   ============================================================ */
.blog-header {
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.blog-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.blog-header__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.blog-header__logo {
  width: 28px;
  height: 28px;
  background: #4f46e5;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.blog-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.blog-header__nav a {
  color: #6b7280;
  font-size: 15px;
  white-space: nowrap;
  transition: color .15s;
}
.blog-header__nav a:hover { color: #1a1a1a; }
.blog-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.blog-header__lang {
  display: flex;
  align-items: center;
  gap: 2px;
}
.blog-header__lang-sep {
  color: #d1d5db;
  font-size: 10px;
  margin: 0 1px;
}
.blog-header__lang-item {
  padding: 2px 6px;
  font-size: 13px;
  color: #9ca3af;
  text-decoration: none;
  transition: color .15s;
}
.blog-header__lang-item:hover { color: #1a1a1a; }
.blog-header__lang-item--active {
  color: #1a1a1a;
  font-weight: 600;
}

@media (max-width: 768px) {
  .blog-header__inner { height: 48px; }
  .blog-header__nav { gap: 16px; }
  .blog-header__nav a { font-size: 14px; }
  .blog-header__right .btn { display: none; }
  .blog-header__lang-sep { display: none; }
  .blog-header__lang { gap: 0; }
  .blog-header__lang-item { padding: 2px 4px; font-size: 12px; }
}

/* ============================================================
   Footer — clean, centered
   ============================================================ */
.blog-footer {
  border-top: 1px solid #e5e7eb;
  padding: 40px 0;
  margin-top: 60px;
}
.blog-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.blog-footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.blog-footer__nav a {
  color: #6b7280;
  font-size: 14px;
}
.blog-footer__nav a:hover { color: #1a1a1a; }
.blog-footer__langs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.blog-footer__lang {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  transition: all .15s;
}
.blog-footer__lang:hover { border-color: #4f46e5; color: #4f46e5; }
.blog-footer__lang--active {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}
.blog-footer__risk {
  max-width: 600px;
  margin: 0 auto 16px;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.6;
}
.blog-footer__risk strong { color: #6b7280; }
.blog-footer__copy {
  font-size: 13px;
  color: #9ca3af;
}

/* ============================================================
   Homepage — blog intro + posts
   ============================================================ */
.blog-intro {
  text-align: center;
  padding: 60px 0 40px;
}
.blog-intro__title {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.blog-intro__desc {
  font-size: 16px;
  color: #6b7280;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Category pills */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 0 40px;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 14px;
  color: #4b5563;
  text-decoration: none;
  transition: all .15s;
}
.cat-pill:hover { border-color: #4f46e5; color: #4f46e5; }
.cat-pill__icon { font-size: 15px; }
.cat-pill__count { font-size: 12px; color: #9ca3af; margin-left: 2px; }

/* Featured article */
.featured-article {
  display: block;
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 40px;
  text-decoration: none;
  transition: border-color .15s;
}
.featured-article:hover { border-color: #4f46e5; }
.featured-article__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #4f46e5;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.featured-article__title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.4;
}
.featured-article__desc {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 12px;
}
.featured-article__meta {
  font-size: 13px;
  color: #9ca3af;
}

/* Post list */
.post-list { list-style: none; }
.post-item {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  transition: background .1s;
}
.post-item:first-child { border-top: 1px solid #f3f4f6; }
.post-item:hover { background: #fafafa; }
.post-item__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.post-item__date {
  font-size: 13px;
  color: #9ca3af;
  min-width: 90px;
}
.post-item__tag {
  font-size: 12px;
  color: #4f46e5;
  background: #eef2ff;
  padding: 2px 8px;
  border-radius: 10px;
}
.post-item__title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.5;
  margin-bottom: 4px;
}
.post-item__desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.view-all {
  display: block;
  text-align: center;
  padding: 24px 0;
  font-size: 15px;
  color: #4f46e5;
  font-weight: 500;
}
.view-all:hover { color: #3730a3; }

/* ============================================================
   Article page — single column
   ============================================================ */
.article-page {
  padding: 32px 0 0;
}
.article-main { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* Article header */
.article-header { margin-bottom: 32px; }
.article-header__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.article-header__title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.article-header__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #9ca3af;
}
.meta-dot { color: #d1d5db; }

/* Tag label */
.tag-label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 13px;
  color: #4f46e5;
  background: #eef2ff;
  text-decoration: none;
  transition: background .15s;
}
.tag-label:hover { background: #e0e7ff; }
.tag-label--sm { font-size: 12px; padding: 2px 8px; }

/* Inline TOC (collapsible) */
.inline-toc {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 28px;
  overflow: hidden;
}
.inline-toc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: #f9fafb;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}
.inline-toc__toggle svg {
  width: 16px;
  height: 16px;
  transition: transform .2s;
  color: #9ca3af;
}
.inline-toc--open .inline-toc__toggle svg { transform: rotate(180deg); }
.inline-toc__body {
  display: none;
  padding: 8px 16px 16px;
}
.inline-toc--open .inline-toc__body { display: block; }
.inline-toc__list {
  list-style: none;
}
.inline-toc__item {
  padding: 4px 0;
}
.inline-toc__item a {
  font-size: 14px;
  color: #4b5563;
}
.inline-toc__item a:hover { color: #4f46e5; }
.inline-toc__item--sub { padding-left: 16px; }

/* Article content */
.article-content {
  font-size: 17px;
  line-height: 1.85;
  color: #1a1a1a;
}
.article-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: #111;
  padding-top: 8px;
}
.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: #1a1a1a;
}
.article-content p {
  margin-bottom: 18px;
}
.article-content ul, .article-content ol {
  margin: 0 0 18px 24px;
  list-style: disc;
}
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 3px solid #4f46e5;
  background: #f9fafb;
  color: #374151;
  border-radius: 0 8px 8px 0;
}
.article-content code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.article-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 20px;
}
.article-content pre code {
  background: none;
  padding: 0;
}
.article-content a { text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: #3730a3; }
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}
.article-content th, .article-content td {
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  text-align: left;
}
.article-content th {
  background: #f9fafb;
  font-weight: 600;
}
.heading-anchor {
  color: #d1d5db;
  text-decoration: none;
  margin-left: 6px;
  opacity: 0;
  transition: opacity .15s;
}
.article-content h2:hover .heading-anchor,
.article-content h3:hover .heading-anchor { opacity: 1; }

/* Share row — inline at bottom of article */
.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid #f3f4f6;
  margin-top: 32px;
}
.share-row__label {
  font-size: 14px;
  color: #9ca3af;
}
.share-row__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #6b7280;
  background: none;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}
.share-row__btn:hover { border-color: #4f46e5; color: #4f46e5; }
.share-row__btn svg { width: 16px; height: 16px; }

/* Related posts — simple list */
.related-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 48px;
}
.related-section__title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.related-list { list-style: none; }
.related-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
}
.related-item:first-child { border-top: 1px solid #f3f4f6; }
.related-item:hover .related-item__title { color: #4f46e5; }
.related-item__title {
  font-size: 15px;
  color: #1a1a1a;
  transition: color .15s;
  flex: 1;
  margin-right: 16px;
}
.related-item__date {
  font-size: 13px;
  color: #9ca3af;
  white-space: nowrap;
}

/* Subtle CTA */
.subtle-cta {
  text-align: center;
  padding: 32px 0;
  font-size: 15px;
  color: #6b7280;
}
.subtle-cta p { margin-bottom: 12px; }
.subtle-cta a { font-weight: 500; }
.subtle-cta__btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============================================================
   Archive / Posts page
   ============================================================ */
.archive-page {
  padding: 40px 0;
}
.archive-page__header {
  margin-bottom: 32px;
}
.archive-page__title {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.archive-page__desc {
  font-size: 15px;
  color: #9ca3af;
}

/* ============================================================
   Tags / Topics page
   ============================================================ */
.tags-list { list-style: none; }
.tags-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  transition: background .1s;
}
.tags-item:first-child { border-top: 1px solid #f3f4f6; }
.tags-item:hover { background: #fafafa; }
.tags-item__left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tags-item__icon { font-size: 20px; }
.tags-item__name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}
.tags-item__count {
  font-size: 14px;
  color: #9ca3af;
}

/* Topic page header */
.topic-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
}
.topic-header__title {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
}
.topic-header__count {
  font-size: 15px;
  color: #9ca3af;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 20px;
}
.breadcrumb a { color: #6b7280; }
.breadcrumb a:hover { color: #4f46e5; }
.breadcrumb__sep { color: #d1d5db; }

/* ============================================================
   404 page
   ============================================================ */
.error-page {
  text-align: center;
  padding: 80px 24px;
}
.error-page__code {
  font-size: 72px;
  font-weight: 800;
  color: #e5e7eb;
  line-height: 1;
  margin-bottom: 16px;
}
.error-page__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.error-page__desc {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 24px;
}
.error-page__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 15px;
}

/* ============================================================
   About page (kept, simplified)
   ============================================================ */
.about-hero {
  padding: 60px 0 40px;
  text-align: center;
}
.about-hero__title {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.about-hero__desc {
  font-size: 16px;
  color: #6b7280;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.about-section {
  padding: 40px 0;
}
.about-section--alt { background: #f9fafb; }
.about-section__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.about-topics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.about-topic {
  padding: 20px;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
}
.about-topic__icon { font-size: 24px; display: block; margin-bottom: 8px; }
.about-topic__name { font-weight: 600; margin-bottom: 4px; color: #1a1a1a; }
.about-topic__desc { font-size: 14px; color: #6b7280; }

.about-qa__item {
  padding: 20px 0;
  border-bottom: 1px solid #f3f4f6;
}
.about-qa__question {
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
}
.about-qa__answer { font-size: 15px; color: #4b5563; line-height: 1.7; }

.about-cta {
  text-align: center;
  padding: 40px 0;
}
.about-cta__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.about-cta__desc {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 20px;
}
.about-cta__btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   Download page (kept, simplified)
   ============================================================ */
.dl-hero {
  padding: 60px 0 40px;
  text-align: center;
}
.dl-hero__title {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.dl-hero__desc {
  font-size: 16px;
  color: #6b7280;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.dl-section {
  padding: 32px 0;
}
.dl-section__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a1a;
}
.dl-section__card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
}
.dl-section__card-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.dl-steps { list-style: none; counter-reset: dl-step; }
.dl-step {
  counter-increment: dl-step;
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
  font-size: 15px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}
.dl-step::before {
  content: counter(dl-step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 22px;
  height: 22px;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-step strong { color: #1a1a1a; }

.dl-platform__tip {
  margin: 16px 0 12px;
  padding: 12px 16px;
  background: #eef2ff;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}
.dl-platform__tip strong { color: #4f46e5; }

.dl-cta {
  text-align: center;
  padding: 40px 0;
}

/* Generic page layout */
.page-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px;
}
.page-content h1 { font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.page-content h2 { font-size: 18px; font-weight: 700; margin: 28px 0 12px; }
.page-content p { margin-bottom: 16px; font-size: 15px; color: #374151; line-height: 1.8; }

/* Buttons — minimal */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s;
  cursor: pointer;
  border: none;
}
.btn--primary { background: #4f46e5; color: #fff; }
.btn--primary:hover { background: #4338ca; color: #fff; }
.btn--outline { border: 1px solid #e5e7eb; color: #374151; background: #fff; }
.btn--outline:hover { border-color: #4f46e5; color: #4f46e5; }
.btn--outline-white { border: 1px solid rgba(255,255,255,.3); color: #fff; background: transparent; }
.btn--outline-white:hover { border-color: #fff; }
.btn--sm { padding: 6px 14px; font-size: 13px; }
.btn--ghost { color: #4f46e5; background: none; padding: 10px 0; }
.btn--ghost:hover { color: #3730a3; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 0;
  color: #9ca3af;
  font-size: 15px;
}

/* Reading bar */
.reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: #4f46e5;
  width: 0;
  z-index: 200;
  transition: width .1s linear;
}

/* Disclaimer page styling */
.page-content ul { margin: 0 0 16px 24px; list-style: disc; }
.page-content li { margin-bottom: 6px; font-size: 15px; color: #374151; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .blog-intro { padding: 40px 0 24px; }
  .blog-intro__title { font-size: 24px; }
  .cat-pills { padding: 0 0 28px; }
  .featured-article { padding: 20px; }
  .featured-article__title { font-size: 19px; }
  .article-header__title { font-size: 24px; }
  .article-content { font-size: 16px; }
  .article-content h2 { font-size: 20px; }
  .post-item__top { flex-wrap: wrap; }
  .post-item__date { min-width: auto; }
  .archive-page__title { font-size: 22px; }
  .topic-header { flex-direction: column; gap: 4px; }
  .about-topics__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
