/* ByJTT Experiments — shared site chrome (nav + footer), used on ALL pages.
 * Mobile-first. The bottom tab bar follows X.com's mobile navigation pattern. */

/* ---- Bottom tab bar (site-wide) ---- */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  background: rgba(250, 248, 239, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid #eee4da;
  padding-bottom: env(safe-area-inset-bottom); }

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0 6px;
  color: #a0948a;
  text-decoration: none;
  font-weight: 600;
  transition: color 150ms ease; }
  .tab-item:hover, .tab-item:focus-visible { color: #776e65; }
  .tab-item.is-active { color: #e8834a; }
  .tab-item.is-active .tab-label { color: #776e65; }
  .tab-item:focus-visible { outline: 3px solid #f2b179; outline-offset: -3px; border-radius: 8px; }

.tab-icon { width: 24px; height: 24px; }
.tab-label { font-size: 11px; line-height: 1; }

/* content padding so nothing hides behind the fixed bar */
body { padding-bottom: 64px; }

@media (min-width: 641px) {
  .tab-bar { max-width: 640px; left: 50%; transform: translateX(-50%); border-radius: 14px 14px 0 0; }
  .tab-item { padding: 10px 0 8px; }
  .tab-icon { width: 26px; height: 26px; }
}

/* ---- Site footer (legal links) ---- */
.site-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid #eee4da;
  text-align: center;
  font-size: 13px;
  color: #a0948a; }
  .site-footer a { color: #776e65; font-weight: bold; text-decoration: underline; }
  .site-footer .footer-links { margin-bottom: 6px; }

/* ---- Search modal (opened only from the Search tab) ---- */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px; }
  .search-modal[hidden] { display: none; }

.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(60, 55, 50, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px); }

.search-modal-panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: #faf8ef;
  border: 1px solid #eee4da;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  padding: 14px; }

.search-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px; }

.search-modal-title {
  font-weight: 700;
  color: #776e65; }

.search-modal-close {
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #a0948a;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px; }
  .search-modal-close:hover, .search-modal-close:focus-visible { color: #776e65; outline: 3px solid #f2b179; }

.search-modal-input .pagefind-ui { max-width: 100%; margin: 0; padding: 0; }
.search-modal-input .pagefind-ui__search-clear,
.search-modal-input .pagefind-ui__search-input { border-radius: 8px !important; }
.search-modal-input .pagefind-ui__result { padding: 10px 0 !important; }
.search-modal-input .pagefind-ui__result-title { font-weight: bold !important; }

/* keep body from scrolling behind the modal */
body.search-open { overflow: hidden; }
