/* Homara — shared mobile chrome (top bar + slide-in drawer).
   Pages use this to expose the sidebar nav on screens where the
   desktop <aside> is hidden. The markup is generated by mobile-chrome.js
   so pages only need to include the script and stylesheet. */

.hm-mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f5f4ee;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid #e8e9e1;
}
@media (max-width: 767px) {
  .hm-mobile-topbar { display: flex; }
}
.hm-mobile-topbar .hm-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Noto Serif', serif; font-size: 18px; color: #31332e;
  text-decoration: none;
}
.hm-mobile-topbar .hm-brand .hm-italic { font-style: italic; }
.hm-mobile-hamburger {
  width: 40px; height: 40px; border-radius: 10px;
  background: #efeee8; color: #31332e;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
}
.hm-drawer-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(49,51,46,0.35);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
}
.hm-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.hm-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 70;
  width: 82vw; max-width: 320px;
  background: #fbf9f5;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.2,.6,.2,1);
  overflow-y: auto;
  box-shadow: 0 24px 60px -18px rgba(49,51,46,0.35);
}
.hm-drawer.open { transform: translateX(0); }
body.hm-drawer-open { overflow: hidden; }
@media (min-width: 768px) {
  .hm-drawer, .hm-drawer-backdrop, .hm-mobile-topbar { display: none !important; }
}

.hm-drawer .hm-drawer-head {
  padding: 18px 22px 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.hm-drawer .hm-drawer-title {
  font-family: 'Noto Serif', serif;
  font-size: 18px;
  font-style: italic;
  color: #31332e;
}
.hm-drawer hr {
  border: none;
  height: 1px;
  background: #e8e9e1;
  margin: 6px 22px 14px;
}
.hm-drawer .hm-drawer-nav {
  display: flex; flex-direction: column;
  padding: 0 10px 24px;
  gap: 2px;
}
.hm-drawer .hm-drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: #31332e;
  text-decoration: none;
  transition: background .18s ease;
}
.hm-drawer .hm-drawer-nav a:hover,
.hm-drawer .hm-drawer-nav a.active {
  background: #efeee8;
  font-weight: 500;
}
.hm-drawer .hm-drawer-nav a .material-symbols-outlined {
  font-size: 18px;
  color: #5d6059;
}
