   BAGFUL BLOG STYLES — append to assets/css/bagful.css
   v4 "suits" aesthetic — dark charcoal / steel blue / Outfit font
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Blog Hero ─────────────────────────────────────────────────────────── */

.blog-hero {
  background: var(--color-bg, #161a22);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 64px 0 48px;
}

.blog-hero__inner {
  max-width: 720px;
}

.blog-hero__label {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent, #4a8db5);
  margin-bottom: 16px;
}

.blog-hero__label a {
  color: inherit;
  text-decoration: none;
}

.blog-hero__label a:hover {
  text-decoration: underline;
}

.blog-hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.blog-hero__sub {
  font-size: 17px;
  color: rgba(255,255,255,.55);
  margin: 0 0 20px;
  line-height: 1.6;
  max-width: 580px;
}

.blog-hero__meta {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-hero__meta .sep {
  opacity: .4;
}

.rss-link {
  color: var(--color-accent, #4a8db5);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .05em;
}

.rss-link:hover {
  text-decoration: underline;
}

/* ─── Blog Layout ────────────────────────────────────────────────────────── */

.blog-listing {
  min-height: 70vh;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 48px 0 80px;
  align-items: start;
}

@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ─── Category Filter (mobile) ───────────────────────────────────────────── */

.cat-filter--mobile {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .cat-filter--mobile {
    display: flex;
  }
}

.cat-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}

.cat-pill:hover,
.cat-pill--active {
  background: var(--color-accent, #4a8db5);
  border-color: var(--color-accent, #4a8db5);
  color: #fff;
}

.cat-count {
  opacity: .65;
  font-size: 11px;
}

/* ─── Featured Post ──────────────────────────────────────────────────────── */

.post-featured {
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding-bottom: 40px;
}

.post-featured__inner {
  display: block;
  text-decoration: none;
  padding: 32px;
  background: rgba(74,141,181,.05);
  border: 1px solid rgba(74,141,181,.15);
  border-radius: 4px;
  transition: border-color .2s, background .2s;
}

.post-featured__inner:hover {
  background: rgba(74,141,181,.09);
  border-color: rgba(74,141,181,.35);
}

.post-featured__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
  margin: 10px 0 14px;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.post-featured__excerpt {
  font-size: 15px;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 680px;
}

.post-featured__cta {
  font-size: 13px;
  color: var(--color-accent, #4a8db5);
  letter-spacing: .04em;
  font-weight: 600;
}

/* ─── Post Grid ──────────────────────────────────────────────────────────── */

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.post-grid--related {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 700px) {
  .post-grid,
  .post-grid--related {
    grid-template-columns: 1fr;
  }
}

/* ─── Post Card ──────────────────────────────────────────────────────────── */

.post-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px;
  transition: border-color .2s, background .2s, transform .15s;
}

.post-card:hover {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.16);
  transform: translateY(-1px);
}

.post-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 22px;
  text-decoration: none;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.post-cat {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent, #4a8db5);
  font-weight: 600;
}

.post-read {
  font-size: 11px;
  color: rgba(255,255,255,.3);
}

.post-date {
  font-size: 12px;
  color: rgba(255,255,255,.3);
}

.post-card__title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  line-height: 1.35;
  margin: 0 0 10px;
  flex-grow: 0;
}

.post-card__excerpt {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.post-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.post-card__arrow {
  font-size: 14px;
  color: var(--color-accent, #4a8db5);
  opacity: 0;
  transition: opacity .2s, transform .2s;
}

.post-card:hover .post-card__arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ─── Pagination ─────────────────────────────────────────────────────────── */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.pag-btn {
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 3px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: all .15s;
}

.pag-btn:hover {
  border-color: rgba(255,255,255,.25);
  color: #fff;
}

.pag-pages {
  display: flex;
  gap: 4px;
}

.pag-num {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 13px;
  text-decoration: none;
  color: rgba(255,255,255,.5);
  border: 1px solid transparent;
  transition: all .15s;
}

.pag-num:hover {
  border-color: rgba(255,255,255,.15);
  color: #fff;
}

.pag-num--active {
  background: var(--color-accent, #4a8db5);
  color: #fff;
  border-color: var(--color-accent, #4a8db5);
  cursor: default;
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */

.blog-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 900px) {
  .blog-sidebar {
    position: static;
  }
}

.sidebar-block {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px;
  padding: 20px;
}

.sidebar-block__title {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin: 0 0 14px;
  font-weight: 600;
}

.sidebar-cats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-cat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: 3px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: all .15s;
}

.sidebar-cat:hover,
.sidebar-cat--active {
  background: rgba(74,141,181,.1);
  color: #fff;
}

.sidebar-cat--active {
  color: var(--color-accent, #4a8db5);
}

.sidebar-cat__count {
  font-size: 11px;
  color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  padding: 1px 7px;
  border-radius: 10px;
}

.sidebar-cta {
  background: rgba(74,141,181,.07);
  border-color: rgba(74,141,181,.2);
}

.sidebar-cta__label {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent, #4a8db5);
  margin-bottom: 8px;
}

.sidebar-cta__title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.sidebar-cta__text {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin: 0 0 16px;
  line-height: 1.6;
}

.sidebar-recent {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-recent__item {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.05);
  gap: 3px;
  transition: padding-left .15s;
}

.sidebar-recent__item:last-child {
  border-bottom: none;
}

.sidebar-recent__item:hover {
  padding-left: 4px;
}

.sidebar-recent__cat {
  font-size: 10px;
  color: var(--color-accent, #4a8db5);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sidebar-recent__title {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
}

.sidebar-recent__date {
  font-size: 11px;
  color: rgba(255,255,255,.28);
}

/* ─── Single Post Header ──────────────────────────────────────────────────── */

.breadcrumb-bar {
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 12px 0;
}

.breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.breadcrumb a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: rgba(255,255,255,.75);
}

.bc-sep {
  color: rgba(255,255,255,.2);
  font-size: 14px;
}

.post-header {
  padding: 48px 0 36px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.post-header__inner {
  max-width: 800px;
}

.post-header__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.post-header__title {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.025em;
  margin: 0 0 18px;
}

.post-header__excerpt {
  font-size: 18px;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 680px;
}

.post-header__byline {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.byline-author {
  color: rgba(255,255,255,.5);
  font-weight: 500;
}

/* ─── Post Layout (single post) ─────────────────────────────────────────── */

.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  padding: 48px 0 80px;
  align-items: start;
}

@media (max-width: 960px) {
  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    display: none;
  }
}

/* ─── Post Content (typography) ─────────────────────────────────────────── */

.post-body {
  color: rgba(255,255,255,.8);
  font-size: 16px;
  line-height: 1.8;
  max-width: 720px;
}

.post-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 44px 0 16px;
  letter-spacing: -.02em;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.post-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin: 30px 0 12px;
}

.post-body h4 {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  margin: 24px 0 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.post-body p {
  margin: 0 0 20px;
}

.post-body p.lead {
  font-size: 18px;
  color: rgba(255,255,255,.65);
  border-left: 3px solid var(--color-accent, #4a8db5);
  padding-left: 20px;
  margin-bottom: 28px;
}

.post-body ul,
.post-body ol {
  margin: 0 0 20px 20px;
  padding: 0;
}

.post-body li {
  margin-bottom: 8px;
}

.post-body strong {
  color: #fff;
  font-weight: 600;
}

.post-body a {
  color: var(--color-accent, #4a8db5);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body a:hover {
  color: #6baed4;
}

.post-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: rgba(255,255,255,.07);
  padding: 2px 6px;
  border-radius: 3px;
  color: #b8d4e8;
}

.post-body pre {
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}

.post-body pre code {
  background: none;
  padding: 0;
  font-size: 13px;
}

.post-body blockquote {
  border-left: 3px solid var(--color-accent, #4a8db5);
  margin: 24px 0;
  padding: 16px 24px;
  background: rgba(74,141,181,.05);
  font-style: italic;
  color: rgba(255,255,255,.6);
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.post-body th {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.post-body td {
  border: 1px solid rgba(255,255,255,.07);
  padding: 10px 14px;
  color: rgba(255,255,255,.65);
  vertical-align: top;
}

.post-body tr:hover td {
  background: rgba(255,255,255,.02);
}

/* ─── Table of Contents ──────────────────────────────────────────────────── */

.toc {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px;
  padding: 18px 20px;
  margin-bottom: 36px;
  max-width: 480px;
}

.toc__header {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 12px;
  font-weight: 600;
}

.toc__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.toc-link {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: color .15s, border-color .15s;
  line-height: 1.4;
}

.toc-link--h3 {
  font-size: 12px;
  padding-left: 22px;
  color: rgba(255,255,255,.35);
}

.toc-link:hover,
.toc-link--active {
  color: rgba(255,255,255,.85);
  border-left-color: var(--color-accent, #4a8db5);
}

/* Sticky TOC in sidebar */
.post-toc-sticky {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px;
  padding: 18px 20px;
}

/* ─── Reading Progress ───────────────────────────────────────────────────── */

.reading-progress {
  height: 2px;
  background: rgba(255,255,255,.06);
  border-radius: 1px;
  margin-bottom: 24px;
  overflow: hidden;
}

.reading-progress__bar {
  height: 100%;
  background: var(--color-accent, #4a8db5);
  width: 0%;
  transition: width .1s linear;
  border-radius: 1px;
}

/* ─── Post Sidebar ───────────────────────────────────────────────────────── */

.post-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-cta--post {
  margin-top: 12px;
}

/* ─── FAQ Section ────────────────────────────────────────────────────────── */

.post-faq {
  margin-top: 44px;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 36px;
}

.post-faq h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px;
  transition: border-color .2s;
}

.faq-item[open] {
  border-color: rgba(74,141,181,.2);
}

.faq-q {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: '+';
  color: var(--color-accent, #4a8db5);
  font-size: 18px;
  font-weight: 300;
  flex-shrink: 0;
}

.faq-item[open] .faq-q::after {
  content: '−';
}

.faq-a {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  padding: 0 20px 16px;
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 14px;
}

/* ─── Post Tags ──────────────────────────────────────────────────────────── */

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 2px;
  font-size: 11px;
  color: rgba(255,255,255,.4);
  letter-spacing: .05em;
  text-transform: lowercase;
}

/* ─── Inline CTA ─────────────────────────────────────────────────────────── */

.inline-cta {
  background: rgba(74,141,181,.07);
  border: 1px solid rgba(74,141,181,.2);
  border-radius: 4px;
  padding: 24px 28px;
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.inline-cta__text {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  flex: 1;
  min-width: 200px;
}

.inline-cta__text strong {
  display: block;
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}

/* ─── Related Posts ──────────────────────────────────────────────────────── */

.related-posts {
  background: rgba(255,255,255,.02);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 56px 0;
}

.related-posts__title {
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 28px;
  font-weight: 600;
}

/* ─── No posts ───────────────────────────────────────────────────────────── */

.no-posts {
  color: rgba(255,255,255,.35);
  font-size: 15px;
  padding: 40px 0;
}

/* ─── btn full width ─────────────────────────────────────────────────────── */

.btn--full {
  width: 100%;
  text-align: center;
  display: block;
}

/* ─── Layout fixes — scoped to blog pages only ───────────────────────────── */

.single-post .post-content {
  min-width: 0;
  overflow: hidden;
}

.single-post .post-body {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.toc:empty {
  display: none;
}

/* ─── Blog page padding fix ──────────────────────────────────────────────── */

.single-post .post-header,
.single-post .breadcrumb-bar,
.single-post main > .container,
.blog-listing .blog-hero,
.blog-listing main > .container {
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

.single-post .post-header__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.single-post .post-layout {
  padding-left: 0;
  padding-right: 0;
}

.blog-hero__inner {
  padding: 0 24px;
}

/* Prevent sidebar overflow */
.post-sidebar,
.blog-sidebar {
  min-width: 0;
  overflow: hidden;
}

.sidebar-cta--post {
  overflow-wrap: break-word;
}

/* Contain the grid properly */
.post-layout,
.blog-layout {
  box-sizing: border-box;
}

/* Post body fix */
.single-post .post-content {
  min-width: 0;
}

.post-body {
  overflow-wrap: break-word;
  word-break: break-word;
}

.toc:empty { display: none; }
