/* Shared Night Ride header + soft corners for the hand-written pages
   (account.html, profile.html, login.html). Loaded after each page's own styles. */
header.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid rgba(236,229,218,.14); position: relative; }
.mark { font-family: "Anton", sans-serif; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; text-decoration: none; color: #ece5da; }
.mark-logo { height: 30px; width: auto; display: block; }
.mark i { font-style: normal; color: #D64545; }
.bar nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font: 400 15px "Space Grotesk", sans-serif; letter-spacing: 0; text-transform: none; }
.bar nav a, .bar nav button { color: #ece5da; opacity: .78; text-decoration: none; background: none; border: 0; font: inherit; letter-spacing: 0; text-transform: none; cursor: pointer; padding: 0; }
.bar nav a:hover, .bar nav button:hover, .bar nav a.on { opacity: 1; color: #ece5da; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: #D64545; }
.bar nav .acct { opacity: 1; font-weight: 700; }
.bar nav a.m-only { display: none; }
.menu-btn { display: none; }
@media (max-width: 760px) {
  header.bar { flex-wrap: nowrap; }
  .menu-btn { display: flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border-radius: 12px; cursor: pointer; border: 1px solid rgba(236,229,218,.22); background: #161413; color: #ece5da; }
  .bar nav { display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; width: min(260px, calc(100vw - 32px)); flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; background: rgba(13,12,11,.97); border: 1px solid rgba(236,229,218,.22); border-radius: 16px; box-shadow: 0 12px 28px rgba(0,0,0,.45); }
  .bar nav.open { display: flex; }
  .bar nav a, .bar nav a.m-only, .bar nav button { display: block; text-align: left; padding: 11px 14px; border-radius: 10px; opacity: 1; }
}
/* Softer corners and plain labels to match the rest of the site */
button, .btn, input, select, textarea { border-radius: 12px; }
.card, .panel, .box, .stat, section.card { border-radius: 16px; }

/* Header search (search.js) */
.hsearch { position: relative; flex: 1 1 220px; max-width: 360px; display: flex; align-items: center; margin: 0 auto 0 8px; }
.hsearch .hs-icon { position: absolute; left: 12px; color: #a49b8f; pointer-events: none; }
.hsearch input { width: 100%; height: 40px; border-radius: 12px; border: 1px solid rgba(236,229,218,.16); background: #161413; color: #ece5da; font: 400 14.5px "Space Grotesk", sans-serif; padding: 0 12px 0 36px; outline: none; -webkit-appearance: none; appearance: none; }
.hsearch input:focus { border-color: #D64545; }
.hsearch input::placeholder { color: #a49b8f; }
.hsearch-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 300px; z-index: 60; background: #161413; border: 1px solid rgba(236,229,218,.18); border-radius: 14px; box-shadow: 0 16px 36px rgba(0,0,0,.5); padding: 6px; max-height: 70vh; overflow-y: auto; }
.hsearch-results a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; text-decoration: none; color: #ece5da; }
.hsearch-results a:hover, .hsearch-results a.on { background: #211d1b; }
.hs-ph { flex: none; width: 52px; height: 36px; border-radius: 8px; overflow: hidden; background: #211d1b; display: flex; align-items: center; justify-content: center; }
.hs-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-ph.park { font-family: "Anton", sans-serif; font-size: 15px; color: #D64545; }
.hs-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.hs-txt b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-txt span { font-size: 12.5px; color: #a49b8f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hsearch-results .hs-all { justify-content: center; font-size: 13.5px; font-weight: 700; border-top: 1px solid rgba(236,229,218,.1); border-radius: 0 0 10px 10px; margin-top: 4px; padding-top: 10px; }
.hs-none { padding: 10px; font-size: 13.5px; color: #a49b8f; }
@media (max-width: 760px) {
  header.bar { flex-wrap: wrap !important; row-gap: 12px; }
  .hsearch { order: 3; flex: 1 1 100%; max-width: none; margin: 0; }
  .hsearch-results { min-width: 0; }
}
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
header.bar .hsearch { flex: 1 1 280px; min-width: 240px; }
header.bar .hsearch input { box-sizing: border-box; margin: 0; }
