:root {
  --bp-blue: #173f7a;
  --bp-blue-dark: #102f5d;
  --bp-orange: #f07a22;
  --bp-orange-dark: #d86112;
  --bp-ink: #16191d;
  --bp-muted: #626b76;
  --bp-line: #e3e7ec;
  --bp-soft: #f5f7fa;
  --bp-white: #ffffff;
}

body {
  color: var(--bp-ink);
  background: var(--bp-white);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

a { color: var(--bp-blue); }
a:hover { color: var(--bp-orange-dark); }

section[id] {
  scroll-margin-top: 92px;
}

.site-header {
  z-index: 1030;
}

.navbar {
  box-shadow: 0 10px 24px rgba(16, 47, 93, .06);
}

.navbar-brand img {
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.nav-link {
  color: var(--bp-ink);
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--bp-orange-dark);
}

.dropdown-menu {
  border-color: var(--bp-line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(16, 47, 93, .14);
  padding: 10px;
}

.dropdown-item {
  border-radius: 6px;
  padding: 9px 12px;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--bp-soft);
  color: var(--bp-orange-dark);
}

.btn {
  border-radius: 8px;
  font-weight: 700;
}

.btn-brand {
  background: var(--bp-orange);
  border-color: var(--bp-orange);
  color: #fff;
}

.btn-brand:hover,
.btn-brand:focus {
  background: var(--bp-orange-dark);
  border-color: var(--bp-orange-dark);
  color: #fff;
}

.btn-outline-brand {
  border-color: var(--bp-blue);
  color: var(--bp-blue);
  background: #fff;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
  border-color: var(--bp-blue);
  background: var(--bp-blue);
  color: #fff;
}

.section {
  padding: 76px 0;
}

.section-soft {
  background: var(--bp-soft);
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero-visual {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 340px;
  height: auto;
  margin-left: auto;
  opacity: .88;
  filter: drop-shadow(0 28px 42px rgba(16,47,93,.16));
}

.page-hero.has-visual {
  overflow: hidden;
}

.section-title {
  color: var(--bp-ink);
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--bp-orange-dark);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(16,47,93,.96), rgba(23,63,122,.87)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='700' viewBox='0 0 1200 700'%3E%3Crect width='1200' height='700' fill='%23173f7a'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.18' stroke-width='2'%3E%3Cpath d='M60 520 C260 420 310 250 490 270 C700 294 725 102 1010 140'/%3E%3Cpath d='M120 620 C340 500 420 380 590 410 C810 450 880 260 1150 310'/%3E%3Cpath d='M0 180 C180 100 300 160 420 100 C650 -15 780 90 930 62 C1040 42 1120 0 1200 30'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  color: #fff;
}

.hero .section {
  padding-top: 92px;
  padding-bottom: 92px;
}

.hero-panel {
  background: rgba(255,255,255,.96);
  color: var(--bp-ink);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
}

.hero-stat {
  border-left: 4px solid var(--bp-orange);
  padding-left: 16px;
}

.badge-soft {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
}

.card-clean,
.tool-card,
.team-card {
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(16, 47, 93, .07);
}

.tool-card {
  display: block;
  color: var(--bp-ink);
  text-decoration: none;
  height: 100%;
  border-color: rgba(23, 63, 122, .22);
  border-left: 4px solid var(--bp-blue);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(240,122,34,.70);
  border-left-color: var(--bp-orange);
  background: #fffaf6;
  box-shadow: 0 18px 42px rgba(16, 47, 93, .16);
  color: var(--bp-ink);
}

.tool-card .tool-link {
  color: var(--bp-blue);
  font-weight: 800;
}

.tool-card:hover .tool-link {
  color: var(--bp-blue);
}

.tools-section-head {
  max-width: 760px;
}

.tools-divider {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--bp-line);
}

.icon-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bp-blue);
  color: #fff;
  font-weight: 800;
}

.icon-mark.orange {
  background: var(--bp-orange);
}

.list-check {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.list-check li {
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45rem;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--bp-orange);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--bp-orange);
}

.split-band {
  border-top: 1px solid var(--bp-line);
  border-bottom: 1px solid var(--bp-line);
}

.mini-label {
  font-size: .78rem;
  color: var(--bp-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(135deg, var(--bp-blue), #2f5f9d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 800;
}

.team-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  border-radius: 8px 8px 0 0;
}

.team-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .95rem;
  line-height: 1.35;
}

.team-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bp-blue);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.team-contact a:hover {
  color: var(--bp-orange);
}

.team-contact-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.embed-shell {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(16,47,93,.12);
}

.embed-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--bp-line);
}

.embed-frame {
  display: block;
  width: 100%;
  min-height: 1120px;
  border: 0;
  background: #fff;
}

.login-preview {
  border: 1px solid rgba(23,63,122,.2);
  background: linear-gradient(135deg, #fff, #f6f8fb);
  border-radius: 8px;
}

.login-info-panel,
.portal-summary,
.portal-document {
  background: #fff;
  border: 1px solid rgba(23,63,122,.22);
  border-left: 4px solid var(--bp-blue);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(16, 47, 93, .07);
}

.login-info-panel {
  background: linear-gradient(135deg, #fff, #f6f8fb);
}

.portal-summary {
  background: var(--bp-soft);
}

.portal-document {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.portal-document:hover {
  transform: translateY(-2px);
  border-color: rgba(240,122,34,.70);
  border-left-color: var(--bp-orange);
  box-shadow: 0 18px 42px rgba(16, 47, 93, .14);
}

.portal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.portal-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--bp-blue);
  background: #f1f5fb;
  border: 1px solid rgba(23,63,122,.16);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
}

.admin-user-list {
  display: grid;
  gap: 14px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  background: #fff;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.admin-password-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-password-form .form-control {
  width: 180px;
}

.document-admin-stack {
  display: grid;
  gap: 24px;
}

.document-dropzone {
  display: grid;
  gap: 5px;
  place-items: center;
  min-height: 150px;
  padding: 22px;
  color: var(--bp-blue);
  background: #f6f8fb;
  border: 2px dashed rgba(23,63,122,.34);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.document-dropzone:hover,
.document-dropzone.is-dragover {
  color: var(--bp-orange-dark);
  background: #fffaf6;
  border-color: var(--bp-orange);
}

.document-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.document-dropzone-title {
  font-weight: 800;
}

.document-dropzone-text {
  color: var(--bp-muted);
  font-size: .9rem;
}

.document-user-checks {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}

.document-user-checks.compact {
  max-height: 210px;
}

.document-user-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  background: #fff;
}

.document-user-check small {
  display: block;
  color: var(--bp-muted);
}

.document-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.document-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.portal-document-table {
  min-width: 840px;
}

.document-table th,
.document-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--bp-line);
  vertical-align: top;
}

.document-table th {
  white-space: nowrap;
}

.document-sort {
  padding: 0;
  color: var(--bp-muted);
  background: transparent;
  border: 0;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.document-sort::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  vertical-align: middle;
}

.document-sort.is-active[data-direction="asc"]::after {
  border-bottom: 5px solid var(--bp-blue);
}

.document-sort.is-active[data-direction="desc"]::after {
  border-top: 5px solid var(--bp-blue);
}

.document-sort:hover,
.document-sort:focus {
  color: var(--bp-blue);
}

.document-table td {
  font-size: .92rem;
}

.document-table td small {
  display: block;
  margin-top: 3px;
  color: var(--bp-muted);
  line-height: 1.35;
}

.document-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  margin-right: 6px;
  color: #fff;
  background: var(--bp-blue);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
}

.document-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.document-table-controls,
.document-table-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.portal-document-controls {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.document-table-controls .form-label {
  margin-bottom: 6px;
}

.document-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.document-pagination span,
#document-table-count,
#portal-document-count {
  color: var(--bp-muted);
  font-size: .9rem;
}

.vn-band {
  border-left: 6px solid var(--bp-blue);
  background: #fff;
}

.vn-logo {
  display: block;
  width: min(100%, 280px);
  height: auto;
}

.team-feature-img,
.team-hero-img {
  display: block;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(16,47,93,.13);
}

.team-feature-img {
  aspect-ratio: 16 / 9;
  object-position: center 32%;
}

.team-visual-section {
  padding-top: 40px;
  background: var(--bp-soft);
}

.team-hero-img {
  height: auto;
  max-height: 860px;
  object-fit: contain;
  object-position: center;
}

.footer-main {
  padding: 56px 0;
  background: #11151a;
  color: rgba(255,255,255,.76);
}

.footer-logo {
  width: 230px;
  max-width: 100%;
  background: #fff;
  border-radius: 6px;
  padding: 10px;
}

.footer-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.site-footer a {
  display: block;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  margin: 7px 0;
}

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

.footer-bottom {
  padding: 14px 0;
  background: #0b0e12;
  color: rgba(255,255,255,.64);
  font-size: .9rem;
}

.bp-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080;
  padding: 16px 0;
  color: #fff;
  background: rgba(17, 21, 26, .97);
  border-top: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 -18px 48px rgba(0,0,0,.24);
}

.bp-cookie-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.bp-cookie-text {
  color: rgba(255,255,255,.9);
  font-size: .9rem;
  line-height: 1.5;
}

.bp-cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.bp-cookie-banner a {
  color: #fff;
  font-weight: 700;
}

.bp-cookie-modal {
  border: 1px solid var(--bp-line);
  border-radius: 8px;
}

.bp-login-modal {
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(16,47,93,.22);
}

.page-hero {
  background: var(--bp-soft);
  border-bottom: 1px solid var(--bp-line);
}

@media (max-width: 991.98px) {
  .navbar-nav {
    padding-top: 16px;
    padding-bottom: 12px;
  }

  .navbar .btn {
    width: 100%;
    margin-top: 8px;
  }
}

@media (max-width: 991.98px) {
  .hero .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .bp-cookie-inner {
    grid-template-columns: 1fr;
  }

  .bp-cookie-actions {
    justify-content: stretch;
    white-space: normal;
  }

  .bp-cookie-actions .btn {
    flex: 1 1 0;
  }

  .admin-user-row {
    grid-template-columns: 1fr;
  }

  .admin-user-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .document-table-controls,
  .document-table-footer {
    grid-template-columns: 1fr;
  }

  .document-pagination {
    justify-content: space-between;
  }

  .admin-password-form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .admin-password-form .form-control {
    width: 100%;
  }

  .document-user-checks {
    max-height: none;
  }

  .bp-cookie-actions {
    flex-direction: column;
  }

  .bp-cookie-actions .btn {
    width: 100%;
  }
}
