/*
 * DBC / BIOTEN V3.0.0
 * Five-entry brand architecture, responsive refinement and page-family polish.
 * The locked homepage hero is intentionally outside the scope of this file.
 */

:root {
  --v300-blue: #07559d;
  --v300-blue-deep: #0b355d;
  --v300-green: #087b57;
  --v300-green-soft: #e9f4ef;
  --v300-ink: #13202b;
  --v300-body: #41515d;
  --v300-muted: #687782;
  --v300-paper: #f7f9f8;
  --v300-line: rgba(14, 49, 72, .14);
  --v300-radius: 10px;
  --v300-ease: cubic-bezier(.22, 1, .36, 1);
}

body.v300-site {
  color: var(--v300-ink);
  background: #f8faf9;
}

/* Five-entry desktop navigation */
body.dbc-global-nav-active .dbc-desktop-nav {
  gap: clamp(.05rem, .42vw, .46rem);
}

body.dbc-global-nav-active .dbc-desktop-nav__link {
  min-height: 2.62rem;
  padding-inline: clamp(.42rem, .68vw, .7rem);
  font-size: clamp(.75rem, .82vw, .84rem);
}

body.dbc-global-nav-active .dbc-desktop-nav__link[data-dbc-desktop-menu="bioten"].is-open,
body.dbc-global-nav-active .dbc-desktop-nav__link[data-dbc-desktop-menu="packaging"].is-open,
body.dbc-global-nav-active .dbc-desktop-nav__link[data-dbc-desktop-menu="developer"].is-open {
  border-color: rgba(8, 123, 87, .15);
  background: rgba(239, 248, 244, .78);
  color: var(--v300-green);
}

body.dbc-global-nav-active .dbc-desktop-nav__link[data-dbc-desktop-menu="bioten"].is-open::before,
body.dbc-global-nav-active .dbc-desktop-nav__link[data-dbc-desktop-menu="packaging"].is-open::before,
body.dbc-global-nav-active .dbc-desktop-nav__link[data-dbc-desktop-menu="developer"].is-open::before,
body.dbc-global-nav-active .dbc-desktop-nav__link[data-dbc-desktop-menu="bioten"][aria-current="page"]::before,
body.dbc-global-nav-active .dbc-desktop-nav__link[data-dbc-desktop-menu="packaging"][aria-current="page"]::before,
body.dbc-global-nav-active .dbc-desktop-nav__link[data-dbc-desktop-menu="developer"][aria-current="page"]::before {
  background: var(--v300-green);
}

body.dbc-global-nav-active .dbc-desktop-mega--packaging .dbc-desktop-mega__intro::before,
body.dbc-global-nav-active .dbc-desktop-mega--packaging .dbc-desktop-route__copy::before {
  background: var(--v300-green);
}

body.dbc-global-nav-active .dbc-desktop-mega--packaging :is(
  .dbc-desktop-mega__eyebrow,
  .dbc-desktop-mega__entry,
  .dbc-desktop-route__copy i
) {
  color: var(--v300-green);
}

body.dbc-global-nav-active .dbc-desktop-mega--packaging .dbc-desktop-mega__entry {
  border-bottom-color: rgba(8, 123, 87, .36);
}

body.dbc-global-nav-active .dbc-desktop-mega--packaging .dbc-desktop-route:hover,
body.dbc-global-nav-active .dbc-desktop-mega--packaging .dbc-desktop-route:focus-visible {
  border-color: rgba(8, 123, 87, .5);
}

body.dbc-global-nav-active .dbc-desktop-mega__inner {
  min-height: 18.6rem;
  padding-block: 1.55rem 1.65rem;
}

body.dbc-global-nav-active .dbc-desktop-route {
  height: 15.15rem;
  min-height: 15.15rem;
  border-radius: var(--v300-radius);
}

body.dbc-global-nav-active .dbc-desktop-route__media {
  min-height: 5.8rem;
}

/* Five-column formal footer and five-link homepage footer */
body.v300-site .formal-site-footer .footer-directory {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2.25rem);
}

body.v300-site .formal-site-footer .footer-column {
  min-width: 0;
}

body.v300-site .formal-site-footer .footer-column h3 {
  color: var(--v300-ink);
}

body.v300-site .formal-site-footer .footer-column:nth-child(2) h3,
body.v300-site .formal-site-footer .footer-column:nth-child(3) h3,
body.v300-site .formal-site-footer .footer-column:nth-child(4) h3 {
  color: var(--v300-green);
}

body.v300-site .v260-footer__primary {
  grid-template-columns: repeat(5, max-content);
}

/* Four-domain application index */
.v300-domain-index {
  padding: clamp(4.25rem, 7vw, 7rem) 0;
  border-block: 1px solid var(--v300-line);
  background:
    radial-gradient(circle at 88% 10%, rgba(8, 123, 87, .075), transparent 22rem),
    linear-gradient(180deg, #f9fbfa 0%, #f2f6f4 100%);
}

.v300-domain-index__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 30rem);
  align-items: end;
  gap: clamp(1.5rem, 5vw, 5.5rem);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.v300-domain-index__head p {
  max-width: 52ch;
  margin: 0;
  color: var(--v300-body);
  font-size: clamp(.95rem, 1.1vw, 1.08rem);
  line-height: 1.8;
}

.v300-domain-index__label {
  display: block;
  margin-bottom: .75rem;
  color: var(--v300-green);
  font-size: .7rem;
  font-weight: 760;
  letter-spacing: .12em;
}

.v300-domain-index h2 {
  max-width: 14ch;
  margin: 0;
  color: var(--v300-ink);
  font-size: clamp(2rem, 4vw, 4.25rem);
  font-weight: 620;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.v300-domain-index__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  grid-template-rows: repeat(2, minmax(12rem, 1fr));
  gap: .85rem;
}

.v300-domain-index__card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 12rem;
  overflow: hidden;
  border: 1px solid rgba(12, 57, 77, .14);
  border-radius: var(--v300-radius);
  background: #dfe8e5;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.v300-domain-index__card:first-child {
  grid-row: 1 / 3;
}

.v300-domain-index__card:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}

.v300-domain-index__card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78) contrast(1.05);
  transform: scale(1.01);
  transition: transform 500ms var(--v300-ease), filter 260ms ease;
}

.v300-domain-index__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 28, 43, .06) 15%, rgba(8, 28, 43, .84) 100%);
}

.v300-domain-index__card:nth-child(2)::after,
.v300-domain-index__card:nth-child(3)::after {
  background: linear-gradient(180deg, rgba(0, 45, 70, .1), rgba(4, 42, 58, .87));
}

.v300-domain-index__card:nth-child(4)::after {
  background: linear-gradient(180deg, rgba(0, 56, 48, .08), rgba(5, 50, 43, .9));
}

.v300-domain-index__copy {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: 100%;
  padding: clamp(1.25rem, 2.4vw, 2rem);
}

body.v300-site .v300-domain-index__copy > span {
  margin-bottom: auto;
  font-size: .63rem;
  font-weight: 760;
  letter-spacing: .11em;
  opacity: .84;
}

body.v300-site .v300-domain-index__copy h3 {
  max-width: 12ch;
  margin: 2.5rem 0 .55rem;
  color: #fff !important;
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 620;
  line-height: 1.2;
}

body.v300-site .v300-domain-index__copy p {
  max-width: 34ch;
  margin: 0;
  color: rgba(255, 255, 255, .86) !important;
  font-size: .82rem;
  line-height: 1.62;
}

body.v300-site .v300-domain-index__copy i {
  margin-top: 1rem;
  font-size: 1.05rem;
  font-style: normal;
  color: #fff;
}

.v300-domain-index__card:hover img,
.v300-domain-index__card:focus-visible img {
  filter: saturate(.92) contrast(1.06);
  transform: scale(1.045);
}

.v300-domain-index__card:focus-visible {
  outline: 2px solid var(--v300-blue);
  outline-offset: 3px;
}

.v300-domain-index__boundary {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  max-width: 76rem;
  margin: 1.2rem 0 0;
  color: var(--v300-muted);
  font-size: .78rem;
  line-height: 1.7;
}

.v300-domain-index__boundary::before {
  content: "";
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2px;
  margin-top: .65rem;
  background: linear-gradient(90deg, var(--v300-blue) 0 70%, var(--v300-green) 70% 100%);
}

/* Page-family refinements */
body.v300-site .v245-hero,
body.v300-site .formal-developer-hero,
body.v300-site .about-bioten-hero {
  border-bottom-color: var(--v300-line);
}

body.v300-site :is(.v245-hero__media, .v245-flagship__media, .formal-visual-card) {
  border-radius: var(--v300-radius);
}

body.v300-site :is(.v245-button, .formal-button) {
  border-radius: 8px;
}

body.v300-site :is(.v245-section-head, .formal-section-head) > p {
  max-width: 58ch;
}

body.v300-site .v245-domain-card {
  border-radius: var(--v300-radius);
}

body.v300-site .v300-technical-illustration-note {
  display: block;
  margin-top: .5rem;
  color: var(--v300-muted);
  font-size: .72rem;
  line-height: 1.55;
}

.v300-visual-kind {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  padding: .32rem .52rem;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: rgba(7, 26, 39, .46);
  color: rgba(255, 255, 255, .86);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.v300-developer-domains {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
  margin-top: clamp(1.75rem, 3vw, 2.75rem);
}

.v300-developer-domains a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: .35rem .65rem;
  min-height: 8.5rem;
  padding: 1.1rem;
  border: 1px solid rgba(187, 222, 236, .18);
  border-radius: var(--v300-radius);
  background: rgba(8, 38, 57, .42);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: border-color 220ms ease, background 220ms ease, transform 360ms var(--v300-ease);
}

.v300-developer-domains a:hover,
.v300-developer-domains a:focus-visible {
  border-color: rgba(96, 200, 157, .62);
  background: rgba(8, 69, 69, .54);
  transform: translateY(-3px);
}

.v300-developer-domains a:focus-visible {
  outline: 2px solid #8bd5ef;
  outline-offset: 3px;
}

.v300-developer-domains span {
  grid-row: 1 / 3;
  color: #68c798;
  font-size: .68rem;
  font-weight: 760;
  letter-spacing: .08em;
}

.v300-developer-domains strong {
  font-size: .98rem;
  font-weight: 620;
  line-height: 1.35;
}

.v300-developer-domains small {
  color: rgba(224, 236, 240, .68);
  font-size: .74rem;
  line-height: 1.55;
}

.v300-file-preview-note {
  margin: 1rem 0 0;
  padding: .8rem .9rem;
  border: 1px solid rgba(7, 85, 157, .18);
  border-radius: 8px;
  background: rgba(234, 243, 250, .72);
  color: var(--v300-body);
  font-size: .76rem;
  line-height: 1.6;
}

.v300-file-preview-note[data-active="true"] {
  border-color: rgba(8, 123, 87, .4);
  background: var(--v300-green-soft);
  color: #0d5d47;
}

@media (min-width: 981px) {
  html body.v300-site[data-v280-archetype="developer-workbench"] #main-content > .formal-developer-hero .formal-shell {
    padding-inline-end: 24% !important;
  }

  html body.v300-site[data-v280-archetype="developer-workbench"] #main-content > .formal-developer-hero h1 {
    max-inline-size: 17ch !important;
  }
}

@media (max-width: 1120px) {
  body.v300-site .formal-site-footer .footer-directory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 2rem;
  }

  body.dbc-global-nav-active .dbc-desktop-nav__link {
    padding-inline: .42rem;
    font-size: .75rem;
  }
}

@media (max-width: 980px) {
  body.dbc-global-nav-active .dbc-desktop-nav,
  body.dbc-global-nav-active .dbc-desktop-mega-layer {
    display: none !important;
  }

  body.dbc-global-nav-active .dbc-header-actions {
    margin-left: auto;
  }

  body.dbc-global-nav-active .dbc-nav-trigger {
    display: inline-flex !important;
  }

  .v300-developer-domains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .v300-domain-index__head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1rem;
  }

  .v300-domain-index h2 {
    max-width: 15ch;
  }

  .v300-domain-index__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .v300-domain-index__card:first-child,
  .v300-domain-index__card:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  .v300-domain-index__card {
    min-height: 18rem;
  }

  body.v300-site .v260-footer__primary {
    grid-template-columns: repeat(3, max-content);
  }
}

@media (max-width: 640px) {
  body.v300-site .formal-site-footer .footer-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v300-domain-index {
    padding-block: 3.75rem;
  }

  .v300-domain-index__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .v300-domain-index__card {
    min-height: 16.5rem;
  }

  .v300-domain-index__copy {
    padding: 1.35rem;
  }

  .v300-domain-index__copy h3 {
    font-size: 1.45rem;
  }

  body.v300-site .v260-footer__primary {
    grid-template-columns: repeat(2, max-content);
    row-gap: .85rem;
  }

  body.v300-site .v281-path {
    display: none;
  }

  body.v300-site :is(.v288-engine__flow small, .v288-domains small) {
    font-size: .75rem;
    line-height: 1.5;
  }

  body.home-v287 .v287-domain p,
  body.home-v287 .v287-packaging__foot p {
    font-size: .75rem;
    line-height: 1.58;
  }

  body.home-v287 .v287-domain__targets {
    font-size: .68rem;
    line-height: 1.3;
  }

  .v300-developer-domains {
    grid-template-columns: minmax(0, 1fr);
  }

  .v300-developer-domains a {
    min-height: 6.75rem;
  }
}

@media (max-width: 420px) {
  body.v300-site .formal-site-footer .footer-directory {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .v300-domain-index__card img {
    transition: none;
    transform: none !important;
  }

  .v300-developer-domains a {
    transition: none;
    transform: none !important;
  }

  body.v300-site :is(.v260-reveal, [data-v270-reveal], [data-v280-reveal]) {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media print {
  body.v300-site :is(.v260-reveal, [data-v270-reveal], [data-v280-reveal]) {
    opacity: 1 !important;
    transform: none !important;
  }
}
