:root {
  --ba-ivory: #FFF9F0;
  --ba-white: #FFFFFF;
  --ba-pale-gold: #FBF1D6;
  --ba-maroon: #64151A;
  --ba-charcoal: #292524;
  --ba-border: #E7DED2;
  --ba-shadow: 0 10px 30px rgba(41, 37, 36, 0.06);
  --ba-card: #FFFFFF;
  --ba-header: rgba(255, 249, 240, 0.96);
  --ba-display: "Fraunces", Georgia, serif;
  --ba-font: "Source Sans 3", "Segoe UI", sans-serif;
  --ba-content: 1240px;
}
[data-ba-theme="dark"] {
  --ba-ivory: #1C1412;
  --ba-white: #2A211C;
  --ba-pale-gold: #3A2E22;
  --ba-charcoal: #F6F0E8;
  --ba-border: #4A3C34;
  --ba-card: #2A211C;
  --ba-header: rgba(28, 20, 18, 0.96);
}
.ba-header, .ba-header button, .ba-header input, .ba-header select { font-family: var(--ba-font); }
.ba-header { position: sticky; top: 0; z-index: 40; background: var(--ba-header); border-bottom: 1px solid var(--ba-border); }
.ba-wrap { width: min(var(--ba-content), calc(100% - 40px)); margin: 0 auto; }
.ba-header-inner { display: flex; align-items: center; gap: 12px; min-height: 74px; flex-wrap: nowrap; }
.ba-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ba-charcoal); font-weight: 700; }
.ba-brand span { font-family: var(--ba-display); font-size: 18px; }
.ba-diya { width: 42px; height: 42px; max-width: none; object-fit: contain; animation: ba-breathe 4.8s ease-in-out infinite; }
@keyframes ba-breathe {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 196, 84, 0.8)) drop-shadow(0 0 14px rgba(217, 164, 65, 0.45)); }
  50% { filter: drop-shadow(0 0 12px rgba(255, 214, 130, 0.95)) drop-shadow(0 0 26px rgba(217, 164, 65, 0.72)); }
}
.ba-nav { display: flex; gap: 8px 12px; margin-left: auto; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ba-nav a, .ba-drop > button { text-decoration: none; color: var(--ba-charcoal); font-weight: 650; font-size: 14px; background: none; border: 0; padding: 0; cursor: pointer; }
.ba-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.ba-btn-primary { background: var(--ba-maroon); color: var(--ba-ivory); }
.ba-icon-btn { width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--ba-border); background: var(--ba-white); color: var(--ba-charcoal); }
.ba-burger, .ba-header-city, .ba-mobile-nav, .ba-search-toggle, .ba-search-overlay { display: none; }
.ba-drop { position: relative; }
.ba-drop-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 180px; padding: 8px; background: var(--ba-card); border: 1px solid var(--ba-border); border-radius: 14px; box-shadow: var(--ba-shadow); z-index: 30; }
.ba-drop.is-open .ba-drop-menu { display: grid; }
.ba-drop-menu a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ba-charcoal); text-decoration: none; }
.ba-header-search { width: 132px; }
.ba-header-search input, .ba-header-city select { width: 100%; min-height: 38px; border-radius: 999px; border: 1px solid var(--ba-border); background: var(--ba-white); color: var(--ba-charcoal); padding: 0 12px; }
.ba-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@media (max-width: 800px) {
  .ba-nav { display: none; }
  .ba-burger, .ba-header-city { display: inline-flex; }
  .ba-header-city { width: 108px; }
  .ba-header-search { flex: 1; width: auto; min-width: 0; }
  .ba-mobile-nav.open { display: grid; gap: 12px; padding: 8px 0 16px; }
  .ba-mobile-nav a { color: var(--ba-charcoal); text-decoration: none; font-weight: 650; }
}
@media (max-width: 390px) {
  .ba-brand span { display: none; }
  .ba-diya { width: 36px; height: 36px; }
}
html.dark .ba-header a,
html.dark .ba-brand,
html.dark .ba-nav a,
html.dark .ba-drop-menu a,
html.dark .ba-mobile-nav a {
  color: var(--ba-charcoal);
}
html.dark .ba-header .ba-btn-primary { color: var(--ba-ivory); }
@media (prefers-reduced-motion: reduce) {
  .ba-diya { animation: none; filter: drop-shadow(0 0 8px rgba(255, 196, 84, 0.85)); }
}
.ba-guest-composer { background: #fff; border: 1px solid rgba(15, 23, 42, .08); border-radius: 16px; padding: 16px; margin: 0 0 12px; font-family: var(--ba-font); color: #292524; }
.ba-guest-composer h2 { margin: 0 0 8px; font-size: 20px; font-family: var(--ba-display); }
.ba-guest-composer p { margin: 0 0 12px; line-height: 1.45; }
.ba-guest-composer .ba-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ba-guest-composer .ba-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.ba-guest-composer .ba-btn-primary { background: #64151A; color: #fff; }
.ba-guest-composer .ba-btn-secondary { background: #fff; color: #64151A; border: 1px solid #64151A; }
body:has(.ba-header) .main-header-non-login { display: none; }
body:has(.main-header-non-login) .post-status-box { display: none; }

.ba-search-overlay[hidden] { display: none !important; }
.ba-search-overlay { padding: 10px 0 14px; background: var(--ba-header); border-top: 1px solid var(--ba-border); }
.ba-search-overlay-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ba-search-overlay-form input { flex: 1 1 100%; min-width: 0; min-height: 48px; border-radius: 999px; border: 1px solid var(--ba-border); background: var(--ba-white); color: var(--ba-charcoal); padding: 0 16px; font-size: 17px; }
.ba-search-close { min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ba-border); background: var(--ba-white); color: var(--ba-charcoal); font: inherit; font-weight: 700; cursor: pointer; }
.ba-mobile-nav button { justify-self: start; min-height: 44px; border: 0; background: none; color: var(--ba-charcoal); font: inherit; font-weight: 650; font-size: 16px; padding: 0; cursor: pointer; text-align: left; }
@media (max-width: 800px) {
  .ba-header-inner { min-height: 64px; height: 64px; max-height: 64px; flex-wrap: nowrap; gap: 8px; }
  .ba-header-search { min-width: 120px; }
  .ba-tabs { top: 64px; }
}
@media (max-width: 767px) {
  .ba-header-search { display: none; }
  .ba-search-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .ba-header-inner .ba-theme { display: none; }
  .ba-burger { margin-left: auto; }
  .ba-header-city { width: 132px; max-width: 42vw; min-width: 0; flex: none; }
  .ba-header-city select { width: 100%; max-width: 100%; min-width: 0; padding: 0 8px; font-size: 14px; }
}
@media (max-width: 479px) {
  .ba-brand span { display: none; }
  .ba-diya { width: 36px; height: 36px; }
}
