:root {
  --dmv-navy: #123b6d;
  --dmv-primary: #1f66b3;
  --dmv-bright: #2f80ed;
  --dmv-sky: #eaf4ff;
  --dmv-red: #d93a3a;
  --dmv-text: #1f2937;
  --dmv-border: #dbe5ef;
}

/* Owner final brand mark */
.dmv-shared-shell-v3 .site-branding .site-title-wrap {
  display: none !important;
}

.dmv-shared-shell-v3 .site-branding a.brand {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: 0;
  line-height: 1;
}

.dmv-shared-shell-v3 .site-branding a.brand img.custom-logo {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
}

.dmv-shared-shell-v3 .site-branding:not(.mobile-site-branding) .dmv-logo-mobile,
.dmv-shared-shell-v3 .mobile-site-branding .dmv-logo-desktop {
  display: none !important;
}

.dmv-shared-shell-v3 .site-branding:not(.mobile-site-branding) .dmv-logo-desktop {
  display: block !important;
  width: 56px !important;
  height: 56px !important;
}

.dmv-shared-shell-v3 .site-branding:not(.mobile-site-branding) .dmv-brand-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  min-width: max-content;
  margin-left: 11px;
  text-align: left;
}

.dmv-shared-shell-v3 .dmv-brand-wordmark {
  color: var(--dmv-navy);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.05;
}

.dmv-shared-shell-v3 .dmv-brand-descriptor {
  color: #5b6b7e;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.dmv-shared-shell-v3 .mobile-site-branding .dmv-logo-mobile {
  display: block !important;
  width: 46px !important;
  height: 46px !important;
}

.dmv-shared-shell-v3 .mobile-site-branding .dmv-brand-copy {
  display: none !important;
}

/* Header V3 */
.dmv-shared-shell-v3 #masthead {
  position: relative;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(18, 59, 109, 0.12);
  box-shadow: 0 5px 18px rgba(18, 59, 109, 0.07);
}

.dmv-shared-shell-v3 #masthead::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 3px;
  background: linear-gradient(90deg, var(--dmv-navy) 0 62%, var(--dmv-red) 62% 100%);
  content: "";
}

.dmv-shared-shell-v3 #main-header,
.dmv-shared-shell-v3 #mobile-header,
.dmv-shared-shell-v3 #masthead .site-header-row-container-inner,
.dmv-shared-shell-v3 #masthead .site-main-header-wrap .site-header-row-container-inner {
  background: #fff;
}

.dmv-shared-shell-v3 #masthead .site-header-item,
.dmv-shared-shell-v3 #masthead .site-branding {
  padding: 0;
}

.dmv-shared-shell-v3 #site-navigation .primary-menu-container > ul > li.menu-item > a {
  position: relative;
  min-height: 44px;
  padding: 10px 8px;
  color: var(--dmv-navy) !important;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.dmv-shared-shell-v3 #site-navigation .primary-menu-container > ul > li.menu-item > a::after {
  position: absolute;
  right: 8px;
  bottom: 4px;
  left: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--dmv-bright);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.dmv-shared-shell-v3 #site-navigation .primary-menu-container > ul > li.menu-item:hover > a,
.dmv-shared-shell-v3 #site-navigation .primary-menu-container > ul > li.menu-item.current-menu-item > a,
.dmv-shared-shell-v3 #site-navigation .primary-menu-container > ul > li.menu-item.current-menu-ancestor > a {
  color: var(--dmv-primary) !important;
}

.dmv-shared-shell-v3 #site-navigation .primary-menu-container > ul > li.menu-item:hover > a::after,
.dmv-shared-shell-v3 #site-navigation .primary-menu-container > ul > li.menu-item.current-menu-item > a::after,
.dmv-shared-shell-v3 #site-navigation .primary-menu-container > ul > li.menu-item.current-menu-ancestor > a::after,
.dmv-shared-shell-v3 #site-navigation .primary-menu-container > ul > li.menu-item > a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.dmv-shared-shell-v3 #site-navigation .nav-drop-title-wrap,
.dmv-shared-shell-v3 #site-navigation .dropdown-nav-toggle {
  color: inherit !important;
}

.dmv-shared-shell-v3 .header-navigation .header-menu-container ul ul.sub-menu {
  min-width: 250px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--dmv-border);
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(18, 59, 109, 0.16);
}

.dmv-shared-shell-v3 .header-navigation .header-menu-container ul ul li.menu-item {
  border: 0;
}

.dmv-shared-shell-v3 .header-navigation .header-menu-container ul ul li.menu-item > a {
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--dmv-navy);
  font-size: 14px;
  line-height: 1.35;
}

.dmv-shared-shell-v3 .header-navigation .header-menu-container ul ul li.menu-item > a:hover,
.dmv-shared-shell-v3 .header-navigation .header-menu-container ul ul li.menu-item > a:focus-visible {
  background: var(--dmv-sky);
  color: var(--dmv-primary);
}

.dmv-shared-shell-v3 #masthead a:focus-visible,
.dmv-shared-shell-v3 #masthead button:focus-visible,
.dmv-shared-shell-v3 #colophon a:focus-visible {
  outline: 3px solid var(--dmv-bright);
  outline-offset: 3px;
}

@media (min-width: 1025px) {
  .dmv-shared-shell-v3 #main-header .site-header-upper-inner-wrap {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    align-items: center;
    width: min(100%, 1440px);
    min-height: 88px;
    margin: 0 auto;
    padding: 3px 18px 0;
  }

  .dmv-shared-shell-v3 #main-header .site-top-header-wrap,
  .dmv-shared-shell-v3 #main-header .site-main-header-wrap,
  .dmv-shared-shell-v3 #main-header .site-container,
  .dmv-shared-shell-v3 #main-header .site-top-header-inner-wrap,
  .dmv-shared-shell-v3 #main-header .site-main-header-inner-wrap {
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  .dmv-shared-shell-v3 #main-header .site-top-header-inner-wrap,
  .dmv-shared-shell-v3 #main-header .site-main-header-inner-wrap,
  .dmv-shared-shell-v3 #main-header .site-header-main-section-left,
  .dmv-shared-shell-v3 #main-header .site-header-item-main-navigation,
  .dmv-shared-shell-v3 #main-header #site-navigation,
  .dmv-shared-shell-v3 #main-header .primary-menu-container,
  .dmv-shared-shell-v3 #main-header #primary-menu {
    display: flex;
    align-items: center;
  }

  .dmv-shared-shell-v3 #main-header .site-header-main-section-left,
  .dmv-shared-shell-v3 #main-header .site-header-item-main-navigation,
  .dmv-shared-shell-v3 #main-header #site-navigation,
  .dmv-shared-shell-v3 #main-header .primary-menu-container {
    width: 100%;
  }

  .dmv-shared-shell-v3 #main-header #primary-menu {
    justify-content: flex-end;
    width: 100%;
    flex-wrap: nowrap;
  }
}

/* Homepage-only Sidebar V3 */
@media (min-width: 1025px) {
  body.home.page-id-2203.dmv-shared-shell-v3 .content-container.site-container {
    grid-template-columns: minmax(0, 1fr) 264px;
    column-gap: 28px;
    align-items: start;
    max-width: 1260px;
  }

  body.home.page-id-2203.dmv-shared-shell-v3 #main,
  body.home.page-id-2203.dmv-shared-shell-v3 #secondary {
    min-width: 0;
  }
}

body.home.page-id-2203.dmv-shared-shell-v3 #secondary .sidebar-inner-wrap {
  display: grid;
  gap: 20px;
}

body.home.page-id-2203.dmv-shared-shell-v3 #secondary .widget {
  margin: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--dmv-border);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(18, 59, 109, 0.055);
}

body.home.page-id-2203.dmv-shared-shell-v3 #secondary .widget-title,
body.home.page-id-2203.dmv-shared-shell-v3 #secondary .popular-posts > h2 {
  margin: 0 0 12px;
  color: var(--dmv-navy);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

body.home.page-id-2203.dmv-shared-shell-v3 #secondary ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.home.page-id-2203.dmv-shared-shell-v3 #secondary .widget:not(#block-34) li {
  margin: 0;
  padding: 7px 0;
  border-top: 1px solid #edf2f7;
  color: #5a6b7d;
  font-size: 13px;
  line-height: 1.4;
}

body.home.page-id-2203.dmv-shared-shell-v3 #secondary .widget:not(#block-34) li:first-child {
  padding-top: 0;
  border-top: 0;
}

body.home.page-id-2203.dmv-shared-shell-v3 #secondary .widget li a {
  min-height: 0 !important;
  padding: 0 !important;
  color: #324a61;
  font-weight: 540;
  text-decoration: none;
}

body.home.page-id-2203.dmv-shared-shell-v3 #secondary .widget li a:hover,
body.home.page-id-2203.dmv-shared-shell-v3 #secondary .widget li a:focus-visible {
  color: var(--dmv-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.home.page-id-2203.dmv-shared-shell-v3 #secondary .wpp-list {
  display: grid;
  gap: 0;
}

body.home.page-id-2203.dmv-shared-shell-v3 #secondary .wpp-list > li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin: 0;
  padding: 11px 0;
  border-top: 1px solid #edf2f7;
}

body.home.page-id-2203.dmv-shared-shell-v3 #secondary .wpp-list > li:first-child {
  padding-top: 0;
  border-top: 0;
}

body.home.page-id-2203.dmv-shared-shell-v3 #secondary .wpp-list > li > a:first-child {
  display: block !important;
  width: 52px;
  height: 52px;
  min-height: 52px !important;
  padding: 0 !important;
}

body.home.page-id-2203.dmv-shared-shell-v3 #secondary .wpp-thumbnail {
  float: none;
  width: 52px;
  height: 52px;
  margin: 0;
  border-radius: 8px;
  object-fit: cover;
}

body.home.page-id-2203.dmv-shared-shell-v3 #secondary .wpp-post-title {
  font-size: 13px;
  font-weight: 620;
  line-height: 1.35;
}

/* Footer V3 — original widget content and destinations are retained. */
.dmv-shared-shell-v3 #colophon {
  border-top: 4px solid var(--dmv-bright);
  background: var(--dmv-navy);
  color: #e6eef7;
}

.dmv-shared-shell-v3 #colophon .site-footer-row-container,
.dmv-shared-shell-v3 #colophon .site-footer-row-container-inner,
.dmv-shared-shell-v3 #colophon .site-footer-wrap {
  background: var(--dmv-navy);
}

.dmv-shared-shell-v3 #colophon .site-container {
  max-width: 1340px;
  padding-right: 28px;
  padding-left: 28px;
}

.dmv-shared-shell-v3 #colophon .site-top-footer-inner-wrap {
  gap: 44px;
  padding-top: 48px;
  padding-bottom: 42px;
}

.dmv-shared-shell-v3 #colophon .site-footer-section,
.dmv-shared-shell-v3 #colophon .footer-widget-area,
.dmv-shared-shell-v3 #colophon .widget,
.dmv-shared-shell-v3 #colophon .kt-inside-inner-col {
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: 0;
  box-shadow: none;
}

.dmv-shared-shell-v3 #colophon .dmv-footer-brand {
  margin: 0 0 22px;
}

.dmv-shared-shell-v3 #colophon .dmv-footer-brand a,
.dmv-shared-shell-v3 #colophon .dmv-footer-brand img {
  display: block;
}

.dmv-shared-shell-v3 #colophon .dmv-footer-brand img {
  width: 84px;
  height: 84px;
}

.dmv-shared-shell-v3 #colophon h3,
.dmv-shared-shell-v3 #colophon h3 mark {
  margin: 0 0 15px;
  color: #a8c7e8 !important;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dmv-shared-shell-v3 #colophon p,
.dmv-shared-shell-v3 #colophon li,
.dmv-shared-shell-v3 #colophon a {
  color: #e6eef7 !important;
  font-size: 14px;
  line-height: 1.65;
}

.dmv-shared-shell-v3 #colophon ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dmv-shared-shell-v3 #colophon li {
  margin: 0 0 3px;
}

.dmv-shared-shell-v3 #colophon a {
  text-decoration: none;
}

.dmv-shared-shell-v3 #colophon a:hover {
  color: #fff !important;
  text-decoration: underline;
  text-decoration-color: #a8c7e8;
  text-underline-offset: 4px;
}

.dmv-shared-shell-v3 #colophon .footer-widget4 .kb-row-layout-wrap .kt-row-column-wrap {
  display: block;
  min-height: 0;
  padding: 0;
}

.dmv-shared-shell-v3 #colophon .footer-widget4 .wp-block-kadence-column:empty,
.dmv-shared-shell-v3 #colophon .footer-widget4 .wp-block-social-links:empty {
  display: none;
}

.dmv-shared-shell-v3 #colophon .wp-social-link-youtube {
  display: inline-flex;
  margin-top: 4px;
  border: 1px solid rgba(168, 199, 232, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.dmv-shared-shell-v3 #colophon .wp-social-link-youtube a {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
}

.dmv-shared-shell-v3 #colophon .wp-social-link-youtube svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.dmv-shared-shell-v3 #colophon .site-middle-footer-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.dmv-shared-shell-v3 #colophon .site-middle-footer-inner-wrap {
  padding-top: 18px;
  padding-bottom: 18px;
}

.dmv-shared-shell-v3 #colophon #block-31 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.dmv-shared-shell-v3 #colophon #block-31 p {
  margin: 0;
  color: #a8c7e8 !important;
  font-size: 12.5px;
  line-height: 1.5;
}

.dmv-shared-shell-v3 #colophon #block-31 p:last-child {
  flex: 0 0 auto;
}

@media (max-width: 1024px) {
  .dmv-shared-shell-v3 #mobile-header .site-main-header-inner-wrap {
    min-height: 76px;
    padding-top: 3px;
  }

  .dmv-shared-shell-v3 #mobile-header .site-container {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }

  .dmv-shared-shell-v3 #mobile-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--dmv-navy);
  }

  .dmv-shared-shell-v3 #mobile-toggle:hover,
  .dmv-shared-shell-v3 #mobile-toggle:focus-visible {
    background: var(--dmv-sky);
    color: var(--dmv-primary);
  }

  .dmv-shared-shell-v3 .popup-drawer .drawer-inner {
    background: var(--dmv-navy);
  }

  .dmv-shared-shell-v3 .popup-drawer .drawer-header,
  .dmv-shared-shell-v3 .popup-drawer .drawer-content {
    padding-right: 22px;
    padding-left: 22px;
  }

  .dmv-shared-shell-v3 .popup-drawer .menu-toggle-close,
  .dmv-shared-shell-v3 .popup-drawer .drawer-navigation a,
  .dmv-shared-shell-v3 .drawer-inner #mobile-menu > li > a,
  .dmv-shared-shell-v3 .drawer-inner #mobile-menu > li.current-menu-item > a {
    color: #fff !important;
  }

  .dmv-shared-shell-v3 .popup-drawer .drawer-navigation .sub-menu {
    padding-left: 12px;
    border-left: 1px solid rgba(168, 199, 232, 0.34);
  }

  body.home.page-id-2203.dmv-shared-shell-v3 #secondary {
    padding-top: 24px;
  }

  .dmv-shared-shell-v3 #colophon .site-top-footer-inner-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 44px;
  }
}

@media (max-width: 767px) {
  .dmv-shared-shell-v3 .mobile-site-branding .dmv-logo-mobile {
    width: 46px !important;
    height: 46px !important;
  }

  .dmv-shared-shell-v3 #mobile-header .site-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  body.home.page-id-2203.dmv-shared-shell-v3 #secondary .widget {
    padding: 17px;
  }

  .dmv-shared-shell-v3 #colophon .site-container {
    padding-right: 20px;
    padding-left: 20px;
  }

  .dmv-shared-shell-v3 #colophon .site-top-footer-inner-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding-top: 38px;
    padding-bottom: 34px;
  }

  .dmv-shared-shell-v3 #colophon .site-footer-section {
    width: 100%;
  }

  .dmv-shared-shell-v3 #colophon #block-31 {
    display: grid;
    gap: 8px;
  }

  .dmv-shared-shell-v3 #colophon #block-31 p:last-child {
    justify-self: start;
  }
}
