/* Drag bars so tables, chat, and staff columns can be sized by hand. */
.display-frame {
  display: flex;
  flex-direction: column;
  flex: none;
  min-width: 0;
  width: 100%;
  position: relative;
}
.display-frame.is-sized > .table-scroll {
  height: var(--display-h);
  max-height: var(--display-h);
  overflow: auto;
}
.display-frame.is-sized > [data-live-visitors-host] {
  height: var(--display-h);
  max-height: var(--display-h);
  overflow: auto;
}
.display-frame.is-sized > [data-desk-list] {
  height: var(--display-h);
  max-height: var(--display-h);
  overflow: auto;
}
.display-frame.is-sized > .visit-profile {
  height: var(--display-h);
  max-height: var(--display-h);
  min-height: 0;
  overflow: hidden;
}
body.messenger-app .msg-section.has-sized-display {
  max-height: none;
  align-self: stretch;
}
body.messenger-app .msg-section.has-sized-display > .display-frame {
  max-height: none;
}
body.messenger-app .thread-fold .display-frame.is-sized > .visit-profile {
  height: var(--display-h);
  max-height: var(--display-h);
  overflow: hidden;
}
.display-handle {
  appearance: none;
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  min-height: 0;
  background: transparent;
  color: inherit;
  touch-action: none;
  flex: none;
  box-shadow: none;
  font-size: 0;
  line-height: 0;
}
.display-handle.is-s {
  height: 1.15rem;
  width: 100%;
  cursor: ns-resize;
}
.display-handle.is-s::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 0.28rem;
  margin: 0.28rem auto 0;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 42%, transparent);
}
.display-handle.is-e {
  position: absolute;
  inset-block: 0.6rem;
  inset-inline-end: -0.4rem;
  width: 0.85rem;
  cursor: ew-resize;
  z-index: 8;
}
.display-handle.is-e::after {
  content: "";
  position: absolute;
  inset-block: 12%;
  inset-inline-start: 0.3rem;
  width: 0.22rem;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 45%, transparent);
}
.display-handle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}
html body .display-handle,
html body button.display-handle,
html body .live-chat .live-chat-handle {
  min-height: 0;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
html body .display-handle.is-s {
  width: 100%;
  height: 1.15rem;
}
aside.side > button.display-handle {
  color: #f3eadc;
}
body.is-display-dragging {
  user-select: none;
}
body.is-display-dragging iframe,
body.is-display-dragging textarea {
  pointer-events: none;
}

/* Homepage lead: three product videos share the first row, including after theme sheets. */
html body .product-grid.video-lead,
html body.has-pack.view-home .catalog-home .product-grid.video-lead,
html body .nk-mosaic.product-grid.video-lead,
html body .crystal-mosaic.product-grid.video-lead,
html body .geode-mosaic.product-grid.video-lead {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none;
  min-height: 0;
  padding-bottom: 1.2rem;
}
html body .product-grid.video-lead > .product-card {
  min-width: 0;
}
@media (max-width: 860px) {
  html body .product-grid.video-lead,
  html body.has-pack.view-home .catalog-home .product-grid.video-lead,
  html body .nk-mosaic.product-grid.video-lead,
  html body .crystal-mosaic.product-grid.video-lead,
  html body .geode-mosaic.product-grid.video-lead {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }
  html body.has-pack.view-home .product-grid.video-lead .thumb,
  html body .product-grid.video-lead .thumb {
    min-height: 0;
    aspect-ratio: 3 / 4;
  }
  html body .product-grid.video-lead .product-option-prices {
    font-size: clamp(0.42rem, 6.6cqi, 0.88rem);
  }
}

/* Pack lines stay one row on every card width. */
html body .product-option-prices,
html body .weight-tiers {
  grid-template-columns: max-content max-content max-content;
  justify-content: start;
  width: max-content;
  min-width: 100%;
  max-width: none;
}
html body .weight-stage .weight-tiers {
  min-width: 0;
  width: max-content;
  max-width: 100%;
}
html body .product-option-each,
html body .weight-tier-each {
  grid-column: auto;
  justify-self: start;
}

/* The article grows with the photo, facts, and buy controls. The essay stays below it. */
html body .product-page.has-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  align-content: start;
  justify-content: center;
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: visible;
  padding: 0.6rem 0 1.25rem;
}
@media (min-width: 900px) {
  html body .product-page.has-media {
    grid-template-columns: minmax(15rem, 22rem) minmax(18rem, 32rem);
    gap: 1rem 1.25rem;
    padding: 0.7rem 0 1.5rem;
  }
  html body .product-page.has-media .gallery {
    position: sticky;
    top: calc(var(--sn-main-top, var(--sn-header-h, 4.2rem)) + 0.4rem);
    align-self: start;
  }
  html body .product-page.has-media .specs { grid-template-columns: 1fr 1fr; }
}
html body .product-page.has-media .gallery,
html body .product-page.has-media .buy {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  min-height: 0;
  align-self: start;
  justify-self: stretch;
  overflow: visible;
}
html body .product-page.has-media .gallery {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.4rem;
  align-content: start;
  justify-items: stretch;
}
html body .product-page.has-media .gallery-frame {
  position: relative;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
}
html body .product-page.has-media .gallery-frame .gallery-open {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: none;
  margin: 0;
}
html body .product-page.has-media .gallery-frame .gallery-stage,
html body .product-page.has-media .gallery-frame .gallery-stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
}
html body .product-page.has-media .gallery .thumbs {
  width: 100%;
  max-height: none;
  gap: 0.4rem;
  justify-content: flex-start;
}
html body .product-page.has-media .gallery .thumbs img { width: 3.5rem; height: 3.5rem; }
html body .product-page.has-media .buy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.45rem;
  height: auto;
  max-height: none;
  overflow: visible;
}
html body .product-page.has-media .product-info-screen {
  max-height: none;
  overflow: visible;
}
html body .product-page.has-media .weight-tiers {
  max-height: none;
  overflow: visible;
}
html body .product-page.has-media .product-action-row {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}
html body .product-page.has-media .product-head { flex: 0 0 auto; }
html body .product-page.has-media .product-head .eyebrow { margin: 0; }
html body .product-page.has-media .product-head h1 {
  margin: 0.08rem 0 0.15rem;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.12;
}
html body .product-page.has-media .identity-chips { flex-wrap: wrap; margin: 0.2rem 0 0; }
html body .product-page.has-media .product-info-screen,
html body .product-page.has-media .product-commerce,
html body .product-page.has-media .product-courier-buy,
html body .product-page.has-media .product-courier-buy form,
html body .product-page.has-media .weight-picks,
html body .product-page.has-media .weight-stage,
html body .product-page.has-media .weight-tiers,
html body .product-page.has-media .price,
html body .product-page.has-media .product-action-row,
html body .product-page.has-media .product-ask {
  flex: 0 0 auto;
  flex-grow: 0;
  height: auto;
  max-height: none;
  min-height: 0;
  margin-top: 0;
}
html body .product-page.has-media .product-info-screen {
  display: grid;
  gap: 0.35rem;
  overflow: visible;
}
html body .product-page.has-media .short,
html body .product-page.has-media .price,
html body .product-page.has-media .product-ready-jump,
html body .product-page.has-media .product-ask,
html body .product-page.has-media .weight-quote {
  margin: 0;
}
html body .product-page.has-media .short {
  font-size: 0.95rem;
  line-height: 1.35;
}
html body .product-page.has-media .specs {
  margin: 0;
  gap: 0.22rem 0.85rem;
  font-size: 0.86rem;
  line-height: 1.28;
}
html body .product-page.has-media .specs div {
  grid-template-columns: minmax(5.75rem, 7.25rem) minmax(0, 1fr);
  gap: 0.35rem;
  align-items: baseline;
}
html body .product-page.has-media .specs dd:empty::after {
  content: "—";
  opacity: 0.45;
}
html body .product-page.has-media .product-commerce,
html body .product-page.has-media .product-courier-buy form {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  height: auto;
  overflow: visible;
}
html body .product-page.has-media .price {
  font-size: 1.35rem;
  line-height: 1.15;
}
html body .product-page.has-media .weight-picks {
  display: grid;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.55rem 0.7rem;
  gap: 0.35rem;
  height: auto;
  overflow: visible;
}
html body .product-page.has-media .weight-stage {
  display: grid;
  width: 100%;
  max-width: 100%;
  height: auto;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "tiers"
    "amount"
    "quote"
    "notice";
  align-items: start;
  justify-items: stretch;
  overflow: visible;
}
html body .product-page.has-media .weight-stage:has(.weight-free-drop:not([hidden])) {
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 14rem);
  grid-template-areas:
    "tiers notice"
    "amount notice"
    "quote notice";
}
html body .product-page.has-media .weight-stage > .weight-tiers { grid-area: tiers; }
html body .product-page.has-media .weight-stage > .weight-grams { grid-area: amount; }
html body .product-page.has-media .weight-stage > .weight-quote { grid-area: quote; }
html body .product-page.has-media .weight-stage > .weight-free-drop { grid-area: notice; }
html body .product-page.has-media .weight-stage .weight-tiers {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  justify-content: start;
  overflow: visible;
}
html body .product-page.has-media .weight-tier-each { justify-self: end; }
html body .product-page.has-media .weight-tier {
  min-height: 2.15rem;
  padding: 0.28rem 0.4rem;
  align-items: center;
}
html body .product-page.has-media .weight-grams {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  margin: 0;
}
html body .product-page.has-media .weight-grams input {
  width: 6.5rem;
  max-width: 8rem;
  min-height: 2.5rem;
  font-size: 1rem;
}
html body .product-page.has-media .weight-quote {
  width: 100%;
  padding-top: 0.35rem;
  font-size: 0.95rem;
  justify-content: space-between;
}
html body .product-page.has-media .product-action-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
  margin-top: 0;
}
html body .product-page.has-media .product-action-row .btn,
html body .product-page.has-media .product-ask .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: normal;
}
html body .product-page.has-media .product-ask .btn { width: 100%; }
html body .product-page.has-media .product-commerce {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
}
html body .product-page.has-media .product-courier-buy {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
}
html body .product-page.has-media .product-courier-buy > form {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  overflow: visible;
}
html body .product-page.has-media .product-courier-buy .weight-picks {
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}
html body .product-page.has-media .product-courier-buy .product-action-row {
  flex: 0 0 auto;
}
@media (max-width: 899px) {
  html body .product-page.has-media .gallery-frame {
    width: min(100%, 22rem);
    max-width: 100%;
    margin-inline: auto;
  }
  html body .product-page.has-media .gallery-frame .gallery-open {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 4 / 5;
  }
  html body .product-page.has-media .gallery .thumbs img { width: 3rem; height: 3rem; }
  html body .product-page.has-media .specs { grid-template-columns: 1fr; }
}

/* Homepage above-the-fold: hide Mystery Box registration banner, compact hero, and surface products without scrolling. */
html body .free-draw-announce,
html body [data-promo="mystery-registration-draw"] {
  display: none !important;
}
html body .block-hero,
html body.has-pack.view-home .block-hero,
html body.has-pack.view-home main > .block:first-of-type:has(.hero-copy),
html body main > .hero {
  min-height: 0 !important;
  padding-block: 0.65rem 0.45rem !important;
}
html body .block-hero.variant-cinematic .hero-media,
html body .block-hero.variant-poster .hero-media,
html body .block-hero.variant-split .hero-media {
  min-height: 8.5rem !important;
  max-height: 11rem !important;
}
html body .block-hero .hero-copy,
html body .block-hero.variant-cinematic .block-inner,
html body .block-hero.variant-poster .block-inner,
html body.has-pack.view-home .block-hero .hero-copy {
  padding: 0.7rem 1.1rem !important;
}
html body .block-hero h1,
html body.has-pack.view-home .block-hero .hero-copy h1,
html body main > .hero h1 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem) !important;
  line-height: 1.1 !important;
  margin: 0.08rem 0 0.22rem !important;
}
html body .block-hero .lede,
html body .nk-hero .lede,
html body .crystal-chamber .lede,
html body .geode-chamber .lede,
html body main > .hero .lede {
  margin: 0.15rem 0 0.45rem !important;
  font-size: 0.88rem !important;
  line-height: 1.34 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html body .block-hero .lede p,
html body .nk-hero .lede p,
html body .crystal-chamber .lede p,
html body .geode-chamber .lede p {
  margin: 0 !important;
}
html body .block-hero .btn,
html body .nk-hero .btn,
html body .crystal-chamber .btn,
html body .geode-chamber .btn {
  min-height: 2.15rem !important;
  padding: 0.34rem 0.88rem !important;
  font-size: 0.8rem !important;
}
html body .nk-hero {
  min-height: 0 !important;
}
html body .nk-hero-copy {
  padding: 0.75rem 0 0.7rem !important;
}
html body .nk-hero h1 {
  font-size: clamp(1.65rem, 3.6vw, 2.45rem) !important;
  line-height: 1.05 !important;
}
html body .crystal-chamber,
html body .geode-chamber,
html body .theme-geode:not(.has-pack) .geode-chamber {
  min-height: 0 !important;
  padding: 0.7rem 0 0.75rem !important;
  gap: 1rem !important;
}
html body .crystal-copy h1,
html body .geode-copy h1,
html body .theme-geode:not(.has-pack) .geode-copy h1 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem) !important;
  margin: 0 0 0.2rem !important;
}
html body .geode-hex-row,
html body .crystal-facets {
  margin: 0.25rem 0 0.35rem !important;
}
html body .crystal-note,
html body .geode-note {
  margin: 0 0 0.4rem !important;
  font-size: 0.8rem !important;
}
html body .geode-object svg,
html body .crystal-object svg {
  max-height: 6.5rem !important;
  width: auto !important;
}
@media (max-width: 720px) {
  html body .geode-object,
  html body .crystal-object {
    display: none !important;
  }
}
html body .block-home_catalog,
html body .home-fluent,
html body .home-fluent > .catalog-home:first-child,
html body .nk-catalog:first-of-type,
html body .crystal-signatures,
html body .geode-signatures {
  padding-top: 0.2rem !important;
  margin-top: 0 !important;
}
html body .home-fluent .section-head,
html body .nk-catalog .section-head,
html body .crystal-signatures .section-head,
html body .geode-signatures .section-head {
  margin: 0 0 0.4rem !important;
  padding-block: 0 !important;
}
html body .home-fluent .section-head h2,
html body .nk-catalog .section-head h2,
html body .crystal-signatures .section-head h2,
html body .geode-signatures .section-head h2 {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem) !important;
  margin: 0 !important;
}

/* Substance Encyclopedia Hub (/substances/) & Detail Dossier (/substance/<slug>/) */
.substance-hub-head {
  padding-bottom: 1rem;
}
.substance-hub-head .lede {
  max-width: 56rem;
  margin: 0.35rem 0 0.9rem;
  font-size: 0.96rem;
  line-height: 1.45;
  opacity: 0.88;
}
.substance-hub-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.6rem;
}
.substance-search-input {
  width: 100%;
  max-width: 34rem;
  min-height: 2.65rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent, currentColor) 36%, transparent);
  background: color-mix(in srgb, var(--surface, #0c1218) 88%, transparent);
  color: inherit;
  font-size: 0.92rem;
}
.substance-family-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.substance-family-section {
  margin-top: 1.35rem;
  padding-bottom: 0.6rem;
}
.substance-family-section .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  padding-bottom: 0.4rem;
}
.substance-family-section .section-head h2 {
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}
.substance-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.55rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent, currentColor) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, currentColor) 38%, transparent);
}
.substance-card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.75rem;
}
.substance-card {
  margin: 0;
}
.substance-card[hidden],
.substance-family-section[hidden] {
  display: none !important;
}
.substance-card-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.45rem;
  height: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  background: color-mix(in srgb, var(--surface, #0c1218) 82%, transparent);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.substance-card-link:hover,
.substance-card-link:focus-visible {
  border-color: var(--accent, currentColor);
  transform: translateY(-2px);
}
.substance-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.substance-card-name {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
}
.substance-formula-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.14rem 0.45rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent, currentColor) 15%, transparent);
  white-space: nowrap;
}
.substance-card-iupac {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.32;
  opacity: 0.72;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.substance-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 600;
  opacity: 0.82;
  margin-top: auto;
  padding-top: 0.25rem;
  border-top: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}

/* Substance Detail Dossier */
.substance-dossier {
  max-width: 68rem;
  margin-inline: auto;
  padding-bottom: 2.5rem;
}
.substance-dossier-head {
  margin-bottom: 1.15rem;
}
.substance-dossier-head h1 {
  margin: 0.15rem 0 0.55rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}
.substance-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.substance-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 650;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  background: color-mix(in srgb, var(--surface, #0c1218) 85%, transparent);
}
.substance-badge.is-formula,
.substance-badge.is-cas {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  border-color: color-mix(in srgb, var(--accent, currentColor) 42%, transparent);
  background: color-mix(in srgb, var(--accent, currentColor) 12%, transparent);
}
.substance-badge.is-warning {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.1);
}
.substance-dossier-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 19rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.25rem;
}
.substance-dossier-grid.no-plate {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 820px) {
  .substance-dossier-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.substance-structure-plate {
  margin: 0;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  background: color-mix(in srgb, var(--surface, #0c1218) 88%, transparent);
  text-align: center;
}
.substance-structure-plate img {
  width: 100%;
  max-width: 16.5rem;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: 0 auto 0.5rem;
}
.substance-structure-plate figcaption {
  font-size: 0.74rem;
  line-height: 1.35;
  opacity: 0.78;
}
.substance-specs-panel {
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  background: color-mix(in srgb, var(--surface, #0c1218) 85%, transparent);
}
.substance-specs-dl {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.substance-specs-dl > div {
  display: grid;
  grid-template-columns: minmax(9rem, 13.5rem) minmax(0, 1fr);
  gap: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
  align-items: baseline;
}
.substance-specs-dl > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
@media (max-width: 600px) {
  .substance-specs-dl > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}
.substance-specs-dl dt {
  font-size: 0.8rem;
  font-weight: 650;
  opacity: 0.78;
}
.substance-specs-dl dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  word-break: break-word;
}
.substance-synonym-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.substance-synonym-chip {
  display: inline-block;
  padding: 0.15rem 0.52rem;
  border-radius: 999px;
  font-size: 0.76rem;
  background: color-mix(in srgb, currentColor 8%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}
.substance-matching-shop {
  margin: 0 0 1.25rem;
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent, currentColor) 38%, transparent);
  background: color-mix(in srgb, var(--accent, currentColor) 7%, transparent);
}
.substance-matching-shop h2 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}
.substance-matching-list {
  display: grid;
  gap: 0.5rem;
}
.substance-matching-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface, #0c1218) 86%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  text-decoration: none;
  color: inherit;
}
.substance-dossier-sections {
  display: grid;
  gap: 1rem;
}
.substance-dossier-card {
  padding: 1.05rem 1.2rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  background: color-mix(in srgb, var(--surface, #0c1218) 84%, transparent);
}
.substance-dossier-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}
.substance-dossier-card h3 {
  margin: 0.75rem 0 0.4rem;
  font-size: 0.94rem;
}
.substance-dossier-card p {
  margin: 0;
  line-height: 1.55;
}
.substance-interaction-tiers {
  display: grid;
  gap: 0.75rem;
}
.substance-interaction-tier {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border-inline-start: 4px solid currentColor;
  background: color-mix(in srgb, currentColor 4%, transparent);
}
.substance-interaction-tier.is-danger {
  border-inline-start-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}
.substance-interaction-tier.is-unsafe {
  border-inline-start-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}
.substance-interaction-tier.is-uncertain {
  border-inline-start-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}
.substance-interaction-tier h3 {
  margin: 0 0 0.45rem;
  font-size: 0.86rem;
}
.substance-interaction-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}
.substance-interaction-chips li {
  margin: 0;
}
.substance-interaction-chips a,
.substance-interaction-chips span {
  display: inline-block;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--surface, #0c1218) 88%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}
.substance-citation-list {
  margin: 0.35rem 0 0;
  padding-inline-start: 1.15rem;
  font-size: 0.86rem;
}
.substance-citation-list li {
  margin: 0.22rem 0;
}

/* Customer purchase-to-payment journey ergonomics & inline crypto purchase guide */
html body:has(.product-page) .perks-inner {
  padding-block: 0.25rem;
}
html body .product-page,
html body .product-page.has-media {
  padding-top: 0.35rem;
  gap: 0.45rem 1.15rem;
}
html body .product-page .buy,
html body .product-page.has-media .buy {
  gap: 0.28rem;
}
html body .product-page .buy > .product-head,
html body .product-page.has-media .buy > .product-head {
  order: 1;
}
html body .product-page .buy > .product-commerce,
html body .product-page.has-media .buy > .product-commerce {
  order: 2;
  gap: 0.28rem;
}
html body .product-page .buy > .product-info-screen,
html body .product-page.has-media .buy > .product-info-screen {
  order: 3;
}
html body .product-page .product-head .eyebrow,
html body .product-page.has-media .product-head .eyebrow {
  font-size: 0.72rem;
  line-height: 1.1;
  margin: 0;
}
html body .product-page .product-head h1,
html body .product-page.has-media .product-head h1 {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.1;
  margin: 0.04rem 0 0.08rem;
}
html body .product-page .identity-chips,
html body .product-page.has-media .identity-chips {
  margin: 0.08rem 0 0;
  gap: 0.25rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
html body .product-page .identity-chips::-webkit-scrollbar {
  display: none;
}
html body .product-page .identity-chip,
html body .product-page.has-media .identity-chip {
  min-height: 1.4rem;
  padding: 0.06rem 0.42rem;
  font-size: 0.74rem;
  line-height: 1.15;
  white-space: nowrap;
}
html body .product-page .product-ready-jump,
html body .product-page.has-media .product-ready-jump {
  margin: 0;
}
html body .product-page .product-ready-jump .drop-neon,
html body .product-page.has-media .product-ready-jump .drop-neon {
  padding: 0.26rem 0.65rem;
  min-height: 1.9rem;
  font-size: 0.78rem;
  line-height: 1.15;
}
html body .product-page .product-commerce > .price,
html body .product-page.has-media .product-commerce > .price {
  font-size: 1.12rem;
  line-height: 1.1;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}
html body .product-page .product-courier-buy > form,
html body .product-page.has-media .product-courier-buy > form {
  gap: 0.28rem;
}
html body .product-page .weight-picks,
html body .product-page.has-media .weight-picks {
  padding: 0.3rem 0.5rem;
  gap: 0.16rem;
}
html body .product-page .weight-picks > legend,
html body .product-page.has-media .weight-picks > legend {
  font-size: 0.72rem;
  line-height: 1;
  padding: 0 0.2rem;
  margin: 0;
}
html body .product-page .weight-stage,
html body .product-page.has-media .weight-stage,
html body .product-page.has-media .weight-picks .weight-stage.weight-stage:has(.weight-tiers) {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "tiers tiers"
    "amount quote"
    "notice notice";
  gap: 0.18rem 0.55rem;
  align-items: center;
  justify-items: stretch;
}
html body .product-page .weight-stage:has(.weight-free-drop:not([hidden])),
html body .product-page.has-media .weight-stage:has(.weight-free-drop:not([hidden])),
html body .product-page.has-media .weight-picks .weight-stage.weight-stage:has(.weight-tiers):has(.weight-free-drop:not([hidden])) {
  grid-template-columns: auto minmax(0, 1fr) minmax(9.5rem, 12.5rem);
  grid-template-areas:
    "tiers tiers notice"
    "amount quote notice";
}
html body .product-page .weight-stage .weight-tiers,
html body .product-page.has-media .weight-stage .weight-tiers,
html body .product-page.has-media .weight-picks .weight-stage.weight-stage > .weight-tiers {
  width: 100%;
  max-width: 100%;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  column-gap: 0.45rem;
  row-gap: 0.1rem;
}
html body .product-page .weight-tier,
html body .product-page.has-media .weight-tier {
  min-height: 1.5rem;
  padding: 0.1rem 0.36rem;
  font-size: 0.81rem;
  line-height: 1.1;
}
html body .product-page .weight-grams,
html body .product-page.has-media .weight-grams {
  min-height: 1.95rem;
  gap: 0.32rem;
  font-size: 0.82rem;
  margin: 0;
}
html body .product-page .weight-grams input,
html body .product-page.has-media .weight-grams input {
  width: 4.6rem;
  max-width: 5.5rem;
  min-height: 1.85rem;
  padding: 0.12rem 0.32rem;
  font-size: 0.88rem;
}
html body .product-page .weight-quote,
html body .product-page.has-media .weight-quote {
  padding-top: 0;
  font-size: 0.85rem;
  gap: 0.45rem;
  justify-content: flex-end;
  margin: 0;
}
html body .product-page .product-action-row,
html body .product-page.has-media .product-action-row {
  gap: 0.4rem;
  margin-top: 0.05rem;
}
html body .product-page .product-action-row .btn,
html body .product-page.has-media .product-action-row .btn {
  min-height: 2.45rem;
  padding: 0.38rem 0.65rem;
  font-size: 0.88rem;
}
@media (max-width: 899px) {
  html body:has(.product-page) .perks {
    display: none !important;
  }
  html body .product-page.has-media {
    gap: 0.35rem;
    padding-top: 0.25rem;
  }
  html body .product-page.has-media .gallery {
    grid-template-columns: 5.25rem minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    gap: 0.45rem;
  }
  html body .product-page.has-media .gallery-frame {
    width: 5.25rem;
    max-width: 5.25rem;
    margin: 0;
  }
  html body .product-page.has-media .gallery-frame .gallery-open {
    width: 5.25rem;
    height: 5.25rem;
    max-height: 5.25rem;
    aspect-ratio: 1 / 1;
  }
  html body .product-page.has-media .gallery .thumbs {
    flex-wrap: wrap;
    gap: 0.28rem;
    margin: 0;
  }
  html body .product-page.has-media .gallery .thumbs img {
    width: 2.35rem;
    height: 2.35rem;
  }
  html body .product-page.has-media .structure-caption {
    grid-column: 1 / -1;
    font-size: 0.72rem;
    line-height: 1.2;
    margin: 0;
  }
  html body .product-page .weight-stage:has(.weight-free-drop:not([hidden])),
  html body .product-page.has-media .weight-stage:has(.weight-free-drop:not([hidden])),
  html body .product-page.has-media .weight-picks .weight-stage.weight-stage:has(.weight-tiers):has(.weight-free-drop:not([hidden])),
  html body .product-page.has-media .weight-picks .weight-stage.weight-stage:has(.weight-tiers) {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "tiers tiers"
      "amount quote"
      "notice notice";
  }
  html body .product-page .weight-free-drop,
  html body .product-page.has-media .weight-free-drop,
  html body .product-page.has-media .weight-picks .weight-stage.weight-stage > .weight-free-drop {
    max-width: 100%;
    font-size: 0.74rem;
    line-height: 1.2;
    padding: 0.12rem 0.25rem !important;
    margin: 0 !important;
  }
  html body .product-page .product-action-row,
  html body .product-page.has-media .product-action-row {
    gap: 0.32rem;
  }
  html body .product-page .product-action-row .btn,
  html body .product-page.has-media .product-action-row .btn {
    min-height: 2.3rem;
    padding: 0.3rem 0.45rem;
    font-size: 0.82rem;
  }
  html body .product-page .product-head h1,
  html body .product-page.has-media .product-head h1 {
    font-size: 1.12rem;
    line-height: 1.08;
  }
  html body .product-page.has-media .gallery {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.38rem;
  }
  html body .product-page.has-media .gallery-frame,
  html body .product-page.has-media .gallery-frame .gallery-open {
    width: 4.5rem;
    max-width: 4.5rem;
    height: 4.5rem;
    max-height: 4.5rem;
  }
  html body .product-page.has-media .gallery .thumbs img {
    width: 2.1rem;
    height: 2.1rem;
  }
}

.crypto-choice-help {
  margin: 0.4rem 0 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent, currentColor) 32%, var(--line, rgba(128, 128, 128, 0.28)));
  background: color-mix(in srgb, var(--accent, currentColor) 6%, var(--surface, transparent));
  font-size: 0.85rem;
  line-height: 1.35;
}
.crypto-choice-methods {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--accent, inherit);
}
.crypto-choice-intro {
  margin: 0 0 0.3rem;
  font-size: 0.82rem;
  line-height: 1.32;
}
.crypto-choice-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
}
.crypto-choice-details {
  margin: 0;
  flex: 1 1 16rem;
}
.crypto-choice-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.83rem;
  list-style: none;
  user-select: none;
}
.crypto-choice-summary::-webkit-details-marker {
  display: none;
}
.crypto-choice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--accent, currentColor) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, currentColor) 45%, transparent);
}
.crypto-choice-title {
  flex: 1 1 auto;
  min-width: 0;
}
.crypto-choice-summary::after {
  content: "▾";
  font-size: 0.82rem;
  opacity: 0.75;
  transition: transform 0.15s ease;
}
.crypto-choice-details[open] > .crypto-choice-summary::after {
  transform: rotate(180deg);
}
.crypto-choice-body {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}
.crypto-choice-steps {
  margin: 0;
  padding-inline-start: 1.15rem;
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
}
.crypto-choice-article {
  margin: 0.45rem 0 0;
}
.crypto-choice-quicklink {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
}
.crypto-choice-quicklink a {
  text-decoration: none;
  padding: 0.32rem 0.65rem;
  min-height: 2rem;
  font-size: 0.8rem;
}

/* Ensure Cart & Checkout pages always keep action/process buttons visible without scrolling */
html body .page-head:has(+ .cart-shell),
html body .page-head:has(+ .checkout.txn-shell) {
  margin-top: 0.3rem;
  margin-bottom: 0.25rem;
  padding-top: 0;
  padding-bottom: 0;
}
html body .page-head:has(+ .cart-shell) h1,
html body .page-head:has(+ .checkout.txn-shell) h1 {
  margin: 0;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.15;
}
html body .page-head:has(+ .checkout.txn-shell) > .muted {
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
}
html body .cart-shell.txn-shell {
  padding-top: 0.15rem;
}
html body .cart-shell .table-scroll {
  margin-bottom: 0.25rem;
}
html body .cart-shell .cart-table {
  margin-bottom: 0;
}
html body .cart-shell .cart-table th,
html body .cart-shell .cart-table td {
  padding-top: 0.32rem;
  padding-bottom: 0.32rem;
  vertical-align: middle;
}
html body .cart-shell .cart-col-remove,
html body .cart-shell .cart-cell-remove {
  width: 2.5rem;
  text-align: right;
  padding-inline-start: 0.35rem;
}
html body .cart-shell .cart-qty-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
html body .cart-shell .cart-remove-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--danger, #e11d48) 55%, var(--line, rgba(128, 128, 128, 0.35)));
  background: color-mix(in srgb, var(--danger, #e11d48) 12%, var(--surface, transparent));
  color: var(--danger, #e11d48);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}
html body .cart-shell .cart-remove-x:hover,
html body .cart-shell .cart-remove-x:focus-visible {
  background: var(--danger, #e11d48);
  color: #fff;
  transform: scale(1.06);
}
html body .cart-shell #cart-min-order.cart-min-banner {
  margin: 0.45rem 0;
  padding: 0.7rem 0.95rem;
  border-radius: 10px;
  border: 2px solid var(--danger, #e11d48);
  border-inline-start-width: 6px;
  background: color-mix(in srgb, var(--danger, #e11d48) 16%, var(--surface, #18181b));
}
html body .cart-shell #cart-min-order .cart-min-headline {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  line-height: 1.35;
  color: var(--text, #fff);
}
html body .cart-shell #cart-min-order .cart-min-headline strong {
  color: var(--danger, #fb7185);
  font-weight: 800;
}
html body .cart-shell #cart-min-order .cart-min-need {
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html body .cart-shell .cart-secondary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.55rem;
  align-items: start;
  margin: 0.3rem 0;
}
html body .cart-shell .coin-pick {
  margin: 0;
  padding: 0.35rem 0.65rem;
}
html body .cart-shell .coin-pick legend {
  margin-bottom: 0.15rem;
  font-size: 0.84rem;
}
html body .cart-shell .coin-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.4rem;
}
html body .cart-shell .coin-list .ship-card {
  padding: 0.28rem 0.65rem;
  min-height: 2rem;
}
html body .cart-shell .fx-rate {
  margin: 0.15rem 0;
  font-size: 0.76rem;
}
html body .cart-shell .crypto-choice-help {
  margin: 0.22rem 0;
  padding: 0.32rem 0.65rem;
}
html body .cart-shell .crypto-choice-help .crypto-choice-intro {
  display: none;
}
html body .cart-shell .cart-voucher {
  margin: 0;
  padding: 0.35rem 0.65rem;
}
html body .cart-shell .cart-voucher legend {
  font-size: 0.8rem;
  margin-bottom: 0.1rem;
}
html body .cart-shell .cart-voucher-row input,
html body .cart-shell .cart-voucher-row .btn {
  min-height: 2.05rem;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  font-size: 0.84rem;
}
html body .cart-shell .cart-shipping-progress {
  margin: 0.2rem 0;
  font-size: 0.82rem;
}
html body .checkout.txn-shell {
  padding-top: 0.2rem;
  gap: 1rem 1.5rem;
}
html body .checkout-steps .step-nav {
  margin-bottom: 0.45rem;
  gap: 0.4rem;
}
html body .checkout-steps .step-nav li button {
  padding: 0.35rem 0.5rem;
  min-height: 2.2rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface, transparent);
  font-size: 0.86rem;
}
html body .checkout-steps .step-nav li.on button {
  border-color: var(--accent, currentColor);
  background: color-mix(in srgb, var(--accent, currentColor) 14%, var(--surface, transparent));
  font-weight: 700;
}
html body .checkout-steps .step {
  padding: 0.65rem 0.85rem;
}
html body .checkout-steps .ship-list {
  gap: 0.42rem;
}
html body .checkout-steps .ship-card {
  padding: 0.48rem 0.7rem;
}
html body .checkout-steps #address-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 0.45rem 0.75rem;
}
html body .checkout-steps #address-fields > p {
  grid-column: 1 / -1;
  margin: 0.1rem 0;
}
@media (max-width: 800px) {
  html body .cart-shell .cart-table tr {
    position: relative;
    padding-inline-end: 2.8rem;
  }
  html body .cart-shell .cart-table td.cart-cell-remove {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: auto;
    padding: 0;
  }
}
html body .ready-pickup-basket {
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.5rem;
}
html body .ready-pickup-basket h2 {
  margin: 0;
  font-size: 1.05rem;
}
html body .ready-pickup-basket .ready-pickup-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
html body .ready-pickup-basket .ready-pickup-remove-form {
  margin: 0;
}
html body .ready-pickup-basket .ready-pickup-video {
  height: 7.5rem;
  width: 7.5rem;
  margin-bottom: 0.35rem;
}
html body .ready-pickup-facts div {
  padding: 0.2rem 0;
}
html body .ready-pickup-basket .ready-pickup-note {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  line-height: 1.3;
}
html body .ready-pickup-basket .crypto-choice-help,
html body .ready-pickup-basket .cart-pay-dock {
  grid-column: 1 / -1;
  width: 100%;
}
@media (min-width: 801px) {
  html body .cart-pay-dock {
    position: sticky;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem 1.25rem;
    margin: 0.3rem 0 0;
    padding: 0.48rem 0.75rem;
    padding-inline-end: 15rem;
    background: color-mix(in srgb, var(--bg, var(--surface, #111114)) 94%, transparent);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
  }
  html body .cart-pay-dock .totals {
    margin: 0;
  }
  html body .cart-pay-dock .actions {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
  }
}

.pay-crypto-tutorial {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent, currentColor) 30%, var(--line, rgba(128, 128, 128, 0.25)));
  background: color-mix(in srgb, var(--accent, currentColor) 5%, var(--surface, transparent));
}
.pay-crypto-tutorial h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}
.pay-crypto-guide-link {
  margin: 0.6rem 0 0;
}
.pay-order-summary .pay-ship-address {
  margin: 0.35rem 0 0.15rem;
  line-height: 1.35;
}

@media (min-width: 801px) {
  html body .pay-grid,
  html body.theme-crystal:not(.has-pack) .pay-grid.crystal-pay-facet,
  html body.theme-geode:not(.has-pack) .pay-grid.crystal-pay-facet,
  html body.theme-narkotyki:not(.has-pack) .nk-pay-ledger {
    grid-template-columns: minmax(14.5rem, 17.5rem) minmax(0, 1fr);
    gap: 1.15rem 1.75rem;
    padding-bottom: 1rem;
  }
}
@media (max-width: 800px) {
  html body .pay.txn-shell > h1,
  html body .pay.txn-shell > header,
  html body .nk-pay.txn-shell > .nk-pay-head {
    order: -2;
    margin: 0.15rem 0 0.25rem;
    font-size: 1.2rem;
  }
  html body:has(section.pay) .pay-grid > .qr,
  html body:has(section.nk-pay) .nk-pay-ledger > .qr,
  html body .pay-grid > .qr,
  html body .nk-pay-ledger > .qr {
    width: min(9.25rem, 44vw);
  }
  html body .pay-qr-phone {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    line-height: 1.25;
  }
  html body .pay-credentials {
    padding: 0.65rem 0.75rem;
    gap: 0.25rem;
  }
  html body .pay-essentials > .crypto-choice-help {
    grid-column: 1;
    width: 100%;
    margin: 0.25rem 0;
    padding: 0.45rem 0.65rem;
  }
}

/* Product list card chemical badges, category band ledes & structural comparison / affinity matrix */
.product-card-chem {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  margin: 0.15rem 0 0.2rem;
  font-size: 0.72rem;
  line-height: 1.2;
}
.chem-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--accent, currentColor) 12%, var(--surface, rgba(255, 255, 255, 0.04)));
  border: 1px solid color-mix(in srgb, var(--accent, currentColor) 28%, transparent);
  color: inherit;
}
.chem-pill.is-formula {
  font-weight: 750;
}
.product-card-snippet {
  margin: 0.15rem 0 0.2rem;
  font-size: 0.78rem;
  line-height: 1.3;
  opacity: 0.82;
}
.catalog-band-lede {
  margin: 0.15rem 0 0.75rem;
  max-width: 68ch;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted, inherit);
}
.catalog-band-lede p {
  margin: 0;
}

.product-compare-section {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent, currentColor) 26%, var(--line, rgba(128, 128, 128, 0.25)));
  background: color-mix(in srgb, var(--surface, #0c1218) 90%, transparent);
}
.product-compare-head h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.12rem, 1.8vw, 1.38rem);
}
.product-compare-head p {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
}
.product-affinity-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.product-affinity-card {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  background: color-mix(in srgb, var(--bg, #070b10) 65%, var(--surface, #0f1620));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.product-affinity-card:hover {
  border-color: var(--accent, currentColor);
  transform: translateY(-1px);
}
.product-affinity-card.is-isomer {
  border-color: color-mix(in srgb, var(--accent, #2dd4bf) 52%, transparent);
  background: color-mix(in srgb, var(--accent, #2dd4bf) 7%, var(--surface, #0f1620));
}
.product-affinity-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 750;
  background: color-mix(in srgb, var(--accent, currentColor) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, currentColor) 38%, transparent);
}
.product-affinity-name {
  font-size: 1rem;
  line-height: 1.25;
}
.product-affinity-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  font-size: 0.78rem;
  opacity: 0.88;
}
.product-affinity-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  font-size: 0.8rem;
}
.product-affinity-cta {
  font-weight: 750;
  white-space: nowrap;
}
.product-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.product-compare-table th,
.product-compare-table td {
  padding: 0.55rem 0.65rem;
  text-align: start;
  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  vertical-align: middle;
}
.product-compare-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.78;
}
.product-compare-table tr.is-current {
  background: color-mix(in srgb, var(--accent, currentColor) 9%, transparent);
}
.compare-compound-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
}
.compare-rel-pill {
  display: inline-block;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 650;
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.compare-rel-pill.is-isomer {
  background: color-mix(in srgb, var(--accent, #2dd4bf) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #2dd4bf) 42%, transparent);
}

/* Chemist publisher bio card & editorial blog/news layout */
.article {
  max-width: 56rem;
  margin-inline: auto;
}
.article-header {
  margin-bottom: 1.35rem;
}
.article-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--accent, #38bdf8) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #38bdf8) 38%, transparent);
}
.article-header h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.55rem, 2.7vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.article-header .lede {
  margin: 0;
  padding: 0.85rem 1.1rem;
  font-size: 1.04rem;
  line-height: 1.58;
  border-left: 3px solid var(--accent, #38bdf8);
  border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
  background: color-mix(in srgb, var(--surface, #121824) 84%, var(--accent, #38bdf8) 8%);
}
.post-author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-md, 10px);
  border: 1px solid color-mix(in srgb, var(--accent, currentColor) 32%, transparent);
  background: color-mix(in srgb, var(--surface, #16181d) 88%, var(--accent, #38bdf8) 12%);
}
.post-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--accent, #38bdf8);
}
.post-author-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.post-author-name {
  margin: 0;
  font-size: 0.98rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.post-author-role {
  display: inline-block;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--accent, #38bdf8) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #38bdf8) 45%, transparent);
}
.post-author-bio {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.48;
}
.article .body {
  font-size: 1rem;
  line-height: 1.65;
}
.article .body > p {
  margin: 0 0 1.1rem;
}
.article .body h2 {
  margin: 2.1rem 0 0.9rem;
  padding-bottom: 0.45rem;
  font-size: clamp(1.22rem, 2vw, 1.48rem);
  line-height: 1.28;
  border-bottom: 1px solid color-mix(in srgb, var(--accent, #38bdf8) 32%, rgba(255, 255, 255, 0.14));
}
.article .body h3 {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.12rem;
  line-height: 1.32;
}
.article .body a {
  color: var(--accent, #38bdf8);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.article .body a:hover {
  opacity: 0.88;
}
.article .body ul,
.article .body ol {
  margin: 0.75rem 0 1.35rem;
  padding-left: 1.35rem;
}
.article .body li {
  margin-bottom: 0.55rem;
  line-height: 1.58;
}
.article .body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  border: 1px solid color-mix(in srgb, var(--accent, #38bdf8) 26%, rgba(255, 255, 255, 0.14));
  border-radius: var(--radius-sm, 6px);
  overflow: hidden;
  background: color-mix(in srgb, var(--surface, #0e1520) 92%, transparent);
}
.article .body thead th {
  text-align: left;
  padding: 0.65rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--accent, #38bdf8) 16%, rgba(255, 255, 255, 0.04));
  border-bottom: 1px solid color-mix(in srgb, var(--accent, #38bdf8) 32%, rgba(255, 255, 255, 0.16));
}
.article .body tbody td {
  padding: 0.6rem 0.95rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line, rgba(255, 255, 255, 0.12)) 65%, transparent);
}
.article .body tbody tr:last-child td {
  border-bottom: 0;
}
.article .body tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.025);
}
.article .body del,
.article .body s {
  opacity: 0.62;
  text-decoration: line-through;
}
.post-card-author {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.2rem 0 0.35rem;
  font-size: 0.8rem;
}
.post-card-author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent, #38bdf8);
}

/* === Next-Gen Cognitive Trust & Bespoke SVG Sigil Telemetry === */
.cog-dossier {
  margin-top: 2.2rem;
  margin-bottom: 2.4rem;
  display: grid;
  gap: 1.25rem;
}

.cog-crest {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg, 14px);
  background:
    radial-gradient(circle at 8% 20%, color-mix(in srgb, var(--accent, #38bdf8) 16%, transparent), transparent 52%),
    color-mix(in srgb, var(--surface, #111827) 94%, var(--bg, #0b0f17));
  border: 1px solid color-mix(in srgb, var(--accent, #38bdf8) 32%, rgba(148, 163, 184, 0.22));
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.32);
}

.cog-crest-main {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.cog-sigil-medallion {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--accent, #38bdf8);
  background: color-mix(in srgb, var(--accent, #38bdf8) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #38bdf8) 38%, transparent);
  box-shadow: inset 0 0 18px color-mix(in srgb, var(--accent, #38bdf8) 18%, transparent);
}
.cog-sigil-medallion.is-potency-containment {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.11);
}
.cog-sigil-medallion.is-harmonic-equilibrium {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.42);
  background: rgba(16, 185, 129, 0.1);
}
.cog-sigil-medallion.is-optic-prism {
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.42);
  background: rgba(168, 85, 247, 0.1);
}
.cog-sigil-medallion svg {
  width: 46px;
  height: 46px;
}

.cog-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent, #38bdf8);
}

.cog-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.2rem, 2vw, 1.52rem);
  line-height: 1.22;
}

.cog-class-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cog-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--text, #e2e8f0) 18%, transparent);
  background: color-mix(in srgb, var(--text, #e2e8f0) 6%, transparent);
}
.cog-pill.is-accent {
  border-color: color-mix(in srgb, var(--accent, #38bdf8) 42%, transparent);
  background: color-mix(in srgb, var(--accent, #38bdf8) 14%, transparent);
}

.cog-trust-seals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.cog-seal {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.58rem 0.7rem;
  border-radius: var(--radius-md, 10px);
  background: color-mix(in srgb, var(--bg, #0b0f17) 48%, var(--surface, #111827));
  border: 1px solid color-mix(in srgb, var(--text, #e2e8f0) 12%, transparent);
  font-size: 0.77rem;
  line-height: 1.35;
}
.cog-seal strong {
  display: block;
  font-size: 0.76rem;
  margin-bottom: 0.1rem;
}
.cog-seal span {
  color: var(--muted, #94a3b8);
  font-variant-numeric: tabular-nums;
}
.cog-seal-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--accent, #38bdf8);
  margin-top: 0.08rem;
}
.cog-seal-icon svg {
  width: 20px;
  height: 20px;
}

.cog-nonactive-banner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md, 10px);
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.1);
  font-size: 0.9rem;
}
.cog-banner-sigil {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #f59e0b;
}

.cog-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.cog-card,
.cog-spectrum-block,
.cog-dnm-block {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md, 12px);
  background: color-mix(in srgb, var(--surface, #111827) 95%, transparent);
  border: 1px solid color-mix(in srgb, var(--text, #e2e8f0) 13%, transparent);
}

.cog-card-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.cog-card-head h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.28;
}

.cog-mini-sigil {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--accent, #38bdf8);
  background: color-mix(in srgb, var(--accent, #38bdf8) 13%, transparent);
}
.cog-mini-sigil.is-danger {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.14);
}
.cog-mini-sigil svg {
  width: 16px;
  height: 16px;
}

.cog-telemetry-bars {
  display: grid;
  gap: 0.68rem;
  margin-bottom: 0.95rem;
}
.cog-bar-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}
.cog-bar-meta .muted {
  flex: 1;
  font-size: 0.76rem;
  opacity: 0.78;
}
.cog-bar-metric {
  font-size: 0.76rem;
  padding: 0.08rem 0.42rem;
  border-radius: 5px;
  background: color-mix(in srgb, var(--text, #e2e8f0) 8%, transparent);
}
.cog-bar-track {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text, #e2e8f0) 10%, transparent);
  overflow: hidden;
}
.cog-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent, #38bdf8), #60a5fa);
}
.cog-bar-fill.is-norepi { background: linear-gradient(90deg, #f97316, #fb923c); }
.cog-bar-fill.is-serotonin { background: linear-gradient(90deg, #8b5cf6, #c084fc); }
.cog-bar-fill.is-gaba { background: linear-gradient(90deg, #10b981, #34d399); }
.cog-bar-fill.is-psychedelic { background: linear-gradient(90deg, #ec4899, #a855f7); }
.cog-bar-fill.is-nmda { background: linear-gradient(90deg, #06b6d4, #38bdf8); }
.cog-bar-fill.is-cannabinoid { background: linear-gradient(90deg, #eab308, #84cc16); }
.cog-bar-fill.is-opioid { background: linear-gradient(90deg, #f43f5e, #fb7185); }

.cog-prose {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.56;
}
.cog-prose:last-child {
  margin-bottom: 0;
}

.cog-character-lead {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  line-height: 1.52;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent, #38bdf8);
  background: color-mix(in srgb, var(--accent, #38bdf8) 8%, transparent);
}

.cog-timeline-ribbon {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
.cog-timeline-node {
  position: relative;
  padding: 0.62rem 0.75rem;
  border-radius: 9px;
  background: color-mix(in srgb, var(--bg, #0b0f17) 45%, var(--surface, #111827));
  border: 1px solid color-mix(in srgb, var(--text, #e2e8f0) 11%, transparent);
}
.cog-node-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, #38bdf8);
  margin-right: 0.35rem;
  vertical-align: middle;
}
.cog-node-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #94a3b8);
}
.cog-node-val {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.84rem;
  line-height: 1.35;
}

.cog-steepness-note {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.68rem 0.8rem;
  border-radius: 9px;
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.28);
  font-size: 0.82rem;
  line-height: 1.48;
}
.cog-steepness-note p {
  margin: 0;
}
.cog-note-icon {
  flex: 0 0 18px;
  color: #f59e0b;
  margin-top: 0.1rem;
}
.cog-note-icon svg {
  width: 18px;
  height: 18px;
}

.cog-subnote {
  margin: -0.35rem 0 0.95rem;
  font-size: 0.8rem;
  color: var(--muted, #94a3b8);
}

.cog-brackets-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.72rem;
}

.cog-tier-card {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0.85rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg, #0b0f17) 42%, var(--surface, #111827));
  border: 1px solid color-mix(in srgb, var(--text, #e2e8f0) 12%, transparent);
  border-top-width: 3px;
}
.cog-tier-card.is-step-1 { border-top-color: #38bdf8; }
.cog-tier-card.is-step-2 { border-top-color: #10b981; }
.cog-tier-card.is-step-3 { border-top-color: #eab308; }
.cog-tier-card.is-step-4 { border-top-color: #f97316; }
.cog-tier-card.is-step-5 {
  border-top-color: #ef4444;
  background: color-mix(in srgb, #ef4444 6%, var(--surface, #111827));
}

.cog-tier-head {
  margin-bottom: 0.65rem;
}
.cog-tier-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}
.cog-tier-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cog-tier-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.cog-tier-bars i {
  display: block;
  width: 3px;
  background: color-mix(in srgb, var(--text, #e2e8f0) 18%, transparent);
  border-radius: 1px;
}
.cog-tier-bars i:nth-child(1) { height: 4px; }
.cog-tier-bars i:nth-child(2) { height: 6px; }
.cog-tier-bars i:nth-child(3) { height: 8px; }
.cog-tier-bars i:nth-child(4) { height: 10px; }
.cog-tier-bars i:nth-child(5) { height: 12px; }
.cog-tier-bars i.on {
  background: currentColor;
}
.cog-tier-amount {
  display: inline-block;
  font-size: 0.79rem;
  font-weight: 700;
  padding: 0.16rem 0.45rem;
  border-radius: 5px;
  background: color-mix(in srgb, var(--text, #e2e8f0) 9%, transparent);
}

.cog-tier-axes {
  display: grid;
  gap: 0.55rem;
  font-size: 0.8rem;
  line-height: 1.42;
}
.cog-axis p {
  margin: 0.15rem 0 0;
}
.cog-axis-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted, #94a3b8);
}
.cog-axis-tag svg {
  width: 12px;
  height: 12px;
}

.cog-dnm-group {
  margin-top: 0.75rem;
}
.cog-dnm-tier-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cog-dnm-tier-title svg {
  width: 17px;
  height: 17px;
}
.cog-dnm-group.is-lethal .cog-dnm-tier-title { color: #ef4444; }
.cog-dnm-group.is-unsafe .cog-dnm-tier-title { color: #f59e0b; }
.cog-dnm-group.is-caution .cog-dnm-tier-title { color: #38bdf8; }

.cog-dnm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.65rem;
}
.cog-dnm-secondary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 0.85rem;
}
.cog-dnm-card {
  padding: 0.75rem 0.9rem;
  border-radius: 9px;
  font-size: 0.83rem;
  line-height: 1.45;
}
.cog-dnm-card strong {
  display: block;
  margin-bottom: 0.22rem;
}
.cog-dnm-card p {
  margin: 0;
  opacity: 0.9;
}
.cog-dnm-card.is-lethal {
  border: 1px solid rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.09);
}
.cog-dnm-card.is-unsafe {
  border: 1px solid rgba(245, 158, 11, 0.36);
  background: rgba(245, 158, 11, 0.07);
}
.cog-dnm-card.is-caution {
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.06);
}

.cog-subdrawer,
.cog-monograph-drawer {
  margin-top: 0.7rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--text, #e2e8f0) 12%, transparent);
  background: color-mix(in srgb, var(--bg, #0b0f17) 35%, transparent);
}
.cog-subdrawer summary,
.cog-monograph-drawer summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}
.cog-monograph-text {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  line-height: 1.62;
}

.cog-footer {
  display: grid;
  gap: 0.85rem;
}
.cog-sources-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
}
.cog-sources-label {
  font-weight: 700;
  color: var(--muted, #94a3b8);
}
.cog-source-pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}
.cog-source-pills a {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--accent, #38bdf8) 30%, transparent);
  background: color-mix(in srgb, var(--accent, #38bdf8) 8%, transparent);
  font-size: 0.75rem;
}

@media (max-width: 1080px) {
  .cog-brackets-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cog-crest {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .cog-bento-grid,
  .cog-brackets-grid,
  .cog-trust-seals,
  .cog-timeline-ribbon {
    grid-template-columns: 1fr;
  }
  .cog-crest,
  .cog-card,
  .cog-spectrum-block,
  .cog-dnm-block {
    padding: 1rem;
  }
}

.cog-human-takeaway {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-md, 12px);
  background: color-mix(in srgb, var(--accent, #38bdf8) 10%, var(--surface, #111827));
  border: 1px solid color-mix(in srgb, var(--accent, #38bdf8) 34%, transparent);
}
.cog-human-takeaway strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent, #38bdf8);
  margin-bottom: 0.2rem;
}
.cog-human-takeaway p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.54;
}

.cog-vocab-block {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md, 12px);
  background: color-mix(in srgb, var(--surface, #111827) 95%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #38bdf8) 26%, rgba(148, 163, 184, 0.2));
}
.cog-vocab-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.cog-vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 0.7rem;
}
.cog-vocab-chip-card {
  display: block;
  padding: 0.78rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--bg, #0b0f17) 44%, var(--surface, #111827));
  border: 1px solid color-mix(in srgb, var(--text, #e2e8f0) 12%, transparent);
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.cog-vocab-chip-card:hover {
  border-color: var(--accent, #38bdf8);
  transform: translateY(-1px);
}
.cog-vocab-chip-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.32rem;
}
.cog-vocab-chip-top code {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.12rem 0.42rem;
  border-radius: 5px;
  color: var(--accent, #38bdf8);
  background: color-mix(in srgb, var(--accent, #38bdf8) 14%, transparent);
}
.cog-vocab-chip-top strong {
  font-size: 0.83rem;
  line-height: 1.25;
}
.cog-vocab-chip-card p {
  margin: 0;
  font-size: 0.79rem;
  line-height: 1.44;
  color: var(--muted, #94a3b8);
}

/* Glossary Hub Page */
.cog-glossary-page {
  margin-top: 1.5rem;
  margin-bottom: 2.8rem;
  display: grid;
  gap: 1.6rem;
}
.cog-glossary-search-box {
  display: grid;
  gap: 0.65rem;
}
.cog-glossary-input {
  width: 100%;
  padding: 0.72rem 0.95rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent, #38bdf8) 36%, rgba(148, 163, 184, 0.25));
  background: color-mix(in srgb, var(--bg, #0b0f17) 65%, var(--surface, #111827));
  color: var(--text, #e2e8f0);
  font-size: 0.92rem;
}
.cog-glossary-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cog-glossary-cat-head h2 {
  margin: 0;
  font-size: 1.2rem;
}
.cog-glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.cog-term-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}
.cog-term-code {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.18rem 0.52rem;
  border-radius: 6px;
  color: var(--accent, #38bdf8);
  background: color-mix(in srgb, var(--accent, #38bdf8) 14%, transparent);
}
.cog-term-head h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.3;
}
.cog-term-short {
  margin-bottom: 0.65rem;
}
.cog-term-example {
  margin: 0.55rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px dashed color-mix(in srgb, var(--text, #e2e8f0) 14%, transparent);
  font-size: 0.82rem;
  line-height: 1.46;
}





