:root {
  --site-bg: #f6f4ed;
  --site-bg-deep: #0f1724;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #fffdf7;
  --surface-dark: rgba(14, 23, 36, 0.78);
  --line-soft: rgba(15, 23, 36, 0.08);
  --line-strong: rgba(15, 23, 36, 0.14);
  --ink: #18212f;
  --ink-soft: #5f6c7c;
  --ink-subtle: #7a8898;
  --brand: #0f8b8d;
  --brand-deep: #0d5f73;
  --brand-warm: #ef8f34;
  --brand-pale: #dff4f0;
  --hero-start: #08183f;
  --hero-end: #1b4c8d;
  --shadow-soft: 0 18px 48px rgba(21, 30, 46, 0.08);
  --shadow-hover: 0 24px 56px rgba(21, 30, 46, 0.14);
  --radius-xs: 10px;
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --content-width: 76rem;
  --heading-font: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --body-font: "Source Sans 3", "Segoe UI", sans-serif;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

@media (min-width: 992px) {
  html {
    font-size: 16px;
  }
}

body.site-shell {
  margin: 0;
  color: var(--ink);
  font-family: var(--body-font);
  background:
    radial-gradient(circle at top left, rgba(239, 143, 52, 0.12), transparent 30rem),
    radial-gradient(circle at 85% 0%, rgba(15, 139, 141, 0.11), transparent 28rem),
    linear-gradient(180deg, #faf7f1 0%, #f4f1e8 48%, #f9f7f2 100%);
}

.site-shell ::selection {
  background: rgba(15, 139, 141, 0.18);
}

.site-shell h1,
.site-shell h2,
.site-shell h3,
.site-shell h4,
.site-shell h5,
.site-shell h6,
.site-shell .navbar-brand,
.site-shell .section-title,
.site-shell .page-title,
.site-shell .hero-title,
.site-shell .article-display-title {
  font-family: var(--heading-font);
  letter-spacing: -0.03em;
}

.site-main {
  position: relative;
  z-index: 1;
}

.site-shell a {
  color: var(--brand-deep);
}

.site-shell a:hover {
  color: var(--brand);
}

.site-shell .btn,
.site-shell .form-control,
.site-shell .form-select,
.site-shell .page-link {
  border-radius: 999px;
}

.site-shell .btn:focus,
.site-shell .btn:active:focus,
.site-shell .btn-link.nav-link:focus,
.site-shell .form-control:focus,
.site-shell .form-check-input:focus,
.site-shell .page-link:focus {
  box-shadow: 0 0 0 0.22rem rgba(15, 139, 141, 0.18);
}

.site-shell .btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  border: none;
  color: #fff;
  box-shadow: 0 16px 34px rgba(13, 95, 115, 0.18);
}

.site-shell .btn-primary:hover {
  background: linear-gradient(135deg, #0f7f8f 0%, #134f6f 100%);
  color: #fff;
}

.site-shell .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.site-shell .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.64);
  color: #fff;
}

.site-shell .btn-outline-secondary {
  border-color: rgba(24, 33, 47, 0.12);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.site-shell .btn-outline-secondary:hover,
.site-shell .btn-outline-secondary.active {
  background: rgba(24, 33, 47, 0.06);
  border-color: rgba(24, 33, 47, 0.18);
  color: var(--ink);
}

.site-shell .btn-dark {
  background: linear-gradient(135deg, #1a2535 0%, #0f1826 100%);
  border: none;
  box-shadow: 0 14px 34px rgba(16, 24, 38, 0.2);
}

.site-shell .alert {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.site-shell .badge {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.45rem 0.78rem;
}

.site-shell .card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 253, 247, 0.92) 100%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.site-shell .card,
.surface-panel,
.listing-card,
.sidebar-card,
.hero-panel-shell,
.article-cover-frame {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-shell .stretched-link-override {
  position: relative;
  z-index: 2;
}

.page-reveal {
  animation: rise-in 0.7s ease both;
}

.page-reveal-delay {
  animation: rise-in 0.9s ease both;
}

.hero-section .page-reveal,
.hero-section .page-reveal-delay {
  animation: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar-emh {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 1rem 0;
  background:
    linear-gradient(135deg, rgba(6, 20, 52, 0.97) 0%, rgba(11, 34, 79, 0.965) 55%, rgba(15, 49, 108, 0.95) 100%);
  border-bottom: 1px solid rgba(124, 165, 255, 0.16);
  box-shadow: 0 18px 38px rgba(5, 14, 35, 0.26);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navbar-emh .container {
  max-width: calc(var(--content-width) + 2rem);
}

.navbar-emh .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-right: 1.75rem;
}

.navbar-emh .navbar-logo img {
  display: block;
  height: 34px;
  width: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-emh .navbar-brand:hover img {
  opacity: 0.92;
  transform: translateY(-1px);
}

.navbar-emh .nav-link {
  color: rgba(250, 249, 245, 0.78) !important;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.55rem 0.85rem !important;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.navbar-emh .nav-link:hover,
.navbar-emh .nav-link.active {
  color: #fff !important;
  background: rgba(123, 165, 255, 0.14);
  transform: translateY(-1px);
}

.navbar-emh .dropdown-menu {
  margin-top: 0.8rem;
  padding: 0.55rem;
  min-width: 240px;
  border: 1px solid rgba(124, 165, 255, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(8, 22, 54, 0.96) 0%, rgba(12, 31, 71, 0.97) 100%);
  box-shadow: 0 24px 46px rgba(4, 11, 29, 0.32);
}

.navbar-emh .dropdown-divider {
  border-color: rgba(124, 165, 255, 0.12);
  margin: 0.45rem 0;
}

.navbar-emh .dropdown-item {
  color: rgba(246, 243, 236, 0.8);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 14px;
  padding: 0.65rem 0.8rem;
  transition: background 0.18s ease, color 0.18s ease;
}

.navbar-emh .dropdown-item:hover,
.navbar-emh .dropdown-item:focus,
.navbar-emh .dropdown-item.active {
  background: rgba(123, 165, 255, 0.14);
  color: #fff;
}

.navbar-emh .form-control {
  min-width: 13rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 165, 255, 0.18);
  background: rgba(136, 170, 255, 0.08);
  color: #fff;
}

.navbar-emh .form-control::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.navbar-emh .form-control:focus {
  background: rgba(136, 170, 255, 0.12);
  border-color: rgba(191, 219, 255, 0.56);
  color: #fff;
}

.navbar-emh .navbar-toggler {
  border: 1px solid rgba(124, 165, 255, 0.2);
  border-radius: 16px;
  padding: 0.55rem 0.7rem;
}

.navbar-emh .navbar-toggler-icon {
  filter: invert(1);
}

.site-breadcrumb {
  padding: 0.85rem 0;
  background: rgba(255, 255, 255, 0.46);
  border-bottom: 1px solid rgba(24, 33, 47, 0.06);
  backdrop-filter: blur(14px);
}

.site-breadcrumb .breadcrumb {
  font-size: 0.92rem;
}

.site-breadcrumb .breadcrumb-item a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-breadcrumb .breadcrumb-item a:hover {
  color: var(--brand-deep);
}

.site-breadcrumb .breadcrumb-item.active {
  color: var(--ink);
}

.site-footer {
  position: relative;
  margin-top: 4rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
  color: rgba(238, 236, 231, 0.74);
  background:
    radial-gradient(circle at top left, rgba(239, 143, 52, 0.18), transparent 20rem),
    radial-gradient(circle at 90% 10%, rgba(15, 139, 141, 0.16), transparent 20rem),
    linear-gradient(180deg, #101823 0%, #0a1018 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 85%);
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 1;
  max-width: calc(var(--content-width) + 2rem);
}

.site-footer h6 {
  margin-bottom: 1rem;
  color: rgba(255, 249, 241, 0.94);
  font-family: var(--heading-font);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.site-footer a {
  color: rgba(238, 236, 231, 0.66);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand img {
  display: block;
  height: 34px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-intro {
  max-width: 24rem;
  color: rgba(238, 236, 231, 0.66);
  line-height: 1.7;
}

.section-shell {
  padding: 4.5rem 0;
}

.section-shell-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(247, 243, 235, 0.58) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(24, 33, 47, 0.05);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head-copy {
  max-width: 38rem;
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-kicker::before,
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(90deg, var(--brand) 0%, rgba(15, 139, 141, 0.22) 100%);
}

.section-title {
  margin: 0;
  font-size: clamp(1.85rem, 2vw, 2.45rem);
  color: var(--ink);
}

.section-summary,
.page-summary {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.section-link:hover {
  color: var(--brand-deep);
}

.surface-panel,
.listing-card,
.sidebar-card,
.page-intro,
.hero-panel-shell,
.article-cover-frame {
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93) 0%, rgba(255, 252, 246, 0.97) 100%);
  box-shadow: var(--shadow-soft);
}

.surface-panel {
  padding: clamp(1.4rem, 2vw, 2.4rem);
}

.page-intro {
  margin-bottom: 2.5rem;
  padding: clamp(1.5rem, 2.2vw, 2.4rem);
}

.page-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  color: var(--ink);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 4rem;
  color: #fff;
  background:
    radial-gradient(circle at 14% 18%, rgba(239, 143, 52, 0.22), transparent 22rem),
    radial-gradient(circle at 88% 18%, rgba(82, 143, 255, 0.3), transparent 24rem),
    linear-gradient(135deg, var(--hero-start) 0%, #0f2d6c 48%, var(--hero-end) 100%);
  border-bottom: 1px solid rgba(124, 165, 255, 0.12);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.65;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.85fr);
  gap: 1.75rem;
  align-items: start;
}

.hero-copy {
  max-width: 38rem;
}

.hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.hero-copy .eyebrow::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.18) 100%);
}

.hero-title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.7rem, 4.2vw, 4.35rem);
  line-height: 1.02;
  color: #fff;
  text-wrap: balance;
}

.hero-lead {
  max-width: 34rem;
  margin: 1.4rem 0 0;
  color: rgba(246, 243, 236, 0.78);
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-actions .btn {
  min-width: 10rem;
  padding: 0.9rem 1.35rem;
  font-weight: 700;
}

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

.hero-metric {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.09);
}

.hero-metric strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: #fff;
}

.hero-metric span {
  display: block;
  color: rgba(246, 243, 236, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.hero-panel-shell {
  padding: 1.6rem;
  color: rgba(255, 248, 238, 0.92);
  background: linear-gradient(180deg, rgba(124, 165, 255, 0.14) 0%, rgba(7, 17, 40, 0.38) 100%);
  border-color: rgba(124, 165, 255, 0.18);
}

.hero-aside-stack {
  display: grid;
  gap: 1rem;
}

.hero-panel-kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: rgba(255, 248, 238, 0.68);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-panel-title {
  margin: 0 0 1.1rem;
  font-size: 1.8rem;
  color: #fff;
}

.hero-feature-list {
  display: grid;
  gap: 0.95rem;
}

.hero-feature-item {
  padding: 1rem 1rem 1rem 1.1rem;
  border: 1px solid rgba(124, 165, 255, 0.14);
  border-radius: 1.3rem;
  background: rgba(109, 149, 236, 0.08);
}

.hero-feature-item strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: #fff;
}

.hero-feature-item span {
  color: rgba(255, 248, 238, 0.76);
  line-height: 1.55;
}

.hero-mini-panel-shell {
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.4rem;
  background: rgba(8, 20, 48, 0.38);
  box-shadow: 0 16px 34px rgba(6, 14, 30, 0.14);
}

.hero-mini-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.hero-mini-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-mini-link:hover {
  color: #fff;
}

.hero-mini-list {
  display: grid;
  gap: 0.75rem;
}

.hero-mini-item {
  display: block;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(124, 165, 255, 0.14);
  border-radius: 1.1rem;
  background: rgba(104, 144, 234, 0.08);
  color: rgba(255, 248, 238, 0.88);
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.hero-mini-item:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 165, 255, 0.24);
  background: rgba(104, 144, 234, 0.14);
  color: #fff;
}

.hero-mini-item strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.35;
}

.hero-mini-item span {
  display: block;
  color: rgba(255, 248, 238, 0.72);
  font-size: 0.9rem;
  line-height: 1.5;
}

.section-shell-condensed {
  padding: 2.35rem 0 0;
}

.home-editor-note-kicker {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--brand-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-latest-band {
  position: relative;
  z-index: 2;
  margin-top: -1.75rem;
}

.home-latest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(19rem, 0.82fr);
  gap: 1.15rem;
}

.home-spotlight-card,
.home-latest-mini-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 1.6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(251, 248, 242, 0.98) 100%);
  box-shadow: 0 18px 40px rgba(17, 27, 38, 0.08);
}

.home-spotlight-card {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.1fr);
  min-height: 100%;
}

.home-spotlight-image {
  min-height: 100%;
  background: linear-gradient(135deg, rgba(15, 139, 141, 0.08) 0%, rgba(239, 143, 52, 0.08) 100%);
}

.home-spotlight-image img,
.home-latest-mini-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-spotlight-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.55rem;
}

.home-spotlight-title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.15;
}

.home-latest-stack {
  display: grid;
  gap: 1rem;
}

.home-latest-mini-card {
  display: grid;
  grid-template-columns: 8.1rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.95rem;
  align-items: stretch;
}

.home-latest-mini-image {
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 139, 141, 0.08) 0%, rgba(239, 143, 52, 0.08) 100%);
}

.home-editor-note {
  margin-top: 1.75rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(15, 139, 141, 0.12);
  border-radius: 1.35rem;
  background: linear-gradient(135deg, rgba(15, 139, 141, 0.08) 0%, rgba(255, 255, 255, 0.85) 100%);
  color: var(--ink-soft);
}

.home-editor-note a {
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration: none;
}

.home-editor-note a:hover {
  color: var(--brand);
}

.content-card,
.listing-card,
.brand-card,
.catalog-card,
.project-card,
.integration-card,
.toc-card {
  position: relative;
  height: 100%;
  padding: 1.45rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.content-card:hover,
.listing-card:hover,
.brand-card:hover,
.catalog-card:hover,
.project-card:hover,
.integration-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(15, 139, 141, 0.16);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  color: var(--ink-subtle);
  font-size: 0.9rem;
}

.card-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-pale);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.card-title-link {
  color: var(--ink);
  text-decoration: none;
}

.card-title-link:hover {
  color: var(--brand-deep);
}

.card-summary {
  color: var(--ink-soft);
  line-height: 1.65;
}

.card-image {
  margin: -0.25rem -0.25rem 1.15rem;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(15, 139, 141, 0.08) 0%, rgba(239, 143, 52, 0.08) 100%);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image-device img {
  object-fit: contain;
  background: linear-gradient(180deg, #fcfdff 0%, #f5f8ff 100%);
  padding: 0.95rem;
}

.card-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.card-tag-row .badge {
  padding: 0.35rem 0.72rem;
  background: rgba(24, 33, 47, 0.05);
  color: var(--ink-soft);
  border: 1px solid rgba(24, 33, 47, 0.08);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(24, 33, 47, 0.11);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(24, 33, 47, 0.05);
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.pill-button:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  transform: translateY(-1px);
}

.pill-button.active {
  border-color: rgba(15, 139, 141, 0.18);
  background: linear-gradient(135deg, rgba(15, 139, 141, 0.12) 0%, rgba(15, 95, 115, 0.1) 100%);
  color: var(--brand-deep);
}

.site-shell .pagination {
  gap: 0.45rem;
}

.site-shell .page-item .page-link {
  border: 1px solid rgba(24, 33, 47, 0.08);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
}

.site-shell .page-item.active .page-link {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
}

.article-page {
  padding-top: 3rem;
}

.article-header-card {
  margin-bottom: 1.5rem;
}

.article-content-shell > :first-child {
  margin-top: 0;
}

.article-content-shell > h1:first-child,
.article-content-shell > header:first-child h1:first-child {
  display: none;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  color: var(--ink-subtle);
  font-size: 0.95rem;
}

.article-display-title {
  margin: 0;
  font-size: clamp(2.35rem, 4vw, 4rem);
  line-height: 0.98;
  color: var(--ink);
}

.article-summary-text {
  max-width: 44rem;
  margin: 1.2rem 0 0;
  color: var(--ink-soft);
  font-size: 1.18rem;
  line-height: 1.72;
}

.article-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.3rem;
}

.article-tag-row .badge {
  padding: 0.42rem 0.8rem;
  background: rgba(24, 33, 47, 0.05);
  color: var(--ink);
  border: 1px solid rgba(24, 33, 47, 0.08);
}

.article-cover-frame {
  margin-top: 1.5rem;
  overflow: hidden;
}

.media-zoom-card {
  position: relative;
}

.media-zoom-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.media-zoom-trigger img {
  transition: transform 0.24s ease, filter 0.24s ease;
}

.media-zoom-trigger:hover img {
  transform: scale(1.01);
  filter: saturate(1.02);
}

.article-cover-frame img {
  display: block;
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
}

.article-body {
  padding: clamp(1.5rem, 2vw, 2.4rem);
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--ink);
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  margin-top: 2.2rem;
  margin-bottom: 0.85rem;
  line-height: 1.18;
  color: var(--ink);
}

.article-body h2 {
  padding-bottom: 0.55rem;
  font-size: clamp(1.55rem, 2vw, 2rem);
  border-bottom: 1px solid rgba(24, 33, 47, 0.08);
}

.article-body h3 {
  font-size: clamp(1.22rem, 1.5vw, 1.45rem);
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body table,
.article-body pre,
.article-body blockquote {
  margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
}

.article-body li + li {
  margin-top: 0.35rem;
}

.article-body a {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration-color: rgba(13, 95, 115, 0.32);
  text-underline-offset: 0.18rem;
}

.article-body a:hover {
  color: var(--brand);
}

.article-body code {
  padding: 0.18rem 0.42rem;
  border-radius: 0.5rem;
  background: rgba(24, 33, 47, 0.06);
  color: #7c3d00;
  font-size: 0.92em;
}

.article-body pre {
  padding: 1.2rem 1.3rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.3rem;
  background: #162130;
  color: #edf2f8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.article-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.article-body blockquote {
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--brand);
  border-radius: 0 1rem 1rem 0;
  background: rgba(15, 139, 141, 0.08);
  color: var(--ink-soft);
}

.article-body hr {
  border: 0;
  border-top: 1px solid rgba(24, 33, 47, 0.1);
  margin: 2rem 0;
}

.article-body table {
  width: 100%;
  overflow: hidden;
  border-collapse: collapse;
  border-radius: 1.2rem;
  box-shadow: 0 0 0 1px rgba(24, 33, 47, 0.08);
}

.article-body th,
.article-body td {
  padding: 0.78rem 0.9rem;
  border-bottom: 1px solid rgba(24, 33, 47, 0.08);
  text-align: left;
}

.article-body th {
  background: rgba(15, 139, 141, 0.09);
  color: var(--ink);
}

.article-body tr:nth-child(even) {
  background: rgba(24, 33, 47, 0.025);
}

.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.4rem auto;
  border-radius: 1.35rem;
  box-shadow: 0 16px 42px rgba(17, 27, 38, 0.14);
}

.article-body img[width],
.article-body img[height] {
  max-width: 100%;
}

.article-nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.inline-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.inline-cta-link:hover {
  color: var(--brand-deep);
}

.article-sidebar-stack {
  top: 6.25rem;
}

.sidebar-card {
  padding: 1.3rem;
  margin-bottom: 1rem;
}

.sidebar-title {
  margin-bottom: 0.9rem;
  color: var(--ink-subtle);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc-list {
  display: grid;
  gap: 0.25rem;
}

.toc-link {
  display: block;
  padding: 0.42rem 0;
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.45;
}

.toc-link:hover {
  color: var(--brand-deep);
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-list li + li {
  margin-top: 0.85rem;
}

.sidebar-list a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.sidebar-list a:hover {
  color: var(--brand-deep);
}

.product-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.product-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(14, 30, 63, 0.06);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.product-hero-card {
  margin-bottom: 1.25rem;
}

.device-gallery-panel {
  margin-top: 1.25rem;
}

.device-gallery-card {
  overflow: hidden;
  border: 1px solid rgba(24, 33, 47, 0.08);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(246, 250, 255, 0.95));
  box-shadow: 0 18px 40px rgba(17, 27, 38, 0.08);
}

.device-gallery-card .media-zoom-trigger {
  border-bottom: 1px solid rgba(24, 33, 47, 0.06);
}

.device-gallery-card img {
  display: block;
  width: 100%;
  height: 16rem;
  object-fit: contain;
  background:
    radial-gradient(circle at top left, rgba(15, 139, 141, 0.08), transparent 30%),
    linear-gradient(180deg, #f9fbff 0%, #f4f8ff 100%);
}

.device-gallery-card figcaption {
  padding: 0.9rem 1rem 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.device-spec-grid {
  display: grid;
  grid-template-columns: minmax(0, 110px) minmax(0, 1fr);
  gap: 0.65rem 0.9rem;
}

.device-spec-grid dt {
  color: var(--ink-subtle);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.device-spec-grid dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.buy-box-card {
  background:
    radial-gradient(circle at top right, rgba(15, 139, 141, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(243, 248, 255, 0.96));
  box-shadow: 0 16px 36px rgba(17, 27, 38, 0.08);
}

.buy-box-list {
  display: grid;
  gap: 0.9rem;
}

.buy-link-card {
  display: block;
  padding: 0.95rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.16s ease, color 0.16s ease;
}

.buy-link-card + .buy-link-card {
  border-top: 1px solid rgba(24, 33, 47, 0.08);
}

.buy-link-card:hover {
  transform: translateY(-1px);
  color: var(--brand-deep);
}

.buy-link-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.buy-link-price {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
}

.buy-link-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.45rem;
  color: var(--ink-subtle);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.buy-link-note {
  margin-top: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.manufacturer-logo-shell {
  height: 84px;
  width: 100%;
  max-width: 180px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,244,238,0.92));
  border: 1px solid rgba(28, 34, 39, 0.08);
  box-shadow: 0 10px 28px rgba(32, 37, 42, 0.08);
}

.manufacturer-logo-shell-detail {
  max-width: 220px;
  height: 120px;
  margin-inline: auto;
}

.manufacturer-logo-image {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.manufacturer-logo-image-detail {
  max-height: 72px;
}

.integration-directory-card {
  display: flex;
  flex-direction: column;
}

.integration-logo-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 88px;
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,244,238,0.92));
  border: 1px solid rgba(28, 34, 39, 0.08);
  box-shadow: 0 10px 28px rgba(32, 37, 42, 0.08);
}

.integration-logo-shell-detail {
  width: min(220px, 100%);
  min-width: 220px;
  min-height: 136px;
  margin-bottom: 0;
}

.integration-logo-image {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.integration-logo-image-detail {
  max-height: 82px;
}

.integration-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(15, 139, 141, 0.14), rgba(13, 95, 115, 0.2));
  color: var(--brand-deep);
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
}

.integration-logo-fallback-detail {
  width: 72px;
  height: 72px;
  font-size: 1.85rem;
}

.integration-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.15rem;
}

.integration-hero-card {
  margin-bottom: 1.25rem;
}

.integration-hero-head {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.integration-gallery-card img {
  height: 14rem;
}

.manufacturer-detail-body {
  padding: 1.5rem 1.75rem;
}

.site-page-shell-rich .site-page-intro {
  margin-bottom: 1.5rem;
}

.site-page-rich {
  padding: clamp(1.5rem, 2vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 252, 246, 0.98) 100%);
  box-shadow: var(--shadow-soft);
}

.site-page-rich > :first-child {
  margin-top: 0;
}

.site-page-rich .card {
  border-color: rgba(24, 33, 47, 0.08);
  box-shadow: 0 14px 34px rgba(17, 27, 38, 0.07);
}

.site-page-rich .lead {
  max-width: 56rem;
  color: var(--ink-soft);
}

.media-lightbox {
  background: rgba(10, 18, 30, 0.78);
  backdrop-filter: blur(8px);
}

.media-lightbox .modal-content {
  min-height: 100%;
}

.media-lightbox-figure {
  text-align: center;
}

.media-lightbox-figure img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 1.25rem;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
}

.media-lightbox-caption {
  max-width: 52rem;
  margin: 1rem auto 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
  line-height: 1.6;
}

.manufacturer-detail-body > :last-child {
  margin-bottom: 0;
}

.sidebar-note {
  color: var(--ink-subtle);
  font-size: 0.85rem;
}

.next-steps-panel {
  padding-top: 2.5rem;
  border-top: 1px solid rgba(24, 33, 47, 0.08);
}

.next-step-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.next-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.next-steps-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 139, 141, 0.18);
  background: rgba(15, 139, 141, 0.08);
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.next-steps-cta:hover {
  background: rgba(15, 139, 141, 0.13);
  border-color: rgba(15, 139, 141, 0.26);
  color: var(--brand-deep);
  transform: translateY(-1px);
}

@media (max-width: 991.98px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .home-latest-grid,
  .home-spotlight-card {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .article-sidebar-stack {
    top: auto;
  }
}

@media (min-width: 1400px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(19rem, 0.82fr);
    gap: 1.5rem;
  }

  .hero-copy {
    max-width: 36rem;
  }

  .hero-title {
    font-size: clamp(3rem, 3.6vw, 4rem);
  }

  .hero-lead {
    max-width: 32rem;
  }
}

@media (max-width: 767.98px) {
  .navbar-emh .form-control {
    min-width: 0;
  }

  .hero-section {
    padding-top: 3.75rem;
  }

  .home-latest-band {
    margin-top: -1rem;
  }

  .hero-title {
    font-size: clamp(2.3rem, 12vw, 3.6rem);
  }

  .page-title,
  .article-display-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .section-shell {
    padding: 3.5rem 0;
  }

  .surface-panel,
  .page-intro,
  .listing-card,
  .content-card,
  .catalog-card,
  .brand-card,
  .integration-card,
  .project-card,
  .home-spotlight-card,
  .home-latest-mini-card {
    border-radius: 1.4rem;
  }

  .article-body {
    font-size: 1rem;
  }

  .integration-hero-head {
    flex-direction: column;
    align-items: stretch;
  }

  .integration-logo-shell-detail {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .page-reveal,
  .page-reveal-delay {
    animation: none;
  }

  .content-card,
  .listing-card,
  .brand-card,
  .catalog-card,
  .project-card,
  .integration-card,
  .next-step-card,
  .navbar-emh .nav-link,
  .pill-button {
    transition: none;
  }
}
