/* Al Adalah Club - header actions + search window (IT, 15 Nov 2026; LOCAL copy).
   User: "is it well designed and well placed? (can we re engineer the placement of them if we have a better option?" and
   "i am still hesitant when it comes to the search look and feel. throw a redesign so i assess it".
   1) Header actions: ONE main button (the first pill stays filled club red), the other pills outlined; search / theme / language
      become ONE group of equal 40 px buttons behind a thin divider (before: 3 sizes and 3 styles - 44 px filled circle, 38 px outlined
      circle, 40 px white pill). Order from the buttons outwards: search, theme, language (language at the outer edge, as usual).
   2) Search window: centred over a dimmed page (was a strip under the header): quick links + this browser's recent searches before
      typing, results grouped by type with the typed words marked, keyboard (arrows, Enter, Esc; "/" or Ctrl+K opens), full screen on phones.
   Undo: remove this file's <link> in WebViews/layout.php and restore layout.php + site-2026.js + I18nEn.php from *.bak-20261115-search. */

/* ---------- 1. header actions ---------- */
.header-actions>.header-pill~.header-pill{background:transparent;color:var(--t-fg-9c1b3d);border:0;box-shadow:inset 0 0 0 1.5px currentColor}   /* border:0 - «انضم إلينا» had its own 1.5 px border (double outline, user 15 Nov) */
.header-actions>.header-pill~.header-pill:hover,.header-actions>.header-pill~.header-pill:focus-visible{background:var(--t-bg-9c1b3d);color:var(--t-fg-ffffff);box-shadow:0 6px 16px rgba(156,27,61,.28)}
.header-utils{display:flex;align-items:center;gap:6px;padding-inline-start:12px;margin-inline-start:2px;border-inline-start:1px solid var(--t-bd-e3e7ec)}
.header-utils .search-toggle,.header-utils .theme-toggle{width:40px;height:40px;border-radius:50%;background:transparent;color:var(--t-fg-0e3659);border:1px solid var(--t-bd-e3e7ec)}
.header-utils .lang-toggle{height:40px;background:transparent;border-color:var(--t-bd-e3e7ec);color:var(--t-fg-0e3659)}
.header-utils .search-toggle:hover,.header-utils .search-toggle[aria-expanded=true],.header-utils .theme-toggle:hover,.header-utils .lang-toggle:hover{background:var(--t-bg-0e3659);border-color:var(--t-bd-0e3659);color:var(--t-fg-ffffff)}
.header-utils .search-toggle .icon{width:19px;height:19px}
@media(max-width:1440px){.header-utils{gap:4px;padding-inline-start:8px}.header-utils .search-toggle,.header-utils .theme-toggle{width:38px;height:38px}.header-utils .lang-toggle{height:38px}}
@media(max-width:600px){.header-utils{border:0;padding-inline-start:0;margin:0}}

/* ---------- 2. search window ---------- */
html{scrollbar-gutter:stable}   /* 15 Nov (user: animation "a bit jarring"): the scrollbar's space stays, so locking the page no longer shifts it sideways */
html.ss-lock{overflow:hidden}
.site-search{position:fixed;inset:0;z-index:1000;padding:0;background:none;border:0;box-shadow:none;clip-path:none;transform:none;opacity:1;transition:none}
.site-search.is-open{clip-path:none;transform:none}
.site-search[hidden]{display:none}
/* smooth: no page blur (it was redrawn every frame), no scaling (text re-renders); only opacity + a short slide, on their own layers */
.ss-backdrop{position:absolute;inset:0;background:rgba(6,18,32,.62);opacity:0;transition:opacity .2s ease-out;will-change:opacity}
.ss-panel{position:relative;margin:min(12vh,110px) auto 0;width:min(720px,calc(100% - 32px));max-height:min(76vh,680px);display:flex;flex-direction:column;background:var(--t-bg-ffffff);color:var(--t-fg-10263d);border-radius:20px;box-shadow:0 30px 80px rgba(6,18,32,.35),0 0 0 1px rgba(14,54,89,.08);overflow:hidden;opacity:0;transform:translate3d(0,-10px,0);transition:opacity .18s ease-out,transform .24s cubic-bezier(.2,.8,.2,1);will-change:opacity,transform;backface-visibility:hidden}
.site-search.is-open .ss-backdrop,.site-search.is-open .ss-panel{opacity:1}
/* 15 Nov (user: "why not stagger the play of these effects so they play more nicely to the devices"): the page blur comes in AFTER
   the window has settled (site-2026.js adds .is-settled), and only on desktops (mouse + wide screen); phones keep the plain dim. */
@media (hover:hover) and (pointer:fine) and (min-width:900px) and (prefers-reduced-motion:no-preference){
 .ss-backdrop{-webkit-backdrop-filter:blur(0);backdrop-filter:blur(0);transition:opacity .2s ease-out,-webkit-backdrop-filter .4s ease-out,backdrop-filter .4s ease-out}
 html:not(.low-end) .site-search.is-settled .ss-backdrop{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}
}
.site-search.is-open .ss-panel{transform:none}
.ss-panel .site-search-form{display:flex;align-items:center;gap:12px;margin:0;border:0;border-bottom:1px solid var(--t-bd-e3e7ec);border-radius:0;padding:0 18px;background:transparent;box-shadow:none;min-height:66px}
.ss-panel .site-search-form:focus-within{box-shadow:none}
.ss-panel .site-search-form>.icon{width:22px;height:22px;color:var(--t-fg-9c1b3d)}
.ss-panel .site-search-form input[type=search]{font-size:19px;padding:18px 0;color:var(--t-fg-10263d)}
.ss-panel .site-search-form input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;display:none}
.ss-esc,.ss-foot kbd{font-family:inherit;font-weight:700;font-size:11px;line-height:1;border-radius:6px;border:1px solid var(--t-bd-e3e7ec);color:var(--t-fg-5d6b7a);background:var(--t-bg-f4f6f8)}
.ss-esc{padding:5px 7px}
.ss-panel .search-close{display:grid;place-items:center;flex:0 0 auto;width:36px;height:36px;border-radius:50%;border:0;background:transparent;color:var(--t-fg-5d6b7a);cursor:pointer}
.ss-panel .search-close:hover{background:var(--t-bg-f4f6f8);color:var(--t-fg-10263d)}
.ss-body{position:relative;flex:1;overflow:auto;padding:14px 12px 16px}
.site-search.is-loading .ss-body:before{content:"";position:absolute;inset:0 0 auto 0;height:2px;background:linear-gradient(90deg,transparent,var(--t-bg-9c1b3d),transparent) no-repeat;background-size:40% 100%;animation:ss-load 1s linear infinite}
@keyframes ss-load{from{background-position:-40% 0}to{background-position:140% 0}}
.ss-label,.ss-panel .search-results .sr-group{margin:6px 10px 8px;font-size:12px;font-weight:700;letter-spacing:.02em;color:var(--t-fg-5d6b7a)}
.ss-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 6px 16px}
.ss-quick a{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;background:var(--t-bg-f4f6f8);color:var(--t-fg-10263d);font-weight:700;font-size:14px;text-decoration:none;transition:background .15s,color .15s}
.ss-quick a .icon{width:20px;height:20px;color:var(--t-fg-9c1b3d);transition:color .15s}
.ss-quick a:hover,.ss-quick a:focus-visible,.ss-quick a.is-active{background:var(--t-bg-0e3659);color:var(--t-fg-ffffff)}
.ss-quick a:hover .icon,.ss-quick a:focus-visible .icon,.ss-quick a.is-active .icon{color:inherit}
.ss-recent-head{display:flex;align-items:center;justify-content:space-between}
.ss-recent-clear{border:0;background:none;color:var(--t-fg-9c1b3d);font:inherit;font-size:12px;font-weight:700;cursor:pointer;margin-inline-end:10px}
.ss-recent ul{list-style:none;margin:0 6px;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.ss-recent-item{border:1px solid var(--t-bd-e3e7ec);background:transparent;border-radius:999px;padding:7px 14px;font:inherit;font-size:14px;color:var(--t-fg-10263d);cursor:pointer}
.ss-recent-item:hover,.ss-recent-item:focus-visible,.ss-recent-item.is-active{border-color:var(--t-bd-0e3659);background:var(--t-bg-0e3659);color:var(--t-fg-ffffff)}
.ss-panel .search-results ul{list-style:none;max-height:none;margin:0 0 10px;padding:0;overflow:visible}
.ss-panel .search-results li a{display:block;padding:11px 14px;border-radius:12px;border-inline-start:3px solid transparent;text-decoration:none}
.ss-panel .search-results li a:hover,.ss-panel .search-results li a:focus-visible,.ss-panel .search-results li a.is-active{background:var(--t-bg-f4f6f8);border-inline-start-color:var(--t-bd-9c1b3d)}
.ss-panel .search-results .sr-title{font-size:16px}
.ss-panel .search-results .sr-sum{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;font-size:13.5px}
.ss-panel mark{background:rgba(156,27,61,.16);color:inherit;border-radius:3px;padding:0 1px}
.ss-panel .search-results .sr-all{display:inline-flex;margin:4px 10px 0;color:var(--t-fg-9c1b3d);font-weight:700}
.ss-panel .sr-empty{display:grid;gap:4px;margin:0;text-align:center;padding:26px 10px;color:var(--t-fg-5d6b7a)}
.ss-panel .sr-empty strong{color:var(--t-fg-10263d);font-size:16px}
.ss-foot{display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:center;padding:10px 16px;border-top:1px solid var(--t-bd-e3e7ec);font-size:12px;color:var(--t-fg-5d6b7a);background:var(--t-bg-f4f6f8)}
.ss-foot kbd{padding:3px 6px;margin-inline-end:4px;background:var(--t-bg-ffffff)}
@media(max-width:600px){
 .ss-panel{margin:0;width:100%;height:100%;max-height:100%;border-radius:0}
 .ss-quick{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ss-foot,.ss-esc{display:none}
 .ss-panel .site-search-form input[type=search]{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.ss-backdrop,.ss-panel{transition:none}.site-search.is-loading .ss-body:before{animation:none}}
