/* Site search (search.js), shared by Eleven and The Chop. Colours come from each site's own variables. */
.sx-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header button */
.masthead-inner > nav { margin-left: auto; }
.sx-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; color: inherit; text-decoration: none;
  font: 600 14px "Figtree", system-ui, sans-serif; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(127, 127, 127, .35); }
.sx-btn:hover { border-color: currentColor; }
.sx-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.ch-mast .sx-btn { border-color: rgba(243, 239, 228, .45); }
@media (max-width: 640px) {
  .masthead-inner { position: relative; }
  .masthead-inner .sx-btn { position: absolute; top: 12px; right: 16px; }
  .sx-btn span { display: none; }
  .sx-btn { padding: 8px; }
}

/* The box under the header */
.sx-pop { background: var(--card, #fff); color: var(--ink, #17202b); border-bottom: 1px solid var(--rule, #e4e8ee);
  box-shadow: 0 10px 30px rgba(23, 40, 70, .12); position: relative; z-index: 50; }
.sx-pop[hidden] { display: none; }
.sx-pop-in { max-width: 1200px; margin: 0 auto; padding: 14px 16px; }
.sx-pop form, .sx-form { display: flex; gap: 8px; }
.sx-pop input, .sx-form input { flex: 1; min-width: 0; font: 500 18px "Figtree", system-ui, sans-serif; color: inherit;
  background: var(--bg, #f4f6f9); border: 2px solid var(--rule, #e4e8ee); border-radius: 12px; padding: 11px 14px; }
.sx-pop input:focus, .sx-form input:focus { outline: none; border-color: var(--ball, var(--chop, #f37021)); }
.sx-pop button, .sx-form button { font: 600 15px "Figtree", system-ui, sans-serif; border: 0; border-radius: 12px; padding: 0 16px; cursor: pointer;
  background: var(--ink, #17202b); color: var(--card, #fff); }
.sx-pop .sx-close { background: none; color: var(--muted, #667184); }

/* Suggestions */
.sx-sugg { list-style: none; margin: 8px 0 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.sx-sugg[hidden] { display: none; }
.sx-sugg a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: inherit; }
.sx-sugg b { font-weight: 600; }
.sx-sugg span { color: var(--muted, #667184); font-size: 13px; white-space: nowrap; }
.sx-sugg a:hover, .sx-sugg [aria-selected="true"] a { background: var(--bg, #f4f6f9); }
.sx-sugg .sx-all a { color: var(--muted, #667184); font-size: 14px; }
@media (max-width: 640px) { .sx-sugg a { display: block; } .sx-sugg span { display: block; white-space: normal; } }

/* Results page */
.sx-page { padding-bottom: 40px; }
.sx-form { max-width: 760px; margin: 4px 0 6px; }
.sx-page .sx-sugg { max-width: 760px; background: var(--card, #fff); border: 1px solid var(--rule, #e4e8ee); border-radius: 12px; padding: 4px; }
.sx-quick { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sx-quick a { display: inline-flex; flex-direction: column; padding: 8px 14px; border-radius: 12px; background: var(--card, #fff); border: 1px solid var(--rule, #e4e8ee); text-decoration: none; color: inherit; }
.sx-quick a:hover { border-color: var(--ball, var(--chop, #f37021)); }
.sx-quick span { color: var(--muted, #667184); font-size: 12px; }
.sx-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 4px; }
.sx-filters button { font: 600 14px "Figtree", system-ui, sans-serif; border: 1px solid var(--rule, #e4e8ee); background: var(--card, #fff); color: inherit;
  border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.sx-filters button span { color: var(--muted, #667184); font-weight: 500; }
.sx-filters button[aria-pressed="true"] { background: var(--ink, #17202b); color: var(--card, #fff); border-color: var(--ink, #17202b); }
.sx-filters button[aria-pressed="true"] span { color: inherit; opacity: .75; }
.sx-count { color: var(--muted, #667184); font-size: 14px; margin: 14px 0 6px; }
.sx-results { list-style: none; padding: 0; margin: 0; max-width: 820px; }
.sx-results li { border-bottom: 1px solid var(--rule, #e4e8ee); }
.sx-results a { display: block; padding: 16px 0; text-decoration: none; color: inherit; }
.sx-results a:hover h2 { text-decoration: underline; }
.sx-results h2 { font-size: 20px; margin: 4px 0 6px; line-height: 1.25; }
.sx-results p { margin: 0; color: var(--muted, #667184); font-size: 15px; }
.sx-results mark { background: none; color: var(--ink, #17202b); font-weight: 700; }
.sx-sec { font: 600 12px "Figtree", system-ui, sans-serif; text-transform: uppercase; letter-spacing: .04em; color: var(--ball, var(--chop, #f37021)); }
.sx-more { margin: 18px 0 0; font: 600 15px "Figtree", system-ui, sans-serif; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rule, #e4e8ee); background: var(--card, #fff); color: inherit; }
.sx-more[hidden] { display: none; }
