/* TERVE OS - Technical Database Article CSS */

.atlas-kb-article-root {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 42px 0 56px;
  background: #f3f0ec;
}

.atlas-kb-article-root *,
.atlas-kb-article-root *::before,
.atlas-kb-article-root *::after {
  box-sizing: border-box;
}

.terve-article {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px;
  color: #182033;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.terve-article-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.terve-article-main {
  background: #fff;
  border: 1px solid #eadfd5;
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 18px 46px rgba(24, 32, 51, 0.08);
}

.terve-breadcrumb {
  font-size: 13px;
  color: #7a8496;
  margin-bottom: 20px;
}

.terve-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.terve-breadcrumb a:hover {
  color: #b9632f;
}

.terve-article h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -0.04em;
  color: #10182b;
}

.terve-article h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 46px 0 16px;
  color: #10182b;
}

.terve-article h3 {
  font-size: 20px;
  margin: 30px 0 12px;
}

.terve-article p {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 18px;
  color: #344054;
}

.terve-article ul,
.terve-article ol {
  margin: 16px 0 24px;
  padding-left: 24px;
}

.terve-article li {
  margin-bottom: 10px;
  line-height: 1.65;
}

.terve-article img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.terve-article table {
  width: 100%;
  margin: 26px 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid #eadfd5;
  border-radius: 16px;
  background: #fff;
}

.terve-article th,
.terve-article td {
  padding: 14px 16px;
  border-bottom: 1px solid #eadfd5;
  text-align: left;
  vertical-align: top;
}

.terve-article th {
  background: #faf4ee;
  color: #10182b;
  font-weight: 800;
}

.terve-article blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 4px solid #c56f37;
  border-radius: 16px;
  background: #fff5eb;
}

.terve-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 28px;
}

.terve-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: #f5eee8;
  color: #9a572b;
  font-size: 13px;
  font-weight: 700;
}

.terve-hero-image {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin: 28px 0;
  border: 1px solid #eadfd5;
}

.terve-hero-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.terve-hero-image + .terve-article-content > figure:first-child,
.terve-hero-image + .terve-article-content > .wp-block-image:first-child {
  display: none !important;
}

@supports selector(:has(img)) {
  .terve-hero-image + .terve-article-content > p:first-child:has(img),
  .terve-hero-image + .terve-article-content > div:first-child:has(img) {
    display: none !important;
  }
}

.terve-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #eadfd5;
  background: linear-gradient(180deg, #fff, #faf4ee);
  margin: 28px 0 36px;
}

.terve-comparison-card {
  padding: 30px;
  text-align: center;
}

.terve-comparison-card + .terve-comparison-card {
  border-left: 1px solid #eadfd5;
}

.terve-icon-circle {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  margin: 0 auto 18px;
  background: #c56f37;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 32px;
  box-shadow: 0 12px 30px rgba(197, 111, 55, 0.28);
}

.terve-comparison-card h3 {
  color: #b9632f;
  font-size: 24px;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.terve-pill {
  display: inline-flex;
  margin-top: 14px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #c56f37;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.terve-callout {
  padding: 22px 24px;
  border-radius: 18px;
  margin: 26px 0;
  border: 1px solid;
}

.terve-callout.orange {
  background: #fff5eb;
  border-color: #f1c59d;
}

.terve-callout.blue {
  background: #f0f7ff;
  border-color: #b9d8f3;
}

.terve-callout.green {
  background: #effaf2;
  border-color: #b9e5c2;
}

.terve-callout strong {
  color: #10182b;
}

.terve-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  gap: 18px;
}

.terve-side-card {
  background: #fff;
  border: 1px solid #eadfd5;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 14px 34px rgba(24, 32, 51, 0.06);
}

.terve-side-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.terve-side-card div {
  display: grid;
  gap: 3px;
}

.terve-side-card dt {
  color: #7a8496;
  font-size: 12px;
  font-weight: 800;
}

.terve-side-card dd {
  margin: 0;
  color: #182033;
  font-size: 14px;
  font-weight: 800;
}

.terve-side-card p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
}

.terve-side-card .terve-pill {
  color: #fff;
  text-decoration: none;
}

.terve-side-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9a572b;
  font-weight: 800;
  margin-bottom: 14px;
}

.terve-toc {
  list-style: none;
  padding: 0;
  margin: 0;
}

.terve-toc li {
  margin: 0;
}

.terve-toc a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #48566f;
  text-decoration: none;
  font-size: 14px;
}

.terve-toc a[data-level="3"] {
  padding-left: 24px;
  font-size: 13px;
}

.terve-toc a:hover,
.terve-toc a.is-active {
  background: #fff2e8;
  color: #b9632f;
}

.terve-related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eadfd5;
}

.terve-related a {
  padding: 10px 14px;
  border-radius: 999px;
  background: #f5f7fb;
  color: #335c8a;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.terve-related a:hover {
  background: #eaf2fb;
}

@media (max-width: 980px) {
  .terve-article {
    padding: 20px;
  }

  .terve-article-shell {
    grid-template-columns: 1fr;
  }

  .terve-sidebar {
    position: static;
    order: 2;
  }

  .terve-article-main {
    padding: 26px;
  }
}

@media (max-width: 680px) {
  .terve-comparison {
    grid-template-columns: 1fr;
  }

  .terve-comparison-card + .terve-comparison-card {
    border-left: 0;
    border-top: 1px solid #eadfd5;
  }

  .terve-article h1 {
    font-size: 34px;
  }
}
