/* Explore-only refinements layered after the shared QRL adapter. */
/* Preserve the full illustration and give each transparent slide an opaque
   page-colored canvas so the fade transition cannot show the previous artwork. */
html[data-theme="qrl-dawn"] #cases .cases__img-slide {
  background: var(--color-base-100);
}
html[data-theme="qrl-dawn"] #cases .cases__img--editorial {
  object-fit: contain;
  object-position: center;
}

html[data-theme="qrl-dawn"] #tabs.tabs {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--color-base-200);
}
html[data-theme="qrl-dawn"] #tabs .tabs__head { display: none; }
html[data-theme="qrl-dawn"] #tabs .tabs__buttons {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  width: min(calc(100% - 2rem), 43rem);
  max-width: 43rem;
  gap: .25rem;
  margin: 0 auto 2rem;
  padding: .3rem;
  border: 1px solid var(--qrl-line);
  border-radius: var(--radius-field);
  background: var(--color-base-100);
}
html[data-theme="qrl-dawn"] #tabs .tabs__button {
  display: flex !important;
  width: auto !important;
  min-width: 0;
  height: 2.8rem !important;
  min-height: 2.8rem;
  margin: 0 !important;
  padding: .45rem .55rem;
  border: 0 !important;
  border-radius: calc(var(--radius-field) - .15rem) !important;
  background: transparent;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color .18s ease, color .18s ease;
}
html[data-theme="qrl-dawn"] #tabs .tabs__button:not(:last-child)::after,
html[data-theme="qrl-dawn"] #tabs .tabs__button-img { display: none !important; }
html[data-theme="qrl-dawn"] #tabs .tabs__button:hover:not(.active) { background: var(--color-base-300); }
html[data-theme="qrl-dawn"] #tabs .tabs__button.active {
  background: var(--color-primary);
  color: var(--color-primary-content);
}
html[data-theme="qrl-dawn"] #tabs .tabs__button .tabs__button-text {
  margin: 0;
  color: var(--color-base-content);
  font-size: .92rem;
  line-height: 1.15;
  white-space: nowrap;
}
html[data-theme="qrl-dawn"] #tabs .tabs__button.active .tabs__button-text { color: var(--color-primary-content); }
html[data-theme="qrl-dawn"] #tabs .tabs__button:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}
html[data-theme="qrl-dawn"] #tabs .tabs__main {
  height: auto !important;
  max-width: 51rem;
  padding-top: 0 !important;
}
html[data-theme="qrl-dawn"] #tabs .tabs__content {
  margin: 0 !important;
  position: absolute;
  overflow: hidden;
  visibility: hidden;
  height: 0;
  pointer-events: none;
  transition: none;
}
html[data-theme="qrl-dawn"] #tabs .tabs__content.active:not([style*="opacity: 0"]),
html[data-theme="qrl-dawn"] #tabs .tabs__content[style*="opacity: 1"] {
  position: relative;
  overflow: visible;
  visibility: visible;
  height: auto;
  pointer-events: auto;
}
html[data-theme="qrl-dawn"] #tabs .tabs__line {
  display: grid;
  grid-template-columns: minmax(12rem, 35%) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
  margin: 0 !important;
  padding: 1.25rem 0 !important;
  border-bottom: 1px solid var(--qrl-line);
}
html[data-theme="qrl-dawn"] #tabs .tabs__line:first-of-type { padding-top: .35rem !important; }
html[data-theme="qrl-dawn"] #tabs .tabs__line:last-child { border-bottom: 0; }
html[data-theme="qrl-dawn"] #tabs .tabs__line-left {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
html[data-theme="qrl-dawn"] #tabs .tabs__line-left h3 {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}
html[data-theme="qrl-dawn"] #tabs .tabs__line-left h3::after { display: none; }
html[data-theme="qrl-dawn"] #tabs .tabs__line-right { min-width: 0; }
html[data-theme="qrl-dawn"] #tabs .tabs__line-right p {
  margin: 0 0 .7rem;
  line-height: 1.55;
}
html[data-theme="qrl-dawn"] #tabs .tabs__line-right .tabs__line-right__text-mini {
  margin: .75rem 0 .5rem;
}
html[data-theme="qrl-dawn"] #tabs .tabs__line-right .flex_wrapper { gap: .6rem; }
html[data-theme="qrl-dawn"] #tabs .tabs__line-right .flex_wrapper a { margin: 0; }
html[data-theme="qrl-dawn"] #tabs #downloads-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: .6rem;
}
html[data-theme="qrl-dawn"] #tabs #downloads-list a { margin: 0; }

/* The source animation has a white canvas. Its dark variant carries the same motion. */
html[data-theme="qrl-dawn"] #core.core {
  isolation: isolate;
  overflow: hidden;
  background: var(--color-base-100);
}
html[data-theme="qrl-dawn"] #core .container-mini {
  position: relative;
  z-index: 1;
  padding-block: 0 !important;
}
html[data-theme="qrl-dawn"] #core .core__video {
  z-index: 0;
  top: 0;
  left: 0;
  opacity: 1;
  pointer-events: none;
}
html[data-theme="qrl-dawn"] #core .core__video video {
  display: block;
  width: min(65vw, 50rem);
  max-width: none;
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 42% 52%, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 65% at 42% 52%, #000 50%, transparent 100%);
}
html[data-theme="qrl-dawn"] #core .grid { gap: clamp(1rem, 2vw, 1.5rem); }
html[data-theme="qrl-dawn"] #core .grid > a {
  min-width: 0;
  text-decoration: none;
}
html[data-theme="qrl-dawn"] #core .core__el {
  min-height: 0;
  height: 100%;
  border-bottom-width: 1px;
  transition: border-color .18s ease;
}
html[data-theme="qrl-dawn"] #core .grid > a:hover .core__el,
html[data-theme="qrl-dawn"] #core .grid > a:focus-visible .core__el {
  border-color: var(--color-primary);
}
html[data-theme="qrl-dawn"] #core .core__el__img {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  height: clamp(8rem, 14vw, 10rem);
  padding: .65rem .85rem;
  overflow: hidden;
  border-radius: var(--radius-box) var(--radius-box) 0 0;
  transition: background-color .2s ease;
}
html[data-theme="qrl-dawn"] #core .core__el__img img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(.88);
  transition: none;
}
html[data-theme="qrl-dawn"] #core .grid > a:hover img,
html[data-theme="qrl-dawn"] #core .grid > a:focus-visible img { filter: none; }
/* Enlarge the painted wordmark within padded SVG canvases without clipping its text. */
html[data-theme="qrl-dawn"] #core :is(
  .partner--die-qrl-stiftung,
  .partner--merkletree-labs,
  .partner--quantum-compliance
) .core__el__img img {
  object-fit: contain;
  transform: scale(1.5);
}
/* Match the partner page: size the padded square canvas to the frame width,
   and preserve the lettering's contrast against the logo's solid background. */
html[data-theme="qrl-dawn"] #core .partner--university-of-manchester .core__el__img img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 1.7rem);
  height: auto;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  filter: grayscale(1) brightness(1.6) contrast(1.05);
}
/* Singularity's SVG declares a tall intrinsic size around a wide logo. */
html[data-theme="qrl-dawn"] #core .partner--singularity-systems .core__el__img img {
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) invert(1) brightness(1.2);
}
html[data-theme="qrl-dawn"] #core .grid > a:is(:hover, :focus-visible) .partner--singularity-systems .core__el__img img {
  filter: none;
}
html[data-theme="qrl-dawn"] #core .grid > a:is(:hover, :focus-visible) .core__el__img {
  background: #e9f0f2;
}
html[data-theme="qrl-dawn"] #core .core__el__inner {
  min-height: 4.5rem;
  padding: .85rem 1rem;
  font-size: 1rem;
  line-height: 1.35;
}
html[data-theme="qrl-dawn"] #core .core__el__inner p {
  margin: .2rem 0 0;
  color: var(--qrl-muted);
  font-size: .85rem;
}
html[data-theme="qrl-dawn"] #core .read-more-button__block { margin-top: 1.5rem; }

html[data-theme="qrl-dawn"] #contributors.contributors {
  padding-top: clamp(3.25rem, 5vw, 4.5rem);
  padding-bottom: clamp(3.25rem, 5vw, 4.5rem);
}
html[data-theme="qrl-dawn"] #contributors .container-mini { padding-block: 0 !important; }
html[data-theme="qrl-dawn"] #contributors .section-title-header { margin-bottom: 1.5rem; }
html[data-theme="qrl-dawn"] #contributors .list { margin: 0 0 1.25rem; }
html[data-theme="qrl-dawn"] #contributors .contributors-p { max-width: 42rem; margin: 0; }
html[data-theme="qrl-dawn"] #integrations { padding-top: clamp(3.25rem, 5vw, 4.5rem); }

html[data-theme="qrl-dawn"] :is(#integrations, #membership, #featured) .container-mini { padding-block: 0 !important; }
html[data-theme="qrl-dawn"] :is(#integrations, #membership, #featured) .section-title-header { margin-bottom: 2.75rem; }
html[data-theme="qrl-dawn"] :is(#integrations, #membership, #featured) .grid {
  gap: 1rem;
}
html[data-theme="qrl-dawn"] :is(#integrations, #membership, #featured) .featured__el {
  margin: 0;
  min-width: 0;
  border-width: 1px;
  transition: border-color .2s ease, background-color .2s ease;
}
html[data-theme="qrl-dawn"] :is(#integrations, #membership, #featured) .featured__el:hover,
html[data-theme="qrl-dawn"] :is(#integrations, #membership, #featured) .featured__el:focus-visible {
  border-color: var(--color-primary);
  background: #e9f0f2;
}
html[data-theme="qrl-dawn"] :is(#integrations, #featured) .featured__el .color-img {
  display: block;
  max-width: calc(100% - 2rem);
  max-height: calc(100% - 2rem);
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(.88);
  transition: none;
}
html[data-theme="qrl-dawn"] :is(#integrations, #featured) .featured__el:is(:hover, :focus-visible) .color-img { filter: none; }
html[data-theme="qrl-dawn"] #membership .featured__el img {
  width: auto;
  height: clamp(3.8rem, 5vw, 4.75rem);
  max-width: calc(100% - 1rem);
  max-height: calc(100% - 1rem);
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(.88);
  transition: none;
}
/* Preserve the layered lettering inside the League mark instead of flattening it. */
html[data-theme="qrl-dawn"] #membership .featured__el img[src$="/league-of-entropy.png"] {
  height: calc(100% - .75rem);
  max-width: calc(100% - .75rem);
  max-height: none;
  transform: scale(1.15);
  filter: grayscale(1) brightness(1.35) contrast(1.08);
}
html[data-theme="qrl-dawn"] #membership .featured__el:is(:hover, :focus-visible) img { filter: none; }

html[data-theme="qrl-dawn"] #blog .small-p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-top: .85rem;
}
html[data-theme="qrl-dawn"] #blog .small-p .qrl-badge {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 1.45rem;
  padding: .18rem .55rem;
  border-color: color-mix(in oklab, var(--color-secondary) 55%, transparent);
  background: color-mix(in oklab, var(--color-secondary) 10%, var(--color-base-200));
  color: var(--color-secondary);
  font-size: .74rem;
  line-height: 1.15;
  text-decoration: none;
}
html[data-theme="qrl-dawn"] #blog .small-p .qrl-badge:hover {
  border-color: var(--color-secondary);
  background: color-mix(in oklab, var(--color-secondary) 20%, var(--color-base-200));
}

@media (min-width: 768px) and (max-width: 1199px) {
  html[data-theme="qrl-dawn"] #core :is(
    .partner--die-qrl-stiftung,
    .partner--merkletree-labs,
    .partner--quantum-compliance
  ) .core__el__img img { transform: scale(2.1); }
}

/* Give the partner grid and publisher marks more presence on wide screens. */
@media (min-width: 1200px) {
  html[data-theme="qrl-dawn"] #core .container-mini { max-width: 60rem; }
  html[data-theme="qrl-dawn"] #core .core__el__img { height: 11rem; }
  html[data-theme="qrl-dawn"] #core :is(
    .partner--die-qrl-stiftung,
    .partner--merkletree-labs,
    .partner--quantum-compliance
  ) .core__el__img img { transform: scale(1.75); }
  html[data-theme="qrl-dawn"] #featured .featured__el { overflow: hidden; }
  html[data-theme="qrl-dawn"] #featured .featured__el .color-img {
    width: calc(100% - 1rem);
    height: calc(100% - 1rem);
    max-width: none;
    max-height: none;
    object-fit: contain;
    transform: translate(-50%, -50%) scale(var(--featured-logo-scale, 1.3));
  }
  html[data-theme="qrl-dawn"] #featured .color-img[src$="/coindesk-color-logo.png"] { --featured-logo-scale: 1.4; }
  html[data-theme="qrl-dawn"] #featured .color-img[src$="/cryptodaily-color-logo.png"] { --featured-logo-scale: 1.55; }
  html[data-theme="qrl-dawn"] #featured .color-img[src$="/forbes-color-logo.png"] { --featured-logo-scale: 1.9; }
  html[data-theme="qrl-dawn"] #featured .color-img[src$="/businessapac-color-logo.png"],
  html[data-theme="qrl-dawn"] #featured .color-img[src$="/blockchainnews-color-logo.png"] { --featured-logo-scale: 1.5; }
  html[data-theme="qrl-dawn"] #featured .color-img[src$="/cnet-color-logo.png"] { --featured-logo-scale: 1.7; }
}

@media (max-width: 767px) {
  html[data-theme="qrl-dawn"] #tabs.tabs { padding-block: 2.75rem 3.25rem; }
  html[data-theme="qrl-dawn"] #tabs .tabs__buttons {
    width: calc(100% - 2rem);
    gap: .15rem;
    padding: .25rem;
    margin-bottom: 1.2rem;
  }
  html[data-theme="qrl-dawn"] #tabs .tabs__button {
    height: 2.7rem !important;
    min-height: 2.7rem;
    padding: .35rem .2rem;
  }
  html[data-theme="qrl-dawn"] #tabs .tabs__button .tabs__button-text {
    font-size: clamp(.72rem, 3.1vw, .9rem);
  }
  html[data-theme="qrl-dawn"] #tabs .tabs__content { padding-inline: 1rem; }
  html[data-theme="qrl-dawn"] #tabs .tabs__line {
    grid-template-columns: 1fr;
    gap: .45rem;
    padding: 1.1rem 0 !important;
  }
  html[data-theme="qrl-dawn"] #tabs #downloads-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-theme="qrl-dawn"] #tabs #downloads-list a {
    min-width: 0;
    width: 100%;
    padding-inline: .3rem;
    font-size: .78rem;
  }
  html[data-theme="qrl-dawn"] #core .core__video {
    top: 12%;
    left: 0;
    opacity: 1;
  }
  html[data-theme="qrl-dawn"] #core .core__video video { width: 38rem; }
  html[data-theme="qrl-dawn"] #core .core__el__img { height: 7.5rem; }
  html[data-theme="qrl-dawn"] #core .grid { gap: .75rem; }
  html[data-theme="qrl-dawn"] #core .core__el__inner { min-height: 4rem; }
  html[data-theme="qrl-dawn"] :is(#integrations, #membership, #featured) .grid { gap: .75rem; }
  html[data-theme="qrl-dawn"] :is(#integrations, #membership, #featured) .featured__el {
    height: 6rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme="qrl-dawn"] #core .core__video video { display: none; }
  html[data-theme="qrl-dawn"] :is(#core .core__el, #core img, #integrations img, #membership img, #featured img) { transition: none; }
}
