/* Search in the rail's white panels (owner 2026-10-31, stage 3 – kg-rail-search.js). Phones too since 2026-11-01 (in their sheet). */
#kgsrch { position:relative; flex:none; margin:0 0 4px; }
#kgsrch .kgs-in { display:flex; align-items:center; gap:8px; min-height:44px; padding:0 12px; border:2px solid #e0a91f; border-radius:10px; background:#fff; cursor:text; }
#kgsrch .kgs-in span { color:#7a5600; font-size:17px; }
#kgsrch .kgs-in input { flex:1; min-width:0; border:0; outline:0; background:none; font:15px system-ui, sans-serif; color:#17222c; padding:10px 0; }
#kgsrch .kgs-res { margin-top:6px; border:1px solid #e3e6ea; border-radius:10px; background:#fff; box-shadow:0 8px 22px rgba(0,0,0,.12); max-height:60vh; overflow:auto; }
#kgsrch .kgs-res[hidden] { display:none; }
#kgsrch .kgs-r { display:flex; align-items:center; gap:8px; min-height:52px; padding:4px 10px 4px 2px; border-bottom:1px solid #eef0f2; }
#kgsrch .kgs-r:last-child { border-bottom:0; }
#kgsrch .kgs-go { flex:1; min-width:0; display:flex; flex-direction:column; align-items:flex-start; text-align:left; border:0; background:none; cursor:pointer;
  padding:6px 8px; border-radius:8px; font:14px/1.3 system-ui, sans-serif; color:#17222c; }
#kgsrch button.kgs-go:hover { background:#fbf8ef; }
#kgsrch .kgs-go b { font-weight:600; } #kgsrch .kgs-go small { color:#6b7680; font-size:12px; }
/* one name in several places: the name once, then a line per place with its own switch */
#kgsrch .kgs-many { flex-direction:column; align-items:stretch; gap:0; padding-bottom:6px; }
#kgsrch .kgs-nm { cursor:default; padding-bottom:2px; }
#kgsrch .kgs-sub { display:flex; align-items:center; gap:8px; min-height:44px; padding-left:12px; }
#kgsrch .kgs-sub .kgs-go { padding:4px 8px; }
#kgsrch .kgs-r i { font-style:normal; font-size:22px; color:#9aa5b0; width:40px; text-align:center; }
#kgsrch .kgs-r input { appearance:none; -webkit-appearance:none; flex:none; width:40px; height:24px; border-radius:13px; background:#c9ced3; position:relative; cursor:pointer; margin:0; }
#kgsrch .kgs-r input::after { content:""; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:#fff; transition:left .15s; }
#kgsrch .kgs-r input:checked { background:#e0a91f; } #kgsrch .kgs-r input:checked::after { left:19px; }
#kgsrch .kgs-r input:disabled { cursor:default; opacity:.6; }
#kgsrch .kgs-none, #kgsrch .kgs-lock { margin:0; padding:12px; color:#6b7680; font-size:13px; }
#kgsrch .kgs-lock { color:#7a5600; font-weight:600; border-top:1px solid #eef0f2; }
/* All / Layers & tools / Documents (owner 2026-11-02) and the documents in the results */
#kgsrch .kgs-f { display:flex; flex-wrap:wrap; gap:5px; margin-top:6px; }
#kgsrch .kgs-f button { flex:none; min-height:32px; padding:0 10px; border:1px solid #d9d5cc; border-radius:16px; background:#fff; color:#3b4a58;
  font:600 13px system-ui, sans-serif; cursor:pointer; }
#kgsrch .kgs-f button:hover { border-color:#e0a91f; }
#kgsrch .kgs-f button[aria-pressed="true"] { background:#17222c; border-color:#17222c; color:#fff; }
#kgsrch .kgs-dh { margin:0; padding:10px 12px 4px; font:700 12px system-ui, sans-serif; color:#7a5600; text-transform:uppercase; letter-spacing:.04em;
  border-top:1px solid #eef0f2; }
#kgsrch .kgs-res > .kgs-dh:first-child { border-top:0; }
#kgsrch .kgs-dh small { font-weight:600; color:#9aa5b0; text-transform:none; letter-spacing:0; margin-left:4px; }
#kgsrch a.kgs-go { text-decoration:none; } #kgsrch a.kgs-go:hover { background:#fbf8ef; }
#kgsrch .kgs-doc i { font-size:17px; }
#kgsrch .kgs-k { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; vertical-align:1px; }
#kgsrch button.kgs-more { width:100%; text-align:left; background:none; border-left:0; border-right:0; border-bottom:0; cursor:pointer; }
#kgsrch .kgs-more { display:block; padding:10px 12px; font:600 13px system-ui, sans-serif; color:#7a5600; text-decoration:none; border-top:1px solid #eef0f2; }
#kgsrch .kgs-more:hover { background:#fbf8ef; }
#kgsrch.kgs-hasx .kgs-in { grid-row:1; grid-column:1; }
#kgsrch.kgs-hasx .qx { grid-row:1; grid-column:2; }
#kgsrch.kgs-hasx .kgs-f { grid-row:2; grid-column:1 / -1; }
/* the Find panel ("/" with no panel open), in the answer panel's place */
@media (min-width:761px) {
  #kgsp { order:-2; width:350px; flex:0 0 350px; background:#fff; color:#17222c; border-right:1px solid #d9d5cc; display:flex; flex-direction:column;
    gap:8px; padding:14px 16px; overflow:auto; font:14px/1.45 system-ui, sans-serif; }
  #kgsp[hidden] { display:none; }
  #kgsp .kgsp-h { display:flex; justify-content:space-between; align-items:center; order:-1; }
  #kgsp h2 { font-size:19px; line-height:1.2; margin:0; }
  #kgsp .kgsp-x { border:0; background:none; font-size:24px; line-height:1; cursor:pointer; color:#5b6670; width:40px; height:40px; }
  #kgsp .kgsp-t { margin:0; color:#6b7680; font-size:13px; }
}
/* phones: the box sits at the top of the sheet, results kept short so the map still shows */
@media (max-width:760px) {
  #kgsrch .kgs-in input { font-size:16px; }   /* (16 px stops the phone zooming in on focus) */
  #kgsrch .kgs-res { max-height:40vh; }
}
/* the rail panel's close button, moved here as the gold « (owner 2026-11-02) – like the rail's own « fold */
#kgsrch.kgs-hasx { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:8px; align-items:stretch; }
#kgsrch.kgs-hasx .kgs-res { grid-column:1 / -1; }
#kgq #kgsrch .qx { background:#f2b705; color:#17222c; font:800 20px/1 system-ui, sans-serif; width:44px; height:auto; min-height:44px; flex:none;
  border:0; border-radius:10px; box-shadow:none; padding:0; display:grid; place-items:center; cursor:pointer; }
#kgq #kgsrch .qx:hover, #kgq #kgsrch .qx:focus-visible { background:#ffd54f; outline:2px solid #7a5600; outline-offset:2px; }
