/* theme-20260824.css: Modern, clean, responsive design system */
:root {
  --color-bg: #f6f7f8;
  --color-bg-alt: #fff;
  --color-primary: #0f66bd;
  --color-primary-dark: #0d5ba8;
  --color-text: #334155; /* Lighter slate-700 */
  --color-text-light: #64748b;
  --color-border: #e2e8f0;
  --radius: 8px; /* Slightly tighter radius */
  --shadow: 0 1px 3px rgba(0,0,0,0.05); /* Softer shadow */
  --container-width: 1024px; /* Tighter container */
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.95rem; /* Slightly smaller base size */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.home-hero {
  background-color: #071524;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(91, 176, 255, 0.42) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 20%, rgba(91, 176, 255, 0.32) 0 3px, transparent 4px),
    radial-gradient(circle at 86% 72%, rgba(91, 176, 255, 0.28) 0 2px, transparent 3px),
    radial-gradient(circle at 28% 82%, rgba(91, 176, 255, 0.24) 0 4px, transparent 5px),
    linear-gradient(135deg, rgba(5, 15, 28, 0.96) 0%, rgba(14, 48, 82, 0.94) 52%, rgba(8, 84, 136, 0.9) 100%);
}

.header {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  box-shadow: none; /* Removed heavy shadow */
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px; /* Slightly shorter header */
}
.nav__left, .nav__center, .nav__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600; /* Lighter weight */
  font-size: 1.25rem;
  color: var(--color-text); /* Use text color instead of primary */
  text-decoration: none;
  letter-spacing: -0.025em;
}
.logo-icon {
    color: var(--color-primary);
}
.nav__list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  color: var(--color-text-light); /* Lighter nav links */
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav__list a:hover {
  color: var(--color-primary);
}
.nav__action-link svg {
  color: var(--color-text-light);
  transition: color 0.2s;
  display: block;
}
.nav__action-link:hover svg {
  color: var(--color-primary);
}

.hero {
  text-align: center;
  padding: 4rem 1rem;
  background-color: transparent; /* Removed grey background */
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.hero .tagline {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: 1rem;
  font-weight: 500;
}

.section {
  padding: 3rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.section h2 {
  font-size: 1.75rem; /* Smaller section headers */
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border); /* Thinner border */
  padding-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.section p, .section ul {
  font-size: 1rem; /* Smaller body text */
  margin-bottom: 1rem;
  color: var(--color-text);
}

.section ul {
  list-style-position: inside;
  padding-left: 0;
}

.section li {
  margin-bottom: 0.5rem;
}

.hero, .features, .enterprise, .vendors, .contact {
  padding: 3rem 0 2rem 0;
  background: var(--color-bg);
}
.hero {
  background: transparent;
  text-align: center;
  padding: 2rem 0 2rem 0;
}
.hero h1 {
  font-size: 2.25rem; /* Consistent size */
  font-weight: 700;
  margin-bottom: 1rem;
}

section > .container > h2, section > .container > h1 {
  margin: 0 0 1.5rem 0;
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: -0.025em;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem; /* Smaller padding */
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}
.btn--secondary {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.btn--secondary:hover {
  background: var(--color-bg);
  border-color: var(--color-text-light);
  color: var(--color-text);
}

.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  text-align: center;
  padding: 3rem 0;
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.content-wrapper {
  padding: 3rem 1.5rem;
  max-width: 800px; /* Readability width */
  margin: 0 auto;
}
.content-wrapper h1, .post-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-text);
  letter-spacing: -0.025em;
}
.content-wrapper h2, .post-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  color: var(--color-text);
  letter-spacing: -0.025em;
}
.content-wrapper ul, .post-content ul {
  list-style: disc;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}
.content-wrapper p, .content-wrapper li, .post-content p, .post-content li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
}
.post-content {
  padding: 0;
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-weight: 500;
}
.breadcrumb a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: var(--color-primary);
}

/* Post List Layout */
.list-layout .list-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}
.list-layout .list-header h1 {
    font-size: 1.1rem;
    color: var(--color-text);
    font-weight: 600;
}
.post-list .post-item {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem; /* Reduced padding */
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-list .post-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.post-item__link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.post-item__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.015em;
}
.post-item__summary {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}
.post-item__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
    align-items: center;
}
.post-item__author {
    font-weight: 500;
}

/* Prose styling for blog content */
.prose {
  color: var(--color-text);
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.prose a {
  color: var(--color-primary);
  text-decoration: none;
}

.prose a:hover {
  color: var(--color-primary-dark);
}

.prose blockquote {
  border-left: 3px solid var(--color-primary); /* Thinner border */
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-text-light);
}

.prose code {
  background-color: var(--color-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.85em;
  color: var(--color-text);
}

.prose pre {
  background-color: #1e293b; /* Darker bg for code blocks */
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  color: #f1f5f9;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

/* Line clamp utility */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 800px) {
  .container {
    padding: 0 1rem;
  }
  .nav__list {
    gap: 1rem;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  section > .container > h2, section > .container > h1 {
    font-size: 1.5rem;
  }
  .header, .footer {
    font-size: 0.85rem;
  }
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* Technical publication */
.publication-shell {
  max-width: 1180px;
  padding-top: clamp(2.25rem, 4vw, 3.75rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.publication {
  max-width: 960px;
}

.publication > nav {
  margin: 0 auto 1.5rem;
  max-width: 800px;
}

.publication > nav > div {
  color: #718096;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.5;
  text-transform: uppercase;
}

.publication > nav a {
  color: #52637a;
  text-decoration: none;
}

.publication > nav a:hover {
  color: var(--color-primary-dark);
}

.publication > header {
  margin: 0 auto 2.5rem;
  max-width: 800px;
  position: relative;
}

.publication > header::before {
  background: var(--color-primary);
  border-radius: 999px;
  content: "";
  display: block;
  height: 3px;
  margin-bottom: 1.2rem;
  width: 40px;
}

.publication > header h1 {
  color: #142033;
  font-size: clamp(2.3rem, 4.2vw, 3.35rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.06;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

.publication > header > p {
  color: #52637a;
  font-size: clamp(1.08rem, 1.7vw, 1.22rem);
  letter-spacing: -0.014em;
  line-height: 1.5;
  margin: 0 0 1.25rem;
  max-width: 44rem;
  text-wrap: pretty;
}

.publication > header > div {
  align-items: center;
  border-top: 1px solid #dfe5ec;
  color: #52637a;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0;
  letter-spacing: 0.015em;
  padding-top: 0.85rem;
}

.publication > header > div > * {
  align-items: center;
  display: inline-flex;
}

.publication > header > div > *:not(:first-child)::before {
  background: #aeb9c7;
  border-radius: 50%;
  content: "";
  height: 3px;
  margin: 0 0.85rem;
  width: 3px;
}

.publication > header > div > span:first-child {
  color: #27364a;
  font-weight: 650;
}

.publication .prose {
  color: #334155;
  font-size: 1rem;
  line-height: 1.7;
  margin-left: auto;
  margin-right: auto;
  max-width: 740px;
}

.publication .prose > *:first-child {
  margin-top: 0;
}

.publication .prose p {
  color: #334155;
  font-size: inherit;
  line-height: inherit;
  margin-bottom: 1.05rem;
  margin-top: 0;
}

.publication .prose h2,
.publication .prose h3,
.publication .prose h4 {
  color: #18263a;
  font-weight: 700;
  text-wrap: balance;
}

.publication .prose h2 {
  border: 0;
  font-size: clamp(1.65rem, 2.8vw, 1.95rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 2.75rem 0 0.95rem;
  padding: 0;
}

.publication .prose h2::before {
  background: var(--color-primary);
  border-radius: 999px;
  content: "";
  display: block;
  height: 2px;
  margin-bottom: 0.65rem;
  width: 28px;
}

.publication .prose h3 {
  font-size: 1.22rem;
  letter-spacing: -0.022em;
  line-height: 1.3;
  margin: 1.9rem 0 0.6rem;
}

.publication .prose h4 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.45;
  margin: 1.6rem 0 0.55rem;
}

.publication .prose strong {
  color: #1f2d40;
  font-weight: 700;
}

.publication .prose a {
  color: #075fae;
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: rgba(17, 115, 212, 0.34);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.publication .prose a:hover {
  color: #084f8d;
  text-decoration-color: currentColor;
}

.publication .prose ul,
.publication .prose ol {
  color: #334155;
  margin: 0 0 1.2rem;
  padding-left: 1.55rem;
}

.publication .prose li {
  color: inherit;
  font-size: inherit;
  line-height: 1.62;
  margin: 0.3rem 0;
  padding-left: 0.25rem;
}

.publication .prose li::marker {
  color: #3182ce;
  font-weight: 700;
}

.publication .prose blockquote {
  background: linear-gradient(135deg, #eef7ff 0%, #f7fbff 100%);
  border: 1px solid #cfe5f8;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 10px 10px 0;
  color: #29445f;
  font-size: 1.03rem;
  font-style: normal;
  line-height: 1.62;
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
}

.publication .prose blockquote p {
  color: inherit;
  margin: 0;
}

.publication .prose code {
  background: #edf2f7;
  border: 1px solid #dce4ec;
  border-radius: 5px;
  color: #243247;
  font-size: 0.84em;
  padding: 0.16em 0.38em;
}

.publication .prose pre:not(.mermaid) {
  background: #111c2e;
  border: 1px solid #26344a;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.13);
  color: #e6edf6;
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
}

.publication .prose pre code {
  border: 0;
}

.publication .prose .mermaid {
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(22, 39, 62, 0.07);
  margin-bottom: 1.8rem;
  margin-left: 50%;
  margin-top: 1.8rem;
  overflow-x: auto;
  padding: 1.25rem;
  transform: translateX(-50%);
  width: min(900px, calc(100vw - 3rem));
}

.publication .prose .mermaid svg {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
}

.publication .prose mjx-container[display="true"] {
  margin: 1.4rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.45rem 0;
}

.publication .prose > div.overflow-x-auto {
  border: 1px solid #dce3eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(22, 39, 62, 0.055);
  margin: 1.75rem 0;
}

.publication .prose table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  min-width: 640px;
  width: 100%;
}

.publication .prose th {
  background: #17263b;
  border: 0;
  color: #fff;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  padding: 0.9rem 1rem;
  text-align: left;
  text-transform: uppercase;
}

.publication .prose td {
  border: 0;
  border-bottom: 1px solid #e3e8ef;
  color: #3b495d;
  padding: 0.9rem 1rem;
  vertical-align: top;
}

.publication .prose tbody tr:nth-child(even) td {
  background: #f7f9fb;
}

.publication .prose tbody tr:last-child td {
  border-bottom: 0;
}

.publication .prose img {
  border: 1px solid #e0e6ed;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(22, 39, 62, 0.08);
  height: auto;
  margin: 1.8rem auto;
  max-width: 100%;
}

.publication .prose figcaption {
  color: #718096;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: -1.55rem;
  text-align: center;
}

.publication .prose h2[id="references"] + ul {
  color: #52637a;
  font-size: 0.9rem;
  line-height: 1.55;
  padding-left: 1.25rem;
}

.publication > footer {
  border-top: 1px solid #dce3eb;
  margin: 3.5rem auto 0;
  max-width: 740px;
  padding-top: 1.25rem;
}

.publication > footer > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.publication > footer a {
  color: #075fae;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.publication > footer > div > div:last-child {
  display: none;
}

@media (max-width: 640px) {
  .publication-shell {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    padding-top: 1.85rem;
  }

  .publication > nav {
    margin-bottom: 1.25rem;
  }

  .publication > nav > div > span:last-child {
    display: none;
  }

  .publication > header {
    margin-bottom: 2.1rem;
  }

  .publication > header::before {
    margin-bottom: 1rem;
  }

  .publication > header h1 {
    font-size: clamp(2rem, 10.4vw, 2.5rem);
    letter-spacing: -0.045em;
  }

  .publication > header > p {
    font-size: 1.02rem;
  }

  .publication > header > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .publication > header > div > *:not(:first-child)::before {
    display: none;
  }

  .publication .prose {
    font-size: 0.975rem;
    line-height: 1.68;
  }

  .publication .prose h2 {
    margin-top: 2.5rem;
  }

  .publication .prose h3 {
    font-size: 1.16rem;
  }

  .publication .prose blockquote {
    font-size: 1rem;
    padding: 0.9rem 1rem;
  }

  .publication .prose mjx-container[display="true"] {
    font-size: 0.9rem !important;
  }

  .publication .prose .mermaid {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    padding: 1rem;
    width: calc(100vw - 1.5rem);
  }
}
