:root {
  --bg: #edecea;
  --bg-card: #e4e2df;
  --bg-dark: #0a0a0a;
  --white: #ffffff;
  --text: #0a0a0a;
  --text-mid: #444440;
  --text-muted: #777772;
  --border: rgba(0, 0, 0, 0.09);
  --radius-xl: 20px;
  --radius-pill: 999px;
  --sans: "Montserrat", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.blog-page { background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.blog-main { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 130px 0 80px; }
.blog-breadcrumb { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--text-muted); margin: 0 auto 25px; }
.blog-breadcrumb a { color: inherit; text-decoration: none; }
.blog-breadcrumb a:hover { color: var(--text); }
.article-breadcrumb { display: flex; gap: 12px; align-items: center; max-width: 1050px; font-size: 13px; color: var(--text-muted); margin: 0 auto 25px; }
.article-breadcrumb a { color: inherit; text-decoration: none; }
.article-breadcrumb a:hover { color: var(--text); }
.blog-hero { max-width: 850px; margin-bottom: 68px; }
.blog-hero h1, .blog-list-header h1, .article-header h1 { margin: 0; letter-spacing: -0.045em; line-height: 1.06; }
.blog-hero h1 { font-size: clamp(42px, 5vw, 72px); padding-bottom: 3rem;}
.blog-hero p { max-width: 800px; color: var(--text-mid); font-size: clamp(16px, 1.5vw, 21px); line-height: 1.65; }
.blog-discovery { margin: 0 0 70px; }
.blog-search { position: relative; display: flex; width: min(390px, 100%); margin: 0 0 22px auto; }
.blog-search input { width: 100%; border: 1px solid var(--border); background: var(--white); border-radius: var(--radius-pill); padding: 15px 48px 15px 20px; font: inherit; }
.blog-search input:focus {outline: 2px solid var(--text);}
.blog-search button { position: absolute; right: 8px; top: 7px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 22px; cursor: pointer; opacity: 0; pointer-events: none; }
.blog-search.has-value button { opacity: 1; pointer-events: auto; }
.blog-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.blog-pill { border: 1px solid var(--border); background: rgba(255,255,255,.45); color: var(--text); border-radius: var(--radius-pill); padding: 10px 15px; text-decoration: none; font-size: 13px; font-weight: 600; }
.blog-pill:hover { background: var(--white); }
.blog-pill span { color: var(--text-muted); }
.blog-result-count { min-height: 20px; color: var(--text-muted); font-size: 13px; }
.blog-category-section { margin-bottom: 72px; }
.blog-section-title { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.blog-section-title h2 { font-size: 28px; margin: 0 0 14px; }
.blog-section-title a, .blog-all-link a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 13px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.blog-card { min-height: 250px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: rgba(255,255,255,.8); display: flex; flex-direction: column; }
.blog-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.blog-badges span, .blog-badges a { display: inline-block; border-radius: var(--radius-pill); background: rgba(0,0,0,.055); color: var(--text-mid); padding: 6px 11px; font-size: 11px; font-weight: 700; text-decoration: none; }
.blog-badges a:hover {background: var(--bg-dark); color: var(--white);};
.blog-card h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.42; letter-spacing: -.025em; }
.blog-card h3 a { color: var(--text); text-decoration: none; }
.blog-card p { margin: 0 0 25px; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card footer { display: flex; align-items: center; gap: 12px; margin-top: auto; color: var(--text-muted); font-size: 12px; }
.blog-card footer span:last-child { margin-left: auto; font-size: 18px; }
.blog-all-link { text-align: right; margin: 20px 0 0; }
.blog-list-header { margin-bottom: 44px; }
.blog-list-header > p { color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; }
.blog-list-header h1 { font-size: clamp(40px, 4vw, 60px); }
.blog-pagination { display: flex; justify-content: center; gap: 8px; margin: 40px 0; }
.blog-pagination a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; color: var(--text); text-decoration: none; }
.blog-pagination a[aria-current] { background: var(--bg-dark); color: white; }
.blog-search-results { margin-bottom: 70px; }
.article-header { max-width: 1050px; margin: 0 auto 50px; }
.article-header h1 { font-size: clamp(42px, 6vw, 78px); }
.article-excerpt { max-width: 850px; color: var(--text-mid); font-size: clamp(18px, 2vw, 24px); line-height: 1.6; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--text-muted); font-size: 13px; margin: 28px 0; }
.article-cover { display: block; width: 100%; height: auto; max-height: 680px; object-fit: cover; border-radius: var(--radius-xl); background: var(--bg-card); }
.article-layout { width: min(1050px, 100%); margin: 0 auto 80px; display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 70px; align-items: start; }
.blog-toc { position: sticky; top: 100px; font-size: 13px; }
.blog-toc ol { margin: 15px 0 0; padding: 0; list-style: none; }
.blog-toc li { margin: 9px 0; }
.blog-toc li.depth-3, .blog-toc li.depth-4 { padding-left: 14px; }
.blog-toc a { color: var(--text-muted); text-decoration: none; }
.blog-toc a:hover { color: var(--text); }
.article-body { font-family: "DM Sans", Arial, sans-serif; font-size: 18px; line-height: 1.78; min-width: 0; }
.article-body h2, .article-body h3, .article-body h4 { font-family: var(--sans); line-height: 1.25; letter-spacing: -.025em; scroll-margin-top: 100px; }
.article-body h2 { margin-top: 2.4em; font-size: 32px; }
.article-body h3 { margin-top: 2em; font-size: 24px; }
.article-body ul, .article-body ol { margin: 1em 0; padding-inline-start: 1.4em; }
.article-body li + li { margin-top: 0.35em; }
.article-body img { max-width: 100%; height: auto; border-radius: 14px; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 10px; }
.article-body blockquote { margin: 28px 0; padding: 18px 24px; border-left: 3px solid var(--text); background: rgba(255,255,255,.5); }
.blog-callout { margin: 28px 0; padding: 20px 24px; border: 1px solid var(--border); border-left: 4px solid #3b6fd8; border-radius: 12px; background: rgba(255,255,255,.6); }
.blog-callout-warning, .blog-callout-important { border-left-color: #c15b34; }
.blog-callout strong { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; }
.blog-callout p { margin-bottom: 0; }
.blog-inline-cta { margin: 32px 0; padding: 28px; border-radius: 14px; background: var(--bg-dark); color: white; }
.blog-inline-cta p { margin-top: 0; }
.blog-inline-cta-link { display: inline-block; padding: 10px 16px; border-radius: var(--radius-pill); background: white; color: black; font-family: var(--sans); font-size: 13px; font-weight: 700; text-decoration: none; }
.blog-before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 32px 0; }
.blog-before-after img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-body pre { overflow-x: auto; padding: 20px; border-radius: 12px; background: #171717; color: white; }
.blog-related { width: min(1050px, 100%); margin: 0 auto 70px; }
.blog-related h2 { font-size: 28px; }
.blog-cta { width: min(1050px, 100%); margin: 0 auto 80px; padding: 52px; border-radius: var(--radius-xl); text-align: center; background: var(--bg-dark); color: white; }
.blog-cta h2 { font-size: clamp(28px, 4vw, 48px); margin: 0; }
.blog-cta p { color: rgba(255,255,255,.68); }
.blog-cta a { display: inline-block; margin-top: 14px; padding: 13px 20px; border-radius: var(--radius-pill); background: white; color: black; text-decoration: none; font-weight: 700; }

@media (min-width: 1400px) {
  body.blog-page #footer { padding-left: clamp(20px, 12vw, 400px); padding-right: clamp(20px, 12vw, 400px); }
}
@media (min-width: 1800px) {
  body.blog-page #footer { padding-left: clamp(20px, 14vw, 500px) !important; padding-right: clamp(20px, 14vw, 500px) !important; }
}
@media (min-width: 2101px) {
  body.blog-page #footer { width: min(100%, var(--public-max-width)); margin-inline: auto; padding-inline: var(--public-wide-gutter) !important; }
}

@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; gap: 20px; }
  .blog-toc { position: static; padding: 20px; border: 1px solid var(--border); border-radius: 14px; }
}
@media (max-width: 620px) {
  .blog-main { width: min(100% - 28px, 1440px); padding-top: 105px; }
  .blog-hero { margin-bottom: 42px; }
  .blog-discovery { margin-bottom: 46px; }
  .blog-search { width: 100%; margin-left: 0; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card { min-height: 225px; }
  .blog-section-title { align-items: center; }
  .blog-section-title h2 { font-size: 23px; }
  .article-header h1 { font-size: 40px; }
  .article-body { font-size: 17px; }
  .article-body ul, .article-body ol { padding-inline-start: 1.35em; }
  .blog-before-after { grid-template-columns: 1fr; }
  .blog-cta { padding: 34px 22px; }
}
