/* Rules statistics' exact surface and glow, shared by the two search fields. */
:is(.rules-page,.faq-page) :is(.rules-search-field,.faq-search-field) {
 --search-card-shadow:0 3px 12px #0002,0 0 14px color-mix(in srgb,var(--green) 3%,transparent),inset 0 1px color-mix(in srgb,var(--green) 7%,transparent);
 --search-card-hover-shadow:0 5px 16px #0003,0 0 20px color-mix(in srgb,var(--green) 6%,transparent),inset 0 1px color-mix(in srgb,var(--green) 12%,transparent);
 background:var(--rules-hero-surface,var(--profile-surface,var(--bg-panel,#101512)));
 border:1px solid var(--rules-hero-border,var(--profile-border,var(--border,#ffffff12)));
 box-shadow:var(--rules-hero-shadow,var(--search-card-shadow));
 transition:background-color 300ms ease,border-color 300ms ease,box-shadow 300ms ease;
}
@media(hover:hover) {
 :is(.rules-page,.faq-page) :is(.rules-search-field,.faq-search-field):hover:not(:focus-within) {
  background:var(--rules-hero-surface,var(--profile-surface,var(--bg-panel,#101512)));
  border-color:color-mix(in srgb,var(--profile-border,var(--border)),white 6%);
  box-shadow:var(--rules-hero-shadow-hover,var(--search-card-hover-shadow));
 }
}
:is(.rules-page,.faq-page) :is(.rules-search-field,.faq-search-field):focus-within {
 background:var(--rules-hero-surface,var(--profile-surface,var(--bg-panel,#101512)));
 border-color:var(--profile-action-hover-border);
 box-shadow:0 0 0 2px var(--profile-action-surface),var(--rules-hero-shadow-hover,var(--search-card-hover-shadow));
}
/* Keep existing JS references valid while removing the custom control and its space. */
:is(.rules-page,.faq-page) :is(.rules-search-clear,.faq-search-clear) {display:none!important}
:is(.rules-page,.faq-page) :is(#rules-search-input,#faq-search-input) {appearance:none;-webkit-appearance:none}
:is(.rules-page,.faq-page) input[type=search]::-webkit-search-cancel-button,
:is(.rules-page,.faq-page) input[type=search]::-webkit-search-decoration {display:none;-webkit-appearance:none}
:is(.rules-page,.faq-page) input[type=search]::-ms-clear {display:none;width:0;height:0}
@media(prefers-reduced-motion:reduce) {
 :is(.rules-page,.faq-page) :is(.rules-search-field,.faq-search-field) {transition:none}
}
