/*
  MyBloggersBlog Article Template Styles
  Original CSS layer for modern static blog article pages.
  Load after /css/bootstrap.css and /css/style.css.
*/

html {
  scroll-behavior: smooth;
}

body.mbb-article-page {
  background: #f6f1e6 url('/images/main-bg.jpg');
  color: #2f2520;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.mbb-article-page a {
  color: #b43822;
  text-decoration: none;
}

body.mbb-article-page a:hover,
body.mbb-article-page a:focus {
  color: #e24b2f;
  text-decoration: underline;
}

.mbb-skip-link {
  position: absolute;
  top: -44px;
  left: 12px;
  z-index: 10000;
  padding: 10px 14px;
  color: #fff !important;
  background: #2f2520;
  border-radius: 0 0 4px 4px;
}

.mbb-skip-link:focus {
  top: 0;
}

.mbb-page-wrap {
  padding: 24px 0 42px;
}

.mbb-blog-layout {
  background: #fff;
  box-shadow: 0 8px 26px rgba(84, 51, 42, 0.12);
}

.mbb-article-main,
.mbb-article-sidebar {
  padding: 20px;
}

.mbb-article-card {
  background: #fff url('/images/cntnt-bg.jpg') repeat 0 0;
  border: 1px solid #efe5cf;
}

.mbb-article-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0.85em 1em;
  background: #f9f4e2;
  border-bottom: 1px solid #eadfca;
}

.mbb-article-kicker {
  margin: 0;
  color: #e9330c;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mbb-article-meta-top {
  margin: 0;
  color: #8e756c;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: right;
}

.mbb-article-inner {
  padding: 22px 22px 28px;
}

.mbb-article-title {
  margin: 0 0 10px;
  color: #6f5148;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 400;
  line-height: 1.16;
}

.mbb-article-subtitle {
  margin: 0 0 18px;
  color: #73564e;
  font-size: 1.16rem;
  line-height: 1.55;
}

.mbb-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 22px;
  color: #80655d;
  font-size: 0.95rem;
}

.mbb-article-hero,
.mbb-inline-image {
  margin: 24px 0;
}

.mbb-article-hero img,
.mbb-inline-image img,
.mbb-article-body img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}

.mbb-inline-image figcaption {
  margin-top: 8px;
  color: #80655d;
  font-size: 0.92rem;
  line-height: 1.45;
}

.mbb-article-summary {
  margin: 20px 0 0;
  padding: 16px 18px;
  color: #45342f;
  background: #f9f4e2;
  border-left: 4px solid #e4573f;
  font-size: 1.08rem;
  line-height: 1.65;
}

.mbb-toc {
  margin: 28px 0 32px;
  padding: 18px 20px;
  background: #fbf7ea;
  border: 1px solid #eadfca;
}

.mbb-toc h2,
.mbb-series-nav h2,
.mbb-related-articles h2,
.mbb-sidebar-section h2 {
  margin: 0 0 12px;
  color: #6f5148;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.mbb-toc ol,
.mbb-toc ul {
  margin: 0;
  padding-left: 1.25rem;
}

.mbb-toc li {
  margin: 0.35rem 0;
}

.mbb-article-body p {
  margin: 0 0 1.15rem;
  color: #2f2520;
  font-size: 1rem;
  line-height: 1.75;
}

.mbb-article-section {
  margin: 2.35rem 0;
}

.mbb-article-section:first-child {
  margin-top: 0;
}

.mbb-article-section h2 {
  margin: 0 0 1rem;
  color: #6f5148;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.25;
}

.mbb-article-section h3,
.mbb-callout h3 {
  margin: 1.35rem 0 0.75rem;
  color: #8a3e2e;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.28rem;
  font-weight: 400;
}

.mbb-article-body ul,
.mbb-article-body ol {
  margin: 0 0 1.3rem 1.35rem;
  padding: 0;
}

.mbb-article-body li {
  margin: 0.4rem 0;
  line-height: 1.65;
}

.mbb-callout,
.mbb-checklist {
  margin: 1.8rem 0;
  padding: 1.2rem 1.35rem;
  background: #f9f4e2;
  border-left: 4px solid #e4573f;
}

.mbb-callout h3 {
  margin-top: 0;
}

.mbb-callout p:last-child,
.mbb-checklist p:last-child {
  margin-bottom: 0;
}

.mbb-author-signature {
  margin: 2rem 0;
  color: #6f5148;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.1rem;
}

.mbb-series-nav,
.mbb-related-articles {
  margin: 2rem 0 0;
  padding: 1.25rem;
  background: #f6f1e0;
  border: 1px solid #eadfca;
}

.mbb-series-actions,
.mbb-related-list {
  display: grid;
  gap: 10px;
}

.mbb-series-link,
.mbb-related-list a {
  display: block;
  padding: 10px 12px;
  color: #8a3e2e;
  background: #fff;
  border: 1px solid #eadfca;
}

.mbb-article-sidebar {
  background: #fff;
}

.mbb-sidebar-section {
  margin: 0 0 22px;
  padding: 1.45rem 18px;
  background: #fbf7ea url('/images/cntnt-bg.jpg') repeat 0 0;
  border: 1px solid #eadfca;
}

.mbb-search-section {
  color: #fff;
  background: #eb5a41;
  border: 0;
}

.mbb-search-section h2 {
  color: #fff;
}

.mbb-sidebar-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mbb-sidebar-link-list li {
  border-top: 1px solid #d8cbb3;
}

.mbb-sidebar-link-list li:first-child {
  border-top: 0;
}

.mbb-sidebar-link-list a {
  display: block;
  padding: 8px 0;
  color: #7a5b52;
  font-size: 0.95rem;
  line-height: 1.35;
}

.mbb-sidebar-link-list a:hover,
.mbb-sidebar-link-list a:focus,
.mbb-sidebar-link-list .is-current a {
  color: #e4573f;
}

.mbb-sidebar-ad {
  background: #f6f1e0;
}

.mbb-ad-box {
  min-height: 260px;
  padding: 12px;
  background: #fff;
  border: 1px dashed #d8cbb3;
}

.mbb-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #db5941;
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mbb-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 991px) {
  .mbb-article-sidebar {
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  .mbb-page-wrap {
    padding-top: 14px;
  }

  .mbb-article-main,
  .mbb-article-sidebar {
    padding: 14px;
  }

  .mbb-article-inner {
    padding: 18px 16px 22px;
  }

  .mbb-article-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .mbb-article-meta-top {
    text-align: left;
  }

  .mbb-article-title {
    font-size: 2rem;
  }

  .mbb-article-subtitle {
    font-size: 1.05rem;
  }

  .mbb-article-meta {
    display: block;
  }

  .mbb-article-meta span {
    display: block;
    margin: 4px 0;
  }
}
