/* Echo / Scotty library search. Tokens follow each site's design system. */
.ea-ls, .ea-ls * { box-sizing: border-box }
.ea-ls { --ls-ink: var(--ea-ink, #1d2232); --ls-navy: var(--ea-blue-d, #1f2740); --ls-text: var(--ea-text, #3d4456); --ls-mute: var(--ea-muted, #5b6377); --ls-line: var(--ea-line, #e3e6ee); --ls-gold: var(--ea-gold, #c9a227); --ls-surface: var(--ea-surface, #f5f6f9); --ls-white: #fff; --ls-r: 16px; --ls-head: var(--ea-head, Inter, system-ui, sans-serif); --ls-body: var(--ea-body, Inter, system-ui, sans-serif); --ls-shadow: var(--ea-shadow, 0 12px 32px -12px rgba(29,34,50,.14)); font-family: var(--ls-body); color: var(--ls-text) }
[data-ls-theme="scotty"] { --ls-ink: var(--srd-ink, #14161b); --ls-navy: var(--srd-navy, #1f2740); --ls-text: var(--srd-text, #3b3f48); --ls-mute: var(--srd-muted, #686c77); --ls-line: var(--srd-line, #e4ded4); --ls-gold: var(--srd-bronze, #c29a6b); --ls-surface: var(--srd-paper, #f7f4ef); --ls-white: #fff; --ls-r: 14px; --ls-head: var(--srd-serif, Newsreader, Georgia, serif); --ls-body: var(--srd-sans, Inter, system-ui, sans-serif); --ls-shadow: var(--srd-shadow, 0 10px 30px -12px rgba(20,22,27,.18)) }

/* Header icon */
.ea-ls-ibtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 8px 0 0; padding: 0; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; flex: none; vertical-align: middle }
.ea-ls-ibtn:hover { background: rgba(127,127,127,.12) }
.ea-ls-ibtn:focus-visible { outline: 3px solid var(--ea-gold, #c9a227); outline-offset: 2px }
.uicore-extra { display: flex; align-items: center }
.uicore-mobile-head-right { display: flex; align-items: center }
.uicore-mobile-head-right .ea-ls-ibtn { margin-right: 4px }

/* Hub / page (also used inside the dark heroes) */
.ea-ls-hub { width: 100%; max-width: 720px; margin: 28px 0 0; text-align: left }
body.search .ea-ls-hub { margin-top: 24px }
.ea-ls-field { position: relative }
.ea-ls-field svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ls-mute); pointer-events: none }
.ea-ls-input { width: 100%; height: 56px; padding: 0 118px 0 48px; border: 1.5px solid var(--ls-line); border-radius: var(--ls-r); background: var(--ls-white); color: var(--ls-ink); font: 16px/1.3 var(--ls-body); box-shadow: var(--ls-shadow); appearance: none }
.ea-ls-input::placeholder { color: var(--ls-mute) }
.ea-ls-input:focus { outline: none; border-color: var(--ls-navy); box-shadow: 0 0 0 4px rgba(201,162,39,.22), var(--ls-shadow) }
[data-ls-theme="scotty"] .ea-ls-input:focus { box-shadow: 0 0 0 4px rgba(194,154,107,.28), var(--ls-shadow) }
.ea-ls-go { position: absolute; right: 6px; top: 6px; height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--ls-gold); color: var(--ls-navy); font: 500 15px/1 var(--ls-head); cursor: pointer }
.ea-ls-go:hover { filter: brightness(1.05) }
.ea-ls-go:focus-visible { outline: 3px solid var(--ls-navy); outline-offset: 2px }
.ea-ls-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0 }

.ea-ls-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0 }
.ea-ls-chip { min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--ls-line); border-radius: 999px; background: var(--ls-white); color: var(--ls-ink); font: 600 13.5px/1.2 var(--ls-body); cursor: pointer }
.ea-ls-chip:hover { border-color: var(--ls-navy) }
.ea-ls-chip[aria-pressed="true"] { background: var(--ls-navy); border-color: var(--ls-navy); color: #fff }
.ea-ls-chip:focus-visible { outline: 3px solid var(--ls-gold); outline-offset: 2px }

.ea-ls-status { margin: 10px 0 0; min-height: 1.2em; font-size: 13.5px; color: var(--ls-mute) }
.ea-ls-results { margin-top: 14px }
.ea-ls-list { display: grid; gap: 8px }
.ea-ls-hit { display: block; padding: 14px 16px; border: 1px solid var(--ls-line); border-radius: 14px; background: var(--ls-white); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s }
.ea-ls-hit:hover, .ea-ls-hit:focus-visible { border-color: var(--ls-navy); box-shadow: var(--ls-shadow); text-decoration: none }
.ea-ls-hit:focus-visible { outline: 3px solid var(--ls-gold); outline-offset: 2px }
.ea-ls-hit-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px }
.ea-ls-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; background: var(--ls-surface); color: var(--ls-navy); font: 600 11px/1 var(--ls-body); letter-spacing: .06em; text-transform: uppercase }
.ea-ls-badge--topic { background: transparent; border: 1px solid var(--ls-line); color: var(--ls-mute); letter-spacing: .04em }
.ea-ls-hit-title { display: block; font-family: var(--ls-head); font-weight: 600; font-size: 18px; line-height: 1.25; color: var(--ls-ink) }
[data-ls-theme="scotty"] .ea-ls-hit-title { font-weight: 500 }
.ea-ls-hit-ex { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.45; color: var(--ls-mute) }
.ea-ls-more { display: inline-flex; margin-top: 12px; font: 600 14.5px/1.4 var(--ls-body); color: var(--ls-navy) }
.ea-ls-idle, .ea-ls-empty, .ea-ls-loading { padding: 16px 2px 4px; color: var(--ls-mute); font-size: 15px; line-height: 1.55 }
.ea-ls-idle p, .ea-ls-empty p { margin: 0 0 8px }
.ea-ls-popular { margin-top: 12px }
.ea-ls-popular p { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ls-mute) }
.ea-ls-popular-list { display: flex; flex-wrap: wrap; gap: 8px }
.ea-ls-suggest { min-height: 36px; padding: 6px 12px; border: 1.5px solid var(--ls-line); border-radius: 999px; background: transparent; color: var(--ls-ink); font: 600 13.5px/1 var(--ls-body); cursor: pointer }
.ea-ls-suggest:hover, .ea-ls-suggest:focus-visible { border-color: var(--ls-gold); outline: none }
.ea-ls-suggest:focus-visible { box-shadow: 0 0 0 3px rgba(201,162,39,.28) }
.ea-ls-consult { margin-top: 14px !important }
.ea-ls-consult a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 12px; background: var(--ls-gold); color: var(--ls-navy) !important; font: 500 15px/1 var(--ls-head); text-decoration: none }

/* Dark heroes (Echo insights/search titles, Scotty srd-hero) */
body.blog header.uicore-page-title .ea-ls-hub,
body.search header.uicore-page-title .ea-ls-hub,
.srd-hero .ea-ls-hub { max-width: 720px }
body.blog header.uicore-page-title .ea-ls-input,
body.search header.uicore-page-title .ea-ls-input,
.srd-hero .ea-ls-input { border-color: transparent }
body.blog header.uicore-page-title .ea-ls-chip,
body.search header.uicore-page-title .ea-ls-chip,
.srd-hero .ea-ls-chip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #fff }
body.blog header.uicore-page-title .ea-ls-chip:hover,
body.search header.uicore-page-title .ea-ls-chip:hover,
.srd-hero .ea-ls-chip:hover { border-color: var(--ls-gold); color: #fff }
body.blog header.uicore-page-title .ea-ls-chip[aria-pressed="true"],
body.search header.uicore-page-title .ea-ls-chip[aria-pressed="true"],
.srd-hero .ea-ls-chip[aria-pressed="true"] { background: var(--ls-gold); border-color: var(--ls-gold); color: var(--ls-navy) }
body.blog header.uicore-page-title .ea-ls-status,
body.search header.uicore-page-title .ea-ls-status,
body.blog header.uicore-page-title .ea-ls-idle,
body.search header.uicore-page-title .ea-ls-idle,
body.blog header.uicore-page-title .ea-ls-empty,
body.search header.uicore-page-title .ea-ls-empty,
body.blog header.uicore-page-title .ea-ls-popular p,
body.search header.uicore-page-title .ea-ls-popular p,
.srd-hero .ea-ls-status,
.srd-hero .ea-ls-idle,
.srd-hero .ea-ls-empty,
.srd-hero .ea-ls-popular p { color: rgba(255,255,255,.78) }
body.blog header.uicore-page-title .ea-ls-suggest,
body.search header.uicore-page-title .ea-ls-suggest,
.srd-hero .ea-ls-suggest { border-color: rgba(255,255,255,.3); color: #fff }
body.blog header.uicore-page-title .ea-ls-hit,
body.search header.uicore-page-title .ea-ls-hit,
.srd-hero .ea-ls-hit { background: rgba(255,255,255,.96) }
body.blog header.uicore-page-title .ea-ls-more,
body.search header.uicore-page-title .ea-ls-more,
.srd-hero .ea-ls-more { color: #fff }

/* Modal */
#ea-ls-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 24px }
#ea-ls-modal[hidden] { display: none !important }
.ea-ls-backdrop { position: absolute; inset: 0; background: rgba(20,26,43,.55); backdrop-filter: blur(4px) }
#ea-ls-modal, #ea-ls-modal .ea-ls-panel { --ls-ink:#1d2232; --ls-navy:#1f2740; --ls-text:#3d4456; --ls-mute:#5b6377; --ls-line:#e3e6ee; --ls-gold:#c9a227; --ls-surface:#f5f6f9; --ls-white:#fff; --ls-r:16px; --ls-head:var(--ea-head, Inter, system-ui, sans-serif); --ls-body:var(--ea-body, Inter, system-ui, sans-serif) }
#ea-ls-modal .ea-ls-panel[data-ls-theme="scotty"] { --ls-ink:var(--srd-ink,#14161b); --ls-navy:var(--srd-navy,#1f2740); --ls-text:var(--srd-text,#3b3f48); --ls-mute:var(--srd-muted,#686c77); --ls-line:var(--srd-line,#e4ded4); --ls-gold:var(--srd-bronze,#c29a6b); --ls-surface:var(--srd-paper,#f7f4ef); --ls-white:#fff; --ls-r:14px; --ls-head:var(--srd-serif, Newsreader, Georgia, serif); --ls-body:var(--srd-sans, Inter, system-ui, sans-serif) }
.ea-ls-panel { position: relative; z-index: 1; width: min(760px, 100%); max-height: min(80vh, 820px); overflow: auto; background: #fff; color: var(--ls-text, #3d4456); border-radius: 24px; box-shadow: 0 30px 60px -20px rgba(29,34,50,.4); padding: 22px 22px 24px }
#ea-ls-modal .ea-ls-panel[data-ls-theme="scotty"] { background: #f7f4ef; border-radius: 22px }
.ea-ls-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px }
.ea-ls-panel-kicker { margin: 0; font: 600 12px/1 var(--ls-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ls-mute) }
.ea-ls-close { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ls-ink); font-size: 24px; line-height: 1; cursor: pointer }
.ea-ls-close:hover { background: var(--ls-surface) }
.ea-ls-close:focus-visible { outline: 3px solid var(--ls-gold); outline-offset: 2px }
.ea-ls-kbd { margin: 10px 0 0; font-size: 12px; color: var(--ls-mute) }
.ea-ls-lock { overflow: hidden }

/* On the WP search page, hide the native loop once our results are in place. Keep it for no-JS. */
body.ea-ls-enhanced.search #primary .uicore-blog-grid,
body.ea-ls-enhanced.search #primary .uicore-archive > .uicore-grid-container { display: none }
body.ea-ls-enhanced.search header.uicore-page-title { padding-bottom: clamp(48px, 6vw, 80px) !important }

@media (max-width: 700px) {
  .ea-ls-input { height: 52px; padding-right: 118px; font-size: 16px }
  .ea-ls-go { height: 40px; top: 6px; padding: 0 14px; font-size: 14px }
  #ea-ls-modal { padding: 10px 10px 16px; align-items: stretch }
  .ea-ls-panel { max-height: none; border-radius: 16px; padding: 16px }
  body.blog header.uicore-page-title .ea-ls-hub,
  body.search header.uicore-page-title .ea-ls-hub { max-width: 100% }
}

@media (prefers-reduced-motion: reduce) {
  .ea-ls-hit, .ea-ls-chip, .ea-ls-go, .ea-ls-ibtn { transition: none }
}

#ea-ls-hub { scroll-margin-top: 110px }
body.blog header.uicore-page-title .ea-ls-results .ea-ls-list,
.srd-hero .ea-ls-results .ea-ls-list { max-height: min(48vh, 480px); overflow: auto }
@media (max-width: 1024px) {
  .uicore-extra > .ea-ls-ibtn { display: none }
  .ea-ls-ibtn { width: 40px; height: 40px; margin-right: 2px }
}

/* Scotty desktop keeps .uicore-mobile-head-right visible, so the mobile
   library icon would sit to the right of Book a Call as a second search
   control. Keep only the icon in .uicore-extra at desktop. */
@media (min-width: 1025px) {
  #wrapper-navbar .uicore-mobile-head-right .ea-ls-ibtn { display: none }
}

/* Scotty search page: once enhanced results are in, hide the theme form, count and loop. */
body.ea-ls-enhanced.search .srd-hero form.srd-search,
body.ea-ls-enhanced.search .srd-hero .srd-lead,
body.ea-ls-enhanced.search .srd-posts,
body.ea-ls-enhanced.search .srd-pagination { display: none !important; }

/* 390 Echo header: the search icon crowded the consultation button into the logo.
   Tighten padding and icon only. Do not change colors or type. */
@media (max-width: 480px) {
  #wrapper-navbar .uicore-mobile-head-right .ea-ls-ibtn,
  #wrapper-navbar .ea-ls-ibtn { width: 36px; height: 36px; margin-right: 0; }
  /* Clear the logo without changing palette or fonts. Theme padding beats an
     unscoped rule, so this is limited to the mobile right cluster. */
  #wrapper-navbar .uicore-mobile-head-right .uicore-cta-wrapper { margin-left: 0; }
  #wrapper-navbar .uicore-mobile-head-right .uicore-cta-wrapper > .uicore-btn,
  #wrapper-navbar .uicore-mobile-head-right .uicore-cta-wrapper a.uicore-btn {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}
