/* Wensum default: the page frame core draws (top bar, header, menu, footer, search). Split from site.css in
   October 2026. Loaded only on pages core draws itself; a theme that draws its own page does not get it. */

/* ============================================================
   HEADER
   ============================================================ */

/* Top bar — yellow strip with contact info */
.kc-topbar {
  background: var(--chrome-bg);
  color: var(--chrome-fg);
  font-size: var(--topbar-size);
  font-weight: 500;
}
.kc-topbar a { text-decoration: none; color: inherit; }
.kc-topbar a:hover { text-decoration: underline; }

.kc-topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.kc-topbar-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.kc-topbar-contact a {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  line-height: 1;
}
.kc-topbar-contact svg { flex-shrink: 0; }

/* Request-a-brochure pill — on hover it expands to the right and an envelope
   whooshes in from the right into place. */
.kc-topbar .kc-brochure-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--yellow);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  line-height: 1.6;
  margin-left: 4px;
  text-decoration: none;
  transition: padding-right .28s ease, background .2s ease;
}
.kc-topbar .kc-brochure-cta:hover { background: var(--yellow-dk); color: var(--text); text-decoration: none; }

/* On hover the pill's right end oozes a black oil-drop joined to the bar by a
   liquid neck (SVG gooey filter): it stretches, pinches off into a solid black
   circle holding the envelope, then fades. The drop keeps FULL SIZE — the fade
   is applied to the whole SVG (after the filter) rather than the drop shape,
   because reducing a shape's alpha inside the gooey threshold erodes/shrinks it.
   Radii = the bar-end radius (pill ~27px tall -> r 13.5). Verified in-browser. */
.kc-topbar .kc-brochure-cta__drip {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translate(-22px, -50%);
  overflow: visible;
  pointer-events: none;
  opacity: 0;
}
/* Keep the label above the drip so the drop passes BEHIND the text (it overlaps
   the pill's right end to anchor the neck) and can never cover the letters. */
.kc-topbar .kc-brochure-cta > span { position: relative; z-index: 1; }
.kc-topbar .kc-brochure-cta:hover .kc-brochure-cta__drip { animation: kc-drip-show .95s ease both; }
.kc-topbar .kc-brochure-cta:hover .kc-drip__drop { animation: kc-drip-drop .95s ease-in both; }
.kc-topbar .kc-brochure-cta:hover .kc-drip__env  { animation: kc-drip-env  .95s ease-in both; }
@media (prefers-reduced-motion: reduce) {
  .kc-topbar .kc-brochure-cta:hover .kc-brochure-cta__drip,
  .kc-topbar .kc-brochure-cta:hover .kc-drip__drop,
  .kc-topbar .kc-brochure-cta:hover .kc-drip__env { animation: none; }
}

/* Phone tooltip — location shown on hover */
.kc-topbar-phone { position: relative; }
.kc-topbar-location {
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  transform: translateY(-50%);
  transform-origin: left center;
  background: var(--navy);
  color: #fff;
  font-size: calc(var(--topbar-size) - 2px);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 100;
}
.kc-topbar-location::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: var(--navy);
}
.kc-topbar-phone:hover .kc-topbar-location,
.kc-topbar-phone:focus .kc-topbar-location {
  opacity: 1;
  animation: kc-loc-wiggle 0.55s ease;
}
@media (prefers-reduced-motion: reduce) {
  .kc-topbar-phone:hover .kc-topbar-location,
  .kc-topbar-phone:focus .kc-topbar-location { animation: none; }
}

.kc-topbar-hours {
  color: var(--chrome-soft);
  font-size: calc(var(--topbar-size) - 1px);
  white-space: nowrap;
}

/* Social icons in top bar */
/* Text size control (A− / A+) */
.kc-topbar-textsize {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding-right: 10px;
  flex-shrink: 0;
}
.kc-topbar-textsize__label {
  font-size: 11px;
  color: var(--chrome-soft);
  margin-right: 2px;
}
.kc-topbar-textsize button {
  min-width: 30px;
  height: 24px;
  padding: 0 7px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 6px;
  font-family: inherit;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
  line-height: 1;
}
.kc-topbar-textsize button:first-of-type { font-size: 11px; }
.kc-topbar-textsize button:last-of-type  { font-size: 14px; }
.kc-topbar-textsize button:hover { background: rgba(255, 255, 255, .14); }
@media (max-width: 640px) {
  .kc-topbar-textsize__label { display: none; }
}

/* Bigger to tap on a phone (core 1.0.185): the phone link was 13 px tall and A− and A+ 24 px. The strip looks the
   same; each one answers a tap a little way around it. */
@media (pointer: coarse), (max-width: 640px) {
  .kc-topbar-contact a, .kc-topbar-textsize button { position: relative; }
  .kc-topbar-contact a::after { content: ""; position: absolute; inset: -15px -4px; }
  .kc-topbar-textsize button::after { content: ""; position: absolute; inset: -10px -3px; }
}

.kc-topbar-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.kc-topbar-social a {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: inherit;
  transition: background var(--ease), transform var(--ease);
  line-height: 1;
}
.kc-topbar-social a svg { display: inline-block; }
.kc-topbar-social a:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-1px);
  text-decoration: none;
}

@media (max-width: 860px) {
  .kc-topbar-hours { display: none; }
  .kc-topbar-social { display: none; }
}
/* The note to the usual hours on its own line where the hours above are hidden (core 1.0.140) */
.kc-topbar-note { display: none; }
@media (max-width: 960px) {
  .kc-topbar-note {
    display: block;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gap) 8px;
    font-size: calc(var(--topbar-size) - 1px);
    line-height: 1.35;
    text-align: center;
  }
  .kc-topbar-note svg { display: inline-block; vertical-align: -2px; margin-right: 6px; }
}
@media (max-width: 640px) {
  .kc-topbar-contact a:nth-child(n+2):not(.kc-topbar-hours) { display: none; }
}

/* Main header — white, sticky */
.kc-header {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  /* backdrop-filter removed: creates a containing block for position:fixed children,
     which breaks the mobile nav overlay (nav fixed to header box instead of viewport) */
}
.kc-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 70px;
}

/* Logo */
.kc-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.kc-logo img { height: 48px; width: auto; }
.kc-logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.kc-logo-text span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--yellow);
  margin-top: 5px;
  border-radius: 2px;
}

/* Nav */
.kc-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  position: relative;
}

.kc-nav-item { position: relative; }

/* Yellow pill that slides behind the hovered / focused / current nav item.
   The <span> is created by the nav script in index.php and sits behind the
   item text (DOM order: pill first, items after). Progressive enhancement —
   without JS the per-item yellow background below still provides feedback. */
.kc-nav-pill {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  background: var(--yellow);
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s cubic-bezier(.4,0,.2,1),
              width .28s cubic-bezier(.4,0,.2,1),
              height .28s cubic-bezier(.4,0,.2,1),
              opacity .2s ease;
}
.kc-nav-pill--on { opacity: 1; }
/* Once the pill is active, drop the static per-item highlight so there aren't
   two yellows on screen at once. */
.kc-nav--pill .kc-nav-item > a:hover,
.kc-nav--pill .kc-nav-item > a[aria-current="page"],
.kc-nav--pill .kc-nav-cat:hover,
.kc-nav--pill .kc-nav-cat:focus { background: transparent; }
@media (prefers-reduced-motion: reduce) {
  .kc-nav-pill { transition: opacity .2s ease; }
}

.kc-nav-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 13px;
  font-size: var(--nav-size);
  font-weight: var(--nav-weight);
  letter-spacing: var(--nav-spacing);
  text-transform: var(--nav-transform);
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background var(--ease), color var(--ease);
}
.kc-nav-item > a:hover,
.kc-nav-item > a[aria-current="page"] {
  background: var(--yellow);
  color: var(--text);
}

/* Category headers — non-link nav items */
.kc-nav-cat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  font-size: var(--nav-size);
  font-weight: var(--nav-weight);
  letter-spacing: var(--nav-spacing);
  text-transform: var(--nav-transform);
  color: var(--text);
  cursor: default;
  border-radius: var(--radius-sm);
  user-select: none;
}
.kc-nav-cat:hover,
.kc-nav-cat:focus { background: var(--yellow); color: var(--text); outline: none; }

.kc-dropdown-cat {
  display: block;
  padding: 9px 14px;
  font-size: var(--nav-sub-size);
  font-weight: var(--nav-weight);
  letter-spacing: var(--nav-spacing);
  text-transform: var(--nav-transform);
  color: var(--text);
  cursor: default;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background var(--ease), color var(--ease);
}
.kc-dropdown-cat:hover { background: var(--yellow); color: var(--text); }
.kc-dropdown-divider {
  display: block;
  padding: 4px 14px 2px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  cursor: default;
  white-space: nowrap;
}

.kc-caret {
  font-size: 9px;
  opacity: 0.45;
  transition: transform var(--ease);
}
.kc-has-dropdown:hover .kc-caret,
.kc-has-dropdown:focus-within .kc-caret { transform: rotate(180deg); opacity: 1; }

/* Dropdown */
.kc-dropdown {
  display: none;
  position: absolute;
  top: 100%;          /* flush to the nav item — no gap */
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px 6px 6px; /* top padding bridges visual space without a hover gap */
  z-index: 300;
  list-style: none;
}
/* Extend the hover zone upward with a pseudo-element so
   mouse travel from nav link → dropdown never loses hover */
.kc-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.kc-has-dropdown:hover .kc-dropdown,
.kc-has-dropdown:focus-within .kc-dropdown { display: block; }

.kc-dropdown li a {
  display: block;
  padding: 9px 14px;
  font-size: var(--nav-sub-size);
  font-weight: var(--nav-weight);
  letter-spacing: var(--nav-spacing);
  text-transform: var(--nav-transform);
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--ease), color var(--ease);
  white-space: nowrap;
}
.kc-dropdown li a:hover {
  background: var(--yellow);
  color: var(--text);
}

/* Sub-sub-menu (flyout) */
.kc-has-subdropdown { position: relative; }

.kc-subcaret {
  font-size: 8px;
  opacity: 0.45;
  float: right;
  margin-top: 2px;
  transition: opacity var(--ease);
}
.kc-has-subdropdown:hover .kc-subcaret { opacity: 1; }

.kc-subdropdown {
  display: none;
  position: absolute;
  top: -6px;
  left: 100%;
  min-width: 250px; /* wide enough that link descriptions wrap at most once */
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 6px;
  list-style: none;
  margin: 0;
  z-index: 201;
}
/* Extend hover zone between dropdown item and subdropdown */
.kc-subdropdown::before {
  content: '';
  position: absolute;
  top: 0;
  right: 100%;
  width: 12px;
  height: 100%;
}
.kc-has-subdropdown:hover > .kc-subdropdown,
.kc-has-subdropdown:focus-within > .kc-subdropdown { display: block; }

.kc-subdropdown li a {
  display: block;
  padding: 8px 14px;
  font-size: var(--nav-sub-size);
  font-weight: var(--nav-weight);
  letter-spacing: var(--nav-spacing);
  text-transform: var(--nav-transform);
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background var(--ease), color var(--ease);
}
.kc-subdropdown li a:hover {
  background: var(--yellow);
  color: var(--text);
}

/* Header CTA button */
.kc-header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.kc-phone-header {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.kc-phone-header:hover { color: var(--teal); }

/* Sound toggle button */
.kc-sound-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  flex-shrink: 0;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.kc-sound-toggle:hover {
  background: var(--yellow-lt);
  border-color: var(--yellow);
  color: var(--text);
}
.kc-sound-toggle--off {
  color: #bbb;
  border-color: #ddd;
}
.kc-sound-toggle--off:hover {
  background: var(--light);
  border-color: var(--border);
  color: var(--muted);
}
@media (max-width: 960px) {
  .kc-sound-toggle { display: none; }
}

/* Burger button */
.kc-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin-left: auto;
}
.kc-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

@media (max-width: 960px) {
  .kc-burger { display: flex; }
  .kc-topbar-hours { display: none; }

  .kc-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 80px var(--gap) 32px;
    overflow-y: auto;
    z-index: 600; /* above sticky header (500) */
    gap: 0;
  }
  .kc-nav.kc-nav--open { display: flex; }

  .kc-nav-item > a {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border);
  }

  /* Top-level dropdowns become tap-to-expand accordions on mobile (JS toggles
     .kc-m-open on the item). Collapsed by default, and the desktop hover/focus
     reveal is switched off so only the tapped section opens. */
  .kc-nav-item > a,
  .kc-nav-item > .kc-nav-cat { display: flex; align-items: center; justify-content: space-between; }
  .kc-nav-item > a > .kc-caret,
  .kc-nav-item > .kc-nav-cat > .kc-caret { padding: 8px 6px; margin: -8px -6px -8px 8px; transition: transform .2s ease; }
  .kc-nav-item.kc-m-open > a > .kc-caret,
  .kc-nav-item.kc-m-open > .kc-nav-cat > .kc-caret { transform: rotate(180deg); }

  .kc-dropdown {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    background: var(--light);
  }
  .kc-has-dropdown:hover > .kc-dropdown,
  .kc-has-dropdown:focus-within > .kc-dropdown { display: none; }
  .kc-nav-item.kc-m-open > .kc-dropdown { display: block; }
  .kc-dropdown li a { padding: 10px 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

  /* Subdropdown (sub-groups): stays inline within an opened section */
  .kc-subdropdown {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    background: var(--light);
    min-width: 0;
  }
  .kc-subdropdown::before { display: none; }
  .kc-subdropdown li a { padding: 8px 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
  .kc-subcaret { display: none; }

  .kc-header-cta .kc-phone-header { display: none; }
  .kc-header-cta .kc-btn-cta { display: none; }
}

@media (max-width: 480px) {
  .kc-topbar-inner { justify-content: center; }
  .kc-topbar-contact { justify-content: center; gap: 12px; font-size: 12px; }
}

/* ============================================================
   MOBILE / RESPONSIVE
   ============================================================ */

/* Mobile nav close button — lives inside <nav>, visible only when nav is open */
.kc-nav-close {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--yellow);
  border: none;
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.kc-nav--open .kc-nav-close { display: flex; }

/* ============================================================
   FOOTER
   ============================================================ */
.kc-footer {
  background: var(--chrome-bg);
  color: var(--chrome-fg);
  margin-top: 72px;
}
.kc-footer-upper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--gap) 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 768px) {
  .kc-footer-upper { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .kc-footer-upper { grid-template-columns: 1fr; }
}

.kc-footer-brand h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  color: inherit;
}
.kc-footer-brand p {
  font-size: var(--footer-size);
  line-height: 1.7;
  color: inherit;
  margin-bottom: 10px;
}
.kc-footer-brand a { color: inherit; font-weight: 600; text-decoration: none; }
.kc-footer-brand a:hover { text-decoration: underline; }

.kc-footer-col h4 {
  font-size: calc(var(--footer-size) - 1px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 14px;
  color: inherit;
}
.kc-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kc-footer-nav a {
  font-size: var(--footer-size);
  color: inherit;
  text-decoration: none;
  opacity: .8;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: left bottom 1px;
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  transition: opacity .2s ease, background-size .26s ease;
  padding-bottom: 1px;
}
.kc-footer-nav a:hover { opacity: 1; background-size: 100% 1.5px; }

.kc-footer-lower {
  border-top: 1px solid var(--chrome-line);
  background: rgba(0,0,0,.18);
}
.kc-footer-lower-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: calc(var(--footer-size) - 2px);
  color: inherit;
  opacity: .75;
}
.kc-footer-lower a { text-decoration: none; }
.kc-footer-lower a:hover { text-decoration: underline; }

/* ============================================================
   SITE SEARCH — trigger button + full-screen overlay
   ============================================================ */

/* Search icon button in header */
.kc-search-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--muted);
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.kc-search-trigger:hover {
  background: rgba(0, 0, 0, .06);
  color: var(--text);
}
@media (max-width: 960px) {
  .kc-search-trigger { display: flex; }
}

/* Overlay container — hidden by default */
.kc-search-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 0;
  background: rgba(10, 22, 30, 0.85);
  animation: kc-fade-in .18s ease;
}
.kc-search-overlay[hidden] { display: none; }

/* Backdrop — transparent click-to-close layer behind the panel */
.kc-search-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
}

/* White search panel */
.kc-search-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
  animation: kc-slide-in .2s ease;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Search field row */
.kc-search-field-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--teal, var(--teal));
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--teal-lt);
  flex-shrink: 0;
}

.kc-search-field-icon {
  color: var(--teal, var(--teal));
  flex-shrink: 0;
}

.kc-search-input {
  flex: 1;
  border: none;
  background: none;
  font-size: 17px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  min-width: 0;
}
.kc-search-input::placeholder { color: var(--muted); }

/* Remove native clear button on search inputs */
.kc-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

.kc-search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--light);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #777;
  flex-shrink: 0;
  transition: background .12s, color .12s;
}
.kc-search-close:hover { background: var(--border); color: var(--navy); }

/* Category pills */
.kc-search-cats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
  flex-shrink: 0;
}

.kc-search-cats-label {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  margin-right: 2px;
  white-space: nowrap;
}

.kc-search-cat {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid var(--border, var(--border));
  background: #f8f8f5;
  color: #555;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
}
.kc-search-cat:hover {
  background: var(--teal-lt);
  border-color: var(--teal);
  color: var(--teal);
}
.kc-search-cat--active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* Results list */
.kc-search-results {
  margin-top: 16px;
  overflow-y: auto;
  flex: 1;
}

.kc-search-empty {
  text-align: center;
  padding: 32px 20px;
  color: #999;
  font-size: 15px;
}

.kc-search-empty svg {
  display: block;
  margin: 0 auto 12px;
  color: var(--border);
}

.kc-search-section {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #bbb;
  padding: 12px 4px 4px;
}
.kc-search-section:first-child { padding-top: 4px; }

.kc-search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: background .12s;
}
.kc-search-result:hover,
.kc-search-result.kc-search-focused {
  background: var(--teal-lt);
}

.kc-search-result-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--teal-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
}
.kc-search-result-icon--post     { background: var(--yellow-lt); color: #b45309; }
.kc-search-result-icon--vacancy  { background: #f0fdf4; color: #16a34a; }
.kc-search-result-icon--team     { background: #f0f4ff; color: #4f46e5; }

.kc-search-result-body { flex: 1; min-width: 0; }

.kc-search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kc-search-result-title mark {
  background: var(--yellow-lt);
  border-radius: 2px;
  padding: 0 1px;
  color: inherit;
  font-weight: 700;
}

.kc-search-result-excerpt {
  font-size: 12px;
  color: #6f6f6f; /* WCAG AA contrast */
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kc-search-result-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-lt);
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}
.kc-search-result-meta--post    { color: #b45309; background: var(--yellow-lt); }
.kc-search-result-meta--vacancy { color: #16a34a; background: #f0fdf4; }
.kc-search-result-meta--team    { color: #4f46e5; background: #f0f4ff; }

.kc-search-result-arrow {
  color: #ccc;
  flex-shrink: 0;
  transition: color .12s, transform .12s;
}
.kc-search-result:hover .kc-search-result-arrow {
  color: var(--teal);
  transform: translateX(3px);
}

@media (max-width: 600px) {
  .kc-search-overlay { padding-top: 0; padding-left: 0; padding-right: 0; align-items: flex-start; }
  .kc-search-panel { border-radius: 0; }
}
.kc-dropdown li a:hover .kc-dd-desc,
.kc-subdropdown li a:hover .kc-dd-desc { color: var(--text); }

/* ── Two-column dropdowns ───────────────────────────────────────────────
   Added automatically by build_nav_html() when a dropdown has 8+ links,
   so long menus (Care at Home, Home Help, Careers) stay on screen even
   with descriptions. First link (the "All …" overview) spans both
   columns as a header row. */
.kc-dropdown--wide {
  min-width: 560px;
  column-count: 2;
  column-gap: 10px;
  padding: 10px 8px 8px;
}
.kc-dropdown--wide > li { break-inside: avoid; }
/* Right-edge items (e.g. Careers): open leftwards so the wide panel
   never spills off the viewport */
.kc-nav-item:nth-last-child(-n+2) .kc-dropdown--wide { left: auto; right: 0; }

@media (max-width: 960px) {
  .kc-dropdown--wide {
    column-count: 1;
    min-width: 0;
    padding: 0 0 0 16px;
  }
  .kc-dropdown--wide > li:first-child { column-span: none; border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
}

/* Editor-chosen column break: "Starts a new column" checkbox in
   Admin → Navigation. Forces the second column to begin at this item.
   No effect in single-column menus. */
.kc-dropdown--wide > li.kc-col-break {
  break-before: column;
  -webkit-column-break-before: always;
}
@media (max-width: 960px) {
  .kc-dropdown--wide > li.kc-col-break {
    break-before: auto;
    -webkit-column-break-before: auto;
  }
}

/* Wide flyout: a two-column sub-menu (e.g. Home Help). Safe because a flyout
   holds only leaf links, with no further pop-outs to break. */
.kc-subdropdown--wide {
  min-width: 440px;
  column-count: 2;
  column-gap: 8px;
}
.kc-subdropdown--wide > li { break-inside: avoid; }
.kc-subdropdown--wide > li.kc-col-break {
  break-before: column;
  -webkit-column-break-before: always;
}
@media (max-width: 960px) {
  .kc-subdropdown--wide { column-count: 1; min-width: 0; }
  .kc-subdropdown--wide > li.kc-col-break {
    break-before: auto;
    -webkit-column-break-before: auto;
  }
}
@keyframes kc-drip-show {
  0%   { opacity: 0; }
  14%  { opacity: 1; }
  68%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes kc-drip-drop {
  0%, 14% { cx: 8px; }
  46%     { cx: 34px; }
  62%     { cx: 48px; }
  100%    { cx: 60px; }
}
@keyframes kc-drip-env {
  0%, 14% { opacity: 0; transform: translateX(0); }
  46%     { opacity: 1; transform: translateX(26px); }
  62%     { transform: translateX(40px); }
  100%    { opacity: 1; transform: translateX(52px); }
}
@keyframes kc-loc-wiggle {
  0%   { transform: translateY(-50%) rotate(0deg); }
  35%  { transform: translateY(-50%) rotate(-9deg); }
  60%  { transform: translateY(-50%) rotate(5deg); }
  80%  { transform: translateY(-50%) rotate(-2deg); }
  100% { transform: translateY(-50%) rotate(0deg); }
}

@keyframes kc-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes kc-slide-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}