@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Sora:wght@400;500;600;700;800&display=swap");

:root {
  --md-primary-fg-color: #071a3e;
  --md-primary-fg-color--light: #1a3f7a;
  --md-primary-fg-color--dark: #071a3e;
  --md-accent-fg-color: #1b7a3a;

  --navy-dark: #071a3e;
  --navy: #0d2b5e;
  --navy-mid: #1a3f7a;
  --navy-light: #2557a7;
  --green: #1b7a3a;
  --green-mid: #2aa34e;
  --green-light: #3dc966;
  --green-pale: #d4f0dc;
  --white: #ffffff;
  --off-white: #f4f7fb;
  --gray-text: #6b7a99;
  --ink: #071a3e;
  --line: rgba(13, 43, 94, 0.12);
  --panel-shadow: 0 22px 54px rgba(7, 26, 62, 0.1);
}

body,
.md-main {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(7, 26, 62, 0.05), transparent 18rem),
    var(--off-white);
  font-family: "DM Sans", sans-serif;
}

.md-header {
  background: var(--navy-dark);
  box-shadow: 0 10px 28px rgba(7, 26, 62, 0.22);
}

.md-header__button[for="__palette"] {
  display: none;
}

.md-header__button.md-logo {
  padding: 0.22rem;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  width: auto;
  height: 2.55rem;
  padding: 0.16rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
}

.md-header__title {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.md-tabs {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.md-tabs__link {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  opacity: 0.76;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.md-tabs__link--active,
.md-tabs__link:hover {
  color: var(--white);
  opacity: 1;
}

.md-search__form {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.md-search__form:hover {
  background: rgba(255, 255, 255, 0.16);
}

.md-main__inner {
  margin-top: 1.25rem;
}

.md-content {
  background: transparent;
}

.md-typeset {
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 0.86rem;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset strong,
.md-typeset table:not([class]) th {
  font-family: "Sora", sans-serif;
  letter-spacing: 0;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  color: var(--navy-dark);
  font-weight: 800;
}

.md-typeset h1 {
  margin-bottom: 0.75rem;
  font-size: 2.45rem;
  line-height: 1.1;
}

.md-typeset h2 {
  margin-top: 2.35rem;
  font-size: 1.75rem;
}

.md-typeset h3 {
  font-size: 1.18rem;
}

.md-typeset p,
.md-typeset li {
  line-height: 1.75;
}

.md-typeset p {
  color: var(--gray-text);
}

.md-typeset a {
  color: var(--green);
  font-weight: 700;
}

.md-typeset a:hover {
  color: var(--green-mid);
}

.md-typeset .twemoji {
  color: var(--green);
}

.md-typeset .twemoji svg {
  width: 1.22em;
  height: 1.22em;
  fill: currentColor;
  vertical-align: -0.22em;
}

.md-typeset .grid.cards > ul {
  gap: 1rem;
}

.md-typeset .grid.cards > ul > li {
  padding: 1.05rem;
  border: 1px solid rgba(13, 43, 94, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(7, 26, 62, 0.08);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.md-typeset .grid.cards > ul > li:hover {
  border-color: rgba(42, 163, 78, 0.42);
  box-shadow: 0 20px 44px rgba(7, 26, 62, 0.12);
  transform: translateY(-2px);
}

.md-typeset .keepunb-member-avatar {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 0 0.95rem;
  object-fit: cover;
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(7, 26, 62, 0.18);
}

.md-sidebar--primary,
.md-sidebar--primary .md-sidebar__scrollwrap,
.md-sidebar--primary .md-nav,
.md-nav--secondary {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.md-sidebar--primary .md-sidebar__inner {
  padding-top: 0.4rem;
}

.md-sidebar--primary .md-nav__item {
  margin: 0.16rem 0;
}

.md-sidebar--primary .md-nav__title,
.md-sidebar--secondary .md-nav__title {
  color: var(--navy-dark);
  font-family: "Sora", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  background: rgba(255, 255, 255, 0.58) !important;
  border: 1px solid rgba(13, 43, 94, 0.08);
  border-radius: 10px;
  box-shadow: none !important;
}

.md-sidebar--primary .md-nav__link {
  min-height: 2.15rem;
  padding: 0.46rem 0.72rem;
  color: #263a5b;
  border-radius: 10px;
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.md-sidebar--primary .md-nav__link:hover {
  color: var(--navy);
  background: rgba(13, 43, 94, 0.06);
  transform: translateX(2px);
}

.md-sidebar--primary .md-nav__item--active > .md-nav__link,
.md-sidebar--primary .md-nav__link--active {
  color: var(--green);
  background: linear-gradient(90deg, rgba(212, 240, 220, 0.92), rgba(255, 255, 255, 0.42)) !important;
  box-shadow: inset 3px 0 0 var(--green) !important;
  font-weight: 800;
}

.md-sidebar--primary .md-nav__link--active:hover {
  background: linear-gradient(90deg, rgba(212, 240, 220, 1), rgba(255, 255, 255, 0.5)) !important;
  box-shadow: inset 3px 0 0 var(--green) !important;
}

.md-sidebar--primary .md-nav__link--active::before,
.md-sidebar--primary .md-nav__link--active::after {
  display: none;
}

.md-sidebar--secondary .md-sidebar__scrollwrap {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.md-sidebar--secondary .md-nav--secondary {
  display: inline-block;
  width: 100%;
  padding: 0.72rem;
  border: 1px solid rgba(13, 43, 94, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 24px rgba(7, 26, 62, 0.04);
}

.md-sidebar--secondary .md-nav__title {
  margin-bottom: 0.4rem;
  padding: 0.42rem 0.65rem;
  color: var(--green);
  background: rgba(212, 240, 220, 0.72) !important;
  border: 1px solid rgba(27, 122, 58, 0.16);
  border-radius: 10px;
  box-shadow: none !important;
}

.md-nav--secondary .md-nav__link {
  position: relative;
  min-height: 1.8rem;
  padding: 0.34rem 0.5rem 0.34rem 0.92rem;
  border-radius: 8px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.md-nav--secondary .md-nav__link:hover {
  background: rgba(13, 43, 94, 0.05);
}

.md-nav--secondary .md-nav__link--active,
.md-nav--secondary .md-nav__link--active:hover {
  color: var(--green);
  background: rgba(212, 240, 220, 0.5) !important;
  box-shadow: none !important;
  font-weight: 800;
}

.md-nav--secondary .md-nav__link--active::before {
  position: absolute;
  top: 0.42rem;
  bottom: 0.42rem;
  left: 0.36rem;
  width: 0.16rem;
  content: "";
  border-radius: 999px;
  background: var(--green);
}

.md-sidebar--secondary .md-nav__title::before,
.md-sidebar--secondary .md-nav__title::after,
.md-nav--secondary .md-nav__title::before,
.md-nav--secondary .md-nav__title::after {
  display: none !important;
}

.md-typeset pre {
  border-radius: 14px;
}

.md-typeset code {
  border-radius: 8px;
}

.md-typeset__table {
  overflow: hidden;
  border: 1px solid rgba(13, 43, 94, 0.1);
  border-radius: 18px;
  box-shadow: none;
}

.md-typeset table:not([class]) {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: none;
}

.md-typeset table:not([class]) th {
  color: var(--white);
  background: var(--navy);
}

.md-typeset .admonition,
.md-typeset details {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(7, 26, 62, 0.07);
}

.md-typeset .admonition-title,
.md-typeset summary {
  border-radius: 18px 18px 0 0;
}

.md-footer {
  background: var(--navy);
}

.md-footer-meta {
  background: var(--navy-dark);
}

.keepunb-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(16rem, 0.82fr);
  column-gap: 2rem;
  row-gap: 1.6rem;
  align-items: center;
  min-height: 31rem;
  margin: 0 0 2.2rem;
  padding: 3.2rem;
  overflow: hidden;
  color: var(--white);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(7, 26, 62, 0.98), rgba(13, 43, 94, 0.94)),
    var(--navy-dark);
  box-shadow: 0 28px 68px rgba(7, 26, 62, 0.24);
}

.keepunb-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 3rem 3rem;
  opacity: 0.45;
  pointer-events: none;
}

.keepunb-hero::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 0.38rem;
  content: "";
  background: linear-gradient(90deg, var(--green), var(--green-light), var(--green));
  pointer-events: none;
}

.keepunb-hero__content,
.keepunb-hero__brand {
  position: relative;
  z-index: 1;
}

.keepunb-hero__content {
  min-width: 0;
}

.keepunb-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.44rem 0.8rem;
  color: #114425;
  background: var(--green-pale);
  border-radius: 999px;
  font-family: "Sora", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.keepunb-hero h1 {
  max-width: 100%;
  margin: 0;
  color: var(--white);
  font-family: "Sora", sans-serif;
  font-size: 3.35rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.keepunb-hero h1 span {
  display: block;
}

.keepunb-hero p {
  max-width: 44rem;
  margin: 1.15rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.7;
}

.keepunb-hero__brand {
  align-self: center;
  display: grid;
  gap: 1rem;
  justify-items: center;
  margin-top: 0;
}

.keepunb-logo-display {
  display: block;
  width: min(100%, 25rem);
  height: auto;
  background: #fbfbfa;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
}

.keepunb-hero__panel {
  width: min(100%, 25rem);
  padding: 1rem;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.keepunb-hero__panel strong,
.keepunb-hero__panel span {
  display: block;
}

.keepunb-hero__panel strong {
  color: var(--white);
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
}

.keepunb-hero__panel span {
  margin-top: 0.28rem;
  font-size: 0.84rem;
  line-height: 1.55;
}

.keepunb-actions {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  margin-top: 0.2rem;
}

.keepunb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3.35rem;
  padding: 0.82rem 0.95rem;
  border-radius: 10px;
  font-family: "Sora", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.keepunb-button:hover {
  transform: translateY(-2px);
}

.keepunb-button__icon {
  flex: 0 0 auto;
  display: inline-grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 8px;
  font-family: "Sora", sans-serif;
  font-size: 0.86rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
}

.keepunb-button--primary {
  color: var(--white) !important;
  background: var(--green);
  box-shadow: 0 16px 26px rgba(27, 122, 58, 0.28);
}

.keepunb-button--primary:hover {
  background: var(--green-mid);
}

.keepunb-button--secondary {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.keepunb-overview,
.keepunb-section {
  margin-bottom: 2rem;
}

.keepunb-overview {
  padding: 1.55rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--panel-shadow);
}

.keepunb-overview h2,
.keepunb-section h2 {
  margin-top: 0;
}

.keepunb-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.keepunb-metrics > div {
  padding: 1rem;
  border: 1px solid rgba(27, 122, 58, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(212, 240, 220, 0.48), rgba(255, 255, 255, 0.92));
}

.keepunb-metrics strong {
  display: block;
  color: var(--navy-dark);
  font-family: "Sora", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.keepunb-metrics span {
  display: block;
  margin-top: 0.42rem;
  color: var(--gray-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.keepunb-feature-grid .twemoji,
.keepunb-doc-grid .twemoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.25rem;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--white);
  background: var(--green);
  border-radius: 14px;
  vertical-align: middle;
  box-shadow: 0 10px 20px rgba(27, 122, 58, 0.2);
}

.keepunb-feature-grid .twemoji svg,
.keepunb-doc-grid .twemoji svg {
  width: 1.35rem;
  height: 1.35rem;
}

.keepunb-feature-grid strong,
.keepunb-doc-grid strong {
  color: var(--navy-dark);
  font-size: 1rem;
}

.keepunb-color-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.keepunb-color-card {
  padding: 1rem;
  border: 1px solid rgba(13, 43, 94, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(7, 26, 62, 0.08);
}

.keepunb-color-card strong,
.keepunb-color-card span,
.keepunb-color-card code {
  display: block;
}

.keepunb-color-card strong {
  margin-top: 0.85rem;
  color: var(--navy-dark);
}

.keepunb-color-card span {
  color: var(--gray-text);
}

.keepunb-swatch {
  display: block;
  height: 4.5rem;
  border-radius: 16px;
  border: 1px solid rgba(7, 26, 62, 0.12);
}

.keepunb-swatch--navy-dark {
  background: #071a3e;
}

.keepunb-swatch--navy {
  background: #0d2b5e;
}

.keepunb-swatch--navy-mid {
  background: #1a3f7a;
}

.keepunb-swatch--navy-light {
  background: #2557a7;
}

.keepunb-swatch--green {
  background: #1b7a3a;
}

.keepunb-swatch--green-mid {
  background: #2aa34e;
}

.keepunb-swatch--green-light {
  background: #3dc966;
}

.keepunb-swatch--green-pale {
  background: #d4f0dc;
}

.keepunb-swatch--off-white {
  background: #f4f7fb;
}

@media screen and (max-width: 960px) {
  .md-main__inner {
    margin-top: 0.8rem;
  }

  .keepunb-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 2.2rem 1.35rem;
    text-align: center;
  }

  .keepunb-hero h1,
  .keepunb-hero p {
    max-width: none;
  }

  .keepunb-hero h1 {
    font-size: 2.85rem;
  }

  .keepunb-actions {
    justify-content: center;
    max-width: 34rem;
    margin-right: auto;
    margin-left: auto;
  }

  .keepunb-hero__brand {
    align-self: center;
    margin-top: 0;
  }

  .keepunb-logo-display {
    width: min(100%, 18rem);
  }

  .keepunb-color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 680px) {
  .md-typeset h1 {
    font-size: 2rem;
  }

  .md-typeset h2 {
    font-size: 1.45rem;
  }

  .keepunb-hero {
    padding: 1.55rem 1rem;
    border-radius: 20px;
  }

  .keepunb-hero h1 {
    font-size: 2.35rem;
  }

  .keepunb-hero p {
    font-size: 0.95rem;
  }

  .keepunb-actions {
    grid-template-columns: 1fr;
  }

  .keepunb-button {
    width: 100%;
  }

  .keepunb-metrics {
    grid-template-columns: 1fr;
  }

  .keepunb-color-grid {
    grid-template-columns: 1fr;
  }
}
