:root {
  --blue: #0b4fff;
  --green: #0f9f6e;
  --gold: #b8923a;
  --ink: #0f1419;
  --bg: #fafbfc;
}

.brand-masthead {
  min-height: 108px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -20%, #dce9ff 0, transparent 58%),
    linear-gradient(180deg, #fff, #f9fbff);
  border-top: 3px solid var(--blue);
  border-bottom: 1px solid #e8edf5;
}

.brand-masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(#0b4fff08 1px, transparent 1px),
    linear-gradient(90deg, #0b4fff08 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent);
}

.brand-masthead a {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 100px;
  display: grid;
  place-items: center;
}

.brand-masthead img {
  display: block;
  width: 200px;
  height: 99px;
  object-fit: contain;
}

.topbar {
  justify-content: center;
  border-top: 0;
}

.inner-nav,
.news-nav {
  height: 62px;
  justify-content: center;
}

.inner-nav nav,
.news-nav nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.inner-nav nav a,
.news-nav nav a {
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
}

.inner-nav nav a:hover,
.news-nav nav a:hover {
  background: #edf3ff;
  color: var(--blue);
}

.archive-card .art img,
#article .cover {
  background-color: #dfe8f8;
}

.archive-card .art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.service-grid article:focus-visible {
  outline: 3px solid rgba(11, 79, 255, .2);
  outline-offset: 3px;
}

.service-detail {
  margin-top: 18px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1.1fr 1.3fr auto;
  align-items: center;
  gap: 26px;
  border-color: rgba(11, 79, 255, .28);
  background: linear-gradient(135deg, #fff, #f3f7ff);
}

.service-detail[hidden] { display: none; }
.service-detail span { color: var(--blue); font-size: 12px; font-weight: 700; }
.service-detail h3 { margin: 2px 0; color: var(--ink); }
.service-detail p { margin: 0; color: var(--muted); font-size: 13px; }
.service-detail ol { margin: 0; padding-right: 22px; font-size: 13px; }
.service-detail li::marker { color: var(--green); font-weight: 800; }
.service-detail .primary { white-space: nowrap; }

.mapviz .map-routes path {
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.mapviz .map-hubs circle {
  fill: var(--blue);
  stroke: #fff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 2px 4px rgba(20, 98, 255, .4));
  animation: corePulse 2s ease-in-out infinite;
}

.mapviz .map-hubs circle:nth-child(2) { animation-delay: -.45s; }
.mapviz .map-hubs circle:nth-child(3) { animation-delay: -.9s; }
.mapviz .map-hubs circle:nth-child(4) { animation-delay: -1.35s; }

@media (max-width: 800px) {
  .brand-masthead { min-height: 86px; }
  .eco { overflow: hidden; }
  .brand-masthead a { width: 175px; height: 82px; }
  .brand-masthead img { width: 165px; height: auto; }
  .inner-nav,
  .news-nav {
    height: 54px;
    padding: 0 10px;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .inner-nav::-webkit-scrollbar,
  .news-nav::-webkit-scrollbar { display: none; }
  .inner-nav nav,
  .news-nav nav {
    display: flex;
    min-width: max-content;
    gap: 2px;
  }
  .inner-nav nav a,
  .news-nav nav a { padding: 7px 12px; font-size: 12px; }
  .service-detail { grid-template-columns: 1fr; gap: 14px; }
  .service-detail .primary { width: max-content; }
}

@media (max-width: 480px) {
  .contact-info { grid-template-columns: 1fr; }
}
