/* samwaterhouse.com bar on the You Were Healed pages, added by scripts/bundle.py (the book's own files are untouched).
   Colours and tabs match the main site header (components/Header.tsx). */
.sw-bar { background: #fff; color: #143940; border-bottom: 1px solid #D8E4E5; font-family: var(--sans); }
.sw-bar .sw-wrap { display: flex; align-items: center; gap: 24px; max-width: 1280px; margin: 0 auto; padding: 0 24px; min-height: 60px; }
.sw-bar a { text-decoration: none; color: inherit; }
.sw-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sw-badge { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0;
  background: #EDF6F5; color: #006E82; font: 600 0.9rem/1 var(--sans); letter-spacing: -0.02em; transition: background .15s, color .15s; }
.sw-id:hover .sw-badge { background: #006E82; color: #fff; }
.sw-id small { display: block; font: 600 0.55rem/1.3 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: #006E82; }
.sw-id strong { display: block; font: 600 0.95rem/1.25 var(--sans); white-space: nowrap; }
.sw-tabs { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.sw-tabs::-webkit-scrollbar { display: none; }
.sw-tabs a { position: relative; padding: 20px 10px; font: 500 0.8rem/1 var(--sans); color: #52525b; white-space: nowrap; }
.sw-tabs a:hover { color: #006E82; }
.sw-tabs a[aria-current="page"] { color: #006E82; font-weight: 700; }
.sw-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; background: #006E82; }
.sw-invite { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 2px; background: #006E82; color: #fff !important;
  font: 600 0.78rem/1 var(--sans); white-space: nowrap; }
.sw-invite:hover { background: #00566B; }
.sw-bar a:focus-visible, .sw-home:focus-visible { outline: 2px solid #009ABB; outline-offset: 2px; }
@media (max-width: 860px) { .sw-invite { display: none; } }
@media (max-width: 640px) {
  .sw-bar .sw-wrap { flex-wrap: wrap; gap: 0 16px; padding: 8px 16px 0; }
  .sw-id small { display: none; }
  .sw-tabs { margin-left: -10px; width: calc(100% + 10px); }
  .sw-tabs a { padding: 14px 10px; }
}

/* Home button inside the book's sticky header, so the way back stays on screen while scrolling. */
.sw-home { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; margin-right: -6px;
  border: 1px solid var(--line-dark, rgba(255,255,255,.18)); color: #C8EDF2; font: 600 0.75rem/1 var(--sans); text-decoration: none; transition: background .15s, color .15s; }
.sw-home:hover { background: #006E82; color: #fff; border-color: #006E82; }
@media (max-width: 640px) {
  .sw-tabs a[href="/#about"] { display: none; }
  .sw-tabs a { padding: 14px 9px; font-size: 0.78rem; }
}
@media (max-width: 480px) {
  .site-head .wrap { gap: 12px; }
  .site-head .brand { letter-spacing: 0.14em; font-size: 0.8rem; }
  .site-head .head-cta { white-space: nowrap; padding-inline: 14px; font-size: 0.82rem; }
  .sw-home { width: 28px; height: 28px; margin-right: 0; font-size: 0.7rem; }
}
/* Narrow phones: the book's wordmark makes room for the home button and the buy button (the hero names the book). */
@media (max-width: 420px) {
  .site-head .brand { display: none; }
  .site-head .head-cta { margin-left: auto; }
}
