/* Editorial additions are scoped: the existing industrial and technical layouts remain intact. */
.editorial-main,
.compendium-addition {
  --editorial-ink: #163343;
  --editorial-muted: #475b66;
  --editorial-line: #c7d2d6;
  --editorial-soft: #f1f5f4;
  --editorial-link: #075781;
  color: var(--editorial-ink);
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.editorial-main {
  width: min(100% - 3rem, 76rem);
  margin-inline: auto;
  padding-block: 1.5rem 4rem;
}

.compendium-addition {
  width: min(100% - 3rem, 76rem);
  margin: 3rem auto;
  padding-block: 2.5rem;
  border-top: 2px solid var(--editorial-line);
}

.editorial-content {
  color: #163343;
  line-height: 1.7;
  min-width: 0;
}

:is(.article-body, .technical-sheet-body) .compendium-addition {
  width: 100%;
}

:is(.editorial-main, .compendium-addition) *,
.editorial-content * {
  box-sizing: border-box;
}

:is(.editorial-main, .compendium-addition) :is(h1, h2, h3),
.editorial-content :is(h2, h3) {
  color: #163343;
  text-wrap: balance;
  letter-spacing: -.025em;
  line-height: 1.18;
  scroll-margin-top: 8rem;
}

.editorial-hero {
  max-width: 66rem;
  padding-block: clamp(2rem, 5vw, 4.5rem);
  border-bottom: 1px solid #c7d2d6;
}

.editorial-hero h1 {
  max-width: 24ch;
  margin: .5rem 0 1.25rem;
  font-size: clamp(2rem, 4.5vw, 4rem);
}

.editorial-intro {
  max-width: 72ch;
  color: #475b66;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.65;
}

.editorial-hero .button {
  margin: .75rem 1rem .75rem 0;
}

.editorial-secondary {
  display: inline-block;
  margin-block: .75rem;
  font-weight: 700;
}

.editorial-content > section,
.compendium-addition > section {
  padding-block: clamp(1.75rem, 4vw, 3rem);
  border-bottom: 1px solid #c7d2d6;
}

.editorial-content h2,
.compendium-addition > h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
}

.editorial-content h3 {
  margin: 1.5rem 0 .65rem;
  font-size: 1.2rem;
}

.editorial-content p {
  max-width: 85ch;
  margin: .75rem 0;
}

.editorial-content :is(ul, ol) {
  margin-block: 1rem;
  padding-left: 1.4rem;
}

.editorial-content li + li {
  margin-top: .45rem;
}

:is(.editorial-main, .editorial-content, .compendium-addition) a:not(.button) {
  color: #075781;
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}

:is(.editorial-main, .editorial-content, .compendium-addition) a:not(.button):hover {
  color: #163343;
  text-decoration: underline;
}

:is(.editorial-main, .editorial-content, .compendium-addition) :is(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid #075781;
  outline-offset: 4px;
}

.editorial-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .65rem;
  list-style: none;
  margin: 0;
  padding: .5rem 0;
  font-size: .85rem;
}

.editorial-breadcrumb li + li::before {
  content: "/";
  padding-right: .65rem;
  color: #667b86;
}

.editorial-content .editorial-links,
.compendium-addition .editorial-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: .75rem;
  padding: 0;
  list-style: none;
}

.editorial-links li,
.editorial-content .editorial-links li + li {
  margin: 0;
  min-width: 0;
}

.editorial-links a {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 3.25rem;
  padding: .85rem 1rem;
  border: 1px solid #c7d2d6;
  border-radius: .25rem;
  background: #f7f9f8;
  font-weight: 650;
}

.editorial-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
}

.editorial-facts > :is(article, div) {
  padding: 1.35rem;
  border-left: 4px solid #d69c24;
  background: #f1f5f4;
}

.editorial-facts h3:first-child {
  margin-top: 0;
}

.editorial-process {
  max-width: 85ch;
}

.editorial-content details {
  padding: 1rem 1.1rem;
  border: 1px solid #c7d2d6;
  border-radius: .25rem;
  margin-block: .65rem;
  background: #fff;
}

.editorial-content summary {
  cursor: pointer;
  font-weight: 750;
  line-height: 1.5;
}

.editorial-content details[open] summary {
  margin-bottom: .8rem;
}

.editorial-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  margin-block: 1.25rem;
  border: 1px solid #c7d2d6;
  border-radius: .25rem;
}

.editorial-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: .95rem;
  line-height: 1.55;
}

.editorial-table :is(th, td) {
  min-width: 8rem;
  padding: .9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #c7d2d6;
}

.editorial-table th {
  color: #fff;
  background: #163343;
  font-weight: 750;
}

.editorial-table tbody tr:nth-child(even) {
  background: #f1f5f4;
}

.editorial-table tr:last-child td {
  border-bottom: 0;
}

.editorial-sources {
  font-size: .92rem;
  line-height: 1.7;
}

/* Preserve the existing compact header; the full links also remain in mobile navigation. */
@media (max-width: 1120px) {
  .header-pricing-link {
    display: none;
  }
}

@media (max-width: 700px) {
  .editorial-main,
  .compendium-addition {
    width: calc(100% - 1.5rem);
  }

  .compendium-addition {
    padding-block: 1.5rem;
    margin-block: 2rem;
  }

  .editorial-links,
  .editorial-facts {
    grid-template-columns: 1fr;
  }

  .editorial-hero .button {
    width: 100%;
    margin-right: 0;
  }

  .editorial-table :is(th, td) {
    padding: .75rem;
  }
}
