:root {
  background: #eff7f7;
  color: #172033;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  background: radial-gradient(circle at 16% 0%, #ddf4ee 0, transparent 31%), linear-gradient(150deg, #f7fbfb, #edf4f7);
  margin: 0;
}

a { color: #155e75; }

.blog-shell {
  margin: 0 auto;
  max-width: 1120px;
  min-height: 100vh;
  padding: 24px;
}

.blog-site-header {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 42px;
}

.blog-header-left {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 24px;
  min-width: 0;
}

.blog-brand {
  align-items: center;
  border-radius: 14px;
  color: #155e75;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 10px;
  text-decoration: none;
}

.blog-brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.blog-brand-name {
  color: #155e75;
  font-size: 19px;
  font-weight: 850;
  white-space: nowrap;
}

.blog-brand-subtitle {
  color: #155e75;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.blog-brand-icon {
  align-items: center;
  background: linear-gradient(135deg, #0f766e, #0e7490);
  border-radius: 12px;
  color: #fff;
  display: flex;
  font-size: 18px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.blog-nav {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-left: auto;
  min-width: 0;
}

.blog-nav a {
  color: #26394b;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.blog-nav a.active,
.blog-nav a:hover,
.blog-nav a:focus-visible {
  color: #155e75;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.blog-nav .admin-only {
  color: #64748b;
}

.blog-cta-button,
.blog-post-cta a {
  align-items: center;
  background: #155e75;
  border: 1px solid #155e75;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  text-decoration: none;
}

.blog-content blockquote a {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #155e75;
  display: inline;
  font-weight: inherit;
  min-height: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog-mobile-nav {
  display: none;
}

.blog-hero,
.blog-index-empty,
.blog-post,
.blog-post-cta {
  background: #ffffff;
  border: 1px solid #cfe0ec;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(16, 47, 79, 0.07);
}

.blog-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  padding: 28px;
}

.blog-kicker {
  color: #0f766e;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
  margin: 0;
  text-transform: uppercase;
}

.blog-hero h1,
.blog-post-header h1 {
  color: #172033;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.blog-hero h1 {
  font-size: clamp(30px, 3.2vw, 44px);
}

.blog-hero p,
.blog-index-empty p,
.blog-post-description {
  color: #526174;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
  margin: 0;
}

.blog-index-list {
  display: grid;
  gap: 14px;
}

.blog-index-list[hidden] {
  display: none;
}

.blog-draft-list {
  margin-top: 18px;
}

.blog-draft-note {
  color: #64748b;
  display: grid;
  gap: 3px;
  padding: 0 2px;
}

.blog-draft-note span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.blog-draft-note strong {
  color: #172033;
  font-size: 18px;
}

.blog-post-card {
  background: #fff;
  border: 1px solid #cfe0ec;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 20px;
  text-decoration: none;
}

.blog-post-card-draft {
  border-style: dashed;
}

.blog-post-card h2 {
  color: #172033;
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
}

.blog-post-card p {
  color: #526174;
  line-height: 1.55;
  margin: 0;
}

.blog-post-card-meta,
.blog-post-meta {
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.blog-index-empty {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.blog-post {
  padding: clamp(22px, 5vw, 54px);
}

.blog-draft-banner {
  background: #eef7f6;
  border: 1px solid #b7dcd5;
  border-radius: 8px;
  color: #155e75;
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 14px;
  padding: 10px 12px;
}

.blog-post-header {
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}

.blog-content {
  color: #243447;
  font-size: 18px;
  line-height: 1.72;
}

.blog-content > *:first-child { margin-top: 0; }
.blog-content > *:last-child { margin-bottom: 0; }

.blog-content h2 {
  color: #172033;
  font-size: 28px;
  line-height: 1.2;
  margin: 38px 0 12px;
}

.blog-content blockquote {
  background: #f7fbfb;
  border-left: 4px solid #155e75;
  margin: 26px 0;
  padding: 16px 18px;
}

.blog-content table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  margin: 26px 0;
  min-width: 640px;
  width: 100%;
}

.blog-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.blog-content th,
.blog-content td {
  border-bottom: 1px solid #dbe8ef;
  padding: 12px;
  text-align: left;
}

.blog-content th {
  background: #102f4f;
  color: #fff;
}

.blog-chart {
  background: #f7fbfb;
  border: 1px solid #dbe8ef;
  border-radius: 8px;
  margin: 28px 0;
  padding: 18px;
}

.blog-chart-frame {
  height: 320px;
  width: 100%;
}

.blog-chart-caption {
  color: #526174;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  margin: 12px 0 0;
}

.blog-chart-fallback {
  align-items: center;
  color: #526174;
  display: flex;
  font-size: 14px;
  font-weight: 750;
  height: 240px;
  justify-content: center;
  text-align: center;
}

.blog-post-cta {
  display: grid;
  gap: 10px;
  margin-top: 34px;
  padding: 22px;
}

.blog-post-cta h2 {
  color: #172033;
  font-size: 24px;
  margin: 0;
}

.blog-post-cta p {
  color: #526174;
  line-height: 1.55;
  margin: 0;
}

.blog-footer {
  border-top: 1px solid #cfe1e8;
  color: #526174;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: space-between;
  margin-top: 42px;
  padding-top: 22px;
}

.blog-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.blog-footer a {
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .blog-shell { padding: 16px; }
  .blog-site-header {
    align-items: stretch;
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
  }
  .blog-header-left {
    justify-content: space-between;
  }
  .blog-header-left .blog-nav {
    display: none;
  }
  .blog-mobile-nav {
    display: flex;
    gap: 18px;
    margin: 0 -16px;
    overflow-x: auto;
    padding: 0 16px 4px;
    scrollbar-width: thin;
  }
  .blog-mobile-nav a {
    flex: 0 0 auto;
  }
  .blog-brand-name {
    font-size: 16px;
  }
  .blog-brand-subtitle {
    font-size: 11px;
    max-width: 165px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .blog-hero,
  .blog-index-empty,
  .blog-post,
  .blog-post-cta {
    padding: 18px;
  }
  .blog-content {
    font-size: 16px;
  }
  .blog-chart-frame {
    height: 260px;
  }
}
