/* WIH site search (preview 9 Nov 2026). Colours and fonts follow the live site:
   navy #0d2244 / #0a1628, gold #e8a020, accent #2e7dd1, teal #00b4d8,
   headings Syne / Playfair Display, body DM Sans. */
:root{--ws-navy:#0d2244;--ws-ink:#0a1628;--ws-gold:#e8a020;--ws-gold-l:#f5c355;--ws-accent:#2e7dd1;--ws-teal:#00b4d8;--ws-grey:#e2e8f4;--ws-muted:#6b7fa8;--ws-off:#f4f7fb}

/* Header button: sits in the existing <nav>. The logo takes the free space so
   the links stay right-aligned and the button sits after them. */
nav > .nav-logo{margin-right:auto}
.wih-search-btn{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;width:40px;height:40px;margin-left:14px;padding:0;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.06);color:#fff;font-size:17px;line-height:1;cursor:pointer;transition:background .15s,border-color .15s;-webkit-tap-highlight-color:transparent;font-family:inherit}
.wih-search-btn:hover,.wih-search-btn:focus-visible{background:rgba(232,160,32,.18);border-color:var(--ws-gold);outline:none}
@media(max-width:640px){.wih-search-btn{margin-left:8px;margin-right:6px;width:38px;height:38px}}

/* Overlay */
.wih-s-overlay{position:fixed;inset:0;z-index:10000;background:rgba(10,22,40,.72);backdrop-filter:blur(4px);display:none;align-items:flex-start;justify-content:center;padding:9vh 16px 16px;font-family:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif}
.wih-s-overlay.open{display:flex}
.wih-s-panel{width:100%;max-width:720px;max-height:80vh;display:flex;flex-direction:column;background:#fff;border-radius:14px;box-shadow:0 24px 60px rgba(0,0,0,.35);overflow:hidden;border-top:3px solid var(--ws-gold)}
.wih-s-bar{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--ws-grey)}
.wih-s-bar .wih-s-icon{font-size:18px;opacity:.7}
.wih-s-input{flex:1;min-width:0;border:none;outline:none;font-size:18px;font-family:inherit;color:var(--ws-ink);background:transparent;padding:6px 0}
.wih-s-input::placeholder{color:#94a3b8}
.wih-s-input::-webkit-search-cancel-button{display:none}
.wih-s-close{border:1px solid var(--ws-grey);background:var(--ws-off);color:#475569;border-radius:6px;font-size:12px;font-weight:600;padding:5px 9px;cursor:pointer;font-family:inherit}
.wih-s-close:hover{border-color:#94a3b8}
.wih-s-results{overflow-y:auto;-webkit-overflow-scrolling:touch;padding:6px 0 10px}
.wih-s-msg{padding:22px 20px;color:#475569;font-size:14px;line-height:1.55}
.wih-s-msg a{color:var(--ws-accent);font-weight:600}
.wih-s-group{padding:6px 0 2px}
.wih-s-ghead{display:flex;justify-content:space-between;align-items:baseline;padding:8px 20px 4px;font-family:'Syne',sans-serif;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.8px;color:var(--ws-muted)}
.wih-s-ghead a{font-family:'DM Sans',sans-serif;text-transform:none;letter-spacing:0;font-size:12px;font-weight:600;color:var(--ws-accent);text-decoration:none}
.wih-s-item{display:block;padding:9px 20px;text-decoration:none;color:var(--ws-ink);border-left:3px solid transparent;cursor:pointer}
.wih-s-item:hover,.wih-s-item.active{background:#f1f6fd;border-left-color:var(--ws-gold)}
.wih-s-title{display:block;font-weight:700;font-size:14.5px;line-height:1.35;color:var(--ws-navy)}
.wih-s-snip{display:block;font-size:12.5px;line-height:1.45;color:#475569;margin-top:2px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.wih-s-url{display:block;font-size:11px;color:#94a3b8;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wih-s-item mark,.wih-sr-item mark{background:rgba(232,160,32,.25);color:inherit;border-radius:2px;padding:0 1px}
.wih-s-badge{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.3px;text-transform:uppercase;border-radius:20px;padding:2px 8px;margin-left:6px;vertical-align:1px;white-space:nowrap}
.wih-s-badge.gold{background:rgba(232,160,32,.18);color:#92400e}
.wih-s-badge.silver{background:rgba(100,116,139,.14);color:#475569}
.wih-s-time{display:block;font-size:11.5px;color:#64748b;margin-top:2px}
.wih-s-old{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;background:#e2e8f0;color:#475569;border-radius:4px;padding:1px 6px;margin-right:6px;vertical-align:1px}
.wih-s-badge.awarded{background:rgba(34,197,94,.12);color:#15803d;text-transform:none;letter-spacing:0}
.wih-s-foot{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:9px 16px;border-top:1px solid var(--ws-grey);background:var(--ws-off);font-size:11.5px;color:var(--ws-muted)}
.wih-s-foot kbd{font-family:inherit;font-size:10.5px;background:#fff;border:1px solid #cbd5e1;border-bottom-width:2px;border-radius:4px;padding:0 5px;margin:0 2px}
.wih-s-foot a{color:var(--ws-accent);font-weight:600;text-decoration:none}
html.wih-s-lock,html.wih-s-lock body{overflow:hidden}
@media(max-width:640px){
  .wih-s-overlay{padding:0}
  .wih-s-panel{max-width:none;max-height:none;height:100%;border-radius:0}
  .wih-s-input{font-size:16px}
  .wih-s-foot .wih-s-keys{display:none}
}

/* Results page (search.html) */
.wih-sr{max-width:860px;margin:0 auto;padding:40px 16px 64px;font-family:'DM Sans',system-ui,sans-serif;color:var(--ws-ink)}
.wih-sr h1{font-family:'Playfair Display',serif;font-weight:900;font-size:clamp(28px,4vw,40px);color:var(--ws-navy);margin:0 0 14px;line-height:1.1}
.wih-sr-form{display:flex;gap:8px;margin-bottom:14px}
.wih-sr-form input{flex:1;min-width:0;padding:13px 15px;font-size:16px;font-family:inherit;border:1.5px solid #cbd5e1;border-radius:10px;outline:none;color:var(--ws-ink)}
.wih-sr-form input:focus{border-color:var(--ws-accent);box-shadow:0 0 0 3px rgba(46,125,209,.15)}
.wih-sr-form button{padding:0 20px;border:none;border-radius:10px;background:var(--ws-gold);color:var(--ws-ink);font-weight:800;font-size:15px;font-family:'Syne',sans-serif;cursor:pointer}
.wih-sr-chips{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 18px}
.wih-sr-chip{border:1px solid #cbd5e1;background:#fff;color:#334155;border-radius:20px;padding:5px 12px;font-size:12.5px;font-weight:600;cursor:pointer;font-family:inherit}
.wih-sr-chip.on{background:var(--ws-navy);border-color:var(--ws-navy);color:#fff}
.wih-sr-info{font-size:13px;color:#64748b;margin-bottom:8px}
.wih-sr-group h2{font-family:'Syne',sans-serif;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.8px;color:var(--ws-muted);margin:26px 0 6px;padding-bottom:6px;border-bottom:1px solid var(--ws-grey)}
.wih-sr-item{display:block;padding:12px 4px;border-bottom:1px solid #f1f5f9;text-decoration:none;color:inherit}
.wih-sr-item:hover .wih-s-title{text-decoration:underline}
.wih-sr-item .wih-s-snip{-webkit-line-clamp:3}
.wih-sr-more{margin-top:10px;border:1px solid #cbd5e1;background:#fff;border-radius:8px;padding:8px 14px;font-size:13px;font-weight:600;cursor:pointer;color:var(--ws-accent);font-family:inherit}
