/* Chemistry uses the same material palette and broad photographic gutter as the dispatch homepage. */
#main .chem-focus.chem-folio {
  --cf-navy: #0b213d;
  --cf-sheet: #193650;
  --cf-ink: #faf1e5;
  --cf-copy: #d2dfe8;
  --cf-rule: #40566c;
  --cf-red: #ec2441;
  background:var(--cf-navy);
}
#main .chem-folio.chem-focus .ce-wrap {
  width:min(calc(100% - clamp(2.25rem,6vw,7rem)),86rem);
}
#main .chem-folio.chem-focus .ce-intro > .ce-wrap {
  grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);
  padding-block:clamp(2.5rem,5vw,5.5rem) clamp(3rem,6vw,6rem);
  gap:clamp(1.8rem,4.4vw,5rem);
}
#main .chem-folio.chem-focus .ce-intro > .ce-wrap:not(:has(figure)) { grid-template-columns:minmax(0,64rem) }
#main .chem-folio.chem-focus .ce-intro .ce-eyebrow {
  display:flex;align-items:center;gap:.8rem; color:#c4d7e2;
  text-transform:uppercase;font-size:.72rem;letter-spacing:.1em;
}
#main .chem-folio.chem-focus .ce-eyebrow::before {content:"";width:2rem;height:2px;background:var(--cf-red);flex:none}
#main .chem-folio.chem-focus .ce-section h1 {
  font-size:clamp(2.1rem,3.55vw,3.7rem);line-height:1.1;letter-spacing:-.055em;
  max-width:20ch;color:var(--cf-ink);
}
#main .chem-folio.chem-focus .ce-intro .ce-lead {max-width:52ch;color:var(--cf-copy);margin-top:1.25rem}
#main .chem-folio.chem-focus .ce-intro .ce-actions {margin-top:1.6rem}
#main .chem-folio.chem-focus .ce-intro .cms-image img {
  aspect-ratio: 6 / 4.35;height:auto;object-fit:cover;max-height:34rem;border-radius:.2rem;
}
#main .chem-folio.chem-focus .ce-intro .cms-image[data-fit=contain] img {object-fit:contain}
#main .chem-folio.chem-focus .ce-routes > .ce-wrap {
  display:grid;grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr);align-items:start;
  gap:2rem clamp(2.25rem,7vw,7rem);border-top:1px solid var(--cf-rule);padding-block:clamp(2.6rem,5.6vw,5.3rem);
}
#main .chem-folio.chem-focus .cf-route-lead {display:grid;gap:1.2rem;align-content:start}
#main .chem-folio.chem-focus .ce-routes h2 {max-width:15ch;margin-bottom:0}
#main .chem-folio.chem-focus .ce-section h2 {color:var(--cf-ink);letter-spacing:-.045em;font-size:clamp(1.45rem,2.65vw,2.75rem);line-height:1.17}
#main .chem-folio.chem-focus .cf-index-list {padding:0;margin:0;list-style:none}
#main .chem-folio.chem-focus .cf-index-list li {margin:0;padding:0;list-style:none;border-bottom:1px solid var(--cf-rule)}
#main .chem-folio.chem-focus .cf-index-list li:first-child {border-top:1px solid var(--cf-rule)}
#main .chem-folio.chem-focus .cf-scenario summary {
  list-style:none;display:grid;grid-template-columns:2rem minmax(0,1fr) 1.2rem;align-items:center;
  gap:.85rem;min-height:3.85rem;padding:.85rem .3rem;cursor:pointer;
}
#main .chem-folio.chem-focus .cf-scenario summary::-webkit-details-marker {display:none}
#main .chem-folio.chem-focus .cf-scenario summary::after {content:none}
#main .chem-folio.chem-focus .cf-scenario summary h3 {
  font-size:clamp(1.1rem,1.8vw,1.65rem);line-height:1.25;text-wrap:initial;color:var(--cf-ink);
}
#main .chem-folio.chem-focus .cf-index {
  font:500 .78rem/1.2 'TT Golos',sans-serif;color:#b0c5d5;font-variant-numeric: tabular-nums;
}
#main .chem-folio.chem-focus .cf-toggle {position:relative;width:1rem;height:1rem;color:#a9c0d2}
#main .chem-folio.chem-focus .cf-toggle::before,#main .chem-folio.chem-focus .cf-toggle::after {
  content:"";position:absolute;top:calc(50% - 1px);left:0;width:100%;height:2px;background:currentColor;
}
#main .chem-folio.chem-focus .cf-toggle::after {transform:rotate(90deg);transition:transform .16s ease-out}
#main .chem-folio.chem-focus .cf-scenario[open] .cf-toggle::after {transform:rotate(0)}
#main .chem-folio.chem-focus .cf-scenario[open] .cf-toggle,
#main .chem-folio.chem-focus .cf-scenario[open] .cf-index {color:#ff7181}
#main .chem-folio.chem-focus .cf-scenario-copy {
  margin:0 1.6rem 0 3.15rem;padding-bottom:.75rem;max-width:54ch;
}
#main .chem-folio.chem-focus .cf-scenario-copy p {color:var(--cf-copy)}
#main .chem-folio.chem-focus .cf-scenario-copy .ce-route {margin-top:.3rem;padding-top:0}
#main .chem-folio.chem-focus .cf-plain p {padding-block:.8rem}
#main .chem-folio.chem-focus .ce-worksheet > .ce-wrap {
  display:grid;grid-template-columns:minmax(0,1.23fr) minmax(0,.77fr);gap:0;
  padding:0;background:var(--cf-sheet);border-radius:.25rem;
}
#main .chem-folio.chem-focus .ce-worksheet > .ce-wrap:not(:has(figure)) {grid-template-columns:1fr}
#main .chem-folio.chem-focus .cf-sheet {
  padding:clamp(1.4rem,3.5vw,3.8rem);color:var(--cf-copy);
}
#main .chem-folio.chem-focus .cf-sheet h2 {max-width:19ch}
#main .chem-folio.chem-focus .cf-sheet .ce-list-title {margin-bottom:1.4rem}
#main .chem-folio.chem-focus .cf-sheet .ce-count {font-size:.82rem;color:#bdd0dc}
#main .chem-folio.chem-focus .ce-checks {margin:0}
#main .chem-folio.chem-focus .ce-checks li {border-bottom:1px solid #496176;border-top:none}
#main .chem-folio.chem-focus .ce-checks li:first-child {border-top:1px solid #496176}
#main .chem-folio.chem-focus .ce-checks label {min-height:3rem;align-items:center;color:var(--cf-ink)}
#main .chem-folio.chem-focus .ce-checks input {margin-top:.15rem}
#main .chem-folio.chem-focus .cf-download {
  display:inline-flex;gap:.75rem;align-items:center;margin-top:.65rem;min-height:2.85rem;
  color:var(--cf-ink);font-weight:580;font-size:.98rem;line-height:1.3;
}
#main .chem-folio.chem-focus .cf-download small {
  font-size:.66rem;letter-spacing:.045em;color:#cbdae4;border:1px solid #8297a8;line-height:1.5;padding:0 .28rem;
}
#main .chem-folio.chem-focus .cf-download > span:last-child {color:#ff7181}
#main .chem-folio.chem-focus .ce-worksheet figure {position:relative;align-self:stretch;min-width:0}
#main .chem-folio.chem-focus .ce-worksheet :is(.cf-sample,.cms-image) img {
  display:block;width:100%;height:100%;max-height:39rem;object-fit:cover;object-position:50% 52%;border-radius:0 .25rem .25rem 0;
}
#main .chem-folio.chem-focus .ce-worksheet .cf-sample img {position:absolute;inset:0;max-height:none;object-position:50% 28%}
#main .chem-folio.chem-focus .ce-worksheet .cms-image[data-fit=contain] img {height:auto;object-fit:contain}
#main .chem-folio.chem-focus .ce-worksheet .cms-image[data-position=top] img {object-position:top}
#main .chem-folio.chem-focus .ce-worksheet .cms-image[data-position=bottom] img {object-position:bottom}
#main .chem-folio.chem-focus .ce-reference > .ce-wrap {border-top:0}
#main .chem-folio.chem-focus .ce-reference-lead {gap:1.6rem}
#main .chem-folio.chem-focus .ce-reference-lead .cms-image img {height:auto;aspect-ratio:1.8;object-fit:cover}
#main .chem-folio.chem-focus .ce-reference-lead .cms-image[data-fit=contain] img {object-fit:contain}
#main .chem-folio.chem-focus .ce-detail summary:focus-visible,
#main .chem-folio.chem-focus :is(.cf-scenario summary,.cf-download,.ce-route):focus-visible {outline:2px solid #ff8290;outline-offset:3px}
@media (hover:hover) and (pointer:fine) {
  #main .chem-folio.chem-focus .cf-scenario summary:hover h3 {text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.22em}
  #main .chem-folio.chem-focus .cf-download:hover>span:first-child {text-decoration:underline;text-underline-offset:.2em}
}
@media (max-width:760px) {
  #main .chem-folio.chem-focus .ce-intro > .ce-wrap,#main .chem-folio.chem-focus .ce-routes > .ce-wrap,
  #main .chem-folio.chem-focus .ce-worksheet > .ce-wrap {grid-template-columns:minmax(0,1fr)}
  #main .chem-folio.chem-focus .ce-intro > .ce-wrap {gap:1.4rem;padding-block:1.8rem 2.25rem}
  #main .chem-folio.chem-focus .ce-section h1 {font-size:clamp(1.63rem,6.3vw,2.65rem);max-width:24ch}
  #main .chem-folio.chem-focus .ce-section h2 {font-size:clamp(1.3rem,5.1vw,2rem)}
  #main .chem-folio.chem-focus .ce-intro .cms-image img {height:auto;aspect-ratio:1.78}
  #main .chem-folio.chem-focus .ce-intro .ce-lead {margin-top:.9rem}
  #main .chem-folio.chem-focus .ce-intro .ce-actions {margin-top:1rem;gap:.25rem .9rem}
  #main .chem-folio.chem-focus .ce-routes > .ce-wrap {gap:1.2rem;padding-block:1.85rem 2.15rem}
  #main .chem-folio.chem-focus .cf-scenario summary {grid-template-columns:1.35rem minmax(0,1fr) 1rem;gap:.4rem;padding:.65rem .1rem;min-height:3.25rem}
  #main .chem-folio.chem-focus .cf-scenario-copy {margin-left:1.85rem;margin-right:.5rem}
  #main .chem-folio.chem-focus .cf-sheet {padding:1.15rem}
  #main .chem-folio.chem-focus .cf-sheet .ce-list-title {margin-bottom:1rem}
  #main .chem-folio.chem-focus .ce-worksheet :is(.cf-sample,.cms-image) img {
    position:static;height:clamp(8rem,41vw,15rem);border-radius:0 0 .25rem .25rem;object-position:50% 50%;
  }
  #main .chem-folio.chem-focus .ce-worksheet .cf-sample img {object-position:50% 22%}
  #main .chem-folio.chem-focus .ce-reference-lead {gap:1rem}
  #main .chem-folio.chem-focus .ce-reference-lead .cms-image img {max-height:14rem}
}
@media (prefers-reduced-motion:reduce) {
  #main .chem-folio.chem-focus .cf-toggle::after {transition:none}
}
