/* Category archives, contextual TOC and footer — Baseframe 0.26.0 */
body.category .site-content { max-width: 1180px; margin: 0 auto; padding: 16px; font-size:15px; }
body.category .content-area { width: 100%; float: none; }
body.category .widget-area { display: none; }
.bf-category-page { background:#fff; padding:0 0 32px; }
.bf-category-intro { margin-bottom:28px; }
.bf-category-intro__image img {display:block;width:100%;max-height:310px;object-fit:cover;border-radius: 10px 10px 0px 0px;}
.bf-category-intro__body { padding:18px 0 0; max-width:760px; }
.bf-category-eyebrow { font-size:12px; text-transform:uppercase; letter-spacing:.09em; color:#536471; margin:0 0 8px; }
.bf-category-intro h1 { font-size:clamp(30px,4vw,44px); line-height:1.16; margin:0 0 12px; font-weight:700; }
.bf-category-description { color:#536471; font-size:16px; line-height:1.55; }
.bf-category-description p { margin-bottom:12px; }
.bf-category-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 18px; }
.bf-category-card { min-width:0; }
.bf-category-card__link { color:#0f1419; text-decoration:none; }
.bf-category-card__link:hover h2 { color:#1d9bf0; }
.bf-category-card__media {aspect-ratio: 16/10;overflow:hidden;border-radius: 10px 10px 0px 0px;background:#f7f9f9;margin-bottom:10px;}
.bf-category-card__media img { width:100%; height:100%; object-fit:cover; display:block; }
.bf-category-card__placeholder { display:block; width:100%; height:100%; }
.bf-category-card h2 { font-size:19px; font-weight:650; line-height:1.3; margin:0 0 7px; }
.bf-category-card__excerpt { color:#536471; font-size:14px; line-height:1.45; margin:0; }
.bf-category-pagination { margin:30px 0 0; }
.bf-category-pagination .nav-links { display:flex; flex-wrap:wrap; gap:9px; }
.bf-category-pagination a, .bf-category-pagination .current { padding:8px 12px; border-radius:8px; background:#f4f6f6; text-decoration:none; }
.bf-footer-links { display:flex; justify-content:center; flex-wrap:wrap; gap:10px 20px; padding:24px 16px; border-top:1px solid #eff3f4; background:#fff; }
.bf-footer-links a { font-size:13px; color:#536471; text-decoration:none; }
.bf-footer-links a:hover { color:#0f1419; text-decoration:underline; }
.bf-article-toc { padding:16px; background:#fff; border:1px solid #eff3f4; border-radius:10px; font-size:13px; }
.bf-article-toc strong { display:block; font-size:14px; margin-bottom:12px; }
.bf-article-toc ol { margin:0; padding-left:18px; max-height:55vh; overflow-y:auto; }
.bf-article-toc li { margin:0 0 10px; line-height:1.35; }
.bf-article-toc a { color:#536471; text-decoration:none; }
.bf-article-toc a:hover { color:#0f1419; text-decoration:underline; }
.single-post .inside-right-sidebar > .bf-article-toc, .single-post .inside-left-sidebar > .bf-article-toc { position:sticky; top:18px; margin-bottom:18px; }
.bf-article-toc-mobile { margin:0 0 20px; border-bottom:1px solid #eff3f4; }
.bf-article-toc-mobile summary { padding:12px 0; cursor:pointer; font-size:14px; color:#536471; }
.bf-article-toc-mobile .bf-article-toc { border:0; padding:5px 0 12px; }
.single-post .entry-content h2[id^="bf-section-"] { scroll-margin-top:25px; }
.bf-related { margin-top:32px; padding-top:22px; border-top:1px solid #eff3f4; }
.bf-related h2 { font-size:20px; margin-bottom:17px; }
.bf-related__grid {display:grid;grid-template-columns: repeat(1,minmax(0,1fr));gap:16px;}
.bf-related__grid h3{ font-size:18px;}
.bf-related__item { display:flex; gap:11px; color:#33434a; text-decoration:none; font-size:14px; line-height:1.35; }
.bf-related__item img {/* width: 150px; *//* height: 150px; *//* flex:none; */border-radius:8px;object-fit:cover;}
@media(max-width:767px) {
 body.category .site-content {padding: 6px;}
 .bf-category-grid { gap:22px 12px; }
 .bf-category-card h2 { font-size:15px; }
 .bf-category-card__excerpt { font-size:12px; }
 .bf-category-intro h1 { font-size:30px; }
 .bf-related__grid { grid-template-columns:1fr; }
 .inside-header { padding:9px 12px; }
 .main-title { font-size:20px; }
}
@media(min-width:768px) { .bf-category-page { padding:16px 22px 40px; } }
@media(min-width:1025px) { .bf-category-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }

/* Desktop contents menu: sticky relative to the sidebar's full column. */
@media(min-width:1025px) {
  .single-post .inside-right-sidebar, .single-post .inside-left-sidebar { position:sticky; top:22px; align-self:flex-start; }
  .single-post .inside-right-sidebar > .bf-article-toc, .single-post .inside-left-sidebar > .bf-article-toc { position:static; }
}

/* PHP sidebar navigation, Rank Math above TOC, widgets remain below. */
.single-post .bf-sidebar-navigation { margin-bottom:18px; }
.single-post .bf-sidebar-breadcrumbs { padding:12px 16px; margin-bottom:10px; background:#fff; border:1px solid #eff3f4; border-radius:10px; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.single-post .bf-sidebar-breadcrumbs p { margin:0; }
.single-post .bf-sidebar-breadcrumbs a { color:#536471; text-decoration:none; }
.single-post .bf-sidebar-breadcrumbs a:hover { text-decoration:underline; }
.single-post .bf-sidebar-navigation .bf-article-toc { margin:0; }
.single-post .bf-article-toc-mobile {/* display:none; */}
@media(max-width:1024px) {
 .single-post .bf-sidebar-navigation { display:none; }
 .single-post .bf-article-toc-mobile { display:block; }
}

/* Baseframe 2026-10-29 — opaque cards over overlapping hero (single posts).
   Keep site-content transparent for the overlap; paint each column instead. */
@media (min-width: 1025px) {
  .single-post.baseframe-has-hero .site-content { gap: 18px; }
  .single-post .inside-article {
    background-color: #fff !important;
    border-radius: 15px;
    padding: 0;
    border: 1px solid rgba(35,49,39,.06);
  }
  .single-post #right-sidebar,
  .single-post #left-sidebar {
    background-color: #fff !important;
    border-radius: 15px;
    border: 1px solid rgba(35,49,39,.06);
    padding: 18px;
    box-sizing: border-box;
    align-self: flex-start;
  }
  .single-post .inside-right-sidebar,
  .single-post .inside-left-sidebar {
    background-color: #fff !important;
    margin: 0 !important;
  }
  .single-post .sidebar .widget {
    background-color: #fff !important;
    padding: 10px 0;
    margin-bottom: 16px;
  }
}
/* Do not leave mobile content transparent over the hero. */
.single-post .inside-article { background-color: #fff !important; }
/* Rank Math breadcrumbs in the sidebar. */
.single-post .bf-sidebar-breadcrumbs {
  background-color: #fff !important;
  border-color: #edf0ed;
  color: #68766d;
  padding: 12px 6px 15px;
  border-left: 0; border-right: 0; border-top: 0;
  border-radius: 0;
}
.single-post .bf-sidebar-breadcrumbs .rank-math-breadcrumb { font-size: 12px; line-height: 1.55; }
.single-post .bf-sidebar-breadcrumbs .rank-math-breadcrumb p { margin: 0; }
.single-post .bf-sidebar-breadcrumbs .rank-math-breadcrumb a { color: #617369; text-decoration: none; }
.single-post .bf-sidebar-breadcrumbs .rank-math-breadcrumb a:hover { color: #294232; text-decoration: underline; }
/* Tiny editorial highlight, desktop pointer only. */
@media (hover: hover) and (pointer: fine) {
  .single-post .bf-section { transition: background-color .18s ease; }
  .single-post .bf-section--plain:hover { background-color: #f8f9f8; }
  .single-post .bf-section--soft:hover { background-color: #f2f4f2; }
}
