:root {
  --v12-navy: #0b2a4a;
  --v12-blue: #176f9c;
  --v12-cyan: #58b9cf;
  --v12-ice: #eaf4fa;
  --v12-paper: rgba(255, 255, 255, 0.9);
  --v12-line: rgba(11, 42, 74, 0.12);
  --v12-muted: #536a7c;
  --v12-shadow: 0 18px 52px rgba(10, 42, 73, 0.12);
}

html {
  scroll-behavior: smooth;
  background: #edf5fa;
}

body.webtest-v12 {
  color: #1b3042;
  background:
    radial-gradient(circle at 13% 18%, rgba(104, 192, 214, 0.16), transparent 27rem),
    linear-gradient(145deg, #f8fbfd 0%, #edf5fa 56%, #e8f1f7 100%);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.58;
}

body.webtest-v12::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 76, 111, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 76, 111, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

body.webtest-v12.webtest-home {
  background:
    linear-gradient(90deg, rgba(249, 252, 254, 0.99) 0%, rgba(244, 250, 253, 0.94) 37%, rgba(235, 246, 251, 0.42) 65%, rgba(232, 243, 249, 0.18) 100%),
    url("../images/wearable-robotics-hero.png") top 60px center / cover no-repeat fixed;
}

.webtest-v12 .masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(11, 42, 74, 0.09);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 28px rgba(11, 42, 74, 0.06);
  backdrop-filter: blur(18px) saturate(145%);
}

.webtest-v12 .masthead__inner-wrap {
  max-width: 1380px;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.webtest-v12 .greedy-nav {
  min-height: 60px;
  background: transparent;
}

.webtest-v12 .greedy-nav a {
  color: #37556b;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.015em;
  transition: color 180ms ease, background-color 180ms ease;
}

.webtest-v12 .greedy-nav .masthead__menu-item--lg a {
  color: var(--v12-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.webtest-v12 .greedy-nav a:hover,
.webtest-v12 .greedy-nav a:focus,
.webtest-v12 .greedy-nav a[aria-current="page"] {
  color: var(--v12-blue);
}

.webtest-v12 #main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 230px) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  max-width: 1380px;
  min-height: calc(100vh - 60px);
  margin: 0 auto;
  padding: clamp(1.4rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem) 3rem;
}

.webtest-v12 .sidebar {
  float: none;
  width: auto;
  margin: 0;
  opacity: 1;
}

.webtest-v12 .sidebar.sticky {
  position: sticky;
  top: 78px;
  align-self: start;
  max-height: calc(100vh - 116px);
}

.webtest-v12 .sidebar > div {
  padding: 1rem 1rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  background: rgba(250, 253, 255, 0.76);
  box-shadow: 0 18px 52px rgba(11, 42, 74, 0.09);
  backdrop-filter: blur(16px) saturate(135%);
}

.webtest-v12 .author__avatar {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 0.72rem;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(11, 42, 74, 0.19);
}

.webtest-v12 .author__content {
  text-align: center;
}

.webtest-v12 .author__name {
  margin: 0;
  color: var(--v12-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.webtest-v12 .author__bio {
  margin-top: 0.42rem;
  color: var(--v12-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.webtest-v12 .author__urls-wrapper button {
  border: 1px solid var(--v12-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--v12-navy);
}

.webtest-v12 .author__urls {
  margin-top: 0.52rem;
  font-size: 0.72rem;
}

.webtest-v12 .author__urls li {
  border-top: 1px solid rgba(11, 42, 74, 0.07);
  padding-top: 0.34rem;
  padding-bottom: 0.34rem;
}

.webtest-v12 .author__urls a,
.webtest-v12 .author__urls li {
  color: #3f5e73;
}

.webtest-v12 article.page,
.webtest-v12 .archive {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: clamp(1.45rem, 2.5vw, 2.35rem);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 24px;
  background: var(--v12-paper);
  box-shadow: var(--v12-shadow);
  backdrop-filter: blur(19px) saturate(118%);
}

.webtest-v12.webtest-home article.page {
  background: rgba(255, 255, 255, 0.84);
}

.webtest-v12 .page__inner-wrap {
  float: none;
  width: 100%;
}

.webtest-v12 .page__title,
.webtest-v12 .archive__subtitle,
.webtest-v12 .page__content h1,
.webtest-v12 .page__content h2,
.webtest-v12 .page__content h3 {
  color: var(--v12-navy);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.027em;
}

.webtest-v12 .page__title {
  position: relative;
  margin: 0 0 1.2rem;
  padding-bottom: 0.68rem;
  font-size: clamp(2.1rem, 3.5vw, 2.65rem);
  font-weight: 500;
  line-height: 1.04;
}

.webtest-v12 .page__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--v12-blue), var(--v12-cyan));
}

.webtest-v12 .page__content {
  color: #284156;
  font-size: clamp(0.86rem, 1vw, 0.9rem);
  line-height: 1.62;
}

.webtest-v12 .about-me p,
.webtest-v12 .recent-news {
  text-align: left !important;
}

.webtest-v12 .page__content > p:first-of-type,
.webtest-v12 .about-me > p:first-child {
  color: #17364d;
  font-size: 1.02em;
}

.webtest-v12 .page__content a {
  color: #096e9f;
  text-decoration-color: rgba(9, 110, 159, 0.3);
  text-underline-offset: 0.2em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.webtest-v12 .page__content a:hover,
.webtest-v12 .page__content a:focus {
  color: #03496d;
  text-decoration-color: currentColor;
}

.webtest-v12 .recent-news {
  margin-top: 2rem !important;
  padding-top: 1.3rem;
  border-top: 1px solid var(--v12-line);
}

.webtest-v12 .recent-news h2,
.webtest-v12 .visitor-map h2 {
  margin-top: 0;
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  font-weight: 500;
}

.webtest-v12 .recent-news ul {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.webtest-v12 .recent-news li {
  position: relative;
  margin: 0;
  padding: 0.52rem 0 0.52rem 1.1rem;
  border-left: 1px solid rgba(23, 111, 156, 0.19);
}

.webtest-v12 .recent-news li::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: -4px;
  width: 7px;
  height: 7px;
  border: 1px solid #eaf5fa;
  border-radius: 50%;
  background: var(--v12-blue);
  box-shadow: 0 0 0 3px rgba(23, 111, 156, 0.12);
}

.webtest-v12 .visitor-map {
  overflow: hidden;
  margin-top: 1.8rem !important;
  padding: 1rem;
  border: 1px solid var(--v12-line);
  border-radius: 16px;
  background: rgba(236, 247, 252, 0.62);
}

.webtest-v12 .visitor-map img,
.webtest-v12 .page__content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.webtest-v12 .page__footer {
  margin-top: 0;
  border-top: 1px solid rgba(11, 42, 74, 0.09);
  background: rgba(8, 35, 59, 0.96);
  color: rgba(255, 255, 255, 0.68);
}

.webtest-v12 .page__footer a {
  color: #b9e6f3;
}

@media (max-width: 960px) {
  body.webtest-v12.webtest-home {
    background:
      linear-gradient(180deg, rgba(250, 253, 255, 0.9) 0%, rgba(241, 249, 252, 0.94) 520px, #edf5fa 850px),
      url("../images/wearable-robotics-hero.png") top 60px right 25% / auto 620px no-repeat;
  }

  .webtest-v12 #main {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding-top: 1.3rem;
  }

  .webtest-v12 .sidebar.sticky {
    position: static;
    max-height: none;
  }

  .webtest-v12 .sidebar > div {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 0 1.2rem;
    align-items: center;
  }

  .webtest-v12 .author__avatar {
    grid-row: 1 / span 2;
    width: 84px;
    height: 84px;
    margin: 0;
  }

  .webtest-v12 .author__content {
    text-align: left;
  }

  .webtest-v12 .author__urls-wrapper {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .webtest-v12 .masthead__inner-wrap {
    padding-inline: 0.9rem;
  }

  .webtest-v12 #main {
    padding: 0.9rem 0.7rem 2.2rem;
  }

  .webtest-v12 article.page,
  .webtest-v12 .archive {
    padding: 1.15rem 1rem 1.5rem;
    border-radius: 22px;
  }

  .webtest-v12 .page__title {
    font-size: clamp(1.85rem, 9vw, 2.25rem);
  }

  .webtest-v12 .page__content {
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
