:root {
  --oa-paper: #fff;
  --oa-ink: #0a0a0a;
  --oa-secondary: #505050;
  --oa-muted: #6b6b6b;
  --oa-soft: #f2f2f4;
  --oa-silver: #d6d6dc;
  --oa-line: rgb(0 0 0 / 18%);
  --oa-width: 1248px;
  --oa-reading: 740px;
  --oa-gutter: 34px;
  --oa-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --oa-display: clamp(36px, 4.6vw, 56px);
}

.oa-library {
  background: var(--oa-paper) !important;
  color: var(--oa-ink);
  font-family: var(--oa-font) !important;
  -webkit-font-smoothing: antialiased;
}

/* Legacy templates set type on individual cells, links, and controls.
   The brand layer takes precedence while icon glyphs keep their own font. */
@layer brand-type {
  body.oa-library :where(*):not(.fa, .fas, .far, .fab, .fal, .fad, .fat, [class^="fa-"], [class*=" fa-"], .dashicons, [class*="dashicons-"]) {
    font-family: var(--oa-font) !important;
  }
}

.oa-library main :is(h1, h2, h3) {
  color: var(--oa-ink);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.oa-library a:focus-visible,
.oa-library :is(button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--oa-ink);
  outline-offset: 4px;
}

.oa-research-band {
  display: grid;
  min-height: 34px;
  padding: 7px var(--oa-gutter);
  place-items: center;
  background: var(--oa-silver);
  border-bottom: 1px solid #c3c3c8;
  color: var(--oa-ink);
  font: 600 14px/1.3 var(--oa-font);
  text-align: center;
}

/* Keep the existing disclosure and search machinery. Only the chrome changes. */
.oa-library #siteHeader {
  background: var(--oa-paper) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--oa-line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.oa-library #siteHeader .header-inner {
  min-height: 92px;
  padding-inline: var(--oa-gutter);
  max-width: 1660px;
  column-gap: clamp(12px, 1.3vw, 26px);
}

.oa-library .header-logo {
  display: inline-flex;
  gap: 12px !important;
  align-items: center;
  min-width: max-content;
  text-decoration: none;
}

.oa-library .header-logo::before {
  content: "";
  width: 88px;
  height: 40px;
  flex: 0 0 auto;
  background: url("/one-aminos/wordmark.png") center / contain no-repeat;
}

.oa-library #siteHeader .main-nav-list > .nav-item > :is(a, button) {
  color: var(--oa-ink) !important;
  font-size: 13px;
  font-weight: 680;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.oa-library #siteHeader :is(.dropdown-menu, .pdmh-quick-search, .pdmh-search-panel) {
  background: var(--oa-paper) !important;
  border-color: var(--oa-line) !important;
}

.oa-library #siteHeader :is(.pdmh-search, .pdmh-search input, .hamburger-btn, .pdmh-mobile-account) {
  border-color: var(--oa-line) !important;
  border-radius: 8px;
  box-shadow: none;
}

.oa-library #siteHeader :is(.pdmh-search input, .hamburger-btn, .pdmh-mobile-account) { background: var(--oa-paper); }
.oa-library .mobile-quick-nav { background: var(--oa-paper) !important; border-top: 1px solid var(--oa-line); }

/* Home: a single action above a grid of illustrated reading links. */
.oa-library.pdhome-studio #main-content { background: var(--oa-paper) !important; }

.oa-home-hero,
.oa-home-guides {
  box-sizing: border-box;
  width: min(100%, var(--oa-width));
  margin-inline: auto;
  padding-inline: var(--oa-gutter);
  text-align: center;
}

.oa-home-hero { padding-block: clamp(62px, 8vw, 108px) clamp(57px, 7vw, 88px); }

.oa-library .oa-home-hero h1 {
  max-width: 820px;
  margin: 0 auto clamp(28px, 4vw, 40px);
  color: var(--oa-ink) !important;
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 700;
  line-height: .99;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.oa-library .oa-browse-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 420px);
  min-height: 58px;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  color: var(--oa-ink);
  background: var(--oa-silver);
  text-align: center;
  text-decoration: none;
  font: 700 18px/1.2 var(--oa-font);
  letter-spacing: -.015em;
}

.oa-browse-button::before,
.oa-browse-button::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.oa-browse-button::before {
  inset: -4px;
  background: conic-gradient(from var(--oa-angle), var(--oa-silver) 0 67%, #171717 78% 85%, var(--oa-silver) 95%);
  animation: oa-orbit 5s linear infinite;
}

.oa-browse-button::after {
  inset: 2px;
  border-radius: 6px;
  background: var(--oa-silver);
}

@property --oa-angle { syntax: "<angle>"; initial-value: 70deg; inherits: false; }
@keyframes oa-orbit { to { --oa-angle: 430deg; } }

.oa-home-guides { padding-bottom: clamp(48px, 6vw, 82px); }

.oa-library .oa-home-guides h2 {
  margin: 0 0 28px;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.045em;
}

.oa-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.oa-guide-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  background: var(--oa-paper);
  border: 1px solid var(--oa-line);
  border-radius: 12px;
  color: var(--oa-ink);
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}

.oa-guide-card:hover {
  background: var(--oa-soft);
  border-color: var(--oa-ink);
  color: var(--oa-ink);
  text-decoration: none;
}

.oa-guide-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  background: var(--oa-soft);
  border-bottom: 1px solid var(--oa-line);
}

.oa-library .oa-guide-card h3 {
  display: grid;
  align-content: center;
  margin: 0;
  min-height: 58px;
  padding: 14px 8px;
  font-size: clamp(15px, 1.8vw, 21px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.028em;
}

@media (max-width: 700px) {
  .oa-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oa-library .oa-home-guides h2 { margin-bottom: 20px; }
}

.oa-library.pdhome-studio :is(.home-content,.pdhome-explorer) {
  width: min(100%, var(--oa-width));
  max-width: var(--oa-width);
  margin-inline: auto;
  padding-inline: var(--oa-gutter);
}

.oa-library.pdhome-studio main :is(.section-block, .extra-cta-section) {
  border-color: var(--oa-line);
  box-shadow: none;
  margin-block: 0 54px;
}

.oa-library.pdhome-studio :is(.section-block, .extra-cta-section) > h2 {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.05;
}

.oa-library.pdhome-studio :is(.section-block, .extra-cta-section) > p {
  max-width: max(60%, 290px);
  margin-inline: auto;
  text-align: center;
}

.oa-library.pdhome-studio .home-card {
  background: var(--oa-soft) !important;
  border: 1px solid var(--oa-line) !important;
  border-radius: 14px;
  box-shadow: none !important;
}

/* Common hero and internal layout rules. */
.oa-library main > :is(.catalog-hero, .blog-hero, .post-hero, .page-hero, .pdh-hero, .search-hero, .category-hero, .author-hero, .molecular-studio) {
  background: var(--oa-paper) !important;
  border-color: var(--oa-line) !important;
  box-shadow: none !important;
  padding-block: clamp(42px, 5.1vw, 74px) 34px !important;
}

.oa-library main > :is(.catalog-hero, .blog-hero, .post-hero, .page-hero, .pdh-hero, .search-hero, .category-hero, .author-hero)::before,
.oa-library main > :is(.catalog-hero, .blog-hero, .post-hero, .page-hero, .pdh-hero, .search-hero, .category-hero, .author-hero)::after { display: none !important; }

.oa-library main :is(.catalog-title, .blog-title, .post-title, .page-title, .pdh-hero-title, .search-title, .category-title, .author-title, .pd-prep-page h1, .molecular-studio h1) {
  max-width: 1010px;
  margin-inline: auto;
  color: var(--oa-ink) !important;
  font-size: var(--oa-display) !important;
  font-weight: 700 !important;
  line-height: 1.04 !important;
  letter-spacing: -.052em !important;
  text-align: center;
  text-wrap: balance;
}

.oa-library main :is(.catalog-hero-content, .blog-hero-content, .post-hero-content, .page-hero-content, .pdh-hero-content, .search-hero-content, .category-hero-content, .author-hero-content) {
  padding-inline: var(--oa-gutter);
  text-align: center;
}

.oa-library main :is(.catalog-subtitle, .blog-subtitle, .post-excerpt, .page-intro, .pdh-hero-lead) {
  max-width: var(--oa-reading);
  margin-inline: auto;
  color: var(--oa-muted) !important;
  font-size: clamp(16px, 1.6vw, 19px) !important;
  line-height: 1.6;
}

.oa-library main :is(.catalog-container, .blog-container, .search-container, .pdh-outer, .single-post-layout, .page-layout, .protocol-article) {
  width: 100%;
  max-width: var(--oa-width) !important;
  box-sizing: border-box;
  padding-inline: var(--oa-gutter) !important;
  margin-inline: auto;
}

.oa-library main :is(.blog-wrapper, .search-wrapper, .pdh-outer, .catalog-container, .blog-container, .post-hero, .pd-prep-page) { background: var(--oa-paper); }

.oa-library main :is(.catalog-card, .post-card, .blog-card, .result-card, .related-card, .pdh-info-grid article) {
  background: var(--oa-paper) !important;
  border: 1px solid var(--oa-line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  min-width: 0;
}

.oa-library main :is(.catalog-card-image, .post-image, .blog-card-image, .post-featured-image) {
  border-radius: 0 !important;
  background: var(--oa-soft) !important;
  filter: grayscale(1);
}

.oa-library main .catalog-card {
  border: 0 !important;
  text-align: center;
}

.oa-library main .catalog-card .catalog-card-image {
  border: 2px solid var(--oa-ink) !important;
  aspect-ratio: 1;
  height: auto;
}

.oa-library main .catalog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oa-library main :is(.catalog-card-content, .result-card) :is(h2, h3) {
  color: var(--oa-ink);
  font-weight: 700;
}

.oa-library main :is(.post-content, .single-post-content, .page-content, .protocol-article) {
  color: var(--oa-secondary);
  box-shadow: none !important;
}

.oa-library main :is(.single-post-content, .page-content, .protocol-article) p { line-height: 1.68; }

.oa-library main :is(.single-post-content, .page-content, .protocol-article) p a {
  text-decoration: underline;
  text-underline-offset: .14em;
}

.oa-library main :is(.catalog-btn, .primary-cta, .secondary-cta, .result-link, .pd-prep-page__actions a) {
  min-height: 44px;
  border: 1px solid var(--oa-line) !important;
  border-radius: 8px !important;
  background: var(--oa-soft);
  color: var(--oa-ink) !important;
  box-shadow: none !important;
  font-weight: 650;
}

.oa-library main :is(.catalog-btn, .result-link, .secondary-cta):hover {
  background: var(--oa-ink) !important;
  color: var(--oa-paper) !important;
}

.oa-library main :is(input:not([type="radio"], [type="checkbox"], [type="range"]), select, textarea) {
  background: var(--oa-paper);
  color: var(--oa-ink);
  border-color: #c9c9cd !important;
  border-radius: 8px !important;
}

.oa-library :is(main table, .pdc, .pdh-outer) { font-variant-numeric: tabular-nums; }

.oa-library main :is(.table-scroll, .table-wrap, .table-wrapper, .protocol-table-scroll, .pdh-table-wrap) {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.oa-library main table :is(th, td) { border-color: var(--oa-line); }
.oa-library main table th { background: var(--oa-soft); color: var(--oa-ink); }

.oa-library main :is(.section.quick, .pdhome-faq-list, .pdh-section, .pdc-card, .pd-prep-embed, .pdh-sources) {
  box-shadow: none !important;
  border-color: var(--oa-line);
}

.oa-library main :is(.pdc-card, .pdh-section, .pdhome-faq-list) { border-radius: 14px; }

.oa-library.pdfooter-studio .site-footer {
  background: var(--oa-silver) !important;
  --footer-accent: #292929;
  --footer-text: #242424;
  --footer-border: #b9b9bf;
  --footer-hover: #050505;
  color: var(--oa-ink) !important;
}

.oa-library.pdfooter-studio .site-footer :is(a, p, h2, h3, .footer-disclaimer, .footer-copyright, .footer-heading, .footer-accordion-trigger) {
  color: var(--oa-ink) !important;
}

.oa-library.pdfooter-studio .site-footer :is(.peptide, .dosages) { color: var(--oa-ink) !important; }

.oa-library .site-footer .footer-logo img { filter: grayscale(1); }

@media (max-width: 1150px) {
  .oa-library #siteHeader .header-inner { min-height: 76px; }
}

@media (max-width: 767px) {
  :root { --oa-gutter: 18px; }
  .oa-library #siteHeader .header-inner { min-height: 64px; }
  .oa-library .header-logo::before { width: 69px; height: 31px; }
  .oa-library .header-logo { gap: 8px !important; }
  .oa-research-band { min-height: 30px; font-size: 13px; }
  .oa-library.pdhome-studio main :is(.section-block, .extra-cta-section) { margin-bottom: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .oa-browse-button::before { animation: none; background: #8d8d93; }
  .oa-guide-card { transition: none; }
}

@media print {
  .oa-research-band { display: none; }
}

/* Remove the inherited tinted decoration from controls and reading surfaces. */
.oa-library #siteHeader.pdmh-header::before,
.oa-library .pdh-intro::after,
.oa-library .pdh-hero-content::after { display: none !important; }

.oa-library #siteHeader :is(.pdmh-search, .pdmh-search button) {
  background: var(--oa-paper) !important;
}

.oa-library #siteHeader :is(.header-actions, .pdmh-utilities) img,
.oa-library main :is(.pdh-section-icon, .page-title, .pdh-hero-title, .pdc-card) :is(i, img),
.oa-library main :is(.page-title, .pdh-hero-title)::before,
.oa-library main .toc-container i { filter: grayscale(1); }

.oa-library #main-content,
.oa-library main :is(.page-layout, .page-content, .blog-container, .catalog-container, .pdh-content) {
  background-color: var(--oa-paper);
}

.oa-library.pdchart-studio main > .pdh-hero { padding-bottom: 22px !important; }

.oa-library.pdchart-studio .pdh-intro {
  padding: 18px 22px;
  margin-block: 0 16px;
  border: 1px solid var(--oa-line);
  background: var(--oa-soft);
  box-shadow: none;
  color: var(--oa-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.oa-library.pdchart-studio .pdh-stat {
  min-height: 78px;
  padding: 10px 8px;
  background: var(--oa-soft);
  box-shadow: none;
  border-color: var(--oa-line);
}

.oa-library.pdchart-studio :is(.pdh-jumpnav, .pdh-controls, .pdh-tablewrap) {
  background: var(--oa-paper);
  border-color: var(--oa-line);
  box-shadow: none;
}

.oa-library.pdchart-studio .pdh-tablewrap { overflow-x: auto; }

.oa-library.pdchart-studio .pdh-filters button {
  min-height: 44px;
  border-radius: 999px;
  background: var(--oa-soft);
  color: var(--oa-ink);
}

.oa-library.pdchart-studio .pdh-filters button[aria-pressed="true"],
.oa-library.pdchart-studio .pdh-filters button.active {
  background: var(--oa-silver);
  color: var(--oa-ink);
  border-color: var(--oa-ink);
  box-shadow: none;
}

.oa-library.pdchart-studio .pdh-table tbody tr:nth-child(even) { background: #f7f7f8; }
.oa-library.pdmcalc-studio :is(.pdc-card, .page-content, .page-layout) { background: var(--oa-paper); }

.oa-library .site-footer .footer-wave { display: none; }
.oa-library .site-footer .footer-logo { gap: 10px; align-items: center; }
.oa-library .site-footer .footer-logo::before {
  content: "";
  display: block;
  flex: 0 0 88px;
  width: 88px;
  height: 40px;
  background: url("/one-aminos/wordmark.png") center / contain no-repeat;
}
.oa-library .site-footer .footer-logo img { display: none; }

@media (max-width: 560px) {
  .oa-library .oa-home-hero h1 { font-size: clamp(34px, 9vw, 43px); }
  .oa-library .oa-browse-button { min-height: 54px; font-size: 17px; }
}

/* Decorative illustrations yield to the text. Control icons still carry meaning. */
.oa-library main :is(h1, h2, h3, h4, h5) > :is(i, svg[aria-hidden="true"], img[alt=""]),
.oa-library :is(.pdmh-resource-item, .pdmh-resources-heading) img[alt=""],
.oa-library main :is(.section-icon, .pdh-section-icon, .pdhome-guide-step__number),
.oa-library .calc-intro-section li > i,
.oa-library main :is(.page-title, .pdh-hero-title)::before {
  display: none !important;
}

.oa-library main :is(h1, h2, h3, h4, h5) { color: var(--oa-ink) !important; }

.oa-library.pdfooter-studio .site-footer .footer-logo::before {
  content: none !important;
  display: none !important;
}
.oa-library.pdfooter-studio .site-footer .footer-logo img {
  display: block !important;
  width: 108px;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.oa-library .site-footer .footer-logo { min-height: 49px; }

.oa-library.pdhome-studio #featured-protocols > :is(h2, p),
.oa-library.pdhome-studio .pdhome-chart-guide > :is(h2, p),
.oa-library.pdhome-studio .calc-intro-section > :is(h2, h3, p),
.oa-library.pdhome-studio .calc-calculator-section :is(h3, p),
.oa-library.pdhome-studio .home-card > :is(h3, p) {
  color: var(--oa-ink) !important;
  margin-inline: auto;
  text-align: center;
  justify-content: center;
}

.oa-library.pdhome-studio :is(#featured-protocols, .pdhome-chart-guide, .calc-container) {
  text-align: center;
}

.oa-library.pdhome-studio :is(#featured-protocols, #essential-guides) .home-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  align-items: start;
  gap: 12px;
  padding: clamp(18px, 3vw, 32px);
  background: var(--oa-soft) !important;
  border-color: var(--oa-line) !important;
}

.oa-library.pdhome-studio :is(#featured-protocols, #essential-guides) .home-card::after { display: none; }

.oa-library.pdhome-studio :is(#featured-protocols, #essential-guides) .home-card > * { grid-area: auto / 1; }

.oa-library.pdhome-studio :is(#featured-protocols, #essential-guides) .home-card h3 {
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 0;
  width: 100%;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.16;
  text-wrap: balance;
}

.oa-library.pdhome-studio :is(#featured-protocols, #essential-guides) .home-card p {
  margin: 0 auto;
  max-width: 32ch;
  font-size: 15px;
  line-height: 1.5;
  text-wrap: balance;
}

.oa-library.pdhome-studio .home-card .dose-links {
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 9px;
  margin-inline: auto;
}

.oa-library.pdhome-studio #featured-protocols .home-card .dose-links { margin-top: 0; }

@media (min-width: 750px) {
  .oa-library.pdhome-studio :is(#featured-protocols, #essential-guides) .home-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 22px);
  }
  .oa-library.pdhome-studio :is(#featured-protocols, #essential-guides) .home-card {
    padding-inline: clamp(12px, 2vw, 24px);
  }
  .oa-library.pdhome-studio :is(#featured-protocols, #essential-guides) .home-card h3 { min-height: 2.32em; }
}

.oa-library.pdhome-studio #featured-protocols .home-card {
  grid-template-rows: 1fr auto;
  gap: 14px;
  padding-block: clamp(15px, 2vw, 22px);
}

.oa-library.pdhome-studio #featured-protocols .oa-featured-card-heading {
  display: grid;
  align-self: center;
  gap: 5px;
  width: 100%;
  color: var(--oa-ink);
}

.oa-library.pdhome-studio #featured-protocols .oa-featured-card-heading h3 {
  grid-area: auto / 1;
  min-height: 0;
  font-size: clamp(18px, 1.8vw, 22px);
}

.oa-library.pdhome-studio #featured-protocols .oa-featured-card-heading p {
  grid-area: auto / 1;
  max-width: none;
  color: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-wrap: pretty;
}

.oa-library.pdhome-studio .home-card .dose-links a,
.oa-library.pdhome-studio #essential-guides .home-card > a,
.oa-library.pdhome-studio .calc-calculator-section :is(button, .calc-link),
.oa-library .oa-solid-link {
  min-height: 44px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--oa-line);
  border-radius: 8px;
  background: var(--oa-silver) !important;
  color: var(--oa-ink) !important;
  font: 650 15px/1.25 var(--oa-font);
  text-align: center;
  text-decoration: none;
  box-shadow: none;
}

.oa-library.pdhome-studio .home-card .dose-links a:hover,
.oa-library.pdhome-studio #essential-guides .home-card > a:hover,
.oa-library .oa-solid-link:hover { border-color: var(--oa-ink); }

.oa-library.pdhome-studio #featured-protocols .dose-links a {
  min-width: 58px;
  padding-inline: 10px;
  white-space: nowrap;
}

.oa-library :is(
  #pdms-pilot .strengths a[aria-current="page"],
  .pdpb-variant-pill.is-current,
  #featured-protocols .dose-links a:hover,
  #featured-protocols .dose-links a:focus-visible
) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: var(--oa-line) !important;
  background: var(--oa-silver) !important;
  color: var(--oa-ink) !important;
  box-shadow: none;
}

.oa-library :is(
  #pdms-pilot .strengths a[aria-current="page"],
  .pdpb-variant-pill.is-current,
  #featured-protocols .dose-links a:hover,
  #featured-protocols .dose-links a:focus-visible
)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--oa-angle), var(--oa-silver) 0 67%, #171717 78% 85%, var(--oa-silver) 95%);
  animation: oa-orbit 5s linear infinite;
}

.oa-library :is(
  #pdms-pilot .strengths a[aria-current="page"],
  .pdpb-variant-pill.is-current,
  #featured-protocols .dose-links a:hover,
  #featured-protocols .dose-links a:focus-visible
)::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: 6px;
  background: var(--oa-silver);
}

.oa-library.pdhome-studio .pdhome-guide-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  align-items: start;
  gap: 10px;
  text-align: center;
  color: var(--oa-ink);
  background: var(--oa-soft);
}

.oa-library.pdhome-studio .pdhome-guide-step h3 { margin: 0; }
.oa-library.pdhome-studio .pdhome-guide-step .oa-solid-link { margin-top: 4px; }

.oa-library.pdhome-studio #main-content :is(.section-block, .extra-cta-section) > h2 {
  display: block;
  margin-inline: auto;
  color: var(--oa-ink);
  text-align: center;
}

.oa-library.pdhome-studio #main-content .pdhome-chart-guide { background: var(--oa-paper); }
.oa-library.pdhome-studio #main-content .pdhome-faq details { background: var(--oa-soft); }
.oa-library.pdhome-studio #main-content .pdhome-faq summary { color: var(--oa-ink); }

.oa-library.pdhome-studio #main-content .extra-cta-section {
  background: var(--oa-soft);
  text-align: center;
}
.oa-library.pdhome-studio #main-content .extra-cta-section::before { display: none; }
.oa-library.pdhome-studio #main-content .extra-cta-buttons { margin: 22px auto 0; }
.oa-library.pdhome-studio #main-content .extra-cta-buttons a {
  display: grid;
  place-items: center;
  border: 1px solid var(--oa-line) !important;
  background: var(--oa-silver) !important;
  color: var(--oa-ink) !important;
  text-align: center;
}
.oa-library.pdhome-studio #main-content .extra-cta-buttons a:hover {
  border-color: var(--oa-ink) !important;
  box-shadow: none;
}

.oa-library.pdhome-studio :is(.pdhome-guide-step p, .calc-intro-section li) { color: var(--oa-ink); }

.oa-library.pdhome-studio .calc-container {
  display: grid;
  justify-items: center;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  padding: clamp(26px, 4vw, 50px) !important;
  background: var(--oa-soft) !important;
  border-radius: 14px;
}

.oa-library.pdhome-studio :is(.calc-intro-section, .calc-calculator-section) {
  width: min(100%, 760px);
  min-width: 0;
}

.oa-library.pdhome-studio .calc-intro-section ul {
  max-width: 640px;
  margin-inline: auto;
  padding-inline: 0;
}
.oa-library.pdhome-studio .calc-intro-section li {
  display: grid;
  grid-template-columns: 4.5em minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  text-align: start;
}
.oa-library.pdhome-studio .calc-intro-section li strong {
  color: inherit;
  font-size: inherit;
  white-space: nowrap;
}
.oa-library.pdhome-studio #peptide-calculator { margin-inline: auto; }
.oa-library.pdhome-studio #peptide-calculator label { display: block; text-align: center; color: var(--oa-ink); }

.oa-library .oa-reconstitution {
  box-sizing: border-box;
  width: min(100%, 1000px);
  margin-inline: auto;
  padding: clamp(32px, 4.5vw, 56px) var(--oa-gutter);
  text-align: center;
  color: var(--oa-ink);
}

.oa-library #peptide-prep-simulator {
  margin: 0 auto 54px;
  background: var(--oa-soft);
  border: 1px solid var(--oa-line);
  border-radius: 14px;
}

.oa-library .oa-reconstitution :is(h1, h2) {
  margin: 0 auto 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  text-wrap: balance;
}

.oa-library .oa-reconstitution p {
  margin: 0 auto 24px;
  color: var(--oa-ink);
  font-size: clamp(16px, 2vw, 19px);
}

.oa-library .oa-reconstitution-demo {
  display: block;
  width: min(100%, 540px);
  height: clamp(505px, 112vw, 600px);
  margin-inline: auto;
  background: var(--oa-paper);
  border: 1px solid var(--oa-line);
  border-radius: 10px;
}

.oa-library .oa-protocol-demo .section-head { justify-content: center; text-align: center; }
.oa-library .oa-protocol-demo .section-body { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .oa-library :is(#pdms-pilot .strengths a[aria-current="page"], .pdpb-variant-pill.is-current, #featured-protocols .dose-links a:hover, #featured-protocols .dose-links a:focus-visible)::before {
    animation: none;
    background: #8d8d93;
  }
}

.oa-library main :is(.pdh-jumpnav, .pdh-cta, .pdpb-variant-pill, .catalog-card-content, .pdh-controls, .toc-container) :is(i[aria-hidden="true"], svg[aria-hidden="true"]) {
  display: none !important;
}

.oa-library.pdchart-studio .pdh-cta a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.oa-library .oa-lipo-reference {
  width: min(100%, 760px);
  margin-inline: auto;
  padding: 56px var(--oa-gutter) 80px;
  text-align: center;
}

.oa-library .oa-lipo-reference h1 { margin: 0 0 12px; }
.oa-library .oa-lipo-reference header p { margin: 0; }
.oa-library .oa-lipo-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.oa-library .oa-product-link { margin: 16px auto 0; }

body.oa-library #main-content .oa-catalog-hero {
  background: var(--oa-paper) !important;
  box-shadow: none;
  text-align: center;
}

body.oa-library #main-content .oa-catalog-hero::before,
body.oa-library #main-content .oa-catalog-hero::after,
body.oa-library #main-content .oa-catalog-hero :is(.molecular-title-row, .page-hero-content, .post-hero-content)::before,
body.oa-library #main-content .oa-catalog-hero :is(.molecular-title-row, .page-hero-content, .post-hero-content)::after { display: none; }

body.oa-library #main-content .oa-catalog-hero .page-head {
  padding: clamp(24px, 3.5vw, 44px) var(--oa-gutter);
}

body.oa-library #main-content .oa-catalog-hero :is(.molecular-title-row, .page-hero-content, .post-hero-content) {
  display: block;
  margin: 0 auto;
  min-height: 0;
  background: transparent;
}

body.oa-library #main-content .oa-catalog-hero h1 {
  max-width: 840px;
  margin: 0 auto;
  color: var(--oa-ink);
  text-align: center;
}

body.oa-library #pdms-pilot .oa-catalog-hero .jump-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: auto;
  margin: clamp(14px, 2vw, 20px) auto 0;
}

body.oa-library #pdms-pilot .oa-catalog-hero .jump-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--oa-line);
  border-radius: 8px;
  background: var(--oa-paper);
  color: var(--oa-ink);
  font-size: clamp(13px, 1.3vw, 15px);
  text-align: center;
  box-shadow: none;
}

body.oa-library #pdms-pilot .oa-catalog-hero .jump-links a:hover {
  border-color: var(--oa-ink);
  background: var(--oa-silver);
}

body.oa-library #pdms-pilot .oa-catalog-hero :is(.pa-protocol-tools, .pdpb-variant-switcher, .pdpb-variant-pills, .strengths) {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  max-width: none;
}

body.oa-library #pdms-pilot .oa-catalog-hero :is(.pdpb-variant-pills, .strengths) { width: auto; }
body.oa-library #pdms-pilot .oa-catalog-hero .pdpb-variant-pill { width: auto; min-width: 54px; }

body.oa-library .oa-lipo-reference .oa-catalog-hero {
  padding: clamp(20px, 4vw, 40px);
  border-radius: 12px;
}

/* One Aminos paper and silver surfaces across the learning site. */
body.oa-library #main-content {
  --page-bg: var(--oa-paper);
  --page-text: var(--oa-ink);
  --page-heading: var(--oa-ink);
  --page-border: var(--oa-line);
  background: var(--oa-paper) !important;
}

body.oa-library #main-content > :is(.page-hero, .blog-hero, .catalog-hero, .search-hero, .pdh-hero) {
  background: var(--oa-paper) !important;
  box-shadow: none;
}

body.oa-library #main-content :is(.pdc-card, .pdh-section, .pdh-sources, .pdh-info-grid > article) {
  background: var(--oa-soft) !important;
  border-color: var(--oa-line);
}

body.oa-library #main-content :is(.page-hero, .blog-hero, .catalog-hero, .search-hero, .pdh-hero)::before,
body.oa-library #main-content :is(.page-hero, .blog-hero, .catalog-hero, .search-hero, .pdh-hero)::after {
  filter: grayscale(1);
}

/* The guide column is shared by the beginner, reconstitution, measurement and storage guides. */
body.oa-reading-guide #main-content::before,
body.oa-reading-guide #main-content::after,
body.oa-reading-guide .page-hero::before,
body.oa-reading-guide .page-hero::after,
body.oa-reading-guide .page-title::before,
body.oa-reading-guide .pdmg-section > h2::before,
body.oa-reading-guide .pdmg-section > h2::after {
  display: none !important;
}

body.oa-reading-guide #main-content .page-hero {
  padding: clamp(34px, 5vw, 68px) var(--oa-gutter) clamp(20px, 3vw, 38px);
  border: 0;
}

body.oa-reading-guide .page-hero-content {
  width: min(100%, 900px);
  margin-inline: auto;
  padding: 0;
}

body.oa-reading-guide .page-title {
  display: block;
  margin-inline: auto;
  text-align: center;
}

body.oa-reading-guide #main-content .page-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 934px !important;
  padding-inline: var(--oa-gutter) !important;
  margin: 0 auto clamp(38px, 7vw, 80px);
}

body.oa-reading-guide #main-content .page-content {
  width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent !important;
  border: 0;
  box-shadow: none;
}

body.oa-reading-guide #main-content .page-content :is(p, li, dt, dd, figcaption, h2, h3, h4, .page-intro) {
  color: var(--oa-ink);
}

body.oa-reading-guide #main-content .page-content :is(p, li, dt, dd) {
  font-size: clamp(15px, 1.65vw, 18px);
  line-height: 1.65;
}

body.oa-reading-guide #main-content .page-content a,
body.oa-reading-guide .oa-guide-contents a {
  color: var(--oa-ink);
  text-decoration: underline;
  text-underline-offset: .18em;
}

body.oa-reading-guide .page-content :is(h2[id], h3[id], .oa-guide-anchor) {
  scroll-margin-top: 128px;
}

.oa-guide-anchor { display: block; }

body.oa-reading-guide #main-content :is(.oa-guide-panel, .oa-guide-intro, .pdmg-intro, .pdmg-section, .pdmg-figure, .pdmg-units) {
  background: var(--oa-soft) !important;
  border: 1px solid var(--oa-line);
  border-radius: 14px;
  box-shadow: none;
}

body.oa-reading-guide #main-content :is(.oa-guide-panel, .pdmg-section, .pdmg-intro) {
  margin: 0 0 16px;
}

body.oa-reading-guide :is(.oa-guide-panel, .oa-guide-intro, .pdmg-intro) {
  padding: clamp(18px, 4vw, 34px);
}

body.oa-reading-guide .oa-guide-intro { text-align: center; }
body.oa-reading-guide #main-content .oa-guide-intro p { margin: 0 auto; }
body.oa-reading-guide #main-content .oa-guide-intro p + p { margin-top: 8px; }

body.oa-reading-guide #main-content :is(.oa-guide-panel, .pdmg-section) > h2 {
  display: block;
  min-height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

body.oa-reading-guide #main-content .pdmg-section > h2 {
  padding: clamp(18px, 4vw, 34px) clamp(18px, 4vw, 34px) 0;
}
body.oa-reading-guide #main-content .pdmg-section-content {
  padding: 16px clamp(18px, 4vw, 34px) clamp(18px, 4vw, 34px);
  border: 0;
}

body.oa-reading-guide #main-content .page-content :is(h2, h3) > i[aria-hidden="true"] { display: none; }
body.oa-reading-guide #main-content :is(.pdmg-figure, .guide-figure) img { filter: grayscale(1); }

.oa-guide-contents {
  width: 100%;
  margin: 0;
  padding: 4px 0;
  text-align: center;
}
body.oa-library #main-content .oa-guide-contents ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.oa-library #main-content .oa-guide-contents li { margin: 0; }
body.oa-library #main-content .oa-guide-contents a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--oa-line);
  border-radius: 8px;
  background: var(--oa-silver);
  color: var(--oa-ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
body.oa-library #main-content .oa-guide-contents a:hover { border-color: var(--oa-ink); }

body.oa-reading-guide #main-content .oa-guide-figure,
body.oa-reading-guide #main-content .oa-chain-diagram {
  width: min(100%, 640px);
  margin: 20px auto 0;
}

body.oa-reading-guide #main-content .oa-guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
}

body.oa-reading-guide #main-content :is(.oa-guide-figure, .oa-chain-diagram) figcaption {
  padding: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
.oa-vial-states {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 60%;
  margin-inline: auto;
}

.oa-chain-diagram {
  padding: clamp(14px, 5vw, 24px);
  border: 1px solid var(--oa-line);
  border-radius: 10px;
  background: var(--oa-paper);
}
.oa-chain-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(6px, 3vw, 24px);
  text-align: center;
  font-size: 14px;
  font-weight: 650;
}
.oa-chain-groups > div { display: grid; justify-items: center; gap: 8px; }
.oa-chain-nodes { display: flex; gap: 7px; }
.oa-chain-nodes i {
  position: relative;
  width: clamp(14px, 4vw, 26px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--oa-ink);
}
.oa-chain-nodes i:nth-child(2) { background: var(--oa-muted); }
.oa-chain-nodes i:nth-child(3) { background: var(--oa-silver); }
.oa-chain-linked i + i::before {
  position: absolute;
  top: 50%;
  right: 100%;
  width: 7px;
  height: 2px;
  background: var(--oa-ink);
  content: "";
}
.oa-chain-arrow { font-size: 20px; line-height: 1; }

.oa-guide-units {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
}
.oa-guide-units > div {
  padding: 10px 6px;
  border: 1px solid var(--oa-line);
  border-radius: 8px;
  background: var(--oa-paper);
  text-align: center;
}
.oa-guide-units dt { font-weight: 700; }
.oa-guide-units dd { margin: 0; overflow-wrap: anywhere; }
.oa-guide-links { display: flex; justify-content: center; text-align: center; flex-wrap: wrap; gap: 8px 18px; }

/* Storefront footer hierarchy, with the wordmark and signup grouped together. */
body.oa-library.pdfooter-studio .site-footer :is(.footer-main, .footer-bottom, .footer-newsletter) {
  background: transparent;
  box-shadow: none;
}
body.oa-library.pdfooter-studio .site-footer::before,
body.oa-library.pdfooter-studio .site-footer::after,
body.oa-library.pdfooter-studio .site-footer .footer-newsletter::before {
  display: none;
}

body.oa-library.pdfooter-studio .site-footer .footer-main {
  padding-block: clamp(26px, 4vw, 44px) 28px;
}

body.oa-library.pdfooter-studio .site-footer .footer-grid {
  grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  margin: 0;
}

body.oa-library.pdfooter-studio .site-footer .footer-about {
  display: block;
  grid-column: auto;
  margin: 0;
  padding: 0;
  border: 0;
}
body.oa-library.pdfooter-studio .site-footer .footer-logo { margin: 0 0 20px; }

body.oa-library.pdfooter-studio .site-footer .footer-newsletter {
  display: block;
  padding: 0;
  border: 0;
}

body.oa-library.pdfooter-studio .site-footer .footer-newsletter > p {
  margin-bottom: 12px !important;
  color: var(--oa-ink) !important;
}
body.oa-library.pdfooter-studio .site-footer .newsletter-form input[type="email"],
body.oa-library.pdfooter-studio .site-footer .newsletter-form input[type="email"]:focus {
  min-height: 44px;
  background: var(--oa-paper);
  border: 1px solid var(--oa-line);
  color: var(--oa-ink);
  caret-color: var(--oa-ink);
}
body.oa-library.pdfooter-studio .site-footer .newsletter-form input[type="email"]::placeholder { color: var(--oa-muted); }
body.oa-library.pdfooter-studio .site-footer .newsletter-form button {
  min-height: 44px;
  border: 1px solid var(--oa-ink);
  background: var(--oa-ink);
  box-shadow: none;
  color: var(--oa-paper);
}
body.oa-library.pdfooter-studio .site-footer .newsletter-form button:hover {
  background: #242424;
  box-shadow: none;
}
body.oa-library.pdfooter-studio .site-footer :is(a, button, .newsletter-form input[type="email"]):focus-visible {
  outline-color: var(--oa-ink) !important;
}

body.oa-library.pdfooter-studio .site-footer .footer-bottom {
  border-color: var(--oa-line);
}
body.oa-library.pdfooter-studio .site-footer .footer-bottom-content { flex-wrap: wrap; }

@media (max-width: 768px) {
  body.oa-library.pdfooter-studio .site-footer .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  body.oa-library.pdfooter-studio .site-footer .footer-about {
    width: min(100%, 400px);
    margin: 0 auto 18px;
    text-align: center;
  }
  body.oa-library.pdfooter-studio .site-footer :is(.footer-logo, .footer-legal-links) { justify-content: center; }
  body.oa-library.pdfooter-studio .site-footer .footer-accordion { background: var(--oa-soft); }
}

/* The directories use the same centered titles and product photography as the shop. */
body.oa-library .oa-catalog-directory :is(.catalog-title, .catalog-hero, .catalog-hero-content, .catalog-content)::before,
body.oa-library .oa-catalog-directory :is(.catalog-hero, .catalog-hero-content, .catalog-content)::after {
  display: none;
}

body.oa-library .oa-catalog-directory .catalog-stats[hidden] { display: none !important; }

body.oa-library .oa-catalog-directory .catalog-title {
  display: block;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}

body.oa-library .oa-catalog-directory :is(.toggle-buttons, .dosage-type-nav) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 680px);
  margin-inline: auto;
}

body.oa-library .oa-catalog-directory :is(.toggle-btn, .dosage-type-nav__item) {
  color: var(--oa-ink);
  background: var(--oa-soft);
  box-shadow: none;
}

body.oa-library .oa-catalog-directory :is(.toggle-btn.active, .dosage-type-nav__item.is-active) {
  border-color: var(--oa-ink);
  color: var(--oa-ink);
  background: var(--oa-silver);
}

body.oa-library .oa-catalog-directory :is(.toggle-btn, .dosage-type-nav__item) > i { display: none; }

body.oa-library .oa-catalog-directory .catalog-card-image {
  background: var(--oa-soft) !important;
  filter: none;
}

body.oa-library .oa-catalog-directory .catalog-card-image img {
  object-fit: contain;
  background: var(--oa-soft);
}

body.oa-library .oa-catalog-directory .oa-lipo-photo-pair {
  display: flex;
  align-items: center;
}

body.oa-library .oa-catalog-directory .oa-lipo-photo-pair img { width: 50%; height: auto; }
body.oa-library .oa-catalog-directory .oa-catalog-image-empty { aspect-ratio: 1; }

body.oa-library #main-content .oa-store-photo {
  object-fit: contain;
  background-color: var(--oa-soft);
}

body.oa-library #pdms-pilot .oa-store-photo.quick-photo,
body.oa-library #main-content .intro-image .oa-store-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  margin: 0 auto;
  border-radius: 8px;
}

body.oa-library #main-content .oa-lipo-product-photo {
  display: block;
  width: min(100%, 270px);
  margin: 20px auto 0;
}

body.oa-library #main-content .oa-lipo-product-photo img { display: block; width: 100%; height: auto; }

@media (min-width: 1025px) {
  body.oa-library #siteHeader.pdmh-header .header-inner {
    grid-template-columns: auto minmax(0, 1fr) minmax(150px, 195px);
  }

  body.oa-library #siteHeader.pdmh-header #pdmh-resources {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-flow: row;
    width: min(328px, calc(100vw - 32px));
    padding: 8px;
  }
}

body.oa-library #siteHeader.pdmh-header #pdmh-resources > li > a {
  min-height: 44px;
  padding: 9px 10px;
}

body.oa-library #siteHeader.pdmh-header #pdmh-resources .pdmh-resources-heading { padding: 8px 10px 3px; }

/* Neutral backgrounds and icon treatments for captured research templates. */
body.oa-library #main-content {
  accent-color: var(--oa-ink);
}

body.oa-library #pdms-pilot :is(.section .section-head, .toc, .toc-title, .view-source, .supplies-list > li,
  .pd-contextual-links__group, .pd-contextual-links__card, .product, .sample-note) {
  background: var(--oa-soft);
  border-color: var(--oa-line);
  box-shadow: none;
}

body.oa-library #pdms-pilot .section .section-head::after { display: none; }
body.oa-library #pdms-pilot :is(.toc, .toc-title) :is(a, strong, span) { color: var(--oa-ink); }
body.oa-library #pdms-pilot .schedule tbody tr:nth-child(even) { background: var(--oa-soft); }

body.oa-library #main-content :is(.ms-icon, .pdms-icon, .pdmg-syringe-visual img, .pdmg-units-grid img,
  .pdh-section-icon, .pdpb-protocol-v2 .rp-ico, .post-content > :is(h2,h3) > i) {
  filter: grayscale(1) !important;
}

body.oa-library #main-content :is(.pdmg-syringe-visual, .pd-cf-success, .pdc-copy.done, .pdh-callout, .pdh-disc,
  #calcResults, .pdc-steps li, .pdc-card > h2, .pdc-results > h2, .pdpb-article-contextual-links,
  .pdpb-protocol-v2 .dch-head, .pd-inline-context, .pd-editorial-transparency) {
  background: var(--oa-soft);
  border-color: var(--oa-line);
  color: var(--oa-ink);
}

body.oa-library #main-content :is(.pdc-card > h2, .pdc-results > h2, .post-content h2, .pdc-seo h2)::before,
body.oa-library #main-content :is(.pdc-card > h2, .pdc-results > h2, .post-content h2, .pdc-seo h2)::after {
  filter: grayscale(1);
}

body.oa-library.pdarticle-studio #main-content .post-content h2 {
  background: var(--oa-soft);
  border-color: var(--oa-line);
}

body.oa-library #main-content :is(.pdpb-article-protocol-list, .pdpb-article-guide-list) a,
body.oa-library #main-content .pdpb-protocol-v2 :is(.pdpb-variant-pill, .pdpb-variant-label, .dch-text p.dch-lead) {
  color: var(--oa-ink);
  border-color: var(--oa-line);
}

body.oa-library #main-content :is(.pdpb-article-protocol-list, .pdpb-article-guide-list) a:hover,
body.oa-library #main-content .pdpb-protocol-v2 .pdpb-variant-pill:hover {
  background: var(--oa-silver);
  color: var(--oa-ink);
}

body.oa-library #main-content .page-numbers { color: var(--oa-ink); }

body.oa-library .oa-catalog-directory .catalog-card {
  background: var(--oa-soft) !important;
  border: 1px solid var(--oa-line) !important;
}

body.oa-library #main-content .oa-full-reference {
  padding: clamp(15px, 3vw, 26px);
  border: 1px solid var(--oa-line);
  border-radius: 14px;
  background: var(--oa-paper);
  color: var(--oa-ink);
  scroll-margin-top: 128px;
}
body.oa-library #main-content .oa-full-reference {
  width: 100%;
  max-width: 864px;
  margin-inline: auto;
}
body.oa-library #main-content #full-reference-title {
  margin: 0 0 24px;
  padding: 0;
  text-align: center;
}
body.oa-library #main-content :is(.page-content, .post-content, .oa-guide-panel, .oa-full-reference, .single-post-content, .auto-references-section, .works-cited-section) :is(h2, h3, h4)::after {
  display: none !important;
  content: none !important;
}
body.oa-library.oa-reading-summary .post-hero-content .oa-guide-contents { margin-top: 20px; }
body.oa-library.oa-reading-summary #main-content :is(.page-layout, .single-post-layout) {
  max-width: var(--oa-width) !important;
}
body.oa-library.oa-reading-summary #main-content .single-post-layout { display: block; }
body.oa-library.oa-reading-summary .single-post-content { min-width: 0; }
body.oa-library #main-content .oa-reading-summary-content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
body.oa-library #main-content .oa-reading-summary-content .oa-guide-panel {
  min-width: 0;
  margin: 0;
  padding: clamp(16px, 1.7vw, 22px);
  border: 1px solid var(--oa-line);
  border-radius: 14px;
  background: var(--oa-soft);
  color: var(--oa-ink);
}
body.oa-library #main-content .oa-reading-summary-content .oa-guide-panel h2 {
  margin: 0;
  padding: 0;
  font-size: 21px;
  line-height: 1.2;
  text-align: center;
  scroll-margin-top: 128px;
}
body.oa-library #main-content .oa-reading-summary-content .oa-guide-panel p {
  color: var(--oa-ink);
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.5;
}
@media (max-width: 959px) {
  body.oa-library #main-content .oa-reading-summary-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  body.oa-library #main-content .oa-reading-summary-content { grid-template-columns: minmax(0, 1fr); }
}

body.oa-library #main-content .blog-title {
  display: block;
  margin-inline: auto;
  text-align: center;
}
body.oa-library #main-content :is(.blog-hero, .blog-title)::before,
body.oa-library #main-content :is(.blog-hero, .blog-container, .blog-wrapper)::after { display: none; }

body.oa-library #main-content :is(.featured-hero-img, .card-thumb, .featured-image) .oa-store-photo {
  object-fit: contain;
  object-position: center;
  background: var(--oa-soft);
}
body.oa-library #main-content .single-post-layout > article { min-width: 0; }
body.oa-library #main-content .single-post-content .featured-image img { max-width: 100%; }
body.oa-library #main-content .single-post-content .featured-image .oa-store-photo {
  display: block;
  width: 100%;
  height: min(420px, 72vw);
}
body.oa-library #main-content :is(.post-content img, .post-content figure, .featured-hero-img img, .card-thumb img) {
  filter: grayscale(1);
}

.oa-article-visual {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.oa-article-visual > :is(img, picture, .pd-image-zoom-trigger) {
  display: block;
  margin: 0;
  max-width: 100%;
}
.oa-article-visual > .pd-image-zoom-trigger::after { display: none; }
.oa-article-visual img { filter: grayscale(1); }

.oa-article-mark {
  position: absolute;
  z-index: 1;
  display: block;
  background: var(--oa-soft) url("/one-aminos/wordmark.png") center / auto 80% no-repeat;
  pointer-events: none;
}

.oa-article-mark-footer {
  position: static;
  width: 100%;
  height: 24px;
  background-size: auto 16px;
}

.pd-image-lightbox .oa-article-visual { margin: 0 auto; }

body.oa-library #main-content .blog-post-list .blog-post-card {
  background: var(--oa-soft);
  border-color: var(--oa-line);
  box-shadow: none;
}

@media (min-width: 769px) {
  body.oa-library.pdfooter-studio .site-footer .footer-accordion-heading { margin: 0 0 10px; }
  body.oa-library.pdfooter-studio .site-footer .footer-links li { margin: 0; }
  body.oa-library.pdfooter-studio .site-footer .footer-links a { min-height: 28px; padding: 3px 0; line-height: 1.45; }
}

body.pdchart-studio #main-content :is(.pdh-stats, .pdh-filters) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.pdchart-studio #main-content .pdh-stats { gap: clamp(6px, 1.5vw, 16px); }
body.pdchart-studio #main-content .pdh-stat { min-width: 0; padding: 12px 4px; }
body.pdchart-studio #main-content .pdh-stat .l { font-size: clamp(10px, 1.2vw, 13px); }
body.pdchart-studio #main-content .pdh-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 300px);
  gap: 12px;
  align-items: center;
}
body.pdchart-studio #main-content .pdh-filters { gap: 6px; width: 100%; }
body.pdchart-studio #main-content .pdh-filters button {
  min-width: 0; min-height: 44px; margin: 0; padding: 8px 10px; font-size: 14px;
}
body.pdchart-studio #main-content .pdh-search { width: 100%; min-width: 0; min-height: 44px; background: white; }
@media (max-width: 720px) {
  body.pdchart-studio #main-content .pdh-controls { grid-template-columns: minmax(0, 1fr); }
}

body.oa-library #pdms-pilot .section .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 10px;
  min-height: 0;
  padding: clamp(15px, 2vw, 24px) var(--oa-gutter);
  text-align: center;
}
body.oa-library #pdms-pilot .section .section-head h2 {
  width: 100%; margin: 0; padding: 0; text-align: center; text-wrap: balance;
}
body.oa-library #pdms-pilot .section-head .oa-product-link { margin: 0; }

body.oa-library #pdms-pilot .product a.supplier,
body.oa-library #main-content .oa-product-link {
  background: var(--oa-silver) !important; color: var(--oa-ink) !important;
  border: 1px solid var(--oa-line); box-shadow: none;
}
body.oa-library #pdms-pilot .product a.supplier:hover,
body.oa-library #main-content .oa-product-link:hover { border-color: var(--oa-ink); }
body.oa-library #main-content .oa-citations > summary {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  background: var(--oa-soft); color: var(--oa-ink); border-radius: 8px;
  padding: 16px; cursor: pointer; list-style: none;
}
body.oa-library #main-content .oa-citations > summary::-webkit-details-marker { display: none; }
body.oa-library #main-content .oa-citations > summary::after {
  content: ''; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
body.oa-library #main-content .oa-citations[open] > summary::after { transform: rotate(225deg); }
body.oa-library #main-content .oa-citations > summary > :is(h2,h3,h4) {
  width: auto; min-height: 0; background: transparent !important; border: 0; margin: 0; padding: 0;
}
body.oa-library #siteHeader .blog-mega-menu { background: white; width: min(530px, 85vw); }
body.oa-library #siteHeader .blog-mega-menu .mega-menu-header { background: white; }
body.oa-library #siteHeader .blog-mega-menu .mega-menu-grid {
  display: grid; grid-template-columns: 1fr; padding: 8px; gap: 4px;
}
body.oa-library #siteHeader .blog-mega-menu .mega-post-card {
  display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 12px;
  padding: 6px; color: var(--oa-ink);
}
body.oa-library #siteHeader .blog-mega-menu .mega-post-card:hover { background: var(--oa-soft); }
body.oa-library #siteHeader .blog-mega-menu .mega-post-thumb {
  width: 56px; height: 56px; border-radius: 6px; overflow: hidden; background: var(--oa-soft);
}
body.oa-library #siteHeader .blog-mega-menu .mega-post-thumb img { width: 100%; height: 100%; object-fit: contain; }

body.oa-library #main-content .post-hero {
  padding: clamp(26px, 4vw, 50px) var(--oa-gutter) clamp(22px, 3vw, 36px) !important;
  background: white !important;
}
body.oa-library #main-content .post-hero .post-hero-content { padding: 0; margin: auto; }
body.oa-library #main-content .post-hero h1 { max-width: 28ch; margin: auto; text-wrap: balance; font-size: clamp(2rem, 3.7vw, 3.25rem); line-height: 1.09; }
body.oa-library #main-content .single-post-layout { margin-top: 0 !important; }
body.oa-library #main-content :is(.toc-container, nav.toc) .toc-title { justify-content: center; text-align: center; }
body.oa-library #main-content .toc-title p { margin-inline: auto; }
@media (min-width: 992px) {
  body.oa-library #main-content:has(.toc-container, nav.toc),
  body.oa-library #main-content :is(.single-post-layout,.page-layout,.page-surround,#pdms-pilot):has(.toc-container, nav.toc) { overflow: visible !important; }
  body.oa-library #main-content :is(.page-layout, .single-post-layout) > :is(.toc-container, nav.toc) {
    position: sticky !important;
    align-self: start;
    top: var(--oa-sticky-top, 88px) !important;
    max-height: calc(100dvh - var(--oa-sticky-top, 88px) - 16px) !important;
    display: flex; flex-direction: column;
  }
  body.oa-library #main-content :is(.toc-container, nav.toc) :is(.nav-list-wrapper, .toc-scroll) { overflow-y: auto; min-height: 0; max-height: inherit; overscroll-behavior: contain; }
}
body.oa-library #main-content.oa-catalog-directory .toggle-buttons { gap: 12px; margin: 22px auto; }
body.oa-library #main-content.oa-catalog-directory .catalog-card-image,
body.oa-library #main-content.oa-catalog-directory .catalog-card-image img { border: 0 !important; outline: 0; box-shadow: none !important; }
body.oa-library #main-content.oa-catalog-directory .catalog-btn { display: flex; justify-content: center; background: #080808 !important; color: white !important; border: 0; box-shadow: none !important; }
body.oa-library #main-content.oa-catalog-directory :is(.catalog-card-image,.catalog-btn)::before,
body.oa-library #main-content.oa-catalog-directory :is(.catalog-card-image,.catalog-btn)::after { content: none !important; }
body.oa-library .oa-term-definition { border-inline-start: 2px solid #ccc; padding-inline-start: 14px; }

body.oa-library.pdhome-studio #main-content .pdhome-after-explorer { margin-top: 0; padding-top: 0; }
body.oa-library.pdhome-studio #main-content .home-content:has(.pdhome-chart-guide) { margin-bottom: 0; padding-bottom: 0; }
body.oa-library.pdhome-studio #main-content .pdhome-chart-guide { margin-bottom: 0; }
body.oa-library.pdhome-studio #main-content #essential-guides { margin-top: 0; padding-top: clamp(26px,4vw,44px); }
body.oa-library .oa-reconstitution { width: min(100%, 1050px); }
body.oa-library .oa-reconstitution :is(h1,h2) { margin-bottom: clamp(18px, 3vw, 32px); }
body.oa-library .oa-reconstitution-demo { width: 100%; height: 555px; border-radius: 14px; }
@media (max-width: 740px) { body.oa-library .oa-reconstitution-demo { height: 750px; } }
body.oa-library #main-content .toc-container,
body.oa-library #main-content .toc-container .nav-list-wrapper { background: white !important; }
body.oa-library .oa-coa-cover { display: flex; height: 100%; width: 100%; min-height: 50px; flex-direction: column; justify-content: center; align-items: center; gap: 8px; background: #f2f2f2; color: #151515; }
body.oa-library .oa-coa-cover img { width: 28% !important; height: auto !important; object-fit: contain; }
body.oa-library .oa-coa-cover b { font-size: clamp(13px, 1.6vw, 24px); letter-spacing: .08em; }
.oa-contents-toggle { display: none; }
@media (max-width: 1024px) {
  body.oa-library #main-content:has(nav.toc,nav.toc-container),
  body.oa-library #main-content :is(.single-post-layout,.page-layout,.page-surround,#pdms-pilot):has(nav.toc,nav.toc-container) { overflow: visible !important; }
  body.oa-library #main-content :is(.page-layout,.single-post-layout) > :is(nav.toc,nav.toc-container):not([hidden]) {
    position: sticky !important; top: var(--oa-sticky-top,72px) !important; z-index: 5; align-self: start;
    max-height: 54dvh !important; background: white; margin-bottom: 12px;
  }
  body.oa-library #pdms-pilot .page-layout > .toc:has(.oa-contents-toggle) { display: block; }
  body.oa-library #pdms-pilot .toc:has(.oa-contents-toggle) .toc-title { padding: 0; }
  body.oa-library #pdms-pilot .toc:has(.oa-contents-toggle) .toc-title > p,
  body.oa-library #pdms-pilot .toc:has(.oa-contents-toggle):not(.oa-mobile-open) .toc-scroll { display: none; }
  body.oa-library #pdms-pilot .oa-contents-toggle {
    display: block; width: 100%; min-height: 44px; border: 0; border-radius: inherit;
    background: #f4f4f4; color: #222; font: inherit; font-weight: 650; cursor: pointer;
  }
  .oa-contents-toggle::after { content: '⌄'; margin-left: 8px; }
  .oa-contents-toggle[aria-expanded="true"]::after { content: '⌃'; }
  body.oa-library #main-content :is(nav.toc,nav.toc-container) :is(.toc-scroll,.nav-list-wrapper) { overflow-y: auto; max-height: 42dvh; }
}

body.oa-library a.oa-coa-library { color: white; background: #111; text-decoration: none; border-color: #111; }
body.oa-library .blog-sidebar .sidebar-widget { background: #fff; border-color: #d8d8d8; color: #181818; }
body.oa-library .blog-sidebar .widget-title::before { display: none; }
body.oa-library .blog-sidebar .category-list a { color: #323232; }
body.oa-library .blog-sidebar :is(.category-count,.category-list a:hover) { background: #f0f0f0; color: #222; }
body.oa-library #pdms-pilot .products :is(img.oa-store-photo,img.oa-supply-image) { width: 100%; height: clamp(115px,14vw,190px); margin: 0 auto; padding: 6px; object-fit: contain; border: 0; box-shadow: none; background: transparent; clip-path: inset(1.4%); }
body.oa-library #pdms-pilot .products img.oa-supply-image { mix-blend-mode: multiply; }
body.oa-library #pdms-pilot .quick-photo { object-fit: contain; clip-path: inset(1.4%); }
body.oa-library .oa-migrated-protocol .jump-links, body.oa-library .oa-migrated-protocol .pdpb-variant-switcher { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin:12px auto 0; }
body.oa-library .oa-migrated-protocol .table-wrap { overflow-x:auto; }
body.oa-library .oa-migrated-protocol .section-body > p:empty { display: none; }
body.oa-library .oa-migrated-protocol .section-body > header:empty { display:none; }
body.oa-library #main-content.oa-catalog-directory .catalog-hero { margin: 0; padding-block: clamp(28px,4vw,56px) clamp(18px,2.6vw,32px) !important; }
body.oa-library #main-content.oa-catalog-directory .catalog-container { margin-top: 0 !important; padding-top: 0; }
body.oa-library .oa-catalog-directory .catalog-card-image .oa-store-photo, body.oa-library #pdms-pilot .oa-store-photo { mix-blend-mode: multiply; }
.oa-all-peptides a { display:block; padding:12px 16px; border-bottom:1px solid #ddd; color:#141414; font-weight:700; }
body.oa-library #main-content .oa-guide-spread { display:grid !important; grid-template-columns:minmax(190px,235px) minmax(0,1fr); gap:clamp(18px,2.5vw,32px); max-width:var(--oa-width) !important; width:calc(100% - 2 * var(--oa-gutter)); margin:0 auto 40px !important; align-items:start; }
body.oa-library #main-content .oa-guide-spread > article { display:block; min-width:0; width:100%; max-width:none; padding:clamp(14px,2vw,26px); background:white; border:1px solid #ddd; border-radius:14px; }
.oa-guide-spread .featured-image img { width:100%; height:clamp(180px,30vw,370px); object-fit:contain; background:#f3f3f3; border-radius:10px; }
body.oa-library #main-content .oa-guide-spread .oa-guide-panel:not(.oa-reading-summary-content > *) { max-width:none; padding:24px 0; background:white; border:0; border-radius:0; }
.oa-guide-sidebar { background:white; border:1px solid #d8d8d8; border-radius:14px; overflow:hidden; }
.oa-guide-sidebar .toc-title { background:#f6f6f6; padding:14px; text-align:center; font-weight:700; }
.oa-guide-sidebar .toc-title p { margin:0; }
.oa-guide-sidebar .toc-scroll { padding:8px; max-height:60vh; overflow:auto; }
.oa-guide-sidebar ol { list-style:none; padding:0; margin:0; }
.oa-guide-sidebar li a { display:block; padding:9px 12px; border-radius:6px; color:#454545; text-decoration:none; }
.oa-guide-sidebar li a:is(:hover,[aria-current]) { background:#ededed; color:#111; }
@media(max-width:991px) {
 body.oa-library #main-content .oa-guide-spread { grid-template-columns:minmax(0,1fr); }
 .oa-guide-sidebar:not(.oa-mobile-open) .toc-scroll { display:none; }
 .oa-guide-sidebar .toc-title:has(button) p { display:none; }
}
.oa-topics { width:min(100% - 2 * var(--oa-gutter),var(--oa-width)); margin:0 auto 55px; }
.oa-topics section { margin:36px 0 0; scroll-margin-top:110px; }
.oa-topics section h2 { margin:0 0 12px; font-size:clamp(1.28rem,2vw,1.6rem); }
.oa-topic-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:10px; }
.oa-topic-grid .oa-topic-card { display:grid; align-content:start; gap:5px; border:1px solid #ddd; border-radius:9px; background:#f7f7f7; padding:14px 16px; text-decoration:none; color:#151515; }
.oa-topic-card span { font-size:.91rem; line-height:1.45; color:#464646; }
.oa-topic-grid .oa-topic-card:hover { border-color:#999; background:white; }
body.oa-library #pdms-pilot.oa-migrated-protocol .toc-scroll a { display:block; padding-inline:12px; }
body.oa-library .oa-guide-spread .featured-image { margin:0 0 20px; }
body.oa-library #main-content .oa-guide-spread { padding-inline:0 !important; }
body.oa-library #main-content .post-content h2::before { content:none !important; }
@media(max-width:1024px) {
 body.oa-library #main-content .toc-container:not(.is-open) .nav-list-wrapper { max-height:0 !important; }
 body.oa-library #main-content .oa-guide-sidebar .toc-title { padding:0; }
 body.oa-library #main-content .oa-guide-sidebar .oa-contents-toggle { display:block; border:0; width:100%; padding:12px; font:inherit; min-height:44px; background:#f5f5f5; color:#171717; }
 .oa-guide-sidebar .toc-title:has(button) p,.oa-guide-sidebar:has(button):not(.oa-mobile-open) .toc-scroll { display:none; }
}
body.oa-library #main-content.oa-catalog-directory .dosage-type-nav__item { min-height:46px; padding:10px 16px; }

body.oa-library.pdarticle-studio #main-content::before,
body.oa-library.pdarticle-studio #main-content::after { content: none; }

@media (max-width: 1024px) {
  body.oa-library #main-content .toc-title:has(.toc-toggle) {
    position: relative;
    justify-content: center;
    padding-inline: 42px;
    min-height: 48px;
  }
  body.oa-library #main-content .toc-title > .toc-toggle {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 18px;
    justify-content: flex-end;
    background: transparent;
    border: 0;
    color: var(--oa-ink);
  }
  body.oa-library #main-content .toc-toggle > i { display: none; }
  body.oa-library #main-content .toc-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  body.oa-library #main-content .toc-toggle[aria-expanded="true"]::after { transform: rotate(225deg); }
}

body.oa-library #main-content :is(.post-hero-content, .catalog-hero-content, .pdh-hero-content)::after,
body.oa-library #main-content .hero-accent-line { display: none; content: none; }
body.oa-library #main-content .single-post-content > .post-content:first-child {
  padding-top: clamp(18px, 2vw, 26px);
}
body.oa-library #main-content .single-post-content > .post-content:first-child > :is(h2, h3):first-child {
  margin-block-start: 0;
  padding-block-start: 0;
  border-block-start: 0;
}
body.oa-library #main-content .post-hero-content .molecular-title-row:only-child,
body.oa-library #main-content .post-hero-content .molecular-title-row:only-child h1 { margin-bottom: 0; }
