/* The supplied CardNav's expanding shell and staggered cards in the aquarium palette. */
#hd.card-nav-header { position: relative; z-index: 360; display: block; height: 112px; min-height: 112px; padding: 0; background: var(--deep); }
.card-nav-shell { position: absolute; top: 12px; left: max(24px, calc((100% - var(--content)) / 2)); right: max(24px, calc((100% - var(--content)) / 2)); height: 88px; overflow: hidden; border-radius: 14px; background: #103b54; }
.card-nav-top { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: 88px; padding: 10px 20px; gap: 18px; }
#hd.card-nav-header .logo { position: static; display: block; width: 112px; height: auto; margin: 0; padding: 0; justify-self: center; }
#hd.card-nav-header .logo a { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 0; }
#hd.card-nav-header .logo img { display: block; width: 100%; height: auto; }
.card-nav-toggle { display: inline-flex; align-items: center; justify-self: start; justify-content: center; gap: 13px; min-width: 44px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: #f0fbff; font-size: 14px; font-weight: 500; }
.card-nav-toggle:hover { background: #19526e; }
.card-nav-hamburger { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 24px; height: 24px; }
.card-nav-hamburger > span { display: block; width: 24px; height: 2px; background: currentColor; transform-origin: 50% 50%; transition: transform .25s ease; }
.card-nav-toggle.is-open .card-nav-hamburger > span:first-child { transform: translateY(4px) rotate(45deg); }
.card-nav-toggle.is-open .card-nav-hamburger > span:last-child { transform: translateY(-4px) rotate(-45deg); }
.card-nav-actions { justify-self: end; display: flex; align-items: center; gap: 10px; min-width: 0; }
#hd.card-nav-header #gnb { position: absolute; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; top: 88px; right: 0; left: 0; width: 100%; height: auto; margin: 0; padding: 0 12px 12px; gap: 12px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border: 0; background: none; transition: none; scrollbar-color: #568da6 #103b54; }
.card-nav-shell[data-card-nav-state="closed"] #gnb { visibility: hidden; }
.card-nav-content[aria-hidden="true"] { pointer-events: none; }
.nav-card { display: flex; flex-direction: column; gap: 22px; min-width: 0; min-height: 264px; padding: 20px; border-radius: 10px; background: #0b506d; color: #f3fcff; }
.nav-card:nth-child(2) { background: #145e79; }
.nav-card:nth-child(3) { background: #126b80; }
.nav-card:nth-child(4) { background: #237589; }
.nav-card-label { display: block; width: fit-content; max-width: 100%; color: #fff; font-size: 19px; font-weight: 600; line-height: 1.45; letter-spacing: -.02em; word-break: keep-all; overflow-wrap: break-word; }
.nav-card-label:hover, .nav-card-label:focus-visible { color: #d1f7ff; }
.nav-card-links { display: flex; flex-direction: column; align-items: stretch; gap: 3px; margin-top: auto; }
.nav-card-link { display: flex; align-items: flex-start; gap: 8px; min-height: 30px; padding: 4px 0; color: #e4f5fd; font-size: 13px; line-height: 1.65; text-decoration: none; }
.nav-card-link > span { min-width: 0; overflow-wrap: anywhere; }
.nav-card-link-icon { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; transition: transform .2s ease; }
.nav-card-link:hover, .nav-card-link:focus-visible, .nav-card-link[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: .25em; }
.nav-card-link:hover .nav-card-link-icon { transform: translate(2px, -2px); }
@media (max-width: 960px) {
  #hd.card-nav-header { height: 100px; min-height: 100px; }
  .card-nav-shell { left: 18px; right: 18px; height: 76px; }
  .card-nav-top { height: 76px; padding: 8px 12px; gap: 12px; }
  #hd.card-nav-header .logo { width: 96px; }
  #hd.card-nav-header #gnb { top: 76px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 10px 10px; }
  .nav-card { min-height: 210px; padding: 17px; gap: 16px; }
  .nav-card-link { min-height: 36px; }
}
@media (max-width: 620px) {
  #hd.card-nav-header { height: 92px; min-height: 92px; }
  .card-nav-shell { top: 10px; left: 12px; right: 12px; height: 72px; border-radius: 12px; }
  .card-nav-top { height: 72px; padding: 8px 10px; grid-template-columns: 44px minmax(58px, 1fr) auto; gap: 5px; }
  #hd.card-nav-header .logo { justify-self: start; width: 82px; max-width: 100%; }
  .card-nav-menu-label { display: none; }
  .card-nav-toggle { padding: 8px; }
  .card-nav-actions { gap: 6px; }
  #hd.card-nav-header #gnb { top: 72px; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 0 8px 8px; }
  .nav-card { min-height: 0; padding: 17px 18px; gap: 12px; }
  .nav-card-label { font-size: 18px; }
  .nav-card-link { min-height: 40px; align-items: center; font-size: 14px; }
  .nav-card-link-icon { margin-top: 0; }
}
