:root {
  --wordmark-accent-light: #15715a;
  --wordmark-accent-dark: #58caa3;
  --chemical-scene: var(--scene-lab);
  --chemical-focus: 92%;
  --ink: #182d29;
  --muted: #4b6059;
  --brand: #226052;
  --brand-dark: #184b40;
  --paper: #f8faf7;
  --wash: #edf3ee;
  --sand: #e5ede7;
  --line: #cbd8d0;
  --radius: 4px;
  --atlas-mono: ui-monospace, "SF Mono", Consolas, monospace;
}

:root[data-theme="dark"] {
  --ink: #e6f3ea;
  --muted: #acc1b6;
  --brand: #9dd5bf;
  --brand-dark: #276656;
  --paper: #14231f;
  --wash: #1a2f28;
  --sand: #263c34;
  --line: #3b5449;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--paper);
  --bs-border-color: var(--line);
}

.chem-edition {
  --edition-font: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --edition-weight: 700;
  --photo-height: clamp(360px, 32vw, 460px);
  --action-fill: var(--brand-dark);
}

.chem-edition .shell:not(.section-banner-layout) {
  width: min(1320px, calc(100% - 72px));
}

.chem-edition main.section-banner-layout {
  --banner-gutter: 36px;
  grid-template-columns: minmax(0, 1fr) min(1320px, calc(100% - 2 * var(--banner-gutter))) minmax(0, 1fr);
}

.chem-edition main.section-banner-layout > .section-banner {
  padding-inline: max(var(--banner-gutter), calc((100% - 1320px) / 2));
}

.chem-site-header {
  border-top: 3px solid var(--brand);
}

@media (min-width: 992px) {
  .chem-header-main {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
    gap: 16px;
    min-height: 68px;
    padding-block: 7px;
  }
  .chem-header-brand { grid-area: 1 / 1; font-size: clamp(15px, 1.45vw, 22px); }
  .chem-header-brand span { overflow: hidden; text-overflow: ellipsis; }
  .chem-main-nav { grid-area: 1 / 2; }
  .chem-header-tools { grid-area: 1 / 3; }
  .chem-nav-list { justify-content: flex-end; gap: 0 clamp(6px, .95vw, 16px); }
  .chem-navitem > a { font-size: clamp(11px, 1.05vw, 13px); }
  .chem-submenu-toggle { width: 18px; }
}

.atlas-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  margin-block: clamp(24px, 4.2vw, 60px) 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
}

.atlas-hero-copy {
  align-self: center;
  padding: clamp(26px, 4.25vw, 64px);
}

.atlas-eyebrow {
  margin: 0 0 16px;
  color: var(--brand);
  font: 700 .76rem/1.5 var(--atlas-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.atlas-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(35px, 4.65vw, 76px);
  line-height: 1.025;
  letter-spacing: -.067em;
}

.atlas-deck {
  max-width: 39ch;
  margin: 0 0 clamp(20px, 3vw, 39px);
  font-size: clamp(15px, 1.33vw, 18px);
  line-height: 1.55;
}

.atlas-hero-image {
  position: relative;
  min-height: 100%;
  margin: 0;
  background: var(--sand);
}

.atlas-hero-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% 50%;
}

.atlas-search {
  max-width: 560px;
  color: var(--ink);
}

.atlas-search label {
  display: block;
  margin-bottom: 8px;
  font-size: .85rem;
  font-weight: 700;
}

.atlas-search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.atlas-search .form-control {
  min-width: 0;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
}

.atlas-search .form-control::placeholder { color: var(--muted); opacity: 1; }
.atlas-search .button { min-height: 48px; padding: 8px 15px; gap: 9px; }

.atlas-search :focus-visible,
.atlas-row:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.atlas-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(235px, 28%);
  align-items: start;
  gap: clamp(24px, 4vw, 64px);
  margin-block: clamp(40px, 5vw, 74px);
}

.atlas-index-main > h2,
.atlas-highlights > h2 {
  margin: 0 0 18px;
  font-size: clamp(29px, 3vw, 43px);
  letter-spacing: -.045em;
}

.atlas-register {
  --atlas-columns: minmax(0, 2fr) minmax(0, .8fr) 16px;
  --atlas-gap: clamp(8px, 1.3vw, 21px);
  border-top: 1px solid var(--line);
}

.atlas-columns,
.atlas-row {
  display: grid;
  grid-template-columns: var(--atlas-columns);
  align-items: center;
  gap: var(--atlas-gap);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.atlas-columns {
  background: var(--wash);
  color: var(--muted);
  font: 600 .72rem/1.45 var(--atlas-mono);
}

.atlas-row {
  min-height: 75px;
  color: var(--ink);
}

.atlas-row:hover,
.atlas-row:focus-visible {
  background: var(--wash);
  color: var(--ink);
}

.atlas-row > i { justify-self: end; color: var(--brand); font-size: .85rem; }

.atlas-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.atlas-name img {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
}

.atlas-name strong { display: block; line-height: 1.32; }
.atlas-name .product-list-cas { margin-top: 4px; }
.atlas-name small { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; }
.atlas-value { color: var(--brand); font: .8rem/1.45 var(--atlas-mono); }

.atlas-catalog-link { margin-top: 16px; }
.atlas-index-empty { margin-block: 16px; }
.atlas-register:has(.atlas-row) .atlas-index-empty,
.atlas-register:not(:has(.atlas-row)) .atlas-columns { display: none; }
.atlas-register:not(:has(.atlas-row)) { border-top: 0; }

.atlas-brief {
  margin-top: 4px;
  padding: clamp(20px, 2.6vw, 34px);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  background: var(--wash);
}

.atlas-brief-icon { color: var(--brand); font-size: 22px; }
.atlas-brief h2 { margin: 15px 0 10px; font-size: clamp(22px, 2.25vw, 29px); letter-spacing: -.035em; }
.atlas-brief p { margin-bottom: 12px; }
.atlas-brief ol { padding-inline-start: 22px; margin-bottom: 20px; }
.atlas-brief li + li { margin-top: 5px; }
.atlas-brief li::marker { color: var(--brand); font-family: var(--atlas-mono); }

.atlas-highlights:not(:has(.banner-slide)) { display: none; }
.atlas-highlights .edition-cover { border-radius: var(--radius); }
.atlas-highlights .banner-content { padding-inline: 18px; }

.atlas-list .atlas-search { margin-block: 0 28px; }
.atlas-list .atlas-row { min-height: 84px; }
.atlas-list .atlas-name img { flex-basis: 52px; width: 52px; height: 52px; }

.chem-edition .section-banner { border-block-start: 3px solid var(--brand); }

.chem-edition .product-specs {
  border-top: 2px solid var(--brand);
  background: var(--wash);
}

.chem-edition .product-specs:not(:has(> div)) { display: none; }
.chem-edition .product-specs > div { padding-inline: 14px; }
.chem-edition .product-specs dd { font-family: var(--atlas-mono); }
.chem-edition .product-information .product-tabs { border-top: 1px solid var(--line); }

@media (max-width: 991px) {
  .chem-edition .shell:not(.section-banner-layout) { width: calc(100% - 42px); }
  .chem-edition main.section-banner-layout { --banner-gutter: 21px; }
  .atlas-index { grid-template-columns: 1fr; }
  .atlas-brief { margin: 0; }
}

@media (max-width: 680px) {
  .chem-edition .shell:not(.section-banner-layout) { width: calc(100% - 32px); }
  .chem-edition main.section-banner-layout { --banner-gutter: 16px; }
  .atlas-hero { grid-template-columns: 1fr; }
  .atlas-hero-copy { padding: 24px 18px; }
  .atlas-hero h1 { font-size: clamp(30px, 8.9vw, 54px); }
  .atlas-hero-image { aspect-ratio: 16 / 10; min-height: 0; }
  .atlas-search .button { padding-inline: 11px; }
  .atlas-search .button i { display: none; }
  .atlas-columns { display: none; }
  .atlas-row {
    grid-template-columns: minmax(0, 1fr) 16px;
    gap: 4px 10px;
    padding: 12px 8px;
  }
  .atlas-value:empty { display: none; }
  .atlas-value:not(:empty) { margin-top: 4px; }
  .atlas-row > i { grid-area: 1 / 2; }
  .atlas-value > .visually-hidden {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    clip: auto !important;
    white-space: normal !important;
    display: block;
    color: var(--muted);
    font-family: var(--edition-font);
  }
  .atlas-highlights .banner-content { padding-inline: 8px; }
  .atlas-highlights .banner-track { height: 410px; }
  .atlas-highlights .banner-content h2 { font-size: clamp(25px, 8vw, 38px); margin-bottom: 10px; }
}
