/* ══════════════════════════════════════════════════════════════
   GREAT EAGLE DESIGNS - Shared navigation styles
   Header · mobile sheet · command palette · footer · toast
   Tokens are scoped to these components so they can sit on pages that
   still use the older site.css palette without changing page content.
   ══════════════════════════════════════════════════════════════ */
.site-header, .mobile-sheet, .cmd-backdrop, .cmd-palette, .site-footer, .ged-toast, .skip-link {
  --bg: #F6F4EF; --bg-secondary: #EFEDE8; --bg-card: #FFFFFF;
  --text-primary: #14130F; --text-secondary: #4A4845; --text-tertiary: #6B6862;
  --border: rgba(20,19,15,0.12);
  --accent: #D9420F; --accent-hover: #BF3A0C; --accent-dim: rgba(217,66,15,0.10);
  --accent-text: #C23A0B; --btn-bg: #C23A0B; --btn-bg-hover: #A83009; --btn-fg: #FFFFFF;
  --shadow-hover: 0 8px 24px rgba(20,19,15,0.12);
  --radius: 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
[data-theme="dark"] .site-header,
[data-theme="dark"] .mobile-sheet,
[data-theme="dark"] .cmd-backdrop,
[data-theme="dark"] .cmd-palette,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .ged-toast,
[data-theme="dark"] .skip-link {
  --bg: #0E0E0C; --bg-secondary: #161614; --bg-card: #1C1C1A;
  --text-primary: #F2F0EA; --text-secondary: #A8A5A0; --text-tertiary: #8C8984;
  --border: rgba(242,240,234,0.12);
  --accent: #FF6B35; --accent-hover: #FF8355; --accent-dim: rgba(255,107,53,0.14);
  --accent-text: #FF7A4A; --btn-bg: #FF6B35; --btn-bg-hover: #FF8355; --btn-fg: #14130F;
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.5);
}

/* ─── Skip link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  z-index: 999;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }


/* Buttons used inside the shared components (scoped on purpose) */
.site-header .btn, .mobile-sheet .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-family: inherit; cursor: pointer; border: none;
  border-radius: 8px; padding: 9px 18px; font-size: 14px; font-weight: 600; line-height: 1.2;
  transition: background 0.15s, transform 0.1s;
}
.site-header .btn-primary, .mobile-sheet .btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.site-header .btn-primary:hover, .mobile-sheet .btn-primary:hover { background: var(--btn-bg-hover); transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════════════
   NAV — Sticky header
   ═══════════════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s, padding 0.2s;
}
.site-header.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo img { border-radius: 6px; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-nav a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  font-family: inherit;
}
.header-search-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.header-search-btn kbd {
  font-size: 11px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: inherit;
}

.header-theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.header-theme-btn:hover { border-color: var(--accent); color: var(--text-primary); }

.header-cta { }

.header-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.header-mobile-menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile sheet */
.mobile-sheet {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.mobile-sheet.open { transform: translateX(0); }

.mobile-sheet-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.mobile-sheet-close {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.mobile-sheet-inner nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-sheet-inner nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.mobile-sheet-inner nav a:hover { background: var(--bg-secondary); }
.mobile-sheet-inner nav .btn-primary {
  margin-top: 16px;
  justify-content: center;
  padding: 14px 24px;
  font-size: 16px;
}




/* ═══════════════════════════════════════════════════════════════
   ⌘K Command Palette
   ═══════════════════════════════════════════════════════════════ */

.cmd-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.cmd-backdrop.open { opacity: 1; pointer-events: auto; }

.cmd-palette {
  position: fixed;
  top: 20vh;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(640px, 90vw);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  z-index: 401;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  overflow: hidden;
}
.cmd-palette.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.cmd-inner { display: flex; flex-direction: column; }

.cmd-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}
.cmd-search-row svg { color: var(--text-tertiary); flex-shrink: 0; }
.cmd-search-row input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  padding: 16px 0;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
}
.cmd-search-row input::placeholder { color: var(--text-tertiary); }
.cmd-search-row kbd {
  font-size: 11px;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: inherit;
}

.cmd-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 60vh;
  overflow-y: auto;
}
.cmd-list li {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-primary);
  transition: background 0.1s, color 0.1s;
  user-select: none;
}
.cmd-list li:hover,
.cmd-list li[aria-selected="true"] {
  background: var(--accent-dim);
  color: var(--accent-text);
}
.cmd-list .cmd-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.cmd-list .cmd-item-label { font-weight: 500; }
.cmd-list .cmd-item-hint { font-size: 12px; color: var(--text-tertiary); margin-left: auto; }

.cmd-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 8px 16px 4px;
}



/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-logo:hover { color: var(--accent-text); }
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--accent-text); }
.footer-bottom {
  font-size: 13px;
  color: var(--text-tertiary);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}


/* ═══════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════ */
.ged-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: var(--text-primary);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 100px;
  z-index: 500;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  white-space: nowrap;
}
.ged-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* Fix: site.css styles every <nav> as the old fixed, centred glass pill,
   which pulled the header links out of the bar. Reset it here. */
.site-header .header-nav,
.mobile-sheet nav {
  position: static; top: auto; left: auto; transform: none;
  width: auto; max-width: none; height: auto;
  padding: 0; border-radius: 0; background: none;
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  z-index: auto;
}
.site-header .header-nav { display: flex; justify-content: flex-start; gap: 28px; }
.mobile-sheet nav { display: flex; flex-direction: column; justify-content: flex-start; }
.site-header .header-nav::before, .site-header .header-nav::after,
.mobile-sheet nav::before, .mobile-sheet nav::after { content: none; }


/* ─── Additions ─────────────────────────────────────────────── */
.site-header .header-inner { transition: height 0.2s ease; }
.site-header.scrolled .header-inner { height: 52px; }
.site-header a:focus-visible, .site-header button:focus-visible,
.mobile-sheet a:focus-visible, .mobile-sheet button:focus-visible,
.site-footer a:focus-visible, .cmd-palette input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.cmd-search-row input:focus-visible { outline: none; }
.header-theme-btn .icon-sun { display: none; }
[data-theme="dark"] .header-theme-btn .icon-sun { display: block; }
[data-theme="dark"] .header-theme-btn .icon-moon { display: none; }
.header-nav a.active { color: var(--text-primary); border-bottom-color: var(--accent); }
.mobile-sheet { visibility: hidden; transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0.25s; }
.mobile-sheet.open { visibility: visible; transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), visibility 0s; }
.mobile-sheet-inner nav .mobile-sheet-link {
  display: flex; align-items: center; min-height: 48px; padding: 12px 16px; width: 100%; text-align: left;
  font: inherit; font-size: 18px; font-weight: 600; color: var(--text-primary); background: none; border: 0; border-radius: var(--radius); cursor: pointer;
}
.mobile-sheet-inner nav .mobile-sheet-link:hover { background: var(--bg-secondary); }
.cmd-list .cmd-empty { padding: 14px 16px; color: var(--text-tertiary); cursor: default; }
.cmd-list .cmd-section-label { cursor: default; padding: 10px 16px 4px; }
.cmd-list li.cmd-section-label:hover { background: none; color: var(--text-tertiary); }
html.ged-lock { overflow: hidden; }
.header-theme-btn { min-width: 36px; }

/* Tablet: keep the links, drop the labels */
@media (max-width: 900px) {
  .site-header .header-inner { gap: 16px; }
  .header-logo span { display: none; }
  .header-search-btn span, .header-search-btn kbd { display: none; }
  .header-search-btn { padding: 0; width: 36px; height: 36px; justify-content: center; }
  .site-header .header-nav { gap: 20px; }
}
/* Phone: logo + Book a call + menu button */
@media (max-width: 600px) {
  .site-header .header-nav, .header-search-btn, .header-theme-btn { display: none; }
  .header-mobile-menu { display: flex; width: 44px; height: 44px; }
  .site-header .header-cta { display: inline-flex; min-height: 44px; padding: 0 16px; }
  .header-logo span { display: inline; font-size: 14px; }
  .site-header .header-inner { height: 60px; padding: 0 16px; gap: 10px; }
  .site-header.scrolled .header-inner { height: 56px; }
  .header-actions { gap: 8px; }
  .site-footer { padding: 36px 20px 28px; margin-top: 48px; }
  .footer-nav { gap: 12px 20px; }
  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 400px) { .header-logo span { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header .header-inner, .mobile-sheet, .cmd-palette, .cmd-backdrop { transition: none; }
}

/* ─── Case-study back button (moved from search-menu.css) ─────────
   Fixed pill under the sticky header so it never covers the logo. */
.cs-back {
  position: fixed; top: 80px; left: 24px; z-index: 150;
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 5px 16px 5px 6px; border-radius: 100px;
  text-decoration: none; cursor: pointer;
  width: auto; max-width: none;
}
.cs-back .cs-back-ico {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.cs-back .cs-back-ico svg { width: 18px; height: 18px; }
.cs-back .cs-back-label { font-size: 14px; font-weight: 700; color: var(--text-secondary); white-space: nowrap; transition: color 0.2s var(--ease); }
.cs-back:hover .cs-back-ico { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateX(-2px); box-shadow: 0 4px 14px rgba(255,42,0,0.35); }
.cs-back:hover .cs-back-label { color: var(--accent-text); }
.cs-back:focus-visible { outline: none; }
.cs-back:focus-visible .cs-back-ico { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 760px) {
  .cs-back { left: 12px; padding: 5px; }
  .cs-back .cs-back-label { display: none; }
}
@media (max-width: 600px) { .cs-back { top: 72px; } }

/* Scroll lock used by the contact / booking dialogs (moved from search-menu.css) */
body.ged-lock { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; touch-action: none; }

/* ─── Fixes from visual review ──────────────────────────────── */
/* site.css turns every <nav> into a fixed pill: reset the footer one too. */
.site-footer .footer-nav {
  position: static; top: auto; left: auto; transform: none; z-index: auto;
  width: auto; max-width: none; height: auto; padding: 0; border-radius: 0;
  background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 8px 24px;
}
.site-footer .footer-nav::before, .site-footer .footer-nav::after { content: none; }
/* No glow on buttons; a soft shadow on hover only */
.site-header .btn, .mobile-sheet .btn { box-shadow: none; }
.site-header .btn-primary:hover, .mobile-sheet .btn-primary:hover { box-shadow: 0 4px 12px rgba(20,19,15,0.18); }
/* Mobile sheet: left-aligned rows */
.mobile-sheet nav { align-items: stretch; }
.mobile-sheet-inner nav a { justify-content: flex-start; }
.mobile-sheet-inner nav .btn-primary { justify-content: center; }
.site-header .header-inner { max-width: 1248px; }

/* ─── Accessibility: closed overlays are not focusable ───────── */
.cmd-palette { transition: opacity 0.15s, transform 0.15s, visibility 0s linear 0.15s; visibility: hidden; }
.cmd-palette.open { visibility: visible; transition: opacity 0.15s, transform 0.15s, visibility 0s; }
.cmd-backdrop { transition: opacity 0.15s, visibility 0s linear 0.15s; visibility: hidden; }
.cmd-backdrop.open { visibility: visible; transition: opacity 0.15s, visibility 0s; }


/* ═══ Phone menu: icons + fits one screen ═══ */
.mobile-sheet-inner { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); min-height: 100dvh; }
.mobile-sheet-close { width: 44px; height: 44px; flex-shrink: 0; }
.mobile-sheet-inner nav { gap: 0; flex: 1; justify-content: flex-start; }
.mobile-sheet-inner nav a, .mobile-sheet-inner nav .mobile-sheet-link {
  gap: 14px; min-height: 48px; padding: 0 12px; font-size: clamp(16px, 2.3vh, 18px); }
.mobile-sheet-inner nav a.active { color: var(--accent-text, #C22000); }
.mobile-sheet .ms-ico { flex-shrink: 0; color: var(--text-secondary); }
.mobile-sheet a.active .ms-ico { color: currentColor; }
.mobile-sheet-sep { display: block; height: 1px; margin: 6px 12px; background: var(--border); }
.mobile-sheet-inner nav .btn-primary { margin-top: auto; min-height: 52px; }
@media (max-height: 640px) {
  .mobile-sheet-inner nav a, .mobile-sheet-inner nav .mobile-sheet-link { min-height: 44px; font-size: 15px; }
  .mobile-sheet .ms-ico { width: 20px; height: 20px; }
  .mobile-sheet-sep { margin: 4px 12px; }
}


/* ═══ Phone menu as a side panel sized to its content (not full screen) ═══ */
.mobile-sheet { inset: 0 0 0 auto !important; width: auto; min-width: 248px; max-width: min(320px, 86vw);
  border-left: 1px solid var(--border); box-shadow: -18px 0 40px rgba(0,0,0,0.28); }
.mobile-sheet-inner { min-height: 100dvh; padding-right: 16px; }
.mobile-sheet-inner nav a, .mobile-sheet-inner nav .mobile-sheet-link { white-space: nowrap; padding-right: 20px; }
/* Current page: red text, a red bar on the left and a soft tint */
.mobile-sheet-inner nav a.active { color: var(--accent-text, #C22000); }


/* Dim the page behind the panel */
html.ged-lock body::after { content: ""; position: fixed; inset: 0; z-index: 299; background: rgba(0,0,0,0.45); }

/* ═══ Search list: one compact line per result ═══ */
.cmd-list { padding: 6px; }
.cmd-list li { padding: 6px 10px; gap: 10px; min-height: 40px; font-size: 14px; }
.cmd-list .cmd-item-icon { width: 24px; height: 24px; border-radius: 6px; font-size: 13px; }
.cmd-list .cmd-item-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-list .cmd-item-hint { flex-shrink: 0; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-list .cmd-section-label { padding: 8px 10px 2px; min-height: 0; font-size: 11px; }
@media (max-width: 600px) {
  .cmd-palette { top: 12px; width: calc(100vw - 16px); }
  .cmd-list { max-height: calc(100dvh - 120px); }
  .cmd-list .cmd-item-hint { max-width: 38%; font-size: 11px; }
}


/* Search: list is 3/4 of its old height so the page shows below it (tap there to close) */
.cmd-list { max-height: 45vh !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
@media (max-width: 600px) { .cmd-list { max-height: calc((100dvh - 120px) * 0.75) !important; } }
.cmd-backdrop.open { cursor: pointer; }


/* ═══ Phone menu: small search field above the page links ═══ */
.mobile-sheet .ms-search { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin: 4px 0 10px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-secondary); color: var(--text-tertiary);
  font: inherit; font-size: 15px; text-align: left; cursor: text; }
.mobile-sheet .ms-search span { flex: 1; }
.mobile-sheet .ms-search kbd { display: none; }
.mobile-sheet .ms-search .ms-ico { width: 18px; height: 18px; }
.mobile-sheet .ms-search:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ═══ Search panel: fast springy entrance (~0.3 s, small overshoot, then still).
   Only the position moves; size, shape and content never change. ═══ */
@keyframes cmdSpring {
  0%   { opacity: 0; transform: translateX(-50%) translateY(-14px); }
  55%  { opacity: 1; transform: translateX(-50%) translateY(3px); }
  80%  { transform: translateX(-50%) translateY(-1px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cmd-palette.open { animation: cmdSpring 0.3s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .cmd-palette.open { animation: none; transform: translateX(-50%) translateY(0); }
  .cmd-palette, .cmd-palette.open { transition: opacity 0.15s, visibility 0s; }
}


/* Search list scrolls immediately on touch, even while the page behind is locked
   (body.ged-lock sets touch-action: none, which the list must override). */
body.ged-lock .cmd-palette, body.ged-lock .cmd-palette * { touch-action: auto; }
body.ged-lock .cmd-list { touch-action: pan-y !important; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
/* After the spring settles, drop the animation so iOS treats the panel as a normal scroll container */
.cmd-palette.open.is-settled { animation: none; transform: translateX(-50%); }


/* Search panel can take focus without opening the keyboard (touch screens) */
.cmd-palette:focus { outline: none; }
/* Pressed row feedback on touch, so a real tap is visible before it opens */
@media (hover: none) { .cmd-list li[role="option"]:active { background: var(--accent-dim); } .cmd-list li[aria-selected="true"] { background: none; color: inherit; } }
