.edu-resource-search{
  position:relative;
  z-index:26;
  width:100%;
  margin:0 auto 10px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--panel-bg);
  box-shadow:0 10px 24px rgba(0,0,0,.12);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.edu-resource-search [hidden]{display:none!important}

.edu-resource-search-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  padding:0 3px 10px;
}

.edu-resource-search-heading h2{
  margin:0;
  color:var(--section-title-color);
  font-size:11px;
  letter-spacing:.17em;
  text-transform:uppercase;
}

.edu-resource-search-heading p,
.edu-resource-search-heading>span{
  margin:4px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
}

.edu-resource-search-heading p strong{color:var(--text)}
.edu-resource-search-heading>span{margin:0;white-space:nowrap}
.edu-resource-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}
.edu-resource-combobox{position:relative;min-width:0}

.edu-resource-search-icon{
  position:absolute;
  top:50%;
  left:15px;
  transform:translateY(-52%);
  color:var(--muted);
  font-size:23px;
  pointer-events:none;
}

#eduResourceSearchInput{
  width:100%;
  min-height:54px;
  padding:0 49px;
  border:1px solid var(--line);
  border-radius:15px;
  outline:none;
  background:var(--input-bg);
  color:var(--text);
  box-shadow:var(--shadow-soft);
  font:inherit;
  font-size:14px;
  font-weight:600;
}

#eduResourceSearchInput::placeholder{color:var(--muted);font-weight:500;opacity:.82}
#eduResourceSearchInput:focus{border-color:var(--line-strong);background:var(--input-focus-bg);box-shadow:0 0 0 3px color-mix(in srgb,var(--title-small-color) 15%,transparent)}

#eduResourceSearchClear{
  position:absolute;
  top:50%;
  right:9px;
  width:35px;
  height:35px;
  padding:0;
  transform:translateY(-50%);
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:22px;
  cursor:pointer;
}

#eduResourceSearchClear:hover{background:var(--button-hover);color:var(--text)}

.edu-resource-open{
  min-width:94px;
  min-height:54px;
  padding:0 16px;
  border:1px solid var(--line-strong);
  border-radius:15px;
  background:var(--button-bg);
  color:var(--text);
  box-shadow:var(--shadow);
  font:inherit;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}

.edu-resource-open:not(:disabled):hover{transform:translateY(-1px);background:var(--button-hover)}
.edu-resource-open:disabled{opacity:.42;cursor:not-allowed}

.edu-resource-suggestion-box{
  margin-top:8px;
  padding:7px;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--menu-bg);
  box-shadow:0 18px 40px rgba(0,0,0,.28);
}

.edu-resource-suggestion-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:6px 8px 8px;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.edu-resource-suggestion-head span:last-child{font-weight:500;letter-spacing:0;text-transform:none}
#eduResourceSuggestions{display:grid;gap:4px;max-height:310px;overflow:auto;overscroll-behavior:contain}

.edu-resource-suggestion{
  display:grid;
  grid-template-columns:30px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  width:100%;
  padding:9px 10px;
  border:1px solid transparent;
  border-radius:11px;
  background:transparent;
  color:var(--text);
  text-align:left;
  font:inherit;
  cursor:pointer;
}

.edu-resource-suggestion:hover,.edu-resource-suggestion.is-active{border-color:var(--line);background:var(--button-hover)}
.edu-resource-suggestion-key{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:color-mix(in srgb,var(--title-small-color) 15%,transparent);color:var(--title-small-color);font-size:11px;font-weight:800}
.edu-resource-suggestion strong,.edu-resource-suggestion small{display:block}
.edu-resource-suggestion strong{font-size:13px}
.edu-resource-suggestion small{max-width:630px;margin-top:2px;overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.edu-resource-suggestion-count{color:var(--muted);font-size:10px;white-space:nowrap}
.edu-resource-status{min-height:17px;margin:8px 3px 0;color:var(--muted);font-size:11px;line-height:1.45}
.edu-resource-status.is-error{color:#ffb5b5}
.edu-resource-status a{color:var(--text);font-weight:700}

html[data-theme="corporo"] .edu-resource-search,
html[data-theme="corporo"] #eduResourceSearchInput,
html[data-theme="corporo"] .edu-resource-open,
html[data-theme="corporo"] .edu-resource-suggestion-box{border-radius:5px;backdrop-filter:none;-webkit-backdrop-filter:none}

html[data-theme="tilly"] .edu-resource-search{border:2px solid #000;box-shadow:8px 8px 0 #000}
html[data-theme="tilly"] .edu-resource-suggestion-box{background:#fff;border:2px solid #000;box-shadow:5px 5px 0 #000}
html[data-theme="tilly"] .edu-resource-open{background:#000;color:#fff;border:2px solid #000}
html[data-theme="tilly"] .edu-resource-open:not(:disabled):hover{background:#fff;color:#000}

@media(max-width:620px){
  .edu-resource-search-heading{align-items:flex-start;flex-direction:column;gap:4px}
  .edu-resource-search-heading>span{display:none}
  .edu-resource-search-row{grid-template-columns:1fr}
  .edu-resource-open{min-height:46px}
  .edu-resource-suggestion-head span:last-child{display:none}
  .edu-resource-suggestion{grid-template-columns:28px minmax(0,1fr)}
  .edu-resource-suggestion-count{display:none}
}

@media(prefers-reduced-motion:reduce){.edu-resource-search *{scroll-behavior:auto!important;transition:none!important}}
