/* Dock starts as a small pill (current page + three dots) and expands on hover. */
@media (min-width:701px) and (hover:hover) and (pointer:fine){
  .dock{transition:padding .45s cubic-bezier(.22,1,.36,1),box-shadow .45s ease}

  /* Three dots, shown while collapsed. */
  .dock::after{content:"\2022\2022\2022";display:block;max-width:64px;padding:0 16px 0 12px;overflow:hidden;white-space:nowrap;font-size:17px;line-height:1;letter-spacing:.14em;color:#ece5db;opacity:1;cursor:default;transition:max-width .45s cubic-bezier(.22,1,.36,1),padding .45s cubic-bezier(.22,1,.36,1),opacity .2s ease}

  /* Every link except the current one folds away. */
  .dock>a:not(.active){max-width:0;margin-left:-3px;padding-left:0;padding-right:0;overflow:hidden;opacity:0;pointer-events:none;transition:max-width .5s cubic-bezier(.22,1,.36,1),margin .5s cubic-bezier(.22,1,.36,1),padding .5s cubic-bezier(.22,1,.36,1),opacity .3s ease,background .25s,color .25s}

  /* Hover (or keyboard focus) opens the whole dock. */
  .dock:hover>a:not(.active),.dock:focus-within>a:not(.active){max-width:170px;margin-left:0;padding-left:18px;padding-right:18px;opacity:1;pointer-events:auto;transition-delay:0s,0s,0s,.1s,0s,0s}
  .dock:hover>a.nav-contact:not(.active),.dock:focus-within>a.nav-contact:not(.active){margin-left:6px}
  .dock:hover::after,.dock:focus-within::after{max-width:0;padding:0;opacity:0}
}

@media (min-width:701px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:reduce){
  .dock,.dock::after,.dock>a:not(.active){transition:none}
}

@media(min-width:701px) and (hover:hover) and (pointer:fine){
.dock::after{content:"";width:44px;max-width:44px;height:20px;flex-shrink:0;padding:0;margin:0 8px;letter-spacing:0;background:radial-gradient(circle at 10px 50%,#ece5db 0 2px,transparent 2.5px),radial-gradient(circle at 22px 50%,#ece5db 0 2px,transparent 2.5px),radial-gradient(circle at 34px 50%,#ece5db 0 2px,transparent 2.5px);transition:width .45s cubic-bezier(.22,1,.36,1),max-width .45s cubic-bezier(.22,1,.36,1),margin .45s cubic-bezier(.22,1,.36,1),opacity .2s ease}
.dock:hover::after,.dock:focus-within::after{width:0;max-width:0;padding:0;margin:0;opacity:0}
}

@media(min-width:701px) and (hover:hover) and (pointer:fine){
.dock::after{width:24px;max-width:24px;height:24px;margin:0 12px;background:#ece5db;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.5%22%3E%3Ccircle%20cx%3D%2221%22%20cy%3D%2222%22%20r%3D%227%22%2F%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%229%22%20r%3D%224.5%22%2F%3E%3Ccircle%20cx%3D%225%22%20cy%3D%2221%22%20r%3D%222.7%22%2F%3E%3Cpath%20d%3D%22M21%2012v4m0%2012v4M11%2022h4m12%200h5M14%2015l3%203m8%208%203%203m-14%200%203-3m8-8%203-3M11%202v3m0%208v3M4%209h3m8%200h3M6%204l2%202m6%206%202%202M6%2014l2-2m6-6%202-2M5%2016v2m0%206v2M0%2021h2m6%200h2%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.5%22%3E%3Ccircle%20cx%3D%2221%22%20cy%3D%2222%22%20r%3D%227%22%2F%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%229%22%20r%3D%224.5%22%2F%3E%3Ccircle%20cx%3D%225%22%20cy%3D%2221%22%20r%3D%222.7%22%2F%3E%3Cpath%20d%3D%22M21%2012v4m0%2012v4M11%2022h4m12%200h5M14%2015l3%203m8%208%203%203m-14%200%203-3m8-8%203-3M11%202v3m0%208v3M4%209h3m8%200h3M6%204l2%202m6%206%202%202M6%2014l2-2m6-6%202-2M5%2016v2m0%206v2M0%2021h2m6%200h2%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/contain no-repeat}
.dock:hover::after,.dock:focus-within::after{width:0;max-width:0;margin:0;opacity:0}
}

/* After a page is chosen with the mouse, the dock folds back up even while the pointer is still over it. */
@media (min-width:701px) and (hover:hover) and (pointer:fine){
  html .dock.dock-closed:hover>a:not(.active),html .dock.dock-closed:focus-within>a:not(.active),html .dock.dock-closed:hover>a.nav-contact:not(.active),html .dock.dock-closed:focus-within>a.nav-contact:not(.active){max-width:0;margin-left:-3px;padding-left:0;padding-right:0;opacity:0;pointer-events:none}
  html .dock.dock-closed:hover::after,html .dock.dock-closed:focus-within::after{width:24px;max-width:24px;margin:0 12px;opacity:1}
}

/* Warm cream active pills across the full navigation in both themes. */
.dock>a.active,.dock>a[aria-current="location"]{background:#f4ecdf!important;color:#242424!important}

/* Contact keeps its racing-red identity when selected. */
.dock>a.nav-contact.active,.dock>a.nav-contact[aria-current="location"]{background:#ef3c34!important;color:#fff!important}
.dock>a.nav-contact.active svg,.dock>a.nav-contact[aria-current="location"] svg{color:#fff!important}
