/* t366 / t388 — shared hasp + disc-lock nav button. Same component on every page. */

/* Keep the hanging disc lock visible (it overlaps the left end of the hasp). */
.hub-top, .chrome-nav, .site-header, .site-header .nav, .sitenav, .lock-nav{
  overflow:visible;
}
.lock-nav{
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:10px;
  width:auto;
}
nav.lock-nav > a{
  position:relative;
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:0;
  box-sizing:border-box;
  overflow:visible;
  min-height:42px;
  padding:8px 18px 8px 12px;
  font-family:"Anton",Impact,sans-serif;
  font-size:12.5px;
  line-height:1;
  letter-spacing:.12em;
  text-transform:uppercase;
  text-decoration:none;
  color:#1a140c;
  border-radius:3px;
  border:1px solid #5a5346;
  background:
    linear-gradient(180deg, rgba(255,248,230,.55) 0, rgba(255,248,230,.08) 10%, transparent 22%, transparent 78%, rgba(40,32,20,.28) 100%),
    linear-gradient(180deg, rgba(255,255,255,.42) 0%, transparent 36%, rgba(0,0,0,.2) 52%, rgba(255,255,255,.14) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #efe6d2, #cfc3a8 40%, #8e8674 52%, #d8cfb8);
  box-shadow:
    0 0 0 1px rgba(232,184,26,.5) inset,
    0 1px 0 rgba(255,248,220,.75) inset,
    0 2px 0 #3f3a32,
    0 3px 8px rgba(0,0,0,.42),
    0 0 0 1px #e8b81a;
  transition:filter .2s, box-shadow .2s;
}
nav.lock-nav > a:hover,
nav.lock-nav > a:focus-visible{
  filter:brightness(1.07);
  outline:none;
  box-shadow:
    0 0 0 1px rgba(232,184,26,.55) inset,
    0 1px 0 rgba(255,248,220,.8) inset,
    0 2px 0 #3f3a32,
    0 3px 10px rgba(0,0,0,.45),
    0 0 0 2px #ffe566,
    0 0 10px rgba(255,229,102,.4);
}
.lock-nav-lock{
  flex:0 0 auto;
  display:block;
  width:38px;
  height:40px;
  margin:-8px 4px -8px -20px;
  pointer-events:none;
  overflow:visible;
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.55));
}
.lock-nav-rivet{
  position:absolute;
  top:5px;
  right:6px;
  width:5px;
  height:5px;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #fff8ec, #b8b0a0 55%, #4a453c);
  box-shadow:0 0 0 .5px #3a362e, inset 0 1px 0 rgba(255,255,255,.65), 0 1px 1px rgba(0,0,0,.4);
  pointer-events:none;
}
.lock-nav-rivet--bl{
  top:auto;
  bottom:5px;
}

/* CTA rows (About page, etc.) use the same hasp buttons */
.lock-nav--cta{
  justify-content:center;
  gap:12px;
  margin:48px 0 8px;
  width:100%;
}
.lock-nav--cta > a{
  padding:9px 20px 9px 14px;
  font-size:13px;
  letter-spacing:.1em;
}
.lock-nav--book{
  margin:10px 0 0;
  justify-content:flex-start;
  width:auto;
}
.prose .lock-nav--book, .muted + .lock-nav--book{
  margin:16px 0 8px;
}
.lock-nav--book > a{
  padding:8px 16px 8px 10px;
  font-size:12px;
}

/* Guides / about header: same six hasp buttons as Home / Links */
.site-header .nav{flex-wrap:wrap}
.site-header .lock-nav:not(.lock-nav--cta){
  order:3;
  flex:1 1 auto;
  display:inline-flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
  width:auto;
}

@media (max-width:1100px){
  .site-header .lock-nav:not(.lock-nav--cta){
    flex:1 1 100%;
    width:100%;
    justify-content:center;
  }
}

@media (max-width:720px){
  .site-header .lock-nav:not(.lock-nav--cta){order:2;flex-wrap:wrap}
  .site-header .socials-bubble{order:3}
}

/* Restore the 3-col grid on phone; .lock-nav {display:flex} would otherwise wrap 4+2. */
@media (max-width:720px){
  .chrome-nav .sitenav.lock-nav,
  .site-header .lock-nav:not(.lock-nav--cta){
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    width:100%;
    gap:8px;
    justify-content:stretch;
  }
  .site-header .lock-nav:not(.lock-nav--cta){padding-left:12px} /* hanging lock clearance */
  .lock-nav--cta{gap:10px}
}
@media (max-width:480px){
  .hub-top .sitenav.lock-nav{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    width:100%;
    gap:8px;
  }
  nav.lock-nav > a{
    min-height:40px;
    padding:8px 12px 8px 8px;
    font-size:11.5px;
    letter-spacing:.08em;
  }
  .lock-nav-lock{
    width:28px;
    height:30px;
    margin:-6px 2px -6px -12px;
  }
  .hub-top .sitenav.lock-nav > a,
  .chrome-nav .sitenav.lock-nav > a,
  .site-header .lock-nav:not(.lock-nav--cta) > a{
    width:100%;
    padding:8px 6px 8px 6px;
    letter-spacing:.04em;
    font-size:10.5px;
    justify-content:center;
  }
  .lock-nav--cta > a{
    font-size:12px;
    letter-spacing:.06em;
    padding:8px 14px 8px 10px;
  }
}
