/* ==========================================================================
   Navigation — mobile drawer and search overlay
   The desktop mega panel was removed with the homepage furniture; the masthead
   row is styled in main.css alongside the rest of the header.
   ========================================================================== */

.ek-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(22, 33, 29, 0.45);
  display: none;
}
.ek-drawer[data-open="true"] { display: block; }

.ek-drawer-panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(320px, 86vw);
  background: var(--surface);
  border-left: 1px solid var(--rule);
  padding: var(--gap-3);
  overflow-y: auto;
}

.ek-drawer-close {
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  background: none;
  border: 0;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  margin-bottom: var(--gap-2);
}
.ek-drawer-close:hover { color: var(--ink); }

.ek-drawer-list { list-style: none; margin: 0; padding: 0; }
.ek-drawer-list li { border-bottom: 1px solid var(--rule); }
.ek-drawer-list a {
  display: block;
  padding: 0.75rem 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
}
.ek-drawer-list a:hover { text-decoration: underline; text-decoration-color: var(--rule-strong); }

/* Search overlay ---------------------------------------------------------- */

.ek-searchmodal {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(22, 33, 29, 0.45);
  display: none;
  padding-top: 12vh;
}
.ek-searchmodal[data-open="true"] { display: block; }

.ek-searchmodal-panel {
  width: min(640px, 92vw);
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--gap-3);
}
.ek-searchmodal-panel input[type="search"] {
  width: 100%;
  font: inherit;
  font-size: var(--step-1);
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.ek-searchresults { margin-top: var(--gap-2); }
.ek-searchresults a {
  display: block;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}
.ek-searchresults a:hover { text-decoration: underline; text-decoration-color: var(--rule-strong); }
.ek-searchhint { font-size: 0.8125rem; color: var(--ink-faint); margin: var(--gap-2) 0 0; }
